Esempio n. 1
0
     //after return xml shall not run more code.
     break;
 case "getbatchline":
     //return xml table to grid
     echo '<html  xmlns:ntb="http://www.nitobi.com">';
     $o->includeGeneralFile();
     $o->allowedit = $_REQUEST["allowedit"];
     $o->getBatchlineform();
     echo '</html>';
     exit;
     //after return xml shall not run more code.
     break;
 case "searchbatchline":
     //return xml table to grid
     $wherestring = " WHERE batch_id={$o->batch_id}";
     $o->showBatchline($wherestring);
     exit;
     //after return xml shall not run more code.
     break;
 case "saveBatchline":
     //process submited xml data from grid
     $o->saveBatchline();
     break;
 case "delete":
     if ($o->deleteBatchAjax($o->batch_id)) {
         //success
         $msg = "<div class='statusmsg'>Record deleted successfully.</div>";
         $arr = array("msg" => $msg, "status" => 1);
         echo json_encode($arr);
     } else {
         //failed