--- eguide2.php 2007-01-19 01:07:16.000000000 +0900
16:34:57.336956716 +0900
+++ eguide2.php 2007-06-01 12:36:33.287593958 +0900
@@ -27,7 +27,7 @@
$cond = isset($_GET['eid'])?" AND e.eid=".intval($_GET['eid']):"";
$result = $db->query( "SELECT title,e.eid,exid,
IF(exdate,exdate,edate) edate,summary,
-IF(x.reserved,x.reserved,o.reserved)/persons*100, closetime FROM ".
+IF(x.reserved,x.reserved,o.reserved)/persons*100, closetime, o.reservation FROM ".
$db->prefix("eguide")." e LEFT JOIN ".
$db->prefix("eguide_opt")." o ON e.eid=o.eid LEFT JOIN ".
$db->prefix("eguide_extent")." x ON e.eid=eidref
@@ -55,9 +54,9 @@
}
}
-while( list( $title , $id , $sub, $edate , $description , $full, $close) = $db->fetchRow( $result ) ) {
+while( list( $title , $id , $sub, $edate , $description , $full, $close, $resv) = $db->fetchRow( $result ) ) {
if (($edate-$close)<$now) $full = -1;
- $mark = eguide_marker($full);
+ $mark = $resv?eguide_marker($full):'';
$server_time = $edate ;
$user_time = $server_time + $tzoffset_s2u ;
if( date( 'n' , $user_time ) != $this->month ) continue ;
--
安冨 伸浩 (マイサイト管理人)
安冨 伸浩 (マイサイト管理人)