| <?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 lexique::errors('<ul>%s</ul>', '<li>%s</li>') ?> |
| </div> |
| </div> |
| </div> |
| <?php endif; |
| ?> |
| |
| <div class="blockform"> |
| <h2 class="lexiconAdd"><span><?php tpl::lang('Add a word') ?></span></h2> |
| <div class="box"> |
| <form action="<?php lexique::url('add') ?>" method="post"> |
| <div class="inform"> |
| <fieldset><legend><?php tpl::lang('Add a word') ?></legend> |
| <div class="infldset txtarea"> |
| <p class="field"><label for="p_mot"><?php tpl::lang('Word') ?></label> |
| <input type="text" name="p_mot" id="p_mot" class="longinput" size="80" maxlength="70" value="<?php lexique::formValue('p_mot') ?>" /></p> |
| <p class="field"><label for="p_def"><?php tpl::lang('Definition') ?></label> |
| <textarea name="p_def" id="p_def" rows="5" cols="55" ><?php lexique::formValue('p_def') ?></textarea></p> |
| <?php |
| require_once PT_INC_PATH.'libs/puntoolbar_smilies.php'; |
| $ptb = new puntoolbarSmilies($puntal); |
| echo $ptb->generatePtb('p_def'); |
| ?> |
| <p class="field"><label for="p_ex"><?php tpl::lang('Example') ?></label> |
| <textarea name="p_ex" id="p_ex" rows="5" cols="55" ><?php lexique::formValue('p_ex') ?></textarea></p> |
| <?php |
| require_once PT_INC_PATH.'libs/puntoolbar_smilies.php'; |
| $ptb = new puntoolbarSmilies($puntal); |
| echo $ptb->generatePtb('p_ex'); |
| ?> |
| </div> |
| </fieldset> |
| </div> |
| <p> |
| <input type="hidden" name="form_sent" value="1" /> |
| <input type="hidden" name="ptkn" value="<?php echo tpl::pTkn(); ?>" /> |
| <input type="submit" name="submit" class="submit" value="<?php tpl::lang('Add') ?>" /> |
| <a href="javascript:history.go(-1)"><?php tpl::lang('Go back') ?></a></p> |
| </form> |
| </div> |
| </div> |