示例#1
0
<?php

/*
DemoWave
Copyright (C) 2006 RedHog (Egil Möller) <*****@*****.**>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
*/
if ($is_category) {
    echo "<table class='category_info_table'>\n";
    echo drawInputRow(T_("Type"), drawHelpAnnotation(T_($category_type), 'referendum-type-' . $category_type), 'referendum-type');
    echo drawInputRow(T_("Breakpoint"), $category_breakpoint, 'breakpoint');
    echo "</table>\n";
    echo $category_text;
}
示例#2
0
文件: utils.php 项目: redhog/DemoWave
function drawSortHeader($sort, $sort_var, $key, $title, $help = '')
{
    $args = queryString(queryConstruct(array($sort_var => sortToStr(flipSort($sort, $key)))));
    $class = 'sort sort_not_selected';
    if ($key == $sort[0][0]) {
        $class = 'sort sort_selected sort_' . $sort[0][1];
    }
    $header = drawHelpAnnotation("<a class='{$class}' href='{$_SERVER["SCRIPT_NAME"]}?{$args}'>{$title}</a>", $help);
    return "<th>{$header}</a></th>\n";
}
示例#3
0
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
*/
?>
<h1><?php 
echo drawHelpAnnotation(T_("Referendum categories"), 'categories');
?>
</h1>
<?php 
function draw_categories($categories)
{
    foreach ($categories as $child) {
        draw_category($child);
    }
}
function draw_category_list($categories)
{
    if ($categories) {
        echo "\n<dl>\n";
    }
    draw_categories($categories);