* finish the product selecter. task#516.

This commit is contained in:
wangchunsheng
2011-10-20 11:02:43 +00:00
parent 1b15c47f72
commit f39fd195ee
10 changed files with 51 additions and 14 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class testcaseModel extends model
public function setMenu($products, $productID)
{
$this->loadModel('product')->setMenu($products, $productID);
$selectHtml = html::select('productID', $products, $productID, "onchange=\"switchProduct(this.value, 'testcase', 'browse');\"");
$selectHtml = $this->product->select($products, $productID, 'testcase', 'browse');
foreach($this->lang->testcase->menu as $key => $menu)
{
$replace = ($key == 'product') ? $selectHtml . $this->lang->arrow : $productID;