Location: PHPKode > projects > Pligg > pligg/templates/wistie/search_advanced_center.tpl
<div class="pagewrap">
<fieldset>
<script>
{literal}
function SEO2submit(form)
{
    var datastr = '';
    var fields  = form.getElementsByTagName('INPUT');
    for (var i=0; i<fields.length; i++)
     	if (fields[i].type=="text")
	    if (fields[i].name=="search")
	    	datastr += (fields[i].value ? encodeURIComponent(fields[i].value) : '-') + '/';
	    else if (fields[i].value!='')
	    	datastr += fields[i].name + '/' + encodeURIComponent(fields[i].value) + '/';
     	else if (fields[i].type=="radio" && fields[i].checked)
	    datastr += fields[i].name + '/' + encodeURIComponent(fields[i].value) + '/';
    fields  = form.getElementsByTagName('SELECT');
    for (var i=0; i<fields.length; i++)
     	    for (var j=0; j<fields[i].length; j++)
		if (fields[i][j].selected)
	    	    datastr += fields[i].name + '/' + encodeURIComponent(fields[i][j].value) + '/';

	document.location.href=form.action+datastr+'adv/1';
}
{/literal}
</script>
<form method="get" action="{$URL_search}" 
{php}
global $URLMethod;
if ($URLMethod==2) print "onsubmit='SEO2submit(this); return false;'";
{/php}
>
<div style="float:left;width:260px;padding-right:20px;text-align:right;">
<br />
<label>{#PLIGG_Visual_Search_Keywords#}:</label><br />
<small>{#PLIGG_Visual_Search_Keywords_Instructions#}</small><br />
<input name="search" type="text" size="40"/>
<br />

<label>{#PLIGG_Visual_Search_Story#}:</label><br />
	<select name="slink">
		<option value="3" selected="selected">{#PLIGG_Visual_Search_Story_Title_and_Description#}</option>
		<option value="1">{#PLIGG_Visual_Search_Story_Title#}</option>
		<option value="2">{#PLIGG_Visual_Search_Story_Description#}</option>												
	</select>

<br /><br />
	
<label>{#PLIGG_Visual_Search_Category#}:</label><br />
	<select name="scategory" >
		{$category_option}
	</select>

</div>
<div style="float:left;width:210px;text-align:right;">
<br />
	<label>{#PLIGG_Visual_Search_Comments#}:</label>
		<input type="radio" name="scomments" value="1" checked="checked" /> {#PLIGG_Visual_Search_Advanced_Yes#} &nbsp;&nbsp;<input type="radio" name="scomments" value="0" /> {#PLIGG_Visual_Search_Advanced_No#}
	<br />
	<label>{#PLIGG_Visual_Search_Tags#}:</label>
		<input type="radio" name="stags" value="1" checked="checked" /> {#PLIGG_Visual_Search_Advanced_Yes#} &nbsp;&nbsp;<input type="radio" name="stags" value="0" /> {#PLIGG_Visual_Search_Advanced_No#}
	<br />

	<label>{#PLIGG_Visual_Search_User#}:</label>
		<input type="radio" name="suser" value="1" /> {#PLIGG_Visual_Search_Advanced_Yes#} &nbsp;&nbsp;<input type="radio" name="suser" value="0" checked="checked" /> {#PLIGG_Visual_Search_Advanced_No#}
	
<br /><br />
{include file=$the_template."/date_picker.tpl"}
<label>{#PLIGG_Visual_Advanced_Search_Date#}</label>
<input name="date" type="text" size="10">
<input type=button value="{#PLIGG_Visual_Advanced_Search_Select#}" onclick="displayDatePicker('date', false, 'ymd', '-');">

{php}
if (enable_group=='true') {
{/php}
<br /><br />
<label>{#PLIGG_Visual_Search_Group#}:</label>
	<select name="sgroup">
		<option value="3" selected="selected">{#PLIGG_Visual_Search_Group_Named_and_Description#}</option>
		<option value="1">{#PLIGG_Visual_Search_Group_Name#}</option>
		<option value="2">{#PLIGG_Visual_Search_Group_Description#}</option>												
	</select>
{php}	
}
{/php}

<br /><br />
<label>{#PLIGG_Visual_Search_Status#}:</label>
<select name="status">
	<option value="all" selected="selected">{#PLIGG_Visual_Search_Status_All#}</option>
	<option value="published">{#PLIGG_Visual_Search_Status_Published#}</option>
	<option value="queued">{#PLIGG_Visual_Search_Status_Upcoming#}</option>												
</select>

</div><br style="clear:both;" /><br />
<input name="adv" type="hidden" value="1" />		
<input name="advancesearch" value="&nbsp;Search&nbsp; " type="submit" class="log2" />


</form>
</fieldset>
</div>
Return current item: Pligg