File: styles.php

package info (click to toggle)
webcalendar 0.9.45-4sarge7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,888 kB
  • ctags: 4,775
  • sloc: php: 16,990; sql: 1,272; perl: 777; sh: 120; makefile: 45
file content (898 lines) | stat: -rw-r--r-- 21,879 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
<?
if (preg_match("/\/includes\//", $PHP_SELF)) {
    die ("You can't access this file directly!");
}
?>
<?php /* 
   HOW TO READ THIS DOCUMENT
	Below are CSS styles used in WebCalendar. There are two main parts to every CSS style: 'selector' & 'declaration'
		EXAMPLE:
			body {
				color: red;
			}
		The selector in the example above is 'body', while its declaration is 'color: red;'
	Each declaration has two parts: 'property' & 'value'
		In the example above, there is only one declaraion ("color: red;")
		For that declaration, the PROPERTY is "color" and the VALUE is "red"
		NOTE: Each property must be followed by a colon (:), 
			and each value must be followed by a semi-colon (;)
	Each selector can contain multiple declarations
		EXAMPLE:
			body {
				color: red;
				font-size: 12px;
				background-color: black;
			}
		In the example above, there are three declarations:
			color: red;
			font-size: 12px;
			background-color: black;
		NOTE: The declarations for a given style must be contained within curly brackets ({ })

   VARIABLES USED TO STYLE WEBCALENDAR
	TEXTCOLOR - default text color
	FONTS - default font-family
	BGCOLOR - background-color for the page
	TABLEBG - background-color for tables (typically used when the table also has cellspacing, thereby
		creating a border effect)
	CELLBG - background-color for normal cells (not weekends, today, or any other types of cells)
	TODAYCELLBG - background-color for cells that make up today's date
	WEEKENDBG - background-color for cells that make up the weekend
	THFG - text color for table headers
	THBG - background-color for table headers
	POPUP_FG - text color for event popups
	POPUP_BG - background-color for event popups
	H2COLOR - text color for text within h2 tags
*/
?>
<style type="text/css">
<!--
<?php //=============================== SECTION A ==========================================
	/* The CSS for WebCalendar is broken down into several sections.
	This should make it easier to understand, debug & understand the logical sequence
	of how the new style system is built.
	Each page in WebCalendar is assigned a unique ID. This unique ID is determined by 
	taking the name of the page & removing any underscores (_). For a complete list of
	and their IDs, look in includes/init.php.

	The following sections appear below:
		Section A - basic, required elements that affect WebCalendar as a whole
		Section R - more specific to select areas of WebCalendar, yet still 
			affects many areas of WebCalendar
		Section B - classes specific to certain pages, but that affect either 
			the page as a whole, or large areas within that page
		Section S - the "nitty gritty" of classes. Used specifically for 
			fine-tuning elements within a specific page
*/
?>body {
	color: <?php echo $GLOBALS['TEXTCOLOR']; ?>;
	font-family: <?php echo $GLOBALS['FONTS']; ?>;
	font-size: 12px;
	background-color: <?php echo $GLOBALS['BGCOLOR']; ?>;
}
<?php //links that don't have a specific class
//NOTE: these must appear ABOVE the 'printer' & all other 
//link-related classes for those classes to work 
?>a {
	color: <?php echo $GLOBALS['TEXTCOLOR']; ?>;
	text-decoration: none;
}
a:hover {
	color: #0000FF;
}
<?php
// HACK! we need to find a better way to differentiate between the
// admin version of edituser and the non-admin (account) version
// so we can use the proper background color (one is a page, the
// other is an iframe inside a tab area).
?>
<?php if ( $GLOBALS['is_admin'] ) { ?>
#edituser,
#edituserhandler,
<?php } ?>
#groupedit,
#editnonusers,
#groupedithandler,
#editnonusershandler {
	background-color: #F8F8FF;
	color: <?php echo $GLOBALS['TEXTCOLOR']; ?>;
	font-family: <?php echo $GLOBALS['FONTS']; ?>;
	font-size: 12px;
}
#tabscontent {
	margin: 0px;
	padding: 0.5em;
	border: 2px groove #C0C0C0;
	width: 70%;
	background-color: #F8F8FF;
}
.tabfor {
	padding: 0.2em 0.2em 0.07em 0.2em;
	margin: 0px 0.2em 0px 0.8em;
	border-top: 2px ridge #C0C0C0;
	border-left: 2px ridge #C0C0C0;
	border-right: 2px ridge #C0C0C0;
	border-bottom: 2px solid #F8F8FF;
	background-color: #F8F8FF;
	font-size: 14px;
	text-decoration: none;
	color: #000000;
}
.tabbak {
	padding: 0.2em 0.2em 0px 0.2em;
	margin: 0 0.2em 0 0.8em;
	border-top: 2px ridge #C0C0C0;
	border-left: 2px ridge #C0C0C0;
	border-right: 2px ridge #C0C0C0;
	background-color: #E0E0E0;
	font-size: 14px;
	text-decoration: none;
	color: #000000;
}
#tabscontent_public,
#tabscontent_groups,
#tabscontent_nonuser,
#tabscontent_other,
#tabscontent_email,
#tabscontent_colors,
#tabscontent_participants,
#tabscontent_sched,
#tabscontent_pete,
#tabscontent_export,
#tabscontent_nonusers,
#useriframe,
#grpiframe,
#nonusersiframe {
	display: none;
}
label {
	font-weight: bold;
}
.sample {
	border-style: groove;
}
<?php //week number in monthview & such 
?>.weeknumber,
.weeknumber a {
	font-size: 10px;
	color: #B04040;
	text-decoration: none;
}
<?php //transparent images used for visual color-selection
?>img.color {
	border-width: 0px;
	width: 15px;
	height: 15px;
}
<?php //display:none; is unhidden by includes/print_styles.css for printer-friendly pages 
?>#cat {
	display: none;
	font-size: 18px;
}
#trailer {
	margin: 0px;
	padding: 0px;
}
#trailer form {
	float: left;
	width: 33%;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	padding-top: 5px;
	margin-top: 5px;
	margin-bottom: 25px;
}
#trailer label {
	margin: 0px;
	padding: 0px;
	font-weight: bold;
}
#monthform {
	clear: left;
}
#weekform {
	text-align: center;
}
#yearform {
	text-align: right;
	clear: right;
}
#menu {
	clear: both;
}
#menu a {
	font-size: 14px;
	color: <?php echo $GLOBALS['TEXTCOLOR']; ?>;
	text-decoration: none;
}
.prefix {
	font-weight: bold;
	font-size: 14px;
}
<?php //link to webcalendar site -- NOTE: by modifying this style, you can make this link disappear
?>a#programname {
	margin-top: 10px;
	font-size: 10px;
}
<?php //printer-friendly links 
?>.printer {
	font-size: 14px;
	color: <?php echo $GLOBALS['TEXTCOLOR']; ?>;
	text-decoration: none;
	clear: both;
	display: block;
	width: 15ex;
}
<?php //new event icon (i.e. '+' symbol)
?>.new {
	border-width: 0px;
	float: right;
}
<?php //links to unapproved entries/events
?>.unapprovedentry {
	font-size: 13px;
	color: #800000;
	text-decoration: none;
	padding-right: 3px;
}
<?php //links to entries/events on layers
?>.layerentry {
	font-size: 13px;
	color: #006060;
	text-decoration: none;
	padding-right: 3px;
}
<?php //links to entries/events
?>.entry {
	font-size: 13px;
	color: #006000;
	text-decoration: none;
	padding-right: 3px;
}
<?php //event (or bullet) icon; NOTE: must appear AFTER the .entry, .layerentry, and .unapprovedentry classes
?>.entry img,
.layerentry img,
.unapprovedentry img {
	border-width: 0px;
	margin-left: 2px;
	margin-right: 2px;
}
<?php //numerical date links in main calendars
?>.dayofmonth {
	font-size: 13px;
	color: #000000;
	font-weight: bold;
	text-decoration: none;
	border-top-width: 0px;
	border-left-width: 0px;
	border-right: 1px solid #888888;
	border-bottom: 1px solid #888888;
	padding: 0px 2px 0px 3px;
}
<?php //numerical date links in main calendars on hover
?>.dayofmonth:hover {
	color: #0000FF;
	border-right: 1px solid #0000FF;
	border-bottom: 1px solid #0000FF;
}
<?php //left arrow images
?>.prev img {
	border-width: 0px;
	margin-left: 3px;
	margin-top: 7px;
	float: left;
}
<?php //right arrow images
?>.next img {
	border-width: 0px;
	margin-right: 3px;
	margin-top: 7px;
	float: right;
}
#activitylog .prev {
	border-width: 0px;
	float: left;
}
#activitylog .next {
	border-width: 0px;
	float: right;
}
<?php //left arrow image in day.php
?>#day .prev img {
	border-width: 0px;
	margin-top: 37px;
	float: left;
}
<?php //right arrow image in day.php
?>#day .next img {
	border-width: 0px;
	margin-top: 37px;
	float: right;
}
<?php //left arrow image in day.php
?>#day .monthnav .prev img {
	border-width: 0px;
	margin: 0px;
	float: left;
}
<?php //right arrow image in day.php
?>#day .monthnav .next img {
	border-width: 0px;
	margin: 0px;
	float: right;
}
.dailymatrix {
	cursor: pointer;
	font-size: 12px;
	text-decoration: none;
	text-align: right;
	background-color: <?php echo $GLOBALS['CELLBG']; ?>;
}
td.matrixappts {
	text-align: left;
	background-color: <?php echo $GLOBALS['CELLBG']; ?>;
	vertical-align: middle;
}
td.matrix {
	height: 1px;
	background-color: #000000;
}
.matrix img {
	border-width: 0px;
	width: 100%;
	height: 1px;
}
a.matrix img {
	border-width: 0px;
	width: 100%;
	height: 8px;
}
.matrixd {
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-right: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
}
.nav {
	font-size: 14px;
	color: <?php echo $GLOBALS['TEXTCOLOR']; ?>;
	text-decoration: none;
}
.popup {
	font-size: 12px;
	color: <?php echo $GLOBALS['POPUP_FG']; ?>;
	background-color: <?php echo $GLOBALS['POPUP_BG']; ?>;
	text-decoration: none;
	position: absolute;
	z-index: 20;
	visibility: hidden;
	top: 0px;
	left: 0px;
	border: 1px solid <?php echo $GLOBALS['POPUP_FG']; ?>;
	padding: 3px;
}
.popup dl {
	margin: 0px;
	padding: 0px;
}
.popup dt {
	font-weight: bold;
	margin: 0px;
	padding: 0px;
}
.popup dd {
	margin-left: 20px;
}
.tooltip {
	cursor: help;
	text-decoration: none;
	font-weight: bold;
}
.tooltipselect {
	cursor: help;
	text-decoration: none;
	font-weight: bold;
	vertical-align: top;
}
h2 {
	font-size: 20px;
	color: <?php echo $GLOBALS['H2COLOR']; ?>;
}
h3 {
	font-size: 18px;
}
p,
input,
select {
	font-size: 12px;
}
textarea {
	font-size: 12px;
	overflow: auto;
}
.user {
	font-size: 18px;
	color: <?php echo $GLOBALS['H2COLOR']; ?>;
	text-align: center;
}
.categories {
	font-size: 18px;
	color: <?php echo $GLOBALS['H2COLOR']; ?>;
	text-align: center;
}
<?php //left column in help sections 
?>.help {
	vertical-align: top;
	font-weight: bold;
}
<?php //question mark img linking to help sections
?>img.help {
	border-width: 0px;
	cursor: help;
}
<?php //standard table appearing mainly in prefs.php & admin.php 
?>.standard {
  border: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
  background-color: <?php echo $GLOBALS['CELLBG']; ?>;
  font-size: 12px;
}
.standard th {
  color: <?php echo $GLOBALS['THFG']; ?>;
  background-color: <?php echo $GLOBALS['THBG']; ?>;
  font-size: 18px;
  padding: 0px;
  border-bottom: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
}
<?php //Styles for minicalendars
      //keep font-size:12px for IE6
