* ajusted views of module prodcut & doc.

This commit is contained in:
Catouse
2014-03-21 15:04:23 +08:00
parent b08e0446bf
commit 1e4d342017
9 changed files with 264 additions and 219 deletions
+8 -4
View File
@@ -201,23 +201,27 @@ class html
* @param array $options the array to create radio tag from.
* @param string $checked the value to checked by default.
* @param string $attrib other attribs.
* @param string $type inline or block
* @return string
*/
static public function radio($name = '', $options = array(), $checked = '', $attrib = '')
static public function radio($name = '', $options = array(), $checked = '', $attrib = '', $type = 'inline')
{
$options = (array)($options);
if(!is_array($options) or empty($options)) return false;
$isBlock = $type == 'block';
$string = '';
foreach($options as $key => $value)
{
$string .= "<label class='radio-inline'>\n";
if($isBlock) $string .= "<div class='radio'><label>";
else $string .= "<label class='radio-inline'>";
$string .= "<input type='radio' name='$name' value='$key' ";
$string .= ($key == $checked) ? " checked ='checked'" : "";
$string .= $attrib;
$string .= " id='$name$key' />\n ";
$string .= " id='$name$key' /> ";
$string .= $value;
$string .= '</label>';
if($isBlock) $string .= '</label></div>';
else $string .= '</label>';
}
return $string;
}
+63 -55
View File
@@ -13,59 +13,67 @@
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<?php js::set('holders ', $lang->doc->placeholder);?>
<form method='post' enctype='multipart/form-data' target='hiddenwin' id='dataform'>
<table class='table-1'>
<caption><?php echo $lang->doc->create;?></caption>
<?php if($libID == 'product'):?>
<tr>
<th class='rowhead'><?php echo $lang->doc->product;?></th>
<td><?php echo html::select('product', $products, $productID, "class='select-3'");?></td>
</tr>
<?php elseif($libID == 'project'):?>
<tr>
<th class='rowhead'><?php echo $lang->doc->project;?></th>
<td><?php echo html::select('project', $projects, $projectID, "class='select-3' onchange=loadProducts(this.value);");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->doc->product;?></th>
<td><span id='productBox'><?php echo html::select('product', $products, '', "class='select-3'");?></span></td>
</tr>
<?php endif;?>
<tr>
<th class='rowhead'><?php echo $lang->doc->module;?></th>
<td><?php echo html::select('module', $moduleOptionMenu, $moduleID, "class='select-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->doc->type;?></th>
<td><?php echo html::radio('type', $lang->doc->types, 'file', "onclick=setType(this.value)");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->doc->title;?></th>
<td><?php echo html::input('title', '', "class='text-1'");?></td>
</tr>
<tr id='urlBox' class='hidden'>
<th class='rowhead'><?php echo $lang->doc->url;?></th>
<td><?php echo html::input('url', '', "class='text-1'");?></td>
</tr>
<tr id='contentBox' class='hidden'>
<th class='rowhead'><?php echo $lang->doc->content;?></th>
<td><?php echo html::textarea('content', '', "class='area-1' style='width:90%; height:200px'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->doc->keywords;?></th>
<td><?php echo html::input('keywords', '', "class='text-1'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->doc->digest;?></th>
<td><?php echo html::textarea('digest', '', "class='text-1' rows=3");?></td>
</tr>
<tr id='fileBox'>
<th class='rowhead'><?php echo $lang->doc->files;?></th>
<td><?php echo $this->fetch('file', 'buildform', 'fileCount=2');?></td>
</tr>
<tr>
<td colspan='2' class='a-center'><?php echo html::submitButton() . html::backButton() . html::hidden('lib', $libID);?></td>
</tr>
</table>
</form>
<div class='container w-900px'>
<div id='titlebar'>
<div class='heading'>
<span class='prefix'><?php echo html::icon($lang->icons['doc']);?></span>
<strong><small class='text-muted'><i class='icon icon-plus'></i></small> <?php echo $lang->doc->create;?></strong>
</div>
</div>
<form class='form-condensed' method='post' enctype='multipart/form-data' target='hiddenwin' id='dataform'>
<table class='table table-form'>
<?php if($libID == 'product'):?>
<tr>
<th class='w-80px'><?php echo $lang->doc->product;?></th>
<td><?php echo html::select('product', $products, $productID, "class='form-control'");?></td>
</tr>
<?php elseif($libID == 'project'):?>
<tr>
<th><?php echo $lang->doc->project;?></th>
<td><?php echo html::select('project', $projects, $projectID, "class='form-control' onchange=loadProducts(this.value);");?></td>
</tr>
<tr>
<th><?php echo $lang->doc->product;?></th>
<td><span id='productBox'><?php echo html::select('product', $products, '', "class='form-control'");?></span></td>
</tr>
<?php endif;?>
<tr>
<th><?php echo $lang->doc->module;?></th>
<td><?php echo html::select('module', $moduleOptionMenu, $moduleID, "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->doc->type;?></th>
<td><?php echo html::radio('type', $lang->doc->types, 'file', "onclick=setType(this.value)");?></td>
</tr>
<tr>
<th><?php echo $lang->doc->title;?></th>
<td><?php echo html::input('title', '', "class='form-control'");?></td>
</tr>
<tr id='urlBox' class='hidden'>
<th><?php echo $lang->doc->url;?></th>
<td><?php echo html::input('url', '', "class='form-control'");?></td>
</tr>
<tr id='contentBox' class='hidden'>
<th><?php echo $lang->doc->content;?></th>
<td><?php echo html::textarea('content', '', "class='form-control' style='width:90%; height:200px'");?></td>
</tr>
<tr>
<th><?php echo $lang->doc->keywords;?></th>
<td><?php echo html::input('keywords', '', "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->doc->digest;?></th>
<td><?php echo html::textarea('digest', '', "class='form-control' rows=3");?></td>
</tr>
<tr id='fileBox'>
<th><?php echo $lang->doc->files;?></th>
<td><?php echo $this->fetch('file', 'buildform', 'fileCount=2');?></td>
</tr>
<tr>
<td></td>
<td><?php echo html::submitButton() . html::backButton() . html::hidden('lib', $libID);?></td>
</tr>
</table>
</form>
</div>
<?php include '../../common/view/footer.html.php';?>
+56 -46
View File
@@ -19,50 +19,60 @@ $(document).ready(function()
setType(type);
});
</script>
<form method='post' enctype='multipart/form-data' target='hiddenwin' id='dataform'>
<table class='table-1'>
<caption><?php echo $lang->doc->edit;?></caption>
<tr>
<th class='rowhead'><?php echo $lang->doc->module;?></th>
<td><?php echo html::select('module', $moduleOptionMenu, $doc->module, "class='select-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->doc->type;?></th>
<td><?php echo $lang->doc->types[$doc->type];?></td>
</tr>
<th class='rowhead'><?php echo $lang->doc->title;?></th>
<td><?php echo html::input('title', $doc->title, "class='text-1'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->doc->keywords;?></th>
<td><?php echo html::input('keywords', $doc->keywords, "class='text-1'");?></td>
</tr>
<tr id='urlBox' class='hidden'>
<th class='rowhead'><?php echo $lang->doc->url;?></th>
<td><?php echo html::input('url', urldecode($doc->url), "class='text-1'");?></td>
</tr>
<tr id='contentBox' class='hidden'>
<th class='rowhead'><?php echo $lang->doc->content;?></th>
<td><?php echo html::textarea('content', $doc->content, "class='text-1' rows='8' style='width:90%; height:200px'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->doc->digest;?></th>
<td><?php echo html::textarea('digest', $doc->digest, "class='text-1' rows=3");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->doc->comment;?></th>
<td><?php echo html::textarea('comment','', "class='text-1' rows=3");?></td>
</tr>
<tr id='fileBox' class='hidden'>
<th class='rowhead'><?php echo $lang->doc->files;?></th>
<td><?php echo $this->fetch('file', 'buildform', 'fileCount=2');?></td>
</tr>
<tr>
<td colspan='2' class='a-center'>
<?php echo html::submitButton() . html::backButton() . html::hidden('lib', $libID);?>
<?php echo html::hidden('product', $doc->product) . html::hidden('project', $doc->project);?>
</td>
</tr>
</table>
</form>
<div class='container w-900px'>
<div id='titlebar'>
<div class='heading'>
<span class='prefix'><?php echo html::icon($lang->icons['doc']) . ' #' . $doc->id;?></span>
<strong><?php echo html::a($this->createLink('doc', 'view', "docID=$doc->id"), $doc->title);?></strong>
<small class='text-muted'> <?php echo $lang->doc->edit;?> <i class='icon icon-pencil'></i></small>
</div>
</div>
<form class='form-condensed' method='post' enctype='multipart/form-data' target='hiddenwin' id='dataform'>
<table class='table table-form'>
<tr>
<th class='w-80px'><?php echo $lang->doc->module;?></th>
<td><?php echo html::select('module', $moduleOptionMenu, $doc->module, "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->doc->type;?></th>
<td><?php echo $lang->doc->types[$doc->type];?></td>
</tr>
<tr>
<th><?php echo $lang->doc->title;?></th>
<td><?php echo html::input('title', $doc->title, "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->doc->keywords;?></th>
<td><?php echo html::input('keywords', $doc->keywords, "class='form-control'");?></td>
</tr>
<tr id='urlBox' class='hidden'>
<th><?php echo $lang->doc->url;?></th>
<td><?php echo html::input('url', urldecode($doc->url), "class='form-control'");?></td>
</tr>
<tr id='contentBox' class='hidden'>
<th><?php echo $lang->doc->content;?></th>
<td><?php echo html::textarea('content', $doc->content, "class='form-control' rows='8' style='width:90%; height:200px'");?></td>
</tr>
<tr>
<th><?php echo $lang->doc->digest;?></th>
<td><?php echo html::textarea('digest', $doc->digest, "class='form-control' rows=3");?></td>
</tr>
<tr>
<th><?php echo $lang->doc->comment;?></th>
<td><?php echo html::textarea('comment','', "class='form-control' rows=3");?></td>
</tr>
<tr id='fileBox' class='hidden'>
<th><?php echo $lang->doc->files;?></th>
<td><?php echo $this->fetch('file', 'buildform', 'fileCount=2');?></td>
</tr>
<tr>
<td></td>
<td>
<?php echo html::submitButton() . html::backButton() . html::hidden('lib', $libID);?>
<?php echo html::hidden('product', $doc->product) . html::hidden('project', $doc->project);?>
</td>
</tr>
</table>
</form>
</div>
<?php include '../../common/view/footer.html.php';?>
+1
View File
@@ -39,6 +39,7 @@ $lang->my->home->productHome = '访问产品主页';
$lang->my->home->createProject = "创建一个项目?";
$lang->my->home->createProduct = "创建一个产品?";
$lang->my->home->help = "<a href='http://www.zentao.net/help-read-79236.html' target='_blank'>帮助文档</a>";
$lang->my->home->noProductsTip = "这里还没有产品。";
$lang->my->form->lblBasic = '基本信息';
$lang->my->form->lblContact = '联系信息';
+1
View File
@@ -0,0 +1 @@
.alert>[class*="icon-"]+.content {padding-left: 20px;}
+45 -38
View File
@@ -12,42 +12,49 @@
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<form method='post' target='hiddenwin' id='dataform'>
<table class='table-1'>
<caption><?php echo $lang->product->create;?></caption>
<tr>
<th class='rowhead'><?php echo $lang->product->name;?></th>
<td><?php echo html::input('name', '', "class='text-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->code;?></th>
<td><?php echo html::input('code', '', "class='text-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->PO;?></th>
<td><?php echo html::select('PO', $poUsers, $this->app->user->account, "class='select-3 chosen'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->QD;?></th>
<td><?php echo html::select('QD', $qdUsers, '', "class='select-3 chosen'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->RD;?></th>
<td><?php echo html::select('RD', $rdUsers, '', "class='select-3 chosen'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->desc;?></th>
<td><?php echo html::textarea('desc', '', "rows='8' class='area-1'");?></textarea></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->acl;?></th>
<td><?php echo nl2br(html::radio('acl', $lang->product->aclList, 'open', "onclick='setWhite(this.value);'"));?></td>
</tr>
<tr id='whitelistBox' class='hidden'>
<th class='rowhead'><?php echo $lang->product->whitelist;?></th>
<td><?php echo html::checkbox('whitelist', $groups);?></td>
</tr>
<tr><td colspan='2' class='a-center'><?php echo html::submitButton();?></td></tr>
</table>
</form>
<div class='container'>
<div id='titlebar'>
<div class='heading'>
<span class='prefix'><?php echo html::icon($lang->icons['product']);?></span>
<strong><small class='text-muted'><i class='icon icon-plus'></i></small> <?php echo $lang->product->create;?></strong>
</div>
</div>
<form class='form-condensed' method='post' target='hiddenwin' id='dataform'>
<table class='table table-form'>
<tr>
<th class='w-90px'><?php echo $lang->product->name;?></th>
<td class='w-p45'><?php echo html::input('name', '', "class='form-control'");?></td><td></td>
</tr>
<tr>
<th><?php echo $lang->product->code;?></th>
<td><?php echo html::input('code', '', "class='form-control'");?></td><td></td>
</tr>
<tr>
<th><?php echo $lang->product->PO;?></th>
<td><?php echo html::select('PO', $poUsers, $this->app->user->account, "class='form-control chosen'");?></td><td></td>
</tr>
<tr>
<th><?php echo $lang->product->QD;?></th>
<td><?php echo html::select('QD', $qdUsers, '', "class='form-control chosen'");?></td><td></td>
</tr>
<tr>
<th><?php echo $lang->product->RD;?></th>
<td><?php echo html::select('RD', $rdUsers, '', "class='form-control chosen'");?></td><td></td>
</tr>
<tr>
<th><?php echo $lang->product->desc;?></th>
<td colspan='2'><?php echo html::textarea('desc', '', "rows='8' class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->product->acl;?></th>
<td colspan='2'><?php echo nl2br(html::radio('acl', $lang->product->aclList, 'open', "onclick='setWhite(this.value);'", 'block'));?></td>
</tr>
<tr id='whitelistBox' class='hidden'>
<th><?php echo $lang->product->whitelist;?></th>
<td colspan='2'><?php echo html::checkbox('whitelist', $groups);?></td>
</tr>
<tr><td></td><td colspan='2'><?php echo html::submitButton();?></td></tr>
</table>
</form>
</div>
<?php include '../../common/view/footer.html.php';?>
+50 -42
View File
@@ -12,46 +12,54 @@
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<form method='post' target='hiddenwin' id='dataform'>
<table align='center' class='table-1'>
<caption><?php echo $lang->product->edit;?></caption>
<tr>
<th class='rowhead'><?php echo $lang->product->name;?></th>
<td><?php echo html::input('name', $product->name, "class='text-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->code;?></th>
<td><?php echo html::input('code', $product->code, "class='text-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->PO;?></th>
<td><?php echo html::select('PO', $poUsers, $product->PO, "class='select-3 chosen'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->QD;?></th>
<td><?php echo html::select('QD', $qdUsers, $product->QD, "class='select-3 chosen'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->RD;?></th>
<td><?php echo html::select('RD', $rdUsers, $product->RD, "class='select-3 chosen'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->status;?></th>
<td><?php echo html::select('status', $lang->product->statusList, $product->status, "class='select-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->desc;?></th>
<td><?php echo html::textarea('desc', $product->desc, "rows='8' class='area-1'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->acl;?></th>
<td><?php echo nl2br(html::radio('acl', $lang->product->aclList, $product->acl, "onclick='setWhite(this.value);'"));?></td>
</tr>
<tr id='whitelistBox' <?php if($product->acl != 'custom') echo "class='hidden'";?>>
<th class='rowhead'><?php echo $lang->product->whitelist;?></th>
<td><?php echo html::checkbox('whitelist', $groups, $product->whitelist);?></td>
</tr>
<tr><td colspan='2' class='a-center'><?php echo html::submitButton();?></td></tr>
</table>
</form>
<div class='container'>
<div id='titlebar'>
<div class='heading'>
<span class='prefix'><?php echo html::icon($lang->icons['product']) . ' #' . $product->id;;?></span>
<strong><?php echo html::a($this->createLink('product', 'view', 'product=' . $product->id), $product->name);?></strong>
<small class='text-muted'> <?php echo $lang->product->edit;?> <i class='icon icon-pencil'></i></small>
</div>
</div>
<form class='form-condensed' method='post' target='hiddenwin' id='dataform'>
<table align='center' class='table table-form'>
<tr>
<th class='w-90px'><?php echo $lang->product->name;?></th>
<td class='w-p45'><?php echo html::input('name', $product->name, "class='form-control'");?></td><td></td>
</tr>
<tr>
<th><?php echo $lang->product->code;?></th>
<td><?php echo html::input('code', $product->code, "class='form-control'");?></td><td></td>
</tr>
<tr>
<th><?php echo $lang->product->PO;?></th>
<td><?php echo html::select('PO', $poUsers, $product->PO, "class='form-control chosen'");?></td><td></td>
</tr>
<tr>
<th><?php echo $lang->product->QD;?></th>
<td><?php echo html::select('QD', $qdUsers, $product->QD, "class='form-control chosen'");?></td><td></td>
</tr>
<tr>
<th><?php echo $lang->product->RD;?></th>
<td><?php echo html::select('RD', $rdUsers, $product->RD, "class='form-control chosen'");?></td><td></td>
</tr>
<tr>
<th><?php echo $lang->product->status;?></th>
<td><?php echo html::select('status', $lang->product->statusList, $product->status, "class='form-control'");?></td><td></td>
</tr>
<tr>
<th><?php echo $lang->product->desc;?></th>
<td colspan='2'><?php echo html::textarea('desc', $product->desc, "rows='8' class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->product->acl;?></th>
<td colspan='2'><?php echo nl2br(html::radio('acl', $lang->product->aclList, $product->acl, "onclick='setWhite(this.value);'", 'block'));?></td>
</tr>
<tr id='whitelistBox' <?php if($product->acl != 'custom') echo "class='hidden'";?>>
<th><?php echo $lang->product->whitelist;?></th>
<td colspan='2'><?php echo html::checkbox('whitelist', $groups, $product->whitelist);?></td>
</tr>
<tr><td></td><td colspan='2'><?php echo html::submitButton();?></td></tr>
</table>
</form>
</div>
<?php include '../../common/view/footer.html.php';?>
+38 -32
View File
@@ -12,45 +12,52 @@
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/sparkline.html.php';?>
<?php include '../../common/view/colorize.html.php';?>
<div id='featurebar'>
<div class='heading'><?php echo html::icon($lang->icons['product']) . ' ' . $lang->product->index;?> </div>
<div class='btn-group pull-right'>
<?php echo html::a($this->createLink('product', 'create'), "<i class='icon-plus'></i> " . $lang->product->create,'', "class='btn'") ?>
</div>
</div>
<div class='block' id='productbox'>
<?php if(empty($productStats)):?>
<table class='table-1 a-center' height='100%'>
<caption><?php echo $lang->my->home->products;?></caption>
<tr>
<td valign='middle'>
<?php
$productLink = $this->createLink('product', 'create');
printf($lang->my->home->noProductsTip, $productLink);
?>
</td>
</tr>
</table>
<div class='container w-500px'>
<div class='alert'>
<i class='icon icon-info-sign'></i>
<div class='content'>
<h5><?php echo $lang->my->home->noProductsTip ?></h5>
<?php echo html::a($this->createLink('product', 'create'), "<i class='icon-plus'></i> " . $lang->my->home->createProduct,'', "class='btn btn-success'") ?>
</div>
</div>
</div>
<?php else:?>
<form method='post' action='<?php echo inLink('batchEdit', "productID=$productID");?>'>
<table class='table-1 colored fixed'>
<tr class='colhead'>
<th class='w-id'> <?php echo $lang->idAB;?></th>
<th class='w-150px'><?php echo $lang->product->name;?></th>
<th><?php echo $lang->story->statusList['active'] . $lang->story->common;?></th>
<th><?php echo $lang->story->statusList['changed'] . $lang->story->common;?></th>
<th><?php echo $lang->story->statusList['draft'] . $lang->story->common;?></th>
<th><?php echo $lang->story->statusList['closed'] . $lang->story->common;?></th>
<th><?php echo $lang->product->plans;?></th>
<th><?php echo $lang->product->releases;?></th>
<th><?php echo $lang->product->bugs;?></th>
<th><?php echo $lang->bug->unResolved;?></th>
<th><?php echo $lang->bug->assignToNull;?></th>
</tr>
<table class='table table-condensed table-hover table-striped table-borderless'>
<thead>
<tr>
<th class='w-id'> <?php echo $lang->idAB;?></th>
<th class='w-150px'><?php echo $lang->product->name;?></th>
<th><?php echo $lang->story->statusList['active'] . $lang->story->common;?></th>
<th><?php echo $lang->story->statusList['changed'] . $lang->story->common;?></th>
<th><?php echo $lang->story->statusList['draft'] . $lang->story->common;?></th>
<th><?php echo $lang->story->statusList['closed'] . $lang->story->common;?></th>
<th><?php echo $lang->product->plans;?></th>
<th><?php echo $lang->product->releases;?></th>
<th><?php echo $lang->product->bugs;?></th>
<th><?php echo $lang->bug->unResolved;?></th>
<th><?php echo $lang->bug->assignToNull;?></th>
</tr>
</thead>
<?php $canBatchEdit = common::hasPriv('product', 'batchEdit'); ?>
<?php foreach($productStats as $product):?>
<tr class='a-center' style='height:30px'>
<tr class='text-center'>
<td>
<?php if($canBatchEdit):?>
<input type='checkbox' name='productIDList[<?php echo $product->id;?>]' value='<?php echo $product->id;?>' />
<?php endif;?>
<?php echo html::a($this->createLink('product', 'view', 'product=' . $product->id), sprintf('%03d', $product->id));?>
</td>
<td><?php echo html::a($this->createLink('product', 'view', 'product=' . $product->id), $product->name);?></td>
<td class='text-left'><?php echo html::a($this->createLink('product', 'view', 'product=' . $product->id), $product->name);?></td>
<td><?php echo $product->stories['active']?></td>
<td><?php echo $product->stories['changed']?></td>
<td><?php echo $product->stories['draft']?></td>
@@ -65,10 +72,10 @@
<?php if($canBatchEdit):?>
<tfoot>
<tr>
<td colspan='11' class='a-right'>
<div class='f-left'>
<?php echo html::selectAll() . html::selectReverse();?>
<?php echo html::submitButton($lang->product->batchEdit);?>
<td colspan='11'>
<div class='table-actions clearfix'>
<?php echo "<div class='btn-group'>" . html::selectAll() . html::selectReverse() . '</div>';?>
<?php echo html::submitButton("<i class='icon-pencil'></i> " . $lang->product->batchEdit, '', '');?>
</div>
</td>
</tr>
@@ -76,7 +83,6 @@
<?php endif;?>
</table>
</form>
</div>
<?php endif;?>
</div>
<?php include '../../common/view/footer.html.php';?>
+2 -2
View File
@@ -45,7 +45,7 @@
<table class='mainTable table table-condensed table-hover table-borderless'>
<thead>
<tr>
<th class='w-id text-left'><?php echo html::selectAll('story', 'checkbox') . $lang->idAB;?></th>
<th class='w-id text-left'><?php echo html::selectAll('story', 'checkbox') . ' ' . $lang->idAB;?></th>
<th><?php echo $lang->story->title;?></th>
<th class='w-hour'><?php echo $lang->statusAB;?></th>
<th class='w-100px'><?php echo $lang->story->stageAB;?></th>
@@ -73,7 +73,7 @@
<table class='mainTable table table-condensed table-hover table-borderless'>
<thead>
<tr>
<th class='w-id text-left'><?php echo html::selectAll('bug', 'checkbox') . $lang->idAB;?></th>
<th class='w-id text-left'><?php echo html::selectAll('bug', 'checkbox') . ' ' . $lang->idAB;?></th>
<th><?php echo $lang->bug->title;?></th>
<th class='w-100px'><?php echo $lang->bug->status;?></th>
</tr>