www.gusucode.com > 搜一次CMS电影程序 PHP 1.5源码程序 > admin/tools/admin_menu.php
<?php /* '************************************************************************************************** ' 软件名称: 搜一次 Content Management System ' 版本编号: Version 5.X ' 官方网站: http://www.syccms.com ' 官方论坛:http://bbs.syccms.com ' 版权所有: 搜一次开发团队 无痕(QQ:512591) ' 法律顾问: 杭州市元茂律师事务所 严飞律师 ' 郑重声明: ' 1、任何个人或组织不得在未经授权的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息; ' 2、搜一次网络事业部保留此软件的法律追究权利 '************************************************************************************************** */ require_once('../../include/function.php'); $action=SafeRequest("action","get"); if($action=="edit"){ $menu=SafeRequest("menu","post"); $menuarr=explode(chr(13),$menu); $menustr="<!--".$menu."-->\r\n"; $menustr.="<ul>\r\n"; for($i=0;$i<count($menuarr);$i++){ $menuinfo=explode("|",$menuarr[$i]); $menustr.="<li class=list2 m=2 id=IndexMenuL".($i+1)."><a href=".$menuinfo[1]." target=I2>".$menuinfo[0]."</a></li>\r\n"; } $menustr.="<li class=list2 m=2 id=IndexMenuL".($i+1)."><a href=tools/admin_menu.php target=I2>快捷菜单设置</a></li>\r\n"; $menustr.="</ul>"; fwrite(fopen("admin_quickmenu.php","wb"),$menustr); //header("Location:admin_menu.php"); echo "<script>window.location='admin_menu.php'</script>"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <link type="text/css" href="../images/style.css" rel="stylesheet" /> <script language="javascript" src="../js/jquery.js"></script> <title>自定义快捷菜单</title> </head> <body> <div class="r_main"> <div class="r_content"> <div class="r_content_1" > <form action="?action=edit" method="post" name="form1" id="form1"> <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" style="margin-top:10px;"> <tr> <td align="left" class="td_title"> 快捷菜单设置</td> </tr> <tr> <td class="td_border" height="30" style="color:red"> *<span style="color:red">菜单格式</span>说明:“视频管理|admin_video.php”,标题与地址的分隔符为“|”,每条菜单写一行.设置成功后刷新首页即可!</td> </tr> <tr> <td align="center" class="td_border"> <textarea rows="20" name="menu" id="menu" style="width:98%;font-family:Georgia, 'Times New Roman', Times, serif"><?php echo ReplaceStr(substr(file_get_contents("admin_quickmenu.php"),0,strpos(file_get_contents("admin_quickmenu.php"),"-->")),"<!--","");?></textarea></td> </tr> <tr> <td class="td_border"> <input type="submit" class="rb1" value="确认设置快捷菜单" id="btn_menu"></td> </tr> </table> </form> </div> </div> </div> <?php include "../admin_bottom.php" ?> </body> </html>