Пример #1
0
 public function view_addScanSampleCoefficient()
 {
     if (!isset($_SESSION['userId'])) {
         //检测用户是否登陆
         header('location:index.php?mod=login&act=index');
         exit;
     }
     //设置修改页面上指定字段的值
     $navarr = $navarr = array("<a href='index.php?mod=sampleStandard&act=skuTypeQcList'>IQC检测标准</a>", ">>", "<a href='index.php?mod=sampleCoefficient&act=getSampleCoefficientList'>系数列表</a>", ">>", "添加系数");
     $this->smarty->assign('navarr', $navarr);
     $this->smarty->assign('module', '添加系数');
     $this->smarty->assign('username', $_SESSION['userName']);
     $this->smarty->assign('sampleTypeList', SampleCoefficientModel::getSampleType());
     //所有的样本类型
     $this->smarty->assign('sizeCodeList', SampleCoefficientModel::getSizeCode());
     //所有的样本大小
     $this->smarty->display("addSampleCoefficient.html");
 }