代码拉取完成,页面将自动刷新
同步操作将从 UFQI/gMIS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php
require("./comm/header.inc.php");
$out = str_replace('TITLE','欢迎', $out);
$isgo = true;
if($tbl == ''){
if(1){
$tbl = $_CONFIG['welcometbl'];
$_REQUEST['tbl'] = $tbl;
}else{
$out .= __FILE__.": a table name should be given. [1201231050]\n";
$out .= "<br/><a href=\"".$_CONFIG['rtvdir']."\">=Home</a>";
$isgo = false;
}
}else{
$out .= "<script type=\"text/javascript\">currenttbl='".$tbl."';\ncurrentdb='".$mydb."';\n currentlistid= {};\n userinfo={'id':'".$userid."','email':'".$user->getEmail()."','group':'".$user->getGroup()."','branch':'".$user->get('branchoffice')."'};\n </script>\n";
}
$out_header = $out;
$out = ""; # re-init it
if($isgo){
$hmconf = GTbl::xml2hash($xmlpathpre, $elementsep, $mydb, $tbl);
$hmconf[0]['mydb'] = $mydb; # Thu, 1 Dec 2016 19:43:30 +0800
$gtbl = new GTbl($tbl, $hmconf[0], $elementsep);
#print __FILE__.": hmconf:".print_r($hmconf);
if($_REQUEST['tit'] == ''){
$tit = $gtbl->getTblCHN();
}
# get detail path
$module_path = ''; $levelcode = ''; $codelist = '';
#$hm = $gtbl->execBy("select levelcode, linkname, modulename from ".$_CONFIG['tblpre']."info_menulist where modulename='".str_replace($_CONFIG['tblpre'],"",$tbl)."'", null);
$hm = $gtbl->execBy("select levelcode, linkname, modulename from ".$_CONFIG['tblpre']."info_menulist where modulename in ('".str_replace($_CONFIG['tblpre'],"",$tbl)."', '".$tbl."')", null);
#debug($hm);
if($hm[0]){
$levelcode = $hm[1][0]['levelcode'];
$codelist = substr($levelcode,0,2)."','".substr($levelcode,0,4)."','".substr($levelcode,0,6)."','".substr($levelcode,0,8); # max 4 levels allowed
$hm = $gtbl->execBy("select levelcode, linkname, modulename from ".$_CONFIG['tblpre']."info_menulist where levelcode in ('".$codelist."') order by levelcode", null);
if($hm[0]){
$hm = $hm[1]; $lastLinkName = ''; #print_r($hm);
foreach($hm as $k=>$v){
if($v['modulename'] != ''){
$module_path .= "<a href='./".$ido."?sid=".$sid."&tbl=".$v['modulename']."'>".$v['linkname']."</a> →";
}
else{
$module_path .= "<a href='./?navidir=".$v['levelcode']."'>".$v['linkname']."</a> →";
}
$lastLinkName = $v['linkname'];
}
$module_path = substr($module_path, 0, strlen($module_path)-6);
}
}
$module_path = $module_path == '' ? '<a href="./?navidir=99">桌面 & 系统配置</a> → '.$tit : $module_path;
if($lastLinkName != $tit){ $module_path .= " | ".$tit; }
#print __FILE__.": module_path:[$module_path] hm:[".$gtbl->toString($hm)."] tbl:[$tbl] levelcode:[$levelcode] codelist:[$codelist]\n";
$url = mkUrl("jdo.php", $_REQUEST, $gtbl); # ".($isheader?"</h3>":"")."
$out .= "<table align=\"center\" width=\"98%\" style=\"background:transparent\">";
$out .= "<tr><td width=\"40%\" ".($isheader?"class=\"f17px\"":"")."> <b> Π <a href=\"./\">首页</a> <span class=\"f17px\">→</span> ".$module_path." </b> </td>";
$out .= "<td style=\"text-align:left\" colspan=\"18\">
<button onclick=\"javascript:doActionEx('".$url."&act=add','contentarea');\">新增</button>";
$refArr = $gtbl->getRelatedRef($url."&act=list"); # related ref, added on Thu Apr 12 18:54:43 CST 2012
#print_r($refArr);
if(count($refArr) > 0){
foreach($refArr as $k=>$v){
$tmphref = $v['href'];
$isjs = 0;
if($tmphref == 'JS'){
$tmphref = $v['target'];
$isjs = 1;
}
if($isjs==0 && strpos($tmphref,"sid=") === false){
if(strpos($tmphref,"?") === false){
$tmphref .= "?sid=".$sid;
}else{
$tmphref .= "&sid=".$sid;
}
}
if($isjs == 0){
$out .= " <button onclick=\"javascript:doActionEx('".$tmphref."','".($v['target']==''?'contentarea':$v['target'])."');\">".$v['name']."</button>";
}else{
$out .= " <button onclick=\"javascript:".$tmphref."\">".$v['name']."</button>";
}
}
}
$out .= " <button id=\"refreshbtn\" name=\"refreshbtn\" onclick=\"javascript:window.location.reload();\" title=\"刷新\">刷新</button> </td></tr>";
$out .= "</table>";
$out .= "<div id=\"contentarea_outer\" style=\"display:none;border:0px dotted green; width:98%; margin-left:auto; margin-right:auto;\">";
$out .= "<div id=\"close_span\" style=\"text-align:right;height:10px;clear:both;\"><button id=\"btn_close\" onclick=\"javascript:switchArea('contentarea_outer','off');\">X Close</button> </div>";
$out .= "<br/><div id=\"contentarea\" style=\"postion:absolute;\" align=\"center\"></div></div>\n";
$out .= "<span id=\"addarea\"></span> <span id=\"loadarea\"></span>\n";
$out .= "<div id=\"actarea\" align=\"center\"><br/><br/><span style=\"margin-left:38px;\"> Loading...... <a href=\"javascript:doAction('".$url."&act=list');\"> 手工加载列表 </a> </span><br/><br/> </div>\n";
$out .= "<div id=\"tagmenu\" style=\"position:absolute;left:-50px;\"></div>";
$out .= "<div id=\"addareaextradiv\" onmousedown=\"javascript:fDragging(this, event, true);\" class=\"div\" style=\"position:absolute;width: 350px;left:250px; top:250px;z-index:11; display:none\"><span id=\"addareaextratitle\" style=\"background:#5f8ac5;width:100%;height:20;\">\n";
$out .= "<table style=\"color:white;font-weight:bold;\" id=\"addareaextratab\"><tr><td width=\"99%\">addarea </td><td align=\"right\"> <button name=\"cancelbtn\" id=\"cancelbtn\" onclick=\"javascript:var a1706=document.getElementById('addareaextradiv'); if(a1706 != null){ a1706.style.display='none';}\"> X </button> </td></tr></table> </span> <span id=\"addareaextra\"></span> </div>\n";
if($act == ''){
$out .= "<script type=\"text/javascript\">doAction('".$url."&act=list');</script>\n";
}else{
$out .= "<script type=\"text/javascript\">doActionEx('".$url."&act=".$act."','contentarea');</script>\n";
}
$out .= "<!--bottom line-->";
$out .= "<table align=\"center\" width=\"98%\" style=\"background:transparent\"> <tr><td width=\"25%\" colspan=\"4\"> <b> Π <a href=\"./\">首页</a> <span style=\"font-size:17px\">→</span> ".$module_path." </b> </td>";
$out .= "<td style=\"text-align:left;margin-right:58px\" colspan=\"15\"> <button onclick=\"javascript:doActionEx('".$url."&act=add','contentarea');\">新增</button> <button id=\"refrehbtn2\" name=\"refreshbtn2\" onclick=\"javascript:window.location.reload();\" title=\"刷新\">刷新</button> </td> </tr></table>\n";
$out_footer = "<hr width=\"1\"/> <span id=\"noticediv\" style=\"color:green;\"> </span>";
$gtbl = null;
$hmconf = null;
}
$smttpl = getSmtTpl(__FILE__,$act='');
$smt->assign('welcomemsg',$welcomemsg);
$smt->assign('isheader', $isheader);
$smt->assign('out_header', $out_header);
$smt->assign('out_footer', $out_footer);
$smt->assign('content',$out);
$smt->assign('rtvdir', $rtvdir);
require("./comm/footer.inc.php");
#print $out;
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。