Location: PHPKode > projects > Simple Way to Usenet > swun/docs/themes/swun/templates/pages/search/pg_search.tpl
<!--
<form id="enqueue_dest" method="post" target="_self" action="">
<input type="hidden" value="$formkey" name="formkey" />
-->
{--LOGIC= $engine == unfid --}
	{--INC=pages/search/form_unfid.tpl; $unfid_data --}
	<!-- <input id="enqmethod" type="hidden" value="genzb" name="enqmethod" /> -->
{--LOGIC-ELSE--}
	<!-- <input id="enqmethod" type="hidden" value="search" name="enqmethod" /> -->
{--LOGIC-END--}
{--INC=pages/paged_content.tpl; $paged --}
<table style="width:100%" border=0px cellspacing=0 cellpadding=0>
<tr>
	<td colspan=6>&nbsp;
		<a href="javascript:select_all('selection[]')">{--LANG=W=search;sel_all--}</a> |
		<a href="javascript:select_none('selection[]')">{--LANG=W=search;sel_none--}</a> |
		<a href="javascript:select_invert('selection[]')">{--LANG=W=search;sel_invert--}</a>
	</td>
</tr>
<tr style="background-color:gray">
	<td align=right><b>#</b></td>
	<td></td>
	<td>RPCs</td>
	<td align=center>
		<!-- <input type="hidden" value="$engine" name="engine" /> -->
	{--LOGIC= $engine == unfid --}
		<!-- <input type="submit" value="{--LANG=W=search;unfid_gendload--}" name="genzb" /> -->
		<input type="button" value="{--LANG=W=search;unfid_gendload--}" onclick="unfid_dload('selection[]')" />
	{--LOGIC-ELSE--}
		{--LOGIC= $multirpc isfalse --}
			<input type="button" value="{--LANG=W=search;click2enq--}" onclick="s_enqueue('search_enqrpc', '$engine', 'selection[]')"/>
			<!-- <input type="submit" value="{--LANG=W=search;click2enq--}" name="search_enqueue" /> -->
			<input type="hidden" value="$activerpc" name="rpc" id="search_enqrpc" />
		{--LOGIC-ELSE--}
			<input type="button" value="{--LANG=W=search;click2enqon--}" onclick="s_enqueue('search_enqrpc', '$engine', 'selection[]')"/>
			<!-- <input type="submit" value="{--LANG=W=search;click2enqon--}" name="search_enqueue" /> -->
			<select name="rpc" id="search_enqrpc">
			{--ARRAY= $rpcs --}
				<option value="$ARRAY_ENTRY_KEY" 
					{--LOGIC= $enabled istrue --}
						{--LOGIC= $ARRAY_ENTRY_KEY == %activerpc --}selected{--LOGIC-END--} 
					{--LOGIC-ELSE--}
						disabled
					{--LOGIC-END--}>$rpc</option>
			{--ARRAY-END--}
			</select>
		{--LOGIC-END--}
	{--LOGIC-END--}
	</td>
	<td align=center><b>{--LANG=W=search;r_size--}</b></td>
	<td align=center><b>{--LANG=W=search;r_age--}</b></td>
</tr>
<tr>
	<td colspan=6 style="background-color:black;height:1px"></td>
</tr>
{--ARRAY= $items --}
	{--LOGIC= $ARRAY_ENTRY_KEY isimpair --}
		<tr id="item_$id" valign="top" class="item_pair">
			<td class="item_count">$ARRAY_ENTRY_KEY</td>
			<td class="item_input"><input id="inp_$id" type="checkbox" name="selection[]" value="$id" onclick="swap_itemsel('$id', '_pair')" /></td>
	{--LOGIC-ELSE--}	
		<tr id="item_$id" valign="top" class="item_impair">
			<td class="item_count">$ARRAY_ENTRY_KEY</td>
			<td class="item_input"><input id="inp_$id" type="checkbox" name="selection[]" value="$id" onclick="swap_itemsel('$id', '_impair')" /></td>
	{--LOGIC-END--}
		<td class="item_count">
		{--ARRAY= $idisdload --}
			<a href="{--HREF=PID;1; rpc=$ARRAY_ENTRY_KEY --}" title="RPC $ARRAY_ENTRY_VAL is downloading this Item">
				<img src="{--HREF=IMG; /actions/act_dload.png--}" />
			</a>
		{--ARRAY-END--}
		{--ARRAY= $idisinq --}
			<a href="{--HREF=PID;1; rpc=%ARRAY_ENTRY_KEY --}" title="Item is in queue of the RPC $ARRAY_ENTRY_VAL">
				<img src="{--HREF=IMG; /Q.png--}" />
			</a>
		{--ARRAY-END--}
		{--ARRAY= $idisdel --}
			<a href="{--HREF=PID;1; rpc=%ARRAY_ENTRY_KEY --}" title="Item is delayed on RPC $ARRAY_ENTRY_VAL">
				<img src="{--HREF=IMG; /actions/act_schedule.png--}" />
			</a>
		{--ARRAY-END--}
		{--ARRAY= $idisproc --}
			<a href="{--HREF=PID;1; rpc=%ARRAY_ENTRY_KEY --}" title="RPC $ARRAY_ENTRY_VAL is processing this Item">
				<img src="{--HREF=IMG; /mimes/bin.png--}" />
			</a>
		{--ARRAY-END--}
		{--ARRAY= $idonrpcs --}
			<a href="$ARRAY_ENTRY_VAL" target="_blank" title="Browse on $ARRAY_ENTRY_KEY">
				<img src="{--HREF=IMG; /folder.png--}" />
			</a>
		{--ARRAY-END--}
		</td>
		<td class="item_info">
			{--LOGIC= $type == nodid --}<b>$nzbName</b>{--LOGIC-END--}
			{--LOGIC= $type == nbrid --}{--INC=pages/search/detail_nbrid.tpl; $ARRAY_ENTRY_VAL --}{--LOGIC-END--}
			{--LOGIC= $type == nzbid --}{--INC=pages/search/detail_nzbid.tpl; $ARRAY_ENTRY_VAL --}{--LOGIC-END--}
			{--LOGIC= $type == unfid --}{--INC=pages/search/detail_unfid.tpl; $ARRAY_ENTRY_VAL --}{--LOGIC-END--}
		</td>
		<td class="item_size">$size</td>
		<td class="item_age">$age</td>
	</tr>
{--ARRAY-END--}
{--LOGIC= $showempty istrue --}
	<tr>
		<td colspan=6>&nbsp;{--LANG=W=search;emptysearch--}</td>
	</tr>
	<tr>
		<td colspan=6 style="background-color:black;height:1px"></td>
	</tr>
{--LOGIC-END--}
<tr>
	<td colspan=6>&nbsp;
		<a href="javascript:select_all('selection[]')">{--LANG=W=search;sel_all--}</a> |
		<a href="javascript:select_none('selection[]')">{--LANG=W=search;sel_none--}</a> |
		<a href="javascript:select_invert('selection[]')">{--LANG=W=search;sel_invert--}</a>
	</td>
</tr>
{--LOGIC= $engine == nzbid --}
    <tr>
		<td colspan=6>
			<input type="button" onclick="deluplnzb('selection[]')" value="{--LANG=W=search;delnzb--}"/>
		</td>
    </tr>
{--LOGIC-END--}
</table>
{--INC=pages/paged_content.tpl; $paged --}
<!-- </form> -->
Return current item: Simple Way to Usenet