本文整理汇总了PHP中Utility::dropDownListEditable方法的典型用法代码示例。如果您正苦于以下问题:PHP Utility::dropDownListEditable方法的具体用法?PHP Utility::dropDownListEditable怎么用?PHP Utility::dropDownListEditable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utility
的用法示例。
在下文中一共展示了Utility::dropDownListEditable方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<td class="form_input">
<?php
Utility::inputTextEditable($studentProfile->getReligion(), "religion", "religion", "Religion");
?>
</td>
</tr>
<tr>
<td class="label">
<?php
Utility::label("category", "Category");
?>
</td>
<td class="form_input">
<?php
Utility::dropDownListEditable($studentProfile->getCategory(), "category", "category", "category");
?>
</td>
</tr>
<tr>
<td class="label">
<?php
Utility::label("mother_tongue", "Mother Tongue");
?>
</td>
<td class="form_input">
<?php
Utility::inputTextEditable($studentProfile->getMotherTongue(), "mother_tongue", "mother_tongue", "Mother Tongue");
?>
</td>
示例2:
<td class="form_input">
<?php
Utility::radioButtonEditable($teacherProfile->getGender(), "gender", "gender", "gender");
?>
</td>
</tr>
<tr>
<td class="label">
<?php
Utility::label("blood_group", "Blood Group");
?>
</td>
<td class="form_input">
<?php
Utility::dropDownListEditable($teacherProfile->getBloodGroup(), "blood_group", "blood_group", "blood_group");
?>
</td>
</tr>
<tr>
<td class="label">
<?php
Utility::label("experience_info", "Experience Info");
?>
</td>
<td class="form_input">
<?php
Utility::inputTextAreaEditable($teacherProfile->getExperienceInfo(), "experience_info", "experience_info", "Experience Info");
?>
</td>
示例3: foreach
<div class="content_description">Time Table Settings</div>
</div>
<div class="timetable_settings">
<form id="timetable_settings" action="http://localhost/cloud/timetable/settingssave" method="POST">
<table style="margin:0px auto;text-align:center;">
<tr>
<td>
<?php
Utility::label('hours', 'Number of Slots Per Day', 'required');
?>
</td>
<td>
<?php
if ($set == true) {
Utility::dropDownListEditable(count($slots), 'hours', 'hours', 'numeric_level');
} else {
Utility::dropDownList('hours', 'hours', 'numeric_level');
}
?>
</td>
</tr>
</table>
<table id="timetable_slots">
<?php
if ($set == true) {
$count = 0;
foreach ($slots as $key => $value) {
$count++;
echo '<tr><td>Slot ' . $count . ' :</td><td>';
Utility::inputTextEditable($value, 'slot_name[]', 'slot_name[]', 'Slot Name');
示例4: foreach
<?php
include_once 'controller/utility_class.php';
?>
<div class="teacher_section_relation">
<table class="teacher_section_relation">
<?php
$html = "";
foreach ($subject_array as $key => $value) {
$html .= "<tr>";
$html .= '<td class="form_input" id="' . $key . '">' . $value;
echo $html;
Utility::inputHidden($key, "subject[]", $key);
$html = '</td>';
$html .= '<td class="form_input" id="' . $key . '">';
echo $html;
if (array_key_exists($key, $teacher_id)) {
Utility::dropDownListEditable($teacher_id[$key], 'fixed', 'teacher[]', 'teacher', NULL, $key, $teacher[$teacher_id[$key]], 'teacher_select');
} else {
Utility::dropDownList($key, 'teacher[]', 'teacher', 'teacher_select', $key);
}
$html = '</td>';
$html .= "</tr>";
}
echo $html;
?>
</table>
</div>