Exemplo n.º 1
0
        function printLine($name, $cat, $club, $disc, $perf, $nbr, $enrolSheet)
        {
            if ($this->lpp - $this->linecnt < 12) {
                printf("</table>");
                $this->insertPageBreak();
                printf("<table>");
                $this->printHeaderLine($enrolSheet);
            }
            ?>
	<tr>
    <?php 
            if ($enrolSheet) {
                ?>
              <td class='team_entry_tic'>[&nbsp;&nbsp;&nbsp;]</td>  
              <?php 
            }
            ?>
  
		<td class='team_entry_nbr'><?php 
            echo $nbr;
            ?>
</td>
		<td class='team_entry_name'><?php 
            echo $name;
            ?>
</td>
		<td class='team_entry_cat'><?php 
            echo $cat;
            ?>
</td>
        <td class='team_entry_club'><?php 
            echo $club;
            ?>
</td> 
		<td class='team_entry_disc'><?php 
            echo $disc;
            ?>
</td>
	</tr>
<?php 
            // count more lines if string is to long ($disc string)
            $t = 0;
            $w = AA_getStringWidth($disc, 12);
            $t = ceil($w / 90);
            $this->linecnt += $t;
        }
Exemplo n.º 2
0
        function printAthletes($athletes)
        {
            // count more lines if string is to long ($athletes string)
            $t = 0;
            $w = AA_getStringWidth($athletes, 12);
            $t = ceil($w / 350);
            $this->linecnt += $t;
            // different space of browsers by empty line
            if (empty($athletes) && eregi('msie', $_SERVER['HTTP_USER_AGENT'])) {
                $this->linecnt++;
            } elseif (empty($athletes)) {
                $this->linecnt = $this->linecnt + 0.6;
            }
            if (eregi('msie', $_SERVER['HTTP_USER_AGENT']) && empty($athletes)) {
                // force IE to print empty line like firefox
                ?>
    <tr>
        <td class='relay_athletes' colspan='6'><?php 
                echo $athletes;
                ?>
&nbsp;</td>
    </tr>
<?php 
            } else {
                ?>
    <tr>
        <td class='relay_athletes' colspan='6'><?php 
                echo $athletes;
                ?>
</td>
    </tr>
<?php 
            }
        }
Exemplo n.º 3
0
        function printInfo($info)
        {
            $textWidth = AA_getStringWidth($info, 12);
            $countLine = ceil($textWidth / 754);
            // calculate lines of disziplines
            $this->linecnt += $countLine;
            ?>
	<tr>
		<td />
		<td class='comb_info' colspan='3'><?php 
            echo $info;
            ?>
<br/></td>
		<td />
	</tr>

<?php 
        }
Exemplo n.º 4
0
        function printLine4($first, $name, $year, $cat, $disc, $fee)
        {
            if ($this->lpp - $this->linecnt < 6) {
                printf("</table>");
                $this->insertPageBreak();
                $this->printHeaderLineCont();
            }
            ?>
  

    <table>
    <tr>  
        <td class='receipt_cl_name'><?php 
            echo $name;
            ?>
</td>  
        <td class='receipt_cl_year'><?php 
            echo $year;
            ?>
</td>   
        <td class='receipt_cl_cat'><?php 
            echo $cat;
            ?>
</td>   
        <td class='receipt_cl_disc'><?php 
            echo $disc;
            ?>
</td>  
        <td class='receipt_cl_fee'><?php 
            echo $GLOBALS['strCHF'] . " &nbsp;&nbsp;" . $fee . ".00";
            ?>
</td> 
    </tr>
    </table> 
<?php 
            $textWidth = AA_getStringWidth($disc, 12);
            $countLine = ceil($textWidth / 240);
            // calculate lines of disziplines
            $this->linecnt += $countLine;
        }