Viewing file: processFileUpdate.php (1.21 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once "../global1.php";
include_once "../../class/clsDB.php";
include_once "../../class/clsConnection.php";
include_once "../class/clsFileUpdate.php";
$oC = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_EASS'], $GLOBALS['USER_EASS'], $GLOBALS['PASSWORD_EASS']);
$obj = new FileUpdate($oC);
if($method=="add"){
$obj->AddNew();
$obj->fileId=$fileId;
$obj->updateDate=$updateDate;
$obj->filename1=$filename1;
$obj->filename2=$filename2;
$obj->flagfile=$flagfile;
$obj->flagupdate=$flagupdate;
$obj->path=$path;
$obj->detail=$detail;
$obj->sysId=$sysId;
$obj->updatetime=$updatetime;
$obj->Save();
}else if($method=="edit"){
$obj->SearchByKey($fileId);
$obj->GetRecord();
$obj->Edit();
$obj->fileId=$fileId;
$obj->updateDate=$updateDate;
$obj->filename1=$filename1;
$obj->filename2=$filename2;
$obj->flagfile=$flagfile;
$obj->flagupdate=$flagupdate;
$obj->path=$path;
$obj->detail=$detail;
$obj->sysId=$sysId;
$obj->updatetime=$updatetime;
$obj->Save();
}else if($method=="delete"){
$obj->SearchByKey($fileId);
$obj->GetRecord();
$obj->Delete();
}
$obj->Close();
$oC->Disconnect();
echo "<meta http-equiv='refresh' content='0; URL=xxx.php'>";
?>
|