Viewing file: addcollege_c.php (5.51 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "template.php";
include_once "../class/clsTable.php";
include_once "../link/functionshow.php";
include_once "funct.php";
include_once "../link/keyThai.php";
include_once "../class/clsCollegeDetail.php";
include_once "../class/clsSysConfig.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oCd = new collegedetail($oC);
$oCd2 = new collegedetail($oC);
$oSys = new sysConfig($oC);
$oSys->RSsysConfig();
$oSys->GetRecord();
?>
<?
if($method=="addpbriHost"){
if($actionpbriHost=="єС№·ЦЎ"){
$oSys->RSsysConfig();
$oSys->GetRecord();
$oSys->Edit();
$oSys->pbriHost=$pbriHost;
$oSys->Save();
?>
<script language="JavaScript">
parent.location.href ="addcollege_c.php";
</script>
<?
}else if($actionpbriHost=="бЎйдў"){
if($e==1){
$oSys->RSsysConfig();
$oSys->GetRecord();
$oSys->Edit();
$oSys->pbriHost=$pbriHost;
$oSys->Save();
?>
<script language="JavaScript">
parent.location.href ="addcollege_c.php";
</script>
<?
}
?>
<script language="JavaScript">
parent.location.href ="addcollege_c.php?e=1";
</script>
<?
}
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<iframe id="configCollege" name="configCollege" src="" style="width:$0px;height:0px;border:0"></iframe>
<br>
<table width=703 align="center">
<tr><td height="150">
<fieldset>
<legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="?mm=1">µС駤иТЎТГгЄй§Т№ГРєє</a>
<img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">ЎУЛ№ґўйНБЩЕЗФ·ВТЕСВ</font></legend>
<form name="ff" action="addcollege_c.php" method="post" target="configCollege"><? // ?>
<table width="95%" border="0" align="center" >
<tr><td>ЄЧиНа¤ГЧиН§ server (КєЄ.) <input name="pbriHost" type="text" value="<? echo $oSys->pbriHost; ?>" <? if($e!="1" && $oSys->pbriHost!=''){ echo "disabled"; }?> >
<input name="method" type="hidden" value="addpbriHost">
<input name="e" type="hidden" value="<? echo $e;?>">
<? if($oSys->pbriHost==''){ $act="єС№·ЦЎ"; }else{ $act="бЎйдў"; } ?>
<input name="actionpbriHost" type="submit" value="<? echo $act; ?>" ></td></tr>
</table>
</form>
<? if($oSys->pbriHost!=''){
?>
<form name="ff" action="processAddCollege.php" method="post" target="configCollege"><? // ?>
<? if($r!=''){
?>
<table width="95%" border="0" align="center" >
<tr><td align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">
<strong>
<? if($r==1){ echo "аЎФґ¤ЗТБјФґѕЕТґг№ЎТГКи§ўйНБЩЕ<br>ЎГШіТЎґ»ШиБНСѕаґ·в»ГбЎГБНХЎ¤ГСй§";
}else if($r==2){ echo "дБиКТБТГ¶µФґµиНЎСєа¤ГЧиН§ server дґй<br>ЎГШіТµГЗЁКНєЄЧиНа¤ГЧиН§ Server НХЎ¤ГСй§";
}else if($r==3){ echo "ўйНБЩЕЗФ·ВТЕСВ¶ЩЎНСѕаґ·бЕйЗ"; }
?></strong></font></td></tr>
</table>
<? } ?>
<table width="95%" border="0" align="center" >
<tr><td align="center"><input name="add" type="submit" value="НСѕаґ·ўйНБЩЕЗФ·ВТЕСВ" ></td></tr>
</table>
<input type="hidden" name="method" value="updatecollege">
</form>
<table width="95%" height="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_15"];?>">
<td align="center" width="5%"><strong>ГЛСКЗФ·ВТЕСВ</strong></td>
<td align="center" width="35%"><strong>ЄЧиНЗФ·ВТЕСВ</strong></td>
<td align="center" width="15%"><strong>ЄЧиНВиНЗФ·ВТЕСВ</strong></td>
<td align="center" width="20%"><strong>ip ўН§ЗФ·ВТЕСВ</strong></td>
<td align="center" width="10%"><strong>К¶Т№Р<br>ЎТГгЄй§Т№</strong></td>
</tr>
<?
$i=0;
$oCd->RScollegedetail();
while($oCd->GetRecord()){
if(($i%2) == 0)
echo "<tr>";
else
echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_16"]."\">";
?>
<td align="center"><? echo $oCd->collegeID; ?></td>
<td> <? echo $oCd->collegeName; ?></td>
<td> <? echo $oCd->collegeAbbr; ?></td>
<td> <? echo $oCd->collegeHost; ?></td>
<td align="center"><? if($oCd->collegeType=="Y"){ ?><img src="../picture/apply.gif" alt="гЄй§Т№"><? }else{ ?><img src="../picture/delete.gif" alt="дБи¶ЩЎгЄй§Т№"><? } ?>
</td></tr>
<? $i++;} if($i==0){ ?>
<tr><td align="center" bgcolor="#FFFFFF" colspan="5"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** дБиБХўйНБЩЕЗФ·ВТЕСВ **</font></td></tr>
<? } ?>
</table><? } ?>
<table border="0" align="center" width="100%"><tr><td align="center">
<br>
<input type="hidden" name="method">
<input type="hidden" name="editID">
<input type="button" name="cancel" value="ЎЕСєКЩиаБ№ЩЛЕСЎ" onClick="location.href = '?mm=1'">
</td>
</tr></table>
</fieldset>
<br>
</td>
</tr>
</table>
</body>
</html>
<script language="javascript">
function checkFormat(editID){
var agree=confirm("¤ШіµйН§ЎТГбЎйдўўйНБЩЕЗФ·ВТЕСВб№и№Н№гЄиЛГЧНдБи ?");
if (agree){
document.ff.editID.value=editID;
document.ff.method.value="addcollege";
document.ff.submit();
return true;
}else{
return false ;
}
}
</script>
|