當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Utility::inputHidden方法代碼示例

本文整理匯總了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>
開發者ID:srinivasans,項目名稱:educloud,代碼行數:30,代碼來源:marking_list_view.php

示例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 
}
?>
開發者ID:srinivasans,項目名稱:educloud,代碼行數:31,代碼來源:student_attendence_view.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>
開發者ID:srinivasans,項目名稱:educloud,代碼行數:31,代碼來源:employee_mark_att.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

示例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>
開發者ID:srinivasans,項目名稱:educloud,代碼行數:30,代碼來源:exam_timetable_create.php


注:本文中的Utility::inputHidden方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。