コード例 #1
0
 public function view_aliShipingTemplate()
 {
     $lp_obj = new LocalPowerModel();
     $powerlist = $lp_obj->getAliPowerlist($_SESSION['userId']);
     $accountlist = $lp_obj->getAccountListByCatList($powerlist[field]);
     $accountlist[] = -1;
     $condition_sql = implode("' , '", $accountlist);
     $condition = " and account in ('{$condition_sql}')";
     $shipTplMod_obj = new AliShipTemplateModel();
     $tplList = $shipTplMod_obj->getAllTemplateInfoList($condition);
     $aliaccount_obj = new AliAccountModel();
     foreach ($tplList as &$tval) {
         $tval['accountname'] = $aliaccount_obj->accountId2Name($tval['account']);
     }
     $this->smarty->assign('tpllist', $tplList);
     $this->smarty->assign('addurl', 'index.php?mod=messageTemplate&act=aliAddNewShipTemplate');
     $this->smarty->assign('toplevel', 2);
     $this->smarty->assign('sec_menue', 4);
     $this->smarty->assign('toptitle', 'message模板列表');
     $this->smarty->assign('third_menue', 1);
     $this->smarty->display('alishiptpl.htm');
 }