本文整理汇总了PHP中F_submit_button函数的典型用法代码示例。如果您正苦于以下问题:PHP F_submit_button函数的具体用法?PHP F_submit_button怎么用?PHP F_submit_button使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了F_submit_button函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: F_show_select_user
//.........这里部分代码省略.........
$grp = '';
$sqlg = 'SELECT *
FROM ' . K_TABLE_GROUPS . ', ' . K_TABLE_USERGROUP . '
WHERE usrgrp_group_id=group_id
AND usrgrp_user_id=' . $m['user_id'] . '
ORDER BY group_name';
if ($rg = F_db_query($sqlg, $db)) {
while ($mg = F_db_fetch_array($rg)) {
$grp .= $mg['group_name'] . ', ';
}
} else {
F_display_db_error();
}
echo '<td style="text-align:' . $txtalign . ';"> ' . htmlspecialchars(substr($grp, 0, -2), ENT_NOQUOTES, $l['a_meta_charset']) . '</td>' . K_NEWLINE;
echo '<td><a href="tce_show_result_allusers.php?user_id=' . $m['user_id'] . '" class="xmlbutton" title="' . $l['t_all_results_user'] . '">...</a></td>' . K_NEWLINE;
echo '</tr>' . K_NEWLINE;
} while ($m = F_db_fetch_array($r));
echo '</table>' . K_NEWLINE;
echo '<br />' . K_NEWLINE;
echo '<input type="hidden" name="order_field" id="order_field" value="' . $order_field . '" />' . K_NEWLINE;
echo '<input type="hidden" name="orderdir" id="orderdir" value="' . $orderdir . '" />' . K_NEWLINE;
echo '<input type="hidden" name="firstrow" id="firstrow" value="' . $firstrow . '" />' . K_NEWLINE;
echo '<input type="hidden" name="rowsperpage" id="rowsperpage" value="' . $rowsperpage . '" />' . K_NEWLINE;
// check/uncheck all options
echo '<span dir="' . $l['a_meta_dir'] . '">';
echo '<input type="radio" name="checkall" id="checkall1" value="1" onclick="document.getElementById(\'form_userselect\').submit()" />';
echo '<label for="checkall1">' . $l['w_check_all'] . '</label> ';
echo '<input type="radio" name="checkall" id="checkall0" value="0" onclick="document.getElementById(\'form_userselect\').submit()" />';
echo '<label for="checkall0">' . $l['w_uncheck_all'] . '</label>';
echo '</span>' . K_NEWLINE;
echo '<br />' . K_NEWLINE;
echo '<strong style="margin:5px">' . $l['m_with_selected'] . '</strong>' . K_NEWLINE;
echo '<ul style="margin:0">';
if ($_SESSION['session_user_level'] >= K_AUTH_DELETE_USERS) {
// delete user
echo '<li>';
F_submit_button('delete', $l['w_delete'], $l['h_delete']);
echo '</li>' . K_NEWLINE;
}
if ($_SESSION['session_user_level'] >= K_AUTH_ADMIN_GROUPS) {
echo '<li>';
// add/delete group
echo F_user_group_select('new_group_id');
F_submit_button('addgroup', $l['w_add'], $l['w_add']);
if ($_SESSION['session_user_level'] >= K_AUTH_DELETE_GROUPS) {
F_submit_button('delgroup', $l['w_delete'], $l['h_delete']);
}
echo '</li>' . K_NEWLINE;
if ($_SESSION['session_user_level'] >= K_AUTH_MOVE_GROUPS) {
// move group
echo '<li>';
if ($l['a_meta_dir'] == 'rtl') {
$arr = '←';
} else {
$arr = '→';
}
echo F_user_group_select('from_group_id');
echo $arr;
echo F_user_group_select('to_group_id');
F_submit_button('move', $l['w_move'], $l['w_move']);
echo '</li>' . K_NEWLINE;
}
}
echo '</ul>' . K_NEWLINE;
echo '<div class="row"><hr /></div>' . K_NEWLINE;
// ---------------------------------------------------------------
// -- page jumper (menu for successive pages)
if ($rowsperpage > 0) {
$sql = 'SELECT count(*) AS total FROM ' . K_TABLE_USERS . '' . $wherequery . '';
if (!empty($order_field)) {
$param_array = '&order_field=' . urlencode($order_field) . '';
}
if (!empty($orderdir)) {
$param_array .= '&orderdir=' . $orderdir . '';
}
if (!empty($group_id)) {
$param_array .= '&group_id=' . $group_id . '';
}
if (!empty($searchterms)) {
$param_array .= '&searchterms=' . urlencode($searchterms) . '';
}
$param_array .= '&submitted=1';
F_show_page_navigator($_SERVER['SCRIPT_NAME'], $sql, $firstrow, $rowsperpage, $param_array);
}
echo '<div class="row">' . K_NEWLINE;
echo '<br />';
echo '<a href="tce_xml_users.php" class="xmlbutton" title="' . $l['h_xml_export'] . '">XML</a> ';
echo '<a href="tce_xml_users.php?format=JSON" class="xmlbutton" title="JSON">JSON</a> ';
echo '<a href="tce_tsv_users.php" class="xmlbutton" title="' . $l['h_tsv_export'] . '">TSV</a>';
echo '</div>' . K_NEWLINE;
echo '<div class="pagehelp">' . $l['hp_select_users'] . '</div>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
} else {
F_print_error('MESSAGE', $l['m_search_void']);
}
} else {
F_display_db_error();
}
return TRUE;
}
示例2: getFormRowTextInput
echo '<strong><a href="index.php" title="' . $l['h_index'] . '">' . $l['h_index'] . ' ></a></strong>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
require_once 'tce_page_footer.php';
exit;
}
}
break;
default:
break;
}
//end of switch
echo '<div class="container">' . K_NEWLINE;
echo '<div class="tceformbox">' . K_NEWLINE;
echo '<form action="' . $_SERVER['SCRIPT_NAME'] . '" method="post" enctype="multipart/form-data" id="form_editor">' . K_NEWLINE;
echo getFormRowTextInput('user_email', $l['w_new_email'], $l['h_email'], '', '', '^([a-zA-Z0-9_\\.\\-]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$', 255, false, false, false, '');
echo getFormRowTextInput('user_email_repeat', $l['w_new_email'], $l['h_email'], ' (' . $l['w_repeat'] . ')', '', '', 255, false, false, false, '');
echo getFormRowTextInput('currentpassword', $l['w_password'], $l['h_password'], '', '', '', 255, false, false, true, '');
echo '<div class="row">' . K_NEWLINE;
F_submit_button('update', $l['w_update'], $l['h_update']);
// comma separated list of required fields
echo '<input type="hidden" name="ff_required" id="ff_required" value="user_email,user_email_repeat" />' . K_NEWLINE;
echo '<input type="hidden" name="ff_required_labels" id="ff_required_labels" value="' . htmlspecialchars($l['w_email'] . ',' . $l['w_email'], ENT_COMPAT, $l['a_meta_charset']) . '" />' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '</form>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '<div class="pagehelp">' . $l['hp_user_change_email'] . '</div>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
require_once dirname(__FILE__) . '/tce_page_footer.php';
//============================================================+
// END OF FILE
//============================================================+
示例3: F_submit_button
</span>
<span class="formw">
<input type="hidden" name="MAX_FILE_SIZE" value="<?php
echo K_MAX_UPLOAD_SIZE;
?>
" />
<input type="file" name="userfile" id="userfile" size="20" title="<?php
echo $l['h_upload_file'];
?>
" />
</span>
</div>
<div class="row">
<?php
// show buttons by case
F_submit_button("upload", $l['w_upload'], $l['h_submit_file']);
?>
</div>
</form>
</div>
<?php
echo '<div class="pagehelp">' . $l['hp_import_dhcp'] . '</div>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
require_once '../code/tce_page_footer.php';
//============================================================+
// END OF FILE
//============================================================+
示例4: F_show_select_test
//.........这里部分代码省略.........
$wherequery = ' WHERE';
} else {
$wherequery .= ' AND';
}
$wherequery .= ' (test_id>0)';
if ($_SESSION['session_user_level'] < K_AUTH_ADMINISTRATOR) {
$wherequery .= ' AND test_user_id IN (' . F_getAuthorizedUsers($_SESSION['session_user_id']) . ')';
}
if (!empty($andwhere)) {
$wherequery .= ' AND (' . $andwhere . ')';
}
$sql = 'SELECT * FROM ' . K_TABLE_TESTS . $wherequery . ' ORDER BY ' . $full_order_field;
if (K_DATABASE_TYPE == 'ORACLE') {
$sql = 'SELECT * FROM (' . $sql . ') WHERE rownum BETWEEN ' . $firstrow . ' AND ' . ($firstrow + $rowsperpage) . '';
} else {
$sql .= ' LIMIT ' . $rowsperpage . ' OFFSET ' . $firstrow . '';
}
if ($r = F_db_query($sql, $db)) {
if ($m = F_db_fetch_array($r)) {
// -- Table structure with links:
echo '<div class="container">';
echo '<table class="userselect">' . K_NEWLINE;
// table header
echo '<tr>' . K_NEWLINE;
echo '<th> </th>' . K_NEWLINE;
if (strlen($searchterms) > 0) {
$filter .= '&searchterms=' . urlencode($searchterms);
}
echo F_select_table_header_element('test_begin_time', $nextorderdir, $l['w_time_begin'] . ' ' . $l['w_datetime_format'], $l['w_time_begin'], $order_field, $filter);
echo F_select_table_header_element('test_end_time', $nextorderdir, $l['w_time_end'] . ' ' . $l['w_datetime_format'], $l['w_time_end'], $order_field, $filter);
echo F_select_table_header_element('test_name', $nextorderdir, $l['h_test_name'], $l['w_name'], $order_field, $filter);
echo F_select_table_header_element('test_description', $nextorderdir, $l['h_test_description'], $l['w_description'], $order_field, $filter);
echo '</tr>' . K_NEWLINE;
$itemcount = 0;
do {
$itemcount++;
echo '<tr>' . K_NEWLINE;
echo '<td>';
echo '<input type="checkbox" name="testid' . $itemcount . '" id="testid' . $itemcount . '" value="' . $m['test_id'] . '" title="' . $l['w_select'] . '"';
if (isset($_REQUEST['checkall']) and $_REQUEST['checkall'] == 1) {
echo ' checked="checked"';
}
echo ' />';
echo '</td>' . K_NEWLINE;
echo '<td style="text-align:' . $txtalign . ';"> ' . htmlspecialchars($m['test_begin_time'], ENT_NOQUOTES, $l['a_meta_charset']) . '</td>' . K_NEWLINE;
echo '<td style="text-align:' . $txtalign . ';"> ' . htmlspecialchars($m['test_end_time'], ENT_NOQUOTES, $l['a_meta_charset']) . '</td>' . K_NEWLINE;
echo '<td style="text-align:' . $txtalign . ';"> <a href="tce_edit_test.php?test_id=' . $m['test_id'] . '" title="' . $l['w_edit'] . '">' . htmlspecialchars($m['test_name'], ENT_NOQUOTES, $l['a_meta_charset']) . '</a></td>' . K_NEWLINE;
echo '<td style="text-align:' . $txtalign . ';"> ' . htmlspecialchars($m['test_description'], ENT_NOQUOTES, $l['a_meta_charset']) . '</td>' . K_NEWLINE;
echo '</tr>' . K_NEWLINE;
} while ($m = F_db_fetch_array($r));
echo '</table>' . K_NEWLINE;
echo '<br />' . K_NEWLINE;
echo '<input type="hidden" name="order_field" id="order_field" value="' . $order_field . '" />' . K_NEWLINE;
echo '<input type="hidden" name="orderdir" id="orderdir" value="' . $orderdir . '" />' . K_NEWLINE;
echo '<input type="hidden" name="firstrow" id="firstrow" value="' . $firstrow . '" />' . K_NEWLINE;
echo '<input type="hidden" name="rowsperpage" id="rowsperpage" value="' . $rowsperpage . '" />' . K_NEWLINE;
// check/uncheck all options
echo '<span dir="' . $l['a_meta_dir'] . '">';
echo '<input type="radio" name="checkall" id="checkall1" value="1" onclick="document.getElementById(\'form_testselect\').submit()" />';
echo '<label for="checkall1">' . $l['w_check_all'] . '</label> ';
echo '<input type="radio" name="checkall" id="checkall0" value="0" onclick="document.getElementById(\'form_testselect\').submit()" />';
echo '<label for="checkall0">' . $l['w_uncheck_all'] . '</label>';
echo '</span>' . K_NEWLINE;
echo '<br />' . K_NEWLINE;
echo '<strong style="margin:5px">' . $l['m_with_selected'] . '</strong>' . K_NEWLINE;
// delete user
echo '<div>';
F_submit_button('delete', $l['w_delete'], $l['h_delete']);
F_submit_button('lock', $l['w_lock'], $l['w_lock']);
F_submit_button('unlock', $l['w_unlock'], $l['w_unlock']);
echo '</div>' . K_NEWLINE;
echo '<div class="row"><hr /></div>' . K_NEWLINE;
// ---------------------------------------------------------------
// -- page jumper (menu for successive pages)
if ($rowsperpage > 0) {
$sql = 'SELECT count(*) AS total FROM ' . K_TABLE_TESTS . '' . $wherequery . '';
if (!empty($order_field)) {
$param_array = '&order_field=' . urlencode($order_field) . '';
}
if (!empty($orderdir)) {
$param_array .= '&orderdir=' . $orderdir . '';
}
if (!empty($searchterms)) {
$param_array .= '&searchterms=' . urlencode($searchterms) . '';
}
$param_array .= '&submitted=1';
F_show_page_navigator($_SERVER['SCRIPT_NAME'], $sql, $firstrow, $rowsperpage, $param_array);
}
echo '<div class="row">' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '<div class="pagehelp">' . $l['hp_select_tests'] . '</div>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
} else {
F_print_error('MESSAGE', $l['m_search_void']);
}
} else {
F_display_db_error();
}
return TRUE;
}
示例5: htmlspecialchars
echo '<option value="' . $m['tmp_id'] . '"';
if ($m['tmp_id'] == $footer_tmp_id) {
echo ' selected="selected"';
}
echo '>' . htmlspecialchars($m['tmp_name'], ENT_NOQUOTES, $l['a_meta_charset']) . '</option>' . K_NEWLINE;
}
} else {
echo '</select></span></div>' . K_NEWLINE;
F_display_db_error();
}
echo '</select>' . K_NEWLINE;
echo '</span>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
// generate button
echo '<div class="row">' . K_NEWLINE;
F_submit_button('generate', $l['w_generate'], $l['h_generate_script']);
echo '</div>' . K_NEWLINE;
echo '<div class="row">' . K_NEWLINE;
echo ' ' . K_NEWLINE;
// comma separated list of required fields
echo '<input type="hidden" name="ff_required" id="ff_required" value="" />' . K_NEWLINE;
echo '<input type="hidden" name="ff_required_labels" id="ff_required_labels" value="" />' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '</form>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '<div class="pagehelp">' . $l['hp_script_generator'] . '</div>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
require_once '../code/tce_page_footer.php';
//============================================================+
// END OF FILE
//============================================================+
示例6: htmlspecialchars
echo '<span class="label"> </span>' . K_NEWLINE;
echo '<span class="formw">' . K_NEWLINE;
echo '<input type="radio" name="default_score" id="default_score_unanswered" value="0" onclick="document.getElementById(\'form_ratingeditor\').testlog_score.value=\'' . $test_score_unanswered . '\'" title="' . $l['h_score_unanswered'] . '" /><label for="default_score_unanswered">' . $l['w_score_unanswered'] . ' [' . $test_score_unanswered . ']</label>' . K_NEWLINE;
echo '</span>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '<div class="row">' . K_NEWLINE;
echo '<br />' . K_NEWLINE;
echo '<span class="label">' . K_NEWLINE;
echo '<label for="testlog_comment">' . $l['w_comment'] . '</label>' . K_NEWLINE;
echo '</span>' . K_NEWLINE;
echo '<span class="formw">' . K_NEWLINE;
echo '<textarea cols="50" rows="5" name="testlog_comment" id="testlog_comment" style="color:#FF0000" title="' . $l['w_comment'] . '">' . htmlspecialchars($testlog_comment, ENT_NOQUOTES, $l['a_meta_charset']) . '</textarea>' . K_NEWLINE;
echo '</span>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '<div class="row">' . K_NEWLINE;
// show buttons by case
if (isset($testlog_id) and $testlog_id > 0) {
F_submit_button("update", $l['w_update'], $l['h_update']);
}
// comma separated list of required fields
echo '<input type="hidden" name="ff_required" id="ff_required" value="testlog_score" />' . K_NEWLINE;
echo '<input type="hidden" name="ff_required_labels" id="ff_required_labels" value="' . $l['w_score'] . '" />' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '</form>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '<div class="pagehelp">' . $l['hp_edit_rating'] . '</div>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
require_once '../code/tce_page_footer.php';
//============================================================+
// END OF FILE
//============================================================+
示例7: F_object_selector
echo F_object_selector($cab_b_obj_id, 'cab_b_obj_id', $l['w_object'] . ' (B)', false, false);
echo F_select_connection_type($cab_cbt_id);
}
echo F_select_color($cab_color, 'cab_color', $l['w_color'], $l['h_cable_color']);
echo '<div class="row">' . K_NEWLINE;
// show buttons by case
if (isset($cab_ids) and !empty($cab_ids)) {
echo '<span style="background-color:#999999;">';
echo '<input type="checkbox" name="confirmupdate" id="confirmupdate" value="1" title="confirm → update" />';
F_submit_button('update', $l['w_update'], $l['h_update']);
echo '</span>';
F_submit_button('delete', $l['w_delete'], $l['h_delete']);
} else {
F_submit_button('add', $l['w_add'], $l['h_add']);
}
F_submit_button('clear', $l['w_clear'], $l['h_clear']);
echo '</div>' . K_NEWLINE;
echo '<div class="row">' . K_NEWLINE;
echo ' ' . K_NEWLINE;
// comma separated list of required fields
echo '<input type="hidden" name="ff_required" id="ff_required" value="cab_color" />' . K_NEWLINE;
echo '<input type="hidden" name="ff_required_labels" id="ff_required_labels" value="' . htmlspecialchars($l['w_color'], ENT_COMPAT, $l['a_meta_charset']) . '" />' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '</form>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '<div class="pagehelp">' . $l['hp_connection_editor'] . '</div>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
require_once '../code/tce_page_footer.php';
//============================================================+
// END OF FILE
//============================================================+
示例8: F_display_db_error
F_display_db_error();
}
echo '</select>' . K_NEWLINE;
echo '</span>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
}
if ($regfields['user_agreement'] > 0) {
echo '<div class="row">' . K_NEWLINE;
echo '<span class="label"> </span>' . K_NEWLINE;
echo '<span class="formw">' . K_NEWLINE;
echo '<input type="checkbox" name="user_agreement" id="user_agreement" value="1" title="..." />' . K_NEWLINE;
echo '<label for="user_agreement"><a href="' . K_USRREG_AGREEMENT . '" title="' . $l['m_new_window_link'] . '">' . $l['w_i_agree'] . '</a></label></span>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
}
echo '<div class="row">' . K_NEWLINE;
F_submit_button("add", $l['w_add'], $l['h_add']);
// set fields descriptions for error messages
$fielddesc = array('user_name' => $l['w_name'], 'newpassword' => $l['w_password'], 'newpassword_repeat' => $l['w_password'], 'user_email' => $l['w_email'], 'user_regnumber' => $l['w_regcode'], 'user_firstname' => $l['w_firstname'], 'user_lastname' => $l['w_lastname'], 'user_sshkey' => $l['w_sshkey'], 'user_groups' => $l['w_groups'], 'user_agreement' => $l['w_i_agree']);
$reqfields = '';
$reqdesc = '';
foreach ($regfields as $field => $required) {
if ($required == 2) {
$reqfields .= ',' . $field;
$reqdesc .= ',' . htmlspecialchars($fielddesc[$field], ENT_COMPAT, $l['a_meta_charset']);
}
}
$reqfields = substr($reqfields, 1);
$reqdesc = substr($reqdesc, 1);
// comma separated list of required fields
echo '<input type="hidden" name="ff_required" id="ff_required" value="' . $reqfields . '" />' . K_NEWLINE;
echo '<input type="hidden" name="ff_required_labels" id="ff_required_labels" value="' . $reqdesc . '" />' . K_NEWLINE;
示例9: getFormRowTextInput
echo '<select name="tsubset_difficulty" id="tsubset_difficulty" size="0" title="' . $l['h_question_difficulty'] . '">' . K_NEWLINE;
for ($i = 0; $i <= K_QUESTION_DIFFICULTY_LEVELS; ++$i) {
echo '<option value="' . $i . '"';
if ($i == $tsubset_difficulty) {
echo ' selected="selected"';
}
echo '>' . $i . '</option>' . K_NEWLINE;
}
echo '</select>' . K_NEWLINE;
echo '</span>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo getFormRowTextInput('tsubset_answers', $l['w_num_answers'], $l['h_num_answers'], '', $tsubset_answers, '^([0-9]*)$', 20, false, false, false);
echo '<div class="row">' . K_NEWLINE;
echo '<span class="label"> </span>' . K_NEWLINE;
echo '<span class="formw">' . K_NEWLINE;
F_submit_button("addquestion", $l['w_add_questions'], $l['h_add_questions']);
echo '</span>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '<div class="rowl" title="' . $l['h_subjects'] . '">' . K_NEWLINE;
echo '<br />' . K_NEWLINE;
echo '<div class="preview">' . K_NEWLINE;
$subjlist = '';
$sql = 'SELECT * FROM ' . K_TABLE_TEST_SUBJSET . '
WHERE tsubset_test_id=\'' . $test_id . '\'
ORDER BY tsubset_id';
if ($r = F_db_query($sql, $db)) {
while ($m = F_db_fetch_array($r)) {
$subjlist .= '<li>';
$subjects_list = '';
$sqls = 'SELECT subject_id,subject_name
FROM ' . K_TABLE_SUBJECTS . ', ' . K_TABLE_SUBJECT_SET . '
示例10: F_send_user_reg_email
F_send_user_reg_email($user_id, $user_email, $user_verifycode);
F_print_error('MESSAGE', $user_email . ': ' . $l['m_user_verification_sent']);
echo '<div class="container">' . K_NEWLINE;
echo '<strong><a href="index.php" title="' . $l['h_index'] . '">' . $l['h_index'] . ' ></a></strong>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
require_once '../code/tce_page_footer.php';
exit;
} else {
F_print_error('ERROR', $l['w_unknown_email']);
}
}
}
//end of add
echo '<div class="container">' . K_NEWLINE;
echo '<div class="tceformbox">' . K_NEWLINE;
echo '<form action="' . $_SERVER['SCRIPT_NAME'] . '" method="post" enctype="multipart/form-data" id="form_usereditor">' . K_NEWLINE;
echo '<p>' . $l['d_reset_password'] . '</p>' . K_NEWLINE;
echo getFormRowTextInput('user_email', $l['w_email'], $l['h_usered_email'], '', '', '^([a-zA-Z0-9_\\.\\-]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$', 255, false, false, false, '');
echo '<div class="row">' . K_NEWLINE;
F_submit_button('resetpassword', $l['w_submit'], $l['h_submit']);
// comma separated list of required fields
echo '<input type="hidden" name="ff_required" id="ff_required" value="user_email" />' . K_NEWLINE;
echo '<input type="hidden" name="ff_required_labels" id="ff_required_labels" value="' . $l['w_email'] . '" />' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '</form>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
require_once '../code/tce_page_footer.php';
//============================================================+
// END OF FILE
//============================================================+
示例11: F_submit_button
echo '</ul>';
echo '</li>' . K_NEWLINE;
}
echo '</ul>';
echo '<hr />' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '<div class="row">' . K_NEWLINE;
// show buttons by case
if (isset($test_id) and $test_id > 0 and isset($user_id) and $user_id > 0) {
F_submit_button('delete', $l['w_delete'], $l['h_delete']);
if ($testuser_status < 4) {
// lock test button
F_submit_button('lock', $l['w_lock'], $l['w_lock']);
} else {
// unlock test button
F_submit_button('unlock', $l['w_unlock'], $l['w_unlock']);
}
echo '<br /><br />';
echo '<a href="' . pdfLink(3, $test_id, 0, $user_id, '', 0) . '" class="xmlbutton" title="' . $l['h_pdf'] . '">' . $l['w_pdf'] . '</a> ';
echo '<a href="tce_email_results.php?testid=' . $test_id . '&userid=' . $user_id . '&mode=1" class="xmlbutton" title="' . $l['h_email_result'] . '">' . $l['w_email_result'] . '</a> ';
echo '<a href="tce_email_results.php?testid=' . $test_id . '&userid=' . $user_id . '&mode=0" class="xmlbutton" title="' . $l['h_email_result'] . ' + PDF">' . $l['w_email_result'] . ' + PDF</a> ';
}
// comma separated list of required fields
echo '<input type="hidden" name="ff_required" id="ff_required" value="" />' . K_NEWLINE;
echo '<input type="hidden" name="ff_required_labels" id="ff_required_labels" value="" />' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
}
// end "if (isset($usrtestdata))"
echo '</form>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '<div class="pagehelp">' . $l['hp_result_user'] . '</div>' . K_NEWLINE;
示例12: F_getSelectedObject
if ($filtered === true) {
echo F_getSelectedObject($dcn_id, $sts_id, $rck_id, $obt_id, $obj_owner_id, $obj_tenant_id, $keywords);
// *** user groups ***
// -----------------------------------------------------------------------------
// group permissions
echo '<fieldset class="subset" style="text-align:left;">' . K_NEWLINE;
echo '<legend>' . $l['t_permissions'] . '</legend>' . K_NEWLINE;
echo F_groupsPermsSelector($perms, true);
echo '</fieldset>' . K_NEWLINE;
// -----------------------------------------------------------------------------
echo getFormRowCheckBox('sshkey_overwrite', $l['w_overwrite'], $l['h_sshkey_overwrite'], '', '1', $sshkey_overwrite, false, '');
// generate button
echo '<div class="row">' . K_NEWLINE;
F_submit_button('update', $l['w_update'], $l['h_update']);
if ($userlevel >= K_AUTH_ADMINISTRATOR) {
F_submit_button('updatessh', $l['w_update_ssh'], $l['h_update_ssh']);
}
echo '</div>' . K_NEWLINE;
}
echo '<div class="row">' . K_NEWLINE;
echo ' ' . K_NEWLINE;
// comma separated list of required fields
echo '<input type="hidden" name="ff_required" id="ff_required" value="" />' . K_NEWLINE;
echo '<input type="hidden" name="ff_required_labels" id="ff_required_labels" value="" />' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '</form>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '<div class="pagehelp">' . $l['hp_bulk_access_groups'] . '</div>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
require_once '../code/tce_page_footer.php';
//============================================================+
示例13: F_print_error
F_print_error('MESSAGE', $l['m_file_saved'] . ': <a href="' . K_PATH_URL_CONFIG_SCRIPTS . $outfile . '" title="' . $l['w_download'] . '" onclick="pdfWindow=window.open(\'' . K_PATH_URL_CONFIG_SCRIPTS . $outfile . '\',\'expWindow\',\'dependent,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes\'); return false;">' . $outfile . '</a>');
} else {
F_print_error('ERROR', $l['m_file_save_error'] . ': ' . $outfile);
}
break;
default:
break;
}
//end of switch
// -----------------------------------------------------------------------------
echo '<div class="container">' . K_NEWLINE;
echo '<div class="tceformbox">' . K_NEWLINE;
echo '<form action="' . $_SERVER['SCRIPT_NAME'] . '" method="post" enctype="multipart/form-data" id="form_editor">' . K_NEWLINE;
// export button
echo '<div class="row">' . K_NEWLINE;
F_submit_button('generate', $l['w_export'], $l['w_export_data']);
echo '</div>' . K_NEWLINE;
echo '<div class="row">' . K_NEWLINE;
echo ' ' . K_NEWLINE;
// comma separated list of required fields
echo '<input type="hidden" name="ff_required" id="ff_required" value="" />' . K_NEWLINE;
echo '<input type="hidden" name="ff_required_labels" id="ff_required_labels" value="" />' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '</form>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '<div class="pagehelp">' . $l['hp_export_objects_csv'] . '</div>' . K_NEWLINE;
echo '</div>' . K_NEWLINE;
require_once '../code/tce_page_footer.php';
//============================================================+
// END OF FILE
//============================================================+
示例14: F_questionForm
// display questions + navigation menu
echo F_questionForm($test_id, $testlog_id, $formname);
// the $finish variable is used to check if the form has been automatically submitted
// at the end of the time.
if (isset($_REQUEST['finish']) and $_REQUEST['finish'] > 0) {
$finish = 1;
} else {
$finish = 0;
}
echo '<input type="hidden" name="finish" id="finish" value="' . $finish . '" />' . K_NEWLINE;
echo '<input type="hidden" name="display_time" id="display_time" value="" />' . K_NEWLINE;
echo '<input type="hidden" name="reaction_time" id="reaction_time" value="" />' . K_NEWLINE;
// textarea field for user's comment
echo '<span class="testcomment">' . F_testComment($test_id) . '</span>' . K_NEWLINE;
// test termination button
F_submit_button('terminatetest', $l['w_terminate_exam'], $l['w_terminate_exam']);
echo K_NEWLINE;
echo '</div>' . K_NEWLINE;
echo '</form>' . K_NEWLINE;
}
// start the countdown if disabled
if (isset($examtime)) {
if (isset($timeout_logout) and $timeout_logout) {
$timeout_logout = 'true';
} else {
$timeout_logout = 'false';
}
echo '<script type="text/javascript">' . K_NEWLINE;
echo '//<![CDATA[' . K_NEWLINE;
echo 'if(!enable_countdown) {' . K_NEWLINE;
echo ' FJ_start_timer(\'true\', ' . (time() - $examtime) . ', \'' . addslashes($l['m_exam_end_time']) . '\', ' . $timeout_logout . ');' . K_NEWLINE;
示例15: F_submit_button
echo '<td colspan="7"> </td>';
echo '</tr>';
echo '</table>' . K_NEWLINE;
if ($itemcount > 0) {
// check/uncheck all options
echo '<span dir="ltr">';
echo '<input type="radio" name="checkall" id="checkall1" value="1" onclick="document.getElementById(\'form_resultallusers\').submit()" />';
echo '<label for="checkall1">' . $l['w_check_all'] . '</label> ';
echo '<input type="radio" name="checkall" id="checkall0" value="0" onclick="document.getElementById(\'form_resultallusers\').submit()" />';
echo '<label for="checkall0">' . $l['w_uncheck_all'] . '</label>';
echo '</span>' . K_NEWLINE;
echo '<br /><strong style="margin:5px">' . $l['m_with_selected'] . '</strong><br />' . K_NEWLINE;
F_submit_button('delete', $l['w_delete'], $l['h_delete']);
F_submit_button('lock', $l['w_lock'], $l['w_lock']);
F_submit_button('unlock', $l['w_unlock'], $l['w_unlock']);
F_submit_button('extendtime', '+' . K_EXTEND_TIME_MINUTES . ' min', $l['h_add_five_minutes']);
echo '<br /><br />' . K_NEWLINE;
// calculate statistics
$stats = F_getArrayStatistics($statsdata);
$excludestat = array('sum', 'variance');
$calcpercent = array('mean', 'median', 'mode', 'minimum', 'maximum', 'range', 'standard_deviation');
echo '<table class="userselect">' . K_NEWLINE;
echo '<tr><td colspan="13" style="background-color:#DDDDDD;"><strong>' . $l['w_statistics'] . '</strong></td></tr>' . K_NEWLINE;
// print statistics (one line for each statistic data).
if ($usrtestdata['score_threshold'] > 0 and $stats['number']['score'] > 0) {
echo '<tr><td style="text-align:' . $tdalignr . ';">' . $l['w_passed'] . '</td><td class="numeric">' . $passed . ' ' . F_formatPercentage($passed / $stats['number']['score']) . '</td><td colspan="5"> </td></tr>' . K_NEWLINE;
}
echo '<tr>' . K_NEWLINE;
echo '<th> </th>' . K_NEWLINE;
echo '<th title="' . $l['h_score'] . '">' . $l['w_score'] . '</th>' . K_NEWLINE;
echo '<th title="' . $l['h_answers_right'] . '">' . $l['w_answers_right'] . '</th>' . K_NEWLINE;