📄 newsadmin.php
字号:
<div align="center">标题</div>
</td>
<td background="images/lines.gif" width="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/huang_bg.gif" width="55">
<div align="center">发布人</div>
</td>
<td background="images/lines.gif" width="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/huang_bg.gif">
<div align="center">发布时间</div>
</td>
<td width="1" background="images/lines.gif"><img src="images/spacer.gif" width="1" height="1"></td>
<td width="38" background="images/huang_bg.gif">
<div align="center">操作</div>
</td>
<td background="images/list_box.gif" width="6"><img src="images/spacer.gif" width="1" height="1"></td>
<td width="12" bgcolor="#dcf6ce"></td>
</tr>
<tr>
<td width="5" bgcolor="#dcf6ce" height="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/list_box.gif" width="6" height="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/h_dot.gif" height="1" width="26"><img src="images/spacer.gif" width="1" height="1"></td>
<td height="1" width="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/h_dot.gif" height="1" width="340"><img src="images/spacer.gif" width="1" height="1"></td>
<td height="1" width="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/h_dot.gif" height="1" width="55"><img src="images/spacer.gif" width="1" height="1"></td>
<td height="1" width="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/h_dot.gif" height="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td height="1" width="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/h_dot.gif" height="1" width="38"></td>
<td background="images/list_box.gif" width="6" height="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td width="12" bgcolor="#dcf6ce" height="1"></td>
</tr>
<!--###########################################-->
<?php
$rowi = ($page-1)*$pagesize;
for($i=0;$i<$pagesize;$i++){
if($rowi>($recordcount-1)){
//echo "</table>";
}
else{
mysql_data_seek($classbcquery,$rowi);
$classbcarray=mysql_fetch_array($classbcquery);
?>
<tr>
<td width="5" bgcolor="#dcf6ce"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/list_box.gif" width="6"><img src="images/spacer.gif" width="1" height="1"></td>
<td width="26" bgcolor="#dcf6ce"><center><?php echo $rowi+1;?></center></td>
<td background="images/lines.gif" width="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td width="340" bgcolor="#dcf6ce"><?php echo '<a href="javascript:dispnews('.$classbcarray["id"].')">'.$classbcarray["title"].'</a>';?></td>
<td background="images/lines.gif" width="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td bgcolor="#dcf6ce" width="55">
<div align="center"><?php echo $classbcarray["publisher"];?></div>
</td>
<td background="images/lines.gif" width="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td bgcolor="#dcf6ce">
<div align="center"><?php echo $classbcarray["date"];?></div>
</td>
<td width="1" bgcolor="#dcf6ce" background="images/lines.gif"><img src="images/spacer.gif" width="1" height="1"></td>
<td width="38" bgcolor="#dcf6ce">
<div align="center"><?php echo '<a href=newsadmin.php?op=delete&flag=on&id='.$classbcarray["id"].'&userid='.$userid.'>';?><img src="images/delete.gif" width="16" height="16" border="0" title="删除" alt="删除"></a><img src="images/spacer.gif" width="3" height="10"><?php echo '<a href=newsadmin.php?op=modify&flag=on&id='.$classbcarray["id"].'&userid='.$userid.'>';?><img src="images/modify.gif" width="16" height="16" border="0" alt="修改"></a></div>
</td>
<td background="images/list_box.gif" width="6"><img src="images/spacer.gif" width="1" height="1"></td>
<td width="12" bgcolor="#dcf6ce"></td>
</tr>
<tr>
<td width="5" bgcolor="#dcf6ce" height="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/list_box.gif" width="6" height="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/h_dot.gif" height="1" width="26"><img src="images/spacer.gif" width="1" height="1"></td>
<td height="1" width="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/h_dot.gif" height="1" width="269"><img src="images/spacer.gif" width="1" height="1"></td>
<td height="1" width="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/h_dot.gif" height="1" width="55"><img src="images/spacer.gif" width="1" height="1"></td>
<td height="1" width="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/h_dot.gif" height="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td height="1" width="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td background="images/h_dot.gif" height="1" width="38"></td>
<td background="images/list_box.gif" width="6" height="1"><img src="images/spacer.gif" width="1" height="1"></td>
<td width="12" bgcolor="#dcf6ce" height="1"></td>
</tr>
<?php
$rowi = $rowi+1;
}
}
echo "</table>";
?>
<!--##############</table>#############################-->
<!--###########################################-->
<table border="0" cellpadding="0" cellspacing="0" width="567" name="list_bottom">
<!-- fwtable fwsrc="listbm.png" fwbase="listbm.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<tr>
<td rowspan="6" bgcolor="#dcf6ce"><img src="images/spacer.gif" width="5" height="35" border="0"></td>
<td rowspan="2" colspan="9"><img name="listbm_r1_c2" src="images/listbm_r1_c2.gif" width="455" height="6" border="0"></td>
<td><img name="listbm_r1_c11" src="images/listbm_r1_c11.gif" width="88" height="1" border="0"></td>
<td rowspan="5"><img name="listbm_r1_c12" src="images/listbm_r1_c12.gif" width="7" height="26" border="0"></td>
<td rowspan="6" bgcolor="#dcf6ce"><img src="images/spacer.gif" width="12" height="35" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0"></td>
</tr>
<tr>
<td rowspan="3" bgcolor="#83d160"> 转到:
<input type="text" name="page" size="2" maxlength="3">
页</td>
<td><img src="images/spacer.gif" width="1" height="5" border="0"></td>
</tr>
<tr>
<td rowspan="4" bgcolor="#dcf6ce"><img src="images/spacer.gif" width="346" height="29" border="0"></td>
<td rowspan="3"><img name="listbm_r3_c3" src="images/listbm_r3_c3.gif" width="27" height="20" border="0"></td>
<td><?php echo $firstimage;?></td>
<td bgcolor="#83d160"><img src="images/spacer.gif" width="6" height="16" border="0"></td>
<td><?php echo $pimage;?></td>
<td bgcolor="#83d160"><img src="images/spacer.gif" width="6" height="16" border="0"></td>
<td><?php echo $nimage;?></td>
<td bgcolor="#83d160"><img src="images/spacer.gif" width="6" height="16" border="0"></td>
<td><?php echo $lastimage;?></td>
<td><img src="images/spacer.gif" width="1" height="16" border="0"></td>
</tr>
<tr>
<td rowspan="2" colspan="7"><img name="listbm_r4_c4" src="images/listbm_r4_c4.gif" width="82" height="4" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="3" border="0"></td>
</tr>
<tr>
<td><img name="listbm_r5_c11" src="images/listbm_r5_c11.gif" width="88" height="1" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0"></td>
</tr>
<tr>
<td colspan="10" bgcolor="#dcf6ce"><img src="images/spacer.gif" width="204" height="9" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="9" border="0"></td>
</tr>
</table>
<?php echo '<input type=hidden name="userid" value='.$userid.'>'; ?>
</form>
<?php
}else{
echo "<center>对不起,没有数据供查看!!</center>";
}
?>
<!--###########################################-->
<!--###########################################-->
<br>
<table width="441" border="0" cellspacing="0" cellpadding="0" height="221">
<tr>
<td width="4" height="4"><img src="images/box_top_left.gif" width="4" height="4"></td>
<td background="images/box_bg_top.gif" height="4"><img src="images/box_top.gif" width="136" height="4"></td>
<td width="4" height="4"><img src="images/box_top_right.gif" width="4" height="4"></td>
</tr>
<tr>
<td background="images/box_bg_left.gif" width="4"><img src="images/box_left.gif" width="4" height="170"></td>
<td background="images/box_bg.gif" align="center">
<form name="form1" method="post" action="newsadmin.php">
<table border="0" cellspacing="2" cellpadding="0">
<tr>
<td align="right" colspan="5">
<div align="center"><font color="#FFFFFF">::::发布新闻::::</font></div>
</td>
</tr>
<tr>
<td align="right"><font color="#FFFFFF">标题:</font></td>
<td colspan="4" align="left">
<input type="text" name="title" size="30" maxlength="20">
</td>
</tr>
<tr>
<td valign="top" align="right"><font color="#FFFFFF">内容:</font></td>
<td colspan="4" valign="top" align="left">
<textarea name="memo" cols="28" rows="6"></textarea>
</td>
</tr>
<tr>
<td align="right"><font color="#FFFFFF">作者:</font></td>
<td colspan="4" align="left">
<input type="text" name="author" size="8" maxlength="8">
<font color="#FFFFFF">来源:</font>
<input type="text" name="from" size="13" maxlength="20">
</td>
</tr>
<tr align="center">
<td colspan="5">
<input type="submit" name="Submit" value="写好了,提交" onClick="ok_onclick();return false">
<input type="reset" name="Submit2" value="写错了,重来">
</td>
</tr>
</table>
<input type=hidden name="userid" value=<?php echo $userid;?>>
<input type=hidden name="op" value="add">
<input type=hidden name="flag" value="on">
</form>
</td>
<td background="images/box_bg_right.gif" width="4"><img src="images/box_right.gif" width="4" height="170"></td>
</tr>
<tr>
<td width="4" height="4"><img src="images/box_bottom_left.gif" width="4" height="4"></td>
<td background="images/box_bg_bottom.gif" height="4"><img src="images/box_bottom.gif" width="136" height="4"></td>
<td width="4" height="4"><img src="images/box_bottom_right.gif" width="4" height="4"></td>
</tr>
</table>
<br>
</td>
<td background="images/box2.gif"><img name="box2" src="images/box2.gif" width="5" height="1" border="0"></td>
<td rowspan="6" bgcolor="#dcf6ce"><img src="images/spacer.gif" width="15" height="330" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0"></td>
</tr>
<tr>
<td background="images/box2.gif"><img name="right_r7_c13" src="images/right_r7_c13.gif" width="5" height="301" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="301" border="0"></td>
</tr>
<tr>
<td rowspan="3" colspan="4"><img name="right_r8_c3" src="images/right_r8_c3.gif" width="100" height="21" border="0"></td>
<td colspan="4"><img name="right_r8_c7" src="images/right_r8_c7.gif" width="380" height="3" border="0"></td>
<td rowspan="3" colspan="3"><img name="right_r8_c11" src="images/right_r8_c11.gif" width="100" height="21" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="3" border="0"></td>
</tr>
<tr>
<td colspan="4" bgcolor="#dcf6ce"><img src="images/copyright.gif" width="380" height="14" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="14" border="0"></td>
</tr>
<tr>
<td colspan="4"><img name="right_r10_c7" src="images/right_r10_c7.gif" width="380" height="4" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="4" border="0"></td>
</tr>
<tr>
<td colspan="11" bgcolor="#dcf6ce"><img src="images/spacer.gif" width="580" height="7" border="0"></td>
<td><img src="images/spacer.gif" width="1" height="7" border="0"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -