Advertisement
snuffi01

Untitled

Mar 15th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.09 KB | None | 0 0
  1. // Postgresql
  2. SELECT
  3. event_recurring_id,
  4. description,
  5. extension,
  6. priority,
  7. show_return,
  8. start_day,
  9. start_time,
  10. end_day,
  11. end_time,
  12. event_type,
  13. start_epoch,
  14. to_timestamp(start_epoch) AS "start",
  15. end_epoch,
  16. to_timestamp(end_epoch) AS stop
  17. FROM "public".event_recurring
  18. ORDER BY start_day, start_time
  19.  
  20.  
  21. //Events/custom add
  22.  
  23. $keys["event_recurring_id"] = 0;
  24. require_once ("saresources/included_files/sa_api.php");
  25.         $data[extension_id]     = $values["extension"];
  26.         $data[description]           = $values["description"];
  27.         $data[priority]                     = $values["priority"];
  28. $data[show_return]                     = $values["show_return"];
  29. $data[start_day]                     = $values["start_day"];
  30. $data[end_day]                     = $values["end_day"];
  31. $data[event_type_id]                     = $values["event_type"];
  32. $data[start_time]                     = $values["start_time"];
  33. $data[end_time]                     = $values["end_time"];
  34.  
  35.         $api = new sa_api();
  36.         $json = $api->post('api/add_extension_event_recurring', $data);
  37.  
  38. return false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement