Location: PHPKode > projects > CoreAsset > coreasset/templates/show_export.tpl
<head>
<link href="css/style_new.css" rel="stylesheet" type="text/css">
</head>
	<body  style="background:#FBFBE2">
	<table width="98%">
{if $status < 4}
	<form name="f1" action="?act=1" method="post" onSubmit="return validate();" >
	<table align="center" width="100%" >
	<tr align="center">
	<td width="36%"  class="txt">Select The Category</td>
	<td width="22%" align="left" valign="TOP">
	<select name="category_id" >
	 <option value="0"> -- Select Category -- </option>
	 {section name=index loop=$category_id}
	 <option value="{$category_id[index]}" {if $cat_id==$category_id[index]}selected{/if}>{$category_name[index]}</option>
	 {/section}
	</select>
	<td width="42%" align="left">&nbsp;<input type="image"  src="images/submit.gif"/></td>
	  </tr>
	  </table>
	  {if $cat_id != $cat_id_book}
	  {if $flag == 1}
	  {if $numrow > 0 }
	  <table width="213%" border="0" cellpadding="0"  cellspacing="1" >
		<tr class="title_heading">
		  <td>&nbsp;Asset Tag</td>
		  <td>&nbsp;Asset Nickname</td>

		  <td>&nbsp;Purchase Order no</td>
		  <td>&nbsp;Vendor</td>
		  <td>&nbsp;Price</td>
		  <td colspan="{$cnt/4}">&nbsp;Equipments</td>
		  <td colspan="{$cnt/4}">&nbsp;Serial no</td>
		  <td colspan="{$cnt/4}">&nbsp;Manufacturer</td>
		  <td colspan="{$cnt/4}">&nbsp;Expiary Date</td>
		  <td>&nbsp;Description</td>
		  <td>&nbsp;Receive Date</td>
		  <td>&nbsp;Assigned User</td>
		 <!-- /*<td>&nbsp;Create Date</td>*/-->
		</tr>
		{section name=index loop=$asset_tag}
		  <tr class="alttxtbox_bgcolor" height="24">
		<td>&nbsp;{$asset_tag[index]}</td>
		<!-- <td>{$category_id[index]}</td>-->
		<td>&nbsp;{$asset_nickname[index]}</td>
		<td>&nbsp;{$po_no[index]}</td>
		<td>&nbsp;{$vendor_name[index]}</td>
		<td>&nbsp;{$asset_price[index]}</td>
		<td>
		 {$equipment_name[index]}
		</td>
		<td>{$ser_no[index]}
		</td>
		<td>{$man_f[index]}
		</td>
		<td>{$exp_dt[index]}
		</td>
		
		<td>&nbsp;{$asset_description[index]}</td>
		<td>&nbsp;{$asset_rec_date[index]}</td>

		<td>
			{$iss_uid[index]}
		</td>
		

	
	  {/section}
	  <tr  class="btn_bg" >
	  
	<td align="left" >&nbsp;&nbsp;<input type="image" src="images/print.gif" name="add" onClick="window.print()" title="Click to Print"></td>

		<td align="left" colspan="12">&nbsp;&nbsp;<a href="exporttoxls.php?cat_id={$cat_id}" ><img src="images/export.gif"  border="0"/></a></td>
	  </tr>
	  </table>
	  {else}
	<table align="center">
	<tr>
	<td class="txt" align="center"><font color="#FF0000">Sorry !! No Record Found</font> </td>
	</tr>
	</table>
	{/if}
	{/if}
	{else if $cat_id == $cat_id_book}	
	{if $flag == 1}
	  {if $numrow > 0 }
	  <table width="213%" border="0" cellpadding="0"  cellspacing="1" >
		<tr class="title_heading">
		  <td>&nbsp;Asset Tag</td>
		 
		  <td>&nbsp;Purchase Order no</td>
		 
		  <td>&nbsp;Price</td>
		  <td colspan="{$cnt}">&nbsp;Book/s</td>
		  <td colspan="{$cnt}">&nbsp;ISBN No.</td>
		  <td>&nbsp;Description</td>
		  <td>&nbsp;Receive Date</td>
		  <td>&nbsp;Assigned User</td>
		 
		</tr>
		{section name=index loop=$asset_tag}
		  <tr class="alttxtbox_bgcolor"  height="24">
		<td>&nbsp;{$asset_tag[index]}</td>
		
		<td>&nbsp;{$po_no[index]}</td>
		
		<td>&nbsp;{$asset_price[index]}</td>
		<td>
		 {$book_name[index]}
		</td>
		
		<td>{$book_isbn_no[index]}</td>
		<td>&nbsp;{$asset_description[index]}</td>
		<td>{$receive_date[index]}</td>
		<td>{$issued_to[index]}</td>
		<!--<td>&nbsp;{$create_date[index]}</td>-->
	
	  {/section}
	  <tr  class="btn_bg" >
	  
	<td align="left" >&nbsp;&nbsp;<input type="image" src="images/print.gif" name="add" onClick="window.print()" title="Click to Print"></td>

		<td align="left" colspan="7">&nbsp;&nbsp;<a href="exporttoxls.php?cat_id={$cat_id}" ><img src="images/export.gif"  border="0"/></a></td>
	  </tr>
	  </table>
	  {else}
	<table align="center">
	<tr>
	<td class="txt" align="center" ><font color="#FF0000">Sorry !! No Record Found</font> </td>
	</tr>
	</table>
	{/if}
	{/if}
	{/if}
	
	</form>

	{else}
    <table borderColor="#ffffff" cellSpacing="1" cellPadding="0" width="100%" border="0">
	<tr>
	  <td class="txt" align="center" width="20%" height="23">
	  <font color="RED">{$mes}</font>
	  </td>
	</tr>
     </table>
            {/if}

	</table>
	</body>

	
	{literal}
	<script language="javascript">
	function validate()
	{
		if(document.f1.category_id.value==0)
		{
		 alert("Please Select A Category");
		 return false;
		}
		
	}
	</script>
	{/literal}
Return current item: CoreAsset