| <?php |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| ?> |
| |
| <?php |
| if (!empty($errors)) : ?> |
| |
| <div id="posterror" class="block"> |
| <h2><span><?php tpl::lang('Error') ?></span></h2> |
| <div class="box"> |
| <div class="inbox"> |
| <?php articles::errors('<ul>%s</ul>', '<li>%s</li>') ?> |
| </div> |
| </div> |
| </div> |
| <?php endif; |
| ?> |
| |
| <div class="block"> |
| <h2 id="articleSubmit"><span><?php tpl::lang('Submit an article') ?></span></h2> |
| <div class="box"> |
| <form action="<?php articles::submitUrl() ?>" method="post"> |
| <div class="inform"> |
| <fieldset><legend><?php tpl::lang('Submit an article') ?></legend> |
| <div class="infldset txtarea"> |
| |
| <p class="field"><label for="p_title"><?php tpl::lang('Article title') ?></label> |
| <input type="text" name="p_title" id="p_title" class="longinput" size="80" maxlength="70" value="<?php articles::formValue('p_title') ?>" /></p> |
| |
| <p class="field"><label for="p_cat"><?php tpl::lang('Article category') ?></label> |
| <?php articles::selectCat('p_cat') ?></p> |
| |
| <p class="field"><label for="p_content"><?php tpl::lang('Article content') ?></label> |
| <textarea name="p_content" id="p_content" cols="55" rows="10" ><?php articles::formValue('p_content') ?></textarea></p> |
| <?php |
| require_once PT_INC_PATH.'libs/puntoolbar_smilies.php'; |
| $ptb = new puntoolbarSmilies($puntal); |
| echo $ptb->generatePtb('p_content'); |
| ?> |
| </div> |
| </fieldset> |
| </div> |
| <p><input type="hidden" name="form_sent" value="1" /> |
| <input type="submit" name="submit" class="submit" value="<?php tpl::lang('Submit') ?>" /> |
| <input type="hidden" name="ptkn" value="<?php echo tpl::pTkn(); ?>" /></p> |
| </form> |
| </div> |
| </div> |