Show judges language on the judge team members list - for quick verification of proper language team assignments.

Fix 1x4 and 1x1.33 Avery stock to print properly.
This commit is contained in:
james 2008-04-03 20:34:42 +00:00
parent 76966f0f62
commit 73972d676f
3 changed files with 15 additions and 4 deletions

View File

@ -48,11 +48,20 @@ function getJudgingTeams()
while($mr=mysql_fetch_object($mq))
{
$lq=mysql_query("SELECT * FROM judges_languages WHERE judges_id='$mr->judges_id'");
$judgelangs="";
if(mysql_num_rows($lq)) {
while($lr=mysql_fetch_object($lq)) {
$judgelangs.="$lr->languages_lang/";
}
$judgelangs=substr($judgelangs,0,-1);
}
$teams[$lastteamid]['members'][]=array(
"id"=>$mr->judges_id,
"firstname"=>$mr->firstname,
"lastname"=>$mr->lastname,
"captain"=>$mr->captain
"captain"=>$mr->captain,
"languages"=>$judgelangs
);
}

View File

@ -355,7 +355,7 @@ function switchjudgeinfo()
}
echo "<a href=\"\" onclick=\"return openjudgeinfo(".$member['id'].");\">";
echo $member['firstname']." ".$member['lastname'];
echo "</a>";
echo "</a> (".$member['languages'].")";
echo "</td></tr>";
}

View File

@ -140,6 +140,7 @@ LRP 180 99765 5967 4 1 3/4 x 1/2 80 */
'cols' => 2,
'label_height' => 1,
'y_spacing' => 0.00,
'y_padding' => 0.05,
'rows' => 10,
);
@ -149,8 +150,9 @@ LRP 180 99765 5967 4 1 3/4 x 1/2 80 */
'label_width' => 4,
'x_spacing' => 0.187,
'cols' => 2,
'label_height' => 1 + 1/3,
'label_height' => 1 + 0.33,
'y_spacing' => 0.00,
'y_padding' => 0.80,
'rows' => 7,
);
$report_stock['5163'] = array('name' => 'Avery 5163/5263/5963/8163/8463, G&T 99181 (2"x4")',
@ -542,7 +544,7 @@ foreach($report_stock as $n=>$v) {
$rep->newPage($label_stock['page_width'], $label_stock['page_height']);
$rep->setFontSize(11);
$rep->setLabelDimensions($label_stock['label_width'], $label_stock['label_height'],
$label_stock['x_spacing'], $label_stock['y_spacing']);
$label_stock['x_spacing'], $label_stock['y_spacing'],11,$label_stock['y_padding']);
$gen_mode = 'label';
break;
case 'pdf': case '':