コード例 #1
0
ファイル: memberTable.php プロジェクト: showermat/gree-c-web
                            }
                        }
                    }
                }
            }
        }
    }
    $condarr[] = join(' or ', $subcondarr);
}
$condstr = '(' . join(") and (", $condarr) . ')';
if (!isOfficer($USER)) {
    $condstr = "exists (select * from `activeSemester` where `activeSemester`.`semester` = '{$SEMESTER}' and `activeSemester`.`member` = `member`.`email`)";
}
if ($_POST['type'] == "print") {
    $choirname = choirname($CHOIR);
    echo "<html><head><meta charset='UTF-8'><title>{$choirname} Roster</title></head><body>{$style}";
    echo member_table($condstr, "print");
    echo "</body></html>";
} else {
    if ($_POST['type'] == "csv") {
        //header("Content-type: text/csv");
        echo member_csv($condstr);
    } else {
        if ($_POST['type'] == "normal") {
            echo $style;
            echo member_table($condstr, "normal");
        } else {
            die("Unknown type");
        }
    }
}
コード例 #2
0
ファイル: theme.inc.php プロジェクト: mehulsbhatt/seltzer
/**
 * Return the themed html for a table of members.
 *
 * @param $opts Options to pass to member_data().
 * @return The themed html string.
*/
function theme_member_table($opts = NULL)
{
    return theme('table', member_table($opts));
}