本文整理汇总了PHP中Branch::items方法的典型用法代码示例。如果您正苦于以下问题:PHP Branch::items方法的具体用法?PHP Branch::items怎么用?PHP Branch::items使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Branch
的用法示例。
在下文中一共展示了Branch::items方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'branch_id');
?>
<?php
//echo $form->textField($model,'branch_id');
?>
<?php
//echo $form->dropDownList($model,'branch_id', CHtml::listData(Branch::model()->findAll(), 'branch_id', 'branch_name'));
?>
<?php
echo $form->dropDownList($model, 'branch_id', Branch::items(), array('empty' => '---------------Select-------------', 'tabindex' => 4));
?>
<span class="status"> </span>
<?php
echo $form->error($model, 'branch_id');
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'div_id');
?>
<?php
//echo $form->textField($model,'div_id');
?>
<?php
示例2: for
{
$minute[]=$i;
}?>
<?php for($i=0;$i<24;$i++)
{
$hour[]=$i;
}?>
<?php $minute[]="*";
$hour[]="*";
?>
<div class="row">
<?php echo $form->labelEx($model,'student_attendence_email_branch_id'); ?>
<?php echo $form->dropDownList($model, 'student_attendence_email_branch_id', Branch::items(),array('prompt' => 'Select Branch'));?>
<span class="status"> </span>
<?php echo $form->error($model,'student_attendence_email_branch_id'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'student_attendence_email_minute'); ?>
<?php echo $form->dropDownList($model,'student_attendence_email_minute',$minute, array('empty' => 'Select Minute')); ?><span class="status"> </span>
<?php //echo $form->textField($model,'database_backup_cron_minute'); ?>
<?php echo $form->error($model,'student_attendence_email_minute'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'student_attendence_email_hour'); ?>
<?php echo $form->dropDownList($model,'student_attendence_email_hour',$hour, array('empty' => 'Select Hour')); ?><span class="status"> </span>
示例3: array
<?php echo $form->labelEx($model,'template_name'); ?>
<?php echo $form->dropDownList($model,'template_name',CHtml::listData(IdcardFieldFormat::model()->findAll(array('condition'=>'stud_emp_type="Student"','group'=>'idtemplate_name')),'idtemplate_name','idtemplate_name'), array('empty' => 'Select Template'));?>
<span class="status"> </span>
<?php echo $form->error($model,'template_name'); ?>
</div>
<div class="row">
<?php echo CHtml::label('Academic Year',''); ?>
<?php echo CHtml::dropDownList('acdm_period', null,$period,array('empty' => 'Select Year','tabindex'=>2)); ?>
</div>
<div class="row">
<?php echo CHtml::label('Semester',''); ?>
<?php echo CHtml::dropDownList('acdm_name', null, $acdterm,array('empty' => 'Select Semester','tabindex'=>3));?>
</div>
<div class="row">
<?php echo CHtml::label('Branch',''); ?>
<?php echo CHtml::dropDownList('branch_name', null, Branch::items(),
array(
'prompt' => 'Select Branch','tabindex'=>4,
'ajax' => array(
'type'=>'POST',
'url'=>CController::createUrl('dependent/getIdDivision'),
'update'=>'#div_name', //selector to update
))); ?>
</div>
<div class="row">
<?php echo CHtml::label('Division',''); ?>
<?php echo CHtml::dropDownList('div_name', null,array(), array('empty' => 'Select Division','tabindex'=>5));?>
</div>
<div class="row">
<?php echo CHtml::label('Enroll No',''); ?>
示例4: array
?>
</div>
<div class="row">
<?php
echo CHtml::label('Term Name', '');
?>
<?php
echo CHtml::dropDownList('acdm_name', null, array('empty' => '---------------Select-------------'), array('tabindex' => 2));
?>
</div>
<div class="row">
<?php
echo CHtml::label('Branch', '');
?>
<?php
echo CHtml::dropDownList('branch_name', null, Branch::items(), array('prompt' => '---------------Select-------------', 'tabindex' => 3, 'ajax' => array('type' => 'POST', 'url' => CController::createUrl('dependent/getIdDivision'), 'update' => '#div_name')));
?>
</div>
<div class="row">
<?php
echo CHtml::label('Division', '');
?>
<?php
echo CHtml::dropDownList('div_name', null, array('empty' => '---------------Select-------------'), array('tabindex' => 4));
?>
</div>
<div class="row">
<?php
echo CHtml::label('Student Enroll No', '');
?>
<?php
示例5: items
<?php echo $form->labelEx($model,'student_notification_academic_term_id'); ?>
<?php //echo $form->textField($model,'student_notification_academic_term_id'); ?>
<?php
if(isset($model->student_academic_term_name_id))
echo $form->dropDownList($model,'student_notification_academic_term_id', CHtml::listData(AcademicTerm::model()->findAll(array('condition'=>'academic_term_period_id='.$model->student_academic_term_period_tran_id)), 'academic_term_id', 'academic_term_name'));
else
echo $form->dropDownList($model,'student_notification_academic_term_id',array('prompt' => 'All Semester'));
?><span class="status"> </span>
<?php echo $form->error($model,'student_notification_academic_term_id'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'student_notification_branch_id'); ?>
<?php //echo $form->textField($model,'student_notification_branch_id'); ?>
<?php echo $form->dropDownList($model,'student_notification_branch_id', Branch :: items(), array('empty' => 'All Branch')); ?><span class="status"> </span>
<?php echo $form->error($model,'student_notification_branch_id'); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton($model->isNewRecord ? 'Add' : 'Save',array('class'=>'submit')); ?>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
示例6: array
echo $form->labelEx($model, 'fees_organization_id');
?>
<?php
echo $form->textField($model, 'fees_organization_id');
?>
<?php
echo $form->error($model, 'fees_organization_id');
?>
</div>
-->
<div class="row">
<?php
echo $form->labelEx($model, 'fees_branch_id');
?>
<?php
echo $form->dropDownList($model, 'fees_branch_id', Branch::items(), array('empty' => 'Select Branch'));
?>
<span class="status"> </span>
<?php
echo $form->error($model, 'fees_branch_id');
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'fees_academic_term_id');
?>
<?php
//echo $form->dropDownList($model,'fees_academic_term_id',AcademicTermPeriod::items(), array('empty' => '----------Select--------'));
?>
<?php
示例7: array
echo $form->error($model, 'student_academic_term_name_id');
?>
</div>
</div>
<div class="row">
<!--
<div class="row-left">
<?php
echo $form->labelEx($model, 'student_transaction_branch_id');
?>
<?php
echo $form->dropDownList($model, 'student_transaction_branch_id', Branch::items(), array('empty' => '-----------Select---------', 'tabindex' => 18));
?>
<span class="status"> </span>
<?php
echo $form->error($model, 'student_transaction_branch_id');
?>
</div>-->
<div class="row-left">
<?php
echo $form->labelEx($model, 'student_transaction_branch_id');
?>
<?php
echo $form->dropDownList($model, 'student_transaction_branch_id', CHtml::listData(Branch::model()->findAll(array('condition' => 'branch_organization_id=' . $org_id)), 'branch_id', 'branch_name'), array('prompt' => '-----------Select-----------', 'tabindex' => 23, 'ajax' => array('type' => 'POST', 'url' => CController::createUrl('dependent/getStudDivision'), 'dataType' => 'json', 'success' => 'function(data) {
示例8: array
//echo $form->errorSummary($model);
?>
<div class="block-error">
<?php
echo Yii::app()->user->getFlash('no_student_found');
?>
</div>
<div class="row">
<?php
echo CHtml::label('Branch Name', '');
?>
<?php
echo CHtml::dropDownList('branch', null, Branch::items(), array('empty' => 'Select Branch', 'tabindex' => 1));
?>
<?php
echo CHtml::label('Quota', '');
?>
<?php
echo CHtml::dropDownList('quota', null, Quota::items(), array('empty' => 'Select Quota', 'tabindex' => 4));
?>
</div>
<?php
$org_id = Yii::app()->user->getState('org_id');
开发者ID:sharmarakesh,项目名称:edusec-college-management-system,代码行数:31,代码来源:studinfo_dyanamic_report_form1.php
示例9: array
echo $form->error($model, 'acdm_name');
?>
</div>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'branch');
?>
<?php
//echo $form->dropDownList($model,'branch',Branch::items(), array('empty' => '---------------Select-------------','tabindex'=>4));
?>
<?php
echo $form->dropDownList($model, 'branch', Branch::items(), array('prompt' => 'Select Branch', 'tabindex' => 2, 'ajax' => array('type' => 'POST', 'url' => CController::createUrl('Attendence/getItemBranch'), 'update' => '#Attendence_div')));
?>
<span class="status"> </span>
<?php
echo $form->error($model, 'branch');
?>
</div>
<div class="row">
<?php
echo $form->labelEx($model, 'div');
?>
<?php
//echo $form->dropDownList($model,'div',Division::items(), array('empty' => '---------------Select-------------','tabindex'=>5));
?>
示例10: array
array(
'prompt' => '----------Select-----------','tabindex'=>2,
'ajax' => array(
'type'=>'POST',
'url'=>CController::createUrl('dependent/getCertificateSem'),
'update'=>'#sem', //selector to update
))); ?>
</div>
<div class="row">
<?php echo CHtml::label('Semester','');?>
<?php echo CHtml::dropDownList('sem', null, array(),array('empty'=>'----------Select----------','tabindex'=>3));?>
</div>
<div class="row">
<?php echo CHtml::label('Branch','');?>
<?php echo CHtml::dropDownList('branch', null, Branch::items(),array('empty'=>'----------Select----------','tabindex'=>4));?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton('Submit', array('class'=>'submit','tabindex'=>5));
?>
</div>
<?php
if(!empty($query))
{
$index=6;
$i=1;
echo "<h6 style='color:red'>".Yii::app()->user->getFlash('no_selected').'</h6>';
if(!empty($data))
示例11: array
?>
</div>
<?php
$form = $this->beginWidget('CActiveForm', array('id' => 'book-search-form', 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>
<?php
$dataProvider = $model->search();
if (Yii::app()->user->getState("pageSize", @$_GET["pageSize"])) {
$pageSize = Yii::app()->user->getState("pageSize", @$_GET["pageSize"]);
} else {
$pageSize = Yii::app()->params['pageSize'];
}
$dataProvider->getPagination()->setPageSize($pageSize);
$this->widget('ext.selgridview.SelGridView', array('id' => 'student-transaction-grid', 'dataProvider' => $dataProvider, 'filter' => $model, 'selectableRows' => 2, 'columns' => array(array('class' => 'CCheckBoxColumn'), array('name' => 'student_enroll_no', 'value' => '$data->Rel_Stud_Info->student_enroll_no'), array('name' => 'student_roll_no', 'value' => '$data->Rel_Stud_Info->student_roll_no'), array('name' => 'student_first_name', 'value' => '$data->Rel_Stud_Info->student_first_name'), array('name' => 'student_last_name', 'value' => '$data->Rel_Stud_Info->student_last_name'), array('name' => 'student_transaction_branch_id', 'value' => 'Branch::item($data->student_transaction_branch_id)', 'filter' => Branch::items()), array('name' => 'student_academic_term_period_tran_id', 'value' => 'AcademicTermPeriod::model()->findByPk($data->student_academic_term_period_tran_id)->academic_term_period', 'filter' => CHtml::listData(AcademicTermPeriod::model()->findAll(array('condition' => 'academic_terms_period_organization_id=' . Yii::app()->user->getState('org_id'))), 'academic_terms_period_id', 'academic_term_period')), array('name' => 'student_academic_term_name_id', 'value' => 'AcademicTerm::item($data->student_academic_term_name_id)', 'filter' => AcademicTerm::items()), array('name' => 'quota_name', 'value' => '$data->Rel_Quota->quota_name'), array('name' => 'student_dtod_regular_status', 'value' => '$data->Rel_Stud_Info->student_dtod_regular_status'), array('name' => 'status_name', 'value' => '$data->Rel_Status->status_name')), 'pager' => array('class' => 'AjaxList', 'maxButtonCount' => $model->count(), 'header' => '')));
?>
<!--<div class="send-sms-email-div">
<?php
echo CHtml::button('Send SMS/Email', array('name' => 'btnsend', 'class' => 'send-all-button', 'submit' => array('DoChacked')));
?>
</div>-->
<?php
echo CHtml::hiddenField('selectedstudentid');
echo CHtml::button('Compose', array('id' => 'submitbtn', 'submit' => array('Messageform')));
$this->endWidget();
?>