Пример #1
0
 public static function frontdisplayclass($s_id)
 {
     global $database;
     $sessionbox = self::find_by_sql("SELECT * FROM  `classes` WHERE  session_id ={$s_id} ORDER BY  `date` ASC");
     foreach ($sessionbox as $session_sheet) {
         if (!self::anyspots($session_sheet->id)) {
             $joinclass = '<a href="join-class.php?join=' . $session_sheet->id . '">Join this Class</a>';
         } else {
             $joinclass = '-----';
         }
         $removable = '<a href="classes-view.php?sid=' . $session_sheet->sessionid . '&rmvclss=' . $session_sheet->id . '">Remove</a>';
         $ava = self::checkava($session_sheet->id);
         echo '<tr><td>' . DateManager::frontdisplaytimefromtmstp($session_sheet->c_date) . '</td><td>' . $ava . '</td><td>' . $joinclass . '</td><td>' . $session_sheet->note . '</td></tr>';
     }
 }
Пример #2
0
include 'includes/pagestructure.php';
include 'includes/smartbanner.php';
include 'includes/smartnav.php';
head('Welcome to Urban Illustration');
topbar();
?>

 <div id="content">

     

 		<div id="maincontent">

        	<div class="textcontentalone">
<h1>join the class of <?php 
echo DateManager::frontdisplaytimefromtmstp($classtojoin->c_date);
?>
 part of the <?php 
echo $sessiontojoin->name;
?>
</h1>
<p>Please fill out the form below to register for a class in the upcoming Spring Session. Please be sure to look at DAY and TIME to be sure you are registering for the correct time slot. </p>

<?php 
$stillspots = Classes::anyspots($classtojoin->id);
if ($stillspots) {
    echo '<h2>CLASS FULL</h2>';
} else {
    if (isset($captchaerror)) {
        $p_firstname = $database->escape_value($_POST['p_firstname']);
        $p_lastname = $database->escape_value($_POST['p_lastname']);
Пример #3
0
?>
</p>
<a href="index.php">back to sessions</a>
<table id="tbschedualdisplay">
<tr class="tabletitle"><td>Class Dates</td><td>Spots</td><td>Available</td><td class="notes">Notes</td><td>View</td><td>Update</td><td>Delete</td></tr>
<?php 
Classes::displayclass($_GET['sid']);
?>
</table>
<?php 
if (isset($_GET['updtclss'])) {
    $updateclass = Classes::find_by_id($_GET['updtclss']);
    ?>
	
<h2>Update Class of: <?php 
    echo DateManager::frontdisplaytimefromtmstp($updateclass->c_date);
    ?>
</h2>
<form action="classes-view.php?sid=<?php 
    echo $_GET['sid'];
    ?>
" method="post">
<input type="hidden" value="<?php 
    echo $updateclass->id;
    ?>
" name="cls_id" />
Class Date: <input type="datetime" maxlength="40" name="class-date" value="<?php 
    echo DateManager::displaydatefromtmstp($updateclass->c_date);
    ?>
"/> MM/DD/YY
Class Time: <input type="text" maxlength="40" name="class-time" value="<?php 
Пример #4
0
     

 		<div id="maincontent">

        	<div class="textcontentalone">

<p>Welcome, <?php 
if (isset($loggedinuser)) {
    echo $loggedinuser;
}
?>
 <a href="?lgt=1">Log Out</a></p>

<h2>Session of <?php 
echo DateManager::frontdisplaytimefromtmstp($currentclass->c_date);
?>
</h2>

<h2><a href="simplelist.php?clsid=<?php 
echo $_GET['clsid'];
?>
">View a Simple List</a></h2>

<a href="classes-view.php?sid=<?php 
echo $currentclass->sessionid;
?>
">back to classes</a>

<table id="tbschedualdisplay">