コード例 #1
0
ファイル: _search.php プロジェクト: qhyabdoel/hris_mujigae
		<div class="col-md-8">
			<div class="input-group">
				<span class="input-group-addon"><span class="fa fa-calendar"></span></span>
				<?php 
echo $form->textField($model, 'birthdate', array('class' => 'form-control datepicker', 'data-date-format' => 'yyyy-mm-dd'));
?>
			</div>
		</div>
	</div>

	<div class="form-group">
		<?php 
echo $form->label($model, 'married_status', array('class' => $label_class));
?>
		<div class="col-md-8"><?php 
echo $form->dropDownList($model, 'married_status', CHtml::listData(ReferenceEmployeeStatuses::model()->maritalStatus()->findAll(), 'name', 'label'), array('data-placeholder' => at('Please select one...'), 'prompt' => '', 'class' => 'form-control select'));
?>
</div>
	</div>

	<div class="form-group">
		<?php 
echo $form->label($model, 'married_date', array('class' => $label_class));
?>
		<div class="col-md-8">
			<div class="input-group">
				<span class="input-group-addon"><span class="fa fa-calendar"></span></span>
				<?php 
echo $form->textField($model, 'married_date', array('class' => 'form-control datepicker', 'data-date-format' => 'yyyy-mm-dd'));
?>
			</div>
コード例 #2
0
ファイル: _form.php プロジェクト: qhyabdoel/hris_mujigae
							<?php 
echo CHtml::activeDropDownList($model, 'status', CHtml::listData(ReferenceEmployeeStatuses::model()->attendanceStatus()->findAll(), 'name', 'label'), array('data-placeholder' => at('Please select one...'), 'prompt' => '', 'class' => 'validate[required] form-control select'));
?>
							<?php 
echo CHtml::error($model, 'status');
?>
						</div>
					</div>

					<div class="form-group">
						<?php 
echo CHtml::activeLabelEx($model, 'is_active', array('class' => $label_class));
?>
						<div class="col-md-6 col-xs-12">
							<?php 
echo CHtml::activeDropDownList($model, 'is_active', ReferenceEmployeeStatuses::model()->getIsActive(), array('class' => 'validate[required] form-control select'));
?>
							<?php 
echo CHtml::error($model, 'is_active');
?>
						</div>
					</div>

					
				</div>
			</div>
		</div>
	</div>

	<div class="col-md-12">
		<div class="panel panel-default">
コード例 #3
0
 public function viewStatus()
 {
     $criteria = new CDbCriteria();
     $criteria->params = array('name=' => $this->status);
     $status = ReferenceEmployeeStatuses::model()->attendanceStatus()->find();
     return isset($status->label) ? $status->label : '';
 }