* Make reuseing of 'allproduct' posible;

This commit is contained in:
liukmqd@gmail.com
2011-05-01 08:45:11 +00:00
parent 474016590c
commit 618b8289f5
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -61,6 +61,7 @@ class product extends control
*/
public function browse($productID = 0, $browseType = 'byModule', $param = 0, $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
{
$this->loadModel('bug');
/* Lower browse type. */
$browseType = strtolower($browseType);
@@ -144,7 +145,7 @@ class product extends control
$this->config->product->search['actionURL'] = $this->createLink('product', 'browse', "productID=$productID&browseType=bySearch&queryID=myQueryID");
$this->config->product->search['queryID'] = $queryID;
$this->config->product->search['params']['plan']['values'] = $this->loadModel('productplan')->getPairs($productID);
$this->config->product->search['params']['product']['values'] = array($productID => $this->products[$productID], 'all' => $this->lang->product->allProduct);
$this->config->product->search['params']['product']['values'] = array($productID => $this->products[$productID], 'all' => $this->lang->bug->allProduct);
$this->view->searchForm = $this->fetch('search', 'buildForm', $this->config->product->search);
$this->view->productID = $productID;
+2 -2
View File
@@ -21,8 +21,8 @@
</div>
<script language='Javascript'>
$("#bysearchTab").toggle(
function(){ $("#querybox").show(); $("#treebox").hide(); $(".divider").hide(); },
function(){ $("#querybox").hide(); $("#treebox").show(); $(".divider").show(); } );
function(){ $("#querybox").show(); },
function(){ $("#querybox").hide(); } );
</script>
<div class='f-right'>
<?php common::printLink('story', 'export', "productID=$productID&orderBy=$orderBy", $lang->export, '', 'class="export"'); ?>