@@ -1,4 +1,4 @@ | |||||
<?php /* Smarty version 2.6.16, created on 2007-07-12 07:12:04 | |||||
<?php /* Smarty version 2.6.16, created on 2007-07-21 09:09:29 | |||||
compiled from index.tpl */ ?> | compiled from index.tpl */ ?> | ||||
<?php $_smarty_tpl_vars = $this->_tpl_vars; | <?php $_smarty_tpl_vars = $this->_tpl_vars; | ||||
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array())); | $this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array())); | ||||
@@ -1,4 +1,4 @@ | |||||
<?php /* Smarty version 2.6.16, created on 2007-07-12 07:08:16 | |||||
<?php /* Smarty version 2.6.16, created on 2007-07-21 09:13:09 | |||||
compiled from about.tpl */ ?> | compiled from about.tpl */ ?> | ||||
<?php $_smarty_tpl_vars = $this->_tpl_vars; | <?php $_smarty_tpl_vars = $this->_tpl_vars; | ||||
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array())); | $this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array())); | ||||
@@ -1,4 +1,4 @@ | |||||
<?php /* Smarty version 2.6.16, created on 2007-05-22 18:21:22 | |||||
<?php /* Smarty version 2.6.16, created on 2007-07-21 12:08:53 | |||||
compiled from xml.tpl */ ?> | compiled from xml.tpl */ ?> | ||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); | <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); | ||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'xml.tpl', 6, false),)), $this); ?> | smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'xml.tpl', 6, false),)), $this); ?> | ||||
@@ -1,4 +1,4 @@ | |||||
<?php /* Smarty version 2.6.16, created on 2007-07-12 07:08:13 | |||||
<?php /* Smarty version 2.6.16, created on 2007-07-21 09:12:43 | |||||
compiled from getinvolved.tpl */ ?> | compiled from getinvolved.tpl */ ?> | ||||
<?php $_smarty_tpl_vars = $this->_tpl_vars; | <?php $_smarty_tpl_vars = $this->_tpl_vars; | ||||
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array())); | $this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array())); | ||||
@@ -19,9 +19,7 @@ unset($_smarty_tpl_vars); | |||||
<p> | <p> | ||||
Other than that it's up to you. It can be in any language. You can host them yourself or we can host it for you. | Other than that it's up to you. It can be in any language. You can host them yourself or we can host it for you. | ||||
</p> | </p> | ||||
<p><span class="highlight">You can grab the code for this site and view some developent tickets <a href="http://code.goo | |||||
gle.com/p/planningalerts/">here</a> and join our developer mailing list <a href="http://groups.google.com/group/planningaler | |||||
ts-dev"> here</a>.</span> | |||||
<p><span class="highlight">You can grab the code for this site and view some developent tickets <a href="http://code.google.com/p/planningalerts/">here</a> and join our developer mailing list <a href="http://groups.google.com/group/planningalerts-dev"> here</a>.</span> | |||||
</p> | </p> | ||||
<h3>I work for a local authority and would like to make our data available</h3> | <h3>I work for a local authority and would like to make our data available</h3> | ||||
<p> | <p> | ||||
@@ -1,4 +1,4 @@ | |||||
<?php /* Smarty version 2.6.16, created on 2007-07-12 07:12:04 | |||||
<?php /* Smarty version 2.6.16, created on 2007-07-21 09:13:09 | |||||
compiled from header.tpl */ ?> | compiled from header.tpl */ ?> | ||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||||
@@ -19,7 +19,7 @@ class confirmed_page { | |||||
//Setup | //Setup | ||||
function setup (){ | function setup (){ | ||||
//Grab the user | //Grab the user | ||||
if(isset($_GET['cid'])){ | if(isset($_GET['cid'])){ | ||||
$confirm_id = $_GET['cid']; | $confirm_id = $_GET['cid']; | ||||
@@ -27,7 +27,7 @@ | |||||
} | } | ||||
//Count of authorities | //Count of authorities | ||||
$authority_sql = "select count(authority_id) from authority"; | |||||
$authority_sql = "select count(authority_id) from authority where disabled = 0 or disabled is null"; | |||||
$results = $db->getAll($authority_sql); | $results = $db->getAll($authority_sql); | ||||
if(sizeof($results) >0){ | if(sizeof($results) >0){ | ||||
$authority_count = $results[0][0]; | $authority_count = $results[0][0]; | ||||
@@ -32,15 +32,8 @@ if (isset($_GET['year'])){ | |||||
//grab urls | //grab urls | ||||
$applications = scrape_applications_islington($search_url, $info_url_base, $comment_url_base); | $applications = scrape_applications_islington($search_url, $info_url_base, $comment_url_base); | ||||
//comment and info urls | |||||
$info_url_base = "http://www.blaby.gov.uk/publicaccess/dc/DcApplication/application_detailview.aspx?caseno="; | |||||
$comment_url_base = "http://www.blaby.gov.uk/publicaccess/dc/DcApplication/application_comments_entryform.aspx?caseno="; | |||||
print_r($applications); | |||||
//Display applications | //Display applications | ||||
// display_applications($applications, "Balby District Council", "Balby"); | |||||
display_applications($applications, "London Borough of Islington", "Islington"); | |||||
?> | ?> |
@@ -2,7 +2,7 @@ | |||||
<p>You'd probably know if your next door neighbour was going to knock their house down (you'd get a letter through the door telling you they had applied for planning permission and asking you what you thought about it). But you probably never find out if the old cinema or pub 5 streets away is going to be converted into luxury flats until <a href="http://www.bbc.co.uk/cult/hitchhikers/gallery/tv/fordprosser.shtml">the bulldozers turned up</a>.</p> | <p>You'd probably know if your next door neighbour was going to knock their house down (you'd get a letter through the door telling you they had applied for planning permission and asking you what you thought about it). But you probably never find out if the old cinema or pub 5 streets away is going to be converted into luxury flats until <a href="http://www.bbc.co.uk/cult/hitchhikers/gallery/tv/fordprosser.shtml">the bulldozers turned up</a>.</p> | ||||
<p> | <p> | ||||
PlanningAlerts.com is a free service built by <a href="http://www.memespring.co.uk">Richard Pope</a>, <a href="http://brainoff.com">Mikel Maron</a>, Sam Smith and Duncan Parkes. The site is kindly hosted by <a href="http://www.mysociety.org">mySociety.org</a>. It searches as many local authority planning websites as it can find and emails you details of applications near you. The aim of this to enable shared scrutiny of what is being built (and <a href="http://www.urban75.net/vbulletin/showthread.php?t=154006" title="Death of the Queen">knocked down</a>) in peoples communities. | |||||
PlanningAlerts.com is a free service built by <a href="http://www.memespring.co.uk">Richard Pope</a>, <a href="http://brainoff.com">Mikel Maron</a>, Sam Smith, Duncan Parkes and Tom Hughes. The site is kindly hosted by <a href="http://www.mysociety.org">mySociety.org</a>. It searches as many local authority planning websites as it can find and emails you details of applications near you. The aim of this to enable shared scrutiny of what is being built (and <a href="http://www.urban75.net/vbulletin/showthread.php?t=154006" title="Death of the Queen">knocked down</a>) in peoples communities. | |||||
</p> | </p> | ||||
<h3 id="authorities">Planning authorities currently covered by the service</h3> | <h3 id="authorities">Planning authorities currently covered by the service</h3> | ||||
@@ -23,4 +23,4 @@ | |||||
You can get in touch at <a href="mailto:team@planningalerts.com">team@planningalerts.com</a> | You can get in touch at <a href="mailto:team@planningalerts.com">team@planningalerts.com</a> | ||||
</p> | </p> | ||||
{include file="footer.tpl"} | |||||
{include file="footer.tpl"} |
@@ -2,6 +2,19 @@ | |||||
require_once ("config.php"); | require_once ("config.php"); | ||||
print "testy test"; | |||||
$xml = safe_scrape_page('http://www.wansbeck.gov.uk/planning.cfm?day=17&month=7&year=2007'); | |||||
$parsed_applications = simplexml_load_string($xml); | |||||
//Loop through the applications, add tinyurl / google maps etc and add to array | |||||
if(sizeof($parsed_applications) >0){ | |||||
foreach($parsed_applications->applications->application as $parsed_application){ | |||||
} | |||||
} | |||||
print "ddd"; | |||||
?> | ?> |