Viewing file: processUmMenu.php (1.69 KB) -rwxr-xr-x 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"); $oC = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB'], $GLOBALS['USER'], $GLOBALS['PASSWORD']); $obj = new ummenu($oC); if($_POST['method']=="add"){ $obj->AddNew(); $obj->MnStID=$_POST['MnStID']; //$obj->MnID=$MnID; //$obj->MnSeq=$MnSeq; $obj->MnIcon=$_POST['MnIcon']; $obj->MnNameT=$_POST['MnNameT']; $obj->MnNameE=$_POST['MnNameE']; $obj->MnURL=$_POST['MnURL']; $obj->MnDesc=$_POST['MnDesc']; $obj->MnToolbar=$_POST['MnToolbar']; $obj->MnToolbarSeq=$_POST['MnToolbarSeq']; $obj->MnToolbarIcon=$_POST['MnToolbarIcon']; $obj->MnParentMnID=$_POST['MnParentMnID']; $obj->MnLevel=$_POST['MnLevel']; $obj->Save(); }else if($_POST['method']=="edit"){ $obj->SearchByKey($_POST['MnID']); $obj->GetRecord(); $obj->Edit(); $obj->MnIcon=$_POST['MnIcon']; $obj->MnNameT=$_POST['MnNameT']; $obj->MnNameE=$_POST['MnNameE']; $obj->MnURL=$_POST['MnURL']; $obj->MnDesc=$_POST['MnDesc']; $obj->MnToolbar=$_POST['MnToolbar']; $obj->MnToolbarSeq=$_POST['MnToolbarSeq']; $obj->MnToolbarIcon=$_POST['MnToolbarIcon']; $obj->Save(); }else if($_POST['method']=="delete"){ $obj->SearchByKey($_POST['MnID']); $obj->GetRecord(); $obj->Delete(); }else if ($_POST['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=".$_POST['MnStID']."'>";
?>
|