Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
<?php
2
 
3
/************************************************************************/
4
/* G-Shout : Gravitasi Shoutbox                                         */
5
/* ============================================                         */
6
/*                                                                      */
7
/* Copyright (c) 2005 by Yohanes Pradono                                */
8
/* http://gravitasi.com                                                 */
9
/*                                                                      */
10
/* This program is free software. You can redistribute it and/or modify */
11
/* it under the terms of the GNU General Public License as published by */
12
/* the Free Software Foundation; either version 2 of the License.       */
13
/*                                                                      */
14
/************************************************************************/
15
 
16
/********************************************
17
This is the example of the iframe, modify it.
18
*********************************************/
19
 
20
include("config.php");
21
include("./languages/lang-".$language.".php");
22
?>
23
 
24
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
25
<html>
26
<head>
27
<title>G-Shout <?=$version?> | Iframe Demo</title>
28
<meta http-equiv="Content-Type" content="text/html; charset=<?=_CHARSET?>" />
29
<?
30
if($SERVER_PROTOCOL == "HTTP/1.0"){
31
echo("<meta http-equiv=\"pragma\" content=\"no-cache\" />\n");
32
}else{
33
echo("<meta http-equiv=\"Cache-Control\" content=\"no-cache, must-revalidate\" />\n");
34
}
35
?>
36
<meta name="Generator" content="G-Shout <?=$version?>" />
37
 
38
<style type="text/css">
39
body {
40
	padding-right: 0px; 
41
	padding-left: 0px; 
42
	background: #fff; 
43
	padding-bottom: 0px; 
44
	margin: 0px auto; 
45
	color: #333; 
46
	padding-top: 0px; 
47
	font-family: 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;
48
}
49
 
50
a {
51
	color: #4169aa; 
52
	background-color: transparent; 
53
	text-decoration: none;
54
}
55
a:link {
56
	color: #4169aa; 
57
	background-color: transparent; 
58
	text-decoration: none;
59
}
60
a:visited {
61
	color: #4169aa; 
62
	background-color: transparent; 
63
	text-decoration: none;
64
}
65
a:active {
66
	color: #f30;
67
}
68
a:hover {
69
	color: #fff; 
70
	background-color: #4169aa; 
71
	text-decoration: none;
72
}
73
 
74
.input {
75
	padding-right: 0px; 
76
	border-top: #999999 1px solid; 
77
	margin-top: 6px; 
78
	padding-left: 2px; 
79
	font-size: 11px; 
80
	margin-bottom: 3px; 
81
	padding-bottom: 0px; 
82
	border-left: #999999 1px solid; 
83
	color: #333; 
84
	padding-top: 0.3em; 
85
	font-family: Verdana, geneva, tahoma, trebuchet ms, Arial, sans-serif; 
86
	height: 1.6em; 
87
	background-color: #fff;
88
}
89
 
90
 
91
.input:focus {
92
	background-color : #efefef;
93
	color: #000000;
94
}
95
 
96
 
97
.checkbox {
98
	border-top-width: 0px; 
99
	padding-right: 0px; 
100
	padding-left: 0px; 
101
	border-left-width: 0px; 
102
	border-bottom-width: 0px; 
103
	padding-bottom: 0px; 
104
	margin: 3px; 
105
	padding-top: 0px; 
106
	background-color: transparent; 
107
	border-right-width: 0px;
108
}
109
 
110
label {
111
	cursor: pointer;
112
}
113
.radio {
114
	cursor: pointer;
115
	font-size: 9px;
116
	color: #000;
117
	background-color: transparent;
118
	padding-left: 7px;
119
}
120
.submit {
121
	padding-right: 3px; 
122
	margin-top: 6px; 
123
	padding-left: 3px; 
124
	font-weight: normal; 
125
	font-size: 10px; 
126
	margin-bottom: 4px; 
127
	padding-bottom: 1px; 
128
	text-transform: uppercase; 
129
	color: #000; 
130
	padding-top: 1px; 
131
	font-family: Arial, Verdana, sans-serif; 
132
	letter-spacing: 0.1em; 
133
	background-color: #fff;
134
}
135
 
136
 
137
#shoutboxform {
138
    padding-left: 15px;
139
}
140
 
141
</style>
142
 
143
<script type="text/javascript">
144
 
145
function calc(f) {
146
                clipped = false;
147
                maxLength = 160;
148
 
149
                if (f.gcomment.value.length > maxLength) {
150
                f.gcomment.value = f.gcomment.value.substring(0,maxLength);
151
                    charleft = 0;
152
                    clipped = true;
153
                        txtd = "Ndak isa nulis lagi";
154
                } else {
155
                        charleft = maxLength - f.gcomment.value.length;
156
                        txtd = "Tersisa " + charleft + " karakter";
157
                }
158
 
159
       f.quota.value = charleft;
160
                return clipped;
161
}
162
</script>
163
 
164
</head>
165
 
166
<body>
167
 
168
<!-- Begin G-Shout Shoutbox -->
169
 
170
<div style="width:180px;padding-top:20px;padding-right:20px;padding-left:20px;padding-bottom:20px;">
171
<iframe id="shoutbox" name="shoutbox" src="shoutbox.php" frameborder="0" width="100%" scrolling="yes" height="300"> Your browser does not support inline frames or is currently configured not to display inline frames.
172
</iframe>
173
 
174
<p />
175
 
176
<form name="newguest" action="shoutbox.php" method="post" target="shoutbox">
177
 
178
 
179
<input class="input" maxlength="20" size="20" name="gname" value="<?=_DEFAULT_NAME?>" onblur="if(this.value=='') this.value='<?=_DEFAULT_NAME?>';" onfocus="if(this.value=='<?=_DEFAULT_NAME?>') this.value='';" />
180
<br />
181
<input name="gsex" type="hidden" value="" />
182
<label class="radio" for="sex_male">
183
<input class="radio" id="sex_male" name="gsex" type="radio" value="m" /> Male </label>
184
<label class="radio" for="sex_female">
185
<input class="radio" id="sex_female" name="gsex" type="radio" value="f" /> Female </label>
186
<br />
187
<input class="input" size="20" name="guri" value="<?=_DEFAULT_URI?>" onblur="if(this.value=='') this.value='<?=_DEFAULT_URI?>';" onfocus="if(this.value=='<?=_DEFAULT_URI?>') this.value='';" />
188
<br />
189
<input class="input" maxlength="<?=$maxchars?>" size="20" id="gcomment"  name="gcomment" value="<?=_DEFAULT_MESSAGE?>" onblur="if(this.value=='') this.value='<?=_DEFAULT_MESSAGE?>';" onfocus="if(this.value=='<?=_DEFAULT_MESSAGE?>') this.value='';" onkeyup="calc(this.form)" />
190
<br />
191
 
192
<input class="readonly" readonly="readonly" size="4" value="160" name="quota" />
193
 
194
<input type="hidden" value="true" name="formsubmitted" />
195
<br />
196
<input class="submit" type="submit" value="Shout" name="Submit" />
197
<input class="submit" type="reset" value="Reset" name="Reset" />
198
<br />
199
<a title="Tags allowed, Emoticons, HTML Encoding" href="shoutbox.php?help=true" onclick="window.open(this.href, '_blank', 'width=300,height=400,scrollbars=yes,resizable=no,status=yes,screenx=5,screeny=5');return false;" onkeypress="this.onclick()">Help</a>
200
</form>
201
</div>
202
 
203
<!-- End of G-Shout Shoutbox -->
204
 
205
</body>
206
</html>