todo add new func proto
This commit is contained in:
parent
e64d2f1278
commit
2bc0177819
@ -6,8 +6,25 @@ function init__SYSTEM_SAI_saimod_sys_todo() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
load_todo_tab('todolist');
|
load_todo_tab('todolist');
|
||||||
|
register_new();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function register_new(){
|
||||||
|
$('#btn_new').click(function(){
|
||||||
|
$('#img_loader').show();
|
||||||
|
$('#tab_todo').load(SAI_ENDPOINT+'sai_mod=.SYSTEM.SAI.saimod_sys_todo&action=new', function(){
|
||||||
|
register_newform();
|
||||||
|
$('#btn_back').click(function(){
|
||||||
|
load_todo_tab('todolist');});
|
||||||
|
$('#img_loader').hide();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function register_newform(){
|
||||||
|
//TODO
|
||||||
|
}
|
||||||
|
|
||||||
function load_todo_tab(action){
|
function load_todo_tab(action){
|
||||||
$('#img_loader').show();
|
$('#img_loader').show();
|
||||||
switch(action){
|
switch(action){
|
||||||
|
|||||||
@ -16,6 +16,11 @@ class saimod_sys_todo extends \SYSTEM\SAI\SaiModule {
|
|||||||
return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_todo/tpl/saimod_sys_todo.tpl'), $vars);
|
return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_todo/tpl/saimod_sys_todo.tpl'), $vars);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function sai_mod__SYSTEM_SAI_saimod_sys_todo_action_new(){
|
||||||
|
$vars = array();
|
||||||
|
return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'modules/saimod_sys_todo/tpl/saimod_sys_todo_new.tpl'), $vars);
|
||||||
|
}
|
||||||
|
|
||||||
public static function sai_mod__SYSTEM_SAI_saimod_sys_todo_action_todolist(){
|
public static function sai_mod__SYSTEM_SAI_saimod_sys_todo_action_todolist(){
|
||||||
$result = '';
|
$result = '';
|
||||||
$res = \SYSTEM\DBD\SYS_SAIMOD_TODO_TODO_LIST::QQ();
|
$res = \SYSTEM\DBD\SYS_SAIMOD_TODO_TODO_LIST::QQ();
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<li><a href="#tab_todo" action="stats">Statistics</a></li>
|
<li><a href="#tab_todo" action="stats">Statistics</a></li>
|
||||||
<img id="img_loader" src="${PICPATH}ajax-loader.gif" style="margin-left: 10px; margin-top: 10px; display: none; float: left"/>
|
<img id="img_loader" src="${PICPATH}ajax-loader.gif" style="margin-left: 10px; margin-top: 10px; display: none; float: left"/>
|
||||||
<button id="btn_refresh" class="btn-primary" style="margin-right: 15px; height: 32px; font-size: 13px; float: right;">Refresh</button>
|
<button id="btn_refresh" class="btn-primary" style="margin-right: 15px; height: 32px; font-size: 13px; float: right;">Refresh</button>
|
||||||
<button id="btn_add" class="btn-success" style="margin-right: 15px; height: 32px; font-size: 13px; float: right;">Add</button>
|
<button id="btn_new" class="btn-success" style="margin-right: 15px; height: 32px; font-size: 13px; float: right;">Add</button>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="tab_todo"></div>
|
<div class="tab-pane active" id="tab_todo"></div>
|
||||||
|
|||||||
25
sai/modules/saimod_sys_todo/tpl/saimod_sys_todo_new.tpl
Normal file
25
sai/modules/saimod_sys_todo/tpl/saimod_sys_todo_new.tpl
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<h3>New ToDo</h3>
|
||||||
|
<table class="table table-hover table-condensed">
|
||||||
|
<tr><th>Property</th><th>Value</th></tr>
|
||||||
|
<tr><td>ID</td><td>${ID}</td></tr>
|
||||||
|
<tr><td>class</td><td>${class}</td></tr>
|
||||||
|
<tr><td>code</td><td>${code}</td></tr>
|
||||||
|
<tr><td>file</td><td>${file}</td></tr>
|
||||||
|
<tr><td>line</td><td>${line}</td></tr>
|
||||||
|
<tr><td>trace</td><td>${trace}</td></tr>
|
||||||
|
<tr><td>ip</td><td>${ip}</td></tr>
|
||||||
|
<tr><td>querytime</td><td>${querytime}</td></tr>
|
||||||
|
<tr><td>time</td><td>${time}</td></tr>
|
||||||
|
<tr><td>server_name</td><td>${server_name}</td></tr>
|
||||||
|
<tr><td>server_port</td><td>${server_port}</td></tr>
|
||||||
|
<tr><td>request_uri</td><td>${request_uri}</td></tr>
|
||||||
|
<tr><td>url</td><td><a href="${server_name}:${server_port}${request_uri}">${server_name}:${server_port}${request_uri}</a></td></tr>
|
||||||
|
<tr><td>post</td><td>${post}</td></tr>
|
||||||
|
<tr><td>http_referer</td><td>${http_referer}</td></tr>
|
||||||
|
<tr><td>http_user_agent</td><td>${http_user_agent}</td></tr>
|
||||||
|
<tr><td>user</td><td>${username}</td></tr>
|
||||||
|
<tr><td>thrown</td><td>${thrown}</td></tr>
|
||||||
|
<tr><td>message</td><td>${message}</td></tr>
|
||||||
|
</table>
|
||||||
|
<button id="btn_add" class="btn-danger" style="display: none; margin-right: 15px; height: 32px; font-size: 13px; float: right;">Add</button>
|
||||||
|
<button id="btn_back" class="btn-success" style="margin-right: 15px; height: 32px; font-size: 13px; float: right;">Back</button>
|
||||||
Loading…
x
Reference in New Issue
Block a user