|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <!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/css/bootstrap.min.css">
- <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
- <link href="css/base.css" rel="stylesheet" type="text/css" />
- <link href="../static/css/daterangepicker.css" rel="stylesheet">
- <script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script>
- <script type="text/javascript" src="../static/js/moment.min.js"></script>
- <script type="text/javascript" src="../static/js/daterangepicker.js"></script>
- <script language="javascript">
- $(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 language='javascript'>
- function SelUp(){
- var ob1 = document.getElementById("uptype1");
- var ob2 = document.getElementById("uptype2");
- var ob3 = document.getElementById("uptype3");
- if(ob1.checked){
- document.getElementById("seltime").style.display = "";
- document.getElementById("selid").style.display = "none";
- }else if(ob2.checked){
- document.getElementById("seltime").style.display = "none";
- document.getElementById("selid").style.display = "";
- }else{
- document.getElementById("seltime").style.display = "none";
- document.getElementById("selid").style.display = "none";
- }
- }
- </script>
- </head>
- <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
- <table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3">
- <form name="form1" action="makehtml_all.php" target="stafrm" method="post">
- <input type="hidden" name="action" value="make" />
- <tr>
- <td height="28" colspan="2" bgcolor="#EDF9D5" background='images/tbg.gif' style="padding-left:10px;">
- <strong>一键更新网站:</strong></td>
- </td>
- </tr>
- <tr>
- <td width="30%" height="30" bgcolor="#FFFFFF"> 更新选项:</td>
- <td valign="top" bgcolor="#FFFFFF">
- <label><input name="uptype" id="uptype1" type="radio" class="btn btn-secondary btn-sm" value="time" onClick="SelUp()" checked="checked" />
- 指定时间的所有更新</label>
- <label><input name="uptype" id="uptype2" type="radio" class="btn btn-secondary btn-sm" onClick="SelUp()" value="id" />
- 指定ID文档的所有更新</label>
- <label><input name="uptype" id="uptype3" type="radio" class="btn btn-secondary btn-sm" onClick="SelUp()" value="mkall" />
- 更新所有</label>
- </td>
- </tr>
- <tr id='seltime'>
- <td height="20" bgcolor="#FFFFFF"> 起始时间:</td>
- <td height="20" bgcolor="#FFFFFF">
- <input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time()); ?>" style="width:200px" class="datepicker"/>
- </td>
- </tr>
- <tr bgcolor="#FFFFFF" id="selid" style="display:none;">
- <td height="20"> 起始ID:</td>
- <td height="20">
- <input name="startid" type="text" id="startid" value="0" size="4" />
- </td>
- </tr>
- <tr>
- <td height="31" colspan="2" bgcolor="#ffffff" align="center" style="padding-top:6px">
- <button type="submit" name="Submit" class="btn btn-secondary">开始更新</button>
- </td>
- </tr>
- </form>
- <tr bgcolor="#F9FCEF">
- <td height="20" colspan="2">
- <table width="100%" class="table table-borderless">
- <tr>
- <td width="74%">进行状态: </td>
- <td width="26%" 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='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td colspan="2" id="mtd">
- <div id='mdv' style='width:100%;height:350px;'>
- <iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="350px"></iframe>
- </div>
- <script language="JavaScript">
- document.all.mdv.style.pixelHeight = screen.height - 360;
- </script>
- </td>
- </tr>
- </table>
- </body>
- </html>
|