Example #1
0
 function industry()
 {
     $tpl_file = "special/list";
     $mod = __FUNCTION__;
     global $viewhelper;
     $datas = cache_read($mod);
     $datas = PbController::getInstance()->array_multi2single($datas);
     $alphabet_sorts = array();
     foreach ($datas as $key => $val) {
         $letter = strtoupper(PbController::getInitial($val));
         $alphabet_sorts[$letter]['child'][$key]['id'] = $key;
         $alphabet_sorts[$letter]['child'][$key]['title'] = $val;
     }
     ksort($alphabet_sorts);
     setvar("alpha_datas", $alphabet_sorts);
     setvar("type", $mod);
     setvar("station_name", L("sub_" . $mod, "tpl"));
     unset($datas, $alphabet_sorts);
     $viewhelper->setTitle(L("sub_" . $mod, "tpl"));
     $membertypes = cache_read("type", "membertype");
     setvar("member_types", $membertypes);
     render($tpl_file);
 }