?>.minical {
	font-size: 12px;
	border-collapse: collapse;
}
.minical caption a {
	font-weight: bold;
	color: #B04040;
}
.minical caption a:hover {
	color: #0000FF;
}
<?php //formats the day name (i.e. Sun, Mon, etc) in minicals
?>.minical th, 
.minical td.empty {
	color: <?php echo $GLOBALS['TEXTCOLOR']; ?>;
	text-align: center;
	background-color: <?php echo $GLOBALS['BGCOLOR']; ?>;
}
.minical td {
	padding: 0px 2px;
	border: 1px solid <?php echo $GLOBALS['BGCOLOR']; ?>;
}
.minical td a {
	display: block;
	text-align: center;
	margin: 0px;
	padding: 3px;
}
.minical td.weekend {
	background-color: <?php echo $GLOBALS['WEEKENDBG']; ?>;
}
.minical td#today {
	background-color: <?php echo $GLOBALS['TODAYCELLBG']; ?>;
}
.minical td.hasevents {
	background-color: #DDDDFF;
	font-weight: bold;
}
#activitylog table,
.embactlog {
	width: 100%;
	border-bottom: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-right: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-spacing: 0px;
}
#activitylog tr,
.embactlog tr {
	background-color: #FFFFFF;
}
#activitylog .odd,
.embactlog .odd {
	background-color: #EEEEEE;
}
#activitylog th,
.embactlog th {
	width: 14%;
	color: <?php echo $GLOBALS['THFG']; ?>;
	background-color: <?php echo $GLOBALS['THBG']; ?>;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-bottom: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	padding: 1px 3px;
}
#activitylog th.usr,
.embactlog th.usr,
#activitylog th.cal,
.embactlog th.cal,
#activitylog th.action,
.embactlog th.action {
	width: 7%;
}
#activitylog td,
.embactlog td {
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	padding: 1px 3px;
}
#day div.minicalcontainer {
	text-align: right;
	border: 1px solid #000000;
	padding: 3px;
}
<?php //the really big number above the minicalendar in day.php
?>#day .minical caption {
	text-align: center;
	font-weight: bold;
	color: <?php echo $GLOBALS['THFG']; ?>;
	background-color: <?php echo $GLOBALS['THBG']; ?>;
	font-size: 47px;
}
#day .minical td.selectedday {
	border: 2px solid <?php echo $GLOBALS['TABLEBG']; ?>;
}
#day .monthnav th {
	text-align: center;
	color: <?php echo $GLOBALS['THFG']; ?>;
	background-color: <?php echo $GLOBALS['THBG']; ?>;
	border-width: 0px;
	padding: 3px;
}
.glance {
	border-bottom: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-right: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	width: 100%;
}
.glance th.empty {
	border-top: 1px solid <?php echo $GLOBALS['BGCOLOR']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['BGCOLOR']; ?>;
	background-color: <?php echo $GLOBALS['BGCOLOR']; ?>;
}
.glance th.row {
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	height: 40px;
	width: 14%;
	color: <?php echo $GLOBALS['THFG']; ?>;
	font-size: 13px;
	background-color: <?php echo $GLOBALS['THBG']; ?>;
	vertical-align: top;
}
.glance td {
	vertical-align: top;
	background-color: <?php echo $GLOBALS['CELLBG'];?>;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	padding-left: 3px;
}
<?php //display: none; is unhidden by includes/print_styles.css for printer-friendly pages
?>#day dl.desc {
	display: none;
	margin: 0px;
	padding: 0px;
}
#day dl.desc dt {
	font-weight: bold;
}
#day dl.desc dd {
	margin: 0px;
	padding-left: 20px;
}
.viewt,
#viewv .main,
#viewm .main,
#vieww .main,
#week .main,
#viewl .main,
#month .main {
	border-bottom: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-right: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	width: 100%;
	clear: both;
}
<?php //contains ALL months
?>#year .main tr {
	vertical-align: top;
}
th {
	font-size: 13px;
	color: <?php echo $GLOBALS['THFG']; ?>;
	background-color: <?php echo $GLOBALS['THBG']; ?>;
}	
#viewv .main th,
#viewl .main th,
#month .main th {
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	width: 14%;
}
#vieww .main th,
#week .main th {
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	width: 12%;
}
#viewm .main th {
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
}
<?php //participants cell
?>#viewd .main th {
	border-right: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	padding: 1px;
}
#viewv .main th.empty,
#viewm .main th.empty,
#vieww .main th.empty,
#week .main th.empty {
	background-color: <?php echo $GLOBALS['BGCOLOR']; ?>;
	border-top: 1px solid <?php echo $GLOBALS['BGCOLOR']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['BGCOLOR']; ?>;
}
#week .main th.row {
	width: 10%;
	vertical-align: top;
	height: 40px;
}
#vieww .main th.row,
#viewv .main th.row,
#viewm .main th.row,
#viewt th.row {
	width: 10%;
	vertical-align: top;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
}
#viewd .main th.row {
	border-right-width: 0px;
	text-align: left;
}
#vieww .main th.today,
#viewm .main th.today,
#viewv .main th.today,
#viewt .main th.today {
	width: 10%;
	background-color: <?php echo $GLOBALS['TODAYCELLBG'];?>;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	vertical-align: top;
}
#week .main th.today {
	background-color: <?php echo $GLOBALS['TODAYCELLBG'];?>;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	width: 12%;
}
#week .main th a,
#weekdetails .main th a {
	color: <?php echo $GLOBALS['THFG']; ?>;
}
#week .main th a:hover,
#weekdetails .main th a:hover {
	color: #0000FF;
}
#year .main td {
	text-align: center;
	padding: 0px 3px;
}
#viewl .main td,
#month .main td {
	font-size: 12px;
	height: 75px;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	background-color: <?php echo $GLOBALS['CELLBG'];?>;
	vertical-align: top;
}
#vieww .main td,
#week .main td,
#viewm .main td,
#viewv .main td {
	font-size: 12px;
	background-color: <?php echo $GLOBALS['CELLBG'];?>;
	vertical-align: top;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	padding-left: 3px;
}
#viewl .main td.weekend,
#month .main td.weekend,
#viewm .main td.weekend,
#viewv .main td.weekend,
#vieww .main td.weekend,
#week .main td.weekend {
	background-color: <?php echo $GLOBALS['WEEKENDBG']; ?>;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
}
#viewl .main td.today,
#month .main td.today,
#viewm .main td.today,
#vieww .main td.today,
#viewv .main td.today {
	background-color: <?php echo $GLOBALS['TODAYCELLBG'];?>;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	vertical-align: top;
}
#month #prevmonth,
#viewl #prevmonth {
	float: left;
}
#month #nextmonth,
#viewl #nextmonth {
	float: right;
}
#month .minical caption,
#viewl .minical caption {
	margin-left: 4ex;
}
<?php //keep font-size:12px; for IE6 rendering
      //display: block; keeps the caption vertically close to the day names
