* adjust the UI of my/todo.

This commit is contained in:
wangchunsheng
2010-04-13 02:30:40 +00:00
parent 68ffdf1a6b
commit 41b8801ac2
3 changed files with 25 additions and 19 deletions
+14 -16
View File
@@ -36,31 +36,29 @@ function changeDate(date)
<div id='featurebar'>
<div class='f-left'>
<?php
echo '<span id="today">' . html::a($this->createLink('my', 'todo', "date=today"), $lang->todo->todayTodos) . '</span>';
echo '<span id="thisweek">' . html::a($this->createLink('my', 'todo', "date=thisweek"), $lang->todo->thisWeekTodos) . '</span>';
echo '<span id="lastweek">' . html::a($this->createLink('my', 'todo', "date=lastweek"), $lang->todo->lastWeekTodos) . '</span>';
echo '<span id="all">' . html::a($this->createLink('my', 'todo', "date=all"), $lang->todo->allDaysTodos) . '</span>';
echo '<span id="before">' . html::a($this->createLink('my', 'todo', "date=before&account={$app->user->account}&status=undone"), $lang->todo->allUndone) . '</span>';
echo '<span id="today">' . html::a(inlink('todo', "date=today"), $lang->todo->todayTodos) . '</span>';
echo '<span id="thisweek">' . html::a(inlink('todo', "date=thisweek"), $lang->todo->thisWeekTodos) . '</span>';
echo '<span id="lastweek">' . html::a(inlink('todo', "date=lastweek"), $lang->todo->lastWeekTodos) . '</span>';
echo '<span id="all">' . html::a(inlink('todo', "date=all"), $lang->todo->allDaysTodos) . '</span>';
echo '<span id="before">' . html::a(inlink('todo', "date=before&account={$app->user->account}&status=undone"), $lang->todo->allUndone) . '</span>';
echo "<span id='$date'>" . html::select('date', $dates, $date, 'onchange=changeDate(this.value)') . '</span>';
?>
<script>$('#<?php echo $type;?>').addClass('active')</script>
</div>
<div class='f-right'>
<?php echo html::a($this->createLink('todo', 'create', "date=$date"), $lang->todo->create);?>
</div>
<div class='f-right'><?php echo html::a($this->createLink('todo', 'create', "date=$date"), $lang->todo->create);?></div>
</div>
<table class='table-1 tablesorter'>
<thead>
<tr class='colhead'>
<th><?php echo $lang->todo->id;?></th>
<th><?php echo $lang->todo->date;?></th>
<th><?php echo $lang->todo->type;?></th>
<th><?php echo $lang->todo->pri;?></th>
<th class='w-id'><?php echo $lang->idAB;?></th>
<th class='w-date'><?php echo $lang->todo->date;?></th>
<th class='w-type'><?php echo $lang->todo->type;?></th>
<th class='w-pri'><?php echo $lang->priAB;?></th>
<th><?php echo $lang->todo->name;?></th>
<th><?php echo $lang->todo->begin;?></th>
<th><?php echo $lang->todo->end;?></th>
<th><?php echo $lang->todo->status;?></th>
<th><?php echo $lang->actions;?></th>
<th><?php echo $lang->todo->beginAB;?></th>
<th><?php echo $lang->todo->endAB;?></th>
<th class='w-status'><?php echo $lang->todo->status;?></th>
<th class='w-130px'><?php echo $lang->actions;?></th>
</tr>
</thead>
+2
View File
@@ -39,7 +39,9 @@ $lang->todo->changeStatus = "更改";
$lang->todo->id = '编号';
$lang->todo->date = '日期';
$lang->todo->begin = '开始时间';
$lang->todo->beginAB = '开始';
$lang->todo->end = '结束时间';
$lang->todo->endAB = '结束';
$lang->todo->beginAndEnd = '起止时间';
$lang->todo->type = '类型';
$lang->todo->pri = '优先级';
+9 -3
View File
@@ -134,12 +134,18 @@ table.tablesorter thead tr .headerSortDown {background-image: url(./images/table
.w-80px {width:80px}
.w-100px {width:100px}
.w-120px {width:120px}
.w-130px {width:130px}
.w-140px {width:140px}
.w-150px {width:150px}
.w-200px {width:200px}
.w-id {width:45px;}
.w-pri{width:30px;}
.w-hour{width:40px;}
.w-id {width:45px;}
.w-pri {width:30px;}
.w-hour {width:40px;}
.w-date {width:80px;}
.w-user {width:100px;}
.w-status{width:50px}
.w-type {width:60px}
.margin-10px {margin: 10px}
.margin-15px {margin: 15px}