예제 #1
0
 public static function getPropertyPrices($for = "minimum")
 {
     if ($for == 'maximum') {
         $prices = array_merge([125000, 150000], range(200000, 500000, 50000), range(600000, 1000000, 100 * 1000), range(2000000, 6000000, 1000000));
         $prices = array_combine($prices, Locale::formatMoneyArray($prices));
     } else {
         $prices = array_merge(range(75000, 150000, 25000), range(200000, 500000, 50000), range(600000, 1000000, 100 * 1000));
         $prices = array_combine($prices, Locale::formatMoneyArray($prices));
     }
     return $prices;
 }
예제 #2
0
<?php

/**
 * @var $this  SiteController
 * @var $model PublicClientRegisterForm
 * @var $form  CActiveForm  @var $sent
 */
$minPrices = array_merge(range(75000, 150000, 25000), range(200000, 500000, 50000), range(600000, 1000000, 100 * 1000));
$minPrices = array_combine($minPrices, Locale::formatMoneyArray($minPrices));
$maxPrices = array_merge([125000, 150000], range(200000, 500000, 50000), range(600000, 1000000, 100 * 1000), [2000000, 3000000]);
$maxPrices = array_combine($maxPrices, Locale::formatMoneyArray($maxPrices));
?>


<div class="top-widget-container wide register-form-block">
	<div class="inner-padding">

		<div class="row-fluid">
			<div class="form-header no-margin">
				Register With Wooster & Stock
			</div>
		</div>


		<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'register-form'));
?>

		<?php 
if ($result['type'] == 'success') {
    ?>
예제 #3
0
 public function getBudgetValues(Client $client = null)
 {
     $prices = array_merge([125000, 150000], range(200000, 500000, 50000), range(600000, 1000000, 100 * 1000), range(1250000, 2000000, 250000), range(2500000, 6000000, 500000));
     $prices = array_merge($prices, range(75000, 150000, 25000), range(200000, 500000, 50000), range(600000, 1000000, 100 * 1000));
     if ($client && $client->budget) {
         $prices = array_merge($prices, [$client->budget]);
     }
     $prices = array_combine($prices, Locale::formatMoneyArray($prices));
     ksort($prices);
     return $prices;
 }