From 2ccb64fd25ade9c0db9f3643c101fdc057a5d7c1 Mon Sep 17 00:00:00 2001 From: "chencongzhi520@gmail.com" Date: Fri, 3 May 2013 08:30:02 +0000 Subject: [PATCH] * adjust the code style. --- module/common/control.php | 4 ++-- module/my/control.php | 3 ++- module/my/view/todo.html.php | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/module/common/control.php b/module/common/control.php index 6405b3a690..ad11c16b3c 100644 --- a/module/common/control.php +++ b/module/common/control.php @@ -158,8 +158,8 @@ class common extends control public static function printOrderLink($fieldName, $orderBy, $vars, $label, $module = '', $method = '') { global $lang, $app; - if(empty($module)) $module= $app->getModuleName(); - if(empty($method)) $method= $app->getMethodName(); + if(empty($module)) $module = $app->getModuleName(); + if(empty($method)) $method = $app->getMethodName(); $className = 'header'; if(strpos($orderBy, $fieldName) !== false) diff --git a/module/my/control.php b/module/my/control.php index 60ec7aeb50..8c5be75990 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -69,7 +69,7 @@ class my extends control * @access public * @return void */ - public function todo($type = 'today', $account = '', $status = 'all', $orderBy="date,status,begin", $recTotal = 0, $recPerPage = 20, $pageID = 1) + public function todo($type = 'today', $account = '', $status = 'all', $orderBy = "date,status,begin", $recTotal = 0, $recPerPage = 20, $pageID = 1) { /* Save session. */ $uri = $this->app->getURI(true); @@ -94,6 +94,7 @@ class my extends control $this->view->pageID = $pageID; $this->view->status = $status; $this->view->account = $this->app->user->account; + echo $orderBy; $this->view->orderBy = $orderBy; $this->view->pager = $pager; $this->view->importFuture = ($type != 'today'); diff --git a/module/my/view/todo.html.php b/module/my/view/todo.html.php index 4c4562a180..f2b47bfc8b 100644 --- a/module/my/view/todo.html.php +++ b/module/my/view/todo.html.php @@ -78,7 +78,7 @@ begin;?> end;?> todo->statusList[$todo->status];?> - + id", $todo, 'list', '', 'hiddenwin'); common::printIcon('todo', 'edit', "id=$todo->id", '', 'list');