Fixed some typos in admins templates.

* We have to use full tags (<?php) and not short tags (<?)
* We have to use the alternative syntax for control structures (see http://www.php.net/manual/en/control-structures.alternative-syntax.php).
This commit is contained in:
François KUBLER 2011-03-09 20:13:52 +01:00
parent 39279350eb
commit 1935d85ef1
3 changed files with 16 additions and 16 deletions

View File

@ -6,7 +6,7 @@
<h1>Administration</h1>
<ul>
<? foreach( $_["adminpages"] as $i ){ ?>
<li><a href="<? echo link_to( $i["app"], $i["file"] ) ?>"><? echo $i["name"] ?></a></li>
<? } ?>
<?php foreach($_["adminpages"] as $i): ?>
<li><a href="<?php echo link_to($i["app"], $i["file"]) ?>"><?php echo $i["name"] ?></a></li>
<?php endforeach; ?>
</ul>

View File

@ -17,12 +17,12 @@
</tr>
</thead>
<tbody>
<? foreach( $_["plugins"] as $plugin ){ ?>
<td><? echo $plugin["info"]["id"] ?></td>
<td><? echo $plugin["info"]["version"] ?></td>
<td><? echo $plugin["info"]["name"] ?></td>
<td><? echo $plugin["info"]["author"] ?></td>
<?php foreach($_["plugins"] as $plugin): ?>
<td><?php echo $plugin["info"]["id"] ?></td>
<td><?php echo $plugin["info"]["version"] ?></td>
<td><?php echo $plugin["info"]["name"] ?></td>
<td><?php echo $plugin["info"]["author"] ?></td>
<td>enable</td>
<? } ?>
<?php endforeach; ?>
</tbody>
</table>

View File

@ -15,13 +15,13 @@
</tr>
<thead>
<tbody>
<? foreach( $_["users"] as $user ){ ?>
<?php foreach($_["users"] as $user): ?>
<tr>
<td><input type="checkbox"></td>
<td><? echo $user["name"] ?></td>
<td><? echo $user["groups"] ?></td>
<td><?php echo $user["name"] ?></td>
<td><?php echo $user["groups"] ?></td>
</tr>
<? } ?>
<?php endforeach; ?>
</tbody>
</table>
@ -34,11 +34,11 @@
</tr>
<thead>
<tbody>
<? foreach( $_["groups"] as $group ){ ?>
<?php foreach($_["groups"] as $group): ?>
<tr>
<td><? echo $group["name"] ?></td>
<td><?php echo $group["name"] ?></td>
<td>remove</td>
</tr>
<? } ?>
<?php endforeach; ?>
</tbody>
</table>