Location: PHPKode > projects > CoreAsset > coreasset/templates/manage_purchase.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">

 Manage Purchase Order Section
</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>
          <!--<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">
            <img title height="3" alt src="images/blank.gif" width="1" valign="top"></td>
          </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 cellSpacing="0" cellPadding="0" width="100%" border="0">
              <tr>
                <td class="txt" colspan="6"><font color="RED">{$mes}</font></td>
              </tr>
              <tr>
                <td class="txt"  colspan="6">&nbsp;</td>
              </tr>
            </table>
            {/if}
             <form name="f1" action="?act=edit" method="post">
			 
            <table  cellSpacing="1" cellPadding="2" width="100%" border="0">
                <tr>
                  <td class="title_heading" align="left" width="10%" height="23"><font color="#000000">&nbsp;PO No</font></td>
                  <td class="title_heading" align="left" width="20%" height="23"><font color="#000000">&nbsp;PO Date</font></td>
                  <td class="title_heading" align="left" width="20%" height="23"><font color="#000000">&nbsp;Vendor</font></td>
                  <td class="title_heading" align="left" width="20%" height="23" nowrap><font color="#000000">&nbsp;Item</font></td>
                  <td class="title_heading" align="center" width="16%" height="23"><font color="#000000">&nbsp;Make Asset</font></td>
                  <td class="title_heading" align="center" width="15%" height="23"><font color="#000000">&nbsp;Edit | Del</font></td>
                </tr>
				
				{if $num - $num_book_rows > 0}
                {section name=index loop=$po_no} 
				  {if $cat_id[index] != $cat_id_book}
                  <tr>
				    
                    <td class="list_item" align="left" width="10%"  height="23">&nbsp;{$po_no[index]}</td>
                    <td class="list_item" align="left" width="20%"  height="23">&nbsp;{$po_date[index]}</td>
                    <td class="list_item" align="left" width="20%"  height="23">&nbsp;{$vendor_name[index]}</td>
                    <td class="list_item"align="left" width="20%"  height="23" nowrap>{$equipment_name[index]}</td>
                    <td class="list_item" align="center" width="15%"  height="23">
                    {if $flag[index]==0}
                    &nbsp;<a href="add_asset.php?fill=1&dhu283__82y8f={$vendor_id[index]}&dh32__jd3ud={$equipment_id[index]}&tr64r7__38ud={$nof_pcs[index]}&idu392__d9j__932uf={$po_no[index]}"><img border="0" src="images/mk_asset.gif" title="Make it Asset"></a>
                    {else}
                    <img border="0" src="images/right.gif" title="Already Added">
                    {/if}
					
                    </td>
					
                    <td align="center" class="list_item" width="20%" bgColor="#B5D3DE" height="23">&nbsp;{if $flag[index] == 0}<a href="edit_purchase.php?hd83___2y8dh328f____8hhdiw___jd9={$po_no[index]}">{/if}<img src="images/edit.gif" border="0" title="Click to Edit"></a> | <a href="manage_purchase.php?hd83___2y8dh328f____8hhdiw___jd9={$po_no[index]}" onClick="return conf({$flag[index]});"><img src="images/delete.gif" border="0" title="Click to Dlete"></a>
					
					</td>
                  </tr>
				 {/if}
				 
                {/section}
                <tr>
                  <td class="btn_bg1" align="center" valign="MIDDLE" width="20%"  colspan="6" height="30">
                  <a href="add_purchase.php"><img src="images/add_po.gif" border="0" title="Click to Add Purchase Order"></a>
                  </td>
                </tr>
                {elseif ($num==0) and ($num!="")}
                  <tr>
                    <td class="txt" colspan="6" 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%"  colspan="6" height="24">&nbsp;
                    
                    </td>
                  </tr>
                 {else}
                  <tr>
                    <td class="txt" colspan="6" align="center" width="25%"  height="23"><font color="RED">Sorry ! No Purchase Order still Added</font></td>
                  </tr>
                <tr>
                  <td class="btn_bg1" align="center" valign="MIDDLE" width="20%"  colspan="6" height="30">
                  <a href="add_purchase.php"><img src="images/add_po.gif" border="0" title="Click to Add Purchase Order"></a>
                  </td>
                </tr>
                {/if}
              

            </table>
			<table>
			<tr><td height="20"></td></tr>
			</table>
			<table  cellSpacing="1" cellPadding="0" width="100%" border="0">

                <tr><td colspan="6" class="txtbox_bgcolor"><font color="#000000">&nbsp;&nbsp;&nbsp;&nbsp;Purchase Order List for Book/s</font></td></tr>
				<tr><td colspan="6"  align="center" bgcolor="#FBFBE2" height="20">&nbsp;</td></tr>
                <tr>
                  <td class="title_heading"  width="10%" height="23"><font color="#000000">&nbsp;PO No</font></td>
                  <td class="title_heading"  width="20%" height="23"><font color="#000000">&nbsp;PO Date</font></td>
                  
                  <td class="title_heading"  width="20%" height="23"><font color="#000000">&nbsp;Book/s</font></td>
                  <td class="title_heading"  width="15%" height="23"><font color="#000000">&nbsp;Make Asset</font></td>
                  <td class="title_heading"  width="20%" height="23"><font color="#000000">&nbsp;<!--Edit | -->Delete</font></td>
                </tr>

                {if $num_book_rows > 0}
                {section name=inde loop=$po_no1} 
				  
                  <tr>
				  
				   {assign var="i" value=$book_length++}
                    <td class="list_item" align="left" width="10%" bgColor="#B5D3DE" height="23">&nbsp;{$po_no1[inde]}</td>
                    <td class="list_item" align="left" width="20%" bgColor="#B5D3DE" height="23">&nbsp;{$po_date1[inde]}</td>
                    <td class="list_item"align="left" width="20%" bgColor="#B5D3DE" height="23">{$arr1[inde]}</td>
                    <td class="list_item" align="center" width="15%" bgColor="#B5D3DE" height="23">
					
                    {if $flag_book[inde]==0}
					
                    &nbsp;<a href="add_asset_book.php?fill=1&dh32__jd3ud={$book_final[$i]}& pcs={$count_el[$i]}&idu392__d9j__932uf={$po_no1[inde]}"><img border="0" src="images/mk_asset.gif" title="Make  Asset"></a>
                    {else}
                    <img border="0" src="images/right.gif" title="Already Added">
                    {/if}
                    </td>
                    <td align="center" class="list_item" width="20%" bgColor="#B5D3DE" height="23">&nbsp;<!--<a href="edit_purchase.php?hd83___2y8dh328f____8hhdiw___jd9={$po_no[index]}"><img src="images/edit.gif" border="0" title="Click to Edit"></a> |--> <a href="manage_purchase.php?hd83___2y8dh328f____8hhdiw___jd9={$po_no1[inde]}" onClick="return conf({$flag_book[inde]});"><img src="images/delete.gif" border="0" title="Click to Delete"></a></td>
                  </tr>
				
				
                {/section}
                <tr>
                  <td class="btn_bg1" align="center" valign="MIDDLE" width="20%"  colspan="6" height="30">
				  <a href="add_purchase_book.php"><img src="images/add_po.gif" border="0" title="Click to Add Purchase Order For Book"></a>
				     
                  </td>
                </tr>
				
                {elseif ($num==0) and ($num!="")}
                  <tr>
                    <td class="txt" colspan="6" 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%"  colspan="6" height="24">&nbsp;
                    
                    </td>
                  </tr>
                 {else}
                  <tr>
                    <td class="txt" colspan="6" align="center" width="25%"  height="23"><font color="RED">Sorry ! No Purchase Order for Book still Added</font></td>
                  </tr>
                <tr>
                  <td class="btn_bg1" align="center" valign="MIDDLE" width="20%"  colspan="6" height="30">
                 
				  <a href="add_purchase_book.php"><img src="images/add_po.gif" border="0" title="Click to Add Purchase Order"></a>
				  
				 
                  </td>
                </tr>
                {/if}
    		
            <table borderColor="#ffffff" cellSpacing="0" cellPadding="0" width="100%" border="0">
              <tr>
                <td class="txt"  colspan="6">&nbsp;</td>
              </tr>

              <tr>
                <td align="center" class="txt" colspan="6"><img src="images/mk_asset.gif" border="0">&nbsp;&nbsp;&nbsp;Click to Add Asset for this Order</td>
              </tr>
              <tr>
                <td class="txt"  colspan="6">&nbsp;</td>
              </tr>

              <tr>
                <td align="center" class="txt" colspan="6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/right.gif" border="0">&nbsp;&nbsp;&nbsp;Asset is Already Added for this Order</td>
              </tr>

              <tr>
                <td class="txt"  colspan="6">&nbsp;</td>
              </tr>
            </table>
            </td>
          </tr>
          
          </table>
		  </form>
        </td>
      </tr>
    </table>


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

{include file="foot.tpl"}
{literal}
<script language="Javascript">
function conf(p)
{
  
	if(p==0)
		input_box=confirm("Are you sure? The the Purchase Order will be Deleted !");
	else
	    input_box=confirm("The Asset Corresponding to This Purchase Order will Be Deleted... Are you Sure ?");

	if (input_box==true)
	{
		return true;
	}

	else
	{
		return false;
	}
}
</script>
{/literal}
Return current item: CoreAsset