function notesDispatch($op) { switch ($op) { case "notes": notes(); break; case "displaynotes": displaynotes(); break; case "addnotes": addnotes(); break; case "insnotes": insnotes(); break; case "modnotes": modnotes(); break; case "upnotes": upnotes(); break; case "delnotes": delnotes(); break; } }
$output = array('status' => 'success', 'results' => $status); } else { $output = array('status' => 'error'); } } else { if ($method == 'ajaxgetprojects') { $status = ajaxgetprojects(); if ($status) { $output = array('status' => 'success', 'results' => $status); } else { $output = array('status' => 'error'); } } else { if ($method == 'delnotes') { $id = $_GET['id']; $status = delnotes($id); if ($status == 'success') { $output = array('status' => 'success'); } else { $output = array('status' => 'error'); } } else { if ($method == 'updatenotes') { $id = $_GET['id']; $stat = $_GET['status']; $status = updatenotes($id, $stat); if ($status == 'success') { $output = array('status' => 'success'); } else { $output = array('status' => 'error'); }