Location: PHPKode > projects > CoreAsset > coreasset/templates/book_history.tpl
{include file="head.tpl"}
{include file="left.tpl"}
<form name="form1" method="post" action="">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="21">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/corner9.gif" width="5" height="27"></td>
{if $status == 1 || $status == 2 }
{if $rows > 0}
<td width="50%" class="header"><span class="whitetext">
Book History
</span></td>
<!--<td width="33%" class="header" align="left"><span class="whitetext">Enter Nickname</span>
<input type="text" name="nick_asset" value="" size="20" />
</td>-->
<td width="50%" class="header" align="right"><span class="whitetext">
</td>
{else}
<td width="50%" class="header"><span class="whitetext">
Book History 
</span></td>

<!--<td width="33%" class="header" align="left"><span class="whitetext">Enter Nickname</span>
<input type="text" name="nick_asset" value="" disabled/>
</td>-->

<td width="50%" class="header" align="right"><span class="whitetext">

</td>
{/if}
{else}
<td width="100%" class="header"><span class="whitetext">
Book History 
</span></td>
{/if}
<td><img src="images/corner10.gif" width="5" height="27"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="border3side" valign="top" height="100%">
<table width="100%" height="100%" border="0" cellspacing="8" cellpadding="0">
<tr>
<td valign="top">

<div id="nick_name" class="VEPart" style="border: #333333 1px solid; width: 180px; height: 90px; left:678; top:134; display:{$layer_status}">
<div class="VEMover">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" >
    <tr>
	<td width="80%" class="title_heading" height="10" colspan="2" nowrap>
	&nbsp;&nbsp;&nbsp;Search By Nick Name
	</td>
	<td width="15%" class="title_heading" height="10" colspan="2" align="right"></td>
	<td width="5%" class="btn_bg1" height="10" colspan="2" align="right">
	<input type="button" name="close_nickname"  title="Close" value="X" onclick="close_layer();" style="border: #333333 1px solid;font-weight:bold;" class="btn_bg1"/>
	</td>
	</tr>
	<tr><td width="100%" class="list_item" height="10" colspan="2"></td></tr>
	<tr>
      <td width="7%" class="list_item" height="10"></td>
	  <td width="43%" class="list_item" nowrap>&nbsp;Enter Asset Nick Name</td>
      <td width="50%" class="list_item">
	  <input type="text" name="nick_asset" value="{$asset_nick}" size="20" class="text"/></td>
    </tr>
	<tr><td width="100%" class="list_item" height="10" colspan="2"></td></tr>
    <tr>
       <td colspan="4" width="60%" align="center" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	  <img src="images/search.gif" border="0" style="cursor:pointer" title="Click to Search" onclick="send_from_layer();"/>
	  </td>
	</tr>
  </table>
</div>
</div>
<!-- #######################   Paste the Table to Table from here ############## -->
{if $status == 1 || $status == 2 } 
{if $rows > 0}
<table cellSpacing="2" cellPadding="0" width="98%" align="center" border="0">
<tr>
<td  align="left" class="header">
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
{if $rows == 1}
<tr>
<td align="left" width="45%">

<img src="images/previous_disabled.gif"  title="No Previous Record"/>

</td>
<td align="left" width="30%">
<a href="export_bok_history.php" ><img src="images/export_all_btn.gif"  border="0" title="Export All Book History"/></a>
</td>
<td align="right" width="30%">

<img src="images/next_disabled.gif"  title="No Next Record"/>

</td>
</tr>
{else}
<tr>
<td align="left" width="45%">&nbsp;&nbsp;
{if $flag !=0}
<a href="book_history.php?sdfh__gi468_k___coe856={$asset_tag}&&act=first&&sdjgf05___Xjsarey3__nujdhj_h={$old_cond}"><img src="images/start1.gif"  border="0" title="Click to View First Record"/></a>&nbsp;
<a href="book_history.php?sdfh__gi468_k___coe856={$asset_tag}&&act=prev&&sdjgf05___Xjsarey3__nujdhj_h={$old_cond}"><img src="images/previous1.gif"  border="0" title="Click to View Previous Record"/></a>
{else}
<img src="images/start_disabled.gif"  title="First Record"/>&nbsp;
<img src="images/previous_disabled.gif"  title="No Previous Record"/>

{/if}
</td>
<td align="left" width="30%">
<a href="export_book_history.php" ><img src="images/export_all_btn.gif"  border="0" title="Export All Book History"/></a>
</td>
<td align="right" width="30%">
{if $flag !=1}
<a href="book_history.php?sdfh__gi468_k___coe856={$asset_tag}&&act=next&&sdjgf05___Xjsarey3__nujdhj_h={$old_cond}"><img src="images/next1.gif"  border="0" title="Click to View Next Record"/></a>&nbsp;
<a href="book_history.php?sdfh__gi468_k___coe856={$asset_tag}&&act=last&&sdjgf05___Xjsarey3__nujdhj_h={$old_cond}"><img src="images/end1.gif"  border="0" title="Click to View Last Record"/></a>

{else}
<img src="images/next_disabled.gif"  title="No Next Record"/>&nbsp;
<img src="images/end_disabled.gif"  title="Last Record"/>
{/if}
&nbsp;&nbsp;
</td>
</tr>
{/if}
</table>
</td>
</tr>
<tr><td width="100%">

