* adjust the code style.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user