Esempio n. 1
0
 public function view_nowSampleType()
 {
     $type = array();
     $DetectStandardAct = new DetectStandardAct();
     $NowStandardList = $DetectStandardAct->act_getNowStandardList('*', 'order by sampleTypeId,minimumLimit asc');
     $this->smarty->assign('NowStandardList', $NowStandardList);
     if (!empty($NowStandardList)) {
         foreach ($NowStandardList as $key => $v) {
             $sampleType = DetectStandardModel::getSampleTypeList("typeName", "where id={$v['sampleTypeId']}");
             $type[$key] = $sampleType[0]['typeName'];
         }
     }
     $this->smarty->assign('type', $type);
     $this->smarty->assign('secnev', '4');
     //二级导航
     $this->smarty->assign('module', '当前检测标准');
     $this->smarty->assign('username', $_SESSION['userName']);
     $navarr = array("<a href='index.php?mod=nowSampleStandard&act=nowSampleType'>iqc检测标准</a>", ">>", "当前检测标准");
     $this->smarty->assign('navarr', $navarr);
     $this->smarty->display('nowSampleType.html');
 }