-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathh2.php
More file actions
83 lines (79 loc) · 2.94 KB
/
h2.php
File metadata and controls
83 lines (79 loc) · 2.94 KB
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
<?php
function headfirst() // header with logo
{
global $file;
global $n;
global $dates;
global $months;
global $yr;
global $punj;
global $days;
global $lang;
global $textcolor;
fwrite($file,'\noindent'.'\colorbox[HTML]{3399FF}{'."\n");
fwrite($file,'\begin{minipage}{1.45in}'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\large\bf{'.$days[$n].'}'.'\newline'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\large\bf{'.$lang[$punj[$n]].'}'."\n");
fwrite($file,'\end{minipage}'."\n");
fwrite($file,'\begin{minipage}{3.22in}'."\n");
fwrite($file,'\begin{center}'."\n");
fwrite($file,'\includegraphics[scale=0.1]{logo.png}'."\n");
fwrite($file,'\end{center}'."\n");
fwrite($file,'\end{minipage}'."\n");
fwrite($file,'\begin{minipage}{0.4in}'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\Huge\bf{'.$dates[$n].'}'."\n");
fwrite($file,'\end{minipage}'."\n");
fwrite($file,'\begin{minipage}{0.9in}'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\bf{'.$months[$n].'}'."".'\newline'."\n".$yr[$n]."\n");
fwrite($file,'\end{minipage}}'."\n");
fwrite($file,'\vspace{0.4cm}'."\n");
}
function headend() // header without logo
{
global $file;
global $n;
global $dates;
global $months;
global $yr;
global $punj;
global $days;
global $lang;
global $textcolor;
fwrite($file,'\vspace{0.5cm}'."\n");
fwrite($file,'\noindent'.'\colorbox[HTML]{3399FF}{'."\n");
fwrite($file,'\begin{minipage}{4.76in}'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\large\bf{'.$days[$n].'}'.'\newline'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\large\bf{'.$lang[$punj[$n]].'}'."\n");
fwrite($file,'\end{minipage}\hfill'."\n");
fwrite($file,'\begin{minipage}{0.4in}'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\Huge\bf{'.$dates[$n].'}'."\n");
fwrite($file,'\end{minipage}'."\n");
fwrite($file,'\begin{minipage}{0.9in}'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\bf{'.$months[$n].'}'."".'\newline'."\n".$yr[$n]."\n");
fwrite($file,'\end{minipage}}'."\n");
fwrite($file,'\vspace{0.4cm}'."\n");
}
function headsun() // header for sun and saturday
{
global $file;
global $n;
global $dates;
global $months;
global $yr;
global $punj;
global $days;
global $lang;
global $textcolor;
fwrite($file,'\noindent'.'\colorbox[HTML]{3399FF}{'."\n");
fwrite($file,'\begin{minipage}{1.55in}'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\large\bf{'.$days[$n].'}'.'\newline'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\large\bf{'.$lang[$punj[$n]].'}'."\n");
fwrite($file,'\end{minipage}'."\n");
fwrite($file,'\begin{minipage}{0.4in}'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\Huge\bf{'.$dates[$n].'}'."\n");
fwrite($file,'\end{minipage}'."\n");
fwrite($file,'\begin{minipage}{0.9in}'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\bf{'.$months[$n].'}'."".'\newline'."\n".$yr[$n]."\n");
fwrite($file,'\end{minipage}}'."\n");
}
?>