Changeset 465
- Timestamp:
- 11/25/08 14:34:36 (1 month ago)
- Files:
-
- trunk/apps/intranet/modules/maps/actions/actions.class.php (modified) (1 diff)
- trunk/apps/intranet/modules/maps/templates/indexSuccess.php (modified) (1 diff)
- trunk/apps/intranet/modules/maps/templates/showSuccess.php (modified) (2 diffs)
- trunk/plugins/sfWebBrowserPlugin/lib/sfCurlAdapter.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/apps/intranet/modules/maps/actions/actions.class.php
r3 r465 7 7 class mapsActions extends sfActions 8 8 { 9 public function executeIndex( )9 public function executeIndex($request) 10 10 { 11 if($ this->getRequestParameter('address'))12 $this->address = $ this->getRequestParameter('address');11 if($request->getParameter('address')) 12 $this->address = $request->getParameter('address'); 13 13 else 14 14 $this->address = false; 15 15 } 16 16 17 public function executeShow( )17 public function executeShow($request) 18 18 { 19 $this->sales = SalesPeer::retrieveByPk($ this->getRequestParameter('sales_id'));19 $this->sales = SalesPeer::retrieveByPk($request->getParameter('sales_id')); 20 20 } 21 21 } trunk/apps/intranet/modules/maps/templates/indexSuccess.php
r3 r465 1 1 <h3><?php echo ucfirst(__('map')) ?></h3> 2 <?php echo form_tag('maps ') ?>2 <?php echo form_tag('maps/index') ?> 3 3 Adresse : <?php echo input_tag('address', $address, array('size' => 40)) ?> 4 4 <hr /> trunk/apps/intranet/modules/maps/templates/showSuccess.php
r3 r465 15 15 $address .= $sales->getEstate()->getPostalcode().' '; 16 16 $address .= $sales->getEstate()->getCityValue().', FRANCE'; 17 if(!$map->addAddress($address, '<strong>'.ucfirst(__('sale')).':</strong><br /><br /> '.$address)): 18 $address = $sales->getEstate()->getAddress2().', '; 19 $address .= $sales->getEstate()->getPostalcode().' '; 20 $address .= $sales->getEstate()->getCityValue().', FRANCE'; 21 $map->addAddress($address, '<strong>'.ucfirst(__('sale')).':</strong><br /><br /> '.$address); 22 endif; 17 $map->addAddress($address, '<strong>'.ucfirst(__('sale')).'</strong><br />'.addslashes(ereg_replace(',', '<br />', $address))); 23 18 24 19 $address = $sales->getContactRelatedBySellerId()->getAddress1().', '; … … 27 22 $address .= $sales->getContactRelatedBySellerId()->getPostalcode().' '; 28 23 $address .= $sales->getContactRelatedBySellerId()->getCityValue().', '.$sales->getContactRelatedBySellerId()->getCountry(); 29 if(!$map->addAddress($address, '<strong>'.ucfirst(__('contact')).' :</strong><br /><br /> '.$sales->getContactRelatedBySellerId().'<br />'.addslashes($address))): 30 $address = $sales->getContactRelatedBySellerId()->getAddress2().', '; 31 $address .= $sales->getContactRelatedBySellerId()->getPostalcode().' '; 32 $address .= $sales->getContactRelatedBySellerId()->getCityValue().', FRANCE'; 33 $map->addAddress($address, '<strong>'.ucfirst(__('contact')).':</strong><br /><br /> '.$sales->getContactRelatedBySellerId().'<br />'.addslashes($address)); 34 endif; 24 $map->addAddress($address, '<strong>'.ucfirst(__('seller')).'</strong><br />'.$sales->getContactRelatedBySellerId().'<br />'.addslashes(ereg_replace(',', '<br />', $address))); 35 25 $map->showMap(); 36 26 ?> trunk/plugins/sfWebBrowserPlugin/lib/sfCurlAdapter.class.php
r3 r465 49 49 { 50 50 $curl = curl_init(); 51 if(PROD == true)52 51 curl_setopt($curl, CURLOPT_PROXY, 'terminus.oxalide.net:3128'); 53 52
