Location: PHPKode > projects > Viscacha > templates/1/addreply.html
<?php if ($_GET['action'] == 'preview') { ?>
<div class="border">
<h3><img src="<?php echo $tpl->img('addreply'); ?>" alt="" /> <?php echo $lang->phrase('preview_title'); ?></h3>
<div class="bbody">
	<span class='stext'><?php echo $lang->phrase('showtopic_subject'); ?> <strong><?php echo $data['topic']; ?></strong></span>
	<hr />
	<?php echo $data['formatted_comment']; ?>
</div>
</div>
<br class="minibr" />
<?php } else { if ($last['message_active'] == '1') { ?>
<div class="border">
<h3><img id="img_rules_<?php echo $info['board']; ?>" alt="switch" src="<?php echo $tpl->img('minus'); ?>" title="<?php echo $lang->phrase('box_collapse'); ?>" /> <?php echo $last['message_title']; ?></h3>
<div id="part_rules_<?php echo $info['board']; ?>" class="bbody"><?php echo $last['message_text']; ?></div>
</div>
<br class="minibr" />
<?php }} ?>
<form method="post" action="addreply.php?action=save&amp;fid=<?php echo $fid.SID2URL_x; ?>">
<div class="border">
<h3><img src="<?php echo $tpl->img('addreply'); ?>" alt="" /> <?php echo $lang->phrase('addreply_title'); ?></h3>
<div class="bbody">
<?php if (!$my->vlogin) { ?>
<label for="name"><?php echo $lang->phrase('name'); ?></label>
<input class="label" type="text" name="name" id="name" size="40" tabindex="1" value="<?php echo $data['name']; ?>" />
<br class="newinput" /><hr class="formsep" />
<label for="email"><?php echo $lang->phrase('email'); ?></label>
<input class="label" type="text" name="email" id="email" size="40" tabindex="2" value="<?php echo $data['email']; ?>" />
<br class="newinput" /><hr class="formsep" />
<?php if ($captcha !== null) { ?>
<label for="letter">
	<?php echo $lang->phrase('veriword_check'); ?><br />
	<span class="stext"><?php echo $lang->phrase('register_veriword'); ?></span>
</label>
<div class="label">
	<?php echo $captcha->generateCode(3); ?>
</div>
<br class="newinput" /><hr class="formsep" />
<?php } } else { ?>
<label><?php echo $lang->phrase('logged_in_as'); ?></label>
<span class="iefix_left"><?php echo $my->name; ?> [<a href="log.php?action=logout<?php echo SID2URL_x; ?>"><?php echo $lang->phrase('logout'); ?></a>]</span>
<br class="newinput" /><hr class="formsep" />
<?php } if ($last['message_active'] == '2') { ?>
<label><?php echo $lang->phrase('board_rules'); ?>:</label>
<a class="label" href="misc.php?action=board_rules&amp;id=<?php echo $info['board'].SID2URL_x; ?>" target="_blank"><?php echo $last['message_title']; ?></a>
<br class="newinput" /><hr class="formsep" />
<?php } ?>
<label for="topic"><?php echo $lang->phrase('title'); ?></label>
<input class="label" type="text" name="topic" id="topic" size="40" tabindex="5" value="<?php echo $data['topic']; ?>" />
<br class="newinput" /><hr class="formsep" />
<label for="comment"><?php echo $lang->phrase('post'); ?></label>
<div class="label textright"><a href="misc.php?action=bbhelp<?php echo SID2URL_x; ?>" target="_blank"><img src="<?php echo $tpl->img('help'); ?>" alt="" /> <strong><?php echo $lang->phrase('bbcode_help'); ?></strong></a></div>
<br class="newinput" /><br class="minibr" />
<?php echo $bbcode->getEditorArea('comment', $data['comment'], 'cols="75" rows="9" tabindex="6"'); ?>
<hr class="formsep" />
<label for="dosmileys"><?php echo $lang->phrase('post_settings'); ?></label>
<div class="label">
	<input type="checkbox" name="dosmileys" tabindex="7" value="1"<?php echo iif($data['dosmileys'] == 1, ' checked="checked"'); ?> /> <?php echo $lang->phrase('post_settings_smileys'); ?><br />
	<input type="checkbox" name="dowords" tabindex="8" value="1"<?php echo iif($data['dowords'] == 1, ' checked="checked"'); ?> /> <?php echo $lang->phrase('post_settings_words'); ?>
</div>
<br class="newinput" />
<?php
if ($p_upload == 1) { ?>
<hr class="formsep" />
<label><?php echo $lang->phrase('attachments'); ?>&nbsp;</label>
<div class="label">
	<a href="attachments.php?type=addreply&amp;id=<?php echo $_GET['id'].SID2URL_x; ?>" tabindex="9" target="adduploads" onclick="adduploads(this);"><strong><?php echo $lang->phrase('manage_uploads'); ?></strong></a><br />
	<span class="stext"><?php echo $lang->phrase('max_uploads'); ?></span>
</div>
<br class="newinput" />
<?php } if ($my->vlogin) { ?>
<hr class="formsep" />
<label for="digest"><?php echo $lang->phrase('topic_abo'); ?></label>
<select class="label" name="digest" id="digest" tabindex="10">
	<option value="0"<?php echo iif($data['digest'] == 0, ' selected="selected"'); ?>><?php echo $lang->phrase('digest_none'); ?></option>
	<option value="1"<?php echo iif($data['digest'] == 1, ' selected="selected"'); ?>><?php echo $lang->phrase('digest_s'); ?></option>
	<option value="2"<?php echo iif($data['digest'] == 2, ' selected="selected"'); ?>><?php echo $lang->phrase('digest_d'); ?></option>
	<option value="3"<?php echo iif($data['digest'] == 3, ' selected="selected"'); ?>><?php echo $lang->phrase('digest_w'); ?></option>
</select>
<br class="newinput" />
<?php } ?>
<br class="iefix_br" />
</div>
<div class="bfoot center">
  <input type="submit" accesskey="s" tabindex="11" name="Submit" value="<?php echo $lang->phrase('submit_form'); ?>" />
  <input type="submit" accesskey="p" tabindex="12" name="Preview" value="<?php echo $lang->phrase('preview_form'); ?>" />
  <input type="hidden" name="id" value="<?php echo $_GET['id']; ?>" />
</div>
</div>
<?php if ($my->mp[0] == 1 && $info['status'] == 0) { ?>
<br class="minibr" />
<div class="border">
<h3><?php echo $lang->phrase('admin_options'); ?></h3>
<div class="bbody">
<label for="close"><?php echo $lang->phrase('admin_addpost_close'); ?></label>
<div class="label"><input type="checkbox" id="close" name="close" value="1" tabindex="13" /> <?php echo $lang->phrase('admin_addpost_close_desc'); ?></div>
<br class="newinput" /><br class="iefix_br" />
</div>
</div>
<?php } ?>
</form>
Return current item: Viscacha