Location: PHPKode > projects > CoreAsset > coreasset/templates/display_book.tpl
{include file="head.tpl"}
{include file="left.tpl"}

<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="21"></td>
<td width="99%" class="header"><span class="whitetext">

 Book List
</span></td>
<td><img src="images/corner10.gif" width="5" height="21"></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">

<!-- #######################   Paste the Table to Table from here ############## -->
<table cellSpacing="0" cellPadding="0" width="98%" align="center" border="0">
          <tr>
            <td><!--<img title alt src="images/blank.gif" width="1" height="1">--></td>
          </tr>
          <tr>
            <!--<td style="border-left: 1px solid #bbbbbb; border-right: 1px solid #bbbbbb" bgColor="#bbbbbb">-->
			<td>
            <!--<img title height="3" alt src="images/blank.gif" width="1" valign="top">--></td>
          </tr>
          <tr>
            <!--<td style="border-left: 1px solid #bbbbbb; border-right: 1px solid #bbbbbb; padding-left: 18px; padding-right: 23px; padding-top: 11px" vAlign="top" bgColor="#ededed" height="180">-->
			<td>
            {if $mes!=""}
            <table borderColor="#ffffff" cellSpacing="0" cellPadding="0" width="100%" border="0">
              <tr>
                <td class="txt" colspan="4"><font color="RED">{$mes}</font></td>
              </tr>
              <tr>
                <td class="txt"  colspan="4">&nbsp;</td>
              </tr>
            </table>
            {/if}
			<form name="f1"  method="POST">
			<table  cellSpacing="1" cellPadding="0" width="100%" border="0">

            
			<tr><td width="100%" colspan="5">	
			
			
			
			</td></tr>
                <tr>
                  <td class="title_heading" align="left" width="20%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;Book Name </font></td>
                  <td class="title_heading" align="left" width="20%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;Author</font></td>
                  <td class="title_heading" align="left" width="20%" bgColor="#cccccc"><font color="#000000">&nbsp;Publisher</font></td>
                 <td class="title_heading" align="left" width="20%" bgColor="#cccccc"><font color="#000000">&nbsp;ISBN No </font></td>
				 <td class="title_heading" align="left" width="20%" bgColor="#cccccc"><font color="#000000">&nbsp; Edit | Del</font></td>

                  {if $status == 1}
				 {/if}
                </tr>
				
                {if $num > 0}
                {section name=index loop=$book_id}
                  <tr>
		  		
		    <td class="list_item" align="left" width="20%" bgColor="#B5D3DE" height="23">&nbsp;{$book_name[index]}</td>
                    <td class="list_item" align="left" width="20%" bgColor="#B5D3DE" height="23">&nbsp;{$author[index]}</td>
                    <td class="list_item" align="left" width="20%" bgColor="#B5D3DE">&nbsp;{$publisher[index]}</td>
                    <td class="list_item" align="left" width="20%" bgColor="#B5D3DE">&nbsp;{$isbn_no[index]}</td>
					
					{if $status_book[index] == 0 }
					<td align="center" class="list_item" width="20%" bgColor="#B5D3DE" height="23">&nbsp;<a href="edit_book.php?hd83___2y8dh328f____8hhdiw___jd9={$book_id[index]}"><img src="images/edit.gif" border="0" title="Click to Edit"></a> | <a href="display_book.php?hd83___2y8dh328f____8hhdiw___jd9={$book_id[index]}"
					onClick="return conf();">
					
					<img src="images/delete.gif" border="0" title="Click to Delete"></a>
					
					</td>
					{elseif $status_book[index] == 1}
					<td align="center" class="list_item" width="25%" bgColor="#B5D3DE" height="23">&nbsp;<img src="images/edit.gif" border="0" title="Already Added to Purchase Order,Cannot Edit"> | 

					<img src="images/delete.gif" border="0" title="Already Added to Purchase Order , Cannot Delete">
					
					</td>
					
					
					{elseif $status_book[index] == 2}
					<td align="center" class="list_item" width="25%" bgColor="#B5D3DE" height="23">&nbsp;<img src="images/edit.gif" border="0" title="Already Added to Asset,Cannot Edit"> | 
					<img src="images/delete.gif" border="0" title="Already Added to Asset, Cannot Delete">
					</td>
								
					{/if}
					
                    {if $status == 1}
					
					{/if}
                  </tr>
                {/section}
           
                {elseif ($num==0) and ($num!="")}
                  <tr>
                    <td class="txt" colspan="9" align="center" width="25%"  height="23"><font color="RED">Sorry ! You have no such Privillage</font></td>
                  </tr>
                  <tr>
                    <td class="txt" align="center" valign="MIDDLE" width="20%" bgColor="#cccccc" colSpan="9" height="24">                    </td>
                  </tr>
                 {else}
                  <tr>
                    <td class="txt" colspan="9" align="center" width="25%"  height="23"><font color="RED">Sorry ! No Book/s found </font></td>
                  </tr>
                
                {/if}
				
              <tr>
                  <td class="btn_bg1" align="center" valign="MIDDLE" width="20%" bgColor="#cccccc" colSpan="5" height="30">
                  <a href="add_book.php"><img src="images/add_book.gif" border="0" title="Click to Add book/s"></a>
                  </td>
                </tr>
				
				
				
            </table>
			</form>
            </td>
          </tr>
          <!--<tr>
            <td style="border-left: 1px solid #bbbbbb; border-right: 1px solid #bbbbbb" bgColor="#bbbbbb">
            <img title height="4" alt src="images/blank.gif" width="1"></td>
          </tr>-->
          </table>
        </td>
      </tr>
    </table>



<!-- ########################      End Here ##########################-->

{include file="foot.tpl"}
{literal}
<script language="javascript">
function conf()
{
	return confirm("Are you Sure you want to Delete The book ?");
}
</script>
{/literal}
Return current item: CoreAsset