dadamssg Posted December 12, 2008 Share Posted December 12, 2008 I have a website idea and want it to have an interactive web calendar to post events. I want my users to be able to post events as well. Does anyone know of any good calendars to incorporate into my site ? much appreciated Link to comment https://forums.phpfreaks.com/topic/136717-interactive-web-calendar/ Share on other sites More sharing options...
rhodesa Posted December 12, 2008 Share Posted December 12, 2008 Google Calendar works great. i think you can allow others to post events on it Link to comment https://forums.phpfreaks.com/topic/136717-interactive-web-calendar/#findComment-713934 Share on other sites More sharing options...
dadamssg Posted December 12, 2008 Author Share Posted December 12, 2008 i don't think google calendars will do what i want it to, i think they can only change/edit the events that i have posted....any other ideas? Link to comment https://forums.phpfreaks.com/topic/136717-interactive-web-calendar/#findComment-713953 Share on other sites More sharing options...
The Little Guy Posted December 12, 2008 Share Posted December 12, 2008 Program it yourself? Link to comment https://forums.phpfreaks.com/topic/136717-interactive-web-calendar/#findComment-714078 Share on other sites More sharing options...
rhodesa Posted December 12, 2008 Share Posted December 12, 2008 the only other suggestion i have is to pick an opensource CMS (like Joomla) and use one of the many calendar plugins they have Link to comment https://forums.phpfreaks.com/topic/136717-interactive-web-calendar/#findComment-714081 Share on other sites More sharing options...
The Little Guy Posted December 12, 2008 Share Posted December 12, 2008 my web calendar: http://publicsize.com/shoutbox/ Here is the code: <div class="content_content_head"> <span class="head2">Shout Box Calendar</span> </div> <div class="content_content_home"> <span class="profile_home"> <style> .calNotDay{ width:14%; height:100px; vertical-align:top; border:solid 1px #000; } .calDay{ width:14%; height:100px; vertical-align:top; border:solid 1px #000; background-color:#90a6ad; } </style> <table style="width:98%;align:center;"> <tr> <th colspan="7"><h2><?php echo date("F"); ?></h2></th> </tr> <tr> <th>Sunday</th> <th>Monday</th> <th>Tuesday</th> <th>Wednesday</th> <th>Thursday</th> <th>Friday</th> <th>Saturday</th> </tr> <?php list($y,$m) = explode("-",date("Y-m")); $fdom = date("l",mktime(0,0,0,$m,1,$y)); $tDay = date('t'); $sDay = 01; $cDay = date("j"); switch($fdom){ case "Sunday": $blank = 0; break; case "Monday": $blank = 1; break; case "Tueday": $blank = 2; break; case "Wednesday": $blank = 3; break; case "Thursday": $blank = 4; break; case "Friday": $blank = 5; break; case "Saturday": $blank = 6; break; } $set = FALSE; for($r=0;$r<6;$r++){ echo'<tr>'; for($c=0;$c<7;$c++){ if(!$set){ if($blank > $c){ echo'<td> </td>'; $set = FALSE; }else{ if($sDay==$cDay){ echo'<td class="calDay"><strong>'.$sDay++.'</strong></td>'; }else{ if(strlen($sDay) < 2){ $sDay = '0'.$sDay; } echo'<td class="calNotDay">'.$sDay++.'</td>'; } $set = TRUE; } }else{ if($sDay==$cDay){ echo'<td class="calDay"><strong>'.$sDay.'</strong></td>'; }else{ if($sDay<$cDay){ if(strlen($sDay) < 2){ $sDay = '0'.$sDay; } echo'<td class="calNotDay">'.$sDay.'</td>'; }else{ $sql = mysqli_query($db,"SELECT * FROM shoutbox_shoutout WHERE `date` = '".date("m/$sDay/Y")."' LIMIT 1"); if(!$row = mysqli_fetch_array($sql)){ echo'<td class="calNotDay"> <a class="subLink" href="bookDate?date='.date("m/$sDay/Y").'"> '.$sDay.' </a> </td>'; }else{ echo'<td class="calNotDay">'; if($row['ownerID']==$_SESSION['id']){ echo '<a class="subLink" href="viewDate?date='.date("m/$sDay/Y").'">'.$sDay.'</a>'; }else{ echo $sDay; } if($row['ownerID']==$_SESSION['id']){ echo'<p style="text-align:center;font-weight:bold;"><br />BOOKED<br />BY YOU</p></td>'; }else{ echo'<p style="text-align:center;font-weight:bold;"><br />BOOKED</p></td>'; } } } } $sDay++; if($sDay >$tDay){ break; } if(strlen($sDay) < 2){ $sDay = '0'.$sDay; } } } if($sDay >$tDay){ break; } echo'</tr>'; } ?> </table> </span> </div> Link to comment https://forums.phpfreaks.com/topic/136717-interactive-web-calendar/#findComment-714091 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.