当前位置: 首页>>代码示例>>PHP>>正文


PHP Department::items方法代码示例

本文整理汇总了PHP中Department::items方法的典型用法代码示例。如果您正苦于以下问题:PHP Department::items方法的具体用法?PHP Department::items怎么用?PHP Department::items使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Department的用法示例。


在下文中一共展示了Department::items方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

		      'header' => 'Name',
		      'name' => 'employee_first_name',
	              'value' => '$data->Rel_Emp_Info->employee_first_name',
                     ),

		 array(
		      'header' => 'Surame',
		      'name' => 'employee_last_name',
	              'value' => '$data->Rel_Emp_Info->employee_last_name',
                     ),
		 array('name' => 'employee_transaction_designation_id',
			'filter'=>EmployeeDesignation::items(),
			'value' =>'EmployeeDesignation::model()->findByPk($data->employee_transaction_designation_id)->employee_designation_name',
                     ),
		 array('name' => 'employee_transaction_department_id',
			'filter'=>Department::items(),
	              'value' => 'Department::model()->findByPk($data->employee_transaction_department_id)->department_name',
                     ),
		 array(
			 'header' => 'Private Mobile',
			 'name' => 'employee_private_mobile',
			 'value' => '$data->Rel_Emp_Info->employee_private_mobile',

		),
		 array(
		      'header' => 'Private Email',
		      'name' => 'employee_private_email',
	              'value' => '$data->Rel_Emp_Info->employee_private_email',
                     ),
	),
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:30,代码来源:select_employee.php

示例2: array

?>
	      <?php 
echo $form->dropDownList($model, 'employee_transaction_designation_id', EmployeeDesignation::items(), array('empty' => 'Select Designation'));
?>
<span class="status">&nbsp;</span>
	      <?php 
echo $form->error($model, 'employee_transaction_designation_id');
?>
	</div>

	<div class="row-right">
	      <?php 
echo $form->labelEx($model, 'employee_transaction_department_id');
?>
	      <?php 
echo $form->dropDownList($model, 'employee_transaction_department_id', Department::items(), array('empty' => 'Select Department'));
?>
<span class="status">&nbsp;</span>
	      <?php 
echo $form->error($model, 'employee_transaction_department_id');
?>
	</div>
</div>

<div class="row">

	<div class="row-left">
	      <?php 
echo $form->labelEx($info, 'employee_private_mobile');
?>
               <?php 
开发者ID:sharmarakesh,项目名称:EduSec2.0.0,代码行数:31,代码来源:create_form.php

示例3: array

	<div class="row-right">
		<?php echo $form->labelEx($info,'employee_type'); ?>
		<?php echo $form->dropDownList($info,'employee_type',array(""=>"Select Type","1"=>"Teaching","0"=>"Non Teaching")); ?><span class="status">&nbsp;</span>
		<?php echo $form->error($info,'employee_type'); ?>
	</div>
</div>
<div class="row">
	<div class="row-left">
	      <?php echo $form->labelEx($model,'employee_transaction_designation_id'); ?>
	      <?php echo $form->dropDownList($model,'employee_transaction_designation_id',EmployeeDesignation::items(), array('empty' => 'Select Designation')); ?><span class="status">&nbsp;</span>
	      <?php echo $form->error($model,'employee_transaction_designation_id'); ?>
	</div>

	<div class="row-right">
	      <?php echo $form->labelEx($model,'employee_transaction_department_id'); ?>
	      <?php echo $form->dropDownList($model,'employee_transaction_department_id',Department::items(), array('empty' => 'Select Department')); ?><span class="status">&nbsp;</span>
	      <?php echo $form->error($model,'employee_transaction_department_id'); ?>
	</div>
</div>
<div class="row">
	<div class="row-left">
	      <?php echo $form->labelEx($info,'employee_private_mobile'); ?>
               <?php echo $form->textField($info,'employee_private_mobile',array('size'=>13)); ?><span class="status">&nbsp;</span><br><br>
               <?php echo $form->error($info,'employee_private_mobile'); ?>
	</div>
	<div class="row-right">
		      <?php echo $form->labelEx($info,'employee_private_email'); ?>
		      <?php echo $form->textField($user,'user_organization_email_id',array('size'=>13)); ?><span class="status">&nbsp;</span>
		      <?php echo $form->error($user,'user_organization_email_id'); ?>
		<b style='color:red;font-size:12px'> [Hint: abc123@example.com ] </b>
	</div>
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:31,代码来源:create_form.php

示例4: array

 <div class="portlet-title"><span class="box-title">Generating Employee Identity Card</span>
</div>
<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'emp-id-card',
	'enableAjaxValidation'=>true,
	'clientOptions'=>array('validateOnSubmit'=>true),

)); ?>
	<p class="note">Fields with <span class="required">*</span> are required.</p>
	<div class="row">
		<?php echo $form->labelEx($model,'template_name'); ?>
<?php echo $form->dropDownList($model,'template_name',CHtml::listData(IdcardFieldFormat::model()->findAll(array('condition'=>'stud_emp_type="Employee"','group'=>'idtemplate_name')),'idtemplate_name','idtemplate_name'), array('empty' => 'Select Template'));?>
	<span class="status">&nbsp;</span>
	<?php echo $form->error($model,'template_name'); ?>
	</div>
	<div class="row">
		<?php echo CHtml::label('Department',''); ?>
		<?php echo CHtml::dropDownList('department', null, Department::items(),array('empty' => 'Select Department','tabindex'=>3)); ?>
	</div>
	<div class="row">
		<?php echo CHtml::label('Card Id',''); ?>
		<?php echo CHtml::textField('employee_card_id', null, array('empty' => '---------------Select-------------','tabindex'=>5));?><span class="status">&nbsp;</span>&nbsp;&nbsp;		
	</div>
