function html_page_header($db, $current_proj) { $s_user_projects = session_get_user_projects(); $s_user_properties = session_get_user_properties(); $date = date_get_long_dt(); $message = lang_get('error_empty_id_field'); $username = $s_user_properties['username']; print "<form method=post name=navigate_to_id id=form_validate action='navigate_to_id_action.php' >" . NEWLINE; print "<table class=hide100>" . NEWLINE; print "<tr><td class=header-r>" . NEWLINE; print lang_get('goto_to_id') . NEWLINE; print "<input type=text size=6 id='validate_txt_field' name=id_txt_field>" . NEWLINE; #print'<a href="javascript:return ValidateForm(\''.$message.'\')">'. lang_get('go') .'</a></td>'. NEWLINE; print "<input type=submit value='" . lang_get('go') . "'>"; #</td>"; print "</td></tr>" . NEWLINE; print "</table>" . NEWLINE; print "</form>" . NEWLINE; print "<form method=post name=form_set_project action='login_switch_proj.php'>" . NEWLINE; print "<table class=hide100>" . NEWLINE; print "<tr>" . NEWLINE; print "<td class=header-l width='33%'>logged in as {$username}</td>" . NEWLINE; print "<td class=header-c width='33%'>{$date}</td>" . NEWLINE; if ($s_user_projects > 1) { # display the project list box print "<td class=header-r width='33%'>" . NEWLINE; # Check for Javascript print "<noscript>" . NEWLINE; print "<input type=hidden name=javascript_disabled value=true>" . NEWLINE; print "</noscript>" . NEWLINE; # login variables set, so there is no need to do if( isset($_GET[login][page]) ) # in login_switch_proj.php print "<input type=hidden name='login[page]' value=''>" . NEWLINE; print "<input type=hidden name='login[get]' value=''>" . NEWLINE; print "<input type=hidden name='uname' value='{$username}'>" . NEWLINE; # Check for Javascript print "<noscript>" . NEWLINE; print "<input type=hidden name=non_javascript_browser value=true>" . NEWLINE; print "</noscript>" . NEWLINE; if (session_use_javascript()) { print lang_get('switch_project') . NEWLINE; } else { print "<input type=submit value='" . lang_get('switch_project') . "'>" . NEWLINE; } print "<select name='login[switch_project]' onchange='document.forms.form_set_project.submit();'>" . NEWLINE; html_print_list_box_from_array($s_user_projects, $current_proj); print "</select>" . NEWLINE; print "</td>" . NEWLINE; } else { # don't display the project list box print "<td class=header-r width=33%> </td>" . NEWLINE; } print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</form>" . NEWLINE; }
$detail_url = $detail_page . "?bug_id=" . $bug_id; print "<td class='tbl-c'><a href='{$detail_url}' title='" . lang_get('bug_view_detail') . "'>{$display_bug_id}</a></td>" . NEWLINE; print "<td class='tbl-c'>{$priority}</td>" . NEWLINE; print "<td class='tbl-c'>{$bug_status}</td>" . NEWLINE; print "<td class='tbl-c'>{$category}</td>" . NEWLINE; print "<td class='tbl-c'>{$reported_by}</td>" . NEWLINE; print "<td class='tbl-c'>{$assigned_to}</td>" . NEWLINE; #print"<td class='tbl-c'>$found_in_release</td>". NEWLINE; #print"<td class='tbl-c'>$assign_to_release</td>". NEWLINE; print "<td class='tbl-c' width='35%'>{$summary}</td>" . NEWLINE; print "</tr>" . NEWLINE; } $g_timer->mark_time("Finished outputting main html table to browser"); print "</table>" . NEWLINE; print "</div>" . NEWLINE; if (session_use_javascript()) { //print"<input type=checkbox name=all_tests value=all onClick=checkall('bug_form', this.form.all_tests.checked)\">Select All "; print "<input id=select_all type=checkbox onClick='checkAll( this )'>" . NEWLINE; print "<label for=select_all>" . lang_get("select_all") . "</label>" . NEWLINE; } print "<select name=action>"; print "<option value=bug_status>" . lang_get('bug_status') . "</option>"; print "<option value=assign_to>" . lang_get('assign_to') . "</option>"; print "<option value=assign_to_dev>" . lang_get('assign_to_developer') . "</option>"; print "<option value=bug_more>" . lang_get('bug_move') . "</option>"; print "</select>"; print " "; print "<input type=submit name=mass_update_btn value='" . lang_get("update") . "'>"; } else { html_no_records_found_message(lang_get('no_tests')); }
function session_use_FCKeditor() { return session_use_javascript() && USE_FCK_EDITOR; }