From ae5f1b3a99a355017e372938bd09626a393e68dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A1=E6=A0=8B?= Date: Thu, 13 Jan 2022 14:22:18 +0800 Subject: [PATCH] * code for task #47141. --- .../lite/todo/ext/view/calendar.html.php | 461 ++++++++++++++++++ 1 file changed, 461 insertions(+) create mode 100644 extension/lite/todo/ext/view/calendar.html.php diff --git a/extension/lite/todo/ext/view/calendar.html.php b/extension/lite/todo/ext/view/calendar.html.php new file mode 100644 index 0000000000..381f8a0b18 --- /dev/null +++ b/extension/lite/todo/ext/view/calendar.html.php @@ -0,0 +1,461 @@ + + * @package calendar + * @version $Id$ + * @link http://www.zentao.net + */ +?> +getModuleRoot() . 'common/view/header.html.php';?> +getBasePath() . 'extension/biz/common/ext/view/calendar.html.php';?> + +lang->side->more);?> +todo->moduleList);?> + +
+
+
+
+
+
+ + + + +
+
+ +
+
+
+
+
+
+
+ dao->select('id,account,date,name,status,assignedTo')->from(TABLE_TODO) + ->where('status')->in('wait,doing') + ->andWhere('type')->ne('cycle') + ->andWhere('date')->ne(date('Y-m-d')) + ->andWhere("assignedTo")->eq($this->app->user->account) + ->fetchAll(); + $undoneTodos = array(); + $futureTodos = array(); + foreach($todos as $todo) + { + if($todo->date == '2030-01-01') + { + $futureTodos[$todo->id] = $todo->name; + } + else + { + $undoneTodos[$todo->id] = $todo->name; + } + } + ?> +
+ +
+
+ +
    + + $todo):?> +
  • + createLink('todo', 'view', "id=$id", 'html', true), $todo, '', "class='iframe todo-item' data-id='{$id}' data-type='todo' data-title='{$todo}' title='{$todo}' data-width='70%'");?> +
  • + +
+ +
+
+ +
    + + $todo):?> +
  • + createLink('todo', 'view', "id=$id", 'html', true), $todo, '', "class='iframe todo-item' data-id='{$id}' data-type='todo' data-title='{$todo}' title='{$todo}' data-width='70%'");?> +
  • + +
+ +
+
+ +
    + + $todo):?> + +
  • + + createLink('task', 'view', "id=$id", 'html', true), $todo, '', "class='iframe $class' data-id='{$id}' data-type='{$type}' data-title='{$todo}' title='{$todo}' data-width='70%'");?> +
  • + +
+ +
+
+
+
+
+ + +getModuleRoot() . 'common/view/footer.html.php';?>