<div class="row buttons">
	<?php echo CHtml::submitButton('Generate', array('class'=>'submit','name'=>'search','tabindex'=>3)); ?>
</div>
<?php $this->endWidget(); ?>
</div>
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:30,代码来源:emp_idgeneration.php

示例5: array

);?>
<div class="portlet box blue">
 <div class="portlet-title"><i class="fa fa-plus"></i><span class="box-title">Select Criterias</span>
</div>
<div class="form">
</br>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'document-search-emp',
	'enableAjaxValidation'=>true,	
	'clientOptions'=>array('validateOnSubmit'=>true),

)); ?>
	<p class="note">Fields with <span class="required">*</span> are required.</p>
	<div class="row">
		<?php echo $form->labelEx($model,'department'); ?>
		<?php echo $form->dropDownList($model,'department',Department::items(), array('empty' => 'Select Department'));?>
		<span class="status">&nbsp;</span>
		<?php echo $form->error($model,'department'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'document_category'); ?>
		<?php echo $form->dropDownList($model,'document_category',CHtml::listData(DocumentCategoryMaster::model()->findAll(),'doc_category_id','doc_category_name'), array('empty' => 'Select Document'));?>
		<span class="status">&nbsp;</span>
		<?php echo $form->error($model,'document_category'); ?>
	</div>
</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Search', array('class'=>'submit','name'=>'search')); ?>
	</div>	
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:30,代码来源:document_search.php

示例6: array

		<?php 
echo $form->labelEx($model, 'lastname');
?>
		<?php 
echo $form->textField($model, 'lastname', array('size' => 60, 'maxlength' => 256));
?>
		<?php 
echo $form->error($model, 'lastname');
?>
	</div>
	<div class="row">
		<?php 
echo $form->labelEx($model, 'department_name');
?>
		<?php 
echo $form->dropDownList($model, 'department_id', Department::items(), array('ajax' => array('type' => 'POST', 'url' => CController::createUrl('main/dynamicpositions'), 'update' => '#Worker_position_id')));
?>
    	<?php 
echo $form->error($model, 'department_id');
?>
	</div>
	<div class="row">
		<?php 
echo $form->labelEx($model, 'position_name');
?>
		<?php 
echo $form->dropDownList($model, 'position_id', Position::items($model->department_id));
?>
    	<?php 
echo $form->error($model, 'position_id');
?>
开发者ID:vnilov,项目名称:delivery,代码行数:31,代码来源:_form.php

示例7: array

echo $form->labelEx($info, 'employee_joining_date');
?>
		<?php 
$this->widget('zii.widgets.jui.CJuiDatePicker', array('model' => $info, 'attribute' => 'employee_joining_date', 'options' => array('dateFormat' => 'dd-mm-yy', 'changeYear' => 'true', 'changeMonth' => 'true', 'showAnim' => 'slide', 'yearRange' => '1900:' . date('Y'), 'buttonImage' => Yii::app()->request->baseUrl . '/images/calendar.png'), 'htmlOptions' => array('style' => 'width:80px;vertical-align:top', 'value' => date("d-m-Y", strtotime($info->employee_joining_date)))));
?>
<span class="status">&nbsp;</span>
		<?php 
echo $form->error($info, 'employee_joining_date');
?>
	</div>
	<div class="row-right">
	      <?php 
echo $form->labelEx($model, 'employee_transaction_department_id');
?>
	      <?php 
echo $form->dropDownList($model, 'employee_transaction_department_id', Department::items(), array('empty' => '-----------Select---------', 'tabindex' => 8));
?>
<span class="status">&nbsp;</span>
	      <?php 
echo $form->error($model, 'employee_transaction_department_id');
?>
	</div>
</div>

<div class="row">

	<div class="row-left">
	      <?php 
echo $form->labelEx($model, 'employee_transaction_designation_id');
?>
	      <?php 
开发者ID:sharmarakesh,项目名称:EduSec2.0.0,代码行数:31,代码来源:_tab1.php

示例8: array

	'id'=>'employee-sms-email-details-form',
	'enableAjaxValidation'=>true,
	'clientOptions'=>array('validateOnSubmit'=>true),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php //echo $form->errorSummary($model); ?>

	<div class="block-error">
		<?php echo Yii::app()->user->getFlash('no-record'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'department_id'); ?>
		 <?php echo $form->dropDownList($model,'department_id',Department::items(), array('empty' => 'Select Department','tabindex'=>6)); ?><span class="status">&nbsp;</span>
		<?php echo $form->error($model,'department_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email_sms_status'); ?>
		<?php $data = array('1'=>"SMS",'2'=>"EMAIL");
		$model->email_sms_status = 1;
		 echo $form->radioButtonList($model,'email_sms_status',$data,array('class'=>'radio', 'labelOptions'=>array('style'=>'display:inline;width:45px;'), 'template'=>"{input} {label}", 'separator'=>'&nbsp;&nbsp;&nbsp;'));?>		
		<span class="status">&nbsp;</span>
		<?php echo $form->error($model,'email_sms_status'); ?>
	</div>	

	<div class="hint"><b>Hint:-&nbsp;For SMS message character limit is 160.</b></div>
	
	<div class="row">
开发者ID:rinodung,项目名称:EduSec3.0.0,代码行数:31,代码来源:_form.php


注:本文中的Department::items方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。