From: <cl...@us...> - 2003-11-22 03:45:38
|
Update of /cvsroot/phpicalendar/phpicalendar In directory sc8-pr-cvs1:/tmp/cvs-serv14531 Modified Files: config.inc.php search.php Log Message: Updated files for 1.0. Index: config.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/config.inc.php,v retrieving revision 1.122 retrieving revision 1.123 diff -C2 -d -r1.122 -r1.123 *** config.inc.php 19 Nov 2003 07:54:09 -0000 1.122 --- config.inc.php 22 Nov 2003 03:45:33 -0000 1.123 *************** *** 1,5 **** <?php ! // Configuration file for PHP iCalendar 0.9.5 // // To set values, change the text between the single quotes --- 1,5 ---- <?php ! // Configuration file for PHP iCalendar 1.0 // // To set values, change the text between the single quotes *************** *** 42,46 **** $daysofweek_dayview = 'no'; // Display the days of the week in day.php view. $enable_rss = 'yes'; // Enable RSS access to your calendars (good thing). ! $show_search = 'no'; // Show the search box in the sidebar. $allow_preferences = 'yes'; // Allow visitors to change various preferences via cookies. $printview_default = 'no'; // Set print view as the default view. day, week, and month only supported views for $default_view (listed well above). --- 42,47 ---- $daysofweek_dayview = 'no'; // Display the days of the week in day.php view. $enable_rss = 'yes'; // Enable RSS access to your calendars (good thing). ! $enable_publishing = 'no'; // Enable webdav style publishing to your calendar's folder. READ calendars/publish.php before using! ! $show_search = 'yes'; // Show the search box in the sidebar. $allow_preferences = 'yes'; // Allow visitors to change various preferences via cookies. $printview_default = 'no'; // Set print view as the default view. day, week, and month only supported views for $default_view (listed well above). Index: search.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/search.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** search.php 17 Nov 2003 19:40:30 -0000 1.24 --- search.php 22 Nov 2003 03:45:33 -0000 1.25 *************** *** 106,261 **** </tr> <tr> ! <td colspan="3" class="dayborder"><img src="images/spacer.gif" width="1" height="5" alt=" "></td> </tr> <tr> ! <td colspan="3"> ! <table border="0" cellspacing="0" cellpadding="0" width="100%"> ! <tr> ! <td align="center" valign="top"> ! <table width="100%" border="0" cellspacing="0" cellpadding="0"> ! <tr> ! <td colspan="3" height="1"></td> ! </tr> ! <tr> ! <td colspan="3" class="G10B" align="center"><?php echo $query_lang.': '.$formatted_search; ?></td> ! </tr> ! <tr> ! <td colspan="3" class="G10B"> </td> ! </tr> ! <?php ! if (isset($the_arr) && is_array($the_arr)) { ! foreach($the_arr as $val) { ! $key = $val['date']; ! $dayofmonth = strtotime ($key); ! $dayofmonth = localizeDate ($dateFormat_day, $dayofmonth); ! echo "<tr><td width=\"10\"><img src=\"images/spacer.gif\" width=\"10\" height=\"1\" alt=\" \"></td>\n"; ! echo "<td align=\"left\" colspan=\"2\"><font class=\"V12\"><b><a class=\"ps3\" href=\"day.php?cal=$cal&getdate=$key\">$dayofmonth</a></b></font></td></tr>"; ! echo "<tr><td colspan=\"3\"><img src=\"images/spacer.gif\" width=\"1\" height=\"5\" alt=\" \"></td></tr>\n"; ! ! if ($val["event_text"]) { ! $event_text = stripslashes(urldecode($val["event_text"])); ! $description = stripslashes(urldecode($val["description"])); ! $event_start = $val["event_start"]; ! $event_end = $val["event_end"]; ! $event_start = date ($timeFormat, strtotime ("$event_start")); ! $event_end = date ($timeFormat, strtotime ("$event_end")); ! $event_start = "$event_start - $event_end"; ! if (!$val["event_start"]) { ! $event_start = "$all_day_lang"; ! $event_start2 = ''; ! $event_end = ''; ! } ! echo "<tr>\n"; ! echo "<td width=\"10\"><img src=\"images/spacer.gif\" width=\"10\" height=\"1\" alt=\" \"></td>\n"; ! echo "<td width=\"10\"><img src=\"images/spacer.gif\" width=\"10\" height=\"1\" alt=\" \"></td>\n"; ! echo "<td align=\"left\">\n"; ! echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\n"; ! echo "<tr>\n"; ! echo "<td width=\"120\" class=\"G10BOLD\">$time_lang:</td>\n"; ! echo "<td align=\"left\" class=\"G10B\">$event_start</td>\n"; ! echo "</tr>\n"; ! echo "<tr>\n"; ! echo "<td valign=\"top\" width=\"100\" class=\"G10BOLD\">$summary_lang:</td>\n"; ! echo "<td valign=\"top\" align=\"left\" class=\"G10B\">$event_text</td>\n"; ! echo "</tr>\n"; ! if (isset($val['recur'])) { ! $recur = $val['recur']; ! echo "<tr>\n"; ! echo "<td valign=\"top\" width=\"100\" class=\"G10BOLD\">Recurring event:</td>\n"; ! echo "<td valign=\"top\" align=\"left\" class=\"G10B\">$recur</td>\n"; ! echo "</tr>\n"; ! } ! if ($val["description"]) { ! echo "<tr>\n"; ! echo "<td valign=\"top\" width=\"100\" class=\"G10BOLD\">$description_lang:</td>\n"; ! echo "<td valign=\"top\" align=\"left\" class=\"G10B\">$description</td>\n"; ! echo "</tr>\n"; ! } ! echo "</table>\n"; ! echo "</td>\n"; ! echo "</tr>\n"; ! echo "<tr><td colspan=\"3\"><img src=\"images/spacer.gif\" width=\"1\" height=\"10\" alt=\" \"></td></tr>\n"; ! if (isset($val['exceptions'])) { ! echo "<tr><td colspan=\"3\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"; ! foreach($val['exceptions'] as $val2) { ! $key = $val2['date']; ! $dayofmonth = strtotime ($key); ! $dayofmonth = localizeDate ($dateFormat_day, $dayofmonth); ! echo "<tr><td width=\"20\"><img src=\"images/spacer.gif\" width=\"20\" height=\"1\" alt=\" \"></td>\n"; ! echo "<td align=\"left\" colspan=\"2\"><font class=\"V10\"><i>$exception_lang</i>: <a class=\"ps3\" href=\"day.php?cal=$cal&getdate=$key\">$dayofmonth</a></font></td></tr>"; ! echo "<tr><td colspan=\"3\"><img src=\"images/spacer.gif\" width=\"1\" height=\"5\" alt=\" \"></td></tr>\n"; ! ! if ($val2["event_text"]) { ! $event_text = stripslashes(urldecode($val2["event_text"])); ! $description = stripslashes(urldecode($val2["description"])); ! $event_start = $val2["event_start"]; ! $event_end = $val2["event_end"]; ! $event_start = date ($timeFormat, strtotime ("$event_start")); ! $event_end = date ($timeFormat, strtotime ("$event_end")); ! $event_start = "$event_start - $event_end"; ! if (!$val2["event_start"]) { ! $event_start = "$all_day_lang"; ! $event_start2 = ''; ! $event_end = ''; ! } ! echo "<tr>\n"; ! echo "<td width=\"10\"><img src=\"images/spacer.gif\" width=\"10\" height=\"1\" alt=\" \"></td>\n"; ! echo "<td width=\"10\"><img src=\"images/spacer.gif\" width=\"10\" height=\"1\" alt=\" \"></td>\n"; ! echo "<td align=\"left\">\n"; ! echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\n"; ! echo "<tr>\n"; ! echo "<td width=\"100\" class=\"V10\">$time_lang:</td>\n"; ! echo "<td align=\"left\" class=\"V10\">$event_start</td>\n"; ! echo "</tr>\n"; ! echo "<tr>\n"; ! echo "<td valign=\"top\" width=\"100\" class=\"V10\">$summary_lang:</td>\n"; ! echo "<td valign=\"top\" align=\"left\" class=\"V10\">$event_text</td>\n"; ! echo "</tr>\n"; ! if (isset($val2['recur'])) { ! $recur = $val2['recur']; ! echo "<tr>\n"; ! echo "<td valign=\"top\" width=\"100\" class=\"V10\">$recurring_event_lang:</td>\n"; ! echo "<td valign=\"top\" align=\"left\" class=\"V10\">$recur</td>\n"; ! echo "</tr>\n"; ! } ! if ($val2["description"]) { ! echo "<tr>\n"; ! echo "<td valign=\"top\" width=\"100\" class=\"V10\">$description_lang:</td>\n"; ! echo "<td valign=\"top\" align=\"left\" class=\"V10\">$description</td>\n"; ! echo "</tr>\n"; ! } ! echo "</table>\n"; ! echo "</td>\n"; ! echo "</tr>\n"; ! echo "<tr><td colspan=\"3\"><img src=\"images/spacer.gif\" width=\"1\" height=\"10\" alt=\" \"></td></tr>\n"; ! } ! } ! echo "</table></td><tr>\n"; ! } ! } } ! } else { ! echo '<tr><td colspan="3" class="G10B" align="center">'; ! echo $no_results_lang; ! echo '</td></tr><tr><td class="G10B"> </td></tr>'; } ! ! ! ! ?> ! <tr> ! <td colspan="3" class="G10B" align="center"><?php echo $search_box; ?></td> ! </tr> ! <tr> ! <td colspan="3" class="G10B" align="center"> ! <?php ! echo '<font class="V9G">'.sprintf($search_took_lang,$search_took).'</font><br><br>'; ! ?> ! </td> ! </tr> ! </table> ! </td> ! </tr> ! </table> </td> </tr> --- 106,233 ---- </tr> <tr> ! <td class="dayborder"><img src="images/spacer.gif" width="1" height="5" alt=" "></td> </tr> <tr> ! <td align="left"> ! <div style="padding: 10px;"> ! <?php ! ! echo '<div align="center"><p class="V12">'.$query_lang.': '.$formatted_search.'</p></div>'; ! ! if (isset($the_arr) && is_array($the_arr)) { ! foreach($the_arr as $val) { ! $key = $val['date']; ! $dayofmonth = strtotime ($key); ! $dayofmonth = localizeDate ($dateFormat_day, $dayofmonth); ! echo '<font class="V12"><b><a class="ps3" href="day.php?cal='.$cal.'&getdate='.$key.'">'.$dayofmonth.'</a></b></font><br>'; ! ! if ($val["event_text"]) { ! $event_text = stripslashes(urldecode($val["event_text"])); ! $description = stripslashes(urldecode($val["description"])); ! $event_start = $val["event_start"]; ! $event_end = $val["event_end"]; ! $event_calna = $val["calname"]; ! $event_start = date ($timeFormat, strtotime ("$event_start")); ! $event_end = date ($timeFormat, strtotime ("$event_end")); ! $event_start = "$event_start - $event_end"; ! if (!$val["event_start"]) { ! $event_start = "$all_day_lang"; ! $event_start2 = ''; ! $event_end = ''; ! } ! echo '<div style="margin-left: 10px;">'; ! echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\n"; ! echo "<tr>\n"; ! echo "<td width=\"120\" class=\"G10BOLD\">$time_lang:</td>\n"; ! echo "<td align=\"left\" class=\"G10B\">$event_start</td>\n"; ! echo "</tr>\n"; ! echo "<tr>\n"; ! echo "<td valign=\"top\" width=\"100\" class=\"G10BOLD\">$summary_lang:</td>\n"; ! echo "<td valign=\"top\" align=\"left\" class=\"G10B\">$event_text</td>\n"; ! echo "</tr>\n"; ! if (isset($val['recur'])) { ! $recur = $val['recur']; ! echo "<tr>\n"; ! echo "<td valign=\"top\" width=\"100\" class=\"G10BOLD\">Recurring event:</td>\n"; ! echo "<td valign=\"top\" align=\"left\" class=\"G10B\">$recur</td>\n"; ! echo "</tr>\n"; ! } ! if ($val["description"]) { ! echo "<tr>\n"; ! echo "<td valign=\"top\" width=\"100\" class=\"G10BOLD\">$description_lang:</td>\n"; ! echo "<td valign=\"top\" align=\"left\" class=\"G10B\">$description</td>\n"; ! echo "</tr>\n"; ! } ! echo "</table>\n"; ! echo '</div>'; ! if (isset($val['exceptions'])) { ! echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"; ! foreach($val['exceptions'] as $val2) { ! $key = $val2['date']; ! $dayofmonth = strtotime ($key); ! $dayofmonth = localizeDate ($dateFormat_day, $dayofmonth); ! echo "<td align=\"left\" colspan=\"2\"><font class=\"V10\"><i>$exception_lang</i>: <a class=\"ps3\" href=\"day.php?cal=$cal&getdate=$key\">$dayofmonth</a></font></td></tr>"; ! ! if ($val2["event_text"]) { ! $event_text = stripslashes(urldecode($val2["event_text"])); ! $description = stripslashes(urldecode($val2["description"])); ! $event_start = $val2["event_start"]; ! $event_end = $val2["event_end"]; ! $event_start = date ($timeFormat, strtotime ("$event_start")); ! $event_end = date ($timeFormat, strtotime ("$event_end")); ! $event_start = "$event_start - $event_end"; ! if (!$val2["event_start"]) { ! $event_start = "$all_day_lang"; ! $event_start2 = ''; ! $event_end = ''; } ! echo "<tr>\n"; ! echo "<td align=\"left\">\n"; ! echo '<div style="margin-left: 10px;">'; ! echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\">\n"; ! echo "<tr>\n"; ! echo "<td width=\"100\" class=\"V10\">$time_lang:</td>\n"; ! echo "<td align=\"left\" class=\"V10\">$event_start</td>\n"; ! echo "</tr>\n"; ! echo "<tr>\n"; ! echo "<td valign=\"top\" width=\"100\" class=\"V10\">$summary_lang:</td>\n"; ! echo "<td valign=\"top\" align=\"left\" class=\"V10\">$event_text</td>\n"; ! echo "</tr>\n"; ! if (isset($val2['recur'])) { ! $recur = $val2['recur']; ! echo "<tr>\n"; ! echo "<td valign=\"top\" width=\"100\" class=\"V10\">$recurring_event_lang:</td>\n"; ! echo "<td valign=\"top\" align=\"left\" class=\"V10\">$recur</td>\n"; ! echo "</tr>\n"; ! } ! if ($val2["description"]) { ! echo "<tr>\n"; ! echo "<td valign=\"top\" width=\"100\" class=\"V10\">$description_lang:</td>\n"; ! echo "<td valign=\"top\" align=\"left\" class=\"V10\">$description</td>\n"; ! echo "</tr>\n"; ! } ! echo "</table>"; ! echo '</div><br>'; ! } ! } ! } ! } ! } ! } else { ! echo '<div align="center">'; ! echo '<p class="V12">'.$no_results_lang.'</p>'; ! echo '</div>'; ! } ! ! echo '<div align="center">'; ! echo $search_box; ! echo '<p class="V9G">'.sprintf($search_took_lang,$search_took).'</p></div>'; ! echo '</div>'; ! ?> ! ! </td> ! </tr> ! </table> </td> </tr> |