Files
EasySoft-ZenTaoPMS/trunk/module/productplan/view/browse.html.php
wangchunsheng b0a912ebd6 + add delete feature to productplan.
+ log actions of productplan.
* adjust the UI.
2010-04-11 08:33:38 +00:00

62 lines
2.4 KiB
PHP

<?php
/**
* The browse view file of plan module of ZenTaoMS.
*
* ZenTaoMS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ZenTaoMS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with ZenTaoMS. If not, see <http://www.gnu.org/licenses/>.
*
* @copyright Copyright 2009-2010 Chunsheng Wang
* @author Chunsheng Wang <wwccss@263.net>
* @package plan
* @version $Id$
* @link http://www.zentao.cn
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/tablesorter.html.php';?>
<div class='yui-d0'>
<table class='table-1 tablesorter'>
<caption>
<div class='f-left'><?php echo $lang->productplan->browse;?></div>
<div class='f-right'><?php common::printLink('productplan', 'create', "productID=$product->id", $lang->productplan->create);?></div>
</caption>
<thead>
<tr>
<th><?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="{sorter: false}"><?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"), $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->edit);
common::printLink('productplan', 'linkstory', "planID=$plan->id", $lang->productplan->linkStory);
common::printLink('productplan', 'delete', "planID=$plan->id", $lang->delete, 'hiddenwin');
?>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</div>
<?php include '../../common/view/footer.html.php';?>