- remove the id of productplan and release.

This commit is contained in:
wangchunsheng
2010-03-16 08:20:02 +00:00
parent ada3461f46
commit a176b64860
3 changed files with 6 additions and 8 deletions
+2 -2
View File
@@ -34,13 +34,13 @@ class productplanModel extends model
/* 获取列表。*/
public function getList($product = 0)
{
return $this->dao->select('*')->from(TABLE_PRODUCTPLAN)->where('product')->eq($product)->fetchAll();
return $this->dao->select('*')->from(TABLE_PRODUCTPLAN)->where('product')->eq($product)->orderBy('begin')->fetchAll();
}
/* 获取name=>value的键值对。*/
public function getPairs($product = 0)
{
return array('' => '') + $this->dao->select('id,title')->from(TABLE_PRODUCTPLAN)->where('product')->eq((int)$product)->fetchPairs();
return array('' => '') + $this->dao->select('id,title')->from(TABLE_PRODUCTPLAN)->where('product')->eq((int)$product)->orderBy('begin')->fetchPairs();
}
/* 创建。*/
+3 -3
View File
@@ -32,20 +32,20 @@
</caption>
<thead>
<tr>
<th><?php echo $lang->productplan->id;?></th>
<th class='w-p20'><?php echo $lang->productplan->title;?></th>
<th><?php echo $lang->productplan->begin;?></th>
<th><?php echo $lang->productplan->end;?></th>
<th><?php echo $lang->productplan->desc;?></th>
<th class='w-p20'><?php echo $lang->actions;?></th>
</tr>
</thead>
<tbody>
<?php foreach($plans as $plan):?>
<tr class='a-center'>
<td><?php echo html::a(inlink('view', "id=$plan->id"), sprintf('%03d', $plan->id));?></td>
<td class='a-left'><?php echo $plan->title;?></td>
<td><?php echo html::a(inlink('view', "id=$plan->id"), $plan->title);?></td>
<td><?php echo $plan->begin;?></td>
<td><?php echo $plan->end;?></td>
<td class='a-left'><?php echo nl2br($plan->desc);?></td>
<td class='nobr'>
<?php
common::printLink('productplan', 'edit', "planID=$plan->id", $lang->productplan->edit);
+1 -3
View File
@@ -34,7 +34,6 @@
</caption>
<thead>
<tr>
<th><?php echo $lang->release->id;?></th>
<th><?php echo $lang->release->name;?></th>
<th><?php echo $lang->release->build;?></th>
<th><?php echo $lang->release->date;?></th>
@@ -44,8 +43,7 @@
<tbody>
<?php foreach($releases as $release):?>
<tr class='a-center'>
<td><?php echo html::a(inlink('view', "release=$release->id"), sprintf('%03d', $release->id));?></td>
<td class='a-left'><?php echo $release->name;?></td>
<td><?php echo html::a(inlink('view', "release=$release->id"), $release->name);?></td>
<td><?php echo $release->buildName;?></td>
<td><?php echo $release->date;?></td>
<td>