本文整理汇总了PHP中DepartmentPeer::getParents方法的典型用法代码示例。如果您正苦于以下问题:PHP DepartmentPeer::getParents方法的具体用法?PHP DepartmentPeer::getParents怎么用?PHP DepartmentPeer::getParents使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DepartmentPeer
的用法示例。
在下文中一共展示了DepartmentPeer::getParents方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: object_select_tag
<p style="font-size: 10px; margin-top: -7px; margin-left: 150px;"></p>
<label style="width: 150px;">Agama *</label>
<?php
echo object_select_tag($applicant_detail, 'getReligionId', array('related_class' => 'Religion', 'include_blank' => true));
?>
<?php
echo form_error('religion_id');
?>
</div>
</fieldset>
<fieldset style="margin-top: 5px;">
<legend>Program Pilihan</legend>
<div>
<label style="width: 150px;">Tingkat *</label>
<?php
echo my_object_select_tag('department_id', 'department_id', DepartmentPeer::getParents(), array('related_class' => 'Department', 'include_blank' => true, 'peer_method' => 'doSelectOrdered'));
?>
<?php
echo form_error('department_id');
?>
<p style="font-size: 10px; margin-top: -7px; margin-left: 150px;">Pilih Tingkat</p>
<label style="width: 150px;">Kelas Pilihan *</label>
<?php
echo object_select_tag($applicant, 'getClassGroup1', array('related_class' => 'VClassGroup', 'include_blank' => true, 'peer_method' => 'doSelectAll'));
?>
<?php
echo observe_field('department_id', array('update' => 'class_group1', 'url' => 'applicant/selectByDept', 'with' => "'department_id='+\$('department_id').value"));
?>
<?php
echo form_error('class_group1');
?>
示例2: input_tag
?>
</td>
<td class='filter_first'><?php
echo input_tag('filters[CODE]', isset($filters['CODE']) ? $filters['CODE'] : null, array('size' => 15));
?>
</td>
<td class='filter'><?php
echo input_tag('filters[CODE2]', isset($filters['CODE2']) ? $filters['CODE2'] : null, array('size' => 10));
?>
</td>
<td class='filter'><?php
echo input_tag('filters[NAME]', isset($filters['NAME']) ? $filters['NAME'] : null, array('size' => 15));
?>
</td>
<td class='filter'><?php
echo my_object_select_tag(isset($filters['DEPARTMENT_ID']) ? $filters['DEPARTMENT_ID'] : null, null, DepartmentPeer::getParents(), array('include_blank' => true, 'related_class' => 'Department', 'peer_method' => 'doSelectFiltered', 'control_name' => 'filters[DEPARTMENT_ID]'));
?>
</td>
<td class='filter'><?php
echo input_tag('filters[YEAR]', isset($filters['YEAR']) ? $filters['YEAR'] : null, array('size' => 5));
?>
</td>
<td class='filter'><?php
echo object_select_tag(isset($filters['ACADEMIC_CALENDAR_ID']) ? $filters['ACADEMIC_CALENDAR_ID'] : null, null, array('include_blank' => true, 'related_class' => 'AcademicCalendar', 'text_method' => '__toString', 'control_name' => 'filters[ACADEMIC_CALENDAR_ID]', 'peer_method' => 'doSelectFiltered', 'style' => 'width: 130px;'));
?>
</td>
<td class='filter'><?php
echo input_tag('filters[CLASS_NAME]', isset($filters['CLASS_NAME']) ? $filters['CLASS_NAME'] : null, array('size' => 5));
?>
</td>
</tr>
示例3: form_error
?>
<br />
<?php
#echo form_error('academic_calendar_id')
?>
</td>
</tr-->
<tr>
<td style="vertical-align:middle;"><label><?php
echo __('Department');
?>
</label></td>
<td style="text-align:center; vertical-align:middle;">:</td>
<td style="vertical-align:middle;">
<?php
echo my_object_select_tag('academic_calendar_id', $score_rule->getAcademicCalendarId() ? $score_rule->getAcademicCalendarId() : '', DepartmentPeer::getParents(), array('related_class' => 'Department', 'include_blank' => true, 'peer_method' => 'doSelectFiltered', 'id' => 'academic_calendar_id', 'name' => 'academic_calendar_id'));
?>
<br>
<?php
echo form_error('academic_calendar_id');
?>
</td>
</tr>
<tr>
<td style="vertical-align:middle;"><label><?php
echo __('Model Penilaian');
?>
</label></td>
<td style="text-align:center; vertical-align:middle;">:</td>
<td style="vertical-align:middle;">
<?php
示例4: __
?>
<div class="tips"><?php
echo __('Untuk Calon Siswa Play Group / TK diisi dengan NA');
?>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:middle;"><label class="applicant"><?php
echo __('Sekolah Pilihan');
?>
*</label></td>
<td style="text-align:center; vertical-align:middle;">:</td>
<td style="vertical-align:middle;">
<?php
echo my_object_select_tag($ng_test_applicant, 'getDepartmentId', DepartmentPeer::getParents(), array('related_class' => 'Department', 'include_blank' => true, 'peer_method' => 'doSelectFiltered'));
?>
<?php
echo form_error('department_id');
?>
</td>
</tr>
<tr>
<td style="vertical-align:middle;"><label class="applicant"><?php
echo __('Kelas Pilihan');
?>
*</label></td>
<td style="text-align:center; vertical-align:middle;">:</td>
<td style="vertical-align:middle;">
<?php
echo select_tag('class_level_id', options_for_select($class_groups, $selected_class_group), array('include_blank' => true));
示例5: form_error
?>
<br />
<?php
echo form_error('name');
?>
</td>
</tr>
<tr>
<td style="vertical-align:middle;"><label><?php
echo __('Department');
?>
</label></td>
<td style="text-align:center; vertical-align:middle;">:</td>
<td style="vertical-align:middle;">
<?php
echo my_object_select_tag($academic_calendar, 'getDepartmentId', DepartmentPeer::getParents(), array('related_class' => 'Department', 'include_blank' => true, 'peer_method' => 'doSelectFiltered'));
?>
<br />
<?php
echo form_error('department_id');
?>
</td>
</tr>
<tr>
<td style="vertical-align:middle;"><label><?php
echo __('Curriculum');
?>
</label></td>
<td style="text-align:center; vertical-align:middle;">:</td>
<td style="vertical-align:middle;">
<?php