Viewing file: processUmMenu.php (1.65 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once("global.php");
include_once("../class/clsConnection.php");
include_once("../class/clsDB.php");
include_once("clsUmMenu.php");
$conn = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB'], $GLOBALS['USER'], $GLOBALS['PASSWORD']);
$obj = new ummenu($oC);
if($method=="add"){
$obj->AddNew();
$obj->MnStID=$MnStID;
//$obj->MnID=$MnID;
$obj->MnSeq=$MnSeq;
$obj->MnIcon=$MnIcon;
$obj->MnNameT=$MnNameT;
$obj->MnNameE=$MnNameE;
$obj->MnURL=$MnURL;
$obj->MnDesc=$MnDesc;
$obj->MnToolbar=$MnToolbar;
$obj->MnToolbarSeq=$MnToolbarSeq;
$obj->MnToolbarIcon=$MnToolbarIcon;
$obj->MnParentMnID=$MnParentMnID;
$obj->MnLevel=$MnLevel;
$obj->Save();
}else if($method=="edit"){
$obj->SearchByKey($MnID);
$obj->GetRecord();
$obj->Edit();
//$obj->MnStID=$MnStID;
//$obj->MnID=$MnID;
$obj->MnSeq=$MnSeq;
$obj->MnIcon=$MnIcon;
$obj->MnNameT=$MnNameT;
$obj->MnNameE=$MnNameE;
$obj->MnURL=$MnURL;
$obj->MnDesc=$MnDesc;
$obj->MnToolbar=$MnToolbar;
$obj->MnToolbarSeq=$MnToolbarSeq;
$obj->MnToolbarIcon=$MnToolbarIcon;
$obj->MnParentMnID=$MnParentMnID;
$obj->MnLevel=$MnLevel;
$obj->Save();
}else if($method=="delete"){
$obj->SearchByKey($MnID);
$obj->GetRecord();
$obj->Delete();
}else if ($method=="updown"){
$obj->swapMenu($ud, $MnStID, $MnID, $MnSeq, $PmnID, $MnLevel);
}
//$obj->Close();
//$conn->Disconnect();
//else if($method=="deletebytopic"){
// $flg = $obj->DeleteMenuByTopic($MnID);
//}
// if ($flg==false){
// $msg_err = "à¡Ô´¢éͼԴ¼ÅÒ´ : " . mysql_error();
// }
//
// $conn->Disconnect();
echo "<meta http-equiv='refresh' content='0; URL=umShowMenu.php?MnStID=$MnStID'>";
?>
|