?>#year .minical {
	margin: 5px auto;
	display: block;
}
#year .minical caption {
	margin: 0px auto;
}
#viewl .minical,
#month .minical {
	border-width: 0px;
}
#viewt td.reg {
	background-color: <?php echo $GLOBALS['CELLBG']; ?>;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	width: 90%;
}
.title {
	width: 99%;
	text-align: center;
}
#day .title {
	margin-top: 3px;
	text-align: center;
}
#day .title .date,
.title .date {
	font-size: 24px;
	font-weight: bold;
	text-align: center;
	color: <?php echo $GLOBALS['H2COLOR']; ?>;
}
.title .weeknumber {
	font-size: 20px;
	color: <?php echo $GLOBALS['H2COLOR']; ?>;
}
.title .viewname,
#day .title .user,
.title .user {
	font-size: 18px;
	font-weight: bold;
	color: <?php echo $GLOBALS['H2COLOR']; ?>;
	text-align: center;
}
#weekdetails .main {
	border-right: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-bottom: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	width: 90%;
}
#weekdetails .main th {
	font-size: 13px;
	color: <?php echo $GLOBALS['THFG']; ?>;
	background-color: <?php echo $GLOBALS['THBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	width: 100%;
	padding: 2px;
}
#weekdetails .main td {
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	background-color: <?php echo $GLOBALS['CELLBG']; ?>;
	vertical-align: top;
	height: 75px;
}
<?php //must appear after th & td declarations
      //optionally, you can change this to read "#weekdetails td.today" to color today's cell instead of the header
      //to color both the cell & the header with this style, simply remove the "th" below
