* @package qa * @version $Id: control.php 4129 2013-01-18 01:58:14Z wwccss $ * @link http://www.zentao.net */ class qa extends control { /** * The index of qa, go to bug's browse page. * * @access public * @return void */ public function index($locate = 'yes', $productID = 0) { if($locate == 'yes') $this->locate($this->createLink('bug', 'browse')); $this->loadModel('product'); $this->products = $this->product->getPairs('nocode'); $this->qa->setMenu($this->products, $productID); $this->view->title = $this->lang->qa->index; $this->view->position[] = $this->lang->qa->index; $this->view->products = $this->products; $this->display(); } }