echo "<FONT CLASS=rsrc_name>Primary</FONT></TD><TD valign=top align=right>"; echo "<FONT CLASS=stat_resource>{$longname['long_name']}"; echo "</TD><TD valign=top>"; } else { echo " </TD><TD valign=top>"; } } // DISPLAY SECONDARY SKILL ATTEMPT if ($tribeinfo['sec_skill_att'] == '' && !$skillsunavail || $tribeinfo['sec_skill_att'] == $tribeinfo[pri_skill_att] && !$skillsunavail) { $tribeinfo['sec_skill_att'] = ''; if (!isset($_REQUEST['attemptb'])) { echo "<FORM ACTION=main.php METHOD=POST>"; echo "<SELECT NAME=sec>"; option_skills("a"); option_skills("b"); option_skills("c"); echo "</SELECT>"; echo "<INPUT TYPE=HIDDEN NAME=attemptb VALUE=commit>"; if ($_SESSION['tooltip'] == '1') { echo "<INPUT TYPE=SUBMIT VALUE=Secondary onmouseover=\"return overlib('Select your secondary skill attempt for this turn.');\" onmouseout=\"nd();\">"; } else { echo "<INPUT TYPE=SUBMIT VALUE=Secondary>"; } echo "</FORM>"; echo "</TD><TD valign=top>"; } elseif ($_REQUEST['attemptb'] == 'commit') { $db->Execute("UPDATE {$dbtables['tribes']} " . "SET sec_skill_att = '{$_REQUEST['sec']}' " . "WHERE tribeid = '{$tribeinfo['tribeid']}'"); $longn = $db->Execute("SELECT long_name FROM {$dbtables['skill_table']} " . "WHERE abbr = '{$_REQUEST['sec']}'"); $longname = $longn->fields; if (!$skillsunavail) { echo "<FONT CLASS=rsrc_name>Secondary</FONT></TD><TD valign=top align=right>";
function display_search_form() { global $color_line1, $color_line2, $color_bg, $color_table, $version, $privilege; if (!isset($_REQUEST['query'])) { // GUI_open_table1 ("", "", "Search Helper"); echo "<FORM METHOD=POST ACTION=\"helper.php#result_list\">"; echo "<TABLE BORDER=1 CELLPADDING=4 ALIGN=CENTER BGCOLOR=\"{$color_table}\">" . "<TD VALIGN=TOP>" . "Search for help in<P>" . "<SELECT NAME=type SIZE=1>" . "<OPTION VALUE=all>All" . "<OPTION VALUE=topic>Topics" . "<OPTION VALUE=page>Pages" . "<OPTION VALUE=skill>Skills" . "<OPTION VALUE=resource>Resources" . "</SELECT>" . "</TD>" . "<TD VALIGN=TOP>Enter search phrase<P>" . "<INPUT class=edit_area TYPE=\"TEXT\" NAME=\"search\" SIZE=\"20\" MAXLENGTH=\"50\" VALUE=\"\">" . "<P><B>OR</B> Select Skill<P>" . "<SELECT NAME=skill>" . "<OPTION VALUE=ignore>Ignore"; include "gui/option_skills.php"; option_skills("a"); option_skills("b"); option_skills("c"); echo "</SELECT>" . "</TD>" . "<TD VALIGN=TOP ALIGN=RIGHT>Select action<P>" . "<RIGHT><INPUT TYPE=SUBMIT NAME=op VALUE=Search ALIGN=RIGHT><P>" . "</TD>" . "</TR>"; if ($_SESSION['admin'] >= $privilege['hlp_Add']) { echo "<TR>" . "<TD COLSPAN=2>" . "Add <b>New Topic</b> or <b>New Page</b> " . "</TD>" . "<TD ALIGN=RIGHT>" . "<INPUT TYPE=SUBMIT NAME=op VALUE=\"Add\">" . "</TD>" . "</TR>"; } echo "<TR>" . "<TD VALIGN=TOP ALIGN=CENTER COLSPAN=3>"; help_link("Show me the help for the helper!", "", "topic", "helper", ""); echo "<FONT SIZE=-1> (v{$version})</FONT>" . "</TD>" . "</TR>" . "</TABLE>"; echo "</FORM>"; // GUI_close_table1("", ""); } }