?>
output/pullsheets.php?section=admin&amp;go=judging_tables&amp;id=<?php 
                echo $row_tables['id'];
                ?>
"><img src="<?php 
                echo $base_url;
                ?>
images/printer.png"  border="0" alt="Print the pullsheet for <?php 
                echo $row_tables['tableName'];
                ?>
" title="Print the pullsheet for <?php 
                echo $row_tables['tableName'];
                ?>
"></a></span><?php 
                if ($_SESSION['jPrefsQueued'] == "N") {
                    if (flight_count($row_tables['id'], 1)) {
                        ?>
<span class="icon"><a href="<?php 
                        echo $base_url;
                        ?>
index.php?section=admin&amp;go=judging_flights&amp;filter=define&amp;action=edit&amp;id=<?php 
                        echo $row_tables['id'];
                        ?>
"><img src="<?php 
                        echo $base_url;
                        ?>
images/application_form_edit.png" alt="Edit flights for <?php 
                        echo $row_tables['tableName'];
                        ?>
" title="Edit flights for <?php 
                        echo $row_tables['tableName'];
" data-toggle="tooltip" data-placement="top" title="Edit Table <?php 
                echo $row_tables['tableNumber'] . ": " . $row_tables['tableName'];
                ?>
"><span class="fa fa-pencil"></span></a> 
            <a id="modal_window_link" href="<?php 
                echo $base_url;
                ?>
output/print.output.php?section=pullsheets&amp;go=judging_tables&amp;id=<?php 
                echo $row_tables['id'];
                ?>
" data-toggle="tooltip" data-placement="top" title="Print the pullsheet for Table <?php 
                echo $row_tables['tableNumber'] . ": " . $row_tables['tableName'];
                ?>
"><span class="fa fa-print"></span></a> 
            <?php 
                if ($_SESSION['jPrefsQueued'] == "N" && flight_count($row_tables['id'], 1)) {
                    ?>
            <a href="<?php 
                    echo $base_url;
                    ?>
index.php?section=admin&amp;go=judging_flights&amp;filter=define&amp;action=edit&amp;id=<?php 
                    echo $row_tables['id'];
                    ?>
" data-toggle="tooltip" data-placement="top" title="Add/edit flights for Table <?php 
                    echo $row_tables['tableNumber'] . ": " . $row_tables['tableName'];
                    ?>
"><span class="fa fa-send"></span></a>
            <?php 
                }
                ?>
            <?php