<?php include('opendb.php'); ?>
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    <title>PSN Telcon</title>
    <script type="text/javascript" src="scripts/jquery-latest.js"></script>
	<link type="text/css" href="includes/style.css" rel="stylesheet" />
    <script type="text/javascript">
        $(function() {
          if ($.browser.msie && $.browser.version.substr(0,1)<7)
          {
			$('li').has('ul').mouseover(function(){
				$(this).children('ul').show();
				}).mouseout(function(){
				$(this).children('ul').hide();
				})
          }
        });        
    </script>
	

<script src="css3-dropdown-menu-demo_files/bsa.js" async="" type="text/javascript"></script><script async="async" src="css3-dropdown-menu-demo_files/s_a5f348233fceef06ba365ab392938d10.js" id="_bsap_js_a5f348233fceef06ba365ab392938d10" type="text/javascript"></script><style id="bsa_css" type="text/css">.one{position:relative}.one .bsa_it_ad{display:block;padding:15px;border:1px solid #e1e1e1;background:#f9f9f9;font-family:helvetica,arial,sans-serif;line-height:100%;position:relative}.one .bsa_it_ad a{text-decoration:none}.one .bsa_it_ad a:hover{text-decoration:none}.one .bsa_it_ad .bsa_it_t{display:block;font-size:12px;font-weight:bold;color:#212121;line-height:125%;padding:0 0 5px 0}.one .bsa_it_ad .bsa_it_d{display:block;font-size:11px;color:#434343;font-size:12px;line-height:135%}.one .bsa_it_ad .bsa_it_i{float:left;margin:0 15px 10px 0}.one .bsa_it_p{display:block;text-align:right;position:absolute;bottom:10px;right:15px}.one .bsa_it_p a{font-size:10px;color:#666;text-decoration:none}.one .bsa_it_ad .bsa_it_p a:hover{font-style:italic}</style></head>
<body background="back_ground.jpg">

<?php include('includes/top.php'); ?>
Vehicle <img src="images/right_arow.gif"> <a href="mast_menu.php">Master</a> <img src="images/right_arow.gif">District
<br><br><br>

<CENTER>
<BR>
<FORM ACTION='<?print $PHP_SELF?>' METHOD='POST'>
<table cellspacing=1 cellpadding=1 bgcolor=green>
<tr bgColor='c1d7bb'><td align=center>
<table>
<tr bgColor='c1d7bb'><td colspan=2 align=center>SUPPLIER MASTER</TD></TR>
<tr style={background:yellow}><td>Supplier Name <BR>
 <FONT SIZE=1 color=red>(Non editable)</font></td>
  <td><input type=text name='supname' size=40 onKeyDown=chkey(this); style={color:red} title='As it will create A/c head, it cannot be edited'></td></tr>
<tr bgColor='c1d7bb'><td>Sup Type </td><td><select name='suptype'>
<option>Manufacturer</option>
<option>Dealer</option>
<option>Other</option>
</select>
</td></tr>

<tr bgColor='c1d7bb'><td>Address1 </td><td><input type=text name='addr1' size=40></td></tr>
<tr bgColor='c1d7bb'><td>Address2 </td><td><input type=text name='addr2' size=40></td></tr>
<tr bgColor='c1d7bb'><td>City </td><td><input type=text name='city' size=40></td></tr>
<tr bgColor='c1d7bb'><td>District </td><td><input type=text name='dist' size=40></td></tr>
<tr bgColor='c1d7bb'><td>State </td><td><input type=text name='stat' size=40></td></tr>
<tr bgColor='c1d7bb'><td>Pin No </td><td><input type=text name='pin' size=40></td></tr>
<tr bgColor='c1d7bb'><td>Phone1 </td><td><input type=text name='phone1' size=40></td></tr>
<tr bgColor='c1d7bb'><td>Phone2 </td><td><input type=text name='phone2' size=40></td></tr>
<tr bgColor='c1d7bb'><td>Tin NO </td><td><input type=text name='tin' size=40></td></tr>
<tr bgColor='c1d7bb'><td>CST No & Date </td><td><input type=text name='cst' size=40></td></tr>
<tr bgColor='c1d7bb'><td>Email_id </td><td><input type=text name='email' size=40></td></tr>
<tr bgColor='c1d7bb'><td>Web</td><td><input type=text name='web' size=40></td></tr>
<TR bgColor='c1d7bb'><TD COLSPAN=2 ALIGN=CENTER><INPUT TYPE=SUBMIT NAME= 'submit' VALUE='  SAVE  '></TD></TR>

</table>
</td></tr>
</table>
</FORM>

<?
$result=mysqli_query($db,"select * from sup_master where branch='$brcode' order by supname")or die(mysqli_error($db));
//print "<table cellspacing=1 cellpadding=1 border=1 width=1200>";
//print "<th>No.<th>Name <th>Addr1 <th>Addr 2 <th>City <th>Dist. <th>State <th>Pin <th>Phone1 <th>Phone 2 ";
//print "<th>Tin <th>CST No. <th>Email <th>Web<th>";
$i=1;
while($row=mysqli_fetch_row($result))
{
 print "\n<tr bgColor='c1d7bb' onMouseOver=bgColor='lightsteelblue' onMouseOut=bgColor='c1d7bb'><td>".$i++."</td><td>$row[1]</td><td>$row[2]</td><td>$row[3]</td>";
 print "<td>$row[4]</td><td>$row[5]</td><td>$row[6]</td><td>$row[7]</td><td>$row[8]</td>";
 print "<td>$row[9]</td><td>$row[10]</td><td>$row[11]</td><td>$row[12]</td><td>$row[13]</td>";
 print "\n<td align=center><a href='editsupp_mast.php?code=$row[0]' title='Edit Entry' onMouseOver='window.status=''; return true'><img src='../img/edit.gif' border=0></a></td></tr>";
}
?>
</table>

<!-- AdPacks.com Ad Code -->
<script type="text/javascript">
(function(){
  var bsa = document.createElement('script');
     bsa.type = 'text/javascript';
     bsa.async = true;
     bsa.src = '//s3.buysellads.com/ac/bsa.js';
  (document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
})();
</script>
<!-- End AdPacks.com Ad Code -->



</body></html>