<?php
/**
* @version 2.1.1
* @package kwalbum
* @since 2.0 2008-09-10
*/
$url = $URLP->GetExtendedURL();
$userName = $this->GetUserName();
?>
<big><b><a href="<?=$url?>"><?=$URLP->GetTitle()?>:</a> <a href="<?=$url?>p=MyStuff">My Stuff: </a> Add Description Item</b></big>
<p>
<? if ($this->msg)
echo $this->msg;
else
{
?>
<form action='<?=$URLP->GetExtendedURL()?>&p=AddDescriptionItem' method='post'?>
Posting as <b><?=$userName?></b><br/>
Visibility: <select name='hidden'>
<option value='0'>Public</option>
<option value='1'<?=(1==@$P['hidden']?' selected':null)?>>Members Only</option>
<option value='2'<?=(2==@$P['hidden']?' selected':null)?>>Priveleged Only</option>
<?=(USER_IS_ADMIN ? "<option value='3'".(3==@$P['hidden']?' selected':null).">Admin Only</option>" : null)?></select>
<br/>
Location: <input type="text" class="text" name="loc" id="loc" value="<?=@$G['loc']?>" size="15" autocomplete="off" />
<span id='locHint' class='autocomplete'"></span>
<br/>
Tags: <input type="text" class="text" name="tags" id="tags" value="<?=@$G['tags']?>" size="20" />
<span id='tagsHint' class='autocomplete'"></span>
<script type='text/javascript'>
new Ajax.Autocompleter("loc", "locHint", "ajax/getLocations.php", {frequency: 0.1});
new Ajax.Autocompleter("tags", "tagsHint", "ajax/getTags.php", {frequency: 0.1});
</script>
<br/>
Message:<br/>
<textarea name='words' cols='60' rows='10'>
</textarea>
<br/>
<input type='submit' name='act' value='Create Item'/>
</form>
<? } ?>
</p>