www.pudn.com > crm_lm7ap6.rar > changeLocationButton.inc, change:2011-07-26,size:627b


<?php
/**
 * @copyright 2011 City of Bloomington, Indiana
 * @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
 * @author Cliff Ingham <inghamn@bloomington.in.gov>
 */
$return_url = new URL($_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']);
foreach ($_GET as $key=>$value) {
	if ($key!=='location') {
		$return_url->$key = $value;
	}
}
$url = BASE_URL.'/locations?return_url='.urlencode($return_url);
echo "<div class=\"changeLocationButton\">";
echo $this->template->linkButton(
	'Lookup Location',$url,'edit','findAddressButton',null,'button'
);
echo "
</div>
<div id=\"find_location_overlay\"></div>
";