+ add type field.

This commit is contained in:
wangchunsheng
2009-12-28 06:21:41 +00:00
parent 1ea7e6f886
commit ca217be62e
2 changed files with 6 additions and 0 deletions

View File

@@ -143,3 +143,7 @@ ALTER TABLE `zt_case` CHANGE `title` `title` CHAR( 90 ) CHARACTER SET utf8 COLLA
ALTER TABLE `zt_task` ADD `statusCustom` TINYINT UNSIGNED NOT NULL AFTER `status` ,
ADD INDEX ( statusCustom );
update zt_task set statusCustom = locate(status, 'wait,doing,done,cancel')
-- 增加类型字段。--
ALTER TABLE `zt_task` ADD `type` VARCHAR( 20 ) NOT NULL AFTER `name` ,
ADD INDEX ( TYPE )

View File

@@ -43,6 +43,7 @@
<th><?php common::printOrderLink('estimate', $orderBy, $vars, $lang->task->estimate);?></th>
<th><?php common::printOrderLink('consumed', $orderBy, $vars, $lang->task->consumed);?></th>
<th><?php common::printOrderLink('`left`', $orderBy, $vars, $lang->task->left);?></th>
<th><?php common::printOrderLink('type', $orderBy, $vars, $lang->task->type);?></th>
<th><?php common::printOrderLink('status', $orderBy, $vars, $lang->task->status);?></th>
<th class='w-p30'><?php common::printOrderLink('story', $orderBy, $vars, $lang->task->story);?></th>
<th><?php echo $lang->action;?></th>
@@ -59,6 +60,7 @@
<td><?php echo $task->estimate;?></td>
<td><?php echo $task->consumed;?></td>
<td><?php echo $task->left;?></td>
<td><?php echo $lang->task->typeList[$task->type];?></td>
<td class=<?php echo $task->status;?> ><?php echo $lang->task->statusList->{$task->status};?></td>
<td class='a-left nobr'>
<?php