Location: PHPKode > projects > CoreAsset > coreasset/templates/manage_vendor.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 Vendor 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>
            <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>-->
          <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}

            <table  cellSpacing="1" cellPadding="0" width="100%" border="0">

              <form name="f1" action="?act=edit" method="post">

                <tr>
                  <td class="title_heading" align="left" width="25%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;Vendor Name</font></td>
                  <td class="title_heading" align="left" width="25%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;Vendor Email</font></td>
                  <td class="title_heading" align="left" width="25%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;Vendor Phone</font></td>
                  <td class="title_heading" align="center" width="25%" bgColor="#cccccc" height="23"><font color="#000000">&nbsp;Edit | Delete</font></td>
                </tr>

                {if $num > 0}
                {section name=index loop=$vendor_id}
                  <tr>
                    <td class="list_item" align="left" width="25%" bgColor="#B5D3DE" height="23">&nbsp;{$vendor_name[index]}</td>
                    <td class="list_item" align="left" width="25%" bgColor="#B5D3DE" height="23">&nbsp;{$vendor_email[index]}</td>
                    <td class="list_item" align="left" width="25%" bgColor="#B5D3DE" height="23">&nbsp;{$vendor_phone[index]}</td>
                    <td align="center" class="list_item" width="25%" bgColor="#B5D3DE" height="23">&nbsp;<a href="edit_vendor.php?hd83___2y8dh328f____8hhdiw___jd9={$vendor_id[index]}"><img src="images/edit.gif" border="0" title="Click to Edit"></a> | <a href="manage_vendor.php?hd83___2y8dh328f____8hhdiw___jd9={$vendor_id[index]}" onClick="return conf();"><img src="images/delete.gif" border="0" title="Click to Dlete"></a></td>
                  </tr>
                {/section}
                <tr>
                  <td class="btn_bg1"  align="center" valign="MIDDLE" width="20%" bgColor="#cccccc" colSpan="4" height="30">
                  <a href="add_vendor.php"><img src="images/add_vendor.gif" border="0" title="Click to Add Vendor"></a>
                  </td>
                </tr>
                {elseif ($num==0) and ($num!="")}
                  <tr>
                    <td class="txt" colspan="4" 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="4" height="24">&nbsp;
                    
                    </td>
                  </tr>
                 {else}
                  <tr>
                    <td class="txt" colspan="4" align="center" width="25%"  height="23"><font color="RED">Sorry ! No Vendor still Added</font></td>
                  </tr>
                <tr>
                  <td class="btn_bg1" align="center" valign="MIDDLE" width="20%" bgColor="#cccccc" colSpan="4" height="30">
                  <a href="add_vendor.php"><img src="images/add_vendor.gif" border="0" title="Click to Add Vendor"></a>
                  </td>
                </tr>
                {/if}
              </form>

            </table>
            </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()
{
	input_box=confirm("Are you sure? The the Vendor will be Deleted !");

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

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