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


PHP Utility::dropDownListEditable方法代码示例

本文整理汇总了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>
开发者ID:srinivasans,项目名称:educloud,代码行数:31,代码来源:confirmaddstudent.php

示例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>
开发者ID:srinivasans,项目名称:educloud,代码行数:31,代码来源:confirmaddemployee.php

示例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');
开发者ID:srinivasans,项目名称:educloud,代码行数:31,代码来源:timetable_settings_view.php

示例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>
开发者ID:srinivasans,项目名称:educloud,代码行数:29,代码来源:teacher_relation_template.php


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