?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php echo date('Y-m-d H:i:s', $row['addtime']); ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php echo $row['total']; ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php echo $status[$row['status']]; ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php echo reg_search($wd, $row['userorder']); ?> </td> <td align="center" valign="middle" class="borderbottom"><a href="edit.php?id=<?php echo $row['id']; ?> " target="mainFrame" onFocus="this.blur()" class="add">编辑</a><span class="gray"> | </span><a href="action.php?a=delete&id=<?php echo $row['id']; ?> " target="mainFrame" onFocus="this.blur()" class="add">删除</a></td> </tr> <?php } } mysql_free_result($result); mysql_close($conn);
?> " type="text" class="vam text" value="1" autocomplete="off" /> <li> <div class="pro-panels"> <p class="p-img"><a target="_blank" href="article.php?id=<?php echo $value['id']; ?> " title=""><img src="<?php echo $path . '218_' . $value['picname']; ?> "/></a></p> <p class="p-name"><a target="_blank" href="article.php?id=<?php echo $value['id']; ?> " title=""><?php echo reg_search($word, $value['goods']); ?> 移动4G智能手机(黑色)<span class="red"></span></a></p> <p class="p-price"><b>¥<?php echo $value['price']; ?> </b></p> <div class="p-button clearfix"> <table colspan="0" border="0" rowspan="0"> <tbody> <tr> <?php if (empty($_SESSION['user'])) { ?> <td onclick="nologin();"><a target="_blank" class="p-button-cart"><span>加入购物车</span></a></td> <?php
//mysql_num_rows()结果集中的数据条数 while ($row = mysql_fetch_assoc($result)) { ?> <tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'"> <td align="center" valign="middle" class="borderright borderbottom"><?php echo $row['id']; ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php //echo $row['username']; //这里需要用正则来标红查询结果 echo reg_search($wd, $row['username']); ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php echo reg_search($wd, $row['name']); ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php echo $row['sex'] == false ? '男' : '女'; ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php echo $row['address']; ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php echo $row['code']; ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php
?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php echo $value['name']; ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php echo $value['price']; ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php echo $value['num']; ?> </td> <td align="center" valign="middle" class="borderbottom"><?php echo reg_search($wd, $value['userorder']); ?> </td> </tr> <?php } ?> </table></td> </tr> <tr> <td align="left" valign="top" class="fenye"><?php echo $count; ?> 条数据 <?php
//echo $sql;die(); $result = mysql_query($sql); if ($result && mysql_num_rows($result) > 0) { while ($row = mysql_fetch_assoc($result)) { ?> <tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'"> <td align="center" valign="middle" class="borderright borderbottom"><?php echo $row['id']; ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php echo $row['name']; ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php echo reg_search($wd, $row['goods']); ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><?php echo $row['price']; ?> </td> <td align="center" valign="middle" class="borderright borderbottom"><img src="../../public/uploads/64_<?php echo $row['picname']; ?> "></td> <td align="center" valign="middle" class="borderright borderbottom"><font color="red"><?php echo $state[$row['state']]; ?> </font></td> <td align="center" valign="middle" class="borderright borderbottom"><?php