get('table', '', 'all'); $subpath = $post->get('subpath', '', 'all'); $saasfield = $post->get('saasfield', '', 'all'); $saasusr = $post->get('saasusr', '', 'all'); $titname = $post->get('_bcod_titname', '', 'all'); $liiddict = str_replace(',',',', $post->get('_bcod_liiddict', '', 'all')); $uptabcard = str_replace(',',',', $post->get('_bcod_uptabcard', '', 'all')); $uptabcards = array(); if (!empty($uptabcard)) $uptabcards = explode(',', $uptabcard); $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'); $pcparam = $post->get('_bcod_pcparam'); $hasview = strpos($btnlist_line, '查看') !== false; $flds = calfld($post); $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['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 == 'FILEMD' || $cate == 'CYC' || $cate == 'LOC' || $cate == 'UNIT' || $cate == 'TIME' || $cate == 'SEC' || $cate == 'IMG1' || $cate == 'IMG' || $cate == 'DOWN' || $cate == 'AV' ) $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; $hashelp = 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 == '帮助') { $hashelp = true; $topbtns[] = '帮助'; } else $topbtns[] = '' . $str . ''; } else { $subs = explode('|', $str); //操作|成果|方法|-|修改|删除 $btnhtml = "{$subs[0]}\n"; $btnhtml .= " \n"; $btnhtml .= " \n"; $btnhtml .= " "; $topbtns[] = $btnhtml; } } $codex = <<
data; if ($hashelp) $codex .= <<