Location: PHPKode > projects > Kwalbum > kwalbum/pages/AdminLocationsPage.html.php
<?php
/**
 * Show a complete list of location for editing.
 *
 * @version 2.1.1
 * @since 2.0
 * @package kwalbum
 */
global $G;
?>
<big><b><a href='<?=$URLP->GetExtendedURL()?>p=Admin'>Admin Options:</a> Modify "Location" Values</b></big>
<p>
Click on a location to change it.  Change a location to ----- (5 dashes) to delete it.
</p>
<p>
<?
if (0 == $result->num_rows)
{
	echo 'No locations have yet been created.';
}
else
{
$ids = array();
while ($row = $result->fetch_array())
{
	$ids[] = $row[0];
	echo "<div><span id='loc$row[0]'>$row[1]</span> [<a href='".PAGE_URL."loc=$row[1]' target='_blank'>view \"$row[1]\"</a>]</div>";
}

echo "<script type='text/javascript'>";
foreach($ids as $id)
{
?>
		new Ajax.InPlaceEditor('loc<?=$id?>', 'ajax/editLocationValue.php', {
			cols: 30,
			highlightcolor: '#aaddff',
			highlightendcolor: '#99aaff',
			callback: function(form, value) { return 'loc=' + escape(value) + '&id=<?=$id?>'; }
		});
<?}
echo '</script>';
}
echo '</p>';
Return current item: Kwalbum