本文整理汇总了PHP中Utility::inputHidden方法的典型用法代码示例。如果您正苦于以下问题:PHP Utility::inputHidden方法的具体用法?PHP Utility::inputHidden怎么用?PHP Utility::inputHidden使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utility
的用法示例。
在下文中一共展示了Utility::inputHidden方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
foreach ($split_ups as $k => $v) {
echo '<td>';
Utility::inputText($v['id'] . '[]', $v['id'] . '[]', $v['split_up_name'] . ' Marks', 'mark_input');
echo '</td>';
}
echo '<td>';
Utility::inputText('total_marks[]', 'total_marks[]', 'Total Marks', 'mark_input');
echo '</td>';
echo '</tr>';
}
?>
</table>
<div style="padding:5px">
<?php
Utility::inputHidden('exam_subject_id', 'exam_subject_id', $id);
Utility::submitButton('save_marks', 'save_marks', 'Save Marks');
?>
</div>
</form>
<div class="error" id="error"></div>
</div>
</div>
</div>
</div>
示例2: foreach
</tr>
<?php
foreach ($students as $key => $value) {
?>
<tr id="<?php
echo $value['id'];
?>
" class="student_list">
<td><?php
echo $value['roll_no'];
?>
</td>
<td><?php
echo $value['name'];
Utility::inputHidden('students[]', 'students[]', $value['id']);
?>
</td>
<td><?php
if (isset($marked[$value['id']]) && $marked[$value['id']] == 1) {
Utility::checkBox($value['id'], $value['id'], 'presence', 1);
} else {
Utility::checkBox($value['id'], $value['id'], 'presence');
}
?>
</td>
</tr>
<?php
}
?>
示例3: foreach
</td>
</tr>
<?php
foreach ($employees as $key => $value) {
?>
<tr id="<?php
echo $key;
?>
" class="employee_list">
<td><?php
echo $key;
?>
</td>
<td><?php
echo $value;
Utility::inputHidden('employees[]', 'employees[]', $key);
?>
</td>
<td><?php
if (isset($marked[$key]) && $marked[$key] == 1) {
Utility::checkBox($key, $key, 'presence', 1);
} else {
Utility::checkBox($key, $key, 'presence');
}
?>
</td>
</tr>
<?php
}
?>
</table>
示例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>
示例5:
<?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>