Viewing file: templateSpe.php (1.4 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//include_once("../ums/clsConnection.php");
include_once("../ums/clsUser.php");
include_once("class/clsOfficer.php");
//include_once("class/clsStudentMaster.php");
include_once("class/clsPrefix.php");
$conn = new Connection();
$oOf = new Officer();
//$oSm = new StudentMaster();
$oPf = new Prefix();
//$oC = new clsConnection();
$oU = new clsUser();
/*
$i=0;
$oSm->RSStudentMaster();
while($oSm->GetRecord()){
*/
$oOf->RSOfficer();
while($oOf->GetRecord()){
//die("srtrtrt");
// อาจารย์
echo "<br>";
//$oPf->SearchByKey($oOf->prefixId);
//$oPf->GetRecord();
//$n=$oPf->prefixName.$oOf->officerName." ".$oOf->officerSurname;
$n=$oOf->officerName." ".$oOf->officerSurname;
//echo "$i ->".$oOf->studentId."<br>";
if($oOf->officerType==2){
$oU->addNewUser($oOf->officerCode, $n, 4, 1, $oOf->officerCode, $oOf->officerCode, 1, 0);
}else{
$oU->addNewUser($oOf->officerCode, $n, 5, 1, $oOf->officerCode, $oOf->officerCode, 1, 0);
}
echo "$i ->".$n." : ".$oOf->officerId."<br>";
/*
echo "<br>";
//$oPf->SearchByKey($oSm->prefixId);
//$oPf->GetRecord();
//$n=$oPf->prefixName.$oSm->studentName." ".$oSm->studentSurname;
$n=$oSm->studentName." ".$oSm->studentSurname;
//echo "$i ->".$oOf->studentId."<br>";
$oU->addNewUser($oSm->studentCode, $n, 6, 1, $oSm->studentCode, $oSm->studentCode, 1, 0);
echo "$i ->".$n." : ".$oSm->studentId."<br>";
*/
$i++;
}
?>
|