webmain/system/task/rock_task.php

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php if(!defined('HOST'))die('not access');?>
<script >
$(document).ready(function(){
	var a = $('#veiw_{rand}').bootstable({
		tablename:'task',celleditor:true,modenum:'task',sort:'sort',dir:'asc',
		columns:[{
			text:'分类',dataIndex:'fenlei',editor:true,sortable:true
		},{
			text:'名称',dataIndex:'name',editor:true,align:'left'
		},{
			text:'地址',dataIndex:'url',editor:true
		},{
			text:'频率',dataIndex:'type',editor:true
		},{
			text:'运行时间',dataIndex:'time',editor:true
		},{
			text:'运行说明',dataIndex:'ratecont',editor:true
		},{
			text:'状态',dataIndex:'status',editor:true,type:'checkbox',editor:true,sortable:true
		},{
			text:'排序号',dataIndex:'sort',editor:true,sortable:true
		},{
			text:'最后运行',dataIndex:'lastdt',sortable:true,renderer:function(v){
				return v.replace(' ','<br>');
			}
		},{
			text:'最后状态',dataIndex:'state',renderer:function(v){
				var s='<font color=#888888>待运行</font>';
				if(v==1)s='<font color=green>成功</font>';
				if(v==2)s='<font color=red>失败</font>';
				return s;
			}
		},{
			text:'最后内容',dataIndex:'lastcont'
		},{
			text:'说明',dataIndex:'explain',type:'textarea',editor:true,align:'left'
		},{
			text:'提醒给',dataIndex:'todoname'	
		},{
			text:'ID',dataIndex:'id'	
		}],
		itemclick:function(){
			btn(false);
		}
	});
	
	var c = {
		del:function(){
			a.del({check:function(lx){if(lx=='yes')btn(true)}});
		},
		clickwin:function(o1,lx){
			var h = $.bootsform({
				title:'计划任务',height:400,width:500,
				tablename:'task',isedit:lx,
				params:{int_filestype:'sort,status'},
				submitfields:'fenlei,name,url,sort,status,type,time,ratecont,todoid,todoname',
				items:[{
					labelText:'分类',name:'fenlei',required:true
				},{
					labelText:'名称',name:'name',required:true
后面还有 124 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。