aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-10-28 02:34:21 +0000
committerChad Little <clittle@users.sourceforge.net>2002-10-28 02:34:21 +0000
commit0c7763fe4fd132ef293e37382537f9b4a246a1dc (patch)
tree628309ae0540b90fa49a3fd3155cbd896e0ac512
parent450b9c0f642a738968b29faa4287c53018f76871 (diff)
downloadphpicalendar-0c7763fe4fd132ef293e37382537f9b4a246a1dc.tar.gz
phpicalendar-0c7763fe4fd132ef293e37382537f9b4a246a1dc.tar.bz2
phpicalendar-0c7763fe4fd132ef293e37382537f9b4a246a1dc.zip
Search box addition.
-rw-r--r--config.inc.php1
-rw-r--r--search.php2
-rw-r--r--sidebar.php13
-rw-r--r--styles/silver/default.css3
4 files changed, 16 insertions, 3 deletions
diff --git a/config.inc.php b/config.inc.php
index b8997dd..c9a4aa9 100644
--- a/config.inc.php
+++ b/config.inc.php
@@ -33,6 +33,7 @@ $this_months_events = 'yes'; // Display "This month's events" at the bottom o
$use_color_cals = 'yes'; // Display each calendar in the pop-up as a different color.
$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 = 'yes'; // Show the search box in the sidebar.
$blacklisted_cals[] = ''; // Fill in between the quotes the name of the calendars
$blacklisted_cals[] = ''; // you wish to 'blacklist' or that you don't want to show up in your calendar
diff --git a/search.php b/search.php
index a03c270..5943694 100644
--- a/search.php
+++ b/search.php
@@ -39,7 +39,7 @@ $search_box .=
'<form action="search.php" method="GET">'."\n".
'<input type="hidden" name="cal" value="'.$cal.'">'."\n".
'<input type="hidden" name="getdate" value="'.$getdate.'">'."\n".
- '<input type="text" size="15" name="query" value="'.$query.'">'."\n".
+ '<input type="text" size="15" class="search_style" name="query" value="'.$query.'">'."\n".
'<INPUT type="image" src="styles/'.$style_sheet.'/search.gif" border=0 height="19" width="18" name="submit" value="Search">'."\n".
'</form>';
diff --git a/sidebar.php b/sidebar.php
index 6ec77c1..1c929fb 100644
--- a/sidebar.php
+++ b/sidebar.php
@@ -6,6 +6,9 @@
$cal_displayname2 = $cal_displayname2 . "...";
}
+ $search_box .=
+ '<form action="search.php" method="GET"><input type="hidden" name="cal" value="'.$cal.'"><input type="hidden" name="getdate" value="'.$getdate.'"><input type="text" size="15" class="search_style" name="query" value="'.$search_lang.'"><INPUT type="image" src="styles/'.$style_sheet.'/search.gif" border=0 height="19" width="18" name="submit" value="Search"></form>';
+
?>
<table cellpadding="0" cellspacing="0" border="0" width="170">
@@ -143,7 +146,15 @@
</tr>
<?php
}
- ?>
+ if ($show_search == 'yes') { ?>
+ <tr>
+ <td colspan="7"><img src="images/spacer.gif" width="21" height="3"></td>
+ </tr>
+ <tr>
+ <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td>
+ <td colspan="6" valign="middle" align="left"><?php echo "$search_box"; ?></td>
+ </tr>
+ <?php } ?>
</table>
</td>
</tr>
diff --git a/styles/silver/default.css b/styles/silver/default.css
index 42f9128..094421a 100644
--- a/styles/silver/default.css
+++ b/styles/silver/default.css
@@ -67,5 +67,6 @@ body { background-color: #E5E5E5; }
/* Length of the form drop downs */
-.query_style { font-size : 11px; font-family : verdana, geneva, arial, sans-serif; width: 146px; margin-bottom:0; }
+.query_style { font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 156px; margin-bottom: 0; }
+.search_style { font-size: 12px; font-family: verdana, geneva, arial, sans-serif; width: 134px; margin-bottom: 0; }

© 2014-2024 Faster IT GmbH | imprint | privacy policy