Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Changed short tags to long tags
Browse files Browse the repository at this point in the history
  • Loading branch information
connor642 committed Apr 15, 2018
1 parent 875b7f5 commit 73a7f4f
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions sustainer/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
$i = 0;
?>
<h3>Current Queue</h3>
<?
<?php
if (!is_null($currentQueue)) {

if (array_key_exists('id', $currentQueue)) {
Expand All @@ -55,20 +55,21 @@
</tr>
</thead>
<tbody>
<?foreach ($currentQueue as $row) {
<?php
foreach ($currentQueue as $row) {
$i++;
?>
?>
<tr>
<td><?echo($i);?></td>
<td><?echo($row['title']);?></td>
<td><?echo($row['artist']);?></td>
<td><?echo($row['album']);?></td>
<td><?phpecho($i);?></td>
<td><?phpecho($row['title']);?></td>
<td><?phpecho($row['artist']);?></td>
<td><?phpecho($row['album']);?></td>
</tr>
<?}?>
<?php } ?>
</tbody>
</table>

<?
<?php
}
else {
Bootstrap::alert("warning","<b>Warning: </b>The current queue is empty","",false);
Expand All @@ -87,7 +88,7 @@
<button class="btn btn-primary" type="submit" name="submit">Schedule</button>
</form>

<?
<?php
$currentLog = Sustainer::get_log();
$i = 0;
?>
Expand All @@ -103,15 +104,17 @@
</tr>
</thead>
<tbody>
<?foreach ($currentLog as $row) {
$i++;?>
<?php
foreach ($currentLog as $row) {
$i++;
?>
<tr>
<td><?echo(date('d/m/y H:i', $row['timestamp']));?></td>
<td><?echo($row['title']);?></td>
<td><?echo($row['artist']);?></td>
<td><?echo($row['username']);?></td>
<td><?php echo(date('d/m/y H:i', $row['timestamp']));?></td>
<td><?php echo($row['title']);?></td>
<td><?php echo($row['artist']);?></td>
<td><?php echo($row['username']);?></td>
</tr>
<?}?>
<?php } ?>
</tbody>
</table>

Expand Down

0 comments on commit 73a7f4f

Please sign in to comment.