* 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
+2 -1
View File
@@ -23,7 +23,8 @@ class testtaskModel extends model
*/
public function setMenu($products, $productID)
{
$selectHtml = html::select('productID', $products, $productID, "onchange=\"switchProduct(this.value, 'testtask', 'browse');\"");
$this->loadModel('product')->setMenu($products, $productID);
$selectHtml = $this->product->select($products, $productID, 'testtask', 'browse');
foreach($this->lang->testtask->menu as $key => $value)
{
$replace = ($key == 'product') ? $selectHtml . $this->lang->arrow: $productID;