<style type="text/css">
.style1 {font-size: 16px}
</style>
<div class="container">
<div class="row-fluid">
<div class="span12">
<div class="table-responsive">
<div class="CSSTableGenerator">  
<table border="0" width="98%"  align="center" cellpadding="0" cellspacing="0"  style="border:1px solid #ddd">
<thead>
<tr>
    <th  align="center" width="12"  style="border:1px solid #ddd">&nbsp;S.No</th>
    <th  align="left"  style="border:1px solid #ddd">&nbsp;Company Name</th>
    <th  align="left"  style="border:1px solid #ddd">&nbsp;Address 1</th>
    <th  align="left"  style="border:1px solid #ddd">&nbsp;Address 2</th>
    <th  align="left" style="border:1px solid #ddd" >&nbsp;Phone No</th>
    <th  align="left"  style="border:1px solid #ddd">&nbsp;Tin No</th>
    <th  align="left"  style="border:1px solid #ddd">&nbsp;Cst No</th>
    <th  align="left"  style="border:1px solid #ddd">&nbsp;Cin No</th>
    <th  width="43 "  style="border:1px solid #ddd">Edit</th>
    </tr>
 <?php
include ("../../include/db.php");
$sql="select * from  company_name ";
$rs=mysql_query($sql);
$sno=0;
while($rsdata=mysql_fetch_array($rs))
  {
   $sno=$sno+1;
   $id=$rsdata['c_id'];
   $customer_name=$rsdata['company_name'];	
   $address1=$rsdata['address_1'];
   $address2=$rsdata['address_2'];
   $address3=$rsdata['address_3'];
   $tin_no=$rsdata['tin_no'];
   $cst_no=$rsdata['cst_no'];
   $cin_no=$rsdata['cin_no'];
   $cr_date=$rsdata['created_date'];
 ?>
  <tr>
    <td width="12"  align="center"  style="border:1px solid #ddd"><?php echo $sno; ?></td>
    <td width="63" align="left"  style="border:1px solid #ddd">&nbsp;<?php echo ucfirst($customer_name);?></td>
    <td width="31" align="left"  style="border:1px solid #ddd">&nbsp;<?php echo ucfirst($address1);?></td>
    <td width="31" align="left"  style="border:1px solid #ddd">&nbsp;<?php echo ucfirst($address2);?></td>
    <td width="31" align="left"  style="border:1px solid #ddd">&nbsp;<?php echo ucfirst($address3);?></td>
    <td width="31" align="left" style="border:1px solid #ddd" >&nbsp;<?php echo $tin_no;?></td>
    <td width="31" align="left"  style="border:1px solid #ddd">&nbsp;<?php echo $cst_no;?></td>
    <td width="31" align="left"  style="border:1px solid #ddd">&nbsp;<?php echo $cin_no;?></td>
    <td align="center"  style="border:1px solid #ddd"><img src="img/edit.png" width="17" height="20" title="EDIT" onclick="javascript:add_new_users('master_entry/company_name_creation/company_entry.php?edit_id=<?php echo $id;?>')"/></td>
   </tr>
  <?php } ?>
  </thead>
</table>
</div>
</div>
</div>
</div>
</div>