-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost_form.php
More file actions
59 lines (58 loc) · 2.69 KB
/
post_form.php
File metadata and controls
59 lines (58 loc) · 2.69 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
<? include ('./config.php');?>
<script language="JavaScript" type="text/javascript">
var fileName = 'post_form.php';
function subm(f){
if (f.nick.value.length>3 && f.message.value.length>3 && f.message.value!='message' && f.nick.value!='nick'){
f.submit();
f.message.value=' ';
} else {
alert('Íå âñå ïîëÿ çàïîëíåíû!');
}
return false;
}
function show_smiles(){ // ïîêàç ñìàéëèêîâ
if (document.post_form.message.value=='message') { document.post_form.message.value=' '; }
var sm = window.open('./viewsmiles.htm', '', 'scrollbars=1, resizable=0, width=300, height=350, left=100, top=100');}
function show_help(w,h){ // ïîêàçàòü Ñïðàâêó ÷àòà
var help = window.open('./viewhelp.htm', '', 'scrollbars=1, resizable=1, width='+w+', height='+h+', left=100, top=100');}
</script>
<html>
<head>
<META content="text/html; charset=windows-1251" http-equiv=Content-Type>
<meta name='author' content='Copyright (c) ÒåõíÎêðàÒ aka Êàìåíñêèé Êèðèëë, 2006'>
<title>Tot Message Box Posting Form</title>
<link href="./skins/<?=$tomb[skin];?>/chat.css" rel="StyleSheet" type="text/css">
</head>
<body>
<table class="form"><tr height=30><td>
<form action="chat.php" target="chat" method="post" name="post_form" id="post_form" onsubmit="/*this.submit();this.message.value='';*/return subm(this);">
<input type=text maxlength="20" class="nick" name="nick" id="nick" size=10 value="nick" onFocus="if(this.value=='nick') this.value='';" onBlur="if (this.value.length<2){this.value=this.className;}">
<input type=text maxlength="<?=$tomb[max_str];?>" class="message" name="message" id="message" size="25" value="message" onFocus="if(this.value=='message') this.value='';" onBlur="if (this.value.length<1){this.value=this.className;}">
<input type=submit value="OK" class="submit"><br>
<div align=center>
<a href="javascript:show_smiles();">Ïîêàçàòü ñìàéëèêè</a>
<a href="javascript:show_help(300,400);">Ïîìîùü</a>
</div>
</form>
</td></tr>
</table>
<script language="JavaScript" type="text/javascript">
<!--
// FastBB :: àâòîìàòè÷åñêîå äîáàâëåíèå íèêà àâòîðèçîâàííîãî ó÷àñòíèêà â ïîëå ââîäà
var nick = document.post_form.nick.value;
if (null != window.opener){
if (null != window.opener.nick){
if(window.opener.nick.length>=2){ nick = window.opener.nick;
}
} else { nick = 'nick';}
} else if(null != window.parent) {
if(null != window.parent.nick){
if(window.parent.nick.length>=2){ nick = window.parent.nick;
}
} else { nick = 'nick';}
} else { nick = 'nick';}
//-->
</script>
</body>
</html>