add new css class - viewtable - nearly the same as summarytable but

will be used for viewing information.

also switch the judge info button to just say the name when a person is selected
This commit is contained in:
james 2005-03-30 18:13:58 +00:00
parent abcd327e5a
commit ed9b3d577f
3 changed files with 59 additions and 25 deletions

View File

@ -45,63 +45,63 @@
send_popup_header(i18n("Judge Information - %1 %2",array($judgeinfo->firstname,$judgeinfo->lastname)));
echo "<h4>".i18n("Personal Info")."</h4>";
echo "<table>\n";
echo "<table class=\"viewtable\">\n";
echo "<tr>\n";
echo " <td>".i18n("First Name")."</td><td>$judgeinfo->firstname</td>\n";
echo " <td>".i18n("Last Name")."</td><td>$judgeinfo->lastname</td>\n";
echo " <th>".i18n("First Name")."</th><td>$judgeinfo->firstname</td>\n";
echo " <th>".i18n("Last Name")."</th><td>$judgeinfo->lastname</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td>".i18n("Email Address")."</td><td>$judgeinfo->email</td>\n";
echo " <td>".i18n("City")."</td><td>$judgeinfo->city</td>\n";
echo " <th>".i18n("Email Address")."</th><td>$judgeinfo->email</td>\n";
echo " <th>".i18n("City")."</th><td>$judgeinfo->city</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td>".i18n("Address 1")."</td><td>$judgeinfo->address</td>\n";
echo " <td>".i18n("Province")."</td><td>$judgeinfo->province";
echo " <th>".i18n("Address 1")."</th><td>$judgeinfo->address</td>\n";
echo " <th>".i18n("Province")."</th><td>$judgeinfo->province";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td>".i18n("Address 2")."</td><td>$judgeinfo->address2</td>\n";
echo " <td>".i18n("Phone (Home)")."</td><td>$judgeinfo->phonehome</td>\n";
echo " <th>".i18n("Address 2")."</th><td>$judgeinfo->address2</td>\n";
echo " <th>".i18n("Phone (Home)")."</th><td>$judgeinfo->phonehome</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td>".i18n("Postal Code")."</td><td>$judgeinfo->postalcode</td>\n";
echo " <td>".i18n("Phone (Work)")."</td><td>$judgeinfo->phonework&nbsp;ext $judgeinfo->phoneworkext</td>\n";
echo " <th>".i18n("Postal Code")."</th><td>$judgeinfo->postalcode</td>\n";
echo " <th>".i18n("Phone (Work)")."</th><td>$judgeinfo->phonework&nbsp;ext $judgeinfo->phoneworkext</td>\n";
echo "</tr>";
echo "<tr>\n";
echo " <td>".i18n("Organization")."</td><td>$judgeinfo->organization</td>\n";
echo " <td>".i18n("Phone (Cell)")."</td><td>$judgeinfo->phonecell</td>\n";
echo " <th>".i18n("Organization")."</th><td>$judgeinfo->organization</td>\n";
echo " <th>".i18n("Phone (Cell)")."</th><td>$judgeinfo->phonecell</td>\n";
echo "</tr>";
echo "<tr><td colspan=\"4\"><hr /></td></tr>";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Age category preference")."</td><td colspan=\"2\">";
echo " <th colspan=\"2\">".i18n("Age category preference")."</th><td colspan=\"2\">";
echo "$judgeinfo->catpref_name";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Division preference")."</td><td colspan=\"2\">";
echo " <th colspan=\"2\">".i18n("Division preference")."</th><td colspan=\"2\">";
echo "$judgeinfo->divpref_name";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Highest post-secondary degree")."</td>";
echo " <th colspan=\"2\">".i18n("Highest post-secondary degree")."</th>";
echo " <td colspan=\"2\">$judgeinfo->highest_psd</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Other professional qualifications")."</td>";
echo " <th colspan=\"2\">".i18n("Other professional qualifications")."</th>";
echo " <td colspan=\"2\">$judgeinfo->professional_quals</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Languages")."</td>";
echo " <th colspan=\"2\">".i18n("Languages")."</th>";
echo " <td colspan=\"2\">";
$q=mysql_query("SELECT languages_lang FROM judges_languages WHERE judges_id='$judgeinfo->id'");
@ -115,27 +115,27 @@
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Judging experience at school/local level")."</td>\n";
echo " <th colspan=\"2\">".i18n("Judging experience at school/local level")."</th>\n";
echo " <td colspan=\"2\">$judgeinfo->years_school ".i18n("years")."</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Judging experience at regional level")."</td>\n";
echo " <th colspan=\"2\">".i18n("Judging experience at regional level")."</th>\n";
echo " <td colspan=\"2\">$judgeinfo->years_regional ".i18n("years")."</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Judging experience at national level")."</td>\n";
echo " <th colspan=\"2\">".i18n("Judging experience at national level")."</th>\n";
echo " <td colspan=\"2\">$judgeinfo->years_national ".i18n("years")."</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Willing to act as a division chair?")."</td>\n";
echo " <th colspan=\"2\">".i18n("Willing to act as a division chair?")."</th>\n";
echo " <td colspan=\"2\">$judgeinfo->willing_chair";
echo "</tr>\n";
echo "<tr>\n";
echo " <td colspan=\"2\">".i18n("Attending lunch?")."</td>\n";
echo " <th colspan=\"2\">".i18n("Attending lunch?")."</th>\n";
echo " <td colspan=\"2\">$judgeinfo->attending_lunch";
echo "</tr>\n";
@ -147,7 +147,7 @@
echo "<hr />";
echo "<br />";
echo "<h4>Areas of Expertise</h4>";
echo "<table class=\"summarytable\">";
echo "<table class=\"viewtable\">";
//grab the list of divisions, because the last fields of the table will be the sub-divisions
$q=mysql_query("SELECT * FROM projectdivisions ORDER BY id AND year='".$config['FAIRYEAR']."'");

View File

@ -69,7 +69,7 @@ function switchjudgeinfo()
currentid=document.forms.judges["judgelist[]"].options[document.forms.judges["judgelist[]"].selectedIndex].value;
document.forms.judges.judgeinfobutton.disabled=false;
document.forms.judges.judgeinfobutton.value="<? echo i18n("Judge Info");?>: "+currentname;
document.forms.judges.judgeinfobutton.value=currentname;
}
else

View File

@ -208,4 +208,38 @@ a {
color: red;
}
.viewtable {
border-collapse: collapse;
border-spacing: 0px;
border: 2px solid black;
margin: 0px;
padding: 0px;
margin-left: 30px;
}
.viewtable th {
border: 2px solid black;
background-color: #5C6F90;
padding: 5px;
margin: 0px;
font-size: 1.0em;
color: white;
font-weight: bold;
text-align: left;
}
.viewtable th a{
font-size: 1.1em;
color: white;
font-weight: bold;
}
.viewtable td {
border: 2px solid black;
margin: 0px;
padding: 4px;
}