Browse Source

调整

tags/6.2.12
叙述、别离 7 months ago
parent
commit
f000eda679
32 changed files with 88 additions and 115 deletions
  1. +5
    -6
      src/admin/templets/ad_add.htm
  2. +5
    -6
      src/admin/templets/ad_edit.htm
  3. +1
    -1
      src/admin/templets/album_add.htm
  4. +2
    -2
      src/admin/templets/album_edit.htm
  5. +4
    -8
      src/admin/templets/article_keywords_select.htm
  6. +15
    -22
      src/admin/templets/catalog_add_quick.htm
  7. +3
    -3
      src/admin/templets/content_batch_up.htm
  8. +1
    -1
      src/admin/templets/content_i_list.htm
  9. +1
    -1
      src/admin/templets/content_list.htm
  10. +1
    -1
      src/admin/templets/content_s_list.htm
  11. +1
    -1
      src/admin/templets/content_sg_list.htm
  12. +1
    -2
      src/admin/templets/diy_field_add.htm
  13. +1
    -2
      src/admin/templets/diy_field_edit.htm
  14. +3
    -5
      src/admin/templets/file_upload.htm
  15. +2
    -2
      src/admin/templets/freelist_main.htm
  16. +1
    -2
      src/admin/templets/friendlink_add.htm
  17. +2
    -2
      src/admin/templets/makehtml_all.htm
  18. +3
    -4
      src/admin/templets/member_edit.htm
  19. +2
    -4
      src/admin/templets/module_edit.htm
  20. +2
    -3
      src/admin/templets/mychannel_field_add.htm
  21. +2
    -2
      src/admin/templets/mychannel_field_edit.htm
  22. +7
    -8
      src/admin/templets/mytag_add.htm
  23. +2
    -2
      src/admin/templets/mytag_edit.htm
  24. +1
    -1
      src/admin/templets/mytag_main.htm
  25. +2
    -2
      src/admin/templets/search_keywords_main.htm
  26. +1
    -2
      src/admin/templets/sys_admin_user_tj.htm
  27. +2
    -2
      src/admin/templets/sys_cloud.htm
  28. +7
    -7
      src/admin/templets/sys_payment.htm
  29. +1
    -1
      src/admin/templets/tags_main.htm
  30. +1
    -2
      src/admin/templets/templets_one_edit.htm
  31. +3
    -4
      src/admin/templets/vote_add.htm
  32. +3
    -4
      src/admin/templets/vote_edit.htm

+ 5
- 6
src/admin/templets/ad_add.htm View File

@@ -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);


+ 5
- 6
src/admin/templets/ad_edit.htm View File

@@ -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>

+ 1
- 1
src/admin/templets/album_add.htm View File

@@ -412,7 +412,7 @@
}
});
}
})
});
</script>
<script>InitPage();</script>
</body>

+ 2
- 2
src/admin/templets/album_edit.htm View File

@@ -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>

+ 4
- 8
src/admin/templets/article_keywords_select.htm View File

@@ -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>


+ 15
- 22
src/admin/templets/catalog_add_quick.htm View File

@@ -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) {


+ 3
- 3
src/admin/templets/content_batch_up.htm View File

@@ -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>

+ 1
- 1
src/admin/templets/content_i_list.htm View File

@@ -137,7 +137,7 @@
$('#timerange').on('cancel.daterangepicker', function(ev, picker) {
$(this).val('');
});
})
});
</script>
</body>
</html>

+ 1
- 1
src/admin/templets/content_list.htm View File

@@ -136,7 +136,7 @@
$('#timerange').on('cancel.daterangepicker', function(ev, picker) {
$(this).val('');
});
})
});
</script>
</body>
</html>

+ 1
- 1
src/admin/templets/content_s_list.htm View File

@@ -108,7 +108,7 @@
$('#timerange').on('cancel.daterangepicker', function(ev, picker) {
$(this).val('');
});
})
});
</script>
</body>
</html>

+ 1
- 1
src/admin/templets/content_sg_list.htm View File

@@ -122,7 +122,7 @@
$('#timerange').on('cancel.daterangepicker', function(ev, picker) {
$(this).val('');
});
})
});
</script>
</body>
</html>

+ 1
- 2
src/admin/templets/diy_field_add.htm View File

@@ -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;


+ 1
- 2
src/admin/templets/diy_field_edit.htm View File

@@ -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;


+ 3
- 5
src/admin/templets/file_upload.htm View File

@@ -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>";
}


+ 2
- 2
src/admin/templets/freelist_main.htm View File

@@ -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()


+ 1
- 2
src/admin/templets/friendlink_add.htm View File

@@ -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("网址不能为空");


+ 2
- 2
src/admin/templets/makehtml_all.htm View File

@@ -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>

+ 3
- 4
src/admin/templets/member_edit.htm View File

@@ -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;


+ 2
- 4
src/admin/templets/module_edit.htm View File

@@ -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';


+ 2
- 3
src/admin/templets/mychannel_field_add.htm View File

@@ -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();


+ 2
- 2
src/admin/templets/mychannel_field_edit.htm View File

@@ -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 {


+ 7
- 8
src/admin/templets/mytag_add.htm View File

@@ -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>

+ 2
- 2
src/admin/templets/mytag_edit.htm View File

@@ -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>


+ 1
- 1
src/admin/templets/mytag_main.htm View File

@@ -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>


+ 2
- 2
src/admin/templets/search_keywords_main.htm View File

@@ -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') {
?>


+ 1
- 2
src/admin/templets/sys_admin_user_tj.htm View File

@@ -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=>{


+ 2
- 2
src/admin/templets/sys_cloud.htm View File

@@ -166,9 +166,9 @@
ShowMsg("设置失败,请检查服务是否正确");
}
});
})
});
LoadConfig();
})
});
</script>
</body>
</html>

+ 7
- 7
src/admin/templets/sys_payment.htm View File

@@ -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>

+ 1
- 1
src/admin/templets/tags_main.htm View File

@@ -126,7 +126,7 @@
location.reload();
}

})
});
}
</script>
</body>

+ 1
- 2
src/admin/templets/templets_one_edit.htm View File

@@ -83,8 +83,7 @@
</table>
</form>
<script>
function checkSubmit()
{
function checkSubmit() {
if (document.form1.title.value == '') {
ShowMsg("页面名称不能为空");
document.form1.title.focus();


+ 3
- 4
src/admin/templets/vote_add.htm View File

@@ -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>

+ 3
- 4
src/admin/templets/vote_edit.htm View File

@@ -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>

Loading…
Cancel
Save