* adjust the code style.

This commit is contained in:
chencongzhi520@gmail.com
2013-05-03 08:30:02 +00:00
parent 536bc788aa
commit 2ccb64fd25
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -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)
+2 -1
View File
@@ -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');
+1 -1
View File
@@ -78,7 +78,7 @@
<td><?php echo $todo->begin;?></td>
<td><?php echo $todo->end;?></td>
<td class='<?php echo $todo->status;?>'><?php echo $lang->todo->statusList[$todo->status];?></td>
<td class='a-right'>
<td class='a-center'>
<?php
common::printIcon('todo', 'finish', "id=$todo->id", $todo, 'list', '', 'hiddenwin');
common::printIcon('todo', 'edit', "id=$todo->id", '', 'list');