* finish task#791.

This commit is contained in:
chencongzhi520@gmail.com
2012-05-14 01:21:08 +00:00
parent 69a799f8a9
commit 64d1969639
4 changed files with 8 additions and 5 deletions
+1 -2
View File
@@ -67,7 +67,6 @@ class todo extends control
public function batchCreate($date = 'today', $account = '')
{
if($date == 'today') $this->view->date = helper::today();
$todoLink = $this->createLink('my', 'todo', "date=today");
if(!empty($_POST))
{
@@ -75,7 +74,7 @@ class todo extends control
if(dao::isError()) die(js::error(dao::getError()));
/* Locate the browser. */
die(js::locate($todoLink, 'parent'));
die(js::locate($this->createLink('my', 'todo', "date={$this->post->date}"), 'parent'));
}
$header['title'] = $this->lang->my->common . $this->lang->colon . $this->lang->todo->create;
+1 -1
View File
@@ -1,3 +1,3 @@
.half-left{text-align:right}
.half-right{text-align:left}
.f-left {margin-left:20px}
.nameBox .f-left {margin-left:20px}
+1 -1
View File
@@ -63,7 +63,7 @@ class todoModel extends model
if((isset($todos->names[$i]) && $todos->names[$i] != '') || (!isset($todos->names[$i]) && (isset($todos->bugs[$i+1]) || isset($todos->tasks[$i+1]))))
{
$data->account = $this->app->user->account;
$data->date = helper::today();
$data->date = $this->post->date;
$data->type = $todos->types[$i];
$data->pri = $todos->pris[$i];
$data->name = isset($todos->names[$i]) ? $todos->names[$i] : '';
+5 -1
View File
@@ -11,9 +11,13 @@
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/datepicker.html.php';?>
<form method='post'>
<table class='table-1 fixed'>
<caption><?php echo $lang->todo->batchCreate . $lang->colon . $date;?></caption>
<caption>
<div class='f-left'><?php echo $lang->todo->batchCreate . $lang->colon;?></div>
<?php echo html::input('date', $date, "class='select-2 date'");?>
</caption>
<tr>
<th class='w-20px'><?php echo $lang->idAB;?></th>
<th class='w-100px'><?php echo $lang->todo->type;?></th>