<script language="JavaScript" type="text/javascript">
<!--
var topic_submit = false;
function chkFormular() {
if(document.getElementById('topicname').value == "") {
alert("%enter_topic%");
document.getElementById('topicname').focus();
return false;
}
if(document.getElementById('message').value == "") {
alert("%enter_text%");
document.getElementById('message').focus();
return false;
}
if(!validbbcode(document.getElementById('message').value)){
return false;
}
if(!validbbcode(document.getElementById('fp_title').value)){
return false;
}
if(!validbbcode(document.getElementById('fp_options').value)){
return false;
}
if(document.getElementById('fp_title').value == "" && document.getElementById('fp_options').value == "") {
return true;
}
else {
if(document.getElementById('fp_title').value == "") {
alert("%fp_enter_title%");
document.getElementById('fp_title').focus();
return false;
}
if(document.getElementById('fp_options').value == "") {
alert("%fp_enter_options%");
document.getElementById('fp_options').focus();
return false;
}
}
if(topic_submit == true){
return false;
}
topic_submit = true;
}
function ChangeFormAction() {
if(document.getElementById('preview').checked == true) {
document.post.action = "index.php?site=forum&addtopic=true";
}
else {
document.post.action = "forum.php";
}
}
-->
</script>
<form action="forum.php" method="post" id="post" name="post" onsubmit="return chkFormular()">
<table width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor="$border">
<tr>
<td class="title" align="center" bgcolor="$bghead">%new_topic%</td>
</tr>
<tr><td bgcolor="$pagebg"></td></tr>
<tr>
<td bgcolor="$bg1">
<table width="100%" align="center" cellpadding="2" cellspacing="0">
<tr>
<td colspan="2">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td colspan="15"><b>%topic_icon%:</b></td>
</tr>
<tr><td colspan="8"></td></tr>
<tr bgcolor="$bg1">
<td><input type="radio" class="input" name="icon" value="ausrufezeichen.gif" />
<img src="images/icons/topicicons/ausrufezeichen.gif" width="15" height="15" alt="" /></td>
<td><input type="radio" class="input" name="icon" value="biggrin.gif" />
<img src="images/icons/topicicons/biggrin.gif" width="15" height="15" alt="" /></td>
<td><input type="radio" class="input" name="icon" value="boese.gif" />
<img src="images/icons/topicicons/boese.gif" width="15" height="15" alt="" /></td>
<td><input type="radio" class="input" name="icon" value="bored.gif" />
<img src="images/icons/topicicons/bored.gif" width="15" height="15" alt="" /></td>
<td><input type="radio" class="input" name="icon" value="cool.gif" />
<img src="images/icons/topicicons/cool.gif" width="15" height="15" alt="" /></td>
<td><input type="radio" class="input" name="icon" value="eek.gif" />
<img src="images/icons/topicicons/eek.gif" width="15" height="15" alt="" /></td>
<td><input type="radio" class="input" name="icon" value="frage.gif" />
<img src="images/icons/topicicons/frage.gif" width="15" height="15" alt="" /></td>
<td><input type="radio" class="input" name="icon" value="frown.gif" />
<img src="images/icons/topicicons/frown.gif" width="15" height="15" alt="" /></td>
</tr>
<tr bgcolor="$bg1">
<td><input type="radio" class="input" name="icon" value="lampe.gif" />
<img src="images/icons/topicicons/lampe.gif" width="15" height="15" alt="" /></td>
<td><input type="radio" class="input" name="icon" value="mad.gif" />
<img src="images/icons/topicicons/mad.gif" width="15" height="15" alt="" /></td>
<td><input type="radio" class="input" name="icon" value="pfeil.gif" />
<img src="images/icons/topicicons/pfeil.gif" width="15" height="15" alt="" /></td>
<td><input type="radio" class="input" name="icon" value="smile.gif" />
<img src="images/icons/topicicons/smile.gif" width="15" height="15" alt="" /></td>
<td><input type="radio" class="input" name="icon" value="text.gif" />
<img src="images/icons/topicicons/text.gif" width="15" height="15" alt="" /></td>
<td><input type="radio" class="input" name="icon" value="thumb_down.gif" />
<img src="images/icons/topicicons/thumb_down.gif" width="15" height="15" alt="" /></td>
<td><input type="radio" class="input" name="icon" value="thumb_up.gif" />
<img src="images/icons/topicicons/thumb_up.gif" width="15" height="15" alt="" /></td>
<td><input type="radio" class="input" name="icon" value="wink.gif" />
<img src="images/icons/topicicons/wink.gif" width="15" height="15" alt="" /></td>
</tr>
<tr bgcolor="$bg1">
<td colspan="4"><input type="radio" class="input" name="icon" value="0" checked='checked' /> %no_icon%</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><b>%subject%:</b><br /><input name="topicname" type="text" id="topicname" style="width:99%;" value="$topicname" size="45" /></td>
</tr>
<tr>
<td colspan="2">$addbbcode</td>
</tr>
<tr>
<td colspan="2"><textarea name="message" id="message" rows="10" cols="35" style="width:99%;">$message</textarea></td>
</tr>
<tr>
<td colspan="2"><small><b>%options%:</b> • %html_off% • %bbcode_on% • %smilies_on%</small></td>
</tr>
<tr>
<td colspan="2"><input class="input" type="checkbox" name="notify" $notify value="1" /> %notify%<br />
<input class="input" type="checkbox" name="preview" id="preview" value="1" onclick="ChangeFormAction()" /> %preview% $chk_sticky
</td>
</tr>
<tr><td colspan="2"><br /></td></tr>
<tr>
<td>
<tr>
<table width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor="$border">
<tr><td class="title" align="center" bgcolor="$bghead">%fp_poll_creation%</td></tr>
<tr><td bgcolor="$pagebg"></td></tr>
</tr>
<tr>
<td bgcolor="$bg1">
<table width="100%" align="center" cellpadding="2" cellspacing="0" >
<td align="left" width="40%"><strong>%fp_title%:</strong></td>
<td><input name="fp_title" id="fp_title" type="text" size="60" maxlength="75" /></td>
</tr>
<tr>
<td align="left" valign="top"><strong>%fp_ending_time%:</strong><br/>hh:mm DD.MM.YYYY</td>
<td>
<select name="fp_hour" id="fp_hour">$fp_hour</select>
:
<select name="fp_minute" id="fp_minute">$fp_minute</select>
%fp_on%
<select name="fp_day" id="fp_day">$fp_day</select>
<select name="fp_month" id="fp_month">$fp_month</select>
<select name="fp_year" id="fp_year">$fp_year</select><br/>
</td>
</tr>
<tr>
<td align="left" valign="top"><strong>%fp_options%:</strong><br/>%fp_options_desc%<br/>%fp_enter_options%</td>
<td>
<textarea name="fp_options" id="fp_options" rows="5" cols="10" style="width:99%;"></textarea>
</td>
</tr>
</table>
</td>
<td align="right" " valign="bottom" bgcolor="$bg1">
<input type="hidden" name="board" value="$board" />
<input type="hidden" name="userID" value="$userID" />
<input type="hidden" name="addtopic" value="true" /></td>
<tr><td align="right" " valign="bottom" bgcolor="$bg1">
<input name="newtopic" type="submit" value="%post_new_topic%" /></tr></td>
</tr>
</table>
</td>
</tr>
</table>
</form> |