Viewing file: addalumni_1.php (11.01 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//include_once "template.php";
include_once "../link/function.php";
include_once "../class/clsPrefix.php";
include_once "../class/clsNation.php";
include_once "../class/clsReligion.php";
include_once("../class/clsGeneration.php");
$oPf = new Prefix($oC2);
$oPf2 = new Prefix($oC2);
$oPf3 = new Prefix($oC2);
$oNa = new Nation($oC2);
$oRg = new Religion($oC2);
$oGn = new Generation($oC2);
include_once "../class/clsalumnimain.php";
include_once "../class/clsalumnibio.php";
include_once "../class/clsprogramalumni.php";
confirmSubmit();
openWindow();
$oAm = new AlumniMain($oC1);
$oAb = new AlumniBio($oC1);
$oPg_A = new Programalumni($oC1);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<table width="602" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td>
<label>
<div align="center">
<table width="602" align="center" border="0" cellpadding="0" cellspacing="1">
<tr>
<td colspan="4"><br>
<table width="602" border="1" cellpadding="0" cellspacing="" bordercolor="<?php echo $GLOBALS['COLOR_BORDER_TABLE_1'];?>">
<?php
$oAm->SearchByKey($alumniId);
$oAm->GetRecord();
$oAb->SearchByKey($alumniId);
$oAb->GetRecord();
$oPf->SearchByKey($oAm->prefixId);
$oPf->GetRecord();
?>
<tr align="left">
<td height="22" colspan="4" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">àÅ¢·ÕèºÑµÃ»ÃШӵÑÇ»ÃЪҪ¹</font></td>
<td height="22" colspan="4"bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>">
<input type="text" name="citizenId" value="<?php echo $oAm->citizenId;?>" size="15" >
</td>
</tr>
<tr align="left">
<td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ª×èÍ-Ê¡ØÅä·Â</font></td>
<td height="22" colspan="4"><input type="text" name="prefixName" value="<?php echo $oPf->prefixName;?>" size="7" class="input1" readonly>
<IMG src="../picture/search.gif" width="15" height="19" border="0" align="absmiddle" id=IMG3 style="CURSOR: hand" onclick='OpenWindow("prefixTable.php",400,400)'>
<input type="text" name="studentName" value="<?php echo $oAm->studentName;?>" size="15">
<input type="text" name="studentSurname" value="<?php echo $oAm->studentSurname;?>" size="15">
<input type="hidden" name="prefixId" value="<?php echo $oPf->prefixId;?>">
</td>
</tr>
<tr align="left">
<td colspan="4" height="22" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ª×èÍ-Ê¡ØÅ
(Íѧ¡ÄÉ) </font></td>
<td colspan="4" height="22" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>">
<input type="text" name="prefixNameEng" size="10" class="input3" value="<?php echo $oPf->prefixNameEng;?>" readonly>
<input type="text" name="studentNameEng" value="<? echo $oAm->studentNameEng;?>" size="15" >
<input type="text" name="studentSurnameEng" value="<? echo $oAm->studentSurnameEng ;?>" size="15" >
</td>
</tr>
<?
$oPf2->SearchByKey($oAb->o1prefixId);
$oPf2->GetRecord();
?>
<tr align="left">
<td colspan="4" height="22" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ª×èÍ-Ê¡ØÅ
(à´ÔÁ 1) </font></td>
<td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
<input type="text" name="o1prefixName" value="<?php echo $oPf->prefixName;?>" size="7" class="input1" readonly>
<IMG src="../picture/search.gif" width="15" height="19" class='box' border="0" align="absmiddle" id=IMG3 style="CURSOR: hand" onclick='OpenWindow("prefixOld1Table.php",400,400)'>
<input type="text" name="o1fName" value="<? echo $oAb->o1fName;?>" size="15">
<input type="text" name="o1lName" value="<? echo $oAb->o1lName;?>" size="15">
<input type="hidden" name="o1prefixId" value="<? echo $oPf2->prefixId;?>" >
</font></td>
</tr>
<?
$oPf3->SearchByKey($oAb->o2prefixId);
$oPf3->GetRecord();
?>
<tr align="left" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>">
<td colspan="4" height="22" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ª×èÍ-Ê¡ØÅ
(à´ÔÁ 2) </font></td>
<td colspan="4" height="22" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
<input type="text" name="o2prefixName" value="<?php echo $oPf->prefixName;?>" size="7" class="input3" readonly>
<IMG src="../picture/search.gif" width="15" height="19" class='box' border="0" align="absmiddle" id=IMG3 style="CURSOR: hand" onclick='OpenWindow("prefixOld2Table.php",400,400)'>
<input type="text" name="o2fName" value="<? echo $oAb->o2fName;?>" size="15">
<input type="text" name="o2lName" value="<? echo $oAb->o2lName;?>" size="15">
<input type="hidden" name="o2prefixId" value="<? echo $oPf3->prefixId;?>">
<input type="hidden" name="o2prefixNameEng">
</font></td>
</tr>
<?
if($oAm->studentSex == "F")
$sex = "ËÔ§";
else if($oAm->studentSex == "M")
$sex = "ªÒÂ";
?>
<tr align="left">
<td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">à¾È</font></td>
<td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">
<?php echo $sex;?> ËÁÙèàÅ×Í´ <input type="text" name="bloodGroup" value="<?php echo $oAb->bloodGroup;?>" size="3" >
</font></td>
</tr>
<tr align="left" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>">
<td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ÊѪҵÔ</font></td>
<td height="22" colspan="4"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><? echo $oNa->selectHTML("nationId",$oAb->nationId);?> ÈÒÊ¹Ò <? echo $oRg->selectHTML("religionId",$oAb->religionId);?></font>
</td>
</tr>
<tr align="left">
<td colspan="4" height="22" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">Çѹà¡Ô´</font></td>
<td colspan="4" height="22" >
<? if(($oAb->birthDate == '0000-00-00') || ($oAb->birthDate =="")) {?> <script>DateInput('birthDate', true, 'DD/MM/YYYY','<?php echo getNowDateFw2();?>');</script><? } else {?> <script>DateInput('birthDate', true, 'DD/MM/YYYY','<?php echo splitDateDb($oAb->birthDate,"/");?>');</script><? } ?>
</td>
</tr>
<tr align="left" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>">
<td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">»Õ·Õèà¢éÒÈÖ¡ÉÒ</font></td>
<td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><input type="text" name="admitAcadYear" value="<?php echo $oAm->admitAcadYear;?>" size="4">
</font></td>
</tr>
<tr align="left">
<td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">»Õ·Õ診¡ÒÃÈÖ¡ÉÒ</font></td>
<td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><input type="text" name="finishAcadYear" value="<?php echo $oAm->finishAcadYear;?>" size="4">
</font></td>
</tr>
<tr align="left">
<td colspan="4" height="22" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ËÅÑ¡ÊÙµÃ</font></td>
<td colspan="4" height="22" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>">
<? echo $oPg_A->selectHTML2("programId",$oAm->programId);?>
</font></td>
</tr>
<?
$oGn->SearchByKey($oAm->genNo);
$oGn->GetRecord();
?>
<tr align="left">
<td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ÃØè¹·Õè</font></td>
<td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><input type="text" name="genNo" value="<?php echo $oGn->genNo;?>" size="4">
</font></td>
</tr>
<tr align="left" bgcolor="<?php echo $GLOBALS['COLOR_BG_TD_4'];?>">
<td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ÍÕàÁÅì</font></td>
<td colspan="4" height="22"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>"><input type="text" name="studentEmail" value="<?php echo $oAm->studentEmail;?>" size="40" >
</font></td>
</tr> <tr align="left">
<td colspan="4" height="22" ><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_4'];?>">ÃÙ»</font></td>
<td colspan="4" height="22" >
<input type="file" name="uploadfile" id="uploadfile" value="<?php echo $oAb->picturePath;?>" size="50">
<input type="hidden" name="picturePerson" value="<?php echo $oAb->picturePath;?>">
</td>
</tr>
<tr align="left">
<td colspan="4" height="22" ><font color="<?php echo $GLOBALS['COLOR_FONT_4'];?>" size="2"> </font></td>
<td colspan="4" height="22"> <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"><strong>(¢¹Ò´ÃÙ»ÀÒ¾¤ÇÃÁÕ¢¹Ò´
100x115 pixels)</strong></font></td>
</tr>
</table></td>
</tr>
<tr>
<td height="22" colspan="4" align="center"><br>
<input type="submit" name="add" value="ºÑ¹·Ö¡¢éÍÁÙÅ">
<input type="reset" name="clear" value="ź¢éÍÁÙÅ">
<input type="button" name="cancel" value="¡àÅÔ¡" >
<input type="hidden" name="method" value="edit">
<input type="hidden" name="alumniId" value="<?php echo $alumniId;?>">
<input type="hidden" name="status" value="<?php echo $status;?>">
</td>
</tr>
</table>
</div>
<br><br><br><br>
</td>
</tr>
</table>
|