<form name="modform" method="post" action="index.php">
	<input type="hidden" name="automodule" value="gallery" />
	<input type="hidden" name="req" value="gallerymmod" />
	<input type="hidden" value="" name="selectedimgids" />
    <input type="hidden" value="{$this->ipsclass->input['cat']}" name="cat" />
    <div style='float:right;'>
        <div style='float: right'>
            <input type="submit" name="gobutton" value="{$this->ipsclass->lang['mod_button']}" class="button" />
        </div>
        <div id='move_cat_div' style='display:none; float: right'>
	    {$data}&nbsp;
	</div>
        <div style='float: right'>
	    <select class='select' name="galleryact" id="galleryact" onchange="check_move_select()">
		 <option value="pin">{$this->ipsclass->lang['pin_images']}</option>
		 <option value="unpin">{$this->ipsclass->lang['unpin_images']}</option>
		 <option value="delete">{$this->ipsclass->lang['delete_images']}</option>
		 <option value="move">{$this->ipsclass->lang['move_images']}</option>
		 <option value="approve">{$this->ipsclass->lang['approve_images']}</option>
		 <option value="unapprove">{$this->ipsclass->lang['unapprove_images']}</option>
	    </select>&nbsp;
        </div>	
    </div>	
</form>
<script type="text/javascript">
//<![CDATA[
	var move_cat_div = document.getElementById('move_cat_div');
	var galleryact   = document.getElementById('galleryact');
		
	function check_move_select()
	{
		for( var i = 0 ; i < galleryact.options.length ; i++ )
		{
			if ( galleryact.options[i].value == 'move' )
			{
				move_cat_div.style.display = ( galleryact.options[i].selected ) ? '' : 'none';
			}
		}
	}
//]]>
</script>