swatisonee Posted May 12, 2010 Share Posted May 12, 2010 Hi, My php code is supposed to go into this html template. In there a way I can call include ("file.css") and have this template below appear for each table within my form - there are 4 such tables and each has 4-5 php links . If i leave it like this, i think there is every chance of an error while the php coding gets underway. If not, could anyone please suggest a cleaner way for this ? Many thanks:Swati <div align=center> <table class=MsoTableGrid border=0 cellspacing=4 cellpadding=0 style='background:#000058'> <tr style='height:24.1pt'> <td width=95 style='width:2.0cm;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=CHECKBOX><span lang=EN-US> </span></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US>ADD</span></b></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US>UPDATE</span></b></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 7.2pt;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US>VIEW</span></b></p> </td> </tr> <tr style='height:24.1pt'> <td width=95 style='width:2.0cm;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=CHECKBOX><span lang=EN-US>GROUP</span></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US> <? echo "<a href=\"add_group1.php?Userid=$userid\"> <img width=33 height=33 src="salesfinally_files/image002.gif"></span></a>";?></b></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US><img width=33 height=33 src="salesfinally_files/image002.gif"></span></b></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 7.2pt;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US><img width=33 height=33 src="salesfinally_files/image002.gif"></span></b></p> </td> </tr> <tr style='height:24.1pt'> <td width=95 style='width:2.0cm;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=CHECKBOX><span lang=EN-US>company</span></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US><img width=29 height=29 src="salesfinally_files/image003.gif"></span></b></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US><img width=29 height=29 src="salesfinally_files/image003.gif"></span></b></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 7.2pt;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US><img width=29 height=29 src="salesfinally_files/image003.gif"></span></b></p> </td> </tr> <tr style='height:24.1pt'> <td width=95 style='width:2.0cm;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=CHECKBOX><span lang=EN-US>ADDRESS</span></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US style='background:olive'><img width=26 height=26 src="salesfinally_files/image004.gif" alt="Adobe Systems"></span></b></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US style='background:olive'><img width=26 height=26 src="salesfinally_files/image004.gif" alt="Adobe Systems"></span></b></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 7.2pt;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US style='background:olive'><img width=26 height=26 src="salesfinally_files/image004.gif" alt="Adobe Systems"></span></b></p> </td> </tr> <tr style='height:24.1pt'> <td width=95 style='width:2.0cm;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=CHECKBOX><span lang=EN-US>contact</span></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US style='background:gray'><img width=24 height=24 src="salesfinally_files/image005.gif" alt="Adobe Systems"></span></b></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US style='background:gray'><img width=24 height=24 src="salesfinally_files/image005.gif" alt="Adobe Systems"></span></b></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 7.2pt;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US style='background:gray'><img width=24 height=24 src="salesfinally_files/image005.gif" alt="Adobe Systems"></span><span lang=EN-US> </span></b></p> </td> </tr> <tr style='height:24.1pt'> <td width=95 style='width:2.0cm;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=CHECKBOX><span lang=EN-US>OVERSEAS</span></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US><img width=19 height=26 src="salesfinally_files/image006.gif" alt="Adobe Systems"></span></b></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 0cm;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US> </span></b></p> </td> <td width=170 style='width:102.05pt;padding:0cm 0cm 0cm 7.2pt;height:24.1pt'> <p class=TODOTEXT style='margin-left:0cm'><b><span lang=EN-US> </span></b></p> </td> </tr> </table> </div> Quote Link to comment https://forums.phpfreaks.com/topic/201452-can-i-use-an-include-filecss-for-repeating-table-format/ Share on other sites More sharing options...
haku Posted May 12, 2010 Share Posted May 12, 2010 What? Quote Link to comment https://forums.phpfreaks.com/topic/201452-can-i-use-an-include-filecss-for-repeating-table-format/#findComment-1056918 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.