| @@ -12,43 +12,6 @@ | |||||
| <script src="../static/web/js/moment.min.js"></script> | <script src="../static/web/js/moment.min.js"></script> | ||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| <style>.typetab{text-align:left}.typetab ul{list-style:none}.typetab ul li{float:left;width:64px;height:28px;line-height:28px;background:#f5f5f5;text-align:center;cursor:pointer}.typetab ul .act{background:#e9ecef}.i_table{border:1px solid #eee}</style> | <style>.typetab{text-align:left}.typetab ul{list-style:none}.typetab ul li{float:left;width:64px;height:28px;line-height:28px;background:#f5f5f5;text-align:center;cursor:pointer}.typetab ul .act{background:#e9ecef}.i_table{border:1px solid #eee}</style> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.tagname.value == "") { | |||||
| alert("广告标识不能为空"); | |||||
| document.form1.tagname.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| $(document).ready(function () { | |||||
| $('.datepicker').daterangepicker({ | |||||
| "singleDatePicker": true, | |||||
| "autoApply": true, | |||||
| "showDropdowns": true, | |||||
| "linkedCalendars": false, | |||||
| "timePicker": true, | |||||
| "timePicker24Hour": true, | |||||
| //"timePickerSeconds": true, | |||||
| "showCustomRangeLabel": false, | |||||
| ranges: { | |||||
| '今日': [moment(), moment()], | |||||
| '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | |||||
| '本月': [moment().startOf('month'), moment().startOf('month')], | |||||
| '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')] | |||||
| }, | |||||
| "locale": { | |||||
| format: 'YYYY-MM-DD HH:mm', | |||||
| applyLabel: '确定', | |||||
| cancelLabel: '取消', | |||||
| daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'], | |||||
| monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | |||||
| firstDay: 1 | |||||
| } | |||||
| }, function (start) { | |||||
| $(this).val(start.format("YYYY-MM-DD HH:mm")); | |||||
| }); | |||||
| }) | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form action="ad_add.php" method="post" name="form1" onSubmit="return checkSubmit()"> | <form action="ad_add.php" method="post" name="form1" onSubmit="return checkSubmit()"> | ||||
| @@ -206,6 +169,43 @@ | |||||
| </table> | </table> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.tagname.value == "") { | |||||
| alert("广告标识不能为空"); | |||||
| document.form1.tagname.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| $(document).ready(function () { | |||||
| $('.datepicker').daterangepicker({ | |||||
| "singleDatePicker": true, | |||||
| "autoApply": true, | |||||
| "showDropdowns": true, | |||||
| "linkedCalendars": false, | |||||
| "timePicker": true, | |||||
| "timePicker24Hour": true, | |||||
| //"timePickerSeconds": true, | |||||
| "showCustomRangeLabel": false, | |||||
| ranges: { | |||||
| '今日': [moment(), moment()], | |||||
| '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | |||||
| '本月': [moment().startOf('month'), moment().startOf('month')], | |||||
| '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')] | |||||
| }, | |||||
| "locale": { | |||||
| format: 'YYYY-MM-DD HH:mm', | |||||
| applyLabel: '确定', | |||||
| cancelLabel: '取消', | |||||
| daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'], | |||||
| monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | |||||
| firstDay: 1 | |||||
| } | |||||
| }, function (start) { | |||||
| $(this).val(start.format("YYYY-MM-DD HH:mm")); | |||||
| }); | |||||
| }) | |||||
| </script> | |||||
| <script> | <script> | ||||
| (function ($) { | (function ($) { | ||||
| function showcode(idName) { | function showcode(idName) { | ||||
| @@ -11,36 +11,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/moment.min.js"></script> | <script src="../static/web/js/moment.min.js"></script> | ||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| <script> | |||||
| $(document).ready(function () { | |||||
| $('.datepicker').daterangepicker({ | |||||
| "singleDatePicker": true, | |||||
| "autoApply": true, | |||||
| "showDropdowns": true, | |||||
| "linkedCalendars": false, | |||||
| "timePicker": true, | |||||
| "timePicker24Hour": true, | |||||
| //"timePickerSeconds": true, | |||||
| "showCustomRangeLabel": false, | |||||
| ranges: { | |||||
| '今日': [moment(), moment()], | |||||
| '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | |||||
| '本月': [moment().startOf('month'), moment().startOf('month')], | |||||
| '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')] | |||||
| }, | |||||
| "locale": { | |||||
| format: 'YYYY-MM-DD HH:mm', | |||||
| applyLabel: '确定', | |||||
| cancelLabel: '取消', | |||||
| daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'], | |||||
| monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | |||||
| firstDay: 1 | |||||
| } | |||||
| }, function (start) { | |||||
| $(this).val(start.format("YYYY-MM-DD HH:mm")); | |||||
| }); | |||||
| }) | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form action="ad_edit.php" method="post" enctype="multipart/form-data" name="form1"> | <form action="ad_edit.php" method="post" enctype="multipart/form-data" name="form1"> | ||||
| @@ -109,5 +79,35 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| $(document).ready(function () { | |||||
| $('.datepicker').daterangepicker({ | |||||
| "singleDatePicker": true, | |||||
| "autoApply": true, | |||||
| "showDropdowns": true, | |||||
| "linkedCalendars": false, | |||||
| "timePicker": true, | |||||
| "timePicker24Hour": true, | |||||
| //"timePickerSeconds": true, | |||||
| "showCustomRangeLabel": false, | |||||
| ranges: { | |||||
| '今日': [moment(), moment()], | |||||
| '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | |||||
| '本月': [moment().startOf('month'), moment().startOf('month')], | |||||
| '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')] | |||||
| }, | |||||
| "locale": { | |||||
| format: 'YYYY-MM-DD HH:mm', | |||||
| applyLabel: '确定', | |||||
| cancelLabel: '取消', | |||||
| daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'], | |||||
| monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | |||||
| firstDay: 1 | |||||
| } | |||||
| }, function (start) { | |||||
| $(this).val(start.format("YYYY-MM-DD HH:mm")); | |||||
| }); | |||||
| }) | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -20,21 +20,6 @@ | |||||
| <script src="js/album.js"></script> | <script src="js/album.js"></script> | ||||
| <script src="js/handlers.js"></script> | <script src="js/handlers.js"></script> | ||||
| <script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
| <script> | |||||
| var swfu = null; | |||||
| var vcc = 0; | |||||
| var albums = []; | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.typeid.value == 0) { | |||||
| ShowMsg("请选择文档栏目"); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="album_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmitAlb();"> | <form name="form1" action="album_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmitAlb();"> | ||||
| @@ -390,6 +375,21 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| var swfu = null; | |||||
| var vcc = 0; | |||||
| var albums = []; | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.typeid.value == 0) { | |||||
| ShowMsg("请选择文档栏目"); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <script>InitPage();</script> | <script>InitPage();</script> | ||||
| <script> | <script> | ||||
| $("#iptAlbumImages").change(function(val){ | $("#iptAlbumImages").change(function(val){ | ||||
| @@ -20,18 +20,6 @@ | |||||
| <script src="js/album.js"></script> | <script src="js/album.js"></script> | ||||
| <script src="js/handlers.js"></script> | <script src="js/handlers.js"></script> | ||||
| <script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
| <script> | |||||
| var swfu = null; | |||||
| var vcc = 0; | |||||
| var albums = []; | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="album_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmitAlb();"> | <form name="form1" action="album_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmitAlb();"> | ||||
| @@ -440,6 +428,18 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| var swfu = null; | |||||
| var vcc = 0; | |||||
| var albums = []; | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <script>InitPage();</script> | <script>InitPage();</script> | ||||
| <script> | <script> | ||||
| $(".btnEdit").change(function(val){ | $(".btnEdit").change(function(val){ | ||||
| @@ -17,18 +17,6 @@ | |||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.typeid.value == 0) { | |||||
| ShowMsg("请选择文档栏目"); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="archives_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()"> | <form name="form1" action="archives_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()"> | ||||
| @@ -314,5 +302,17 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.typeid.value == 0) { | |||||
| ShowMsg("请选择文档栏目"); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -17,15 +17,6 @@ | |||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="archives_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | <form name="form1" action="archives_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | ||||
| @@ -303,5 +294,14 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -17,18 +17,6 @@ | |||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.typeid.value == 0) { | |||||
| ShowMsg("请选择文档栏目"); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="archives_sg_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()"> | <form name="form1" action="archives_sg_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()"> | ||||
| @@ -143,5 +131,17 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.typeid.value == 0) { | |||||
| ShowMsg("请选择文档栏目"); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -17,15 +17,6 @@ | |||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="archives_sg_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | <form name="form1" action="archives_sg_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | ||||
| @@ -142,5 +133,14 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -18,19 +18,6 @@ | |||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script src="js/handlers.js"></script> | <script src="js/handlers.js"></script> | ||||
| <script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
| <script> | |||||
| var arctype = 'article'; | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.typeid.value == 0) { | |||||
| ShowMsg("请选择文档栏目"); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="article_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()"> | <form name="form1" action="article_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()"> | ||||
| @@ -331,6 +318,19 @@ | |||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <div id="__tmpbody" style="display:none"></div> | <div id="__tmpbody" style="display:none"></div> | ||||
| <script> | |||||
| var arctype = 'article'; | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.typeid.value == 0) { | |||||
| ShowMsg("请选择文档栏目"); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <script>InitPage();</script> | <script>InitPage();</script> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -18,17 +18,6 @@ | |||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script src="js/handlers.js"></script> | <script src="js/handlers.js"></script> | ||||
| <script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
| <script> | |||||
| var swfu = null; | |||||
| var arctype = 'article'; | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="article_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | <form name="form1" action="article_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | ||||
| @@ -312,6 +301,17 @@ | |||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <div id="__tmpbody" style="display:none"></div> | <div id="__tmpbody" style="display:none"></div> | ||||
| <script> | |||||
| var swfu = null; | |||||
| var arctype = 'article'; | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <script>InitPage();</script> | <script>InitPage();</script> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -7,15 +7,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script> | |||||
| function selAll() { | |||||
| var celements = document.getElementsByName('aids[]'); | |||||
| for (i = 0; i < celements.length; i++) { | |||||
| if (!celements[i].checked) celements[i].checked = true; | |||||
| else celements[i].checked = false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form2" action="article_keywords_main.php"> | <form name="form2" action="article_keywords_main.php"> | ||||
| @@ -71,5 +62,14 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function selAll() { | |||||
| var celements = document.getElementsByName('aids[]'); | |||||
| for (i = 0; i < celements.length; i++) { | |||||
| if (!celements[i].checked) celements[i].checked = true; | |||||
| else celements[i].checked = false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -7,38 +7,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script> | |||||
| //获得选中文件的文件名 | |||||
| function SelKw(kw) | |||||
| { | |||||
| if (document.form2.keywords.value) | |||||
| { | |||||
| document.form2.keywords.value += ","+kw; | |||||
| } else { | |||||
| document.form2.keywords.value = kw; | |||||
| } | |||||
| } | |||||
| function ReturnValue() | |||||
| { | |||||
| if (window.opener.document.<?php echo $f?>.value) | |||||
| { | |||||
| window.opener.document.<?php echo $f?>.value += ','+document.form2.keywords.value; | |||||
| } else { | |||||
| window.opener.document.<?php echo $f?>.value = document.form2.keywords.value; | |||||
| } | |||||
| window.close(); | |||||
| } | |||||
| function showHide(objname) | |||||
| { | |||||
| var obj = document.getElementById(objname); | |||||
| if (obj.style.display=="none") obj.style.display = "block"; | |||||
| else obj.style.display="none"; | |||||
| } | |||||
| function AddNewKw() | |||||
| { | |||||
| showHide("addnew"); | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="article_keywords_main.php"> | <form name="form1" action="article_keywords_main.php"> | ||||
| @@ -76,5 +44,35 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| //获得选中文件的文件名 | |||||
| function SelKw(kw) | |||||
| { | |||||
| if (document.form2.keywords.value) { | |||||
| document.form2.keywords.value += ","+kw; | |||||
| } else { | |||||
| document.form2.keywords.value = kw; | |||||
| } | |||||
| } | |||||
| function ReturnValue() | |||||
| { | |||||
| if (window.opener.document.<?php echo $f?>.value) { | |||||
| window.opener.document.<?php echo $f?>.value += ','+document.form2.keywords.value; | |||||
| } else { | |||||
| window.opener.document.<?php echo $f?>.value = document.form2.keywords.value; | |||||
| } | |||||
| window.close(); | |||||
| } | |||||
| function showHide(objname) | |||||
| { | |||||
| var obj = document.getElementById(objname); | |||||
| if (obj.style.display=="none") obj.style.display = "block"; | |||||
| else obj.style.display="none"; | |||||
| } | |||||
| function AddNewKw() | |||||
| { | |||||
| showHide("addnew"); | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -4,44 +4,9 @@ | |||||
| <meta charset="utf-8"> | <meta charset="utf-8"> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | ||||
| <title>文档重复检测</title> | <title>文档重复检测</title> | ||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script> | |||||
| //获得选中文件的文件名 | |||||
| function getCheckboxItem() { | |||||
| var allSel = ""; | |||||
| if (document.form2.arcTitle.value) return document.form2.arcTitle.value; | |||||
| for (i = 0; i < document.form2.arcTitle.length; i++) { | |||||
| if (document.form2.arcTitle[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = document.form2.arcTitle[i].value; | |||||
| else | |||||
| allSel = allSel + "`" + document.form2.arcTitle[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| //删除文档 | |||||
| function delArc() { | |||||
| var qstr = getCheckboxItem(); | |||||
| document.form2.titles.value = qstr; | |||||
| document.form2.submit(); | |||||
| } | |||||
| function selAll() { | |||||
| for (i = 0; i < document.form2.arcTitle.length; i++) { | |||||
| if (!document.form2.arcTitle[i].checked) { | |||||
| document.form2.arcTitle[i].checked = true; | |||||
| } | |||||
| } | |||||
| } | |||||
| function noSelAll() { | |||||
| for (i = 0; i < document.form2.arcTitle.length; i++) { | |||||
| if (document.form2.arcTitle[i].checked) { | |||||
| document.form2.arcTitle[i].checked = false; | |||||
| } | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form2" method="POST" action="article_test_same.php"> | <form name="form2" method="POST" action="article_test_same.php"> | ||||
| @@ -85,5 +50,41 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| //获得选中文件的文件名 | |||||
| function getCheckboxItem() { | |||||
| var allSel = ""; | |||||
| if (document.form2.arcTitle.value) return document.form2.arcTitle.value; | |||||
| for (i = 0; i < document.form2.arcTitle.length; i++) { | |||||
| if (document.form2.arcTitle[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = document.form2.arcTitle[i].value; | |||||
| else | |||||
| allSel = allSel + "`" + document.form2.arcTitle[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| //删除文档 | |||||
| function delArc() { | |||||
| var qstr = getCheckboxItem(); | |||||
| document.form2.titles.value = qstr; | |||||
| document.form2.submit(); | |||||
| } | |||||
| function selAll() { | |||||
| for (i = 0; i < document.form2.arcTitle.length; i++) { | |||||
| if (!document.form2.arcTitle[i].checked) { | |||||
| document.form2.arcTitle[i].checked = true; | |||||
| } | |||||
| } | |||||
| } | |||||
| function noSelAll() { | |||||
| for (i = 0; i < document.form2.arcTitle.length; i++) { | |||||
| if (document.form2.arcTitle[i].checked) { | |||||
| document.form2.arcTitle[i].checked = false; | |||||
| } | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -7,36 +7,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script> | |||||
| //获得选中项 | |||||
| function getCheckboxItem() { | |||||
| var allSel = ""; | |||||
| if (document.form1.aids.value) return document.form1.aids.value; | |||||
| for (i = 0; i < document.form1.aids.length; i++) { | |||||
| if (document.form1.aids[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = document.form1.aids[i].value; | |||||
| else | |||||
| allSel = allSel + "`" + document.form1.aids[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| function ReSel() { | |||||
| for (i = 0; i < document.form1.aids.length; i++) { | |||||
| if (document.form1.aids[i].checked) document.form1.aids[i].checked = false; | |||||
| else document.form1.aids[i].checked = true; | |||||
| } | |||||
| } | |||||
| function DelSel() { | |||||
| var nid = getCheckboxItem(); | |||||
| if (nid == "") { | |||||
| alert("请选择要删除的卡"); | |||||
| return; | |||||
| } | |||||
| location.href = "cards_manage.php?dopost=delete&aids=" + nid; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <table cellpadding="1" cellspacing="1" align="center" class="table maintable my-3"> | <table cellpadding="1" cellspacing="1" align="center" class="table maintable my-3"> | ||||
| @@ -87,5 +57,35 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| //获得选中项 | |||||
| function getCheckboxItem() { | |||||
| var allSel = ""; | |||||
| if (document.form1.aids.value) return document.form1.aids.value; | |||||
| for (i = 0; i < document.form1.aids.length; i++) { | |||||
| if (document.form1.aids[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = document.form1.aids[i].value; | |||||
| else | |||||
| allSel = allSel + "`" + document.form1.aids[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| function ReSel() { | |||||
| for (i = 0; i < document.form1.aids.length; i++) { | |||||
| if (document.form1.aids[i].checked) document.form1.aids[i].checked = false; | |||||
| else document.form1.aids[i].checked = true; | |||||
| } | |||||
| } | |||||
| function DelSel() { | |||||
| var nid = getCheckboxItem(); | |||||
| if (nid == "") { | |||||
| alert("请选择要删除的卡"); | |||||
| return; | |||||
| } | |||||
| location.href = "cards_manage.php?dopost=delete&aids=" + nid; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -9,97 +9,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| var channelArray = new Array(); | |||||
| <?php | |||||
| $i = 0; | |||||
| foreach($channelArray as $k=> $arr) | |||||
| { | |||||
| echo "channelArray[$k] = \"{$arr['nid']}\";"; | |||||
| } | |||||
| ?> | |||||
| function Nav() { | |||||
| if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||||
| else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||||
| else return "OT"; | |||||
| } | |||||
| function SelectTemplets(fname) { | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function ShowHide(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| if (obj.style.display != "none") | |||||
| obj.style.display = "none"; | |||||
| else { | |||||
| if (Nav() == 'IE') obj.style.display = "block"; | |||||
| else obj.style.display = "block"; | |||||
| } | |||||
| } | |||||
| function ShowObj(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| if (Nav() == 'IE') obj.style.display = "block"; | |||||
| else obj.style.display = "block"; | |||||
| } | |||||
| function HideObj(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| obj.style.display = "none"; | |||||
| } | |||||
| function CheckTypeDir() { | |||||
| var upinyin = document.getElementById('upinyin'); | |||||
| var tpobj = document.getElementById('typedir'); | |||||
| if (upinyin.checked) tpobj.style.display = "none"; | |||||
| else tpobj.style.display = "inline-block"; | |||||
| } | |||||
| function ParTemplet(obj) { | |||||
| var sevvalue = channelArray[obj.value]; | |||||
| var tobj = document.getElementById('smclass'); | |||||
| var tempindex = document.getElementsByName('tempindex'); | |||||
| var templist = document.getElementsByName('templist'); | |||||
| var temparticle = document.getElementsByName('temparticle'); | |||||
| var dfstyle = document.getElementsByName('dfstyle'); | |||||
| var dfstyleValue = dfstyle[0].value; | |||||
| tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm"; | |||||
| templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm"; | |||||
| temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||||
| if (obj.value < 0) { | |||||
| if (Nav() == 'IE') tobj.style.display = "block"; | |||||
| else tobj.style.display = "block"; | |||||
| } else { | |||||
| tobj.style.display = "none"; | |||||
| } | |||||
| } | |||||
| function checkSubmit() { | |||||
| if (document.form1.typename.value == "") { | |||||
| alert("栏目名称不能为空"); | |||||
| document.form1.typename.focus(); | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| function CheckPathSet() { | |||||
| var surl = document.getElementById("siteurl"); | |||||
| var sreid = document.getElementById("reid"); | |||||
| var mysel = document.getElementById("truepath3"); | |||||
| if (surl.value != "") { | |||||
| if (sreid.value == "0" || sreid.value == "") { | |||||
| mysel.checked = true; | |||||
| } | |||||
| } | |||||
| } | |||||
| function CheckCross() { | |||||
| var cross2 = document.getElementById('cross2'); | |||||
| var crossid = document.getElementById('crossid'); | |||||
| if (cross2.checked) crossid.style.display = 'block'; | |||||
| else crossid.style.display = 'none'; | |||||
| } | |||||
| function makeAPIKey(){ | |||||
| var apikey = document.getElementById('apikey'); | |||||
| jQuery.get("sys_info.php?dopost=make_encode", function(data) { | |||||
| jQuery("#apikey").val(data); | |||||
| }); | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="catalog_add.php" method="post" onSubmit="return checkSubmit()"> | <form name="form1" action="catalog_add.php" method="post" onSubmit="return checkSubmit()"> | ||||
| @@ -371,5 +280,96 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| var channelArray = new Array(); | |||||
| <?php | |||||
| $i = 0; | |||||
| foreach($channelArray as $k=> $arr) | |||||
| { | |||||
| echo "channelArray[$k] = \"{$arr['nid']}\";"; | |||||
| } | |||||
| ?> | |||||
| function Nav() { | |||||
| if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||||
| else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||||
| else return "OT"; | |||||
| } | |||||
| function SelectTemplets(fname) { | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function ShowHide(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| if (obj.style.display != "none") | |||||
| obj.style.display = "none"; | |||||
| else { | |||||
| if (Nav() == 'IE') obj.style.display = "block"; | |||||
| else obj.style.display = "block"; | |||||
| } | |||||
| } | |||||
| function ShowObj(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| if (Nav() == 'IE') obj.style.display = "block"; | |||||
| else obj.style.display = "block"; | |||||
| } | |||||
| function HideObj(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| obj.style.display = "none"; | |||||
| } | |||||
| function CheckTypeDir() { | |||||
| var upinyin = document.getElementById('upinyin'); | |||||
| var tpobj = document.getElementById('typedir'); | |||||
| if (upinyin.checked) tpobj.style.display = "none"; | |||||
| else tpobj.style.display = "inline-block"; | |||||
| } | |||||
| function ParTemplet(obj) { | |||||
| var sevvalue = channelArray[obj.value]; | |||||
| var tobj = document.getElementById('smclass'); | |||||
| var tempindex = document.getElementsByName('tempindex'); | |||||
| var templist = document.getElementsByName('templist'); | |||||
| var temparticle = document.getElementsByName('temparticle'); | |||||
| var dfstyle = document.getElementsByName('dfstyle'); | |||||
| var dfstyleValue = dfstyle[0].value; | |||||
| tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm"; | |||||
| templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm"; | |||||
| temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||||
| if (obj.value < 0) { | |||||
| if (Nav() == 'IE') tobj.style.display = "block"; | |||||
| else tobj.style.display = "block"; | |||||
| } else { | |||||
| tobj.style.display = "none"; | |||||
| } | |||||
| } | |||||
| function checkSubmit() { | |||||
| if (document.form1.typename.value == "") { | |||||
| alert("栏目名称不能为空"); | |||||
| document.form1.typename.focus(); | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| function CheckPathSet() { | |||||
| var surl = document.getElementById("siteurl"); | |||||
| var sreid = document.getElementById("reid"); | |||||
| var mysel = document.getElementById("truepath3"); | |||||
| if (surl.value != "") { | |||||
| if (sreid.value == "0" || sreid.value == "") { | |||||
| mysel.checked = true; | |||||
| } | |||||
| } | |||||
| } | |||||
| function CheckCross() { | |||||
| var cross2 = document.getElementById('cross2'); | |||||
| var crossid = document.getElementById('crossid'); | |||||
| if (cross2.checked) crossid.style.display = 'block'; | |||||
| else crossid.style.display = 'none'; | |||||
| } | |||||
| function makeAPIKey(){ | |||||
| var apikey = document.getElementById('apikey'); | |||||
| jQuery.get("sys_info.php?dopost=make_encode", function(data) { | |||||
| jQuery("#apikey").val(data); | |||||
| }); | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -9,73 +9,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| var $ = jQuery; | |||||
| $(document).ready(function () { | |||||
| //删除按钮事件 | |||||
| $("#addQuick .del").click(function () { | |||||
| $(this).parents(".repeat").remove(); | |||||
| }); | |||||
| //添加按钮事件 | |||||
| $("#add").click(function () { | |||||
| var id = $("#addQuick tr").prevAll("tr").length + 1; | |||||
| $("#addQuick tr:eq(1)").clone(true).addClass("repeat") | |||||
| .find(".rank input") | |||||
| .attr("value", function () { return id }) | |||||
| .end() | |||||
| .find(".pubinputs") | |||||
| .attr("name", function () { return this.name + id }) | |||||
| .attr("id", function () { return this.id + id }) | |||||
| .end() | |||||
| .appendTo($("#addQuick")); | |||||
| }); | |||||
| //删除按钮事件 | |||||
| $("#addQuickRel .del").click(function () { | |||||
| $(this).parents(".repeat").remove(); | |||||
| }); | |||||
| //添加按钮事件 | |||||
| $("#addrel").click(function () { | |||||
| var id = $("#addQuickRel tr").prevAll("tr").length + 1; | |||||
| $("#addQuickRel tr:eq(1)").clone(true).addClass("repeat") | |||||
| .find(".rank input") | |||||
| .attr("value", function () { return id }) | |||||
| .end() | |||||
| .find(".pubinputs") | |||||
| .attr("name", function () { return this.name + id }) | |||||
| .attr("id", function () { return this.id + id }) | |||||
| .end() | |||||
| .appendTo($("#addQuickRel")); | |||||
| }); | |||||
| }); | |||||
| function ShowHide(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| if (obj.style.display == "block") | |||||
| obj.style.display = "none"; | |||||
| else | |||||
| obj.style.display = "block"; | |||||
| }; | |||||
| function ShowObj(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| obj.style.display = "block"; | |||||
| }; | |||||
| function HideObj(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| obj.style.display = "none"; | |||||
| }; | |||||
| function showSeltype(objname) { | |||||
| if (objname.value != 0) { | |||||
| $("#addQuickRel").show(); | |||||
| $("#pathtype").show(); | |||||
| $("#addQuick").hide(); | |||||
| $("#savetype").val('rel'); | |||||
| } else { | |||||
| $("#addQuickRel").hide(); | |||||
| $("#addQuick").show(); | |||||
| $("#pathtype").hide(); | |||||
| $("#savetype").val(''); | |||||
| } | |||||
| }; | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="catalog_add.php" method="post"> | <form name="form1" action="catalog_add.php" method="post"> | ||||
| @@ -235,5 +168,72 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| var $ = jQuery; | |||||
| $(document).ready(function () { | |||||
| //删除按钮事件 | |||||
| $("#addQuick .del").click(function () { | |||||
| $(this).parents(".repeat").remove(); | |||||
| }); | |||||
| //添加按钮事件 | |||||
| $("#add").click(function () { | |||||
| var id = $("#addQuick tr").prevAll("tr").length + 1; | |||||
| $("#addQuick tr:eq(1)").clone(true).addClass("repeat") | |||||
| .find(".rank input") | |||||
| .attr("value", function () { return id }) | |||||
| .end() | |||||
| .find(".pubinputs") | |||||
| .attr("name", function () { return this.name + id }) | |||||
| .attr("id", function () { return this.id + id }) | |||||
| .end() | |||||
| .appendTo($("#addQuick")); | |||||
| }); | |||||
| //删除按钮事件 | |||||
| $("#addQuickRel .del").click(function () { | |||||
| $(this).parents(".repeat").remove(); | |||||
| }); | |||||
| //添加按钮事件 | |||||
| $("#addrel").click(function () { | |||||
| var id = $("#addQuickRel tr").prevAll("tr").length + 1; | |||||
| $("#addQuickRel tr:eq(1)").clone(true).addClass("repeat") | |||||
| .find(".rank input") | |||||
| .attr("value", function () { return id }) | |||||
| .end() | |||||
| .find(".pubinputs") | |||||
| .attr("name", function () { return this.name + id }) | |||||
| .attr("id", function () { return this.id + id }) | |||||
| .end() | |||||
| .appendTo($("#addQuickRel")); | |||||
| }); | |||||
| }); | |||||
| function ShowHide(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| if (obj.style.display == "block") | |||||
| obj.style.display = "none"; | |||||
| else | |||||
| obj.style.display = "block"; | |||||
| }; | |||||
| function ShowObj(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| obj.style.display = "block"; | |||||
| }; | |||||
| function HideObj(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| obj.style.display = "none"; | |||||
| }; | |||||
| function showSeltype(objname) { | |||||
| if (objname.value != 0) { | |||||
| $("#addQuickRel").show(); | |||||
| $("#pathtype").show(); | |||||
| $("#addQuick").hide(); | |||||
| $("#savetype").val('rel'); | |||||
| } else { | |||||
| $("#addQuickRel").hide(); | |||||
| $("#addQuick").show(); | |||||
| $("#pathtype").hide(); | |||||
| $("#savetype").val(''); | |||||
| } | |||||
| }; | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -9,87 +9,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| var channelArray = new Array(); | |||||
| <?php | |||||
| $i = 0; | |||||
| foreach($channelArray as $k=> $arr) | |||||
| { | |||||
| echo "channelArray[$k] = \"{$arr['nid']}\";"; | |||||
| } | |||||
| ?> | |||||
| function Nav() { | |||||
| if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||||
| else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||||
| else return "OT"; | |||||
| } | |||||
| function SelectTemplets(fname) { | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function ShowHide(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| if (obj.style.display != "none") | |||||
| obj.style.display = "none"; | |||||
| else { | |||||
| if (Nav() == 'IE') obj.style.display = "block"; | |||||
| else obj.style.display = "block"; | |||||
| } | |||||
| } | |||||
| function ShowObj(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| if (Nav() == 'IE') obj.style.display = "block"; | |||||
| else obj.style.display = "block"; | |||||
| } | |||||
| function HideObj(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| obj.style.display = "none"; | |||||
| } | |||||
| function CheckTypeDir() { | |||||
| var upinyin = document.getElementById('upinyin'); | |||||
| var tpobj = document.getElementById('typedir'); | |||||
| if (upinyin.checked) tpobj.style.display = "none"; | |||||
| else tpobj.style.display = "inline-block"; | |||||
| } | |||||
| function ParTemplet(obj) { | |||||
| var sevvalue = channelArray[obj.value]; | |||||
| var tobj = document.getElementById('smclass'); | |||||
| var tempindex = document.getElementsByName('tempindex'); | |||||
| var templist = document.getElementsByName('templist'); | |||||
| var temparticle = document.getElementsByName('temparticle'); | |||||
| var dfstyle = document.getElementsByName('dfstyle'); | |||||
| var dfstyleValue = dfstyle[0].value; | |||||
| tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm"; | |||||
| templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm"; | |||||
| temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||||
| if (obj.value < 0) { | |||||
| if (Nav() == 'IE') tobj.style.display = "block"; | |||||
| else tobj.style.display = "block"; | |||||
| } else { | |||||
| tobj.style.display = "none"; | |||||
| } | |||||
| } | |||||
| function checkSubmit() { | |||||
| if (document.form1.typename.value == "") { | |||||
| alert("栏目名称不能为空"); | |||||
| document.form1.typename.focus(); | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| function CheckCross() { | |||||
| var cross2 = document.getElementById('cross2'); | |||||
| var crossid = document.getElementById('crossid'); | |||||
| if (cross2.checked) crossid.style.display = 'block'; | |||||
| else crossid.style.display = 'none'; | |||||
| } | |||||
| function makeAPIKey(){ | |||||
| var apikey = document.getElementById('apikey'); | |||||
| jQuery.get("sys_info.php?dopost=make_encode", function(data) { | |||||
| jQuery("#apikey").val(data); | |||||
| }); | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="catalog_edit.php" method="post" onSubmit="return checkSubmit()"> | <form name="form1" action="catalog_edit.php" method="post" onSubmit="return checkSubmit()"> | ||||
| @@ -117,7 +36,7 @@ | |||||
| <td> | <td> | ||||
| <input type="hidden" value="{style}" name="dfstyle"> | <input type="hidden" value="{style}" name="dfstyle"> | ||||
| <select name="channeltype" id="channeltype" onChange="ParTemplet(this)" class="admin-input-sm"> | <select name="channeltype" id="channeltype" onChange="ParTemplet(this)" class="admin-input-sm"> | ||||
| <?php | |||||
| <?php | |||||
| foreach($channelArray as $k=>$arr) | foreach($channelArray as $k=>$arr) | ||||
| { | { | ||||
| if ($k==$channelid) echo " <option value='{$k}' selected>{$arr['typename']} {$arr['nid']}</option>"; | if ($k==$channelid) echo " <option value='{$k}' selected>{$arr['typename']} {$arr['nid']}</option>"; | ||||
| @@ -344,5 +263,86 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| var channelArray = new Array(); | |||||
| <?php | |||||
| $i = 0; | |||||
| foreach($channelArray as $k=> $arr) | |||||
| { | |||||
| echo "channelArray[$k] = \"{$arr['nid']}\";"; | |||||
| } | |||||
| ?> | |||||
| function Nav() { | |||||
| if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||||
| else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||||
| else return "OT"; | |||||
| } | |||||
| function SelectTemplets(fname) { | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function ShowHide(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| if (obj.style.display != "none") | |||||
| obj.style.display = "none"; | |||||
| else { | |||||
| if (Nav() == 'IE') obj.style.display = "block"; | |||||
| else obj.style.display = "block"; | |||||
| } | |||||
| } | |||||
| function ShowObj(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| if (Nav() == 'IE') obj.style.display = "block"; | |||||
| else obj.style.display = "block"; | |||||
| } | |||||
| function HideObj(objname) { | |||||
| var obj = document.getElementById(objname); | |||||
| obj.style.display = "none"; | |||||
| } | |||||
| function CheckTypeDir() { | |||||
| var upinyin = document.getElementById('upinyin'); | |||||
| var tpobj = document.getElementById('typedir'); | |||||
| if (upinyin.checked) tpobj.style.display = "none"; | |||||
| else tpobj.style.display = "inline-block"; | |||||
| } | |||||
| function ParTemplet(obj) { | |||||
| var sevvalue = channelArray[obj.value]; | |||||
| var tobj = document.getElementById('smclass'); | |||||
| var tempindex = document.getElementsByName('tempindex'); | |||||
| var templist = document.getElementsByName('templist'); | |||||
| var temparticle = document.getElementsByName('temparticle'); | |||||
| var dfstyle = document.getElementsByName('dfstyle'); | |||||
| var dfstyleValue = dfstyle[0].value; | |||||
| tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm"; | |||||
| templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm"; | |||||
| temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||||
| if (obj.value < 0) { | |||||
| if (Nav() == 'IE') tobj.style.display = "block"; | |||||
| else tobj.style.display = "block"; | |||||
| } else { | |||||
| tobj.style.display = "none"; | |||||
| } | |||||
| } | |||||
| function checkSubmit() { | |||||
| if (document.form1.typename.value == "") { | |||||
| alert("栏目名称不能为空"); | |||||
| document.form1.typename.focus(); | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| function CheckCross() { | |||||
| var cross2 = document.getElementById('cross2'); | |||||
| var crossid = document.getElementById('crossid'); | |||||
| if (cross2.checked) crossid.style.display = 'block'; | |||||
| else crossid.style.display = 'none'; | |||||
| } | |||||
| function makeAPIKey(){ | |||||
| var apikey = document.getElementById('apikey'); | |||||
| jQuery.get("sys_info.php?dopost=make_encode", function(data) { | |||||
| jQuery("#apikey").val(data); | |||||
| }); | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,27 +10,6 @@ | |||||
| <style>.admin-td{border-bottom:1px solid #dee2e6!important}</style> | <style>.admin-td{border-bottom:1px solid #dee2e6!important}</style> | ||||
| <script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
| <script src="js/global.js"></script> | <script src="js/global.js"></script> | ||||
| <script> | |||||
| function LoadSuns(ctid, tid) { | |||||
| if ($DE(ctid).innerHTML.length < 10) { | |||||
| $DE('img' + tid).className = 'fa fa-minus-square'; | |||||
| fetch('catalog_do.php?dopost=GetSunLists&cid=' + tid).then(resp => resp.text()).then((d) => { | |||||
| $DE(ctid).innerHTML = d; | |||||
| }); | |||||
| } else { | |||||
| showHide(ctid, tid); | |||||
| } | |||||
| } | |||||
| function showHide(objname, tid) { | |||||
| if ($DE(objname).style.display == "none") { | |||||
| $DE('img' + tid).className = 'fa fa-minus-square'; | |||||
| $DE(objname).style.display = BROWSER.firefox ? "" : "block"; | |||||
| } else { | |||||
| $DE('img' + tid).className = 'fa fa-plus-square'; | |||||
| $DE(objname).style.display = "none"; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <table cellpadding="1" cellspacing="1" align="center" class="table maintable my-3"> | <table cellpadding="1" cellspacing="1" align="center" class="table maintable my-3"> | ||||
| @@ -67,5 +46,26 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function LoadSuns(ctid, tid) { | |||||
| if ($DE(ctid).innerHTML.length < 10) { | |||||
| $DE('img' + tid).className = 'fa fa-minus-square'; | |||||
| fetch('catalog_do.php?dopost=GetSunLists&cid=' + tid).then(resp => resp.text()).then((d) => { | |||||
| $DE(ctid).innerHTML = d; | |||||
| }); | |||||
| } else { | |||||
| showHide(ctid, tid); | |||||
| } | |||||
| } | |||||
| function showHide(objname, tid) { | |||||
| if ($DE(objname).style.display == "none") { | |||||
| $DE('img' + tid).className = 'fa fa-minus-square'; | |||||
| $DE(objname).style.display = BROWSER.firefox ? "" : "block"; | |||||
| } else { | |||||
| $DE('img' + tid).className = 'fa fa-plus-square'; | |||||
| $DE(objname).style.display = "none"; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -11,49 +11,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/moment.min.js"></script> | <script src="../static/web/js/moment.min.js"></script> | ||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| <script> | |||||
| function ShowHideTime() { | |||||
| var selBox = document.getElementById('seltime'); | |||||
| var obj = document.getElementById('seltimeField'); | |||||
| if (selBox.checked) obj.style.display = "block"; | |||||
| else obj.style.display = "none"; | |||||
| } | |||||
| function ShowHideMove() { | |||||
| var selBox = document.getElementById('moveradio'); | |||||
| var obj = document.querySelectorAll('.moveField').forEach(v=>{ | |||||
| if (selBox.checked) v.style.display = "block"; | |||||
| else v.style.display = "none"; | |||||
| }) | |||||
| } | |||||
| $(document).ready(function () { | |||||
| $('.datepicker').daterangepicker({ | |||||
| "singleDatePicker": true, | |||||
| "autoApply": true, | |||||
| "showDropdowns": true, | |||||
| "linkedCalendars": false, | |||||
| "timePicker": true, | |||||
| "timePicker24Hour": true, | |||||
| "timePickerSeconds": true, | |||||
| "showCustomRangeLabel": false, | |||||
| ranges: { | |||||
| '今日': [moment(), moment()], | |||||
| '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | |||||
| '本月': [moment().startOf('month'), moment().startOf('month')], | |||||
| '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')] | |||||
| }, | |||||
| "locale": { | |||||
| format: 'YYYY-MM-DD HH:mm:ss', | |||||
| applyLabel: '确定', | |||||
| cancelLabel: '取消', | |||||
| daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'], | |||||
| monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | |||||
| firstDay: 1 | |||||
| } | |||||
| }, function (start) { | |||||
| $(this).val(start.format("YYYY-MM-DD HH:mm:ss")); | |||||
| }); | |||||
| }) | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="content_batchup_action.php" target="stafrm" method="post"> | <form name="form1" action="content_batchup_action.php" target="stafrm" method="post"> | ||||
| @@ -129,5 +86,48 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function ShowHideTime() { | |||||
| var selBox = document.getElementById('seltime'); | |||||
| var obj = document.getElementById('seltimeField'); | |||||
| if (selBox.checked) obj.style.display = "block"; | |||||
| else obj.style.display = "none"; | |||||
| } | |||||
| function ShowHideMove() { | |||||
| var selBox = document.getElementById('moveradio'); | |||||
| var obj = document.querySelectorAll('.moveField').forEach(v=>{ | |||||
| if (selBox.checked) v.style.display = "block"; | |||||
| else v.style.display = "none"; | |||||
| }) | |||||
| } | |||||
| $(document).ready(function () { | |||||
| $('.datepicker').daterangepicker({ | |||||
| "singleDatePicker": true, | |||||
| "autoApply": true, | |||||
| "showDropdowns": true, | |||||
| "linkedCalendars": false, | |||||
| "timePicker": true, | |||||
| "timePicker24Hour": true, | |||||
| "timePickerSeconds": true, | |||||
| "showCustomRangeLabel": false, | |||||
| ranges: { | |||||
| '今日': [moment(), moment()], | |||||
| '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | |||||
| '本月': [moment().startOf('month'), moment().startOf('month')], | |||||
| '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')] | |||||
| }, | |||||
| "locale": { | |||||
| format: 'YYYY-MM-DD HH:mm:ss', | |||||
| applyLabel: '确定', | |||||
| cancelLabel: '取消', | |||||
| daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'], | |||||
| monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | |||||
| firstDay: 1 | |||||
| } | |||||
| }, function (start) { | |||||
| $(this).val(start.format("YYYY-MM-DD HH:mm:ss")); | |||||
| }); | |||||
| }) | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -7,45 +7,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script> | |||||
| //获得选中文件的文件名 | |||||
| function getCheckboxItem() { | |||||
| var allSel = ""; | |||||
| if (document.form2.arcID.value) return document.form2.arcID.value; | |||||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||||
| if (document.form2.arcID[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = document.form2.arcID[i].value; | |||||
| else | |||||
| allSel = allSel + "," + document.form2.arcID[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| function selAll() { | |||||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||||
| if (!document.form2.arcID[i].checked) { | |||||
| document.form2.arcID[i].checked = true; | |||||
| } | |||||
| } | |||||
| } | |||||
| function noSelAll() { | |||||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||||
| if (document.form2.arcID[i].checked) { | |||||
| document.form2.arcID[i].checked = false; | |||||
| } | |||||
| } | |||||
| } | |||||
| function ReturnValue() { | |||||
| if (window.opener.document.<?php echo $f ?>.value == "") { | |||||
| window.opener.document.<?php echo $f ?>.value = getCheckboxItem(); | |||||
| } else { | |||||
| window.opener.document.<?php echo $f ?>.value += "," + getCheckboxItem(); | |||||
| } | |||||
| window.opener = null; | |||||
| window.close(); | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form3" action="content_select_list.php" method="get"> | <form name="form3" action="content_select_list.php" method="get"> | ||||
| @@ -104,5 +65,44 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| //获得选中文件的文件名 | |||||
| function getCheckboxItem() { | |||||
| var allSel = ""; | |||||
| if (document.form2.arcID.value) return document.form2.arcID.value; | |||||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||||
| if (document.form2.arcID[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = document.form2.arcID[i].value; | |||||
| else | |||||
| allSel = allSel + "," + document.form2.arcID[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| function selAll() { | |||||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||||
| if (!document.form2.arcID[i].checked) { | |||||
| document.form2.arcID[i].checked = true; | |||||
| } | |||||
| } | |||||
| } | |||||
| function noSelAll() { | |||||
| for (i = 0; i < document.form2.arcID.length; i++) { | |||||
| if (document.form2.arcID[i].checked) { | |||||
| document.form2.arcID[i].checked = false; | |||||
| } | |||||
| } | |||||
| } | |||||
| function ReturnValue() { | |||||
| if (window.opener.document.<?php echo $f ?>.value == "") { | |||||
| window.opener.document.<?php echo $f ?>.value = getCheckboxItem(); | |||||
| } else { | |||||
| window.opener.document.<?php echo $f ?>.value += "," + getCheckboxItem(); | |||||
| } | |||||
| window.opener = null; | |||||
| window.close(); | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -9,16 +9,7 @@ | |||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | |||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.name.value == '') { | |||||
| ShowMsg("自定义表单名称不能为空"); | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| <script src="js/main.js"></script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="diy_add.php?action=add" method="post" onSubmit="return checkSubmit();"> | <form name="form1" action="diy_add.php?action=add" method="post" onSubmit="return checkSubmit();"> | ||||
| @@ -79,5 +70,14 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.name.value == '') { | |||||
| ShowMsg("自定义表单名称不能为空"); | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,15 +10,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.name.value == '') { | |||||
| ShowMsg("自定义表单名称不能为空"); | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="diy_edit.php" method="post" onSubmit="return checkSubmit();"> | <form name="form1" action="diy_edit.php" method="post" onSubmit="return checkSubmit();"> | ||||
| @@ -133,5 +124,14 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.name.value == '') { | |||||
| ShowMsg("自定义表单名称不能为空"); | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -11,54 +11,6 @@ | |||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <style>.nw{float:left;width:160px}.cls{clear:both}</style> | <style>.nw{float:left;width:160px}.cls{clear:both}</style> | ||||
| <script> | |||||
| var notAllow = " <?php echo $f;?> "; | |||||
| function GetFields() | |||||
| { | |||||
| var theform = document.form1; | |||||
| var fieldname = theform.fieldname.value; | |||||
| var itemname = theform.itemname.value; | |||||
| var dtype = 'text'; | |||||
| var enums = document.getElementsByName('dtype'); | |||||
| for (i=0;i<enums.length;i++) | |||||
| { | |||||
| if (enums[i].checked) dtype = enums[i].value; | |||||
| } | |||||
| var isnull = theform.isnull.value; | |||||
| var vdefault = theform.vdefault.value; | |||||
| var maxlength = theform.maxlength.value; | |||||
| var vinnertext = theform.vinnertext.value; | |||||
| var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||||
| var sisnull = (isnull==0 ? "false" : "true"); | |||||
| if (itemname=="") | |||||
| { | |||||
| ShowMsg("表单提示名称不能为空"); | |||||
| theform.itemname.focus(); | |||||
| return false; | |||||
| } | |||||
| if (fieldname=="") | |||||
| { | |||||
| ShowMsg("字段名称不能为空"); | |||||
| theform.fieldname.focus(); | |||||
| return false; | |||||
| } | |||||
| if (notAllow.indexOf(" "+fieldname+" ") >-1 ) | |||||
| { | |||||
| ShowMsg("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); | |||||
| return false; | |||||
| } | |||||
| if ((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") | |||||
| { | |||||
| ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用英文逗号)"); | |||||
| return false; | |||||
| } | |||||
| if (spage=="no") spage = ""; | |||||
| revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\" isnull=\""+sisnull+"\" default=\""+vdefault+"\" "; | |||||
| revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||||
| document.form1.fieldstring.value = revalue; | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="diy_field_add.php" method="post" onSubmit="return GetFields();"> | <form name="form1" action="diy_field_add.php" method="post" onSubmit="return GetFields();"> | ||||
| @@ -146,5 +98,49 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| var notAllow = " <?php echo $f;?> "; | |||||
| function GetFields() | |||||
| { | |||||
| var theform = document.form1; | |||||
| var fieldname = theform.fieldname.value; | |||||
| var itemname = theform.itemname.value; | |||||
| var dtype = 'text'; | |||||
| var enums = document.getElementsByName('dtype'); | |||||
| for (i=0;i<enums.length;i++) | |||||
| { | |||||
| if (enums[i].checked) dtype = enums[i].value; | |||||
| } | |||||
| var isnull = theform.isnull.value; | |||||
| var vdefault = theform.vdefault.value; | |||||
| var maxlength = theform.maxlength.value; | |||||
| var vinnertext = theform.vinnertext.value; | |||||
| var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||||
| var sisnull = (isnull==0 ? "false" : "true"); | |||||
| if (itemname=="") { | |||||
| ShowMsg("表单提示名称不能为空"); | |||||
| theform.itemname.focus(); | |||||
| return false; | |||||
| } | |||||
| if (fieldname=="") { | |||||
| ShowMsg("字段名称不能为空"); | |||||
| theform.fieldname.focus(); | |||||
| return false; | |||||
| } | |||||
| if (notAllow.indexOf(" "+fieldname+" ") >-1 ) { | |||||
| ShowMsg("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); | |||||
| return false; | |||||
| } | |||||
| if ((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") { | |||||
| ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用英文逗号)"); | |||||
| return false; | |||||
| } | |||||
| if (spage=="no") spage = ""; | |||||
| revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\" isnull=\""+sisnull+"\" default=\""+vdefault+"\" "; | |||||
| revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||||
| document.form1.fieldstring.value = revalue; | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -11,38 +11,6 @@ | |||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <style>.nw{float:left;width:160px}.cls{clear:both}</style> | <style>.nw{float:left;width:160px}.cls{clear:both}</style> | ||||
| <script> | |||||
| function GetFields() | |||||
| { | |||||
| var theform = document.form1; | |||||
| var itemname = theform.itemname.value; | |||||
| var fieldname = theform.fname.value; | |||||
| var dtype = theform.dtype.value; | |||||
| var isnull = theform.isnull.value; | |||||
| var vdefault = theform.vdefault.value; | |||||
| var maxlength = theform.maxlength.value; | |||||
| var vinnertext = theform.vinnertext.value; | |||||
| var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||||
| var sisnull = (isnull==0 ? "false" : "true"); | |||||
| if (itemname=="") | |||||
| { | |||||
| ShowMsg("表单提示名称不能为空"); | |||||
| theform.itemname.focus(); | |||||
| return false; | |||||
| } | |||||
| if ((dtype=="radio"||dtype=="select"||dtype=="checkbox") && vdefault=="") | |||||
| { | |||||
| ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用英文逗号)"); | |||||
| return false; | |||||
| } | |||||
| if (spage=="no") spage = ""; | |||||
| revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\""; | |||||
| revalue += " isnull=\""+sisnull+"\" default=\""+vdefault+"\" "; | |||||
| revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||||
| document.form1.fieldstring.value = revalue; | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="diy_field_edit.php" method="post" onSubmit="return GetFields();"> | <form name="form1" action="diy_field_edit.php" method="post" onSubmit="return GetFields();"> | ||||
| @@ -72,16 +40,14 @@ | |||||
| <select name="dtype" id="type" class="admin-input-sm"> | <select name="dtype" id="type" class="admin-input-sm"> | ||||
| <?php | <?php | ||||
| $dtype = $ctag->GetAtt('type'); | $dtype = $ctag->GetAtt('type'); | ||||
| if ($dtype!='' && isset($fieldtypes[$dtype])) | |||||
| { | |||||
| if ($dtype!='' && isset($fieldtypes[$dtype])) { | |||||
| echo "<option value='{$dtype}'>{$fieldtypes[$dtype]}</option>"; | echo "<option value='{$dtype}'>{$fieldtypes[$dtype]}</option>"; | ||||
| $canchange = true; | $canchange = true; | ||||
| } else { | } else { | ||||
| echo "<option value='{$dtype}'>系统专用类型</option>"; | echo "<option value='{$dtype}'>系统专用类型</option>"; | ||||
| $canchange = false; | $canchange = false; | ||||
| } | } | ||||
| if ($canchange) | |||||
| { | |||||
| if ($canchange) { | |||||
| ?> | ?> | ||||
| <option value="text">单行文本(varchar)</option> | <option value="text">单行文本(varchar)</option> | ||||
| <option value="textchar">单行文本(char)</option> | <option value="textchar">单行文本(char)</option> | ||||
| @@ -135,5 +101,35 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function GetFields() | |||||
| { | |||||
| var theform = document.form1; | |||||
| var itemname = theform.itemname.value; | |||||
| var fieldname = theform.fname.value; | |||||
| var dtype = theform.dtype.value; | |||||
| var isnull = theform.isnull.value; | |||||
| var vdefault = theform.vdefault.value; | |||||
| var maxlength = theform.maxlength.value; | |||||
| var vinnertext = theform.vinnertext.value; | |||||
| var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||||
| var sisnull = (isnull==0 ? "false" : "true"); | |||||
| if (itemname=="") { | |||||
| ShowMsg("表单提示名称不能为空"); | |||||
| theform.itemname.focus(); | |||||
| return false; | |||||
| } | |||||
| if ((dtype=="radio"||dtype=="select"||dtype=="checkbox") && vdefault=="") { | |||||
| ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用英文逗号)"); | |||||
| return false; | |||||
| } | |||||
| if (spage=="no") spage = ""; | |||||
| revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\""; | |||||
| revalue += " isnull=\""+sisnull+"\" default=\""+vdefault+"\" "; | |||||
| revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||||
| document.form1.fieldstring.value = revalue; | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -7,20 +7,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script> | |||||
| function selAll(){ | |||||
| var a = document.getElementsByTagName("input"); | |||||
| for (var i = 0; i < a.length; i++){ | |||||
| if (a[i].type == "checkbox") a[i].checked = true; | |||||
| } | |||||
| } | |||||
| function noSelAll(){ | |||||
| var a = document.getElementsByTagName("input"); | |||||
| for (var i = 0; i < a.length; i++){ | |||||
| if (a[i].type == "checkbox") a[i].checked = false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form action="diy_list.php" method="post"> | <form action="diy_list.php" method="post"> | ||||
| @@ -69,5 +55,19 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function selAll(){ | |||||
| var a = document.getElementsByTagName("input"); | |||||
| for (var i = 0; i < a.length; i++){ | |||||
| if (a[i].type == "checkbox") a[i].checked = true; | |||||
| } | |||||
| } | |||||
| function noSelAll(){ | |||||
| var a = document.getElementsByTagName("input"); | |||||
| for (var i = 0; i < a.length; i++){ | |||||
| if (a[i].type == "checkbox") a[i].checked = false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -7,12 +7,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function SelectTemplets(fname){ | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left="+pos.left+", top="+pos.top); | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="diy_list.php" method="post"> | <form name="form1" action="diy_list.php" method="post"> | ||||
| @@ -33,5 +27,11 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function SelectTemplets(fname){ | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left="+pos.left+", top="+pos.top); | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -8,6 +8,47 @@ | |||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| </head> | |||||
| <body> | |||||
| <form name="form2"> | |||||
| <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | |||||
| <tr> | |||||
| <td bgcolor="#f5f5f5" colspan="8">文档错误管理</td> | |||||
| </tr> | |||||
| <tr bgcolor="#e9ecef" align="center"> | |||||
| <td width="6%">选择</td> | |||||
| <td width="6%">id</td> | |||||
| <td width="16%">挑错人</td> | |||||
| <td width="20%">文档名称</td> | |||||
| <td width="10%">出错类型</td> | |||||
| <td width="10%">挑错时间</td> | |||||
| <td width="16%">错误文档</td> | |||||
| <td>修改建议</td> | |||||
| </tr> | |||||
| {dede:datalist empty='<tr><td colspan="8" align="center">暂无文档</td></tr>'} | |||||
| <tr align="center"> | |||||
| <td><input type="checkbox" name="id" id="id" value="{dede:field.id/}"></td> | |||||
| <td>{dede:field.id/}</td> | |||||
| <td>{dede:field.mid function='username(@me)'/}</td> | |||||
| <td><a href='archives_do.php?dopost=editArchives&aid={dede:field.aid/}'>{dede:field.title/}</a></td> | |||||
| <td>{dede:field.type function='typename(@me)'/}</td> | |||||
| <td>{dede:field.sendtime function='GetDateMk(@me)'/}</td> | |||||
| <td>{dede:field.errtxt/}</td> | |||||
| <td>{dede:field.oktxt/}</td> | |||||
| </tr> | |||||
| {/dede:datalist} | |||||
| <tr> | |||||
| <td colspan="8"> | |||||
| <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a> | |||||
| <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a> | |||||
| <a href="javascript:delArc(0)" class="btn btn-danger btn-sm">删除</a> | |||||
| </td> | |||||
| </tr> | |||||
| <tr bgcolor="#f5f5f5" align="center"> | |||||
| <td colspan="8">{dede:pagelist listsize='6'/}</td> | |||||
| </tr> | |||||
| </table> | |||||
| </form> | |||||
| <script> | <script> | ||||
| function getOneItem() { | function getOneItem() { | ||||
| var allSel = ""; | var allSel = ""; | ||||
| @@ -52,46 +93,5 @@ | |||||
| location = "erraddsave.php?id=" + qstr + "&dopost=delete"; | location = "erraddsave.php?id=" + qstr + "&dopost=delete"; | ||||
| } | } | ||||
| </script> | </script> | ||||
| </head> | |||||
| <body> | |||||
| <form name="form2"> | |||||
| <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | |||||
| <tr> | |||||
| <td bgcolor="#f5f5f5" colspan="8">文档错误管理</td> | |||||
| </tr> | |||||
| <tr bgcolor="#e9ecef" align="center"> | |||||
| <td width="6%">选择</td> | |||||
| <td width="6%">id</td> | |||||
| <td width="16%">挑错人</td> | |||||
| <td width="20%">文档名称</td> | |||||
| <td width="10%">出错类型</td> | |||||
| <td width="10%">挑错时间</td> | |||||
| <td width="16%">错误文档</td> | |||||
| <td>修改建议</td> | |||||
| </tr> | |||||
| {dede:datalist empty='<tr><td colspan="8" align="center">暂无文档</td></tr>'} | |||||
| <tr align="center"> | |||||
| <td><input type="checkbox" name="id" id="id" value="{dede:field.id/}"></td> | |||||
| <td>{dede:field.id/}</td> | |||||
| <td>{dede:field.mid function='username(@me)'/}</td> | |||||
| <td><a href='archives_do.php?dopost=editArchives&aid={dede:field.aid/}'>{dede:field.title/}</a></td> | |||||
| <td>{dede:field.type function='typename(@me)'/}</td> | |||||
| <td>{dede:field.sendtime function='GetDateMk(@me)'/}</td> | |||||
| <td>{dede:field.errtxt/}</td> | |||||
| <td>{dede:field.oktxt/}</td> | |||||
| </tr> | |||||
| {/dede:datalist} | |||||
| <tr> | |||||
| <td colspan="8"> | |||||
| <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a> | |||||
| <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a> | |||||
| <a href="javascript:delArc(0)" class="btn btn-danger btn-sm">删除</a> | |||||
| </td> | |||||
| </tr> | |||||
| <tr bgcolor="#f5f5f5" align="center"> | |||||
| <td colspan="8">{dede:pagelist listsize='6'/}</td> | |||||
| </tr> | |||||
| </table> | |||||
| </form> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,6 +10,71 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| </head> | |||||
| <body> | |||||
| <form name="form1"> | |||||
| <table cellpadding="3" align="center" cellspacing="1" class="table maintable my-3"> | |||||
| <tr bgcolor="#f5f5f5"> | |||||
| <td> | |||||
| <input type="text" name="keyword" placeholder="请输入关键词" class="admin-input-lg mr-3"> | |||||
| <select name="typeid" class="admin-input-sm mr-3"> | |||||
| <option value="0">请选择</option> | |||||
| {dede:global.openarray/} | |||||
| </select> | |||||
| <button type="submit" class="btn btn-success btn-sm">搜索</button> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| </form> | |||||
| <form name="feedback"> | |||||
| <table cellpadding="0" cellspacing="0" align="center" class="table maintable mb-3"> | |||||
| <tr> | |||||
| <td colspan="8" bgcolor="#f5f5f5">评论列表</td> | |||||
| </tr> | |||||
| <tr bgcolor="#e9ecef" align="center"> | |||||
| <td width="6%">选择</td> | |||||
| <td width="10%">名称</td> | |||||
| <td width="20%">文档</td> | |||||
| <td width="20%">评论</td> | |||||
| <td width="10%">地址</td> | |||||
| <td width="10%">时间</td> | |||||
| <td width="10%">状态</td> | |||||
| <td>操作</td> | |||||
| </tr> | |||||
| {dede:datalist empty='<tr><td colspan="8" align="center">暂无文档</td></tr>'} | |||||
| <tr align="center"> | |||||
| <td><input type="checkbox" name="fid" id="fid" value="{dede:field.id/}"></td> | |||||
| <td align="left">{dede:field.username/}</td> | |||||
| <td align="left">{dede:field.arctitle function="RemoveXSS(@me)"/}</td> | |||||
| <td align="left"> | |||||
| <span>{dede:field.msg function='cn_substr(Text2Html(@me),280)'/}</span> | |||||
| <?php if ($fields['replycount'] > 0) {?><a href='feedback_main.php?fid={dede:field.id/}' class='btn btn-light btn-sm'>{dede:field.replycount/}条回复</a><?php }?> | |||||
| </td> | |||||
| <td><a href='feedback_main.php?ip={dede:field.ip/}'>{dede:field.ip/}</a></td> | |||||
| <td>{dede:field.dtime function="GetDateTimeMK(@me)"/}</td> | |||||
| <td>{dede:field.ischeck function="IsCheck(@me)"/}</td> | |||||
| <td> | |||||
| <a href="feedback_edit.php?id={dede:field.id/}" class="btn btn-light btn-sm"><i class="fa fa-pencil-square"></i> 修改</a> | |||||
| <a href="feedback_edit.php?id={dede:field.id/}&dopost=makehtml" class="btn btn-light btn-sm"><i class="fa fa-repeat"></i> 更新</a> | |||||
| <a href="archives_do.php?aid={dede:field.aid/}&dopost=viewArchives" target="_blank" class="btn btn-light btn-sm"><i class="fa fa-eye"></i> 浏览</a> | |||||
| </td> | |||||
| </tr> | |||||
| {/dede:datalist} | |||||
| <tr> | |||||
| <td colspan="8"> | |||||
| <button type="button" name="kk1" onclick="selAll()" class="btn btn-success btn-sm">全选</button> | |||||
| <button type="button" name="kk2" onclick="selNone()" class="btn btn-success btn-sm">取消</button> | |||||
| <button type="button" name="kk3" onclick="selNor()" class="btn btn-success btn-sm">反选</button> | |||||
| <button type="button" name="db2" onclick="checkFeedback()" class="btn btn-success btn-sm">审核评论</button> | |||||
| <button type="button" name="db" onclick="delFeedback()" class="btn btn-danger btn-sm">删除评论</button> | |||||
| <button type="button" name="db" onclick="delFeedbackIP()" class="btn btn-danger btn-sm">删除所有相同地址评论</button> | |||||
| </td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td colspan="8" bgcolor="#f5f5f5" align="center">{dede:pagelist listsize='6'/}</td> | |||||
| </tr> | |||||
| </table> | |||||
| </form> | |||||
| <script> | <script> | ||||
| //获得选中文件的文件名 | //获得选中文件的文件名 | ||||
| function getCheckboxItem() { | function getCheckboxItem() { | ||||
| @@ -104,70 +169,5 @@ | |||||
| }); | }); | ||||
| } | } | ||||
| </script> | </script> | ||||
| </head> | |||||
| <body> | |||||
| <form name="form1"> | |||||
| <table cellpadding="3" align="center" cellspacing="1" class="table maintable my-3"> | |||||
| <tr bgcolor="#f5f5f5"> | |||||
| <td> | |||||
| <input type="text" name="keyword" placeholder="请输入关键词" class="admin-input-lg mr-3"> | |||||
| <select name="typeid" class="admin-input-sm mr-3"> | |||||
| <option value="0">请选择</option> | |||||
| {dede:global.openarray/} | |||||
| </select> | |||||
| <button type="submit" class="btn btn-success btn-sm">搜索</button> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| </form> | |||||
| <form name="feedback"> | |||||
| <table cellpadding="0" cellspacing="0" align="center" class="table maintable mb-3"> | |||||
| <tr> | |||||
| <td colspan="8" bgcolor="#f5f5f5">评论列表</td> | |||||
| </tr> | |||||
| <tr bgcolor="#e9ecef" align="center"> | |||||
| <td width="6%">选择</td> | |||||
| <td width="10%">名称</td> | |||||
| <td width="20%">文档</td> | |||||
| <td width="20%">评论</td> | |||||
| <td width="10%">地址</td> | |||||
| <td width="10%">时间</td> | |||||
| <td width="10%">状态</td> | |||||
| <td>操作</td> | |||||
| </tr> | |||||
| {dede:datalist empty='<tr><td colspan="8" align="center">暂无文档</td></tr>'} | |||||
| <tr align="center"> | |||||
| <td><input type="checkbox" name="fid" id="fid" value="{dede:field.id/}"></td> | |||||
| <td align="left">{dede:field.username/}</td> | |||||
| <td align="left">{dede:field.arctitle function="RemoveXSS(@me)"/}</td> | |||||
| <td align="left"> | |||||
| <span>{dede:field.msg function='cn_substr(Text2Html(@me),280)'/}</span> | |||||
| <?php if ($fields['replycount'] > 0) {?><a href='feedback_main.php?fid={dede:field.id/}' class='btn btn-light btn-sm'>{dede:field.replycount/}条回复</a><?php }?> | |||||
| </td> | |||||
| <td><a href='feedback_main.php?ip={dede:field.ip/}'>{dede:field.ip/}</a></td> | |||||
| <td>{dede:field.dtime function="GetDateTimeMK(@me)"/}</td> | |||||
| <td>{dede:field.ischeck function="IsCheck(@me)"/}</td> | |||||
| <td> | |||||
| <a href="feedback_edit.php?id={dede:field.id/}" class="btn btn-light btn-sm"><i class="fa fa-pencil-square"></i> 修改</a> | |||||
| <a href="feedback_edit.php?id={dede:field.id/}&dopost=makehtml" class="btn btn-light btn-sm"><i class="fa fa-repeat"></i> 更新</a> | |||||
| <a href="archives_do.php?aid={dede:field.aid/}&dopost=viewArchives" target="_blank" class="btn btn-light btn-sm"><i class="fa fa-eye"></i> 浏览</a> | |||||
| </td> | |||||
| </tr> | |||||
| {/dede:datalist} | |||||
| <tr> | |||||
| <td colspan="8"> | |||||
| <button type="button" name="kk1" onclick="selAll()" class="btn btn-success btn-sm">全选</button> | |||||
| <button type="button" name="kk2" onclick="selNone()" class="btn btn-success btn-sm">取消</button> | |||||
| <button type="button" name="kk3" onclick="selNor()" class="btn btn-success btn-sm">反选</button> | |||||
| <button type="button" name="db2" onclick="checkFeedback()" class="btn btn-success btn-sm">审核评论</button> | |||||
| <button type="button" name="db" onclick="delFeedback()" class="btn btn-danger btn-sm">删除评论</button> | |||||
| <button type="button" name="db" onclick="delFeedbackIP()" class="btn btn-danger btn-sm">删除所有相同地址评论</button> | |||||
| </td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td colspan="8" bgcolor="#f5f5f5" align="center">{dede:pagelist listsize='6'/}</td> | |||||
| </tr> | |||||
| </table> | |||||
| </form> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -18,15 +18,6 @@ | |||||
| <script src="js/mode/clike/clike.js"></script> | <script src="js/mode/clike/clike.js"></script> | ||||
| <script src="js/mode/htmlmixed/htmlmixed.js"></script> | <script src="js/mode/htmlmixed/htmlmixed.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function Post() { | |||||
| if (document.form1.filename.value == "") { | |||||
| ShowMsg("文件名不能为空"); | |||||
| document.form1.filename.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form method="POST" action="file_manage_control.php" name=form1 onSubmit="return Post()"> | <form method="POST" action="file_manage_control.php" name=form1 onSubmit="return Post()"> | ||||
| @@ -62,6 +53,15 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function Post() { | |||||
| if (document.form1.filename.value == "") { | |||||
| ShowMsg("文件名不能为空"); | |||||
| document.form1.filename.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <script> | <script> | ||||
| var editor = CodeMirror.fromTextArea(document.getElementById('str'), { | var editor = CodeMirror.fromTextArea(document.getElementById('str'), { | ||||
| lineNumbers: true, | lineNumbers: true, | ||||
| @@ -1,266 +1,266 @@ | |||||
| <!DOCTYPE html> | <!DOCTYPE html> | ||||
| <html> | <html> | ||||
| <head> | |||||
| <meta charset="utf-8"> | |||||
| <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||||
| <title>文件管理器</title> | |||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | |||||
| </head> | |||||
| <body> | |||||
| <table cellspacing="1" cellpadding="2" align="center" class="table maintable icon my-3"> | |||||
| <tr> | |||||
| <td bgcolor="#f5f5f5" colspan="4">文件管理器</td> | |||||
| </tr> | |||||
| <tr bgcolor="#e9ecef" align="center"> | |||||
| <td width="26%">文件名称</td> | |||||
| <td width="26%">文件大小</td> | |||||
| <td width="26%">修改时间</td> | |||||
| <td>操作</td> | |||||
| </tr> | |||||
| <?php | |||||
| $dh = scandir($inpath); | |||||
| $ty1 = ""; | |||||
| $ty2 = ""; | |||||
| $files = $dirs = array(); | |||||
| foreach ($dh as $file) { | |||||
| if ($file!="." && $file!=".." && !is_dir("$inpath/$file")) { | |||||
| @$filesize = filesize("$inpath/$file"); | |||||
| @$filesize = $filesize/1024; | |||||
| @$filetime = filemtime("$inpath/$file"); | |||||
| @$filetime = MyDate("Y-m-d H:i:s",$filetime); | |||||
| if ($filesize<0.1) { | |||||
| @list($ty1,$ty2)=explode(".",$filesize); | |||||
| $filesize=$ty1.".".substr($ty2,0,2); | |||||
| } else { | |||||
| @list($ty1,$ty2)=explode(".",$filesize); | |||||
| $filesize=$ty1.".".substr($ty2,0,1); | |||||
| } | |||||
| } | |||||
| if ($file == ".") { | |||||
| continue; | |||||
| } | |||||
| else if ($file == "..") | |||||
| { | |||||
| if ($activepath == "") { | |||||
| continue; | |||||
| } | |||||
| $tmp = preg_replace("#[\/][^\/]*$#i","",$activepath); | |||||
| $line = "\n<tr> | |||||
| <td><a href='file_manage_main.php?activepath=".urlencode($tmp)."'><img src='../static/web/img/icon_dir2.png'>上级目录</a></td> | |||||
| <td colspan='3'>当前目录:$activepath</td> | |||||
| </tr>"; | |||||
| $dirs[] = $line; | |||||
| } else if (is_dir("$inpath/$file")) { | |||||
| if (preg_match("#^_(.*)$#i",$file)) continue; | |||||
| if (preg_match("#^\.(.*)$#i",$file)) continue; | |||||
| $line = "\n<tr> | |||||
| <td><a href='file_manage_main.php?activepath=".urlencode("$activepath/$file")."'><img src='../static/web/img/icon_dir.png'>$file</a></td> | |||||
| <td></td> | |||||
| <td></td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&fmdo=rename' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&type=dir&fmdo=del' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $dirs[] = $line; | |||||
| } else if (preg_match("#\.(gif|png)#i",$file)) { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='$activeurl/$file'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(jpg)#i",$file)) { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='$activeurl/$file'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(swf|fla|fly)#i",$file)) { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_flash.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(zip|rar|tar.gz)#i",$file)) { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_zip.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(exe)#i",$file)) { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_exe.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(mp3|wma)#i",$file)) { | |||||
| $line = "\n<tr > | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_music.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(wmv|api)#i",$file)) { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_video.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(rm|rmvb)#i",$file)) { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_rm.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(txt|inc|pl|cgi|asp|xml|xsl|aspx|cfm)#",$file)) { | |||||
| $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_text.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square'></i> 修改</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(htm|html)#i",$file)) { | |||||
| $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_htm.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square'></i> 修改</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(php)#i",$file)) { | |||||
| $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_php.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square'></i> 修改</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(js)#i",$file)) { | |||||
| $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_js.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square'></i> 修改</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(css)#i",$file)) { | |||||
| $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_css.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square'></i> 修改</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'>$file</td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } | |||||
| } | |||||
| foreach ($dirs as $dir) { | |||||
| echo $dir; | |||||
| } | |||||
| foreach ($files as $file) { | |||||
| echo $file; | |||||
| } | |||||
| ?> | |||||
| <tr> | |||||
| <td bgcolor="#f5f5f5" colspan="4" align="center"> | |||||
| <?php if (!DEDEBIZ_SAFE_MODE) {?><a href="file_manage_main.php" class="btn btn-success btn-sm">根目录</a><?php }?> | |||||
| <a href="file_manage_view.php?fmdo=newfile&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">新建文件</a> | |||||
| <a href="file_manage_view.php?fmdo=newdir&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">新建目录</a> | |||||
| <a href="file_manage_view.php?fmdo=upload&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">文件上传</a> | |||||
| <a href="file_manage_control.php?fmdo=space&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">空间检查</a> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| </body> | |||||
| <head> | |||||
| <meta charset="utf-8"> | |||||
| <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||||
| <title>文件管理器</title> | |||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | |||||
| </head> | |||||
| <body> | |||||
| <table cellspacing="1" cellpadding="2" align="center" class="table maintable icon my-3"> | |||||
| <tr> | |||||
| <td bgcolor="#f5f5f5" colspan="4">文件管理器</td> | |||||
| </tr> | |||||
| <tr bgcolor="#e9ecef" align="center"> | |||||
| <td width="26%">文件名称</td> | |||||
| <td width="26%">文件大小</td> | |||||
| <td width="26%">修改时间</td> | |||||
| <td>操作</td> | |||||
| </tr> | |||||
| <?php | |||||
| $dh = scandir($inpath); | |||||
| $ty1 = ""; | |||||
| $ty2 = ""; | |||||
| $files = $dirs = array(); | |||||
| foreach ($dh as $file) { | |||||
| if ($file!="." && $file!=".." && !is_dir("$inpath/$file")) { | |||||
| @$filesize = filesize("$inpath/$file"); | |||||
| @$filesize = $filesize/1024; | |||||
| @$filetime = filemtime("$inpath/$file"); | |||||
| @$filetime = MyDate("Y-m-d H:i:s",$filetime); | |||||
| if ($filesize<0.1) { | |||||
| @list($ty1,$ty2)=explode(".",$filesize); | |||||
| $filesize=$ty1.".".substr($ty2,0,2); | |||||
| } else { | |||||
| @list($ty1,$ty2)=explode(".",$filesize); | |||||
| $filesize=$ty1.".".substr($ty2,0,1); | |||||
| } | |||||
| } | |||||
| if ($file == ".") { | |||||
| continue; | |||||
| } | |||||
| else if ($file == "..") | |||||
| { | |||||
| if ($activepath == "") { | |||||
| continue; | |||||
| } | |||||
| $tmp = preg_replace("#[\/][^\/]*$#i","",$activepath); | |||||
| $line = "\n<tr> | |||||
| <td><a href='file_manage_main.php?activepath=".urlencode($tmp)."'><img src='../static/web/img/icon_dir2.png'>上级目录</a></td> | |||||
| <td colspan='3'>当前目录:$activepath</td> | |||||
| </tr>"; | |||||
| $dirs[] = $line; | |||||
| } else if (is_dir("$inpath/$file")) { | |||||
| if (preg_match("#^_(.*)$#i",$file)) continue; | |||||
| if (preg_match("#^\.(.*)$#i",$file)) continue; | |||||
| $line = "\n<tr> | |||||
| <td><a href='file_manage_main.php?activepath=".urlencode("$activepath/$file")."'><img src='../static/web/img/icon_dir.png'>$file</a></td> | |||||
| <td></td> | |||||
| <td></td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&fmdo=rename' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?filename=".urlencode($file)."&activepath=".urlencode($activepath)."&type=dir&fmdo=del' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $dirs[] = $line; | |||||
| } else if (preg_match("#\.(gif|png)#i",$file)) { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='$activeurl/$file'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(jpg)#i",$file)) { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='$activeurl/$file'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(swf|fla|fly)#i",$file)) { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_flash.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(zip|rar|tar.gz)#i",$file)) { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_zip.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(exe)#i",$file)) { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_exe.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(mp3|wma)#i",$file)) { | |||||
| $line = "\n<tr > | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_music.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(wmv|api)#i",$file)) { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_video.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(rm|rmvb)#i",$file)) { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_rm.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(txt|inc|pl|cgi|asp|xml|xsl|aspx|cfm)#",$file)) { | |||||
| $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_text.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square'></i> 修改</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(htm|html)#i",$file)) { | |||||
| $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_htm.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square'></i> 修改</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(php)#i",$file)) { | |||||
| $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_php.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square'></i> 修改</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(js)#i",$file)) { | |||||
| $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_js.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square'></i> 修改</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else if (preg_match("#\.(css)#i",$file)) { | |||||
| $edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'><img src='../static/web/img/icon_css.png'>$file</a></td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='$edurl' class='btn btn-light btn-sm'><i class='fa fa-pencil-square'></i> 修改</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } else { | |||||
| $line = "\n<tr> | |||||
| <td><a href='$activeurl/$file' target='_blank'>$file</td> | |||||
| <td>$filesize KB</td> | |||||
| <td>$filetime</td> | |||||
| <td align='left'> | |||||
| <a href='file_manage_view.php?fmdo=move&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-share-square'></i> 移动</a> | |||||
| <a href='file_manage_view.php?fmdo=rename&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-light btn-sm'><i class='fa fa-folder'></i> 改名</a> | |||||
| <a href='file_manage_view.php?fmdo=del&filename=".urlencode($file)."&activepath=".urlencode($activepath)."' class='btn btn-danger btn-sm'><i class='fa fa-trash'></i> 删除</a> | |||||
| </td> | |||||
| </tr>"; | |||||
| $files[] = $line; | |||||
| } | |||||
| } | |||||
| foreach ($dirs as $dir) { | |||||
| echo $dir; | |||||
| } | |||||
| foreach ($files as $file) { | |||||
| echo $file; | |||||
| } | |||||
| ?> | |||||
| <tr> | |||||
| <td bgcolor="#f5f5f5" colspan="4" align="center"> | |||||
| <?php if (!DEDEBIZ_SAFE_MODE) {?><a href="file_manage_main.php" class="btn btn-success btn-sm">根目录</a><?php }?> | |||||
| <a href="file_manage_view.php?fmdo=newfile&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">新建文件</a> | |||||
| <a href="file_manage_view.php?fmdo=newdir&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">新建目录</a> | |||||
| <a href="file_manage_view.php?fmdo=upload&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">文件上传</a> | |||||
| <a href="file_manage_control.php?fmdo=space&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">空间检查</a> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| </body> | |||||
| </html> | </html> | ||||
| @@ -6,20 +6,6 @@ | |||||
| <title>文件上传</title> | <title>文件上传</title> | ||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script> | |||||
| var i=1; | |||||
| function make_upload() | |||||
| { | |||||
| i++; | |||||
| myob = document.getElementById("upfield"); | |||||
| myob.innerHTML+="<p>文件"+i+":<input type='file' name='upfile"+i+"' class='admin-input-lg'></p>"; | |||||
| } | |||||
| function reset_upload() | |||||
| { | |||||
| myob = document.getElementById("upfield"); | |||||
| myob.innerHTML="<p>文件1:<input type='file' name='upfile1' class='admin-input-lg'></p>"; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form method="POST" enctype="multipart/form-data" action="file_manage_control.php" name="form1"> | <form method="POST" enctype="multipart/form-data" action="file_manage_control.php" name="form1"> | ||||
| @@ -47,5 +33,19 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| var i=1; | |||||
| function make_upload() | |||||
| { | |||||
| i++; | |||||
| myob = document.getElementById("upfield"); | |||||
| myob.innerHTML+="<p>文件"+i+":<input type='file' name='upfile"+i+"' class='admin-input-lg'></p>"; | |||||
| } | |||||
| function reset_upload() | |||||
| { | |||||
| myob = document.getElementById("upfield"); | |||||
| myob.innerHTML="<p>文件1:<input type='file' name='upfile1' class='admin-input-lg'></p>"; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -219,7 +219,7 @@ | |||||
| document.form1.title.focus(); | document.form1.title.focus(); | ||||
| return false; | return false; | ||||
| } | } | ||||
| return true; | |||||
| return true; | |||||
| } | } | ||||
| </script> | </script> | ||||
| <script> | <script> | ||||
| @@ -10,6 +10,28 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| </head> | |||||
| <body> | |||||
| <table cellpadding="5" cellspacing="1" align="center" class="table maintable my-3"> | |||||
| <tr bgcolor="#f5f5f5"> | |||||
| <td> | |||||
| <input type="text" name="keyword" id="keyword" value="<?php echo $keyword?>" class="admin-input-lg mr-3"> | |||||
| <button type="submit" name="Submit2" class="btn btn-success btn-sm">搜索</button> | |||||
| <button type="button" name="bt1" onclick="location='freelist_add.php';" class="btn btn-success btn-sm">添加列表</button> | |||||
| <button type="button" name="bt2" onclick="location='makehtml_freelist.php';" class="btn btn-success btn-sm">更新所有列表</button> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| <div id="rslist"><?php GetTagList($dsql,$pageno,$pagesize,$orderby);?></div> | |||||
| <table cellpadding="1" cellspacing="1" align="center" class="table maintable mb-3"> | |||||
| <tr> | |||||
| <td bgcolor="#f5f5f5"> | |||||
| <div id="pagelist"> | |||||
| <script>ReloadPageNum(1);</script> | |||||
| </div> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| <script> | <script> | ||||
| var pageno = 1; | var pageno = 1; | ||||
| var totalrow = parseInt('<?php echo $totalRow;?>'); | var totalrow = parseInt('<?php echo $totalRow;?>'); | ||||
| @@ -104,27 +126,5 @@ | |||||
| ListArea.innerHTML = ahtml+"</ul>"; | ListArea.innerHTML = ahtml+"</ul>"; | ||||
| } | } | ||||
| </script> | </script> | ||||
| </head> | |||||
| <body> | |||||
| <table cellpadding="5" cellspacing="1" align="center" class="table maintable my-3"> | |||||
| <tr bgcolor="#f5f5f5"> | |||||
| <td> | |||||
| <input type="text" name="keyword" id="keyword" value="<?php echo $keyword?>" class="admin-input-lg mr-3"> | |||||
| <button type="submit" name="Submit2" class="btn btn-success btn-sm">搜索</button> | |||||
| <button type="button" name="bt1" onclick="location='freelist_add.php';" class="btn btn-success btn-sm">添加列表</button> | |||||
| <button type="button" name="bt2" onclick="location='makehtml_freelist.php';" class="btn btn-success btn-sm">更新所有列表</button> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| <div id="rslist"><?php GetTagList($dsql,$pageno,$pagesize,$orderby);?></div> | |||||
| <table cellpadding="1" cellspacing="1" align="center" class="table maintable mb-3"> | |||||
| <tr> | |||||
| <td bgcolor="#f5f5f5"> | |||||
| <div id="pagelist"> | |||||
| <script>ReloadPageNum(1);</script> | |||||
| </div> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,22 +10,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function CheckSubmit() | |||||
| { | |||||
| if (document.form1.url.value=="http://"||document.form1.url.value=="") { | |||||
| document.form1.url.focus(); | |||||
| ShowMsg("网址不能为空"); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.webname.value=="") { | |||||
| document.form1.webname.focus(); | |||||
| ShowMsg("网站名称不能为空"); | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form action="friendlink_add.php" method="post" enctype="multipart/form-data" name="form1" onSubmit="return CheckSubmit();"> | <form action="friendlink_add.php" method="post" enctype="multipart/form-data" name="form1" onSubmit="return CheckSubmit();"> | ||||
| @@ -93,5 +77,21 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function CheckSubmit() | |||||
| { | |||||
| if (document.form1.url.value=="http://"||document.form1.url.value=="") { | |||||
| document.form1.url.focus(); | |||||
| ShowMsg("网址不能为空"); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.webname.value=="") { | |||||
| document.form1.webname.focus(); | |||||
| ShowMsg("网站名称不能为空"); | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -11,29 +11,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function Sel(stype) { | |||||
| for (var i = 0; i < document.getElementsByName('aids').length; i++) { | |||||
| if (stype == 'all') document.getElementsByName('aids')[i].checked = true; | |||||
| else document.getElementsByName('aids')[i].checked = false; | |||||
| } | |||||
| } | |||||
| function checkSubmit() { | |||||
| var str = ''; | |||||
| for (var i = 0; i < document.getElementsByName('aids').length; i++) { | |||||
| if (document.getElementsByName('aids')[i].checked) { | |||||
| if (str == '') str += document.getElementsByName('aids')[i].value; | |||||
| else str += ',' + document.getElementsByName('aids')[i].value; | |||||
| } | |||||
| } | |||||
| if (str == '') { | |||||
| ShowMsg('您没选择任何文档'); | |||||
| return false; | |||||
| } else { | |||||
| location = "friendlink_edit.php?aids=" + str + "&dopost=delall"; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form action="friendlink_main.php" name="form1" method="get"> | <form action="friendlink_main.php" name="form1" method="get"> | ||||
| @@ -102,5 +79,28 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function Sel(stype) { | |||||
| for (var i = 0; i < document.getElementsByName('aids').length; i++) { | |||||
| if (stype == 'all') document.getElementsByName('aids')[i].checked = true; | |||||
| else document.getElementsByName('aids')[i].checked = false; | |||||
| } | |||||
| } | |||||
| function checkSubmit() { | |||||
| var str = ''; | |||||
| for (var i = 0; i < document.getElementsByName('aids').length; i++) { | |||||
| if (document.getElementsByName('aids')[i].checked) { | |||||
| if (str == '') str += document.getElementsByName('aids')[i].value; | |||||
| else str += ',' + document.getElementsByName('aids')[i].value; | |||||
| } | |||||
| } | |||||
| if (str == '') { | |||||
| ShowMsg('您没选择任何文档'); | |||||
| return false; | |||||
| } else { | |||||
| location = "friendlink_edit.php?aids=" + str + "&dopost=delall"; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -7,39 +7,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script> | |||||
| //获得选中文件的文件名 | |||||
| function getCheckboxItem() { | |||||
| var allSel = ""; | |||||
| if (document.form1.logs.value) return document.form1.logs.value; | |||||
| for (i = 0; i < document.form1.logs.length; i++) { | |||||
| if (document.form1.logs[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = document.form1.logs[i].value; | |||||
| else | |||||
| allSel = allSel + "`" + document.form1.logs[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| function ReSel() { | |||||
| for (i = 0; i < document.form1.logs.length; i++) { | |||||
| if (document.form1.logs[i].checked) document.form1.logs[i].checked = false; | |||||
| else document.form1.logs[i].checked = true; | |||||
| } | |||||
| } | |||||
| function DelSel() { | |||||
| var nid = getCheckboxItem(); | |||||
| if (nid == "") { | |||||
| alert("请选择项目"); | |||||
| return; | |||||
| } | |||||
| location.href = "log_edit.php?dopost=del&ids=" + nid; | |||||
| } | |||||
| function ClearLog() { | |||||
| location.href = "log_edit.php?dopost=clear"; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="formsearch"> | <form name="formsearch"> | ||||
| @@ -100,5 +67,38 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| //获得选中文件的文件名 | |||||
| function getCheckboxItem() { | |||||
| var allSel = ""; | |||||
| if (document.form1.logs.value) return document.form1.logs.value; | |||||
| for (i = 0; i < document.form1.logs.length; i++) { | |||||
| if (document.form1.logs[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = document.form1.logs[i].value; | |||||
| else | |||||
| allSel = allSel + "`" + document.form1.logs[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| function ReSel() { | |||||
| for (i = 0; i < document.form1.logs.length; i++) { | |||||
| if (document.form1.logs[i].checked) document.form1.logs[i].checked = false; | |||||
| else document.form1.logs[i].checked = true; | |||||
| } | |||||
| } | |||||
| function DelSel() { | |||||
| var nid = getCheckboxItem(); | |||||
| if (nid == "") { | |||||
| alert("请选择项目"); | |||||
| return; | |||||
| } | |||||
| location.href = "log_edit.php?dopost=del&ids=" + nid; | |||||
| } | |||||
| function ClearLog() { | |||||
| location.href = "log_edit.php?dopost=clear"; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -11,6 +11,43 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/moment.min.js"></script> | <script src="../static/web/js/moment.min.js"></script> | ||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| </head> | |||||
| <body> | |||||
| <form name="form1" action="makehtml_all.php" target="stafrm" method="post"> | |||||
| <input type="hidden" name="action" value="make"> | |||||
| <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | |||||
| <tr> | |||||
| <td bgcolor="#f5f5f5" colspan="2">更新整站</td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td width="260">更新选项:</td> | |||||
| <td> | |||||
| <label><input type="radio" name="uptype" id="uptype1" onclick="SelUp()" value="time" checked="checked"> 指定时间的所有更新</label> | |||||
| <label><input type="radio" name="uptype" id="uptype2" onclick="SelUp()" value="id"> 指定文档的所有更新</label> | |||||
| <label><input type="radio" name="uptype" id="uptype3" onclick="SelUp()" value="mkall"> 更新所有</label> | |||||
| </td> | |||||
| </tr> | |||||
| <tr id="seltime"> | |||||
| <td>起始时间:</td> | |||||
| <td><input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time());?>" class="datepicker" class="admin-input-sm"></td> | |||||
| </tr> | |||||
| <tr id="selid" style="display:none"> | |||||
| <td>起始id:</td> | |||||
| <td><input type="text" name="startid" id="startid" value="0" class="admin-input-sm"></td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td bgcolor="#e9ecef" colspan="2" align="center"> | |||||
| <button type="submit" name="Submit" class="btn btn-success btn-sm">开始更新</button> | |||||
| <button type="button" class="btn btn-outline-success btn-sm" onclick="location='sys_cache_up.php';">更新缓存</button> | |||||
| </td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td colspan="2" id="mtd"> | |||||
| <div id="mdv" class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| </form> | |||||
| <script> | <script> | ||||
| $(document).ready(function() { | $(document).ready(function() { | ||||
| $('.datepicker').daterangepicker({ | $('.datepicker').daterangepicker({ | ||||
| @@ -59,42 +96,5 @@ | |||||
| } | } | ||||
| } | } | ||||
| </script> | </script> | ||||
| </head> | |||||
| <body> | |||||
| <form name="form1" action="makehtml_all.php" target="stafrm" method="post"> | |||||
| <input type="hidden" name="action" value="make"> | |||||
| <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | |||||
| <tr> | |||||
| <td bgcolor="#f5f5f5" colspan="2">更新整站</td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td width="260">更新选项:</td> | |||||
| <td> | |||||
| <label><input type="radio" name="uptype" id="uptype1" onclick="SelUp()" value="time" checked="checked"> 指定时间的所有更新</label> | |||||
| <label><input type="radio" name="uptype" id="uptype2" onclick="SelUp()" value="id"> 指定文档的所有更新</label> | |||||
| <label><input type="radio" name="uptype" id="uptype3" onclick="SelUp()" value="mkall"> 更新所有</label> | |||||
| </td> | |||||
| </tr> | |||||
| <tr id="seltime"> | |||||
| <td>起始时间:</td> | |||||
| <td><input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time());?>" class="datepicker" class="admin-input-sm"></td> | |||||
| </tr> | |||||
| <tr id="selid" style="display:none"> | |||||
| <td>起始id:</td> | |||||
| <td><input type="text" name="startid" id="startid" value="0" class="admin-input-sm"></td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td bgcolor="#e9ecef" colspan="2" align="center"> | |||||
| <button type="submit" name="Submit" class="btn btn-success btn-sm">开始更新</button> | |||||
| <button type="button" class="btn btn-outline-success btn-sm" onclick="location='sys_cache_up.php';">更新缓存</button> | |||||
| </td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td colspan="2" id="mtd"> | |||||
| <div id="mdv" class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| </form> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -9,16 +9,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function SelectTemplets(fname) { | |||||
| var pos = GetWinPos(800, 600); | |||||
| window.open("./dialog/select_templets.php?f=" + fname, "poptempWin","scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function htmlSubmit() { | |||||
| form1.submit(); | |||||
| $("#dedebiz_admin").val(""); | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="makehtml_homepage.php" target="stafrm" method="post"> | <form name="form1" action="makehtml_homepage.php" target="stafrm" method="post"> | ||||
| @@ -110,5 +100,15 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function SelectTemplets(fname) { | |||||
| var pos = GetWinPos(800, 600); | |||||
| window.open("./dialog/select_templets.php?f=" + fname, "poptempWin","scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function htmlSubmit() { | |||||
| form1.submit(); | |||||
| $("#dedebiz_admin").val(""); | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -11,11 +11,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/select2.min.js"></script> | <script src="../static/web/js/select2.min.js"></script> | ||||
| <script src="../static/web/js/i18n/zh-CN.js"></script> | <script src="../static/web/js/i18n/zh-CN.js"></script> | ||||
| <script> | |||||
| function onTagSubmit() { | |||||
| document.form1.submit(); | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="makehtml_tag_action_list.php" method="get" target="stafrm"> | <form name="form1" action="makehtml_tag_action_list.php" method="get" target="stafrm"> | ||||
| @@ -76,5 +71,10 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function onTagSubmit() { | |||||
| document.form1.submit(); | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,29 +10,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function CheckSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请设置标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| var startNum = 6; | |||||
| function MakeUpload() { | |||||
| var upfield = document.getElementById("uploadfield"); | |||||
| var endNum = Number(document.form1.picnum.value) + startNum; | |||||
| if (endNum > 40) endNum = 40; | |||||
| for (startNum; startNum <= endNum; startNum++) { | |||||
| upfield.innerHTML += "<p><input type='file' name='upfile" + startNum + "' class='admin-input-lg'></p>"; | |||||
| } | |||||
| } | |||||
| function ResetUpload() { | |||||
| var upfield = document.getElementById("uploadfield"); | |||||
| upfield.innerHTML = ""; | |||||
| startNum = 2; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form enctype="multipart/form-data" name="form1" action="media_add.php" method="POST" onSubmit="return CheckSubmit();"> | <form enctype="multipart/form-data" name="form1" action="media_add.php" method="POST" onSubmit="return CheckSubmit();"> | ||||
| @@ -92,5 +69,28 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function CheckSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请设置标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| var startNum = 6; | |||||
| function MakeUpload() { | |||||
| var upfield = document.getElementById("uploadfield"); | |||||
| var endNum = Number(document.form1.picnum.value) + startNum; | |||||
| if (endNum > 40) endNum = 40; | |||||
| for (startNum; startNum <= endNum; startNum++) { | |||||
| upfield.innerHTML += "<p><input type='file' name='upfile" + startNum + "' class='admin-input-lg'></p>"; | |||||
| } | |||||
| } | |||||
| function ResetUpload() { | |||||
| var upfield = document.getElementById("uploadfield"); | |||||
| upfield.innerHTML = ""; | |||||
| startNum = 2; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,15 +10,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function CheckSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请设置标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form enctype="multipart/form-data" name="form1" action="media_edit.php" method="POST" onSubmit="return CheckSubmit();"> | <form enctype="multipart/form-data" name="form1" action="media_edit.php" method="POST" onSubmit="return CheckSubmit();"> | ||||
| @@ -87,5 +78,14 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function CheckSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请设置标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -8,40 +8,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <style>.napisdiv{position:absolute;left:10;top:0;width:150px;height:100px;z-index:3}</style> | <style>.napisdiv{position:absolute;left:10;top:0;width:150px;height:100px;z-index:3}</style> | ||||
| <script> | |||||
| //获得选中文件的文件名 | |||||
| function getCheckboxItem() { | |||||
| var allSel = ""; | |||||
| if (document.form1.aids.value) return document.form1.aids.value; | |||||
| for (i = 0; i < document.form1.aids.length; i++) { | |||||
| if (document.form1.aids[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = document.form1.aids[i].value; | |||||
| else | |||||
| allSel = allSel + "," + document.form1.aids[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| function AllSel() { | |||||
| for (i = 0; i < document.form1.aids.length; i++) { | |||||
| document.form1.aids[i].checked = true; | |||||
| } | |||||
| } | |||||
| function NoneSel() { | |||||
| for (i = 0; i < document.form1.aids.length; i++) { | |||||
| document.form1.aids[i].checked = false; | |||||
| } | |||||
| } | |||||
| function DelSel() { | |||||
| var nid = getCheckboxItem(); | |||||
| if (nid == "") { | |||||
| alert("请选择项目"); | |||||
| return; | |||||
| } | |||||
| location.href = "media_edit.php?dopost=del&ids=" + nid; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="forms" method="post" action="media_main.php"> | <form name="forms" method="post" action="media_main.php"> | ||||
| @@ -108,5 +74,39 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| //获得选中文件的文件名 | |||||
| function getCheckboxItem() { | |||||
| var allSel = ""; | |||||
| if (document.form1.aids.value) return document.form1.aids.value; | |||||
| for (i = 0; i < document.form1.aids.length; i++) { | |||||
| if (document.form1.aids[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = document.form1.aids[i].value; | |||||
| else | |||||
| allSel = allSel + "," + document.form1.aids[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| function AllSel() { | |||||
| for (i = 0; i < document.form1.aids.length; i++) { | |||||
| document.form1.aids[i].checked = true; | |||||
| } | |||||
| } | |||||
| function NoneSel() { | |||||
| for (i = 0; i < document.form1.aids.length; i++) { | |||||
| document.form1.aids[i].checked = false; | |||||
| } | |||||
| } | |||||
| function DelSel() { | |||||
| var nid = getCheckboxItem(); | |||||
| if (nid == "") { | |||||
| alert("请选择项目"); | |||||
| return; | |||||
| } | |||||
| location.href = "media_edit.php?dopost=del&ids=" + nid; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -7,52 +7,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script> | |||||
| //获得选中项 | |||||
| function getCheckboxItem() { | |||||
| var allSel = ""; | |||||
| if (document.form1.aids.value) return document.form1.aids.value; | |||||
| for (i = 0; i < document.form1.aids.length; i++) { | |||||
| if (document.form1.aids[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = document.form1.aids[i].value; | |||||
| else | |||||
| allSel = allSel + "`" + document.form1.aids[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| function ReSel() { | |||||
| for (i = 0; i < document.form1.aids.length; i++) { | |||||
| if (document.form1.aids[i].checked) document.form1.aids[i].checked = false; | |||||
| else document.form1.aids[i].checked = true; | |||||
| } | |||||
| } | |||||
| function DelSel() { | |||||
| var nid = getCheckboxItem(); | |||||
| if (nid == "") { | |||||
| alert("请选择要删除消费记录"); | |||||
| return; | |||||
| } | |||||
| location.href = "member_do.php?dopost=deoperations&nid=" + nid; | |||||
| } | |||||
| function UpSel() { | |||||
| var nid = getCheckboxItem(); | |||||
| if (nid == "") { | |||||
| alert("请选择要修改消费记录"); | |||||
| return; | |||||
| } | |||||
| location.href = "member_do.php?dopost=upoperations&nid=" + nid; | |||||
| } | |||||
| function OkSel() { | |||||
| var nid = getCheckboxItem(); | |||||
| if (nid == "") { | |||||
| alert("请选择要修改消费记录"); | |||||
| return; | |||||
| } | |||||
| location.href = "member_do.php?dopost=okoperations&nid=" + nid; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form2" method="get" action="member_operations.php"> | <form name="form2" method="get" action="member_operations.php"> | ||||
| @@ -109,5 +63,51 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| //获得选中项 | |||||
| function getCheckboxItem() { | |||||
| var allSel = ""; | |||||
| if (document.form1.aids.value) return document.form1.aids.value; | |||||
| for (i = 0; i < document.form1.aids.length; i++) { | |||||
| if (document.form1.aids[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = document.form1.aids[i].value; | |||||
| else | |||||
| allSel = allSel + "`" + document.form1.aids[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| function ReSel() { | |||||
| for (i = 0; i < document.form1.aids.length; i++) { | |||||
| if (document.form1.aids[i].checked) document.form1.aids[i].checked = false; | |||||
| else document.form1.aids[i].checked = true; | |||||
| } | |||||
| } | |||||
| function DelSel() { | |||||
| var nid = getCheckboxItem(); | |||||
| if (nid == "") { | |||||
| alert("请选择要删除消费记录"); | |||||
| return; | |||||
| } | |||||
| location.href = "member_do.php?dopost=deoperations&nid=" + nid; | |||||
| } | |||||
| function UpSel() { | |||||
| var nid = getCheckboxItem(); | |||||
| if (nid == "") { | |||||
| alert("请选择要修改消费记录"); | |||||
| return; | |||||
| } | |||||
| location.href = "member_do.php?dopost=upoperations&nid=" + nid; | |||||
| } | |||||
| function OkSel() { | |||||
| var nid = getCheckboxItem(); | |||||
| if (nid == "") { | |||||
| alert("请选择要修改消费记录"); | |||||
| return; | |||||
| } | |||||
| location.href = "member_do.php?dopost=okoperations&nid=" + nid; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -9,17 +9,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function CheckAll(form, prefix, checkall) { | |||||
| var checkall = checkall ? checkall : 'chkall'; | |||||
| for (var i = 0; i < form.elements.length; i++) { | |||||
| var e = form.elements[i]; | |||||
| if (e.name && e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) { | |||||
| e.checked = form.elements[checkall].checked; | |||||
| } | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form action="member_scores.php" method="post"> | <form action="member_scores.php" method="post"> | ||||
| @@ -67,5 +56,16 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function CheckAll(form, prefix, checkall) { | |||||
| var checkall = checkall ? checkall : 'chkall'; | |||||
| for (var i = 0; i < form.elements.length; i++) { | |||||
| var e = form.elements[i]; | |||||
| if (e.name && e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) { | |||||
| e.checked = form.elements[checkall].checked; | |||||
| } | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,20 +10,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form2.email.value == "") { | |||||
| document.form2.email.focus(); | |||||
| ShowMsg("邮箱不能为空"); | |||||
| return false; | |||||
| } | |||||
| if (document.form2.uname.value == "") { | |||||
| document.form2.uname.focus(); | |||||
| ShowMsg("会员昵称不能为空"); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form2" action="member_toadmin.php" method="post" onSubmit="return checkSubmit();"> | <form name="form2" action="member_toadmin.php" method="post" onSubmit="return checkSubmit();"> | ||||
| @@ -101,5 +87,19 @@ | |||||
| <?php }?> | <?php }?> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form2.email.value == "") { | |||||
| document.form2.email.focus(); | |||||
| ShowMsg("邮箱不能为空"); | |||||
| return false; | |||||
| } | |||||
| if (document.form2.uname.value == "") { | |||||
| document.form2.uname.focus(); | |||||
| ShowMsg("会员昵称不能为空"); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,23 +10,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function checkSubmit() | |||||
| { | |||||
| if (document.form2.email.value=="") | |||||
| { | |||||
| document.form2.email.focus(); | |||||
| ShowMsg("邮箱不能为空"); | |||||
| return false; | |||||
| } | |||||
| if (document.form2.uname.value=="") | |||||
| { | |||||
| document.form2.uname.focus(); | |||||
| ShowMsg("会员昵称不能为空"); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form2" action="member_do.php" method="post" onSubmit="return checkSubmit();"> | <form name="form2" action="member_do.php" method="post" onSubmit="return checkSubmit();"> | ||||
| @@ -185,5 +168,20 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() | |||||
| { | |||||
| if (document.form2.email.value=="") { | |||||
| document.form2.email.focus(); | |||||
| ShowMsg("邮箱不能为空"); | |||||
| return false; | |||||
| } | |||||
| if (document.form2.uname.value=="") { | |||||
| document.form2.uname.focus(); | |||||
| ShowMsg("会员昵称不能为空"); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -8,30 +8,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
| <script> | |||||
| function ShowHideField(cbox,vid,nid) | |||||
| { | |||||
| var cboxobj = document.getElementById(cbox); | |||||
| if (cboxobj.checked) | |||||
| { | |||||
| document.getElementById(nid).style.display = 'block'; | |||||
| document.getElementById(vid).style.display = 'none'; | |||||
| } else { | |||||
| document.getElementById(nid).style.display = 'none'; | |||||
| document.getElementById(vid).style.display = 'block'; | |||||
| } | |||||
| } | |||||
| function ShowHideMb(rbox1,nid) | |||||
| { | |||||
| var rboxobj = document.getElementById(rbox1); | |||||
| if (rboxobj.checked) | |||||
| { | |||||
| document.getElementById(nid).style.display = 'none'; | |||||
| } else { | |||||
| document.getElementById(nid).style.display = 'block'; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form action="module_make.php" method="post" enctype="multipart/form-data" name="form1"> | <form action="module_make.php" method="post" enctype="multipart/form-data" name="form1"> | ||||
| @@ -169,5 +145,27 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function ShowHideField(cbox,vid,nid) | |||||
| { | |||||
| var cboxobj = document.getElementById(cbox); | |||||
| if (cboxobj.checked) { | |||||
| document.getElementById(nid).style.display = 'block'; | |||||
| document.getElementById(vid).style.display = 'none'; | |||||
| } else { | |||||
| document.getElementById(nid).style.display = 'none'; | |||||
| document.getElementById(vid).style.display = 'block'; | |||||
| } | |||||
| } | |||||
| function ShowHideMb(rbox1,nid) | |||||
| { | |||||
| var rboxobj = document.getElementById(rbox1); | |||||
| if (rboxobj.checked) { | |||||
| document.getElementById(nid).style.display = 'none'; | |||||
| } else { | |||||
| document.getElementById(nid).style.display = 'block'; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,15 +10,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
| <script> | |||||
| function getmodule(action, hash) { | |||||
| $DE('status_' + hash).innerHTML = '<img src="../static/web/img/loadinglit.gif">'; | |||||
| fetch('module_main.php?action=download&hash=' + hash).then(resp => resp.text()).then((d) => { | |||||
| $DE('status_' + hash).innerHTML = d; | |||||
| }); | |||||
| $DE('manager_' + hash).style.display = 'block'; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="plus_add.php" method="post"> | <form name="form1" action="plus_add.php" method="post"> | ||||
| @@ -89,5 +80,14 @@ | |||||
| <?php }?> | <?php }?> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function getmodule(action, hash) { | |||||
| $DE('status_' + hash).innerHTML = '<img src="../static/web/img/loadinglit.gif">'; | |||||
| fetch('module_main.php?action=download&hash=' + hash).then(resp => resp.text()).then((d) => { | |||||
| $DE('status_' + hash).innerHTML = d; | |||||
| }); | |||||
| $DE('manager_' + hash).style.display = 'block'; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -8,26 +8,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
| <script> | |||||
| function ShowHideField(cbox, vid, nid) { | |||||
| var cboxobj = document.getElementById(cbox); | |||||
| if (cboxobj.checked) { | |||||
| document.getElementById(nid).style.display = 'block'; | |||||
| document.getElementById(vid).style.display = 'none'; | |||||
| } else { | |||||
| document.getElementById(nid).style.display = 'none'; | |||||
| document.getElementById(vid).style.display = 'block'; | |||||
| } | |||||
| } | |||||
| function ShowHideMb(rbox1, nid) { | |||||
| var rboxobj = document.getElementById(rbox1); | |||||
| if (rboxobj.checked) { | |||||
| document.getElementById(nid).style.display = 'none'; | |||||
| } else { | |||||
| document.getElementById(nid).style.display = 'block'; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form action="module_make.php" method="post" enctype="multipart/form-data" name="form1"> | <form action="module_make.php" method="post" enctype="multipart/form-data" name="form1"> | ||||
| @@ -158,5 +138,25 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function ShowHideField(cbox, vid, nid) { | |||||
| var cboxobj = document.getElementById(cbox); | |||||
| if (cboxobj.checked) { | |||||
| document.getElementById(nid).style.display = 'block'; | |||||
| document.getElementById(vid).style.display = 'none'; | |||||
| } else { | |||||
| document.getElementById(nid).style.display = 'none'; | |||||
| document.getElementById(vid).style.display = 'block'; | |||||
| } | |||||
| } | |||||
| function ShowHideMb(rbox1, nid) { | |||||
| var rboxobj = document.getElementById(rbox1); | |||||
| if (rboxobj.checked) { | |||||
| document.getElementById(nid).style.display = 'none'; | |||||
| } else { | |||||
| document.getElementById(nid).style.display = 'block'; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -7,33 +7,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script> | |||||
| function $Obj(objname) { | |||||
| return document.getElementById(objname); | |||||
| } | |||||
| function ShowHide2(objname) { | |||||
| var obj = $Obj(objname); | |||||
| if (obj.style.display != 'block') { obj.style.display = 'block' } | |||||
| else { obj.style.display = 'none'; } | |||||
| } | |||||
| function PublicDefault() { | |||||
| if ($Obj('is1').checked || $Obj('is2').checked) { | |||||
| $Obj("addcon").value = "archives_add.php"; | |||||
| $Obj("editcon").value = "archives_edit.php"; | |||||
| $Obj("mancon").value = "content_list.php"; | |||||
| $Obj("useraddcon").value = "archives_add.php"; | |||||
| $Obj("usereditcon").value = "archives_edit.php"; | |||||
| $Obj("usermancon").value = "content_list.php"; | |||||
| } else { | |||||
| $Obj("addcon").value = "archives_sg_add.php"; | |||||
| $Obj("editcon").value = "archives_sg_edit.php"; | |||||
| $Obj("mancon").value = "content_sg_list.php"; | |||||
| $Obj("useraddcon").value = "archives_sg_add.php"; | |||||
| $Obj("usereditcon").value = "archives_sg_edit.php"; | |||||
| $Obj("usermancon").value = "content_sg_list.php"; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="mychannel_add.php" method="post"> | <form name="form1" action="mychannel_add.php" method="post"> | ||||
| @@ -185,5 +158,32 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function $Obj(objname) { | |||||
| return document.getElementById(objname); | |||||
| } | |||||
| function ShowHide2(objname) { | |||||
| var obj = $Obj(objname); | |||||
| if (obj.style.display != 'block') { obj.style.display = 'block' } | |||||
| else { obj.style.display = 'none'; } | |||||
| } | |||||
| function PublicDefault() { | |||||
| if ($Obj('is1').checked || $Obj('is2').checked) { | |||||
| $Obj("addcon").value = "archives_add.php"; | |||||
| $Obj("editcon").value = "archives_edit.php"; | |||||
| $Obj("mancon").value = "content_list.php"; | |||||
| $Obj("useraddcon").value = "archives_add.php"; | |||||
| $Obj("usereditcon").value = "archives_edit.php"; | |||||
| $Obj("usermancon").value = "content_list.php"; | |||||
| } else { | |||||
| $Obj("addcon").value = "archives_sg_add.php"; | |||||
| $Obj("editcon").value = "archives_sg_edit.php"; | |||||
| $Obj("mancon").value = "content_sg_list.php"; | |||||
| $Obj("useraddcon").value = "archives_sg_add.php"; | |||||
| $Obj("usereditcon").value = "archives_sg_edit.php"; | |||||
| $Obj("usermancon").value = "content_sg_list.php"; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -11,68 +11,6 @@ | |||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <style>.nw{float:left;width:160px}.cls{clear:both}</style> | <style>.nw{float:left;width:160px}.cls{clear:both}</style> | ||||
| <script> | |||||
| var notAllow = " <?php echo $f;?> "; | |||||
| function GetFields() | |||||
| { | |||||
| var theform = document.form1; | |||||
| var fieldname = theform.fieldname.value; | |||||
| var itemname = theform.itemname.value; | |||||
| var dtype = 'text'; | |||||
| var enums = document.getElementsByName('dtype'); | |||||
| for (i=0;i<enums.length;i++) | |||||
| { | |||||
| if (enums[i].checked) dtype = enums[i].value; | |||||
| } | |||||
| var isnull = theform.isnull.value; | |||||
| var vdefault = theform.vdefault.value; | |||||
| var maxlength = theform.maxlength.value; | |||||
| var vinnertext = theform.vinnertext.value; | |||||
| var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||||
| var sisnull = (isnull==0 ? "false" : "true"); | |||||
| var autofield = (theform.autofield[0].checked ? theform.autofield[0].value : theform.autofield[1].value); | |||||
| var islist = (theform.islist.checked ? 1 : 0); | |||||
| var notsend = (theform.notsend.checked ? 1 : 0); | |||||
| var automake = theform.relation_automake.checked ? 1 : 0; | |||||
| if (itemname=="") { | |||||
| ShowMsg("表单提示名称不能为空"); | |||||
| theform.itemname.focus(); | |||||
| return false; | |||||
| } | |||||
| if (fieldname=="") { | |||||
| ShowMsg("字段名称不能为空"); | |||||
| theform.fieldname.focus(); | |||||
| return false; | |||||
| } | |||||
| if (notAllow.indexOf(" "+fieldname+" ") >-1 ) { | |||||
| ShowMsg("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); | |||||
| return false; | |||||
| } | |||||
| if ((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") { | |||||
| ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用英文逗号分开)"); | |||||
| return false; | |||||
| } | |||||
| if (spage=="no") spage = ""; | |||||
| relstr = ""; | |||||
| if (dtype==="relation") { | |||||
| relstr = " automake=\""+automake+"\" channel=\""+$("#channeltype").val()+"\""; | |||||
| } | |||||
| revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\""+autofield+"\" notsend=\""+notsend+"\" type=\""+dtype+"\""; | |||||
| revalue += relstr + " isnull=\""+sisnull+"\" islist=\""+islist+"\" default=\""+vdefault+"\" "; | |||||
| revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||||
| document.form1.fieldstring.value = revalue; | |||||
| return true; | |||||
| } | |||||
| $(document).ready(function () { | |||||
| $("#dataType input").click(function(ele){ | |||||
| if ($(ele.currentTarget).val() === "relation") { | |||||
| $("#_relation").show(); | |||||
| } else { | |||||
| $("#_relation").hide(); | |||||
| } | |||||
| }) | |||||
| }); | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="mychannel_field_add.php" method="post" onSubmit="return GetFields();"> | <form name="form1" action="mychannel_field_add.php" method="post" onSubmit="return GetFields();"> | ||||
| @@ -198,5 +136,67 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| var notAllow = " <?php echo $f;?> "; | |||||
| function GetFields() | |||||
| { | |||||
| var theform = document.form1; | |||||
| var fieldname = theform.fieldname.value; | |||||
| var itemname = theform.itemname.value; | |||||
| var dtype = 'text'; | |||||
| var enums = document.getElementsByName('dtype'); | |||||
| for (i=0;i<enums.length;i++) | |||||
| { | |||||
| if (enums[i].checked) dtype = enums[i].value; | |||||
| } | |||||
| var isnull = theform.isnull.value; | |||||
| var vdefault = theform.vdefault.value; | |||||
| var maxlength = theform.maxlength.value; | |||||
| var vinnertext = theform.vinnertext.value; | |||||
| var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||||
| var sisnull = (isnull==0 ? "false" : "true"); | |||||
| var autofield = (theform.autofield[0].checked ? theform.autofield[0].value : theform.autofield[1].value); | |||||
| var islist = (theform.islist.checked ? 1 : 0); | |||||
| var notsend = (theform.notsend.checked ? 1 : 0); | |||||
| var automake = theform.relation_automake.checked ? 1 : 0; | |||||
| if (itemname=="") { | |||||
| ShowMsg("表单提示名称不能为空"); | |||||
| theform.itemname.focus(); | |||||
| return false; | |||||
| } | |||||
| if (fieldname=="") { | |||||
| ShowMsg("字段名称不能为空"); | |||||
| theform.fieldname.focus(); | |||||
| return false; | |||||
| } | |||||
| if (notAllow.indexOf(" "+fieldname+" ") >-1 ) { | |||||
| ShowMsg("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); | |||||
| return false; | |||||
| } | |||||
| if ((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") { | |||||
| ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用英文逗号分开)"); | |||||
| return false; | |||||
| } | |||||
| if (spage=="no") spage = ""; | |||||
| relstr = ""; | |||||
| if (dtype==="relation") { | |||||
| relstr = " automake=\""+automake+"\" channel=\""+$("#channeltype").val()+"\""; | |||||
| } | |||||
| revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\""+autofield+"\" notsend=\""+notsend+"\" type=\""+dtype+"\""; | |||||
| revalue += relstr + " isnull=\""+sisnull+"\" islist=\""+islist+"\" default=\""+vdefault+"\" "; | |||||
| revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||||
| document.form1.fieldstring.value = revalue; | |||||
| return true; | |||||
| } | |||||
| $(document).ready(function () { | |||||
| $("#dataType input").click(function(ele){ | |||||
| if ($(ele.currentTarget).val() === "relation") { | |||||
| $("#_relation").show(); | |||||
| } else { | |||||
| $("#_relation").hide(); | |||||
| } | |||||
| }) | |||||
| }); | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -11,51 +11,6 @@ | |||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <style>.nw{float:left;width:160px}.cls{clear:both}</style> | <style>.nw{float:left;width:160px}.cls{clear:both}</style> | ||||
| <script> | |||||
| function GetFields() { | |||||
| var theform = document.form1; | |||||
| var itemname = theform.itemname.value; | |||||
| var fieldname = theform.fname.value; | |||||
| var dtype = theform.dtype.value; | |||||
| var isnull = theform.isnull.value; | |||||
| var vdefault = theform.vdefault.value; | |||||
| var maxlength = theform.maxlength.value; | |||||
| var vinnertext = theform.vinnertext.value; | |||||
| var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||||
| var sisnull = (isnull == 0 ? "false" : "true"); | |||||
| var autofield = (theform.autofield[0].checked ? theform.autofield[0].value : theform.autofield[1].value); | |||||
| var islist = (theform.islist.checked ? 1 : 0); | |||||
| var notsend = (theform.notsend.checked ? 1 : 0); | |||||
| if (itemname == "") { | |||||
| ShowMsg("表单提示名称不能为空"); | |||||
| theform.itemname.focus(); | |||||
| return false; | |||||
| } | |||||
| if ((dtype == "radio" || dtype == "select" || dtype == "checkbox") && vdefault == "") { | |||||
| ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用英文逗号分开)"); | |||||
| return false; | |||||
| } | |||||
| if (spage == "no") spage = ""; | |||||
| relstr = ""; | |||||
| if (dtype==="relation") { | |||||
| relstr = " automake=\""+automake+"\" channel=\""+$("#channeltype").val()+"\""; | |||||
| } | |||||
| revalue = "<field:" + fieldname + " itemname=\"" + itemname + "\" autofield=\"" + autofield + "\" notsend=\"" + notsend + "\" type=\"" + dtype + "\""; | |||||
| revalue += relstr + " isnull=\"" + sisnull + "\" islist=\"" + islist + "\" default=\"" + vdefault + "\" "; | |||||
| revalue += " maxlength=\"" + maxlength + "\" page=\"" + spage + "\">" + vinnertext + "</field:" + fieldname + ">"; | |||||
| document.form1.fieldstring.value = revalue; | |||||
| return true; | |||||
| } | |||||
| $(document).ready(function () { | |||||
| $("#type").change(function (ele) { | |||||
| if ($(ele.currentTarget).val() === "relation") { | |||||
| $("#_relation").show(); | |||||
| } else { | |||||
| $("#_relation").hide(); | |||||
| } | |||||
| }) | |||||
| }); | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="mychannel_field_edit.php" method="post" onSubmit="return GetFields();"> | <form name="form1" action="mychannel_field_edit.php" method="post" onSubmit="return GetFields();"> | ||||
| @@ -106,16 +61,14 @@ | |||||
| <select name="dtype" id="type" class="admin-input-sm"> | <select name="dtype" id="type" class="admin-input-sm"> | ||||
| <?php | <?php | ||||
| $dtype = $ctag->GetAtt('type'); | $dtype = $ctag->GetAtt('type'); | ||||
| if ($dtype!='' && isset($fieldtypes[$dtype])) | |||||
| { | |||||
| if ($dtype!='' && isset($fieldtypes[$dtype])) { | |||||
| echo "<option value='{$dtype}'>{$fieldtypes[$dtype]}</option>"; | echo "<option value='{$dtype}'>{$fieldtypes[$dtype]}</option>"; | ||||
| $canchange = true; | $canchange = true; | ||||
| } else { | } else { | ||||
| echo "<option value='{$dtype}'>系统专用类型</option>"; | echo "<option value='{$dtype}'>系统专用类型</option>"; | ||||
| $canchange = false; | $canchange = false; | ||||
| } | } | ||||
| if ($canchange) | |||||
| { | |||||
| if ($canchange) { | |||||
| ?> | ?> | ||||
| <option value="text">单行文本(varchar)</option> | <option value="text">单行文本(varchar)</option> | ||||
| <option value="textchar">单行文本(char)</option> | <option value="textchar">单行文本(char)</option> | ||||
| @@ -194,5 +147,50 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function GetFields() { | |||||
| var theform = document.form1; | |||||
| var itemname = theform.itemname.value; | |||||
| var fieldname = theform.fname.value; | |||||
| var dtype = theform.dtype.value; | |||||
| var isnull = theform.isnull.value; | |||||
| var vdefault = theform.vdefault.value; | |||||
| var maxlength = theform.maxlength.value; | |||||
| var vinnertext = theform.vinnertext.value; | |||||
| var spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value); | |||||
| var sisnull = (isnull == 0 ? "false" : "true"); | |||||
| var autofield = (theform.autofield[0].checked ? theform.autofield[0].value : theform.autofield[1].value); | |||||
| var islist = (theform.islist.checked ? 1 : 0); | |||||
| var notsend = (theform.notsend.checked ? 1 : 0); | |||||
| if (itemname == "") { | |||||
| ShowMsg("表单提示名称不能为空"); | |||||
| theform.itemname.focus(); | |||||
| return false; | |||||
| } | |||||
| if ((dtype == "radio" || dtype == "select" || dtype == "checkbox") && vdefault == "") { | |||||
| ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用英文逗号分开)"); | |||||
| return false; | |||||
| } | |||||
| if (spage == "no") spage = ""; | |||||
| relstr = ""; | |||||
| if (dtype==="relation") { | |||||
| relstr = " automake=\""+automake+"\" channel=\""+$("#channeltype").val()+"\""; | |||||
| } | |||||
| revalue = "<field:" + fieldname + " itemname=\"" + itemname + "\" autofield=\"" + autofield + "\" notsend=\"" + notsend + "\" type=\"" + dtype + "\""; | |||||
| revalue += relstr + " isnull=\"" + sisnull + "\" islist=\"" + islist + "\" default=\"" + vdefault + "\" "; | |||||
| revalue += " maxlength=\"" + maxlength + "\" page=\"" + spage + "\">" + vinnertext + "</field:" + fieldname + ">"; | |||||
| document.form1.fieldstring.value = revalue; | |||||
| return true; | |||||
| } | |||||
| $(document).ready(function () { | |||||
| $("#type").change(function (ele) { | |||||
| if ($(ele.currentTarget).val() === "relation") { | |||||
| $("#_relation").show(); | |||||
| } else { | |||||
| $("#_relation").hide(); | |||||
| } | |||||
| }) | |||||
| }); | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -13,43 +13,6 @@ | |||||
| <script src="../static/web/js/moment.min.js"></script> | <script src="../static/web/js/moment.min.js"></script> | ||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.tagname.value == "") { | |||||
| ShowMsg("标记名称不能为空"); | |||||
| document.form1.tagname.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| $(document).ready(function () { | |||||
| $('.datepicker').daterangepicker({ | |||||
| "singleDatePicker": true, | |||||
| "autoApply": true, | |||||
| "showDropdowns": true, | |||||
| "linkedCalendars": false, | |||||
| "timePicker": true, | |||||
| "timePicker24Hour": true, | |||||
| //"timePickerSeconds": true, | |||||
| "showCustomRangeLabel": false, | |||||
| ranges: { | |||||
| '今日': [moment(), moment()], | |||||
| '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | |||||
| '本月': [moment().startOf('month'), moment().startOf('month')], | |||||
| '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')] | |||||
| }, | |||||
| "locale": { | |||||
| format: 'YYYY-MM-DD HH:mm', | |||||
| applyLabel: '确定', | |||||
| cancelLabel: '取消', | |||||
| daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'], | |||||
| monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | |||||
| firstDay: 1 | |||||
| } | |||||
| }, function (start) { | |||||
| $(this).val(start.format("YYYY-MM-DD HH:mm:ss")); | |||||
| }); | |||||
| }) | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form action="mytag_add.php" method="post" enctype="multipart/form-data" name="form1" onSubmit="return checkSubmit()"> | <form action="mytag_add.php" method="post" enctype="multipart/form-data" name="form1" onSubmit="return checkSubmit()"> | ||||
| @@ -109,5 +72,42 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.tagname.value == "") { | |||||
| ShowMsg("标记名称不能为空"); | |||||
| document.form1.tagname.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| $(document).ready(function () { | |||||
| $('.datepicker').daterangepicker({ | |||||
| "singleDatePicker": true, | |||||
| "autoApply": true, | |||||
| "showDropdowns": true, | |||||
| "linkedCalendars": false, | |||||
| "timePicker": true, | |||||
| "timePicker24Hour": true, | |||||
| //"timePickerSeconds": true, | |||||
| "showCustomRangeLabel": false, | |||||
| ranges: { | |||||
| '今日': [moment(), moment()], | |||||
| '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | |||||
| '本月': [moment().startOf('month'), moment().startOf('month')], | |||||
| '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')] | |||||
| }, | |||||
| "locale": { | |||||
| format: 'YYYY-MM-DD HH:mm', | |||||
| applyLabel: '确定', | |||||
| cancelLabel: '取消', | |||||
| daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'], | |||||
| monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | |||||
| firstDay: 1 | |||||
| } | |||||
| }, function (start) { | |||||
| $(this).val(start.format("YYYY-MM-DD HH:mm:ss")); | |||||
| }); | |||||
| }) | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -7,6 +7,49 @@ | |||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| </head> | |||||
| <body> | |||||
| <form name="form2"> | |||||
| <table cellpadding="2" cellspacing="1" align="center" class="table maintable my-3"> | |||||
| <tr> | |||||
| <td bgcolor="#f5f5f5" colspan="7">文档回收站</td> | |||||
| </tr> | |||||
| <tr bgcolor="#e9ecef" align="center"> | |||||
| <td width="6%">id</td> | |||||
| <td width="6%">选择</td> | |||||
| <td width="26%">文档标题</td> | |||||
| <td width="10%">更新时间</td> | |||||
| <td width="10%">栏目</td> | |||||
| <td width="6%">点击</td> | |||||
| <td>操作</td> | |||||
| </tr> | |||||
| {dede:datalist empty='<tr><td colspan="7" align="center">暂无文档</td></tr>'} | |||||
| <tr align="center"> | |||||
| <td>{dede:field.id/}</td> | |||||
| <td><input type="checkbox" name="arcID" id="arcID" value="{dede:field.id/}"></td> | |||||
| <td align="left"><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td> | |||||
| <td>{dede:field.senddate function='GetDateMk(@me)'/}</td> | |||||
| <td>{dede:field.typename/}</td> | |||||
| <td>{dede:field.click/}</td> | |||||
| <td> | |||||
| <a href="javascript:moveArc({dede:field.id/})" class="btn btn-light btn-sm"><i class="fa fa-repeat"></i> 还原</a> | |||||
| <a href="javascript:delArc({dede:field.id/})" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i> 删除</a> | |||||
| </td> | |||||
| </tr> | |||||
| {/dede:datalist} | |||||
| <tr> | |||||
| <td colspan="7"> | |||||
| <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a> | |||||
| <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a> | |||||
| <a href="javascript:moveArc(0)" class="btn btn-success btn-sm">还原</a> | |||||
| <a href="javascript:delArc(0)" class="btn btn-danger btn-sm">删除</a> | |||||
| </td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td colspan="7" bgcolor="#f5f5f5" align="center">{dede:pagelist listsize='6'/}</td> | |||||
| </tr> | |||||
| </table> | |||||
| </form> | |||||
| <script> | <script> | ||||
| function moveArc(aid) { | function moveArc(aid) { | ||||
| var qstr = getCheckboxItem(); | var qstr = getCheckboxItem(); | ||||
| @@ -65,48 +108,5 @@ | |||||
| } | } | ||||
| } | } | ||||
| </script> | </script> | ||||
| </head> | |||||
| <body> | |||||
| <form name="form2"> | |||||
| <table cellpadding="2" cellspacing="1" align="center" class="table maintable my-3"> | |||||
| <tr> | |||||
| <td bgcolor="#f5f5f5" colspan="7">文档回收站</td> | |||||
| </tr> | |||||
| <tr bgcolor="#e9ecef" align="center"> | |||||
| <td width="6%">id</td> | |||||
| <td width="6%">选择</td> | |||||
| <td width="26%">文档标题</td> | |||||
| <td width="10%">更新时间</td> | |||||
| <td width="10%">栏目</td> | |||||
| <td width="6%">点击</td> | |||||
| <td>操作</td> | |||||
| </tr> | |||||
| {dede:datalist empty='<tr><td colspan="7" align="center">暂无文档</td></tr>'} | |||||
| <tr align="center"> | |||||
| <td>{dede:field.id/}</td> | |||||
| <td><input type="checkbox" name="arcID" id="arcID" value="{dede:field.id/}"></td> | |||||
| <td align="left"><a href="archives_do.php?aid={dede:field.id/}&dopost=editArchives">{dede:field.title/}</a></td> | |||||
| <td>{dede:field.senddate function='GetDateMk(@me)'/}</td> | |||||
| <td>{dede:field.typename/}</td> | |||||
| <td>{dede:field.click/}</td> | |||||
| <td> | |||||
| <a href="javascript:moveArc({dede:field.id/})" class="btn btn-light btn-sm"><i class="fa fa-repeat"></i> 还原</a> | |||||
| <a href="javascript:delArc({dede:field.id/})" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i> 删除</a> | |||||
| </td> | |||||
| </tr> | |||||
| {/dede:datalist} | |||||
| <tr> | |||||
| <td colspan="7"> | |||||
| <a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a> | |||||
| <a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a> | |||||
| <a href="javascript:moveArc(0)" class="btn btn-success btn-sm">还原</a> | |||||
| <a href="javascript:delArc(0)" class="btn btn-danger btn-sm">删除</a> | |||||
| </td> | |||||
| </tr> | |||||
| <tr> | |||||
| <td colspan="7" bgcolor="#f5f5f5" align="center">{dede:pagelist listsize='6'/}</td> | |||||
| </tr> | |||||
| </table> | |||||
| </form> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -12,6 +12,17 @@ | |||||
| <script src="js/key.js"></script> | <script src="js/key.js"></script> | ||||
| <script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| </head> | |||||
| <body> | |||||
| <div id="rslist"><?php GetKeywordList($dsql,$pageno,$pagesize,$orderby);?></div> | |||||
| <table cellpadding="1" cellspacing="1" align="center" class="table maintable mb-3"> | |||||
| <tr> | |||||
| <td bgcolor="#f5f5f5" align="center"> | |||||
| <span id="pagelist"></span> | |||||
| <script>ReloadPageNum(1);</script> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| <script> | <script> | ||||
| var pageno = 1; | var pageno = 1; | ||||
| var totalrow = <?php echo $totalRow?>; | var totalrow = <?php echo $totalRow?>; | ||||
| @@ -133,16 +144,5 @@ | |||||
| ListArea.innerHTML = ahtml+"</ul>"; | ListArea.innerHTML = ahtml+"</ul>"; | ||||
| } | } | ||||
| </script> | </script> | ||||
| </head> | |||||
| <body> | |||||
| <div id="rslist"><?php GetKeywordList($dsql,$pageno,$pagesize,$orderby);?></div> | |||||
| <table cellpadding="1" cellspacing="1" align="center" class="table maintable mb-3"> | |||||
| <tr> | |||||
| <td bgcolor="#f5f5f5" align="center"> | |||||
| <span id="pagelist"></span> | |||||
| <script>ReloadPageNum(1);</script> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -17,32 +17,6 @@ | |||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.typeid.value == 0) { | |||||
| ShowMsg("请选择文档栏目"); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| var startNum = 0; | |||||
| function MakeUpload() { | |||||
| var upfield = document.getElementById("uploadfield"); | |||||
| var endNum = parseInt(document.form1.picnum.value) + startNum - 1; | |||||
| if (endNum > 30) endNum = 30; | |||||
| for (startNum; startNum <= endNum; startNum++) { | |||||
| upfield.innerHTML += "<div class='py-2'>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' class='admin-input-lg'> 服务器名称:<input type='text' name='servermsg" + startNum + "' class='admin-input-sm'></div>"; | |||||
| } | |||||
| } | |||||
| function ShowHideAddr() { | |||||
| document.getElementById('morelink').style.display = (document.getElementById('morelink').style.display == 'block' ? 'none' : 'block'); | |||||
| document.getElementById('morelink').style.height = '100%'; | |||||
| document.getElementById('btsh3').value = (document.getElementById('morelink').style.display == 'block' ? '隐藏地址' : '显示地址'); | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="soft_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | <form name="form1" action="soft_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | ||||
| @@ -491,6 +465,32 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.typeid.value == 0) { | |||||
| ShowMsg("请选择文档栏目"); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| var startNum = 0; | |||||
| function MakeUpload() { | |||||
| var upfield = document.getElementById("uploadfield"); | |||||
| var endNum = parseInt(document.form1.picnum.value) + startNum - 1; | |||||
| if (endNum > 30) endNum = 30; | |||||
| for (startNum; startNum <= endNum; startNum++) { | |||||
| upfield.innerHTML += "<div class='py-2'>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' class='admin-input-lg'> 服务器名称:<input type='text' name='servermsg" + startNum + "' class='admin-input-sm'></div>"; | |||||
| } | |||||
| } | |||||
| function ShowHideAddr() { | |||||
| document.getElementById('morelink').style.display = (document.getElementById('morelink').style.display == 'block' ? 'none' : 'block'); | |||||
| document.getElementById('morelink').style.height = '100%'; | |||||
| document.getElementById('btsh3').value = (document.getElementById('morelink').style.display == 'block' ? '隐藏地址' : '显示地址'); | |||||
| } | |||||
| </script> | |||||
| <script>InitPage();</script> | <script>InitPage();</script> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,14 +10,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function AddServer() { | |||||
| if (document.form1.serverurl.value == "" || document.form1.serverurl.value == "http://") { ShowMsg('服务器网址不能为空'); return; } | |||||
| if (document.form1.servername.value == "") { ShowMsg('服务器名称不能为空'); return; } | |||||
| if (document.form1.servertype.value == "") { ShowMsg('服务器类型不能为空'); return; } | |||||
| document.form1.sites.value += document.form1.serverurl.value + " | " + document.form1.servername.value + " | " + document.form1.servertype.value + ""; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="soft_config.php" method="post"> | <form name="form1" action="soft_config.php" method="post"> | ||||
| @@ -122,5 +114,13 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function AddServer() { | |||||
| if (document.form1.serverurl.value == "" || document.form1.serverurl.value == "http://") { ShowMsg('服务器网址不能为空'); return; } | |||||
| if (document.form1.servername.value == "") { ShowMsg('服务器名称不能为空'); return; } | |||||
| if (document.form1.servertype.value == "") { ShowMsg('服务器类型不能为空'); return; } | |||||
| document.form1.sites.value += document.form1.serverurl.value + " | " + document.form1.servername.value + " | " + document.form1.servertype.value + ""; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -17,28 +17,6 @@ | |||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| var startNum = <?php echo $newRowStart?>; | |||||
| function MakeUpload() { | |||||
| var upfield = document.getElementById('uploadfield'); | |||||
| var endNum = parseInt(document.form1.picnum.value) + startNum; | |||||
| if (endNum > 30) endNum = 30; | |||||
| for (startNum; startNum < endNum; startNum++) { | |||||
| upfield.innerHTML += "<div class='py-2'>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' class='admin-input-lg'> 服务器名称:<input type='text' name='servermsg" + startNum + "' class='admin-input-sm'></div>"; | |||||
| } | |||||
| } | |||||
| function ShowHideAddr() { | |||||
| document.getElementById('morelink').style.display = (document.getElementById('morelink').style.display == 'block' ? 'none' : 'block'); | |||||
| document.getElementById('btsh3').value = (document.getElementById('morelink').style.display == 'block' ? '隐藏地址' : '显示地址'); | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="soft_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | <form name="form1" action="soft_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | ||||
| @@ -451,6 +429,28 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入文档标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| var startNum = <?php echo $newRowStart?>; | |||||
| function MakeUpload() { | |||||
| var upfield = document.getElementById('uploadfield'); | |||||
| var endNum = parseInt(document.form1.picnum.value) + startNum; | |||||
| if (endNum > 30) endNum = 30; | |||||
| for (startNum; startNum < endNum; startNum++) { | |||||
| upfield.innerHTML += "<div class='py-2'>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' class='admin-input-lg'> 服务器名称:<input type='text' name='servermsg" + startNum + "' class='admin-input-sm'></div>"; | |||||
| } | |||||
| } | |||||
| function ShowHideAddr() { | |||||
| document.getElementById('morelink').style.display = (document.getElementById('morelink').style.display == 'block' ? 'none' : 'block'); | |||||
| document.getElementById('btsh3').value = (document.getElementById('morelink').style.display == 'block' ? '隐藏地址' : '显示地址'); | |||||
| } | |||||
| </script> | |||||
| <script>InitPage();</script> | <script>InitPage();</script> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -17,43 +17,6 @@ | |||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入专题标题"); | |||||
| return false; | |||||
| } | |||||
| for (i = 1; i <= 6; i++) { | |||||
| $val = CheckVal(i); | |||||
| if ($val == false) { | |||||
| return false; | |||||
| } | |||||
| } | |||||
| } | |||||
| function SelectArcList(fname) { | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("content_select_list.php?f=" + fname, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function SelectImage(fname, vlist) { | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("./dialog/select_images.php?f=" + fname + "&imgstick=" + vlist, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function SelectTemplets(fname) { | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function CheckVal(id) { | |||||
| var notename = $DE('notename' + id); | |||||
| var arcid = $DE('arcid' + id); | |||||
| if (arcid.value != "") { | |||||
| if (notename.value == "") { | |||||
| $DE('notename' + id).focus(); | |||||
| ShowMsg('您的节点' + id + '名称不能为空'); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="spec_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | <form name="form1" action="spec_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | ||||
| @@ -320,6 +283,43 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入专题标题"); | |||||
| return false; | |||||
| } | |||||
| for (i = 1; i <= 6; i++) { | |||||
| $val = CheckVal(i); | |||||
| if ($val == false) { | |||||
| return false; | |||||
| } | |||||
| } | |||||
| } | |||||
| function SelectArcList(fname) { | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("content_select_list.php?f=" + fname, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function SelectImage(fname, vlist) { | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("./dialog/select_images.php?f=" + fname + "&imgstick=" + vlist, "popUpImagesWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function SelectTemplets(fname) { | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function CheckVal(id) { | |||||
| var notename = $DE('notename' + id); | |||||
| var arcid = $DE('arcid' + id); | |||||
| if (arcid.value != "") { | |||||
| if (notename.value == "") { | |||||
| $DE('notename' + id).focus(); | |||||
| ShowMsg('您的节点' + id + '名称不能为空'); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <script>InitPage();</script> | <script>InitPage();</script> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -17,46 +17,6 @@ | |||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入专题标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| function SelectTemplets(fname) { | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function SelectArcList(fname) { | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("content_select_list.php?f=" + fname, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=700,height=500,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("专题名称不能为空"); | |||||
| return false; | |||||
| } | |||||
| for (i = 1; i <= 6; i++) { | |||||
| $val = CheckVal(i); | |||||
| if ($val == false) { | |||||
| return false; | |||||
| } | |||||
| } | |||||
| } | |||||
| function CheckVal(id) { | |||||
| var notename = $DE('notename' + id); | |||||
| var arcid = $DE('arcid' + id); | |||||
| if (arcid.value != "") { | |||||
| if (notename.value == "") { | |||||
| $DE('notename' + id).focus(); | |||||
| ShowMsg('您的节点' + id + '名称不能为空'); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="spec_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | <form name="form1" action="spec_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | ||||
| @@ -393,6 +353,46 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("请输入专题标题"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| function SelectTemplets(fname) { | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function SelectArcList(fname) { | |||||
| var pos = GetWinPos(800,600); | |||||
| window.open("content_select_list.php?f=" + fname, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=700,height=500,left=" + pos.left + ", top=" + pos.top); | |||||
| } | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("专题名称不能为空"); | |||||
| return false; | |||||
| } | |||||
| for (i = 1; i <= 6; i++) { | |||||
| $val = CheckVal(i); | |||||
| if ($val == false) { | |||||
| return false; | |||||
| } | |||||
| } | |||||
| } | |||||
| function CheckVal(id) { | |||||
| var notename = $DE('notename' + id); | |||||
| var arcid = $DE('arcid' + id); | |||||
| if (arcid.value != "") { | |||||
| if (notename.value == "") { | |||||
| $DE('notename' + id).focus(); | |||||
| ShowMsg('您的节点' + id + '名称不能为空'); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <script>InitPage();</script> | <script>InitPage();</script> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -13,134 +13,6 @@ | |||||
| <script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <style>#edsta{display:none;padding:10px;position:absolute;top:70px;left:70px;width:450px;height:auto;background:#f5f5f5;border:1px solid #dedede}</style> | <style>#edsta{display:none;padding:10px;position:absolute;top:70px;left:70px;width:450px;height:auto;background:#f5f5f5;border:1px solid #dedede}</style> | ||||
| <script> | |||||
| var loadhtml = "<img src='../static/web/img/loadinglit.gif'>"; | |||||
| function updateItem(aid) { | |||||
| var upenumf = document.getElementById('upenumf'); | |||||
| upenumf.ename.value = $DE('ename' + aid).value; | |||||
| upenumf.disorder.value = $DE('disorder' + aid).value; | |||||
| upenumf.aid.value = aid; | |||||
| upenumf.submit(); | |||||
| } | |||||
| function GetSelType() { | |||||
| var selvalue = $DE('egroup1').options[$DE('egroup1').selectedIndex].value; | |||||
| return selvalue; | |||||
| } | |||||
| function AddType() { | |||||
| $DE('edsta').style.display = 'block'; | |||||
| fetch('stepselect_main.php?action=addnew').then(resp=>{ | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('系统错误,无法获取数据'); | |||||
| }).then((d)=>{ | |||||
| $DE('edsta').innerHTML = d; | |||||
| }).catch((error) => { | |||||
| $DE('edsta').innerHTML = errMsg; | |||||
| }); | |||||
| } | |||||
| function AddEnum() { | |||||
| var id = GetSelType(); | |||||
| if (id == 0) { | |||||
| ShowMsg("必须选择一个类别"); | |||||
| return false; | |||||
| } | |||||
| fetch('stepselect_main.php?action=addenum&id=' + id).then(resp=>{ | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('系统错误,无法获取数据'); | |||||
| }).then((d)=>{ | |||||
| $DE('edsta').innerHTML = d; | |||||
| }).catch((error) => { | |||||
| $DE('edsta').innerHTML = errMsg; | |||||
| }); | |||||
| $DE('edsta').style.display = 'block'; | |||||
| } | |||||
| function EditType() { | |||||
| var id = GetSelType(); | |||||
| if (id == 0) { | |||||
| ShowMsg("必须选择一个类别"); | |||||
| return false; | |||||
| } | |||||
| $DE('edsta').style.display = 'block'; | |||||
| fetch('stepselect_main.php?action=edit&id=' + id).then(resp=>{ | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('系统错误,无法获取数据'); | |||||
| }).then((d)=>{ | |||||
| $DE('edsta').innerHTML = d; | |||||
| }).catch((error) => { | |||||
| $DE('edsta').innerHTML = errMsg; | |||||
| }); | |||||
| } | |||||
| function ViewType() { | |||||
| var id = GetSelType(); | |||||
| if (id == 0) { | |||||
| ShowMsg("必须选择一个类别"); | |||||
| return false; | |||||
| } | |||||
| $DE('edsta').style.display = 'block'; | |||||
| fetch('stepselect_main.php?action=view&id=' + id).then(resp=>{ | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('系统错误,无法获取数据'); | |||||
| }).then((d)=>{ | |||||
| $DE('edsta').innerHTML = d; | |||||
| }).catch((error) => { | |||||
| $DE('edsta').innerHTML = errMsg; | |||||
| }); | |||||
| } | |||||
| function DelType() { | |||||
| DedeConfirm("您确实要删除这个分类吗").then((v)=>{ | |||||
| var id = GetSelType(); | |||||
| if (id == 0) { | |||||
| ShowMsg("必须选择一个类别"); | |||||
| return false; | |||||
| } | |||||
| location.href = 'stepselect_main.php?action=del&id=' + id; | |||||
| }).catch((e)=>{ | |||||
| console.log(e) | |||||
| }); | |||||
| } | |||||
| function CloseTWin() { | |||||
| $DE('edsta').innerHTML = loadhtml; | |||||
| $DE('edsta').style.display = 'none'; | |||||
| } | |||||
| function ChangePage(sobj) { | |||||
| var ntxt = sobj.options[sobj.selectedIndex].text; | |||||
| if (sobj.options[sobj.selectedIndex].value == 0) { | |||||
| location.href = 'stepselect_main.php'; | |||||
| } else { | |||||
| var ns = ntxt.split('|'); | |||||
| location.href = 'stepselect_main.php?egroup=' + ns[0]; | |||||
| } | |||||
| } | |||||
| function TogSel() { | |||||
| var ems = document.getElementsByName('ids[]'); | |||||
| for (i = 0; i < ems.length; i++) { | |||||
| if (ems[i].checked == false) ems[i].checked = true; | |||||
| else ems[i].checked = false; | |||||
| } | |||||
| } | |||||
| function DelSel() { | |||||
| DedeConfirm("您确实要删除这些分类吗").then((v)=>{ | |||||
| document.form1.submit(); | |||||
| }).catch((e)=>{ | |||||
| console.log(e) | |||||
| }); | |||||
| } | |||||
| function ChangePage2(sobj) { | |||||
| var nv = sobj.options[sobj.selectedIndex].value; | |||||
| if (sobj.options[sobj.selectedIndex].value == 0) { | |||||
| location.href = 'stepselect_main.php?egroup=<?php echo $egroup;?>'; | |||||
| } else { | |||||
| location.href = 'stepselect_main.php?egroup=<?php echo $egroup;?>&topvalue=' + nv; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <div id="edsta"><img src="../static/web/img/loadinglit.gif"></div> | <div id="edsta"><img src="../static/web/img/loadinglit.gif"></div> | ||||
| @@ -346,5 +218,133 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <?php }?> | <?php }?> | ||||
| <script> | |||||
| var loadhtml = "<img src='../static/web/img/loadinglit.gif'>"; | |||||
| function updateItem(aid) { | |||||
| var upenumf = document.getElementById('upenumf'); | |||||
| upenumf.ename.value = $DE('ename' + aid).value; | |||||
| upenumf.disorder.value = $DE('disorder' + aid).value; | |||||
| upenumf.aid.value = aid; | |||||
| upenumf.submit(); | |||||
| } | |||||
| function GetSelType() { | |||||
| var selvalue = $DE('egroup1').options[$DE('egroup1').selectedIndex].value; | |||||
| return selvalue; | |||||
| } | |||||
| function AddType() { | |||||
| $DE('edsta').style.display = 'block'; | |||||
| fetch('stepselect_main.php?action=addnew').then(resp=>{ | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('系统错误,无法获取数据'); | |||||
| }).then((d)=>{ | |||||
| $DE('edsta').innerHTML = d; | |||||
| }).catch((error) => { | |||||
| $DE('edsta').innerHTML = errMsg; | |||||
| }); | |||||
| } | |||||
| function AddEnum() { | |||||
| var id = GetSelType(); | |||||
| if (id == 0) { | |||||
| ShowMsg("必须选择一个类别"); | |||||
| return false; | |||||
| } | |||||
| fetch('stepselect_main.php?action=addenum&id=' + id).then(resp=>{ | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('系统错误,无法获取数据'); | |||||
| }).then((d)=>{ | |||||
| $DE('edsta').innerHTML = d; | |||||
| }).catch((error) => { | |||||
| $DE('edsta').innerHTML = errMsg; | |||||
| }); | |||||
| $DE('edsta').style.display = 'block'; | |||||
| } | |||||
| function EditType() { | |||||
| var id = GetSelType(); | |||||
| if (id == 0) { | |||||
| ShowMsg("必须选择一个类别"); | |||||
| return false; | |||||
| } | |||||
| $DE('edsta').style.display = 'block'; | |||||
| fetch('stepselect_main.php?action=edit&id=' + id).then(resp=>{ | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('系统错误,无法获取数据'); | |||||
| }).then((d)=>{ | |||||
| $DE('edsta').innerHTML = d; | |||||
| }).catch((error) => { | |||||
| $DE('edsta').innerHTML = errMsg; | |||||
| }); | |||||
| } | |||||
| function ViewType() { | |||||
| var id = GetSelType(); | |||||
| if (id == 0) { | |||||
| ShowMsg("必须选择一个类别"); | |||||
| return false; | |||||
| } | |||||
| $DE('edsta').style.display = 'block'; | |||||
| fetch('stepselect_main.php?action=view&id=' + id).then(resp=>{ | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('系统错误,无法获取数据'); | |||||
| }).then((d)=>{ | |||||
| $DE('edsta').innerHTML = d; | |||||
| }).catch((error) => { | |||||
| $DE('edsta').innerHTML = errMsg; | |||||
| }); | |||||
| } | |||||
| function DelType() { | |||||
| DedeConfirm("您确实要删除这个分类吗").then((v)=>{ | |||||
| var id = GetSelType(); | |||||
| if (id == 0) { | |||||
| ShowMsg("必须选择一个类别"); | |||||
| return false; | |||||
| } | |||||
| location.href = 'stepselect_main.php?action=del&id=' + id; | |||||
| }).catch((e)=>{ | |||||
| console.log(e) | |||||
| }); | |||||
| } | |||||
| function CloseTWin() { | |||||
| $DE('edsta').innerHTML = loadhtml; | |||||
| $DE('edsta').style.display = 'none'; | |||||
| } | |||||
| function ChangePage(sobj) { | |||||
| var ntxt = sobj.options[sobj.selectedIndex].text; | |||||
| if (sobj.options[sobj.selectedIndex].value == 0) { | |||||
| location.href = 'stepselect_main.php'; | |||||
| } else { | |||||
| var ns = ntxt.split('|'); | |||||
| location.href = 'stepselect_main.php?egroup=' + ns[0]; | |||||
| } | |||||
| } | |||||
| function TogSel() { | |||||
| var ems = document.getElementsByName('ids[]'); | |||||
| for (i = 0; i < ems.length; i++) { | |||||
| if (ems[i].checked == false) ems[i].checked = true; | |||||
| else ems[i].checked = false; | |||||
| } | |||||
| } | |||||
| function DelSel() { | |||||
| DedeConfirm("您确实要删除这些分类吗").then((v)=>{ | |||||
| document.form1.submit(); | |||||
| }).catch((e)=>{ | |||||
| console.log(e) | |||||
| }); | |||||
| } | |||||
| function ChangePage2(sobj) { | |||||
| var nv = sobj.options[sobj.selectedIndex].value; | |||||
| if (sobj.options[sobj.selectedIndex].value == 0) { | |||||
| location.href = 'stepselect_main.php?egroup=<?php echo $egroup;?>'; | |||||
| } else { | |||||
| location.href = 'stepselect_main.php?egroup=<?php echo $egroup;?>&topvalue=' + nv; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,26 +10,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.userid.value == "") { | |||||
| ShowMsg("会员id不能为空"); | |||||
| document.form1.userid.focus(); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.uname.value == "") { | |||||
| ShowMsg("会员名不能为空"); | |||||
| document.form1.uname.focus(); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.pwd.value == "") { | |||||
| ShowMsg("会员密码不能为空"); | |||||
| document.form1.pwd.focus(); | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" action="sys_admin_user_add.php" onSubmit="return checkSubmit();" method="post"> | <form name="form1" action="sys_admin_user_add.php" onSubmit="return checkSubmit();" method="post"> | ||||
| @@ -106,5 +86,25 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.userid.value == "") { | |||||
| ShowMsg("会员id不能为空"); | |||||
| document.form1.userid.focus(); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.uname.value == "") { | |||||
| ShowMsg("会员名不能为空"); | |||||
| document.form1.uname.focus(); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.pwd.value == "") { | |||||
| ShowMsg("会员密码不能为空"); | |||||
| document.form1.pwd.focus(); | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -8,23 +8,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
| <script> | |||||
| function LoadUser(uid) | |||||
| { | |||||
| var loadhtml = $DE('loaddiv').innerHTML; | |||||
| var ajaxdiv = $DE('userct'+uid); | |||||
| fetch('sys_admin_user_tj.php?dopost=getone&uid='+uid).then(resp=>{ | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('加载失败'); | |||||
| }).then((d)=>{ | |||||
| ajaxdiv.innerHTML = d; | |||||
| }).catch((error) => { | |||||
| ajaxdiv.innerHTML = errMsg; | |||||
| }); | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | ||||
| @@ -43,5 +26,22 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <script> | |||||
| function LoadUser(uid) | |||||
| { | |||||
| var loadhtml = $DE('loaddiv').innerHTML; | |||||
| var ajaxdiv = $DE('userct'+uid); | |||||
| fetch('sys_admin_user_tj.php?dopost=getone&uid='+uid).then(resp=>{ | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('加载失败'); | |||||
| }).then((d)=>{ | |||||
| ajaxdiv.innerHTML = d; | |||||
| }).catch((error) => { | |||||
| ajaxdiv.innerHTML = errMsg; | |||||
| }); | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -11,66 +11,6 @@ | |||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| var posLeft = 200; | |||||
| var posTop = 150; | |||||
| function LoadUrl(surl) { | |||||
| fetch("sys_data.php?" + surl).then(resp => { | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('x'); | |||||
| }).then((d) => { | |||||
| ShowMsg(d, { | |||||
| size: "modal-lg" | |||||
| }); | |||||
| }).catch((error) => { | |||||
| ShowMsg("操作失败"); | |||||
| }); | |||||
| } | |||||
| //获得选中文件的数据表 | |||||
| function getCheckboxItem() { | |||||
| var myform = document.form1; | |||||
| var allSel = ""; | |||||
| if (myform.tables.value) return myform.tables.value; | |||||
| for (i = 0; i < myform.tables.length; i++) { | |||||
| if (myform.tables[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = myform.tables[i].value; | |||||
| else | |||||
| allSel = allSel + "," + myform.tables[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| //反选 | |||||
| function ReSel() { | |||||
| var myform = document.form1; | |||||
| for (i = 0; i < myform.tables.length; i++) { | |||||
| if (myform.tables[i].checked) myform.tables[i].checked = false; | |||||
| else myform.tables[i].checked = true; | |||||
| } | |||||
| } | |||||
| //全选 | |||||
| function SelAll() { | |||||
| var myform = document.form1; | |||||
| for (i = 0; i < myform.tables.length; i++) { | |||||
| myform.tables[i].checked = true; | |||||
| } | |||||
| } | |||||
| //取消 | |||||
| function NoneSel() { | |||||
| var myform = document.form1; | |||||
| for (i = 0; i < myform.tables.length; i++) { | |||||
| myform.tables[i].checked = false; | |||||
| } | |||||
| } | |||||
| function checkSubmit() { | |||||
| var myform = document.form1; | |||||
| myform.tablearr.value = getCheckboxItem(); | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | ||||
| @@ -201,5 +141,65 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| var posLeft = 200; | |||||
| var posTop = 150; | |||||
| function LoadUrl(surl) { | |||||
| fetch("sys_data.php?" + surl).then(resp => { | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('x'); | |||||
| }).then((d) => { | |||||
| ShowMsg(d, { | |||||
| size: "modal-lg" | |||||
| }); | |||||
| }).catch((error) => { | |||||
| ShowMsg("操作失败"); | |||||
| }); | |||||
| } | |||||
| //获得选中文件的数据表 | |||||
| function getCheckboxItem() { | |||||
| var myform = document.form1; | |||||
| var allSel = ""; | |||||
| if (myform.tables.value) return myform.tables.value; | |||||
| for (i = 0; i < myform.tables.length; i++) { | |||||
| if (myform.tables[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = myform.tables[i].value; | |||||
| else | |||||
| allSel = allSel + "," + myform.tables[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| //反选 | |||||
| function ReSel() { | |||||
| var myform = document.form1; | |||||
| for (i = 0; i < myform.tables.length; i++) { | |||||
| if (myform.tables[i].checked) myform.tables[i].checked = false; | |||||
| else myform.tables[i].checked = true; | |||||
| } | |||||
| } | |||||
| //全选 | |||||
| function SelAll() { | |||||
| var myform = document.form1; | |||||
| for (i = 0; i < myform.tables.length; i++) { | |||||
| myform.tables[i].checked = true; | |||||
| } | |||||
| } | |||||
| //取消 | |||||
| function NoneSel() { | |||||
| var myform = document.form1; | |||||
| for (i = 0; i < myform.tables.length; i++) { | |||||
| myform.tables[i].checked = false; | |||||
| } | |||||
| } | |||||
| function checkSubmit() { | |||||
| var myform = document.form1; | |||||
| myform.tablearr.value = getCheckboxItem(); | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -11,36 +11,6 @@ | |||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function ShowFields() { | |||||
| var exptable = $DE('exptable').options[$DE('exptable').selectedIndex].value; | |||||
| var queryUrl = "sys_data_replace.php?exptable=" + exptable + "&action=getfields"; | |||||
| fetch(queryUrl).then(resp => { | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('x'); | |||||
| }).then((d) => { | |||||
| $DE('fields').innerHTML = d; | |||||
| }).catch((error) => { | |||||
| $DE('fields').innerHTML = errMsg; | |||||
| }); | |||||
| } | |||||
| function CheckSubmit() { | |||||
| if ($DE('rpfield').value == "") { | |||||
| ShowMsg("您选择的操作为手工指定字段,但您并没指定"); | |||||
| return false; | |||||
| } | |||||
| if ($DE('rpstring').value == "") { | |||||
| ShowMsg("您没指定要替换的字符串"); | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| function pf(v) { | |||||
| $DE('rpfield').value = v; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form action="sys_data_replace.php" name="form1" method="post" target="stafrm" onSubmit="return CheckSubmit()"> | <form action="sys_data_replace.php" name="form1" method="post" target="stafrm" onSubmit="return CheckSubmit()"> | ||||
| @@ -129,5 +99,35 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function ShowFields() { | |||||
| var exptable = $DE('exptable').options[$DE('exptable').selectedIndex].value; | |||||
| var queryUrl = "sys_data_replace.php?exptable=" + exptable + "&action=getfields"; | |||||
| fetch(queryUrl).then(resp => { | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('x'); | |||||
| }).then((d) => { | |||||
| $DE('fields').innerHTML = d; | |||||
| }).catch((error) => { | |||||
| $DE('fields').innerHTML = errMsg; | |||||
| }); | |||||
| } | |||||
| function CheckSubmit() { | |||||
| if ($DE('rpfield').value == "") { | |||||
| ShowMsg("您选择的操作为手工指定字段,但您并没指定"); | |||||
| return false; | |||||
| } | |||||
| if ($DE('rpstring').value == "") { | |||||
| ShowMsg("您没指定要替换的字符串"); | |||||
| return false; | |||||
| } | |||||
| return true; | |||||
| } | |||||
| function pf(v) { | |||||
| $DE('rpfield').value = v; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -7,50 +7,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script> | |||||
| //获得选中文件的数据表 | |||||
| function getCheckboxItem() { | |||||
| var myform = document.form1; | |||||
| var allSel = ""; | |||||
| if (myform.bakfile.value) return myform.bakfile.value; | |||||
| for (i = 0; i < myform.bakfile.length; i++) { | |||||
| if (myform.bakfile[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = myform.bakfile[i].value; | |||||
| else | |||||
| allSel = allSel + "," + myform.bakfile[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| //反选 | |||||
| function ReSel() { | |||||
| var myform = document.form1; | |||||
| for (i = 0; i < myform.bakfile.length; i++) { | |||||
| if (myform.bakfile[i].checked) myform.bakfile[i].checked = false; | |||||
| else myform.bakfile[i].checked = true; | |||||
| } | |||||
| } | |||||
| //全选 | |||||
| function SelAll() { | |||||
| var myform = document.form1; | |||||
| for (i = 0; i < myform.bakfile.length; i++) { | |||||
| myform.bakfile[i].checked = true; | |||||
| } | |||||
| } | |||||
| //取消 | |||||
| function NoneSel() { | |||||
| var myform = document.form1; | |||||
| for (i = 0; i < myform.bakfile.length; i++) { | |||||
| myform.bakfile[i].checked = false; | |||||
| } | |||||
| } | |||||
| function checkSubmit() { | |||||
| var myform = document.form1; | |||||
| myform.bakfiles.value = getCheckboxItem(); | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | ||||
| @@ -104,5 +60,49 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| //获得选中文件的数据表 | |||||
| function getCheckboxItem() { | |||||
| var myform = document.form1; | |||||
| var allSel = ""; | |||||
| if (myform.bakfile.value) return myform.bakfile.value; | |||||
| for (i = 0; i < myform.bakfile.length; i++) { | |||||
| if (myform.bakfile[i].checked) { | |||||
| if (allSel == "") | |||||
| allSel = myform.bakfile[i].value; | |||||
| else | |||||
| allSel = allSel + "," + myform.bakfile[i].value; | |||||
| } | |||||
| } | |||||
| return allSel; | |||||
| } | |||||
| //反选 | |||||
| function ReSel() { | |||||
| var myform = document.form1; | |||||
| for (i = 0; i < myform.bakfile.length; i++) { | |||||
| if (myform.bakfile[i].checked) myform.bakfile[i].checked = false; | |||||
| else myform.bakfile[i].checked = true; | |||||
| } | |||||
| } | |||||
| //全选 | |||||
| function SelAll() { | |||||
| var myform = document.form1; | |||||
| for (i = 0; i < myform.bakfile.length; i++) { | |||||
| myform.bakfile[i].checked = true; | |||||
| } | |||||
| } | |||||
| //取消 | |||||
| function NoneSel() { | |||||
| var myform = document.form1; | |||||
| for (i = 0; i < myform.bakfile.length; i++) { | |||||
| myform.bakfile[i].checked = false; | |||||
| } | |||||
| } | |||||
| function checkSubmit() { | |||||
| var myform = document.form1; | |||||
| myform.bakfiles.value = getCheckboxItem(); | |||||
| return true; | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,56 +10,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| var searchconfig = false; | |||||
| function Nav() { | |||||
| if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||||
| else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||||
| else return "OT"; | |||||
| } | |||||
| function $Obj(objname) { | |||||
| return document.getElementById(objname); | |||||
| } | |||||
| function ShowConfig(em, allgr) { | |||||
| if (searchconfig) location.reload(); | |||||
| for (var i = 1; i <= allgr; i++) { | |||||
| if ($Obj('td' + i)) { | |||||
| if (i == em) $Obj('td' + i).style.display = (Nav() == 'IE' ? 'block' : 'table'); | |||||
| else $Obj('td' + i).style.display = 'none'; | |||||
| } | |||||
| } | |||||
| $Obj('addvar').style.display = 'none'; | |||||
| } | |||||
| function ShowHide(objname) { | |||||
| var obj = $Obj(objname); | |||||
| if (obj.style.display != "none") obj.style.display = "none"; | |||||
| else obj.style.display = (Nav() == 'IE' ? 'block' : 'table-row'); | |||||
| } | |||||
| function backSearch() { | |||||
| location.reload(); | |||||
| } | |||||
| function getSearch() { | |||||
| var searchKeywords = $Obj('keywds').value; | |||||
| searchKeywords = searchKeywords.replace(/^cfg_/, ""); | |||||
| fetch('sys_info.php?dopost=search&keywords=' + searchKeywords).then(resp => { | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('系统错误,无法获取数据'); | |||||
| }).then((d) => { | |||||
| $Obj('_search').innerHTML = d; | |||||
| }).catch((error) => { | |||||
| $Obj('_search').innerHTML = errMsg; | |||||
| }); | |||||
| $Obj('_mainsearch').innerHTML = ''; | |||||
| searchconfig = true; | |||||
| } | |||||
| function resetCookieEncode() { | |||||
| jQuery.get("sys_info.php?dopost=make_encode", function(data) { | |||||
| jQuery("#edit___cfg_cookie_encode").val(data); | |||||
| }); | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <table cellpadding="2" cellspacing="1" align="center" class="table maintable my-3"> | <table cellpadding="2" cellspacing="1" align="center" class="table maintable my-3"> | ||||
| @@ -204,5 +154,55 @@ | |||||
| <?php }?> | <?php }?> | ||||
| </div> | </div> | ||||
| </form> | </form> | ||||
| <script> | |||||
| var searchconfig = false; | |||||
| function Nav() { | |||||
| if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||||
| else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||||
| else return "OT"; | |||||
| } | |||||
| function $Obj(objname) { | |||||
| return document.getElementById(objname); | |||||
| } | |||||
| function ShowConfig(em, allgr) { | |||||
| if (searchconfig) location.reload(); | |||||
| for (var i = 1; i <= allgr; i++) { | |||||
| if ($Obj('td' + i)) { | |||||
| if (i == em) $Obj('td' + i).style.display = (Nav() == 'IE' ? 'block' : 'table'); | |||||
| else $Obj('td' + i).style.display = 'none'; | |||||
| } | |||||
| } | |||||
| $Obj('addvar').style.display = 'none'; | |||||
| } | |||||
| function ShowHide(objname) { | |||||
| var obj = $Obj(objname); | |||||
| if (obj.style.display != "none") obj.style.display = "none"; | |||||
| else obj.style.display = (Nav() == 'IE' ? 'block' : 'table-row'); | |||||
| } | |||||
| function backSearch() { | |||||
| location.reload(); | |||||
| } | |||||
| function getSearch() { | |||||
| var searchKeywords = $Obj('keywds').value; | |||||
| searchKeywords = searchKeywords.replace(/^cfg_/, ""); | |||||
| fetch('sys_info.php?dopost=search&keywords=' + searchKeywords).then(resp => { | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('系统错误,无法获取数据'); | |||||
| }).then((d) => { | |||||
| $Obj('_search').innerHTML = d; | |||||
| }).catch((error) => { | |||||
| $Obj('_search').innerHTML = errMsg; | |||||
| }); | |||||
| $Obj('_mainsearch').innerHTML = ''; | |||||
| searchconfig = true; | |||||
| } | |||||
| function resetCookieEncode() { | |||||
| jQuery.get("sys_info.php?dopost=make_encode", function(data) { | |||||
| jQuery("#edit___cfg_cookie_encode").val(data); | |||||
| }); | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,38 +10,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function LoadCtTest() { | |||||
| var filetype = $Obj('filetype').value; | |||||
| var info = $Obj('info').value; | |||||
| $Obj('loaddiv').style.display = 'block'; | |||||
| fetch('sys_safetest.php?action=test&filetype=' + filetype + "&info=" + info).then(resp=>{ | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('系统错误,无法获取数据'); | |||||
| }).then((d)=>{ | |||||
| $DE('messagetd').innerHTML = d; | |||||
| $Obj('loaddiv').style.display = 'none'; | |||||
| }).catch((error) => { | |||||
| console.log(error); | |||||
| }); | |||||
| } | |||||
| function LoadCtClear() { | |||||
| $Obj('loaddiv').style.display = 'block'; | |||||
| fetch('sys_safetest.php?action=clear').then(resp=>{ | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('系统错误,无法获取数据'); | |||||
| }).then((d)=>{ | |||||
| $DE('messagetd').innerHTML = d; | |||||
| $Obj('loaddiv').style.display = 'none'; | |||||
| }).catch((error) => { | |||||
| $DE('messagetd').innerHTML = errMsg; | |||||
| }); | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <table cellpadding="1" cellspacing="1" align="center" class="table maintable my-3"> | <table cellpadding="1" cellspacing="1" align="center" class="table maintable my-3"> | ||||
| @@ -77,5 +45,37 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <script> | |||||
| function LoadCtTest() { | |||||
| var filetype = $Obj('filetype').value; | |||||
| var info = $Obj('info').value; | |||||
| $Obj('loaddiv').style.display = 'block'; | |||||
| fetch('sys_safetest.php?action=test&filetype=' + filetype + "&info=" + info).then(resp=>{ | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('系统错误,无法获取数据'); | |||||
| }).then((d)=>{ | |||||
| $DE('messagetd').innerHTML = d; | |||||
| $Obj('loaddiv').style.display = 'none'; | |||||
| }).catch((error) => { | |||||
| console.log(error); | |||||
| }); | |||||
| } | |||||
| function LoadCtClear() { | |||||
| $Obj('loaddiv').style.display = 'block'; | |||||
| fetch('sys_safetest.php?action=clear').then(resp=>{ | |||||
| if (resp.ok) { | |||||
| return resp.text() | |||||
| } | |||||
| throw new Error('系统错误,无法获取数据'); | |||||
| }).then((d)=>{ | |||||
| $DE('messagetd').innerHTML = d; | |||||
| $Obj('loaddiv').style.display = 'none'; | |||||
| }).catch((error) => { | |||||
| $DE('messagetd').innerHTML = errMsg; | |||||
| }); | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -9,6 +9,11 @@ | |||||
| <script src="../static/web/js/diffview.js"></script> | <script src="../static/web/js/diffview.js"></script> | ||||
| <script src="../static/web/js/difflib.js"></script> | <script src="../static/web/js/difflib.js"></script> | ||||
| <style>body{font-size:12px}h2{margin:0.5em 0 0.1em;text-align:center}.top{text-align:center}.textInput{display:block;width:50%;float:left}textarea{width:100%;height:300px}label:hover{text-decoration:underline;cursor:pointer}.spacer{margin-left:10px}.viewType{font-size:16px;clear:both;text-align:center;padding:1em}#diffoutput{width:100%}</style> | <style>body{font-size:12px}h2{margin:0.5em 0 0.1em;text-align:center}.top{text-align:center}.textInput{display:block;width:50%;float:left}textarea{width:100%;height:300px}label:hover{text-decoration:underline;cursor:pointer}.spacer{margin-left:10px}.viewType{font-size:16px;clear:both;text-align:center;padding:1em}#diffoutput{width:100%}</style> | ||||
| </head> | |||||
| <body> | |||||
| <textarea id="baseText" style="display:none"><?php echo $base ;?></textarea> | |||||
| <textarea id="newText" style="display:none"><?php echo $new ;?></textarea> | |||||
| <div id="diffoutput"></div> | |||||
| <script> | <script> | ||||
| function diffUsingJS(viewType) { | function diffUsingJS(viewType) { | ||||
| "use strict"; | "use strict"; | ||||
| @@ -28,11 +33,6 @@ | |||||
| })); | })); | ||||
| } | } | ||||
| </script> | </script> | ||||
| </head> | |||||
| <body> | |||||
| <textarea id="baseText" style="display:none"><?php echo $base ;?></textarea> | |||||
| <textarea id="newText" style="display:none"><?php echo $new ;?></textarea> | |||||
| <div id="diffoutput"></div> | |||||
| <script> | <script> | ||||
| $(document).ready(function() { | $(document).ready(function() { | ||||
| diffUsingJS(1); | diffUsingJS(1); | ||||
| @@ -10,66 +10,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="../static/web/js/style.js"></script> | <script src="../static/web/js/style.js"></script> | ||||
| <script> | |||||
| function CheckAll(form, prefix, checkall) { | |||||
| var checkall = checkall ? checkall : 'chkall'; | |||||
| for (var i = 0; i < form.elements.length; i++) { | |||||
| var e = form.elements[i]; | |||||
| if (e.name && e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) { | |||||
| e.checked = form.elements[checkall].checked; | |||||
| } | |||||
| } | |||||
| } | |||||
| function UpdateOne(tid) { | |||||
| location = "tags_main.php?action=update&count=" + document.getElementById('count' + tid).value + "&tid=" + tid; | |||||
| } | |||||
| function DeleteOne(tid) { | |||||
| location = "tags_main.php?action=delete&ids=" + tid; | |||||
| } | |||||
| function UpdateKwDes(tid, tag) { | |||||
| $.get("tags_main.php?action=get_one&tid=" + tid, function(data) { | |||||
| let rs = JSON.parse(data); | |||||
| let title = rs.title ? rs.title : ""; | |||||
| let keywords = rs.keywords ? rs.keywords : ""; | |||||
| let description = rs.description ? rs.description : ""; | |||||
| ShowMsg(`<div class="form-group row"> | |||||
| <label for="iptTitle" class="col-sm-3 col-form-label">标签</label> | |||||
| <div class="col-sm-9"><input type="text" name="title" class="form-control" disabled value="${tag}"></div> | |||||
| </div> | |||||
| <div class="form-group row"> | |||||
| <label for="iptKw" class="col-sm-3 col-form-label">标题</label> | |||||
| <div class="col-sm-9"><input type="text" name="title" class="form-control" id="iptTitle" placeholder="例如:DedeBIZ商业组件" value="${title}"></div> | |||||
| </div> | |||||
| <div class="form-group row"> | |||||
| <label for="iptKw" class="col-sm-3 col-form-label">关键词</label> | |||||
| <div class="col-sm-9"><input type="text" name="kw" class="form-control" id="iptKw" placeholder="例如:DedeBIZ,Dede商业" value="${keywords}"></div> | |||||
| </div> | |||||
| <div class="form-group row"> | |||||
| <label for="iptDes" class="col-sm-3 col-form-label">描述</label> | |||||
| <div class="col-sm-9"><textarea id="iptDes" name="des" class="form-control" placeholder="例如:DedeBIZ系统基于PHP7版本开发,具有很强的可扩展性,并且完全开放源代码。">${description}</textarea></div> | |||||
| </div>`, { | |||||
| footer: `<button type="button" class="btn btn-success btn-sm" onclick="UpdateKwDesDo(${tid}, '~modalID~')">设置</button>`, | |||||
| }); | |||||
| }) | |||||
| } | |||||
| function UpdateKwDesDo(tid, mdlID) { | |||||
| let title = $("#iptTitle").val(); | |||||
| let kw = $("#iptKw").val(); | |||||
| let des = $("#iptDes").val(); | |||||
| $.post("tags_main.php?action=set_one", { | |||||
| tid: tid, | |||||
| title: title, | |||||
| kw: kw, | |||||
| des: des, | |||||
| }, function(data) { | |||||
| let rs = JSON.parse(data); | |||||
| if (rs.code === 200) { | |||||
| location.reload(); | |||||
| } | |||||
| }) | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <table cellpadding="1" cellspacing="1" align="center" class="table maintable my-3"> | <table cellpadding="1" cellspacing="1" align="center" class="table maintable my-3"> | ||||
| @@ -129,5 +69,65 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function CheckAll(form, prefix, checkall) { | |||||
| var checkall = checkall ? checkall : 'chkall'; | |||||
| for (var i = 0; i < form.elements.length; i++) { | |||||
| var e = form.elements[i]; | |||||
| if (e.name && e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) { | |||||
| e.checked = form.elements[checkall].checked; | |||||
| } | |||||
| } | |||||
| } | |||||
| function UpdateOne(tid) { | |||||
| location = "tags_main.php?action=update&count=" + document.getElementById('count' + tid).value + "&tid=" + tid; | |||||
| } | |||||
| function DeleteOne(tid) { | |||||
| location = "tags_main.php?action=delete&ids=" + tid; | |||||
| } | |||||
| function UpdateKwDes(tid, tag) { | |||||
| $.get("tags_main.php?action=get_one&tid=" + tid, function(data) { | |||||
| let rs = JSON.parse(data); | |||||
| let title = rs.title ? rs.title : ""; | |||||
| let keywords = rs.keywords ? rs.keywords : ""; | |||||
| let description = rs.description ? rs.description : ""; | |||||
| ShowMsg(`<div class="form-group row"> | |||||
| <label for="iptTitle" class="col-sm-3 col-form-label">标签</label> | |||||
| <div class="col-sm-9"><input type="text" name="title" class="form-control" disabled value="${tag}"></div> | |||||
| </div> | |||||
| <div class="form-group row"> | |||||
| <label for="iptKw" class="col-sm-3 col-form-label">标题</label> | |||||
| <div class="col-sm-9"><input type="text" name="title" class="form-control" id="iptTitle" placeholder="例如:DedeBIZ商业组件" value="${title}"></div> | |||||
| </div> | |||||
| <div class="form-group row"> | |||||
| <label for="iptKw" class="col-sm-3 col-form-label">关键词</label> | |||||
| <div class="col-sm-9"><input type="text" name="kw" class="form-control" id="iptKw" placeholder="例如:DedeBIZ,Dede商业" value="${keywords}"></div> | |||||
| </div> | |||||
| <div class="form-group row"> | |||||
| <label for="iptDes" class="col-sm-3 col-form-label">描述</label> | |||||
| <div class="col-sm-9"><textarea id="iptDes" name="des" class="form-control" placeholder="例如:DedeBIZ系统基于PHP7版本开发,具有很强的可扩展性,并且完全开放源代码。">${description}</textarea></div> | |||||
| </div>`, { | |||||
| footer: `<button type="button" class="btn btn-success btn-sm" onclick="UpdateKwDesDo(${tid}, '~modalID~')">设置</button>`, | |||||
| }); | |||||
| }) | |||||
| } | |||||
| function UpdateKwDesDo(tid, mdlID) { | |||||
| let title = $("#iptTitle").val(); | |||||
| let kw = $("#iptKw").val(); | |||||
| let des = $("#iptDes").val(); | |||||
| $.post("tags_main.php?action=set_one", { | |||||
| tid: tid, | |||||
| title: title, | |||||
| kw: kw, | |||||
| des: des, | |||||
| }, function(data) { | |||||
| let rs = JSON.parse(data); | |||||
| if (rs.code === 200) { | |||||
| location.reload(); | |||||
| } | |||||
| }) | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -7,16 +7,6 @@ | |||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script> | |||||
| function DelTpl(filename) { | |||||
| DedeConfirm("您确实要删除这个模板吗").then((v)=>{ | |||||
| location = 'tpl.php?action=del&acdir=<?php echo $acdir;?>&filename=' + | |||||
| filename; | |||||
| }).catch((e)=>{ | |||||
| console.log(e) | |||||
| }); | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <table width="98%" cellspacing="1" cellpadding="0" align="center" class="table maintable my-3"> | <table width="98%" cellspacing="1" cellpadding="0" align="center" class="table maintable my-3"> | ||||
| @@ -64,5 +54,15 @@ | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <script> | |||||
| function DelTpl(filename) { | |||||
| DedeConfirm("您确实要删除这个模板吗").then((v)=>{ | |||||
| location = 'tpl.php?action=del&acdir=<?php echo $acdir;?>&filename=' + | |||||
| filename; | |||||
| }).catch((e)=>{ | |||||
| console.log(e) | |||||
| }); | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,20 +10,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("页面名称不能为空"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.nfilename.value == "") { | |||||
| ShowMsg("文件名不能为空"); | |||||
| document.form1.nfilename.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form action="templets_one_add.php" method="post" name="form1" onSubmit="return checkSubmit()"> | <form action="templets_one_add.php" method="post" name="form1" onSubmit="return checkSubmit()"> | ||||
| @@ -92,5 +78,19 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("页面名称不能为空"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.nfilename.value == "") { | |||||
| ShowMsg("文件名不能为空"); | |||||
| document.form1.nfilename.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -10,21 +10,6 @@ | |||||
| <script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
| <script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function checkSubmit() | |||||
| { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("页面名称不能为空"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.nfilename.value=="") { | |||||
| ShowMsg("文件名不能为空"); | |||||
| document.form1.nfilename.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form action="templets_one_edit.php" method="post" name="form1" onSubmit="return checkSubmit()"> | <form action="templets_one_edit.php" method="post" name="form1" onSubmit="return checkSubmit()"> | ||||
| @@ -97,5 +82,20 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function checkSubmit() | |||||
| { | |||||
| if (document.form1.title.value == "") { | |||||
| ShowMsg("页面名称不能为空"); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.nfilename.value=="") { | |||||
| ShowMsg("文件名不能为空"); | |||||
| document.form1.nfilename.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -14,36 +14,6 @@ | |||||
| <script src="js/mode/css/css.js"></script> | <script src="js/mode/css/css.js"></script> | ||||
| <script src="js/mode/htmlmixed/htmlmixed.js"></script> | <script src="js/mode/htmlmixed/htmlmixed.js"></script> | ||||
| <style>.selbt{float:left;display:inline-block;margin:6px 6px 6px 0;text-align:center;border-radius:.5rem}.helpdiv{float:left;display:none;padding:10px;width:100%;background:#f5f5f5;border:1px solid #dee2e6;border-radius:.5rem}</style> | <style>.selbt{float:left;display:inline-block;margin:6px 6px 6px 0;text-align:center;border-radius:.5rem}.helpdiv{float:left;display:none;padding:10px;width:100%;background:#f5f5f5;border:1px solid #dee2e6;border-radius:.5rem}</style> | ||||
| <script> | |||||
| function Post() { | |||||
| if (document.form1.filename.value == "") { | |||||
| alert("文件名不能为空"); | |||||
| document.form1.filename.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| function showdiv(id) { | |||||
| hideobj = GETNAMES("help111"); | |||||
| for (i = 0; i < hideobj.length; i++) { | |||||
| hideobj[i].style.display = "none"; | |||||
| } | |||||
| if (id != '') { | |||||
| document.getElementById(id).style.display = "block"; | |||||
| } | |||||
| } | |||||
| function GETNAMES(name) { | |||||
| var returns = document.getElementsByName(name); | |||||
| if (returns.length > 0) return returns; | |||||
| returns = new Array(); | |||||
| var e = document.getElementsByTagName('div'); | |||||
| for (i = 0; i < e.length; i++) { | |||||
| if (e[i].getAttribute("name") == name) { | |||||
| returns[returns.length] = e[i]; | |||||
| } | |||||
| } | |||||
| return returns; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form method="POST" action="tpl.php" name=form1 onSubmit="return Post()"> | <form method="POST" action="tpl.php" name=form1 onSubmit="return Post()"> | ||||
| @@ -100,6 +70,36 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function Post() { | |||||
| if (document.form1.filename.value == "") { | |||||
| alert("文件名不能为空"); | |||||
| document.form1.filename.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| function showdiv(id) { | |||||
| hideobj = GETNAMES("help111"); | |||||
| for (i = 0; i < hideobj.length; i++) { | |||||
| hideobj[i].style.display = "none"; | |||||
| } | |||||
| if (id != '') { | |||||
| document.getElementById(id).style.display = "block"; | |||||
| } | |||||
| } | |||||
| function GETNAMES(name) { | |||||
| var returns = document.getElementsByName(name); | |||||
| if (returns.length > 0) return returns; | |||||
| returns = new Array(); | |||||
| var e = document.getElementsByTagName('div'); | |||||
| for (i = 0; i < e.length; i++) { | |||||
| if (e[i].getAttribute("name") == name) { | |||||
| returns[returns.length] = e[i]; | |||||
| } | |||||
| } | |||||
| return returns; | |||||
| } | |||||
| </script> | |||||
| <script> | <script> | ||||
| var editor = CodeMirror.fromTextArea(document.getElementById('content'), { | var editor = CodeMirror.fromTextArea(document.getElementById('content'), { | ||||
| lineNumbers: true, | lineNumbers: true, | ||||
| @@ -18,15 +18,6 @@ | |||||
| <script src="js/mode/clike/clike.js"></script> | <script src="js/mode/clike/clike.js"></script> | ||||
| <script src="js/mode/htmlmixed/htmlmixed.js"></script> | <script src="js/mode/htmlmixed/htmlmixed.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| function Post() { | |||||
| if (document.form1.filename.value == "") { | |||||
| ShowMsg("文件名不能为空"); | |||||
| document.form1.filename.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form method="POST" action="tpl.php" name=form1 onSubmit="return Post()"> | <form method="POST" action="tpl.php" name=form1 onSubmit="return Post()"> | ||||
| @@ -60,6 +51,15 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function Post() { | |||||
| if (document.form1.filename.value == "") { | |||||
| ShowMsg("文件名不能为空"); | |||||
| document.form1.filename.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <script> | <script> | ||||
| var editor = CodeMirror.fromTextArea(document.getElementById('content'), { | var editor = CodeMirror.fromTextArea(document.getElementById('content'), { | ||||
| lineNumbers: true, | lineNumbers: true, | ||||
| @@ -4,16 +4,9 @@ | |||||
| <meta charset="utf-8"> | <meta charset="utf-8"> | ||||
| <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | ||||
| <title>文件修改</title> | <title>文件修改</title> | ||||
| <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||||
| <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
| <script> | |||||
| function Post() { | |||||
| if (document.form1.filename.value == "") { | |||||
| alert("文件名不能为空"); | |||||
| document.form1.filename.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form method="POST" action="tpl.php" name=form1 onSubmit="return Post()"> | <form method="POST" action="tpl.php" name=form1 onSubmit="return Post()"> | ||||
| @@ -42,5 +35,14 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| function Post() { | |||||
| if (document.form1.filename.value == "") { | |||||
| alert("文件名不能为空"); | |||||
| document.form1.filename.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -13,60 +13,6 @@ | |||||
| <script src="../static/web/js/moment.min.js"></script> | <script src="../static/web/js/moment.min.js"></script> | ||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| var i = 1; | |||||
| function AddItem() { | |||||
| i++; | |||||
| if (i > 15) { | |||||
| ShowMsg("最多添加15个选项"); | |||||
| return; | |||||
| } | |||||
| var htmldata = "<div class='py-2'>选项" + i + ":<input type='text' name='voteitem" + i + "' class='admin-input-lg'></div>"; | |||||
| jQuery("#voteitem").append(htmldata); | |||||
| } | |||||
| function ResetItem() { | |||||
| i = 1; | |||||
| var obj = document.getElementById("voteitem"); | |||||
| obj.innerHTML = "<div class='py-2'>选项1:<input type='text' name='voteitem1' class='admin-input-lg'></div>"; | |||||
| } | |||||
| function checkSubmit() { | |||||
| if (document.form1.votename.value == "") { | |||||
| ShowMsg("投票名称不能为空"); | |||||
| document.form1.votename.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <script> | |||||
| $(document).ready(function () { | |||||
| $('.datepicker1').daterangepicker({ | |||||
| "singleDatePicker": true, | |||||
| "autoApply": true, | |||||
| "showDropdowns": true, | |||||
| "linkedCalendars": false, | |||||
| "timePicker": true, | |||||
| "timePicker24Hour": true, | |||||
| //"timePickerSeconds": true, | |||||
| "showCustomRangeLabel": false, | |||||
| ranges: { | |||||
| '今日': [moment(), moment()], | |||||
| '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | |||||
| '本月': [moment().startOf('month'), moment().startOf('month')], | |||||
| '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')] | |||||
| }, | |||||
| "locale": { | |||||
| format: 'YYYY-MM-DD HH:mm', | |||||
| applyLabel: '确定', | |||||
| cancelLabel: '取消', | |||||
| daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'], | |||||
| monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | |||||
| firstDay: 1 | |||||
| } | |||||
| }, function (start) { | |||||
| $(this).val(start.format("YYYY-MM-DD HH:mm")); | |||||
| }); | |||||
| }) | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" method="post" action="vote_add.php" onSubmit="return checkSubmit()"> | <form name="form1" method="post" action="vote_add.php" onSubmit="return checkSubmit()"> | ||||
| @@ -145,5 +91,59 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| var i = 1; | |||||
| function AddItem() { | |||||
| i++; | |||||
| if (i > 15) { | |||||
| ShowMsg("最多添加15个选项"); | |||||
| return; | |||||
| } | |||||
| var htmldata = "<div class='py-2'>选项" + i + ":<input type='text' name='voteitem" + i + "' class='admin-input-lg'></div>"; | |||||
| jQuery("#voteitem").append(htmldata); | |||||
| } | |||||
| function ResetItem() { | |||||
| i = 1; | |||||
| var obj = document.getElementById("voteitem"); | |||||
| obj.innerHTML = "<div class='py-2'>选项1:<input type='text' name='voteitem1' class='admin-input-lg'></div>"; | |||||
| } | |||||
| function checkSubmit() { | |||||
| if (document.form1.votename.value == "") { | |||||
| ShowMsg("投票名称不能为空"); | |||||
| document.form1.votename.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <script> | |||||
| $(document).ready(function () { | |||||
| $('.datepicker1').daterangepicker({ | |||||
| "singleDatePicker": true, | |||||
| "autoApply": true, | |||||
| "showDropdowns": true, | |||||
| "linkedCalendars": false, | |||||
| "timePicker": true, | |||||
| "timePicker24Hour": true, | |||||
| //"timePickerSeconds": true, | |||||
| "showCustomRangeLabel": false, | |||||
| ranges: { | |||||
| '今日': [moment(), moment()], | |||||
| '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | |||||
| '本月': [moment().startOf('month'), moment().startOf('month')], | |||||
| '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')] | |||||
| }, | |||||
| "locale": { | |||||
| format: 'YYYY-MM-DD HH:mm', | |||||
| applyLabel: '确定', | |||||
| cancelLabel: '取消', | |||||
| daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'], | |||||
| monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | |||||
| firstDay: 1 | |||||
| } | |||||
| }, function (start) { | |||||
| $(this).val(start.format("YYYY-MM-DD HH:mm")); | |||||
| }); | |||||
| }) | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -13,36 +13,6 @@ | |||||
| <script src="../static/web/js/moment.min.js"></script> | <script src="../static/web/js/moment.min.js"></script> | ||||
| <script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
| <script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
| <script> | |||||
| $(document).ready(function () { | |||||
| $('.datepicker1').daterangepicker({ | |||||
| "singleDatePicker": true, | |||||
| "autoApply": true, | |||||
| "showDropdowns": true, | |||||
| "linkedCalendars": false, | |||||
| "timePicker": true, | |||||
| "timePicker24Hour": true, | |||||
| //"timePickerSeconds": true, | |||||
| "showCustomRangeLabel": false, | |||||
| ranges: { | |||||
| '今日': [moment(), moment()], | |||||
| '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | |||||
| '本月': [moment().startOf('month'), moment().startOf('month')], | |||||
| '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')] | |||||
| }, | |||||
| "locale": { | |||||
| format: 'YYYY-MM-DD HH:mm', | |||||
| applyLabel: '确定', | |||||
| cancelLabel: '取消', | |||||
| daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'], | |||||
| monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | |||||
| firstDay: 1 | |||||
| } | |||||
| }, function (start) { | |||||
| $(this).val(start.format("YYYY-MM-DD HH:mm")); | |||||
| }); | |||||
| }) | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <form name="form1" method="post" action="vote_edit.php"> | <form name="form1" method="post" action="vote_edit.php"> | ||||
| @@ -116,5 +86,35 @@ | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </form> | </form> | ||||
| <script> | |||||
| $(document).ready(function () { | |||||
| $('.datepicker1').daterangepicker({ | |||||
| "singleDatePicker": true, | |||||
| "autoApply": true, | |||||
| "showDropdowns": true, | |||||
| "linkedCalendars": false, | |||||
| "timePicker": true, | |||||
| "timePicker24Hour": true, | |||||
| //"timePickerSeconds": true, | |||||
| "showCustomRangeLabel": false, | |||||
| ranges: { | |||||
| '今日': [moment(), moment()], | |||||
| '昨日': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | |||||
| '本月': [moment().startOf('month'), moment().startOf('month')], | |||||
| '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').startOf('month')] | |||||
| }, | |||||
| "locale": { | |||||
| format: 'YYYY-MM-DD HH:mm', | |||||
| applyLabel: '确定', | |||||
| cancelLabel: '取消', | |||||
| daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'], | |||||
| monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | |||||
| firstDay: 1 | |||||
| } | |||||
| }, function (start) { | |||||
| $(this).val(start.format("YYYY-MM-DD HH:mm")); | |||||
| }); | |||||
| }) | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -230,7 +230,7 @@ if (!function_exists('CheckSql')) { | |||||
| } | } | ||||
| } | } | ||||
| /** | /** | ||||
| * 载入小助手,系统默认载入小助手示例: | |||||
| * 载入小助手,系统默认载入小助手示例 | |||||
| * <code> | * <code> | ||||
| * if (!function_exists('HelloDede')) | * if (!function_exists('HelloDede')) | ||||
| * { | * { | ||||
| @@ -300,8 +300,6 @@ if (!function_exists('file_put_contents')) { | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| $arrs1 = array(); | |||||
| $arrs2 = array(); | |||||
| /** | /** | ||||
| * 短消息函数,可以在某个动作处理后友好的系统提示 | * 短消息函数,可以在某个动作处理后友好的系统提示 | ||||
| * | * | ||||
| @@ -6,15 +6,14 @@ | |||||
| <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:field.keywords/}"> | <meta name="keywords" content="{dede:field.keywords/}"> | ||||
| <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | ||||
| <script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/styles/default.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/styles/default.css"> | ||||
| <script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"></script> | <script src="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"></script> | ||||
| <script>hljs.initHighlightingOnLoad();</script> | |||||
| </head> | </head> | ||||
| <body class="body-bg"> | <body class="body-bg"> | ||||
| {dede:include filename='top.htm'/} | {dede:include filename='top.htm'/} | ||||
| @@ -85,5 +84,6 @@ | |||||
| </div> | </div> | ||||
| </main> | </main> | ||||
| {dede:include filename='foot.htm'/} | {dede:include filename='foot.htm'/} | ||||
| <script>hljs.initHighlightingOnLoad();</script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -6,13 +6,13 @@ | |||||
| <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:field.keywords/}"> | <meta name="keywords" content="{dede:field.keywords/}"> | ||||
| <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | ||||
| <script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.min.js"></script> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.min.js"></script> | |||||
| </head> | </head> | ||||
| <body> | <body> | ||||
| <body class="body-bg"> | <body class="body-bg"> | ||||
| @@ -6,16 +6,15 @@ | |||||
| <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:field.keywords/}"> | <meta name="keywords" content="{dede:field.keywords/}"> | ||||
| <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | ||||
| <script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.min.js"></script> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/styles/default.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/styles/default.css"> | ||||
| <script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.min.js"></script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"></script> | <script src="{dede:global.cfg_cmsurl/}/static/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"></script> | ||||
| <script>hljs.initHighlightingOnLoad();</script> | |||||
| </head> | </head> | ||||
| <body class="body-bg"> | <body class="body-bg"> | ||||
| {dede:include filename='top.htm'/} | {dede:include filename='top.htm'/} | ||||
| @@ -99,5 +98,6 @@ | |||||
| </div> | </div> | ||||
| </main> | </main> | ||||
| {dede:include filename='foot.htm'/} | {dede:include filename='foot.htm'/} | ||||
| <script>hljs.initHighlightingOnLoad();</script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -6,61 +6,13 @@ | |||||
| <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:field.keywords/}"> | <meta name="keywords" content="{dede:field.keywords/}"> | ||||
| <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | ||||
| <script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.min.js"></script> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script> | |||||
| var shortname = "{dede:global.art_shortname/}"; | |||||
| var npage = parseInt("{dede:field name = 'nowpage'/}"); | |||||
| var totalpage = parseInt("{dede:field name = 'totalpage'/}"); | |||||
| var namehand = "{dede:field name='namehand'/}"; | |||||
| var displaytype = "{dede:field name='displaytype'/}"; | |||||
| var gtimer = null; | |||||
| //大图 | |||||
| function dPlayBig() { | |||||
| var imgObj = document.getElementById("bigimg"); | |||||
| window.open(imgObj.src); | |||||
| } | |||||
| //停止幻灯 | |||||
| function dStopPlay() { | |||||
| if (gtimer) clearTimeout(gtimer); | |||||
| else dPlayNext(); | |||||
| } | |||||
| //开始幻灯 | |||||
| function dStartPlay() { | |||||
| if (npage != totalpage) { | |||||
| gtimer = setTimeout("dPlayNext()", 10000); | |||||
| } | |||||
| } | |||||
| //上一张 | |||||
| function dPlayPre() { | |||||
| if (npage < 2) { | |||||
| ShowMsg("这是第一页"); | |||||
| } else { | |||||
| if (npage == 2) { | |||||
| if (namehand != '') location.href = namehand + shortname; | |||||
| else location.href = "view.php?aid={dede:field name='id'/}"; | |||||
| } else if (displaytype == 'st' && namehand != '') { | |||||
| location.href = namehand + "_" + (npage - 1) + shortname; | |||||
| } else { | |||||
| location.href = "view.php?aid={dede:field name='id'/}&pageno=" + (npage - 1); | |||||
| } | |||||
| } | |||||
| } | |||||
| //下一张 | |||||
| function dPlayNext() { | |||||
| if (npage == totalpage) { | |||||
| ShowMsg("没有了哦"); | |||||
| } else { | |||||
| if (displaytype == 'st' && namehand != '') location.href = namehand + "_" + (npage + 1) + shortname; | |||||
| else location.href = "view.php?aid={dede:field name='id'/}&pageno=" + (npage + 1); | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.min.js"></script> | |||||
| </head> | </head> | ||||
| <body class="body-bg"> | <body class="body-bg"> | ||||
| {dede:include filename='top.htm'/} | {dede:include filename='top.htm'/} | ||||
| @@ -160,5 +112,53 @@ | |||||
| </div> | </div> | ||||
| </main> | </main> | ||||
| {dede:include filename='foot.htm'/} | {dede:include filename='foot.htm'/} | ||||
| <script> | |||||
| var shortname = "{dede:global.art_shortname/}"; | |||||
| var npage = parseInt("{dede:field name = 'nowpage'/}"); | |||||
| var totalpage = parseInt("{dede:field name = 'totalpage'/}"); | |||||
| var namehand = "{dede:field name='namehand'/}"; | |||||
| var displaytype = "{dede:field name='displaytype'/}"; | |||||
| var gtimer = null; | |||||
| //大图 | |||||
| function dPlayBig() { | |||||
| var imgObj = document.getElementById("bigimg"); | |||||
| window.open(imgObj.src); | |||||
| } | |||||
| //停止幻灯 | |||||
| function dStopPlay() { | |||||
| if (gtimer) clearTimeout(gtimer); | |||||
| else dPlayNext(); | |||||
| } | |||||
| //开始幻灯 | |||||
| function dStartPlay() { | |||||
| if (npage != totalpage) { | |||||
| gtimer = setTimeout("dPlayNext()", 10000); | |||||
| } | |||||
| } | |||||
| //上一张 | |||||
| function dPlayPre() { | |||||
| if (npage < 2) { | |||||
| ShowMsg("这是第一页"); | |||||
| } else { | |||||
| if (npage == 2) { | |||||
| if (namehand != '') location.href = namehand + shortname; | |||||
| else location.href = "view.php?aid={dede:field name='id'/}"; | |||||
| } else if (displaytype == 'st' && namehand != '') { | |||||
| location.href = namehand + "_" + (npage - 1) + shortname; | |||||
| } else { | |||||
| location.href = "view.php?aid={dede:field name='id'/}&pageno=" + (npage - 1); | |||||
| } | |||||
| } | |||||
| } | |||||
| //下一张 | |||||
| function dPlayNext() { | |||||
| if (npage == totalpage) { | |||||
| ShowMsg("没有了哦"); | |||||
| } else { | |||||
| if (displaytype == 'st' && namehand != '') location.href = namehand + "_" + (npage + 1) + shortname; | |||||
| else location.href = "view.php?aid={dede:field name='id'/}&pageno=" + (npage + 1); | |||||
| } | |||||
| } | |||||
| </script> | |||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -6,12 +6,12 @@ | |||||
| <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:field.keywords/}"> | <meta name="keywords" content="{dede:field.keywords/}"> | ||||
| <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | ||||
| <script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| </head> | </head> | ||||
| <body class="body-bg"> | <body class="body-bg"> | ||||
| {dede:include filename='top.htm'/} | {dede:include filename='top.htm'/} | ||||
| @@ -6,12 +6,12 @@ | |||||
| <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:field.keywords/}"> | <meta name="keywords" content="{dede:field.keywords/}"> | ||||
| <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | ||||
| <script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| </head> | </head> | ||||
| <body class="body-bg"> | <body class="body-bg"> | ||||
| {dede:include filename='top.htm'/} | {dede:include filename='top.htm'/} | ||||
| @@ -6,13 +6,13 @@ | |||||
| <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:field.keywords/}"> | <meta name="keywords" content="{dede:field.keywords/}"> | ||||
| <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | ||||
| <script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.min.js"></script> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/bootstrap.min.js"></script> | |||||
| </head> | </head> | ||||
| <body class="body-bg"> | <body class="body-bg"> | ||||
| {dede:include filename='top.htm'/} | {dede:include filename='top.htm'/} | ||||
| @@ -6,8 +6,8 @@ | |||||
| <title>{dede:global.cfg_webname/}</title> | <title>{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:global.cfg_keywords/}"> | <meta name="keywords" content="{dede:global.cfg_keywords/}"> | ||||
| <meta name="description" content="{dede:global.cfg_description/}"> | <meta name="description" content="{dede:global.cfg_description/}"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | ||||
| @@ -6,8 +6,8 @@ | |||||
| <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:global.cfg_keywords/}"> | <meta name="keywords" content="{dede:global.cfg_keywords/}"> | ||||
| <meta name="description" content="{dede:global.cfg_description/}"> | <meta name="description" content="{dede:global.cfg_description/}"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | ||||
| @@ -6,8 +6,8 @@ | |||||
| <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:global.cfg_keywords/}"> | <meta name="keywords" content="{dede:global.cfg_keywords/}"> | ||||
| <meta name="description" content="{dede:global.cfg_description/}"> | <meta name="description" content="{dede:global.cfg_description/}"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | ||||
| @@ -6,8 +6,8 @@ | |||||
| <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:global.cfg_keywords/}"> | <meta name="keywords" content="{dede:global.cfg_keywords/}"> | ||||
| <meta name="description" content="{dede:global.cfg_description/}"> | <meta name="description" content="{dede:global.cfg_description/}"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | ||||
| @@ -6,8 +6,8 @@ | |||||
| <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:global.cfg_keywords/}"> | <meta name="keywords" content="{dede:global.cfg_keywords/}"> | ||||
| <meta name="description" content="{dede:global.cfg_description/}"> | <meta name="description" content="{dede:global.cfg_description/}"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | ||||
| @@ -6,8 +6,8 @@ | |||||
| <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:global.cfg_keywords/}"> | <meta name="keywords" content="{dede:global.cfg_keywords/}"> | ||||
| <meta name="description" content="{dede:global.cfg_description/}"> | <meta name="description" content="{dede:global.cfg_description/}"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | ||||
| @@ -6,8 +6,8 @@ | |||||
| <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:global.cfg_keywords/}"> | <meta name="keywords" content="{dede:global.cfg_keywords/}"> | ||||
| <meta name="description" content="{dede:global.cfg_description/}"> | <meta name="description" content="{dede:global.cfg_description/}"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | ||||
| @@ -6,11 +6,11 @@ | |||||
| <title>{dede:field.title/}-{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)' runphp='yes'}if (@me>1) @me='第'.trim(@me).'页-';else @me='';{/dede:pagelist}{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)' runphp='yes'}if (@me>1) @me='第'.trim(@me).'页-';else @me='';{/dede:pagelist}{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:field.keywords/}"> | <meta name="keywords" content="{dede:field.keywords/}"> | ||||
| <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| </head> | </head> | ||||
| <body class="body-bg"> | <body class="body-bg"> | ||||
| {dede:include filename='top.htm'/} | {dede:include filename='top.htm'/} | ||||
| @@ -6,11 +6,11 @@ | |||||
| <title>{dede:field.title/}-{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)' runphp='yes'}if (@me>1) @me='第'.trim(@me).'页-';else @me='';{/dede:pagelist}{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)' runphp='yes'}if (@me>1) @me='第'.trim(@me).'页-';else @me='';{/dede:pagelist}{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:field.keywords/}"> | <meta name="keywords" content="{dede:field.keywords/}"> | ||||
| <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| </head> | </head> | ||||
| <body class="body-bg"> | <body class="body-bg"> | ||||
| {dede:include filename='top.htm'/} | {dede:include filename='top.htm'/} | ||||
| @@ -6,11 +6,11 @@ | |||||
| <title>{dede:field.title/}-{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)' runphp='yes'}if (@me>1) @me='第'.trim(@me).'页-';else @me='';{/dede:pagelist}{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)' runphp='yes'}if (@me>1) @me='第'.trim(@me).'页-';else @me='';{/dede:pagelist}{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:field.keywords/}"> | <meta name="keywords" content="{dede:field.keywords/}"> | ||||
| <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| </head> | </head> | ||||
| <body class="body-bg"> | <body class="body-bg"> | ||||
| {dede:include filename='top.htm'/} | {dede:include filename='top.htm'/} | ||||
| @@ -6,11 +6,11 @@ | |||||
| <title>{dede:field.title/}-{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)' runphp='yes'}if (@me>1) @me='第'.trim(@me).'页-';else @me='';{/dede:pagelist}{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)' runphp='yes'}if (@me>1) @me='第'.trim(@me).'页-';else @me='';{/dede:pagelist}{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:field.keywords/}"> | <meta name="keywords" content="{dede:field.keywords/}"> | ||||
| <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| </head> | </head> | ||||
| <body class="body-bg"> | <body class="body-bg"> | ||||
| {dede:include filename='top.htm'/} | {dede:include filename='top.htm'/} | ||||
| @@ -6,11 +6,11 @@ | |||||
| <title>{dede:field.title/}-{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)' runphp='yes'}if (@me>1) @me='第'.trim(@me).'页-';else @me='';{/dede:pagelist}{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)' runphp='yes'}if (@me>1) @me='第'.trim(@me).'页-';else @me='';{/dede:pagelist}{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:field.keywords/}"> | <meta name="keywords" content="{dede:field.keywords/}"> | ||||
| <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| </head> | </head> | ||||
| <body class="body-bg"> | <body class="body-bg"> | ||||
| {dede:include filename='top.htm'/} | {dede:include filename='top.htm'/} | ||||
| @@ -6,12 +6,12 @@ | |||||
| <title>{dede:field.title/}-{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)' runphp='yes'}if (@me>1) @me='第'.trim(@me).'页-';else @me='';{/dede:pagelist}{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)' runphp='yes'}if (@me>1) @me='第'.trim(@me).'页-';else @me='';{/dede:pagelist}{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:field.keywords/}"> | <meta name="keywords" content="{dede:field.keywords/}"> | ||||
| <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <style>.form-control{display:block;margin-right:0;margin-bottom:10px;width:100%}</style> | <style>.form-control{display:block;margin-right:0;margin-bottom:10px;width:100%}</style> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| </head> | </head> | ||||
| <body class="body-bg"> | <body class="body-bg"> | ||||
| {dede:include filename='top.htm'/} | {dede:include filename='top.htm'/} | ||||
| @@ -6,11 +6,11 @@ | |||||
| <title>{dede:field.title/}-{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)' runphp='yes'}if (@me>1) @me='第'.trim(@me).'页-';else @me='';{/dede:pagelist}{dede:global.cfg_webname/}</title> | <title>{dede:field.title/}-{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)' runphp='yes'}if (@me>1) @me='第'.trim(@me).'页-';else @me='';{/dede:pagelist}{dede:global.cfg_webname/}</title> | ||||
| <meta name="keywords" content="{dede:field.keywords/}"> | <meta name="keywords" content="{dede:field.keywords/}"> | ||||
| <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | <meta name="description" content="{dede:field.description function='html2text(@me)'/}"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/font/css/font-awesome.min.css"> | ||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/bootstrap.min.css"> | |||||
| <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | <link rel="stylesheet" href="{dede:global.cfg_cmsurl/}/static/web/css/style.css"> | ||||
| <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | <link rel="shortcut icon" href="{dede:global.cfg_cmsurl/}/static/web/img/favicon.ico"> | ||||
| <script src="{dede:global.cfg_cmsurl/}/static/web/js/jquery.min.js"></script> | |||||
| </head> | </head> | ||||
| <body class="body-bg"> | <body class="body-bg"> | ||||
| {dede:include filename='top.htm'/} | {dede:include filename='top.htm'/} | ||||