Ejemplo n.º 1
0
     //RSVP
 //RSVP
 case "not-attend":
     $rsvp = new WT_RSVP();
     $rsvp->notattend_event($_POST["event_id"]);
     $rsvp->panel_markup($_POST["event_id"]);
     break;
 case "attend":
     $rsvp = new WT_RSVP($_POST["event_id"]);
     $rsvp->attend_event($_POST["event_id"]);
     $rsvp->panel_markup($_POST["event_id"]);
     break;
 case "delete-rsvp":
     if ($_POST["rsvp_id"]) {
         $rsvp = new WT_RSVP($_POST["rsvp_id"]);
         $rsvp->remove();
         $rsvp->db_response("json");
         //echo json_encode(array("type"=>"success"));
     }
     break;
     // EVENTS
 // EVENTS
 case "get_event":
     $event = new WT_Event($_POST["event_id"]);
     if (!empty($_POST["event_id"])) {
         $event->retrieve();
     } else {
         $event->defaults();
     }
     echo json_encode($event->db_out(null, 0));
     break;