Site Module Code

Source: Internet
Author: User

{field: ' Edit ', title: ' Editing operation ', Width:150,align: ' Center ', formatter:function (value,row,index) {
if (row.is_delete==1 | | row.is_effect==0) {
Return
}
var action= ' <a href= '/admin.php/auth/details?id= ' +row.id+ ' "class=" Easyui-linkbutton "iconCls=" Icon-detail " Plain= "true" > Details </a> ';

Return action;

}}

、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、

JS Display time

*/
var Datetime = (function () {
/**
* Number of seconds time:1970 years to date
*/
function Datetime (time) {
This.date = new Date (time * 1000);
}
Datetime.prototype.setDate = function (time) {
This.date = new Date (time * 1000);
};
Datetime.prototype.format = function (FMT, time) {
if (time = = void 0) {time = null;}
var date;
if (time! = null) {
Date = new Date (time * 1000);
}
else {
date = This.date;
}
var o = {
"m+": Date.getmonth () + 1,
"D+": date.getdate (),
"H +": date.gethours (),
"i+": date.getminutes (),
"S+": Date.getseconds (),
"q+": Math.floor ((Date.getmonth () + 3)/3),
"S": this.date.getMilliseconds ()//MS
};
if (/(y+)/.test (FMT))
FMT = Fmt.replace (regexp.$1, (date.getfullyear () + ""). substr (4-regexp.$1.length));
For (var k in O)
if (New RegExp ("(" + K + ")"). Test (FMT))
FMT = Fmt.replace (regexp.$1, (regexp.$1.length = = 1)? (O[k]): (("XX" + o[k]). substr (("" + O[k]).));
return FMT;
};

{field: ' Start_time ', title: ' Start Time ', Width:100,align: ' Center ', formatter:function (value,row,index) {
Return Datetime.format (' Yyyy-mm-dd hh:ii:ss ', value);
}},

Site Module Code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.