public function nav_menu_link_4() { $re = array(); $options = QdProductCat::getFieldOptions('type3', Qdmvc_Config::getLanguage()); array_push($re, array('title' => $options[QdProductCat::$TYPE3_DCN], 'url' => get_site_url(null, 'do-cong-nghe.html'), 'id' => QdProductCat::$TYPE3_DCN)); array_push($re, array('title' => $options[QdProductCat::$TYPE3_XE], 'url' => get_site_url(null, 'xe.html'), 'id' => QdProductCat::$TYPE3_XE)); $this->genItemsNav(4, $re); }
public function fn_validate_all_level($loc, $params) { $tmp = new QdProductCat(); //$tmp->SETRANGE('type', static::$TYPE_PRODUCTCAT); $count = 0; foreach ($tmp->GETLIST() as $item) { if ($item->save()) { $count++; } } $this->pushValidateError('', 'Total items validated: ' . $count, 'info'); return true; }