Ejemplo n.º 1
0
function hdlr_score_count($ctx, $datasource, $namespace, $args = null)
{
    if (!isset($namespace)) {
        return '';
    }
    if ($datasource == 'tbping') {
        $key = 'ping';
    } else {
        $key = $datasource;
    }
    $object = $ctx->stash($key);
    if (!isset($object)) {
        return '';
    }
    $count = score_count($ctx, $object[$datasource . '_id'], $datasource, $namespace);
    if (isset($count) && $count != '') {
        return $ctx->count_format($count, $args);
    }
    return $count;
}
                    } else {
                        ?>
<span class="icon"><img src="<?php 
                        echo $base_url;
                        ?>
images/application_form_fade.png" alt="No need to define flights for <?php 
                        echo $row_tables['tableName'];
                        ?>
" title="No need to define flights for <?php 
                        echo $row_tables['tableName'];
                        ?>
" /></span><?php 
                    }
                }
                // end if ($_SESSION['jPrefsQueued'] == "N")
                if (score_count($row_tables['id'], 1)) {
                    ?>
<span class="icon"><a href="<?php 
                    echo $base_url;
                    ?>
index.php?section=admin&amp;go=judging_scores&amp;action=edit&amp;id=<?php 
                    echo $row_tables['id'];
                    ?>
"><img src="<?php 
                    echo $base_url;
                    ?>
images/rosette_edit.png" alt="Edit scores for <?php 
                    echo $row_tables['tableName'];
                    ?>
" title="Edit scores for <?php 
                    echo $row_tables['tableName'];