Automatically exported from code.google.com/p/planningalerts
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

33 satır
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://www.planning.cityoflondon.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://www.planning.cityoflondon.gov.uk/PublicAccess/tdc/DcApplication/application_detailview.aspx?caseno=";
  20. $comment_url_base = "http://www.planning.cityoflondon.gov.uk/PublicAccess/tdc/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, "The City of London", "The City of London");
  25. ?>