<table width="100%" border="0" cellspacing="0" cellpadding="1">
  <tr>
    <td valign="top">
	 <table width="100%" border="0" cellspacing="1" cellpadding="1">
	 <tr align="center">
	 	  <td class="txtbox_bgcolor" width="25%">&nbsp;<strong>Book Details</strong></td>
		  <td class="txtbox_bgcolor" width="15%">&nbsp;<strong>Issued To</strong></td>
		  <td class="txtbox_bgcolor" width="15%">&nbsp;<strong>Issued On</strong></td>
		  <td class="txtbox_bgcolor" width="15%">&nbsp;<strong>Return Date</strong></td>
		 </tr>
	 </table>
    {section name=i loop=$book_name}
      <table width="100%" border="0" cellspacing="2" cellpadding="0">
	  
        <tr>
          <td class="list_item"  align="left" width="36%" valign="top" style="border:#333333 1px solid;">
	  <table bgcolor="#ffffff" width="100%" border="0" cellspacing="0" cellpadding="2" align="left">
         <tr><td class="list_item" valign="TOP">Book Name</td><td class="list_item">{$book_name[i]}</td></tr>
		 <tr><td class="list_item" valign="TOP">ISBN No</td><td class="list_item">{$isbn_no[i]}</td></tr>
		 <tr><td class="list_item" valign="TOP">Author</td><td class="list_item">{$author[i]}</td></tr>
		 <tr><td class="list_item" valign="TOP">Publisher</td><td class="list_item">{$publisher[i]}</td></tr>
		 <tr><td class="list_item" valign="TOP">Price</td><td class="list_item">{$price[i]}</td></tr>
      </table>
		  </td>
          <td class="list_item"  align="left" width="70%" valign="top"  style="border:#333333 1px solid;">
<div style="height:100px;overflow:auto;">
		  <table width="100%" border="0" cellspacing="3" cellpadding="3" align="center">
		{section name=index loop=$book_hist_id[i]}
			<tr>
			  <td class="list_item" width="17%" valign="TOP">{$user_nm[i][index]}</td>
			  <td class="list_item" width="17%" valign="TOP">{if $issued_on[i][index]!="0000-00-00"}{$issued_on[i][index]}{else}<font color="RED">Not Issued !</font>{/if}</td>
			  <td class="list_item" width="17%" valign="TOP">{if $return_date[i][index]!="0000-00-00"}{$return_date[i][index]}{else}<font color="RED">Not Issued !</font>{/if}</td>	
			</tr>
		{/section}
	  
      </table>
	  </div>
		  </td>
        </tr>
	
      </table>
	  {/section}    </td>
  </tr>
</table>
    </td>
  </tr>
  
<tr>
<td  align="left" class="header">

<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
{if $rows == 1}
<tr>
<td align="left" width="45%">

<img src="images/previous_disabled.gif"  title="No Previous Record"/>

</td>
<td align="left" width="30%">
<a href="export_book_history.php" ><img src="images/export_all_btn.gif"  border="0" title="Export All Book History"/></a>
</td>
<td align="right" width="30%">

<img src="images/next_disabled.gif"  title="No Next Record"/>

</td>
</tr>
{else}
<tr>
<td align="left" width="45%">&nbsp;&nbsp;
{if $flag !=0}
<a href="book_history.php?sdfh__gi468_k___coe856={$asset_tag}&&act=first&&sdjgf05___Xjsarey3__nujdhj_h={$old_cond}"><img src="images/start1.gif"  border="0" title="Click to View First Record"/></a>&nbsp;
<a href="book_history.php?sdfh__gi468_k___coe856={$asset_tag}&&act=prev&&sdjgf05___Xjsarey3__nujdhj_h={$old_cond}"><img src="images/previous1.gif"  border="0" title="Click to View Previous Record"/></a>
{else}
<img src="images/start_disabled.gif"  title="First Record"/>&nbsp;
<img src="images/previous_disabled.gif"  title="No Previous Record"/>

{/if}
</td>
<td align="left" width="30%">
<a href="export_book_history.php" ><img src="images/export_all_btn.gif"  border="0" title="Export All Book History"/></a>
</td>
<td align="right" width="30%">
{if $flag !=1}
<a href="book_history.php?sdfh__gi468_k___coe856={$asset_tag}&&act=next&&sdjgf05___Xjsarey3__nujdhj_h={$old_cond}"><img src="images/next1.gif"  border="0" title="Click to View Next Record"/></a>&nbsp;
<a href="book_history.php?sdfh__gi468_k___coe856={$asset_tag}&&act=last&&sdjgf05___Xjsarey3__nujdhj_h={$old_cond}"><img src="images/end1.gif"  border="0" title="Click to View Last Record"/></a>

{else}
<img src="images/next_disabled.gif"  title="No Next Record"/>&nbsp;
<img src="images/end_disabled.gif"  title="Last Record"/>
{/if}
&nbsp;&nbsp;
</td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
{else}
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td align="center" width="100%" class="text">
<font color="#FF0000">  Sorry No result found !!</font>
</td>
</tr>
</table>
{/if}
{else}
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td align="center" width="100%" class="text">
<font color="#FF0000">Sorry ! You have no such Privillage ... </font>
</td>
</tr>
</table>
{/if}

<!-- ########################      End Here ##########################-->
</form>
	  
{include file="foot.tpl"}


Return current item: CoreAsset