View file write.html

File size: 1.62Kb
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<!- (с) Im !eee  ->
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"/>
<title>Гостевая книга :: написать</title>
<link rel="stylesheet"  type="text/css" href="style.css"/>
<script type="text/javascript">
function send(aut,msg,tr){
	if(!aut||!msg){
		alert("Вы не заполнили поля ввода!");
		return;
	}
	scri=document.createElement("script");
	scri.type="text/javascript";
	scri.charset="UTF-8";
	scri.src=/*[path]*/'msg_writer.php'/*[/path]*/+"?a="+escape(aut)+"&m="+escape(msg)+"&tr="+(+tr)+"&"+Math.ceil(Math.random()*10000);
	document.getElementsByTagName('head')[0].appendChild(scri);
}
</script>
</head>
<body>
<form name="f">
<span class="inpHead">Имя</span><br/>
<input type="text" name="a" class="usInp"/><br/>
<span class="inpHead">Сообщение</span>
<br/><textarea name="m" rows="10" class="usInp"></textarea><br/>
<span class="inpHead">Транслит</span> <input name="t" type="checkbox"/>
<br/>
<input type="button" value="Написать"
onclick="send(document.f.a.value, document.f.m.value, document.f.t.checked);"/>
<input type="button" value="Не писать" onclick="window.location.href='index.html';"/>
</form>
	<p><b>BB коды:</b><br/>[b]text[/b] = <b>text</b><br/>
		[u]text[/u] = <u>text</u><br/>
		[i]text[/i] = <i>text</i>
	</p>
<hr size="2"/>
<p align="center">
<!-/*[main]*/-><a href="/">На главную</a>
</p>
</body>
</html>