www.gusucode.com > 网猫影视系统NetMao Movie 4.6.6 开源版源码程序 > upload/admin/tpl/announce.tpl.php
<?php /* *###################################### * Netmao Movie 4.x - NetMao Movie System * Copyright (c) 2007-2008 NetMao.cn * For further information go to http://www.netmao.cn/ * This copyright notice must stay intact for use. *###################################### */ if(!defined('IN_NetMao')) exit('Access Denied'); ?> <? if($action == 'announce_manage') { ?> <table cellpadding="0" cellspacing="0" border="0" width="100%" height="10"> <tr> <td ></td> </tr> </table> <table cellpadding="2" cellspacing="1" border="0" align=center class="tableBorder"> <tr> <td class="tablerow">当前操作 > 公告管理</td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%" height="10"> <tr> <td ></td> </tr> </table> <table cellpadding="2" cellspacing="1" class="tableborder"> <form name="myform" method="post" action="?action=announce_order"> <tr> <th colspan="4">公告管理</th> </tr> <tr> <td width="50" class="tablerowhighlight">顺序</td> <td width="50" class="tablerowhighlight">ID</td> <td class="tablerowhighlight">公告标题</td> <td width="100" class="tablerowhighlight">管理操作</td> </tr> <? if(is_array($announces))foreach($announces AS $announce){ ?> <tr onmouseout="this.style.backgroundColor='#F1F3F5'" onmouseover="this.style.backgroundColor='#CEEAD3'" bgColor='#F1F3F5'> <td><input name="ids[]" type="hidden" value="<?=$announce[id]?>"> <input name="displayorders[]" type="text" value="<?=$announce[displayorder]?>" size="5"> </td> <td> <?=$announce[id]?> </td> <td height="25"> <?=$announce[name]?> </td> <td><a href="?action=announce_mod&id=<?=$announce[id]?>">修改</a> | <a href="?action=announce_del&id=<?=$announce[id]?>">删除</a></td> </tr> <? } ?> <tr> <td colspan="4" bgcolor="#E1E1E1" align="right"> <?=$pages?> </td> </tr> <tr> <td colspan="4" bgcolor="#E1E1E1"> <input name="submit" type="submit" value=" 提 交 "> </td> </tr> </form> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%" height="10"> <tr> <td ></td> </tr> </table> <table cellpadding="2" cellspacing="1" class="tableborder"> <tr> <th colspan=2>公告添加</th> </tr> <form name="myform" method="post" action="?action=announce_manage"> <tr> <td width="50" class="tablerow">排序</td> <td class="tablerow"><input name="displayorder" type="text" value="0" size="5"></td> </tr> <tr> <td class="tablerow">标题</td> <td class="tablerow"><input name="name" type="text" size="50"> </td> </tr> <tr> <td class="tablerow">内容</td> <td class="tablerow"> <textarea name="content" cols="70" rows="10"><?=$nman[content]?></textarea> </td> </tr> <tr> <td colspan="2" bgcolor="#E1E1E1"><input name="submit" type="submit" value=" 提 交 "></td> </tr> </form> </table> <? }elseif($action == 'announce_mod'){ ?> <table cellpadding="0" cellspacing="0" border="0" width="100%" height="10"> <tr> <td ></td> </tr> </table> <table cellpadding="2" cellspacing="1" border="0" align=center class="tableBorder"> <tr> <td class="tablerow">当前操作 > 公告修改</td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%" height="10"> <tr> <td ></td> </tr> </table> <table cellpadding="2" cellspacing="1" class="tableborder"> <tr> <th colspan=2>公告修改</th> </tr> <form name="myform" method="post" action="?action=announce_mod"> <tr> <td width="50" class="tablerow">排序</td> <td class="tablerow"><input name="displayorder" type="text" value="<?=$announce[displayorder]?>" size="5"></td> </tr> <tr> <td class="tablerow">标题</td> <td class="tablerow"><input name="name" type="text" value="<?=$announce[name]?>" size="55"> </td> </tr> <tr> <td class="tablerow">内容</td> <td class="tablerow"> <textarea name="content" cols="55" rows="10"><?=$announce[content]?></textarea> </td> </tr> <tr> <td colspan="2" bgcolor="#E1E1E1"><input name="id" type="hidden" value="<?=$id?>"><input name="submit" type="submit" value=" 提 交 "></td> </tr> </form> </table> <? } ?>