コード例 #1
0
 public function actionBuscarCidadepetshop()
 {
     $parametros = Util::getParametrosJSON();
     $cidade = Cidade::model()->findByPk($parametros['id']);
     Util::setParametrosJSON($cidade);
 }
コード例 #2
0
ファイル: camposBusca.php プロジェクト: jonaskreling/haras
echo CHtml::statefulForm($this->createUrl('busca'), "post", array('id' => 'formBuscaInicial', 'class' => 'form-horizontal'));
?>
					<div class="form-group">
						<div class="col-xs-6 col-sm-2">
							<?php 
echo CHtml::dropDownList('tpnegocio', $this->tpnegocio, CHtml::listData(Tpnegocio::model()->findAll(), 'id', 'tpnegocio'), array('empty' => 'Todos negócio', 'class' => 'form-control', 'require' => ''));
?>
						</div>
						<div class="col-xs-6 col-sm-2">
							<?php 
echo CHtml::dropDownList('tpimovel', $this->tpimovel, CHtml::listData(Tpimovel::model()->findAll(), 'id', 'tpimovel'), array('empty' => 'Todos imóveis', 'class' => 'form-control', 'require' => ''));
?>
						</div>
						<div class="col-xs-6 col-sm-2">
							<?php 
echo CHtml::dropDownList('cidade', $this->cidade, CHtml::listData(Cidade::model()->findAll(), 'id', 'cidade'), array('empty' => 'Todas cidades', 'class' => 'form-control', 'require' => ''));
?>
						</div>
						<div class="col-xs-6 col-sm-2">
							<?php 
$valores = array('50000' => '50.000,00', '100000' => '100.000,00', '200000' => '200.000,00', '500000' => '500.000,00', '2000000' => '2.000.000,00', '1000000000' => 'sem limites');
echo CHtml::dropDownList('valor', $this->valor, $valores, array('empty' => 'Todos valores', 'class' => 'form-control', 'require' => ''));
?>
						</div>
						<div class="col-xs-12 col-sm-4 text-right esconder-celular">
							<button type='button' class='btn btn-default btn-block' ng-click="limpar('<?php 
echo $this->createUrl('busca');
?>
')">
								<span class='glyphicon glyphicon-refresh' aria-hidden='true'></span>&nbsp;Limpar busca
							</button>
コード例 #3
0
ファイル: anuncie.php プロジェクト: jonaskreling/haras
				
			</div>
			<div class="form-group col-md-6">
				<label for="descricao">Tipo de imóvel*</label>
				<?php 
echo CHtml::dropDownList('tpimovel', '', CHtml::listData(Tpimovel::model()->findAll(), 'id', 'tpimovel'), array('empty' => '-- Selecione --', 'class' => 'form-control', 'require' => '', 'ng-model' => 'anuncio.tpimovel'));
?>
			</div>
			<div class="form-group col-md-6">
				<label for="endereco">Endereço do anúncio</label>
				<input type="text" class="form-control" id="endereco" name="endereco" placeholder="Endereço/Localização" maxlength="100" require='' ng-model='anuncio.endereco' />
			</div>
			<div class="form-group col-md-6">
				<label for="descricao">Cidade*</label>
				<?php 
echo CHtml::dropDownList('cidade', '', CHtml::listData(Cidade::model()->findAll(), 'id', 'cidade'), array('empty' => '-- Selecione --', 'class' => 'form-control', 'require' => '', 'ng-model' => 'anuncio.cidade'));
?>
			</div>
			<div class="form-group col-md-6">
				<label for="valor">Valor* <small>(R$)</small></label>
				<input type="text" class="form-control text-right bold-font" id="valor" require='' ng-model='anuncio.valor' ui-money-mask maxlength='17' />
				<input type="hidden" value='{{anuncio.valor}}' name='valor' />
			</div>
			<div class="form-group col-md-6">
				<label for="valor">Tempo</label>
				<select class='form-control' name='qtdcomodo'>
					<option value='0'></option>
  					<option value='1'>Dia</option>
  					<option value='2'>Semana</option>
  					<option value='3'>Quinzena</option>
  					<option value='4'>Mês</option>