Bootstrap theme and form validation on message entry.

This commit is contained in:
Andrew Pamment
2018-01-25 17:01:19 +10:00
parent 2fcf6305c0
commit 14b77790a6
17 changed files with 1713 additions and 9 deletions

17
dist/www/header.tpl vendored
View File

@@ -3,6 +3,23 @@
<TITLE>Magicka BBS</TITLE>
<link rel="stylesheet" type="text/css" href="@@WWW_URL@@static/style.css">
<meta charset="utf-8">
<script language='javascript'>
function validate () {
if(document.getElementById('recipient').value=="") {
alert("To can not be empty.");
return false;
}
if(document.getElementById('subject').value=="") {
alert("Subject can not be empty");
return false;
}
if(document.getElementById('body').value=="") {
alert("Can't send an empty message!");
return false;
}
return true;
}
</script>
</HEAD>
<BODY>
<div class="header">