?>#weekdetails .main th.today {
	background-color: <?php echo $GLOBALS['TODAYCELLBG'];?>;
}
<?php //must appear after th & td declarations
      //optionally, you can change this to read "#weekdetails th.weekend" to color the weekend headers instead of the cells
      //to color both the cell & the header with this style, simply remove the "td" below
?>#weekdetails .main td.weekend {
	background-color: <?php echo $GLOBALS['WEEKENDBG']; ?>;
}
#viewt table {
	border-collapse: collapse;
}
#viewt .timebar {
	padding: 0px;
	width: 100%;
	border-width: 0px;
}
#viewt .timebar td {
	padding: 0px;
	background-color: #FFFFFF;
	text-align: center;
	color: #CCCCCC;
	font-size: 10px;
}
#viewt .yardstick {
	width: 100%;
	padding: 0px;
	border-width: 0px;
}
#viewt .yardstick td {
	background-color: #FFFFFF;
	border: 1px solid #CCCCCC;
}
#viewt .entrycont {
	width: 100%;
	padding: 0px;
	border-width: 0px;
}
#viewt .entrycont td {
	text-align: right;
}
#viewt .entrybar {
	width: 100%;
	border-width: 0px;
}
#viewt .entrybar td.entry {
	text-align: center;
	background-color: #F5DEB3;
	border: 1px solid #000000;
}
#viewt .weekend {
	width: 90%;
	background-color: <?php echo $GLOBALS['WEEKENDBG']; ?>;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	vertical-align: top;
}
#viewt td.today {
	width: 90%;
	background-color: <?php echo $GLOBALS['TODAYCELLBG'];?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	vertical-align: top;
}
#viewt th.today {
	color: <?php echo $GLOBALS['THFG']; ?>;
	background-color: <?php echo $GLOBALS['TODAYCELLBG'];?>;
	border-left: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	border-top: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	vertical-align: top;
}
#login {
	margin-top: 70px;
	margin-bottom: 50px;
	text-align: center;
}
#login table {
	border: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
	background-color: <?php echo $GLOBALS['CELLBG']; ?>;
	font-size: 12px;
}
.cookies {
	font-size: 13px;
}
.standard th {
	color: <?php echo $GLOBALS['THFG']; ?>;
	background-color: <?php echo $GLOBALS['THBG']; ?>;
	font-size: 18px;
	padding: 0px;
	border-bottom: 1px solid <?php echo $GLOBALS['TABLEBG']; ?>;
}
abbr {
	cursor: help;
}
-->
</style>