echo '<option value="1"'; if ($sqlordermode == 1) { echo ' selected="selected"'; } echo '>' . $l['w_question'] . '</option>' . K_NEWLINE; echo '<option value="2"'; if ($sqlordermode == 2) { echo ' selected="selected"'; } echo '>' . $l['w_time'] . '</option>' . K_NEWLINE; echo '</select>' . K_NEWLINE; echo '</span>' . K_NEWLINE; echo '</div>' . K_NEWLINE; echo getFormNoscriptSelect('selectmode'); echo getFormRowCheckBox('display_user_info', $l['w_display_user_info'], $l['h_display_user_info'], '', 1, $display_user_info, false, ''); echo getFormRowCheckBox('display_all', $l['w_display_all'], $l['h_display_all'], '', 1, $display_all, false, ''); echo '<div class="row"><hr /></div>' . K_NEWLINE; echo '<div class="row">' . K_NEWLINE; echo '<span class="label">' . K_NEWLINE; echo '<span title="' . $l['h_question_description'] . '">' . $l['w_question'] . '</span>' . K_NEWLINE; echo '</span>' . K_NEWLINE; echo '<span class="formw">' . K_NEWLINE; echo $question; echo ' ' . K_NEWLINE; echo '</span>' . K_NEWLINE; echo '</div>' . K_NEWLINE; if (K_ENABLE_QUESTION_EXPLANATION and !empty($explanation)) { echo '<div class="row">' . K_NEWLINE; echo '<span class="label">' . K_NEWLINE; echo '<span title="' . $l['w_explanation'] . '">' . $l['w_explanation'] . '</span>' . K_NEWLINE; echo '</span>' . K_NEWLINE;
echo '<span class="label">' . K_NEWLINE; echo '<label for="subject_description">' . $l['w_description'] . '</label>' . K_NEWLINE; echo '<br />' . K_NEWLINE; echo '<a href="#" title="' . $l['h_preview'] . '" class="xmlbutton" onclick="previewWindow=window.open(\'tce_preview_tcecode.php?tcexamcode=\'+encodeURIComponent(document.getElementById(\'form_subjecteditor\').subject_description.value),\'previewWindow\',\'dependent,height=500,width=500,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no\'); return false;">' . $l['w_preview'] . '</a>' . K_NEWLINE; echo '</span>' . K_NEWLINE; echo '<span class="formw" style="border:1px solid #808080;">' . K_NEWLINE; echo '<textarea cols="50" rows="5" name="subject_description" id="subject_description" onselect="FJ_update_selection(document.getElementById(\'form_subjecteditor\').subject_description)" title="' . $l['h_subject_description'] . '"'; if (K_ENABLE_VIRTUAL_KEYBOARD) { echo ' class="keyboardInput"'; } echo '>' . htmlspecialchars($subject_description, ENT_NOQUOTES, $l['a_meta_charset']) . '</textarea>' . K_NEWLINE; echo '<br />' . K_NEWLINE; echo tcecodeEditorTagButtons('form_subjecteditor', 'subject_description'); echo '</span>' . K_NEWLINE; echo '</div>' . K_NEWLINE; echo getFormRowCheckBox('subject_enabled', $l['w_enabled'], $l['h_enabled'], '', 1, $subject_enabled, false, ''); echo '<div class="row">' . K_NEWLINE; // show buttons by case if (isset($subject_id) and $subject_id > 0) { 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('add', $l['w_add'], $l['h_add']); 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 '<option value="' . $m['atb_id'] . '"'; if (F_isObjectAttribute($obt_id, $m['atb_id'])) { echo ' selected="selected"'; $m['atb_name'] = '* ' . $m['atb_name']; } echo '>' . htmlspecialchars($m['atb_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; echo F_select_color($obt_color, 'obt_color', $l['w_color'], $l['h_object_color']); echo getFormRowCheckBox('obt_virtual', $l['w_virtual'], $l['h_virtual_object'], '', '1', $obt_virtual, false, ''); echo '<div class="row">' . K_NEWLINE; // show buttons by case if (isset($obt_id) and $obt_id > 0) { 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']); //F_submit_button('add', $l['w_add'], $l['h_add']); } else { F_submit_button('add', $l['w_add'], $l['h_add']); } F_submit_button('clear', $l['w_clear'], $l['h_clear']); // comma separated list of required fields echo '<input type="hidden" name="ff_required" id="ff_required" value="obt_name" />' . K_NEWLINE;
echo '<option value="' . $pos . '"'; if ($pos == $question_position) { echo ' selected="selected"'; } echo '>' . $pos . '</option>' . K_NEWLINE; } echo '<option value="' . ($max_position + 1) . '" style="color:#ff0000">' . ($max_position + 1) . '</option>' . K_NEWLINE; echo '</select>' . K_NEWLINE; echo '<input type="hidden" name="max_position" id="max_position" value="' . $max_position . '" />' . K_NEWLINE; echo '</span>' . K_NEWLINE; echo '</div>' . K_NEWLINE; echo getFormRowTextInput('question_timer', $l['w_timer'], $l['h_question_timer'], '[sec]', $question_timer, '^([0-9]*)$', 20, false, false, false, ''); echo getFormRowCheckBox('question_fullscreen', $l['w_fullscreen'], $l['h_question_fullscreen'], '', 1, $question_fullscreen, false, ''); echo getFormRowCheckBox('question_inline_answers', $l['w_inline_answers'], $l['h_question_inline_answers'], '', 1, $question_inline_answers, false, ''); echo getFormRowCheckBox('question_auto_next', $l['w_auto_next'], $l['h_question_auto_next'], '', 1, $question_auto_next, false, ''); echo getFormRowCheckBox('question_enabled', $l['w_enabled'], $l['h_enabled'], '', 1, $question_enabled, false, ''); echo '<div class="row">' . K_NEWLINE; // show buttons by case if (isset($question_id) and $question_id > 0) { 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('add', $l['w_add'], $l['h_add']); if (isset($question_id) and $question_id > 0) { F_submit_button('delete', $l['w_delete'], $l['h_delete']); } F_submit_button('clear', $l['w_clear'], $l['h_clear']); echo '</div>' . K_NEWLINE; echo '<div class="row">' . K_NEWLINE;
echo '<label for="display_mode">' . $l['w_stats'] . '</label>' . K_NEWLINE; echo '</span>' . K_NEWLINE; echo '<span class="formw">' . K_NEWLINE; echo '<select name="display_mode" id="display_mode" size="0" title="' . $l['w_mode'] . '">' . K_NEWLINE; foreach ($detail_modes as $key => $dmode) { echo '<option value="' . $key . '"'; if ($key == $display_mode) { echo ' selected="selected"'; } echo '>' . htmlspecialchars($dmode, ENT_NOQUOTES, $l['a_meta_charset']) . '</option>' . K_NEWLINE; } echo '</select>' . K_NEWLINE; echo '</span>' . K_NEWLINE; echo '</div>' . K_NEWLINE; echo getFormNoscriptSelect('display_mode'); echo getFormRowCheckBox('show_graph', $l['w_graph'], $l['w_result_graph'], '', 1, $show_graph, false, ''); echo '<div class="row">' . K_NEWLINE; echo '<span class="label"> </span>' . K_NEWLINE; echo '<span class="formw">' . K_NEWLINE; echo '<input type="submit" name="selectcategory" id="selectcategory" value="' . $l['w_select'] . '" />' . K_NEWLINE; echo '</span>' . K_NEWLINE; echo '</div>' . K_NEWLINE; echo '<div class="row"><hr /></div>' . K_NEWLINE; // --------------------------------------------------------------------- $itemcount = 0; $data = F_getAllUsersTestStat($test_id, $group_id, $user_id, $startdate, $enddate, $full_order_field, true, $display_mode); if (isset($data['num_records'])) { $itemcount = $data['num_records']; } echo '<div class="rowl">' . K_NEWLINE; echo F_printTestResultStat($data, $nextorderdir, $order_field, $filter, true, $display_mode);
} echo '>' . htmlspecialchars($ov, ENT_NOQUOTES, $l['a_meta_charset']) . '</option>' . K_NEWLINE; } echo '</select>' . K_NEWLINE; echo '</span>' . K_NEWLINE; echo '</span>' . K_NEWLINE; echo '</div>' . K_NEWLINE; echo getFormRowCheckBox('test_mcma_radio', $l['w_mcma_radio'], '', '', 1, $test_mcma_radio, false); echo getFormRowCheckBox('test_mcma_partial_score', $l['w_mcma_partial_score'], '', '', 1, $test_mcma_partial_score, false); echo getFormRowCheckBox('test_noanswer_enabled', $l['w_enable_noanswer'], '', '', 1, $test_noanswer_enabled, false); echo getFormRowCheckBox('test_menu_enabled', $l['w_enable_menu'], '', '', 1, $test_menu_enabled, false); echo getFormRowCheckBox('test_comment_enabled', $l['w_enable_comment'], '', '', 1, $test_comment_enabled, false); echo getFormRowCheckBox('test_results_to_users', $l['w_results_to_users'], '', '', 1, $test_results_to_users, false); echo getFormRowCheckBox('test_report_to_users', $l['w_report_to_users'], '', '', 1, $test_report_to_users, false); echo getFormRowCheckBox('test_repeatable', $l['w_repeatable'], '', '', 1, $test_repeatable, false); echo getFormRowCheckBox('test_logout_on_timeout', $l['w_logout_on_timeout'], '', '', 1, $test_logout_on_timeout, false); echo getFormRowTextInput('new_test_password', $l['w_password'], $l['h_test_password'], ' (' . $l['d_password_lenght'] . ')', '', '^([a-zA-Z0-9]{8,32})$', 255, false, false, true); echo '<div class="row">' . K_NEWLINE; echo '<br />' . K_NEWLINE; echo '<input type="hidden" name="test_password" id="test_password" value="' . $test_password . '" />' . K_NEWLINE; // show buttons by case if (isset($test_id) and $test_id > 0) { 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('add', $l['w_add'], $l['h_add']); if (isset($test_id) and $test_id > 0) { F_submit_button('delete', $l['w_delete'], $l['h_delete']); if (substr($test_end_time, 0, 1) < $millennium) {
FROM ' . K_TABLE_GROUPS . ', ' . K_TABLE_USERGROUP . ' WHERE usrgrp_group_id=group_id AND usrgrp_user_id=' . $module_user_id . ' ORDER BY group_name'; if ($rg = F_db_query($sqlg, $db)) { echo '<span style="font-style:italic;color#333333;font-size:small;">'; while ($mg = F_db_fetch_array($rg)) { echo ' · ' . $mg['group_name'] . ''; } echo '</span>'; } else { F_display_db_error(); } echo '</span>' . K_NEWLINE; echo '</div>' . K_NEWLINE; echo getFormRowCheckBox('module_enabled', $l['w_enabled'], $l['h_enabled'], '', 1, $module_enabled, false, ''); echo '<div class="row">' . K_NEWLINE; // show buttons by case if (isset($module_id) and $module_id > 0) { 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 '<span class="right">' . K_NEWLINE;
$dirs = array('OMR/'); $dirhdl = @opendir(K_PATH_CACHE . 'OMR/'); if ($dirhdl !== false) { while ($file = readdir($dirhdl)) { if ($file != '.' and $file != '..') { $filename = K_PATH_CACHE . 'OMR/' . $file . '/'; if (is_dir($filename)) { $dirs[$filename] = 'OMR/' . $file . '/'; } } } // sort files alphabetically natcasesort($dirs); echo getFormRowSelectBox('omrdir', $l['w_omr_dir'], $l['h_omr_dir'], '', $omrdir, $dirs, ''); } } echo getFormRowCheckBox('overwrite', $l['w_overwrite'], $l['h_omr_overwrite'], '', 1, $overwrite, false, ''); // ----------------------------------------------------------------------------- echo '<div class="row">' . K_NEWLINE; echo '<br />' . K_NEWLINE; // show upload button F_submit_button('upload', $l['w_upload'], $l['h_submit_file']); echo '</div>' . K_NEWLINE; echo '</form>' . K_NEWLINE; echo '</div>' . K_NEWLINE; echo '<div class="pagehelp">' . $l['hp_omr_bulk_importer'] . '</div>' . K_NEWLINE; echo '</div>' . K_NEWLINE; require_once '../code/tce_page_footer.php'; //============================================================+ // END OF FILE //============================================================+
if ($m['atb_id'] == $atb_id) { echo ' selected="selected"'; $atb_type = $m['atb_type']; } echo '>' . htmlspecialchars($m['atb_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; switch ($atb_type) { case 'bool': echo getFormRowCheckBox('atb_value', $l['w_value'], $l['w_value'], '', '1', $atb_value, false, ''); break; case 'int': echo getFormRowTextInput('atb_value', $l['w_value'], $l['w_value'], '', $atb_value, '^([\\+\\-]?[0-9]*)$', 255, false, false, false, ''); break; case 'float': echo getFormRowTextInput('atb_value', $l['w_value'], $l['w_value'], '', $atb_value, '^([\\+\\-]?[0-9\\.]*)$', 255, false, false, false, ''); break; case 'string': echo getFormRowTextInput('atb_value', $l['w_value'], $l['w_value'], '', $atb_value, '', 255, false, false, false, ''); break; case 'text': echo getFormRowTextBox('atb_value', $l['w_value'], $l['w_value'], $atb_value, false, ''); break; case 'date': echo getFormRowTextInput('atb_value', $l['w_value'], $l['w_value'], '', $atb_value, '', 255, true, false, false, '');
echo '<span id="showexplanationarea"><a class="xmlbutton" href="#" onclick="' . $showexplanationarea . '" title="' . $l['w_show'] . '">' . $l['w_show'] . ' →</a></span>'; $hideexplanationarea = 'javascript:if(document.getElementById(\'explanationarea\').style.display==\'block\'){document.getElementById(\'explanationarea\').style.display=\'none\';document.getElementById(\'showexplanationarea\').style.display=\'block\';document.getElementById(\'hideexplanationarea\').style.display=\'none\';}'; echo '<span id="hideexplanationarea" style="display:none;">'; echo '<a href="#" title="' . $l['h_preview'] . '" class="xmlbutton" onclick="previewWindow=window.open(\'tce_preview_tcecode.php?tcexamcode=\'+encodeURIComponent(document.getElementById(\'form_answereditor\').answer_explanation.value),\'previewWindow\',\'dependent,height=500,width=500,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no\'); return false;">' . $l['w_preview'] . '</a>' . K_NEWLINE; echo '<a class="xmlbutton" href="#" onclick="' . $hideexplanationarea . '" title="' . $l['w_hide'] . '">' . $l['w_hide'] . '</a> '; echo '</span>'; echo '</span>' . K_NEWLINE; echo '<span id="explanationarea" class="formw" style="display:none;border:1px solid #808080;">' . K_NEWLINE; echo '<textarea cols="50" rows="10" name="answer_explanation" id="answer_explanation" onselect="FJ_update_selection(document.getElementById(\'form_answereditor\').answer_explanation)" title="' . $l['h_explanation'] . '">' . htmlspecialchars($answer_explanation, ENT_NOQUOTES, $l['a_meta_charset']) . '</textarea>' . K_NEWLINE; echo '<br />' . K_NEWLINE; echo tcecodeEditorTagButtons('form_answereditor', 'answer_explanation', 1); echo '</span>' . K_NEWLINE; echo '</div>' . K_NEWLINE; } echo getFormRowCheckBox('answer_isright', $l['w_right'], $l['h_answer_isright'], '', 1, $answer_isright, false, ''); echo getFormRowCheckBox('answer_enabled', $l['w_enabled'], $l['h_enabled'], '', 1, $answer_enabled, false, ''); echo '<div class="row">' . K_NEWLINE; echo '<span class="label">' . K_NEWLINE; echo '<label for="answer_position">' . $l['w_position'] . '</label>' . K_NEWLINE; echo '</span>' . K_NEWLINE; echo '<span class="formw">' . K_NEWLINE; echo '<select name="answer_position" id="answer_position" size="0" title="' . $l['h_position'] . '">' . K_NEWLINE; if (isset($answer_id) and $answer_id > 0) { $max_position = 1 + F_count_rows(K_TABLE_ANSWERS, 'WHERE answer_question_id=' . $answer_question_id . ' AND answer_position>0 AND answer_id<>' . $answer_id . ''); } else { $max_position = 0; } echo '<option value="0"> </option>' . K_NEWLINE; for ($pos = 1; $pos <= $max_position; ++$pos) { echo '<option value="' . $pos . '"'; if ($pos == $answer_position) {
echo '<div class="tceformbox">' . K_NEWLINE; echo '<form action="' . $_SERVER['SCRIPT_NAME'] . '" method="post" enctype="multipart/form-data" id="form_editor">' . K_NEWLINE; // *** selection filter *** echo F_getDataFilter($dcn_id, $sts_id, $rck_id, $obt_id, $obj_owner_id, $obj_tenant_id, $keywords); // display selected objects with checkboxes for selection 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 '>' . htmlspecialchars($m['dcn_name'] . ' → ' . $m['sts_name'] . ' → ' . $m['rck_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; echo getFormRowSelectBox('loc_side', $l['w_side'], $l['h_rack_side'], '', $loc_side, $rack_sides, ''); $racks_slots = range(0, 50, 1); echo getFormRowSelectBox('loc_row_top', $l['w_starting_row'], $l['h_rack_starting_row'], '', $loc_row_top, $racks_slots, ''); echo getFormRowSelectBox('loc_row_bottom', $l['w_ending_row'], $l['h_rack_ending_row'], '', $loc_row_bottom, $racks_slots, ''); echo getFormRowCheckBox('loc_front', $l['w_front'], $l['h_position_front'], '', '1', $loc_front, false, ''); echo getFormRowCheckBox('loc_center', $l['w_center'], $l['h_position_center'], '', '1', $loc_center, false, ''); echo getFormRowCheckBox('loc_rear', $l['w_rear'], $l['h_position_rear'], '', '1', $loc_rear, false, ''); echo '</fieldset>' . K_NEWLINE; if (isset($obj_id) and $obj_id > 0) { // *** list child ojbects ---------------------------------------------------- echo '<fieldset class="subset" style="text-align:left;">' . K_NEWLINE; echo '<legend>' . $l['w_child_objects'] . '</legend>' . K_NEWLINE; echo '<div>' . K_NEWLINE; $sql = 'SELECT obj_id, obj_name, obj_label, obj_tag FROM ' . K_TABLE_OBJECTS . ', ' . K_TABLE_OBJECTS_MAP . ' WHERE omp_child_obj_id=obj_id AND omp_parent_obj_id=' . $obj_id . ' ORDER BY obj_name ASC'; if ($r = F_db_query($sql, $db)) { echo '<ul>' . K_NEWLINE; while ($m = F_db_fetch_array($r)) { echo '<li><a href="' . $_SERVER['SCRIPT_NAME'] . '?obj_id=' . $m['obj_id'] . '" title="' . $l['t_object_editor'] . ': ' . $m['obj_name'] . '">' . htmlspecialchars($m['obj_name'] . ' - ' . $m['obj_label'] . ' - ' . $m['obj_tag'], ENT_NOQUOTES, $l['a_meta_charset']) . '</a></li>' . K_NEWLINE; } echo '</ul>' . K_NEWLINE; } else { F_display_db_error();