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
|
<?php
function insertStatusMessage($message) { echo "<div id=\"msg\">$message</div>"; }
function sendMail($host, $to, $from, $fromName, $subject, $body, $html) { $mail = new PHPMailer(); $mail->AddAddress($to); $mail->Password = "dlaslo78"; $mail->FromName = $fromName; $mail->UserName = "dlaslo78%timbru.com"; $mail->SMTPAuth = true; $mail->Body = $body; $mail->Host =$host; $mail->IsHTML($html); $mail->From = $from; // $mail->SMTPDebug = true; $mail->Subject = $subject; $mail->IsSMTP(); return $mail->Send(); }
function textField($name, $id, $class_ ="", $type = "text", $value = "") { $result = "<input "; if($name!="") $result.=" name = \"$name\""; if($type != "") $result.= " type = \"$type\""; if($class_ !="") $result .=" class = \"$class_\""; if($id != "") $result.= " id = \"$id\""; if($value!="") $result.= "value \"$value\"";
$result.=">"; return $result; }
function textArea($name, $id, $class_, $value = "", $wrap = "VIRTUAL", $width = "", $rows="") { $result = "<textarea"; if($name!="") $result.=" name = \"$name\""; if($class_!="") $result.=" class = \"$class_\""; if($wrap!="") $result.=" wrap = \"$wrap\""; if($id!="") $result.=" id = \"$id\""; if($rows!="") $result.= " rows = \"$rows\""; if($width!="") $result.= " style = \"width: $width\""; if($value!="") $result.=" value = \"$value\""; $result.="></textarea>"; return $result; }
function fileArea($name, $id, $type = "file") { $result = "<input "; if($type!="") $result.=" type = \"$type\""; if($name!="") $result.=" name = \"$name\""; if($id!="") $result.=" id = \"$id\""; $result.=">"; return $result; }
function checkBox($name, $id, $value, $checked) { $result = "<input type = \"checkbox\""; if($name!="") $result.=" name = \"$name\""; if($id!="") $result.=" id = \"$id\""; if($value!="") $result.=" value = \"$value\""; if($checked == true) $resutl.= " checked"; $result.=">"; return $result; }
function radioButton($name, $id, $value) { $result = "<input type = \"radio\""; if($name!="") $result.=" name = \"$name\""; if($id!="") $result.=" id = \"$id\""; if($value!="") $resutl.=" value = \"$value=\""; $result.=">\n"; return $result; }
function label($for_, $text) { $result = "<label "; if($for_!="") $result.=" for = \"$for\""; $result.=">$text</label>\n"; return $result; }
function image($path, $alt, $width, $height, $id, $style) { $result = "<img"; if($path!="") $result.= " src = \"$path\""; if($alt!="") $result.=" alt = \"$alt\""; if($width!="") $result.=" width = \"$width\""; if($height!="") $result.=" height = \"$height\""; if($id!="") $result.=" id = \"$id\""; if($style!="") $result.=" style = \"$style\""; $result.=">\n"; return $result; }
?>
|