Location: PHPKode > projects > Kwalbum > kwalbum/pages/AdminTagsPage.html.php
<?php
/**
 * Show a complete list of tags 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 "Tag" Values</b></big>
<p>
Click on a tag to change it.  Change a tag to ----- (5 dashes) to delete it.
</p>
<p>
<?
if (0 == $result->num_rows)
{
	echo 'No tags have yet been created.';
}
else
{
$ids = array();
while ($row = $result->fetch_array())
{
	$ids[] = $row[0];
	echo "<div><span id='tag$row[0]'>$row[1]</span> [<a href='".PAGE_URL."tags=$row[1]' target='_blank'>view \"$row[1]\"</a>]</div>";
}
echo "<script type='text/javascript'>";

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