-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathh1.php
74 lines (70 loc) · 2.49 KB
/
h1.php
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
<?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.6in}'."\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}{2.6in}'."\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}{1.8in}'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\large\bf{'.$dates[$n]." ".$months[$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.32in}'."\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}{1.8in}'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\large\bf{'.$dates[$n]." ".$months[$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.06in}'."\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}{1.8in}'."\n");
fwrite($file,'\color{'.$textcolor.'}'.'\large\bf{'.$dates[$n]." ".$months[$n]." ".$yr[$n].'}'."\n");
fwrite($file,'\end{minipage}}'."\n");
}
?>