get('_bcod_maindb', '', 'all'); $verifyfunc = $post->get('_bcod_verifyfunc', '', 'all'); $titname = $post->get('_bcod_titname', '', 'all'); $saascode = $post->get('_bcod_saascode', '', 'all'); $uploadpat = $post->get('_bcod_uploadpat', '', 'all'); $liiddict = $post->get('_bcod_liiddict', '', 'all'); $uptabcard = $post->get('_bcod_uptabcard', '', 'all'); $uptabcards = array(); if (!empty($uptabcard)) $uptabcards = explode(',', $uptabcard); $viewtabcard = $post->get('_bcod_viewtabcard', '', 'all'); $viewtabcards = array(); if (!empty($viewtabcard)) $viewtabcards = explode(',', $viewtabcard); $tabdict = $post->get('_bcod_tabdict', '', 'all'); $btntop_newline = $post->get('_bcod_btntop_newline', '', 'all'); $btnlist_line = $post->get('_bcod_btnlist_line', '', 'all'); $btntop_multibtn = $post->get('_bcod_btntop_multibtn', '', 'all'); $savepc = $post->get('_bcod_savepc', '', 'all'); $hasview = strpos($btnlist_line, '查看') !== false; $flds = calfld($post); $querycount = 0; $chk_audit = false; $chk_matter = false; $chk_getupdate = false; $chk_deltimes = false; $ciycmp2 = false; $ciydict = []; $cchar = 'char2'; $maxnamelen = 0; foreach ($flds as $fld) { $len = gb_strlen($fld['name']); if ($len > $maxnamelen) $maxnamelen = $len; if ($fld['bqry']) $querycount++; if ($fld['col'] == 'auditstatus') $chk_audit = true; //auditstatus/audituser/audittimes/auditmsg: 加审核按钮 if ($fld['col'] == 'matterstatus') $chk_matter = true; //matterstatus/matternextuser/mattertimes: 加流程功能,是否可编辑/删除 if ($fld['col'] == 'deltimes') $chk_deltimes = true; if ($fld['set']['listload'] == 'rel'){ if(!$fld['set']['noup']) $chk_getupdate = true; } if ($fld['set']['nocmn'] == 'no') $chk_getupdate = true; $cate = $fld['cate']; if ( $cate == 'CATM' || $cate == 'CATS' || $cate == 'MD' || $cate == 'CYC' || $cate == 'LOC' || $cate == 'UNIT' || $cate == 'TIME' || $cate == 'FSIZE' || $cate == 'METRE' || $cate == 'WCNY' || $cate == 'SEC' || $cate == 'TON' || $cate == 'PCT' || $cate == 'CNY' || $cate == 'KG' || $cate == 'TC' ) $ciycmp2 = true; list($dicttype, $dictname) = splitdict($fld['data']); if ($dicttype == 'dictciy') $ciydict[] = $dictname; } if ($maxnamelen > 16) $cchar = 'char9'; else if ($maxnamelen > 14) $cchar = 'char8'; else if ($maxnamelen > 12) $cchar = 'char7'; else if ($maxnamelen > 10) $cchar = 'char6'; else if ($maxnamelen > 8) $cchar = 'char5'; else if ($maxnamelen > 6) $cchar = 'char4'; else if ($maxnamelen > 4) $cchar = 'char3'; $hasadd = false; $hasreview = false; $hasedit = strpos($btnlist_line,'修改') !== false; $hasaudit = false; $hasexcelin = false; $hasexcelout = false; $topbtns = []; $strs = explode(',', $btntop_newline); //添加,导入,导出,其他,操作|成果|方法|-修改|删除 foreach ($strs as $str) { if(empty($str)) continue; $ind = strpos($str, '|'); if ($ind === false) { if ($str == '添加') { $hasadd = true; $hasedit = true; $topbtns[] = '添加'; } else if ($str == '导入') { $hasexcelin = true; $topbtns[] = '导入'; } else if ($str == '导出') { $hasexcelout = true; $topbtns[] = '导出'; } else if ($str == '帮助') { $hasexcelout = true; $topbtns[] = '帮助'; } else $topbtns[] = '' . $str . ''; } else { $subs = explode('|', $str); //操作|成果|方法|-修改|删除 $btnhtml = "{$subs[0]}"; $topbtns[] = $btnhtml; } } $codex = <<
data; if ($hasexcelin) $codex .= <<