Files
EasySoft-ZenTaoPMS/module/report/view/productinfo.html.php
2012-08-24 07:54:02 +00:00

69 lines
3.4 KiB
PHP

<?php include '../../common/view/header.html.php';?>
<style>
.rowcolor{background:#F9F9F9;}
</style>
<table class="cont-lt1">
<tr valign='top'>
<td class='side'>
<?php include 'blockreportlist.html.php';?>
<div class='proversion'><?php echo $lang->report->proVersion;?></div>
</td>
<td class='divider'></td>
<td>
<table class='table-1 fixed colored tablesorter datatable border-sep' id='product'>
<thead>
<tr class='colhead'>
<th width='200'><?php echo $lang->product->name;?></th>
<th width='120'><?php echo $lang->product->PO;?></th>
<th><?php echo $lang->productplan->common;?></th>
<th width="150"><?php echo $lang->productplan->begin;?></th>
<th width="150"><?php echo $lang->productplan->end;?></th>
<th class="w-50px"><?php echo $lang->story->statusList['draft'];?></th>
<th class="w-50px"><?php echo $lang->story->statusList['active'];?></th>
<th class="w-50px"><?php echo $lang->story->statusList['changed'];?></th>
<th class="w-50px"><?php echo $lang->story->statusList['closed'];?></th>
</tr>
</thead>
<tbody>
<?php $color = false;?>
<?php foreach($products as $product):?>
<tr class="a-center">
<?php $count = isset($product->plans) ? count($product->plans) : 1;?>
<td align='left' rowspan="<?php echo $count;?>"><?php echo '<p>' . $product->name . "</p>";?></td>
<td align='left' rowspan="<?php echo $count;?>" class="a-center"><?php echo "<p>" . $users[$product->PO] . '</p>';?></td>
<?php if(isset($product->plans)):?>
<?php $id = 1;?>
<?php foreach($product->plans as $plan):?>
<?php $class = $color ? 'rowcolor' : '';?>
<?php if($id != 1) echo "<tr class='a-center'>"?>
<td align='left' class="<?php echo $class;?>"><?php echo $plan->title;?></td>
<td class="<?php echo $class;?>"><?php echo $plan->begin;?></td>
<td class="<?php echo $class;?>"><?php echo $plan->end;?></td>
<td class="<?php echo $class;?>"><?php echo (isset($plan->status['draft']) ? $plan->status['draft'] : 0);?></td>
<td class="<?php echo $class;?>"><?php echo (isset($plan->status['active']) ? $plan->status['active'] : 0);?></td>
<td class="<?php echo $class;?>"><?php echo (isset($plan->status['changed']) ? $plan->status['changed'] : 0);?></td>
<td class="<?php echo $class;?>"><?php echo (isset($plan->status['closed']) ? $plan->status['closed'] : 0);?></td>
<?php if($id != 1) echo "</tr>"?>
<?php $id ++;?>
<?php $color = !$color;?>
<?php endforeach;?>
<?php else:?>
<?php $class = $color ? 'rowcolor' : '';?>
<td class="<?php echo $class;?>"></td>
<td class="<?php echo $class;?>"></td>
<td class="<?php echo $class;?>"></td>
<td class="<?php echo $class;?>"></td>
<td class="<?php echo $class;?>"></td>
<td class="<?php echo $class;?>"></td>
<td class="<?php echo $class;?>"></td>
<?php $color = !$color;?>
<?php endif;?>
</tr>
<?php endforeach;?>
</tbody>
</table>
</td>
</tr>
</table>
<?php include '../../common/view/footer.html.php';?>