1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
<?php require("configure.php");
?> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=big5" /> <link rel="stylesheet" href="style.css"> <script type="text/javascript" src="flash/objectSwap.js"></script> </head> <body bgcolor="#CFCEE1" LEFTMARGIN="0" TOPMARGIN="0" style="background-repeat:repeat-x" background="image/page_bg.png"> <table width="800" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="800" height="265"><?php require("header.php"); ?></td> </tr> <tr> <td style="padding-top:10;padding-bottom:20"><table width="800" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="566"><img src="image/page_title_line.gif" width="566" height="60"></td> <td width="234" valign="middle" class="title">News </td> </tr> </table></td> </tr> <tr> <td align="left" valign="top"><table width="800" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="180" align="left" valign="top" style="padding-top:20"> </td> <td width="620" height="400" align="right" valign="top"><table width="600" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="subtitle">Coming Event / Trade Show </td> </tr> <tr> <td> <table width="600" border="0" cellpadding="0" cellspacing="0"> <?php
$sql = "SELECT * "; $sql .= "FROM news ";
$result = mysql_query($sql); //$x=1; while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) { echo "<tr><td style='padding-top:10;padding-bottom:10'>"; echo "<p class='news-title'>".$row{'newstitle'}."</p>"; echo "<p class='news-content'>"; echo "<strong>Date:</strong>".$row{'newsDate'}."<br>"; echo "<strong>Venue:</strong>". str_replace("\r", '', preg_replace( "/\n/", "<br>", $row{'newsvenue'} )) . "<br>"; echo "<strong>Booth No:</strong>". str_replace("\r", '', preg_replace( "/\n/", "<br>", $row{'newsbooth'} )) . "</p>"; echo "</td></tr>"; echo "<tr>"; echo "<td background='image/sub_menu_line.gif'><img src='image/sub_menu_line.gif' width='180' height='7'></td>"; echo "</tr>"; } ?> </table></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td height="45" align="right"><p class="footer">Copyright © 2009 Yun Fung Metal Industrial Limited. All Rights reserved. </p> </td> </tr> </table> </body>
</html>
|