查看文件: show_webpic.php
大小: 1.78 KB
类型: application/octet-stream
<? require('system/login.php'); ?> <?php require_once('../Connections/BE2.php'); ?> <?php mysql_select_db($database_BE2, $BE2); $query_Rr3 = "SELECT * FROM webpic WHERE 1 ORDER BY gid DESC" ; $Rr3 = mysql_query($query_Rr3, $BE2) or die(mysql_error()); $row_Rr3 = mysql_fetch_assoc($Rr3); $totalRows_Rr3 = mysql_num_rows($Rr3); ?> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td width="98%"> </td> </tr> <tr> <td height="87"><table width="160" border="0" cellpadding="0" cellspacing="0" > <tr> <?php $Rr3_endRow = 0; $Rr3_columns = 5; // number of columns $Rr3_hloopRow1 = 0; // first row flag do { if($Rr3_endRow == 0 && $Rr3_hloopRow1++ != 0) echo "<tr>"; ?> <td width="192"><table width="149" border="0" cellspacing="2" cellpadding="2"> <tr> <td height="39" colspan="2" align="center"><? $mmfile='../webpic/_thumbs/'.$row_Rr3['jpg'];?> <img src="<?php echo $mmfile; ?>" border="0" /></td> </tr> <tr> <td width="137" class="font7"><?php echo $row_Rr3['gdoc']."<br>".$row_Rr3['wsize']; ?></td> <td width="42" class="font7"><input name="sel" type="button" onClick="setpicid('<?= $row_Rr3['jpg']?>')" value="選取" /></td> </tr> </table></td> <?php $Rr3_endRow++; if($Rr3_endRow >= $Rr3_columns) { ?> </tr> <?php $Rr3_endRow = 0; } } while ($row_Rr3 = mysql_fetch_assoc($Rr3)); if($Rr3_endRow != 0) { while ($Rr3_endRow < $Rr3_columns) { echo("<td> </td>"); $Rr3_endRow++; } echo("</tr>"); }?> </table></td> </tr> <tr> <td> </td> </tr> </table> <?php mysql_free_result($Rr3); ?>
保存
取消
返回文件列表