forked from science-ation/science-ation
Fix a bug where if no $table is passed to addTable it will now return gracefully instead of spitting out error messages
Add email field to the judge list, and the judge manager list
This commit is contained in:
parent
8db16d85f8
commit
952a4d3c29
@ -63,6 +63,7 @@ function openjudgeinfo(id)
|
|||||||
judges.id,
|
judges.id,
|
||||||
judges.firstname,
|
judges.firstname,
|
||||||
judges.lastname,
|
judges.lastname,
|
||||||
|
judges.email,
|
||||||
judges.complete,
|
judges.complete,
|
||||||
judges_years.year
|
judges_years.year
|
||||||
|
|
||||||
@ -84,6 +85,7 @@ function openjudgeinfo(id)
|
|||||||
echo mysql_error();
|
echo mysql_error();
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo " <th>".i18n("Judge Name")."</th>";
|
echo " <th>".i18n("Judge Name")."</th>";
|
||||||
|
echo " <th>".i18n("Email Address")."</th>";
|
||||||
echo " <th>".i18n("Active")."</th>";
|
echo " <th>".i18n("Active")."</th>";
|
||||||
echo " <th>".i18n("Complete")."</th>";
|
echo " <th>".i18n("Complete")."</th>";
|
||||||
echo " <th>".i18n("Actions")."</th>";
|
echo " <th>".i18n("Actions")."</th>";
|
||||||
@ -95,6 +97,7 @@ function openjudgeinfo(id)
|
|||||||
echo "<tr><td>";
|
echo "<tr><td>";
|
||||||
echo "<a href=\"\" onclick=\"return openjudgeinfo($r->id)\">$r->firstname $r->lastname</a>";
|
echo "<a href=\"\" onclick=\"return openjudgeinfo($r->id)\">$r->firstname $r->lastname</a>";
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
|
echo "<td>$r->email</td>";
|
||||||
if($r->year)
|
if($r->year)
|
||||||
{
|
{
|
||||||
echo "<td class=\"happy\" align=\"center\">".i18n("yes")."</td>";
|
echo "<td class=\"happy\" align=\"center\">".i18n("yes")."</td>";
|
||||||
|
@ -29,6 +29,7 @@ $judges_fields = array( 'firstname' => 'First Name',
|
|||||||
$judges_table_fields = array( 'id' => 'ID',
|
$judges_table_fields = array( 'id' => 'ID',
|
||||||
'firstname' => 'First Name',
|
'firstname' => 'First Name',
|
||||||
'lastname' => 'Last Name',
|
'lastname' => 'Last Name',
|
||||||
|
'email' => 'Email Address',
|
||||||
'complete' => 'Complete',
|
'complete' => 'Complete',
|
||||||
// 'year' => 'Year',
|
// 'year' => 'Year',
|
||||||
);
|
);
|
||||||
|
3
lpdf.php
3
lpdf.php
@ -521,6 +521,9 @@ class lpdf
|
|||||||
|
|
||||||
function addTable($table,$align="center")
|
function addTable($table,$align="center")
|
||||||
{
|
{
|
||||||
|
//if we get a table passed in that doesnt look like a table (not an array) then just return doing nothing
|
||||||
|
if(!is_array($table)) return;
|
||||||
|
|
||||||
if(is_array($table['header']))
|
if(is_array($table['header']))
|
||||||
{
|
{
|
||||||
$table_cols=count($table['header']);
|
$table_cols=count($table['header']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user