Example #1
0
<link rel="stylesheet" href="main.css" type="text/css" />
<script src='js/jq.js' type='text/javascript'></script>
<script src='js/function.js' type='text/javascript' ></script>
</head>
<body>
<?php 
include "header.php";
include "sidebar.php";
?>

<?php 
include_once "class.inc.php";
if (isset($_GET['id'])) {
    echo '<div id="center"><center><table width="60%">';
    $c = new Catagory();
    $c->setId($_GET['id']);
    $cinfo = $c->getInfo($_GET['id']);
    $events = $c->getEvents();
    $e = new Event();
    echo '<tr><td>Catagory </td><td><b>', $c->escape(ucwords($cinfo['name'])), '</b></td></tr><tr><td>Info</td><td>', $c->escape($cinfo['info']), '</td></tr><tr><td>Catagory Head(s) </td><td>';
    $count = 0;
    $cheads = $c->getHeads();
    foreach ($cheads as $chead) {
        if ($count) {
            echo ", ";
        }
        echo "<a href='head.php?id={$chead['userid']}'>", $c->escape($chead['name']), "</a>";
        $count++;
    }
    echo '</td></tr><tr><td><br><br></td></tr';
    foreach ($events as $event) {
Example #2
0
<link rel="stylesheet" href="main.css" type="text/css" />
<script src='js/jq.js' type='text/javascript'></script>
<script src='js/function.js' type='text/javascript' ></script>
</head>
<body>
<?php 
include "header.php";
include "sidebar.php";
?>
<div id="center">
<?php 
if ($level != 'error') {
    if (isset($_GET['cid']) or isset($_GET['mainreg']) or isset($_GET['eid'])) {
        if (isset($_GET['cid'])) {
            $c = new Catagory();
            $c->setId($_GET['cid']);
            $events = $c->getEvents();
            if ($events) {
                foreach ($events as $event) {
                    echo '<a href="details.php?eid=', $event['eventid'], '">', ucwords($event['name']), '</a><br>';
                }
            } else {
                echo 'Sorry no Events assigned';
            }
        } else {
            if (isset($_GET['mainreg'])) {
                if (isset($_GET['order'])) {
                    $order = $_GET['order'];
                } else {
                    $order = NULL;
                }