* rewrite the ui code.
This commit is contained in:
@@ -12,39 +12,35 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/tablesorter.html.php';?>
|
||||
<div class='yui-d0'>
|
||||
<div id='feature-bar'>
|
||||
</div>
|
||||
<table align='center' class='table-6 tablesorter'>
|
||||
<caption class='caption-tl'>
|
||||
<div class='f-left'><?php echo $lang->release->browse;?></div>
|
||||
<div class='f-right'><?php common::printLink('release', 'create', "product=$product->id", $lang->release->create);?></div>
|
||||
</caption>
|
||||
<thead>
|
||||
<tr class='colhead'>
|
||||
<th class='w-id'><?php echo $lang->release->id;?></th>
|
||||
<th><?php echo $lang->release->name;?></th>
|
||||
<th><?php echo $lang->release->build;?></th>
|
||||
<th class='w-100px'><?php echo $lang->release->date;?></th>
|
||||
<th class='w-80px'><?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($releases as $release):?>
|
||||
<tr>
|
||||
<td class='a-center'><?php echo $release->id;?></td>
|
||||
<td><?php echo html::a(inlink('view', "release=$release->id"), $release->name);?></td>
|
||||
<td><?php echo $release->buildName;?></td>
|
||||
<td class='a-center'><?php echo $release->date;?></td>
|
||||
<td class='a-center'>
|
||||
<?php
|
||||
common::printLink('release', 'edit', "release=$release->id", $lang->edit);
|
||||
common::printLink('release', 'delete', "release=$release->id", $lang->delete, 'hiddenwin');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<table align='center' class='table-6 tablesorter'>
|
||||
<caption class='caption-tl'>
|
||||
<div class='f-left'><?php echo $lang->release->browse;?></div>
|
||||
<div class='f-right'><?php common::printLink('release', 'create', "product=$product->id", $lang->release->create);?></div>
|
||||
</caption>
|
||||
<thead>
|
||||
<tr class='colhead'>
|
||||
<th class='w-id'><?php echo $lang->release->id;?></th>
|
||||
<th><?php echo $lang->release->name;?></th>
|
||||
<th><?php echo $lang->release->build;?></th>
|
||||
<th class='w-100px'><?php echo $lang->release->date;?></th>
|
||||
<th class='w-80px'><?php echo $lang->actions;?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($releases as $release):?>
|
||||
<tr>
|
||||
<td class='a-center'><?php echo $release->id;?></td>
|
||||
<td><?php echo html::a(inlink('view', "release=$release->id"), $release->name);?></td>
|
||||
<td><?php echo $release->buildName;?></td>
|
||||
<td class='a-center'><?php echo $release->date;?></td>
|
||||
<td class='a-center'>
|
||||
<?php
|
||||
common::printLink('release', 'edit', "release=$release->id", $lang->edit);
|
||||
common::printLink('release', 'delete', "release=$release->id", $lang->delete, 'hiddenwin');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -13,29 +13,27 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<div class='yui-d0'>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $lang->release->create;?></caption>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->name;?></th>
|
||||
<td><?php echo html::input('name', '', "class='text-3'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->build;?></th>
|
||||
<td><?php echo html::select('build', $builds, '', 'class="select-3"');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->date;?></th>
|
||||
<td><?php echo html::input('date', helper::today(), "class='text-3 date'");?></td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->desc;?></th>
|
||||
<td><?php echo html::textarea('desc', '', "rows='20' class='area-1'");?></td>
|
||||
</tr>
|
||||
<tr><td colspan='2' class='a-center'><?php echo html::submitButton() . html::resetButton();?></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $lang->release->create;?></caption>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->name;?></th>
|
||||
<td><?php echo html::input('name', '', "class='text-3'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->build;?></th>
|
||||
<td><?php echo html::select('build', $builds, '', 'class="select-3"');?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->date;?></th>
|
||||
<td><?php echo html::input('date', helper::today(), "class='text-3 date'");?></td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->desc;?></th>
|
||||
<td><?php echo html::textarea('desc', '', "rows='20' class='area-1'");?></td>
|
||||
</tr>
|
||||
<tr><td colspan='2' class='a-center'><?php echo html::submitButton() . html::resetButton();?></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -13,30 +13,28 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<div class='yui-d0'>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $lang->release->edit;?></caption>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->name;?></th>
|
||||
<td><?php echo html::input('name', $release->name, "class='text-3'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->build;?></th>
|
||||
<td><?php echo html::select('build', $builds, $release->build, 'class="select-3"'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->date;?></th>
|
||||
<td><?php echo html::input('date', $release->date, "class='text-3 date'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->desc;?></th>
|
||||
<td><?php echo html::textarea('desc', htmlspecialchars($release->desc), "rows='20' class='area-1'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='a-center'><?php echo html::submitButton() . html::resetButton() . html::hidden('product', $release->product);?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $lang->release->edit;?></caption>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->name;?></th>
|
||||
<td><?php echo html::input('name', $release->name, "class='text-3'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->build;?></th>
|
||||
<td><?php echo html::select('build', $builds, $release->build, 'class="select-3"'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->date;?></th>
|
||||
<td><?php echo html::input('date', $release->date, "class='text-3 date'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->desc;?></th>
|
||||
<td><?php echo html::textarea('desc', htmlspecialchars($release->desc), "rows='20' class='area-1'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' class='a-center'><?php echo html::submitButton() . html::resetButton() . html::hidden('product', $release->product);?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -11,41 +11,39 @@
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<div class='yui-d0'>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $lang->release->view;?></caption>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->product;?></th>
|
||||
<td><?php echo $release->productName;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->name;?></th>
|
||||
<td class='<?php if($release->deleted) echo 'deleted';?>'><?php echo $release->name;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->build;?></th>
|
||||
<td><?php echo $release->buildName;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->date;?></th>
|
||||
<td><?php echo $release->date;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->desc;?></th>
|
||||
<td class='content'><?php echo $release->desc;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class='a-center f-16px strong'>
|
||||
<?php
|
||||
$browseLink = $this->session->releaseList ? $this->session->releaseList : inlink('browse', "productID=$release->product");
|
||||
if(!$release->deleted)
|
||||
{
|
||||
common::printLink('release', 'edit', "releaseID=$release->id", $lang->edit);
|
||||
common::printLink('release', 'delete', "releaseID=$release->id", $lang->delete, 'hiddenwin');
|
||||
}
|
||||
echo html::a($browseLink, $lang->goback);
|
||||
?>
|
||||
</div>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
</div>
|
||||
<table class='table-1'>
|
||||
<caption><?php echo $lang->release->view;?></caption>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->product;?></th>
|
||||
<td><?php echo $release->productName;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->name;?></th>
|
||||
<td class='<?php if($release->deleted) echo 'deleted';?>'><?php echo $release->name;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->build;?></th>
|
||||
<td><?php echo $release->buildName;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->date;?></th>
|
||||
<td><?php echo $release->date;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->release->desc;?></th>
|
||||
<td class='content'><?php echo $release->desc;?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class='a-center f-16px strong'>
|
||||
<?php
|
||||
$browseLink = $this->session->releaseList ? $this->session->releaseList : inlink('browse', "productID=$release->product");
|
||||
if(!$release->deleted)
|
||||
{
|
||||
common::printLink('release', 'edit', "releaseID=$release->id", $lang->edit);
|
||||
common::printLink('release', 'delete', "releaseID=$release->id", $lang->delete, 'hiddenwin');
|
||||
}
|
||||
echo html::a($browseLink, $lang->goback);
|
||||
?>
|
||||
</div>
|
||||
<?php include '../../common/view/action.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user