@@ -71,8 +71,8 @@ | |||||
<tr> | <tr> | ||||
<td>投放时间:</td> | <td>投放时间:</td> | ||||
<td> | <td> | ||||
<label>从:<input type="text" name="starttime" id="starttime" value="<?php echo $startDay?>" class="admin-input-sm"></label> | |||||
<label>到:<input type="text" name="endtime" id="endtime" value="<?php echo $endDay?>" class="admin-input-sm"></label> | |||||
<label>从:<input type="text" name="starttime" id="starttime" value="<?php echo $startDay?>" class="datepicker admin-input-sm"></label> | |||||
<label>到:<input type="text" name="endtime" id="endtime" value="<?php echo $endDay?>" class="datepicker admin-input-sm"></label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -177,7 +177,7 @@ | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
$(document).ready(function () { | |||||
$(document).ready(function() { | |||||
$('.datepicker').daterangepicker({ | $('.datepicker').daterangepicker({ | ||||
"singleDatePicker": true, | "singleDatePicker": true, | ||||
"autoApply": true, | "autoApply": true, | ||||
@@ -185,7 +185,6 @@ | |||||
"linkedCalendars": false, | "linkedCalendars": false, | ||||
"timePicker": true, | "timePicker": true, | ||||
"timePicker24Hour": true, | "timePicker24Hour": true, | ||||
//"timePickerSeconds": true, | |||||
"showCustomRangeLabel": false, | "showCustomRangeLabel": false, | ||||
ranges: { | ranges: { | ||||
'今日': [moment(), moment()], | '今日': [moment(), moment()], | ||||
@@ -201,13 +200,13 @@ | |||||
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | ||||
firstDay: 1 | firstDay: 1 | ||||
} | } | ||||
}, function (start) { | |||||
}, function(start) { | |||||
$(this).val(start.format("YYYY-MM-DD HH:mm")); | $(this).val(start.format("YYYY-MM-DD HH:mm")); | ||||
}); | }); | ||||
}) | }) | ||||
</script> | </script> | ||||
<script> | <script> | ||||
(function ($) { | |||||
(function($) { | |||||
function showcode(idName) { | function showcode(idName) { | ||||
$("#advert").html("").html($("#formtxt>#" + idName).html()); | $("#advert").html("").html($("#formtxt>#" + idName).html()); | ||||
$("#adstyle").val(idName); | $("#adstyle").val(idName); | ||||
@@ -62,8 +62,8 @@ | |||||
<tr> | <tr> | ||||
<td>投放时间:</td> | <td>投放时间:</td> | ||||
<td> | <td> | ||||
<label>从:<input type="text" name="starttime" id="starttime" value="<?php echo GetDateTimeMk($row['starttime'])?>" class="admin-input-sm"></label> | |||||
<label>到:<input type="text" name="endtime" id="endtime" value="<?php echo GetDateTimeMk($row['endtime'])?>" class="admin-input-sm"></label> | |||||
<label>从:<input type="text" name="starttime" id="starttime" value="<?php echo GetDateTimeMk($row['starttime'])?>" class="datepicker admin-input-sm"></label> | |||||
<label>到:<input type="text" name="endtime" id="endtime" value="<?php echo GetDateTimeMk($row['endtime'])?>" class="datepicker admin-input-sm"></label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -87,7 +87,7 @@ | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
$(document).ready(function () { | |||||
$(document).ready(function() { | |||||
$('.datepicker').daterangepicker({ | $('.datepicker').daterangepicker({ | ||||
"singleDatePicker": true, | "singleDatePicker": true, | ||||
"autoApply": true, | "autoApply": true, | ||||
@@ -95,7 +95,6 @@ | |||||
"linkedCalendars": false, | "linkedCalendars": false, | ||||
"timePicker": true, | "timePicker": true, | ||||
"timePicker24Hour": true, | "timePicker24Hour": true, | ||||
//"timePickerSeconds": true, | |||||
"showCustomRangeLabel": false, | "showCustomRangeLabel": false, | ||||
ranges: { | ranges: { | ||||
'今日': [moment(), moment()], | '今日': [moment(), moment()], | ||||
@@ -111,10 +110,10 @@ | |||||
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | ||||
firstDay: 1 | firstDay: 1 | ||||
} | } | ||||
}, function (start) { | |||||
}, function(start) { | |||||
$(this).val(start.format("YYYY-MM-DD HH:mm")); | $(this).val(start.format("YYYY-MM-DD HH:mm")); | ||||
}); | }); | ||||
}) | |||||
}); | |||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -412,7 +412,7 @@ | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
}) | |||||
}); | |||||
</script> | </script> | ||||
<script>InitPage();</script> | <script>InitPage();</script> | ||||
</body> | </body> |
@@ -446,7 +446,7 @@ | |||||
ShowMsg(error); //处理上传失败后的回调 | ShowMsg(error); //处理上传失败后的回调 | ||||
} | } | ||||
}); | }); | ||||
}) | |||||
}); | |||||
$("#iptAlbumImages").change(function(val) { | $("#iptAlbumImages").change(function(val) { | ||||
for (let i = 0; i < val.target.files.length; i++) { | for (let i = 0; i < val.target.files.length; i++) { | ||||
const f = val.target.files[i]; | const f = val.target.files[i]; | ||||
@@ -473,7 +473,7 @@ | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
}) | |||||
}); | |||||
</script> | </script> | ||||
<script>InitPage();</script> | <script>InitPage();</script> | ||||
</body> | </body> |
@@ -46,16 +46,14 @@ | |||||
</form> | </form> | ||||
<script> | <script> | ||||
//获得选中文件的文件名 | //获得选中文件的文件名 | ||||
function SelKw(kw) | |||||
{ | |||||
function SelKw(kw) { | |||||
if (document.form2.keywords.value) { | if (document.form2.keywords.value) { | ||||
document.form2.keywords.value += ","+kw; | document.form2.keywords.value += ","+kw; | ||||
} else { | } else { | ||||
document.form2.keywords.value = kw; | document.form2.keywords.value = kw; | ||||
} | } | ||||
} | } | ||||
function ReturnValue() | |||||
{ | |||||
function ReturnValue() { | |||||
if (window.opener.document.<?php echo $f?>.value) { | if (window.opener.document.<?php echo $f?>.value) { | ||||
window.opener.document.<?php echo $f?>.value += ','+document.form2.keywords.value; | window.opener.document.<?php echo $f?>.value += ','+document.form2.keywords.value; | ||||
} else { | } else { | ||||
@@ -63,14 +61,12 @@ | |||||
} | } | ||||
window.close(); | window.close(); | ||||
} | } | ||||
function showHide(objname) | |||||
{ | |||||
function showHide(objname) { | |||||
var obj = document.getElementById(objname); | var obj = document.getElementById(objname); | ||||
if (obj.style.display=="none") obj.style.display = "block"; | if (obj.style.display=="none") obj.style.display = "block"; | ||||
else obj.style.display="none"; | else obj.style.display="none"; | ||||
} | } | ||||
function AddNewKw() | |||||
{ | |||||
function AddNewKw() { | |||||
showHide("addnew"); | showHide("addnew"); | ||||
} | } | ||||
</script> | </script> | ||||
@@ -171,40 +171,33 @@ | |||||
</form> | </form> | ||||
<script> | <script> | ||||
var $ = jQuery; | var $ = jQuery; | ||||
$(document).ready(function () { | |||||
$(document).ready(function() { | |||||
//删除按钮事件 | //删除按钮事件 | ||||
$("#addQuick .del").click(function () { | |||||
$("#addQuick .del").click(function() { | |||||
$(this).parents(".repeat").remove(); | $(this).parents(".repeat").remove(); | ||||
}); | }); | ||||
//添加按钮事件 | //添加按钮事件 | ||||
$("#add").click(function () { | |||||
$("#add").click(function() { | |||||
var id = $("#addQuick tr").prevAll("tr").length + 1; | var id = $("#addQuick tr").prevAll("tr").length + 1; | ||||
$("#addQuick tr:eq(1)").clone(true).addClass("repeat") | $("#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")); | |||||
.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 () { | |||||
$("#addQuickRel .del").click(function() { | |||||
$(this).parents(".repeat").remove(); | $(this).parents(".repeat").remove(); | ||||
}); | }); | ||||
//添加按钮事件 | //添加按钮事件 | ||||
$("#addrel").click(function () { | |||||
$("#addrel").click(function() { | |||||
var id = $("#addQuickRel tr").prevAll("tr").length + 1; | 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")); | |||||
$("#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) { | function ShowHide(objname) { | ||||
@@ -51,8 +51,8 @@ | |||||
<td> | <td> | ||||
<label><input type="checkbox" name="seltime" id="seltime" value="1" onclick="ShowHideTime()"> 启用时间筛选(仅移动或删除文档可用该选项)</label> | <label><input type="checkbox" name="seltime" id="seltime" value="1" onclick="ShowHideTime()"> 启用时间筛选(仅移动或删除文档可用该选项)</label> | ||||
<div id="seltimeField" style="display:none"> | <div id="seltimeField" style="display:none"> | ||||
<label>开始:<?php $nowtime = GetDateTimeMk(time()-(24*3600*30));?> <input type="text" name="starttime" id="starttime" class="admin-input-sm" value="<?php echo $nowtime;?>"></label> | |||||
<label>结束:<?php $nowtime = GetDateTimeMk(time());?> <input type="text" name="endtime" id="endtime" class="admin-input-sm" value="<?php echo $nowtime;?>"></label> | |||||
<label>开始:<?php $nowtime = GetDateTimeMk(time()-(24*3600*30));?> <input type="text" name="starttime" id="starttime" class="datepicker admin-input-sm" value="<?php echo $nowtime;?>"></label> | |||||
<label>结束:<?php $nowtime = GetDateTimeMk(time());?> <input type="text" name="endtime" id="endtime" class="datepicker admin-input-sm" value="<?php echo $nowtime;?>"></label> | |||||
</div> | </div> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -124,7 +124,7 @@ | |||||
}, function (start) { | }, function (start) { | ||||
$(this).val(start.format("YYYY-MM-DD HH:mm:ss")); | $(this).val(start.format("YYYY-MM-DD HH:mm:ss")); | ||||
}); | }); | ||||
}) | |||||
}); | |||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -137,7 +137,7 @@ | |||||
$('#timerange').on('cancel.daterangepicker', function(ev, picker) { | $('#timerange').on('cancel.daterangepicker', function(ev, picker) { | ||||
$(this).val(''); | $(this).val(''); | ||||
}); | }); | ||||
}) | |||||
}); | |||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -136,7 +136,7 @@ | |||||
$('#timerange').on('cancel.daterangepicker', function(ev, picker) { | $('#timerange').on('cancel.daterangepicker', function(ev, picker) { | ||||
$(this).val(''); | $(this).val(''); | ||||
}); | }); | ||||
}) | |||||
}); | |||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -108,7 +108,7 @@ | |||||
$('#timerange').on('cancel.daterangepicker', function(ev, picker) { | $('#timerange').on('cancel.daterangepicker', function(ev, picker) { | ||||
$(this).val(''); | $(this).val(''); | ||||
}); | }); | ||||
}) | |||||
}); | |||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -122,7 +122,7 @@ | |||||
$('#timerange').on('cancel.daterangepicker', function(ev, picker) { | $('#timerange').on('cancel.daterangepicker', function(ev, picker) { | ||||
$(this).val(''); | $(this).val(''); | ||||
}); | }); | ||||
}) | |||||
}); | |||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -97,8 +97,7 @@ | |||||
</form> | </form> | ||||
<script> | <script> | ||||
var notAllow = "<?php echo $f;?>"; | var notAllow = "<?php echo $f;?>"; | ||||
function GetFields() | |||||
{ | |||||
function GetFields() { | |||||
var theform = document.form1; | var theform = document.form1; | ||||
var fieldname = theform.fieldname.value; | var fieldname = theform.fieldname.value; | ||||
var itemname = theform.itemname.value; | var itemname = theform.itemname.value; | ||||
@@ -102,8 +102,7 @@ | |||||
</table> | </table> | ||||
</form> | </form> | ||||
<script> | <script> | ||||
function GetFields() | |||||
{ | |||||
function GetFields() { | |||||
var theform = document.form1; | var theform = document.form1; | ||||
var itemname = theform.itemname.value; | var itemname = theform.itemname.value; | ||||
var fieldname = theform.fname.value; | var fieldname = theform.fname.value; | ||||
@@ -41,15 +41,13 @@ | |||||
</table> | </table> | ||||
</form> | </form> | ||||
<script> | <script> | ||||
var i=1; | |||||
function make_upload() | |||||
{ | |||||
var i = 1; | |||||
function make_upload() { | |||||
i++; | i++; | ||||
myob = document.getElementById("upfield"); | myob = document.getElementById("upfield"); | ||||
myob.innerHTML+="<div class='mb-3'><label>文件"+i+":<input type='file' name='upfile"+i+"' class='admin-input-lg'></label></div>"; | myob.innerHTML+="<div class='mb-3'><label>文件"+i+":<input type='file' name='upfile"+i+"' class='admin-input-lg'></label></div>"; | ||||
} | } | ||||
function reset_upload() | |||||
{ | |||||
function reset_upload() { | |||||
myob = document.getElementById("upfield"); | myob = document.getElementById("upfield"); | ||||
myob.innerHTML="<div class='mb-3'><label>文件1:<input type='file' name='upfile1' class='admin-input-lg'></label></div>"; | myob.innerHTML="<div class='mb-3'><label>文件1:<input type='file' name='upfile1' class='admin-input-lg'></label></div>"; | ||||
} | } | ||||
@@ -20,7 +20,7 @@ | |||||
function ReloadPage(ordertype) { | function ReloadPage(ordertype) { | ||||
orderby = ordertype; | orderby = ordertype; | ||||
var listArea = $Obj('rslist'); | var listArea = $Obj('rslist'); | ||||
var errMsg = "网络通信出错<br><a href=\"javascript:ReloadPage('" + ordertype + "')\">重新加载列表</a>"; | |||||
var errMsg = "<a href=\"javascript:ReloadPage('" + ordertype + "')\">重新加载列表</a>"; | |||||
fetch("freelist_main.php?dopost=getlist&pageno=" + pageno + "&orderby=" + ordertype + addget).then(resp=>resp.text()).then((d)=>{ | fetch("freelist_main.php?dopost=getlist&pageno=" + pageno + "&orderby=" + ordertype + addget).then(resp=>resp.text()).then((d)=>{ | ||||
listArea.innerHTML = d; | listArea.innerHTML = d; | ||||
}).catch((error) => { | }).catch((error) => { | ||||
@@ -48,7 +48,7 @@ | |||||
totalrow = totalrow - 1; | totalrow = totalrow - 1; | ||||
var pagenum = Math.ceil(totalrow / pagesize); | var pagenum = Math.ceil(totalrow / pagesize); | ||||
if (pagenum <= pageno) pageno = pagenum; | if (pagenum <= pageno) pageno = pagenum; | ||||
var errMsg = "网络通信出错<br><a href=\"javascript:LoadPage('" + pageno + "')\">重新加载列表</a>"; | |||||
var errMsg = "<a href=\"javascript:LoadPage('" + pageno + "')\">重新加载列表</a>"; | |||||
fetch("freelist_main.php?dopost=del&aid=" + nid + "&pageno=" + pageno).then(resp=>{ | fetch("freelist_main.php?dopost=del&aid=" + nid + "&pageno=" + pageno).then(resp=>{ | ||||
if (resp.ok) { | if (resp.ok) { | ||||
return resp.text() | return resp.text() | ||||
@@ -78,8 +78,7 @@ | |||||
</table> | </table> | ||||
</form> | </form> | ||||
<script> | <script> | ||||
function CheckSubmit() | |||||
{ | |||||
function CheckSubmit() { | |||||
if (document.form1.url.value=="http://"||document.form1.url.value=="") { | if (document.form1.url.value=="http://"||document.form1.url.value=="") { | ||||
document.form1.url.focus(); | document.form1.url.focus(); | ||||
ShowMsg("网址不能为空"); | ShowMsg("网址不能为空"); | ||||
@@ -29,7 +29,7 @@ | |||||
</tr> | </tr> | ||||
<tr id="seltime"> | <tr id="seltime"> | ||||
<td>起始时间:</td> | <td>起始时间:</td> | ||||
<td><input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time());?>" class="datepicker" class="admin-input-sm"></td> | |||||
<td><input type="text" name="starttime" id="starttime" value="<?php echo GetDateMk(time());?>" class="datepicker admin-input-sm"></td> | |||||
</tr> | </tr> | ||||
<tr id="selid" style="display:none"> | <tr id="selid" style="display:none"> | ||||
<td>起始id:</td> | <td>起始id:</td> | ||||
@@ -92,7 +92,7 @@ | |||||
}, function(start) { | }, function(start) { | ||||
$(this).val(start.format("YYYY-MM-DD HH:mm")); | $(this).val(start.format("YYYY-MM-DD HH:mm")); | ||||
}); | }); | ||||
}) | |||||
}); | |||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -173,14 +173,13 @@ | |||||
</table> | </table> | ||||
</form> | </form> | ||||
<script> | <script> | ||||
function checkSubmit() | |||||
{ | |||||
if (document.form2.email.value=="") { | |||||
function checkSubmit() { | |||||
if (document.form2.email.value == "") { | |||||
document.form2.email.focus(); | document.form2.email.focus(); | ||||
ShowMsg("邮箱不能为空"); | ShowMsg("邮箱不能为空"); | ||||
return false; | return false; | ||||
} | } | ||||
if (document.form2.uname.value=="") { | |||||
if (document.form2.uname.value == "") { | |||||
document.form2.uname.focus(); | document.form2.uname.focus(); | ||||
ShowMsg("会员昵称不能为空"); | ShowMsg("会员昵称不能为空"); | ||||
return false; | return false; | ||||
@@ -130,8 +130,7 @@ | |||||
</table> | </table> | ||||
</form> | </form> | ||||
<script> | <script> | ||||
function ShowHideField(cbox,vid,nid) | |||||
{ | |||||
function ShowHideField(cbox,vid,nid) { | |||||
var cboxobj = document.getElementById(cbox); | var cboxobj = document.getElementById(cbox); | ||||
if (cboxobj.checked) { | if (cboxobj.checked) { | ||||
document.getElementById(nid).style.display = 'block'; | document.getElementById(nid).style.display = 'block'; | ||||
@@ -141,8 +140,7 @@ | |||||
document.getElementById(vid).style.display = 'block'; | document.getElementById(vid).style.display = 'block'; | ||||
} | } | ||||
} | } | ||||
function ShowHideMb(rbox1,nid) | |||||
{ | |||||
function ShowHideMb(rbox1,nid) { | |||||
var rboxobj = document.getElementById(rbox1); | var rboxobj = document.getElementById(rbox1); | ||||
if (rboxobj.checked) { | if (rboxobj.checked) { | ||||
document.getElementById(nid).style.display = 'none'; | document.getElementById(nid).style.display = 'none'; | ||||
@@ -139,8 +139,7 @@ | |||||
</form> | </form> | ||||
<script> | <script> | ||||
var notAllow = "<?php echo $f;?>"; | var notAllow = "<?php echo $f;?>"; | ||||
function GetFields() | |||||
{ | |||||
function GetFields() { | |||||
var theform = document.form1; | var theform = document.form1; | ||||
var fieldname = theform.fieldname.value; | var fieldname = theform.fieldname.value; | ||||
var itemname = theform.itemname.value; | var itemname = theform.itemname.value; | ||||
@@ -189,7 +188,7 @@ | |||||
document.form1.fieldstring.value = revalue; | document.form1.fieldstring.value = revalue; | ||||
return true; | return true; | ||||
} | } | ||||
$(document).ready(function () { | |||||
$(document).ready(function() { | |||||
$("#dataType input").click(function(ele){ | $("#dataType input").click(function(ele){ | ||||
if ($(ele.currentTarget).val() === "relation") { | if ($(ele.currentTarget).val() === "relation") { | ||||
$("#_relation").show(); | $("#_relation").show(); | ||||
@@ -181,8 +181,8 @@ | |||||
document.form1.fieldstring.value = revalue; | document.form1.fieldstring.value = revalue; | ||||
return true; | return true; | ||||
} | } | ||||
$(document).ready(function () { | |||||
$("#type").change(function (ele) { | |||||
$(document).ready(function() { | |||||
$("#type").change(function(ele) { | |||||
if ($(ele.currentTarget).val() === "relation") { | if ($(ele.currentTarget).val() === "relation") { | ||||
$("#_relation").show(); | $("#_relation").show(); | ||||
} else { | } else { | ||||
@@ -33,7 +33,7 @@ | |||||
<?php | <?php | ||||
$tl = new TypeLink(0); | $tl = new TypeLink(0); | ||||
$typeOptions = $tl->GetOptionArray(0,0,0); | $typeOptions = $tl->GetOptionArray(0,0,0); | ||||
echo "<select name='typeid' class='admin-input-lg'>"; | |||||
echo "<select name='typeid' class='admin-input-md'>"; | |||||
echo "<option value='0' selected>显示在没有继承本标记的所有栏目</option>"; | echo "<option value='0' selected>显示在没有继承本标记的所有栏目</option>"; | ||||
echo $typeOptions; | echo $typeOptions; | ||||
echo "</select>"; | echo "</select>"; | ||||
@@ -42,7 +42,7 @@ | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>标记名称:</td> | <td>标记名称:</td> | ||||
<td><input type="text" name="tagname" id="tagname"></td> | |||||
<td><input type="text" name="tagname" id="tagname" class="admin-input-md"></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>时间限制:</td> | <td>时间限制:</td> | ||||
@@ -53,11 +53,11 @@ | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>开始时间:</td> | <td>开始时间:</td> | ||||
<td><input type="text" name="starttime" id="starttime" value="<?php echo $startDay?>" class="datepicker"></td> | |||||
<td><input type="text" name="starttime" id="starttime" value="<?php echo $startDay?>" class="datepicker admin-input-md"></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>结束时间:</td> | <td>结束时间:</td> | ||||
<td><input type="text" name="endtime" id="endtime" value="<?php echo $endDay?>" class="datepicker"></td> | |||||
<td><input type="text" name="endtime" id="endtime" value="<?php echo $endDay?>" class="datepicker admin-input-md"></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>正常显示文档:</td> | <td>正常显示文档:</td> | ||||
@@ -80,7 +80,7 @@ | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
$(document).ready(function () { | |||||
$(document).ready(function() { | |||||
$('.datepicker').daterangepicker({ | $('.datepicker').daterangepicker({ | ||||
"singleDatePicker": true, | "singleDatePicker": true, | ||||
"autoApply": true, | "autoApply": true, | ||||
@@ -88,7 +88,6 @@ | |||||
"linkedCalendars": false, | "linkedCalendars": false, | ||||
"timePicker": true, | "timePicker": true, | ||||
"timePicker24Hour": true, | "timePicker24Hour": true, | ||||
//"timePickerSeconds": true, | |||||
"showCustomRangeLabel": false, | "showCustomRangeLabel": false, | ||||
ranges: { | ranges: { | ||||
'今日': [moment(), moment()], | '今日': [moment(), moment()], | ||||
@@ -104,10 +103,10 @@ | |||||
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | ||||
firstDay: 1 | firstDay: 1 | ||||
} | } | ||||
}, function (start) { | |||||
}, function(start) { | |||||
$(this).val(start.format("YYYY-MM-DD HH:mm:ss")); | $(this).val(start.format("YYYY-MM-DD HH:mm:ss")); | ||||
}); | }); | ||||
}) | |||||
}); | |||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -43,11 +43,11 @@ | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>开始时间:</td> | <td>开始时间:</td> | ||||
<td><input type="text" name="starttime" id="starttime" value="<?php echo GetDateTimeMk($row['starttime'])?>"></td> | |||||
<td><input type="text" name="starttime" id="starttime" value="<?php echo GetDateTimeMk($row['starttime'])?>" class="admin-input-md"></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>结束时间:</td> | <td>结束时间:</td> | ||||
<td><input type="text" name="endtime" id="endtime" value="<?php echo GetDateTimeMk($row['endtime'])?>"></td> | |||||
<td><input type="text" name="endtime" id="endtime" value="<?php echo GetDateTimeMk($row['endtime'])?>" class="admin-input-md"></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>正常显示文档:</td> | <td>正常显示文档:</td> | ||||
@@ -38,7 +38,7 @@ | |||||
{/dede:datalist} | {/dede:datalist} | ||||
<tr> | <tr> | ||||
<td colspan="6"> | <td colspan="6"> | ||||
<a href="mytag_add.php" class="btn btn-success btn-sm">添加标记</a> | |||||
<a href="mytag_add.php" class="btn btn-success btn-sm">添加自定义宏标记</a> | |||||
<a href="mytag_tag_guide.php" class="btn btn-success btn-sm">智能标记向导</a> | <a href="mytag_tag_guide.php" class="btn btn-success btn-sm">智能标记向导</a> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -21,7 +21,7 @@ | |||||
function ReloadPage(ordertype) { | function ReloadPage(ordertype) { | ||||
orderby = ordertype; | orderby = ordertype; | ||||
var listArea = $Obj('rslist'); | var listArea = $Obj('rslist'); | ||||
var errMsg = "网络通信出错,<a href=\"javascript:ReloadPage('" + ordertype + "')\">重新加载列表</a>"; | |||||
var errMsg = "<a href=\"javascript:ReloadPage('" + ordertype + "')\">重新加载列表</a>"; | |||||
fetch("search_keywords_main.php?dopost=getlist&pageno=" + pageno + "&orderby=" + ordertype).then(resp=>{ | fetch("search_keywords_main.php?dopost=getlist&pageno=" + pageno + "&orderby=" + ordertype).then(resp=>{ | ||||
if (resp.ok) { | if (resp.ok) { | ||||
return resp.text() | return resp.text() | ||||
@@ -45,7 +45,7 @@ | |||||
var kw = $Obj('keyword' + nid).value; | var kw = $Obj('keyword' + nid).value; | ||||
var kws = $Obj('spwords' + nid).value; | var kws = $Obj('spwords' + nid).value; | ||||
var ct = $Obj('count' + nid).value; | var ct = $Obj('count' + nid).value; | ||||
var errMsg = "网络通信出错,<a href=\"javascript:LoadPage('" + pageno + "')\">重新加载列表</a>"; | |||||
var errMsg = "<a href=\"javascript:LoadPage('" + pageno + "')\">重新加载列表</a>"; | |||||
<?php | <?php | ||||
if (strtolower(substr($cfg_soft_lang, 0, 3)) == 'utf') { | if (strtolower(substr($cfg_soft_lang, 0, 3)) == 'utf') { | ||||
?> | ?> | ||||
@@ -9,8 +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/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
<script> | <script> | ||||
function LoadUser(uid) | |||||
{ | |||||
function LoadUser(uid) { | |||||
var loadhtml = $DE('loaddiv').innerHTML; | var loadhtml = $DE('loaddiv').innerHTML; | ||||
var ajaxdiv = $DE('userct'+uid); | var ajaxdiv = $DE('userct'+uid); | ||||
fetch('sys_admin_user_tj.php?dopost=getone&uid='+uid).then(resp=>{ | fetch('sys_admin_user_tj.php?dopost=getone&uid='+uid).then(resp=>{ | ||||
@@ -166,9 +166,9 @@ | |||||
ShowMsg("设置失败,请检查服务是否正确"); | ShowMsg("设置失败,请检查服务是否正确"); | ||||
} | } | ||||
}); | }); | ||||
}) | |||||
}); | |||||
LoadConfig(); | LoadConfig(); | ||||
}) | |||||
}); | |||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -135,7 +135,7 @@ | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<script> | <script> | ||||
$('.custom-file-input').on('change', function () { | |||||
$('.custom-file-input').on('change', function() { | |||||
let fileName = $(this).val().split('\\').pop(); | let fileName = $(this).val().split('\\').pop(); | ||||
$(this).siblings('.custom-file-label').addClass("selected").html(fileName); | $(this).siblings('.custom-file-label').addClass("selected").html(fileName); | ||||
}); | }); | ||||
@@ -173,7 +173,7 @@ | |||||
} | } | ||||
//加载系统config | //加载系统config | ||||
function getPayments() { | function getPayments() { | ||||
$.get("sys_payment.php?dopost=get_payments", function (data) { | |||||
$.get("sys_payment.php?dopost=get_payments", function(data) { | |||||
if (data.code === 0) { | if (data.code === 0) { | ||||
for (const key in data.data) { | for (const key in data.data) { | ||||
if (Object.hasOwnProperty.call(data.data, key)) { | if (Object.hasOwnProperty.call(data.data, key)) { | ||||
@@ -208,7 +208,7 @@ | |||||
} | } | ||||
} | } | ||||
} | } | ||||
}) | |||||
}); | |||||
} | } | ||||
//更新config | //更新config | ||||
function updateConfig() { | function updateConfig() { | ||||
@@ -240,7 +240,7 @@ | |||||
data: JSON.stringify(config), | data: JSON.stringify(config), | ||||
contentType: "application/json; charset=utf-8", | contentType: "application/json; charset=utf-8", | ||||
dataType: "json", | dataType: "json", | ||||
success: function (data) { | |||||
success: function(data) { | |||||
if (data.code === 0) { | if (data.code === 0) { | ||||
ShowMsg("保存支付配置成功"); | ShowMsg("保存支付配置成功"); | ||||
} else { | } else { | ||||
@@ -249,13 +249,13 @@ | |||||
} | } | ||||
}) | }) | ||||
} | } | ||||
$(document).ready(function () { | |||||
$(document).ready(function() { | |||||
getPayments(); | getPayments(); | ||||
$("#btnSave").click(() => { | $("#btnSave").click(() => { | ||||
updateConfig() | updateConfig() | ||||
saveConfig(); | saveConfig(); | ||||
}) | |||||
}) | |||||
}); | |||||
}); | |||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -126,7 +126,7 @@ | |||||
location.reload(); | location.reload(); | ||||
} | } | ||||
}) | |||||
}); | |||||
} | } | ||||
</script> | </script> | ||||
</body> | </body> |
@@ -83,8 +83,7 @@ | |||||
</table> | </table> | ||||
</form> | </form> | ||||
<script> | <script> | ||||
function checkSubmit() | |||||
{ | |||||
function checkSubmit() { | |||||
if (document.form1.title.value == '') { | if (document.form1.title.value == '') { | ||||
ShowMsg("页面名称不能为空"); | ShowMsg("页面名称不能为空"); | ||||
document.form1.title.focus(); | document.form1.title.focus(); | ||||
@@ -115,7 +115,7 @@ | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
$(document).ready(function () { | |||||
$(document).ready(function() { | |||||
$('.datepicker1').daterangepicker({ | $('.datepicker1').daterangepicker({ | ||||
"singleDatePicker": true, | "singleDatePicker": true, | ||||
"autoApply": true, | "autoApply": true, | ||||
@@ -123,7 +123,6 @@ | |||||
"linkedCalendars": false, | "linkedCalendars": false, | ||||
"timePicker": true, | "timePicker": true, | ||||
"timePicker24Hour": true, | "timePicker24Hour": true, | ||||
//"timePickerSeconds": true, | |||||
"showCustomRangeLabel": false, | "showCustomRangeLabel": false, | ||||
ranges: { | ranges: { | ||||
'今日': [moment(), moment()], | '今日': [moment(), moment()], | ||||
@@ -139,10 +138,10 @@ | |||||
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | ||||
firstDay: 1 | firstDay: 1 | ||||
} | } | ||||
}, function (start) { | |||||
}, function(start) { | |||||
$(this).val(start.format("YYYY-MM-DD HH:mm")); | $(this).val(start.format("YYYY-MM-DD HH:mm")); | ||||
}); | }); | ||||
}) | |||||
}); | |||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -87,7 +87,7 @@ | |||||
</table> | </table> | ||||
</form> | </form> | ||||
<script> | <script> | ||||
$(document).ready(function () { | |||||
$(document).ready(function() { | |||||
$('.datepicker1').daterangepicker({ | $('.datepicker1').daterangepicker({ | ||||
"singleDatePicker": true, | "singleDatePicker": true, | ||||
"autoApply": true, | "autoApply": true, | ||||
@@ -95,7 +95,6 @@ | |||||
"linkedCalendars": false, | "linkedCalendars": false, | ||||
"timePicker": true, | "timePicker": true, | ||||
"timePicker24Hour": true, | "timePicker24Hour": true, | ||||
//"timePickerSeconds": true, | |||||
"showCustomRangeLabel": false, | "showCustomRangeLabel": false, | ||||
ranges: { | ranges: { | ||||
'今日': [moment(), moment()], | '今日': [moment(), moment()], | ||||
@@ -111,10 +110,10 @@ | |||||
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], | ||||
firstDay: 1 | firstDay: 1 | ||||
} | } | ||||
}, function (start) { | |||||
}, function(start) { | |||||
$(this).val(start.format("YYYY-MM-DD HH:mm")); | $(this).val(start.format("YYYY-MM-DD HH:mm")); | ||||
}); | }); | ||||
}) | |||||
}); | |||||
</script> | </script> | ||||
</body> | </body> | ||||
</html> | </html> |