|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
- <title>更新脚本</title>
- <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/css/admin.css">
- <script src="../static/web/js/jquery.min.js"></script>
- <script src="js/main.js" language="javascript"></script>
- <script language="javascript">
- function SelectTemplets(fname) {
- var pos = GetWinPos(800,600);
- window.open("./dialog/select_templets.php?&activepath=<?php echo urlencode($cfg_templets_dir.'/plus')?>&f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=" + pos.left + ", top=" + pos.top);
- }
- </script>
- </head>
- <body>
- <table width="98%" border="0" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
- <form name="form1" action="makehtml_js_action.php" method="get" target='stafrm'>
- <tr>
- <td height="26" colspan="2" background="../static/web/img/tbg.gif">
- <table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless">
- <tr>
- <td width="30%" style="padding-left:10px">更新脚本</td>
- <td width="70%" align="right"><a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td width="260" height="26">选择栏目:</td>
- <td height="26">
- <?php
- if(empty($cid)) $cid="0";
- $tl = new TypeLink($cid);
- $typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0,1);
- echo "<select name='typeid' style='width:260px'>";
- if($cid=="0") echo "<option value='0' selected>所有栏目</option>";
- echo $typeOptions;
- echo "</select>";
- ?>
- </td>
- </tr>
- <tr>
- <td height="26">JS文件:</td>
- <td height="26">
- <span><?php echo "<script src='".$cfg_cmspath."/static/js/".$cid.".js' language='javascript'></script>"; ?></span>
- </td>
- </tr>
- <tr>
- <td height="26">模板文件:</td>
- <td height="26"><input name="templet" type="text" id="templet" value="plus/js.htm" style="width:260px">
- <button type="button" class="btn btn-success btn-sm" name="set4" onClick="SelectTemplets('form1.templet');">浏览</button>
- </td>
- </tr>
- <tr>
- <td height="26">更新选项:</td>
- <td height="26">
- <label><input type="radio" name="uptype" value="all" class="np">
- 更新所有栏目</label>
- <label><input name="uptype" type="radio" value="onlyme" class="np" checked>
- 仅当前文件</label>
- </td>
- </tr>
- <tr>
- <td height="30" bgcolor="#F8FCF1" colspan="2" align="center">
- <button name="b112" type="button" class="btn btn-success btn-sm" onClick="document.form1.submit();">开始更新</button>
- </td>
- </tr>
- </form>
- <tr>
- <td height="26" colspan="2">
- <table width="100%" class="table table-borderless">
- <tr>
- <td width="70%">结果:</td>
- <td width="30%" align="right">
- <script language='javascript'>
- function ResizeDiv(obj, ty) {
- if (ty == "+") document.all[obj].style.pixelHeight += 50;
- else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight - 50;
- }
- </script>
- <a href="javascript:;" onClick="ResizeDiv('mdv','+');" class="btn btn-success btn-sm">增大</a>
- <a href="javascript:;" onClick="ResizeDiv('mdv','-');" class="btn btn-success btn-sm">缩小</a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="2" id="mtd">
- <div id="mdv" style="width:100%;height:300px">
- <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe>
- </div>
- </td>
- </tr>
- </table>
- </body>
- </html>
|