diff --git a/module/action/model.php b/module/action/model.php index 989444f930..ff3351c766 100644 --- a/module/action/model.php +++ b/module/action/model.php @@ -308,6 +308,8 @@ class actionModel extends model $desc = $action->extra ? $this->lang->action->desc->extra : $this->lang->action->desc->common; } + if($this->app->getViewType() == 'mhtml') $action->date = date('y-m-d H:i', strtotime($action->date)); + /* Cycle actions, replace vars. */ foreach($action as $key => $value) { diff --git a/module/common/model.php b/module/common/model.php index 79676450a9..928c6655b4 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -269,6 +269,7 @@ class commonModel extends model } unset($this->lang->menuOrder); + unset($this->lang->menugroup); $this->lang->menu = new stdclass(); $this->lang->menu = $menu; } @@ -288,8 +289,9 @@ class commonModel extends model /* Set the main main menu. */ $mainMenu = $moduleName; - if($moduleName == 'my') $mainMenu = $methodName; + if($moduleName == 'my' and $app->getViewType()) $mainMenu = $methodName; if(isset($lang->menugroup->$moduleName)) $mainMenu = $lang->menugroup->$moduleName; + if($moduleName == 'todo' and $app->getViewType()) $mainMenu = $moduleName; /* Sort menu according to menuOrder. */ if(isset($lang->menuOrder)) diff --git a/module/common/view/m.action.html.php b/module/common/view/m.action.html.php new file mode 100644 index 0000000000..330bf3d46e --- /dev/null +++ b/module/common/view/m.action.html.php @@ -0,0 +1,123 @@ + +getExtViewFile(__FILE__)){include $extView; return helper::cd();}?> + + +
show('right', 'short')?>
diff --git a/module/todo/view/m.batchcreate.html.php b/module/todo/view/m.batchcreate.html.php index 418b644ea1..a36da19cfd 100755 --- a/module/todo/view/m.batchcreate.html.php +++ b/module/todo/view/m.batchcreate.html.php @@ -23,6 +23,6 @@ echo html::hidden("begins[$i]", '2400'); echo html::hidden("ends[$i]", '2400'); ?> - + diff --git a/module/todo/view/m.view.html.php b/module/todo/view/m.view.html.php new file mode 100755 index 0000000000..34d05da41a --- /dev/null +++ b/module/todo/view/m.view.html.php @@ -0,0 +1,44 @@ + + * @package todo + * @version $Id: view.html.php 4642 2013-04-11 05:38:37Z chencongzhi520@gmail.com $ + * @link http://www.zentao.net + */ +?> + + +private or ($todo->private and $todo->account == $app->user->account)):?> +