Example #1
0
	<div class="subhead">
		<label style="float: right"><?php 
echo gettext("Check All");
?>
 <input type="checkbox" name="allbox" id="allbox" onclick="checkAll(this.form, 'ids[]', this.checked);" />
		</label>
	</div>
			<ul class="page-list">
			<?php 
if (isset($_GET['visible'])) {
    $visible = sanitize($_GET['visible']);
} else {
    $visible = 'all';
}
$items = getMenuItems($menuset, $visible);
printItemsList($items);
?>
			</ul>
</div>
<br />
<span id="serializeOutput" /></span>
<input name="update" type="hidden" value="Save Order" />
<p class="buttons">
	<button class="serialize" type="submit" title="<?php 
echo gettext("Apply");
?>
"><img src="../../images/pass.png" alt="" /><strong><?php 
echo gettext("Apply");
?>
</strong></button>
</p>
Example #2
0
 function printList($gallery)
 {
     echo "<ul>";
     foreach ($gallery->kids() as $kid) {
         echo "<li>" . $kid->get('id') . " " . $kid->get('name');
         printItemsList($kid);
         printList($kid);
         echo "</li>";
     }
     echo "</ul>";
 }