websiteWebsite
codingteam CodingTeam
A free forge, lightweight and extensible.

 

Browse the code

Revision log Information on the revision
Revision: 511 (differences)
Author: xbright
Log message: * Enhanced roadmap
Change revision:
<h1><?=i18n('Forum');?></h1>
 
<? if ($_action == 'add'): ?>
  <h2><?=i18n('Post a new topic');?></h2>
<? else: ?>
  <h2><?=i18n('Edit a topic');?></h2>
<? endif; ?>
 
<? if (is_string($form_error)): ?>
  <div class="box error"><?=$form_error;?></div>
<? endif; ?>
 
<form action="<?=getURLbyTags($this->page);?>" method="post" id="form">
  <p>
    <strong><?=i18n('Title:');?></strong><br />
    <input type="text" name="title" style="width: 300px;" value="<?=$form_title;?>" />
    <br /><br />
 
    <strong><?=i18n('Category:');?></strong><br />
    <select name="cat" style="width: 305px;">
      <? foreach ($_categories as $catkey => $catvalue): ?>
        <? if ($form_cat == $catkey): ?>
          <option value="<?=$catkey;?>" selected="selected"><?=$catvalue;?></option>
        <? else: ?>
          <option value="<?=$catkey;?>"><?=$catvalue;?></option>
        <? endif; ?>
      <? endforeach; ?>
    </select>
    <br /><br />
 
    <strong><?=i18n('Message:');?></strong><br />
    <?=$textview;?>
  </p>
 
  <? if (!$is_logged): ?>
    <div style="margin: 20px;width: 400px;padding-left: 15px;" class="border_left">
      <strong><?=i18n('Captcha security:');?></strong><br />
      <?=i18n('In order to check you are not a robot, please answer to that simple question:');?><br />
 
      <div class="justify">
        <?=$captcha[0];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 
        <input type="text" style="width:40px;" maxlength="255" name="<?=$_SESSION['captcha'];?>" value="" />
        <input type="text" name="captcha_" value="<?=$captcha[1];?>" class="captcha" />
      </div><br />
 
      <strong><?=i18n('Nickname:');?></strong><br />
      <input type="text" style="width: 98%;" maxlength="255" name="nickname" value="<?=$form_nick;?>" />
    </div>
  <? endif; ?>
 
  <p>
    <br />
    <input type="submit" class="submit" value="<?=i18n('Post');?>" />
  </p>
</form>