本文整理汇总了PHP中Utility::dropDownList方法的典型用法代码示例。如果您正苦于以下问题:PHP Utility::dropDownList方法的具体用法?PHP Utility::dropDownList怎么用?PHP Utility::dropDownList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utility
的用法示例。
在下文中一共展示了Utility::dropDownList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</td>
<td class="form_input">
<?php
Utility::dropDownList("section", "section", "section");
?>
</td>
</tr>
<tr>
<td class="label">
<?php
Utility::label("subject", "Subject", "required");
?>
</td>
<td class="form_input" id="subject_tab">
<?php
Utility::dropDownList("subject[]", "subject[]", "subject");
?>
</td>
</tr>
<tr><td>
</td>
<td>
<div class="add_another_btn" value="2" id="add_another_btn">
<?php
Utility::addAnother("add_another", "+ Add Another");
?>
</div>
</td>
</tr>
示例2:
<img class="content_heading_image" src="http://localhost/cloud/images/miscellaneous.png"/>
<div class="content_description">Create Section</div>
</div>
<div class="create_section">
<form id="create_section_form" name="create_section" method="POST" action="http://localhost/cloud/section/validate">
<table class="create_section_form">
<tr>
<td class="label">
<?php
Utility::label("class_level", "Class/Standard", "required");
?>
</td>
<td class="form_input">
<?php
Utility::dropDownList("class_level", "class_level", "numeric_level");
?>
</td>
</tr>
<tr>
<td class="label">
<?php
Utility::label("section", "Section", "required");
?>
</td>
<td class="form_input">
<?php
Utility::inputText("section", "section", "Section");
?>
</td>
</tr>
示例3: foreach
<form id="exam_subjects_form" action="http://localhost/cloud/examination/subjectssave" method="POST">
<table cellspacing="0" cellpadding="5" border="1" class="exam_subjects_table">
<tr>
<td style="background:#ABCDEF" colspan="2">
Examination Subjects
</td>
</tr>
<tr>
<td style="background:#ABCDEF">
<?php
Utility::label('exam', 'Select Examination', 'required');
?>
</td>
<td style="background:#ABCDEF">
<?php
Utility::dropDownList('exam_id', 'exam_id', 'exams');
?>
</td>
</tr>
<?php
foreach ($sections as $key => $value) {
echo '<tr>';
echo '<td>' . $value . '</td>';
echo '<td>';
echo '<table>';
foreach ($subjects[$key] as $k => $v) {
echo "<tr><td>" . $subject_name[$v] . " : </td><td>";
$id = $key . "-" . $v;
Utility::checkBox($id, $id);
echo '</td>';
}
示例4:
<?php
include_once 'controller/utility_class.php';
Utility::dropDownList('section', 'section', '', 'text', $sections);
示例5: foreach
<?php
include_once 'controller/utility_class.php';
?>
<table cellspacing="0" cellpadding="5" border="1" class="exam_timetable">
<?php
$slot = 0;
Utility::inputHidden('check', 'check', 1);
echo '<tr class="report_list_head">';
echo '<td></td>';
foreach ($days as $n => $day) {
echo '<td colspan="' . $slots . '">' . $day . '</td>';
}
echo '</tr>';
foreach ($section_array as $key => $value) {
echo '<tr>';
echo '<td class="report_list_data">';
echo $section_name[$key];
echo '</td>';
for ($i = 0; $i < $slots * $numDays; $i++) {
echo '<td>';
$id = $days[$i / $slots] . '_' . $i % $slots . '_' . $key;
Utility::dropDownList($id, $id, "", "text", $subject_array[$key]);
echo '</td>';
$slot++;
}
echo '</tr>';
}
?>
</table>
示例6:
<td class="form_input">
<?php
Utility::inputText("religion", "religion", "Religion");
?>
</td>
</tr>
<tr>
<td class="label">
<?php
Utility::label("category", "Category");
?>
</td>
<td class="form_input">
<?php
Utility::dropDownList("category", "category", "category");
?>
</td>
</tr>
<tr>
<td class="label">
<?php
Utility::label("mother_tongue", "Mother Tongue");
?>
</td>
<td class="form_input">
<?php
Utility::inputText("mother_tongue", "mother_tongue", "Mother Tongue");
?>
</td>
示例7:
<div class="student_menu">
<?php
$highlight = 'attendance';
include 'admin_student_menu.php';
?>
<div class="content_heading">
<img class="content_heading_image" src="http://localhost/cloud/images/employee_search_attendance.png">
<div class="content_description">Employee Attendance Report</div>
</div>
<div class="employee_report">
<?php
Utility::label('employee', 'Select Employee', 'required');
Utility::dropDownList('teacher', 'teacher', 'teacher');
?>
<div id="employee_report_view" class="employee_report_view"></div>
</div>
</div>
</div>
</div>
<?php
include 'footer.php';
?>
</body>
</html>
示例8:
</td>
<td>
<?php
Utility::dropDownList('exam_id', 'exam_id', 'exams');
?>
</td>
</tr>
<tr style="background:#ABCDEF">
<td>
<?php
Utility::label('section', 'Select Section');
?>
</td>
<td>
<?php
Utility::dropDownList('section', 'section', 'section');
?>
</td>
</tr>
</table>
<div class="exam_timetable_view" id="exam_timetable">
</div>
</div>
</div>
</div>
</div>
示例9: 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>
示例10: foreach
<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');
echo '</td></tr>';
}
示例11: getmarkinglist
protected function getmarkinglist()
{
global $user;
global $objPDO;
$student = new student($objPDO, $user->getuserId());
$headMenu = array("username" => $student->getName());
if ($user->checkAdmin() == true && isset($_GET['uid']) && isset($_GET['ref'])) {
$role = $student->getacctType();
include $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/examination_section_subject_class.php';
include $_SERVER['DOCUMENT_ROOT'] . '/cloud/controller/utility_class.php';
include $_SERVER['DOCUMENT_ROOT'] . '/cloud/model/subject_class.php';
$rel = new ExaminationSectionSubject($objPDO);
$exam_id = $_GET['uid'];
$section_id = $_GET['ref'];
$sec_sub = $rel->getSectionExams($exam_id, $section_id);
$sub = new Subject($objPDO);
$subject_name = $sub->getSubjectArray();
$subjects = array();
foreach ($sec_sub as $key => $value) {
$subjects[$value] = $subject_name[$value];
}
Utility::dropDownList('subject', 'subject', '', 'text', $subjects);
} else {
header('Location:http://localhost/cloud');
}
}
示例12:
<div class="event_name">
<?php
Utility::inputText('event_name', 'event_name', 'Event');
?>
</div>
<div class="event_description">
<?php
Utility::inputText('event_description', 'event_description', 'Event Description');
?>
</div>
<div class="event_type">
<?php
Utility::dropDownList('event_type', 'event_type', 'event_type');
?>
</div>
<div class="submit" style="margin:0px auto;width:14%;">
<?php
Utility::submitButton('submit', 'submit', 'Create Event');
?>
</div>
</div>
</form>
<div class="error" style="margin-top:5%" id="error"></div>
示例13:
<td><?php
Utility::label('end_date', 'End Date', 'required');
?>
</td>
<td><?php
Utility::datePicker('end_date', 'end_date');
?>
</td>
</tr>
<tr>
<td><?php
Utility::label('fn_an', 'Sessions', 'required');
?>
</td>
<td><?php
Utility::dropDownList('fn_an', 'fn_an', 'fn_an');
?>
</td>
</tr>
</table>
<div style="padding:5px">
<?php
Utility::submitButton('create_exam', 'create_exam', 'Create Examination');
?>
</td>
</div>
</form>
<div class="error" id="error"></div>
示例14:
<div class="content_heading">
<img class="content_heading_image" src="http://localhost/cloud/images/email_notice.png">
<div class="content_description">Send Email Notification</div>
</div>
<div class="email_notification_new">
<table>
<tr>
<td>
<?php
Utility::label('to_type', 'Recepient Method');
?>
</td>
<td>
<?php
Utility::dropDownList('to_type', 'to_type', 'to_type');
?>
</td>
</tr>
</table>
<div class="to_address" id="to_address">
<?php
Utility::inputText('to', 'to', 'To Address Search');
Utility::inputText('address', 'address', 'To: Address');
?>
<div id="ajax_search_load" class="ajax_search_load">
</div>
</div>
</div>
示例15:
}
?>
<div class="content_heading">
<img class="content_heading_image" src="http://localhost/cloud/images/employee_notice.png">
<div class="content_description">Create New Notice</div>
</div>
<div class="new_notice_employee">
<form name="create_notice" id="create_notice" method="post" action="http://localhost/cloud/notice/create_employee">
<?php
Utility::inputText('heading', 'heading', 'Heading');
?>
<textarea name="content" id="content" class="notice_info"></textarea>
<?php
Utility::dropDownList('importance', 'importance', 'importance');
?>
<div style="width:12%;padding-top:20px;margin:0px auto">
<?php
Utility::submitButton('submit', 'submit', 'Create Notice');
?>
</div>
</form>
<div class="error" style="margin-top:50px;" id="error"></div>
</div>
</div>
</div>
</div>