Viewing file: processUpdatePersonDept.php (1.18 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once("../../class/clsConnection.php");
include_once("../../class/clsDB.php");
include_once "../global.php";
include_once "../link/function.php";
include_once "../class/clsTable.php";
include_once "../class/clsDepartment.php";
include_once "../class/clsPerson.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EPERSON'], $GLOBALS['DBUSER_EPERSON'], $GLOBALS['DBPASS_EPERSON']);
$oDP = new Department($oC);
$oDP2 = new Department($oC);
$oDP3 = new Department($oC);
$oPS = new Person($oC);
$oPS->RSAllperson();
while($oPS->GetRecord()){
if($selectdept[$oPS->personId]=="Y"){
//echo 'selectdept[oPS->personId]'.$selectdept[$oPS->personId].'<br>';
//echo 'deptId[oPS->personId]'.$deptId[$oPS->personId].'<br>';
$oPS->Edit();
$oPS->deptId=$deptId[$oPS->personId];
$oPS->Save();
}
if($selectdept2[$oPS->personId]=="Y"){
//echo 'selectdept2[oPS->personId]'.$selectdept2[$oPS->personId].'<br>';
//echo 'deptIdno[oPS->personId]'.$deptIdno[$oPS->personId].'<br>';
$oPS->Edit();
$oPS->deptId=$deptIdno[$oPS->personId];
$oPS->Save();
}
}
echo "<meta http-equiv='refresh' content='0; URL=updatePersonDept.php'>";
?>
|