forked from science-ation/science-ation
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:
parent
76966f0f62
commit
73972d676f
@ -48,11 +48,20 @@ function getJudgingTeams()
|
|||||||
|
|
||||||
while($mr=mysql_fetch_object($mq))
|
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(
|
$teams[$lastteamid]['members'][]=array(
|
||||||
"id"=>$mr->judges_id,
|
"id"=>$mr->judges_id,
|
||||||
"firstname"=>$mr->firstname,
|
"firstname"=>$mr->firstname,
|
||||||
"lastname"=>$mr->lastname,
|
"lastname"=>$mr->lastname,
|
||||||
"captain"=>$mr->captain
|
"captain"=>$mr->captain,
|
||||||
|
"languages"=>$judgelangs
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -355,7 +355,7 @@ function switchjudgeinfo()
|
|||||||
}
|
}
|
||||||
echo "<a href=\"\" onclick=\"return openjudgeinfo(".$member['id'].");\">";
|
echo "<a href=\"\" onclick=\"return openjudgeinfo(".$member['id'].");\">";
|
||||||
echo $member['firstname']." ".$member['lastname'];
|
echo $member['firstname']." ".$member['lastname'];
|
||||||
echo "</a>";
|
echo "</a> (".$member['languages'].")";
|
||||||
echo "</td></tr>";
|
echo "</td></tr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,6 +140,7 @@ LRP 180 99765 5967 4 1 3/4 x 1/2 80 */
|
|||||||
'cols' => 2,
|
'cols' => 2,
|
||||||
'label_height' => 1,
|
'label_height' => 1,
|
||||||
'y_spacing' => 0.00,
|
'y_spacing' => 0.00,
|
||||||
|
'y_padding' => 0.05,
|
||||||
'rows' => 10,
|
'rows' => 10,
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -149,8 +150,9 @@ LRP 180 99765 5967 4 1 3/4 x 1/2 80 */
|
|||||||
'label_width' => 4,
|
'label_width' => 4,
|
||||||
'x_spacing' => 0.187,
|
'x_spacing' => 0.187,
|
||||||
'cols' => 2,
|
'cols' => 2,
|
||||||
'label_height' => 1 + 1/3,
|
'label_height' => 1 + 0.33,
|
||||||
'y_spacing' => 0.00,
|
'y_spacing' => 0.00,
|
||||||
|
'y_padding' => 0.80,
|
||||||
'rows' => 7,
|
'rows' => 7,
|
||||||
);
|
);
|
||||||
$report_stock['5163'] = array('name' => 'Avery 5163/5263/5963/8163/8463, G&T 99181 (2"x4")',
|
$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->newPage($label_stock['page_width'], $label_stock['page_height']);
|
||||||
$rep->setFontSize(11);
|
$rep->setFontSize(11);
|
||||||
$rep->setLabelDimensions($label_stock['label_width'], $label_stock['label_height'],
|
$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';
|
$gen_mode = 'label';
|
||||||
break;
|
break;
|
||||||
case 'pdf': case '':
|
case 'pdf': case '':
|
||||||
|
Loading…
Reference in New Issue
Block a user