- remove the id of productplan and release.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/* 创建。*/
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user