squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

functions.php
Go to the documentation of this file.
1 <?php
2 
17 function calendar_header() {
18  global $color,$year,$day,$month;
19 
20  echo html_tag( 'table', '', '', $color[0], 'border="0" width="100%" cellspacing="0" cellpadding="2"' ) .
21  html_tag( 'tr' ) .
22  html_tag( 'td', '', 'left', '', 'width="100%"' );
23 
24  displayInternalLink("plugins/calendar/calendar.php?year=$year&amp;month=$month",_("Month View"),"right");
25  echo "&nbsp;&nbsp;\n";
26  displayInternalLink("plugins/calendar/day.php?year=$year&amp;month=$month&amp;day=$day",_("Day View"),"right");
27  echo "&nbsp;&nbsp;\n";
28  // displayInternalLink("plugins/calendar/event_create.php?year=$year&amp;month=$month&amp;day=$day",_("Add Event"),"right");
29  // echo "&nbsp;&nbsp;\n";
30  echo '</td></tr>';
31 
32 }
33 
42  $eventlength = array(
43  '0' => _("0 min."),
44  '15' => _("15 min."),
45  '30' => _("30 min."),
46  '45' => _("45 min."),
47  '60' => _("1 hr."),
48  '90' => _("1.5 hr."),
49  '120' => _("2 hr."),
50  '150' => _("2.5 hr."),
51  '180' => _("3 hr."),
52  '210' => _("3.5 hr."),
53  '240' => _("4 hr."),
54  '300' => _("5 hr."),
55  '360' => _("6 hr.")
56  );
57 
58  while( $bar = each($eventlength)) {
59  if($bar['key']==$selected){
60  echo ' <option value="'.$bar['key'].'" selected="selected">'.$bar['value']."</option>\n";
61  } else {
62  echo ' <option value="'.$bar['key'].'">'.$bar['value']."</option>\n";
63  }
64  }
65 }
66 
75  $eventminute = array(
76  '00'=>'00',
77  '05'=>'05',
78  '10'=>'10',
79  '15'=>'15',
80  '20'=>'20',
81  '25'=>'25',
82  '30'=>'30',
83  '35'=>'35',
84  '40'=>'40',
85  '45'=>'45',
86  '50'=>'50',
87  '55'=>'55'
88  );
89 
90  while ( $bar = each($eventminute)) {
91  if ($bar['key']==$selected){
92  echo ' <option value="'.$bar['key'].'" selected="selected">'.$bar['value']."</option>\n";
93  } else {
94  echo ' <option value="'.$bar['key'].'">'.$bar['value']."</option>\n";
95  }
96  }
97 }
98 
106 
107  for ($i=0;$i<24;$i++){
108  ($i<10)? $ih = "0" . $i : $ih = $i;
109  if ($ih==$selected){
110  echo ' <option value="'.$ih.'" selected="selected">'.$i."</option>\n";
111  } else {
112  echo ' <option value="'.$ih.'">'.$i."</option>\n";
113  }
114  }
115 }
116 
123  $eventpriority = array(
124  '0' => _("Normal"),
125  '1' => _("High"),
126  );
127 
128  while( $bar = each($eventpriority)) {
129  if($bar['key']==$selected){
130  echo ' <option value="'.$bar['key'].'" selected="selected">'.$bar['value']."</option>\n";
131  } else {
132  echo ' <option value="'.$bar['key'].'">'.$bar['value']."</option>\n";
133  }
134  }
135 }
136 
145 
146  for ($i=1902;$i<2038;$i++){
147  if ($i==$selected){
148  echo ' <option value="'.$i.'" selected="selected">'.$i."</option>\n";
149  } else {
150  echo ' <option value="'.$i.'">'.$i."</option>\n";
151  }
152  }
153 }
154 
161 
162  for ($i=1;$i<13;$i++){
163  $im=date('m',mktime(0,0,0,$i,1,1));
164  $is = getMonthAbrv( date('m',mktime(0,0,0,$i,1,1)) );
165  if ($im==$selected){
166  echo ' <option value="'.$im.'" selected="selected">'.$is."</option>\n";
167  } else {
168  echo ' <option value="'.$im.'">'.$is."</option>\n";
169  }
170  }
171 }
172 
181 
182  for ($i=1;$i<32;$i++){
183  ($i<10)? $ih="0".$i : $ih=$i;
184  if ($i==$selected){
185  echo ' <option value="'.$ih.'" selected="selected">'.$i."</option>\n";
186  } else {
187  echo ' <option value="'.$ih.'">'.$i."</option>\n";
188  }
189  }
190 }
191 
192 ?>
html_tag
html_tag( $tag, $val='', $align='', $bgcolor='', $xtra='')
Definition: html.php:27
select_option_minute
select_option_minute($selected)
Definition: functions.php:74
select_option_month
select_option_month($selected)
Definition: functions.php:160
select_option_length
select_option_length($selected)
Definition: functions.php:41
select_option_day
select_option_day($selected)
Definition: functions.php:180
getMonthAbrv
getMonthAbrv( $month_number)
Definition: date.php:235
select_option_priority
select_option_priority($selected)
Definition: functions.php:122
select_option_hour
select_option_hour($selected)
Definition: functions.php:105
calendar_header
calendar_header()
Definition: functions.php:17
_
_($str)
Definition: gettext.php:160
select_option_year
select_option_year($selected)
Definition: functions.php:144
$color
$color
Definition: load_prefs.php:28
displayInternalLink
displayInternalLink($path, $text, $target='')
Definition: page_header.php:101
$selected
if($spamcop_quick_report) $selected
Definition: options.php:107