Automatically exported from code.google.com/p/planningalerts
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

33 行
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/dc/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. ?>