|
- <?php
-
-
- require_once('config.php');
- require_once('application.php');
-
-
- $current_date = getdate();
- $day = $current_date['mday'] -5;
- $month = $current_date['mon'];
- $year = $current_date['year'];
-
-
- if (isset($_GET['day'])){
- $day = $_GET['day'];
- }
- if (isset($_GET['month'])){
- $month = $_GET['month'];
- }
- if (isset($_GET['year'])){
- $year = $_GET['year'];
- }
-
-
- $search_url = "http://pa.eastcambs.gov.uk/publicaccess/tdc/DcApplication/application_searchresults.aspx?searchtype=WEEKLY&selWeeklyListRange=#daterange&weektype=VAL";
- $date_range = "{$day}%2F{$month}%2F{$year}%7C{$day}%2F{$month}%2F{$year}";
- $search_url = str_replace("#daterange", $date_range, $search_url);
-
-
- $info_url_base = "http://pa.eastcambs.gov.uk/publicaccess/tdc/DcApplication/application_detailview.aspx?caseno=";
- $comment_url_base = "http://pa.eastcambs.gov.uk/publicaccess/tdc/DcApplication/application_comments_entryform.aspx?caseno=";
-
-
- $applications = scrape_applications_publicaccess($search_url, $info_url_base, $comment_url_base);
-
-
- display_applications($applications, "East Cambridgeshire District Council", "East Cambs");
-
- ?>
|