Jump to content

How to remove in between lines from table


lak

Recommended Posts

Hi,I m doing billing project, the output will be the table format, Actually what i want is that, i want to remove the line between two rows. that line sholud not be visible.In that table products will be listed like1.hfdshfdhsfds fbdfhj djhgfj _________________________________2.hgfjgjghf dfhgjdhg df dfhgjdfg__________________________________3. hgfj jdfhg jdfhgjdfhgjdfg_______________________________I want to remove the line between proucts, How to do that?

<table width="657" height="297" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" CLASS=TD1>      <tr  CLASS="TD">        <td width="33" height="20" style="table">S.No</td>          <td width="485"><div align="center">PARTICULARS</div></td>		  <td width="24"><div align="center">No.</div></td>        <td width="65" ><div align="center">RS</div></td>               <td width="20" > <div align="center">P. </div></td>      </tr>        <tr  CLASS="TD">          <td height="42" valign="top"><div align="center">1.</div></td>        <td valign="top"> Product :<?php echo $row['ProdName']; ?>   Model No:RKS - <?php echo $row['modelno']; ?> <?php  if($row['ProdName'] == "Aluminium Ladder") {						switch($row['modelno'])	{		case "501":						echo "Walasl support + ladder provided with ";				break;		case 502:		echo "Self Support ladder provided with  ";		//echo "hi";		break;		case 503:						echo "Self support ladder with Tool Tray ";				break;		case 504:		echo "Self support extension ladder with Big wheel ";		break;				case 506:		echo "Wall Support extension ladder provided with  ";		break;		case 507:				echo "Self support extension ladder ";		break;		case 508:		echo "Self support extension ladder with small Wheel  ";		break;		case 509:				echo "Aluminium Trolley Tower extension ladder ";		break;		case 510:		echo "Aluminium Trolley Tower extension ladder  ";		break;		case 511:				echo "Aluminium alloy wide step ladder with Trolley ";		break;						case 519:				echo "Aluminium Tiltable Trolley Tower extension ladder with Projected platform ";		break;		case 520:		echo "Aluminium Tiltable & Variation Trolley Tower extension ladder  ";		break;		case 540:				echo "Aluminium Self support Tubular ladder with Tool Tray ";		break;		case 541:		echo "MS Scaffold / Aluminium Scaffold ";		break;				}								 ?>Height : <?php echo $row['height']; ?> feet . Step Type : <?php echo $row['capacity']."<br>"; } 		  if($row['ProdName'] == "Trolley"){ ?>		  			  Capacity: <?php echo $row['capacity'];		  	switch($row['modelno'])	{		case "512":		echo "Wooden and Sack Trolley";		break;				case 513:		echo "Tipping type heavy wheel barrow";		break;				case 514:		echo "Box Type loading wheel barrow";		break;				case 515:		echo "Tipping type heavy wheel barrow";		break;				case 516:		echo "Box Type loading wheel barrow";		break;				case 517:		echo "Tipping type heavy wheel barrow";		break;				case 521:		echo "Box Type loading wheel barrow";		break;				case 522:		echo "Tipping type heavy wheel barrow";		break;				case 523:		echo "Box Type loading wheel barrow";		break;				case 524:		echo "Tipping type heavy wheel barrow";		break;				case 525:		echo "Box Type loading wheel barrow";		break;				case 526:		echo "Tipping type heavy wheel barrow";		break;				case 527:		echo "Box Type loading wheel barrow";		break;				case 528:		echo "Box Type loading wheel barrow";		break;				case 529:		echo "Tipping type heavy wheel barrow";		break;				case 530:		echo "Box Type loading wheel barrow";		break;				case 531:		echo "Tipping type heavy wheel barrow";		break;				case 532:		echo "Box Type loading wheel barrow";		break;				case 533:		echo "Tipping type heavy wheel barrow";		break;				case 534:		echo "Box Type loading wheel barrow";		break;					} }?><br />		 </td>		  <td align="center"><div align="center">1</div></td>        <td><div align="right"><?php 		// $s = "Rs.1200.35";		 // $s = explode($s,".");		  //echo $s[0];		  echo $row['price']."<br>";//		  echo explode("rs.1200.75",".");  ?>		          </div></td>        <td> </td>        </tr><?php 		/* $i=0;		$h=1;*/				for($j=2; $j<=7; $j++)		{			$ProdName = "ProdName".$j;			$modelno= "modelno".$j;			$height= "height".$j;			$capacity= "capacity".$j;			$discount= "discount".$j;			$price1= "price".$j;			if($row[$ProdName])			{			?>        <tr CLASS="TD"><td height="20"><div align="center"><?php echo $j ; ?></div>			    </td>				  <td valign="top" ><p> Product :<?php echo $row[$ProdName]; ?>  Model No:RKS - <?php echo $row[$modelno]; ?> <?php  if($row[$ProdName] == "Aluminium Ladder") {				  			switch($row[$modelno])	{		case "501":				echo "Wall support + ladder provided with";				break;		case 502:				echo "Self Support ladder provided with";//				echo $row['modelno'];//echo "hi";		        break;		case 503:						echo "Self support ladder with Tool Tray ";				break;		case 504:		echo "Self support extension ladder with Big wheel ";		break;				case 506:		echo "Wall Support extension ladder provided with  ";		break;		case 507:				echo "Self support extension ladder ";		break;		case 508:		echo "Self support extension ladder with small Wheel  ";		break;		case 509:				echo "Aluminium Trolley Tower extension ladder ";		break;		case 510:		echo "Aluminium Trolley Tower extension ladder  ";		break;		case 511:				echo "Aluminium alloy wide step ladder with Trolley ";		break;						case 519:				echo "Aluminium Tiltable Trolley Tower extension ladder with Projected platform ";		break;		case 520:		echo "Aluminium Tiltable & Variation Trolley Tower extension ladder  ";		break;		case 540:				echo "Aluminium Self support Tubular ladder with Tool Tray ";		break;		case 541:		echo "MS Scaffold / Aluminium Scaffold ";		break;	} ?>Height : <?php echo $row[$height]; ?> feet <br />Step Type : <?php echo $row[$capacity]."<br>"; }  		 		 if($row[$ProdName] == "Trolley"){ ?> Capacity: <?php echo $row[$capacity]."<br>";		 		switch($row[$modelno])	{		case "512":		echo "Wooden and Sack Trolley";		break;				case 513:		echo "Tipping type heavy wheel barrow";		break;				case 514:		echo "Box Type loading wheel barrow";		break;				case 515:		echo "Tipping type heavy wheel barrow";		break;				case 516:		echo "Box Type loading wheel barrow";		break;				case 517:		echo "Tipping type heavy wheel barrow";		break;				case 521:		echo "Box Type loading wheel barrow";		break;				case 522:		echo "Tipping type heavy wheel barrow";		break;				case 523:		echo "Box Type loading wheel barrow";		break;				case 524:		echo "Tipping type heavy wheel barrow";		break;				case 525:		echo "Box Type loading wheel barrow";		break;				case 526:		echo "Tipping type heavy wheel barrow";		break;				case 527:		echo "Box Type loading wheel barrow";		break;				case 528:		echo "Box Type loading wheel barrow";		break;				case 529:		echo "Tipping type heavy wheel barrow";		break;				case 530:		echo "Box Type loading wheel barrow";		break;				case 531:		echo "Tipping type heavy wheel barrow";		break;				case 532:		echo "Box Type loading wheel barrow";		break;				case 533:		echo "Tipping type heavy wheel barrow";		break;				case 534:		echo "Box Type loading wheel barrow";		break;	} }			?></p>		  </td>   		  <td align="center"><div align="center">1</div></td>	              <td >	                	                          <p align="right"><?php 		 echo $row[$price1]."<br>"; ?></p></td>		                                      <td > </td>                <?php	} 		 		else		{		?>			<?php	}		/*else		{ 				$i=$i+1;		$h=79*$i;		}*/		}				?>        <tr>            <td rowspan="3"> </td>          <td height="22"><div align="right">Total     : </div></td>                         <td colspan=2 align=right> <div align="right"><?php echo $row['price']+$row['price1']+$row['price2']+$row['price3']+$row['price4']+$row['price5']+$row['price6']+$row['price7']; ?></div></td>                <td align=right> </td>        <tr>          <td height="30">            <div align="right">              <?php  if($row['discount'] != "No")  {?>Discount :<?php  echo $row['discount']."%"."<br>"; } ?></div></td>            <td COLSPAN=2><div align="RIGHT"><?php echo (($row['discount'])*($row['price']+$row['price1']+$row['price2']+$row['price3']+$row['price4']+$row['price5']+$row['price6']+$row['price7'])/100); ?></div></td>        <td> </td>        <tr>          <td height="24"><div align="right">Net :</div></td>                    <td colspan="2">            <div align="RIGHT">              <div align="right">                <div align="right">                  <?php$kpp = ($row['price']+$row['price1']+$row['price2']+$row['price3']+$row['price4']+$row['price5']+$row['price6'])-(($row['discount'])*($row['price']+$row['price1']+$row['price2']+$row['price3']+$row['price4']+$row['price5']+$row['price6']+$row['price7'])/100);				if($row['discount'] != "No") {  echo $kpp;  } 		else { echo $row['price']; }		?>   </div>                            <td>.                           </tr>			 <tr>  <td height="116" colspan=7 valign="top"><table width="652" border="1" align="center" cellpadding="0" cellspacing="0">    <tr>      <td width="302" rowspan="2" valign="top"><table width="301" height="110" border="0" cellpadding="0" cellspacing="0">          <tr>            <td width="124" height="11" scope="row"><div align="left">No. of Packages</div></td>            <td width="14" align="center" valign="middle" class="style7" scope="row"><div align="center"> <strong>:</strong></div></td>            <td width="163" scope="row"> </td>          </tr>          <tr>            <td height="11" scope="row"><div align="left">Mode of Despatch </div></td>            <td height="11" class="style7" scope="row"><div align="center"> <strong>:</strong></div></td>            <td height="11" scope="row"> </td>          </tr>          <tr>            <td height="22" scope="row"><div align="left">Documents Through</div></td>            <td height="22" class="style7" scope="row"><div align="center"> <strong>:</strong></div></td>            <td height="22" scope="row"> </td>          </tr>          <tr>            <td height="22" scope="row"><div align="left">Buyer's TIN No</div></td>            <td height="22" class="style7" scope="row"><div align="center"> <strong>:</strong></div></td>            <td height="22" scope="row"> </td>          </tr>          <tr>            <td height="22" scope="row"><div align="left">Buyer's CST No</div></td>            <td height="22" class="style7" scope="row"><div align="center"> <strong>:</strong></div></td>            <td height="22" scope="row"> </td>          </tr>      </table></td>      <td width="239" rowspan="2" valign="top"><table width="213" height="110" border="0" cellpadding="0" cellspacing="0">          <tr>            <td width="194" height="9" scope="row"><div align="left">Total </div></td>            <td width="19" class="style7" scope="row"><div align="left">...</div></td>          </tr>          <tr>            <td height="10" scope="row"><div align="left">Packing & Forwarding </div></td>            <td height="10" class="style7" scope="row"><div align="left">...</div></td>          </tr>          <tr>            <td height="19" scope="row"><div align="left">Vat/CST        </div></td>            <td height="19" class="style7" scope="row"><div align="left">...</div></td>          </tr>          <tr>            <td height="19" scope="row"><div align="left">Delivery Charge/Freight Charge</div></td>            <td height="19" class="style7" scope="row"><div align="left">...</div></td>          </tr>          <tr>            <td height="19" scope="row"><div align="right">GrandTotal   </div></td>            <td height="19" class="style7" scope="row"><div align="left">...</div></td>          </tr>      </table></td>      <td width="100" height="88" valign="top"><p> </p></td>    </tr>    <tr>      <td width="100" height="23" valign="top"><p align="center"> </p></td>    </tr>  </table></td>  </tr>    </table>

Link to comment
Share on other sites

But why not use an ordered list?<ol><li>Object 1</li><li>Object 2</li><li>Object 3</li></ol>The numbers appear automatically and browsers will actually interpret it as a list. It helps for Search engine optimization too.

Link to comment
Share on other sites

As i m fresher in PHP, I m not able to get you.. If i use the "ordered list" i ll ve many doubts like, whre i ve to put that coding ... now i want to remove the inbetween lines only.. is there way to remove the visible lines between two rows?... we tried many ways.. we put "bordercolor white", then put separate table for each products.. can you? i will try with the "ordered list" and get back to you

Link to comment
Share on other sites

Well, if you use tables you can always use CSS to make the border-top:0px; and the border-bottom:0px;

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...