diff --git a/sai/modules/saimod_sys_todo/saimod_sys_todo.js b/sai/modules/saimod_sys_todo/saimod_sys_todo.js index 10d6ecd..b1b5ba8 100644 --- a/sai/modules/saimod_sys_todo/saimod_sys_todo.js +++ b/sai/modules/saimod_sys_todo/saimod_sys_todo.js @@ -6,8 +6,25 @@ function init__SYSTEM_SAI_saimod_sys_todo() { }); 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){ $('#img_loader').show(); switch(action){ diff --git a/sai/modules/saimod_sys_todo/saimod_sys_todo.php b/sai/modules/saimod_sys_todo/saimod_sys_todo.php index 557206a..1e5d1b2 100644 --- a/sai/modules/saimod_sys_todo/saimod_sys_todo.php +++ b/sai/modules/saimod_sys_todo/saimod_sys_todo.php @@ -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); } + 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(){ $result = ''; $res = \SYSTEM\DBD\SYS_SAIMOD_TODO_TODO_LIST::QQ(); diff --git a/sai/modules/saimod_sys_todo/tpl/saimod_sys_todo.tpl b/sai/modules/saimod_sys_todo/tpl/saimod_sys_todo.tpl index 64c3c40..4c91d2a 100644 --- a/sai/modules/saimod_sys_todo/tpl/saimod_sys_todo.tpl +++ b/sai/modules/saimod_sys_todo/tpl/saimod_sys_todo.tpl @@ -7,7 +7,7 @@
  • Statistics
  • - +
    diff --git a/sai/modules/saimod_sys_todo/tpl/saimod_sys_todo_new.tpl b/sai/modules/saimod_sys_todo/tpl/saimod_sys_todo_new.tpl new file mode 100644 index 0000000..433840a --- /dev/null +++ b/sai/modules/saimod_sys_todo/tpl/saimod_sys_todo_new.tpl @@ -0,0 +1,25 @@ +

    New ToDo

    + + + + + + + + + + + + + + + + + + + + + +
    PropertyValue
    ID${ID}
    class${class}
    code${code}
    file${file}
    line${line}
    trace${trace}
    ip${ip}
    querytime${querytime}
    time${time}
    server_name${server_name}
    server_port${server_port}
    request_uri${request_uri}
    url${server_name}:${server_port}${request_uri}
    post${post}
    http_referer${http_referer}
    http_user_agent${http_user_agent}
    user${username}
    thrown${thrown}
    message${message}
    + + \ No newline at end of file