init web ems all
This commit is contained in:
1 parent
81c97acbe9
commit
5cc56f8078
4263 files changed
+798779
No files matched your search
Executable
+57
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**************************************************************************************
|
||||
程序说明:
|
||||
功能说明:判断参数是否保存,如果是,保存参数并把needSetFlag置1,返回到指定的页面;
|
||||
如果否,直接返回到指定的页面
|
||||
调用关系:调用: header.inc
|
||||
被调用:../../element/sub_inc/lib.inc :function checkSaveFunction($saveHref)
|
||||
变量说明:$saveHref=$backHref+"OBJ:"+"$sysTypeNo&$oidStr&$instanceNo&$newValue"+
|
||||
"OBJ:"+"$sysTypeNo&$oidStr&$instanceNo&$newValue"+
|
||||
"OBJ:"+"$sysTypeNo&$oidStr&$instanceNo&$newValue"+
|
||||
..................................................
|
||||
"OBJ:"+"$sysTypeNo&$oidStr&$instanceNo&$newValue"+
|
||||
"OBJ:"+"needSave=";
|
||||
作者:Cui Ticun 2005-12-19
|
||||
修改注释:
|
||||
NO.1
|
||||
姓名:
|
||||
时间:
|
||||
修改说明:
|
||||
****************************************************************************************/
|
||||
require("../../inc/header.inc");
|
||||
//echo "saveHref=$saveHref";
|
||||
//exit();
|
||||
$varAttributeArr=explode("OBJ:",$saveHref);
|
||||
|
||||
if(strstr($varAttributeArr[sizeof($varAttributeArr)-1],"needSave=y")){
|
||||
$tmpBackHref=$varAttributeArr[0].'&needSetFlag=1';
|
||||
for($i=1;$i<sizeof($varAttributeArr)-1;$i++){
|
||||
//echo "<br>var=$varAttributeArr[$i]";
|
||||
$unitVarAttributeArr=explode("&",($varAttributeArr[$i]));
|
||||
|
||||
$tmpSysIdArr = explode("_",$unitVarAttributeArr[0]);
|
||||
$tmpSysTypeNo = $tmpSysIdArr[0];
|
||||
$tmpSysNo = $tmpSysIdArr[1];
|
||||
$tmpSubSysNo = $tmpSysIdArr[2];
|
||||
|
||||
$tmpObjDb = 'OBJ_'.$tmpSysTypeNo;
|
||||
//echo "<br>tmpObjDb=$tmpObjDb";
|
||||
$tmpParamTable = 'param_'.$tmpSysNo;
|
||||
$tmpObjWhereStr = getLevelWhere($unitVarAttributeArr[1]);
|
||||
$tmpUpdatesql = "UPDATE $tmpParamTable SET initValue='$unitVarAttributeArr[3]'
|
||||
where $tmpObjWhereStr AND instanceNo='$unitVarAttributeArr[2]'";
|
||||
//echo "<br>$tmpUpdatesql<br>";
|
||||
//echo "tmpObjDb=$tmpObjDb";
|
||||
|
||||
mysqli_query($pubConn,$tmpUpdatesql);
|
||||
}
|
||||
}else
|
||||
$tmpBackHref=$varAttributeArr[0];
|
||||
?>
|
||||
<script language='javascript'>;
|
||||
window.location.href='<?php echo $tmpBackHref; ?>';
|
||||
</script>;
|
||||
<?php
|
||||
exit();
|
||||
?>
|
||||
|
||||
Reference in new issue
Block a user