コード例 #1
0
ファイル: index.php プロジェクト: appteamio/rarigrafix
?>
 <div id="content">
     
 		<div id="maincontent">
        	<div class="textcontentalone">
<p>Welcome, <?php 
if (isset($loggedinuser)) {
    echo $loggedinuser;
}
?>
 <a href="?lgt=1">Log Out</a></p>
<h2>Available Sessions</h2>
<table id="tbschedualdisplay">
<tr class="tabletitle"><td>Session Name</td><td>Starting Date</td><td>Status</td><td>Update</td><td>Delete</td></tr>
<?php 
ClassSession::displaysessions();
?>
</table>
<?php 
if (isset($_GET['s_upd'])) {
    $updatesession = ClassSession::find_by_id($_GET['s_upd']);
    ?>
<h2><a>Update Session:</a></h2>
<form action="index.php" method="post">
<input type="hidden" value="<?php 
    echo $updatesession->id;
    ?>
" name="s_id" />
Session Name:  <input type="text" maxlength="40" name="u_session_name"  value="<?php 
    echo $updatesession->name;
    ?>