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