Automatically exported from code.google.com/p/planningalerts
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

33 lignes
1.1 KiB

  1. <?php
  2. //Includes
  3. require_once('config.php');
  4. require_once('application.php');
  5. if (isset($_GET['day'])){
  6. $day = $_GET['day'];
  7. }
  8. if (isset($_GET['month'])){
  9. $month = $_GET['month'];
  10. }
  11. if (isset($_GET['year'])){
  12. $year = $_GET['year'];
  13. }
  14. //search url
  15. $search_url = "http://web.hullcc.gov.uk/publicaccess/tdc/DcApplication/application_searchresults.aspx?searchtype=WEEKLY&selWeeklyListRange=#daterange&weektype=VAL";
  16. $date_range = "{$day}%2F{$month}%2F{$year}%7C{$day}%2F{$month}%2F{$year}";
  17. $search_url = str_replace("#daterange", $date_range, $search_url);
  18. //comment and info urls
  19. $info_url_base = "http://web.hullcc.gov.uk/publicaccess/dc/DcApplication/application_detailview.aspx?caseno=";
  20. $comment_url_base = "http://web.hullcc.gov.uk/publicaccess/dc/DcApplication/application_comments_entryform.aspx?caseno=";
  21. //grab urls
  22. $applications = scrape_applications_publicaccess($search_url, $info_url_base, $comment_url_base);
  23. //Display applications
  24. display_applications($applications, "Kingston upon Hull City Council", "Kingston upon Hull");
  25. ?>