| <?php |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| ?> |
| |
| <div class="block"> |
| <h2 class="directory"><span><?php tpl::lang('Directory') ?></span></h2> |
| <div class="box"> |
| <div class="inbox"> |
| <?php dir::menu('<ul id="dirMenu">%s</ul>', '<li><a href="%s">%s</a></li>', '<li class="active"><a href="%s">%s</a></li>') ?> |
| <p><?php tpl::lang('This page enables you to submit a website has to add to the directory.') ?></p> |
| </div> |
| </div> |
| </div> |
| |
| <?php |
| if (dir::hasErrors()) : ?> |
| |
| <div id="posterror" class="block"> |
| <h2><span><?php tpl::lang('Error') ?></span></h2> |
| <div class="box"> |
| <div class="inbox"> |
| <?php dir::errors() ?> |
| </div> |
| </div> |
| </div> |
| <?php endif; |
| ?> |
| |
| <div class="block"> |
| <h2 class="addLink"><span><?php tpl::lang('Submit a website') ?></span></h2> |
| <div class="box"> |
| <form action="<?php dir::dirAddUrl(); ?>" method="post"> |
| <div class="inform"> |
| <fieldset><legend><?php tpl::lang('Submit a website') ?></legend> |
| <div class="infldset txtarea"> |
| |
| <p class="field"><label for="l_cat"><?php tpl::lang('Category') ?></label> |
| <?php dir::selectCat('l_cat') ?></p> |
| |
| <p class="field"><label for="l_titre"><?php tpl::lang('Website name') ?></label> |
| <input type="text" class="longinput" size="80" maxlength="255" name="l_titre" id="l_titre" value="<?php dir::formValue('l_titre') ?>" /></p> |
| |
| <p class="field"><label for="l_href"><?php tpl::lang('<acronym title="Uniform Resource Locator">URL</acronym>') ?></label> |
| <input type="text" class="longinput" size="80" maxlength="70" name="l_href" id="l_href" value="<?php dir::formValue('l_href') ?>" /></p> |
| |
| <p class="field"><label for="l_desc"><?php tpl::lang('Description') ?></label> |
| <textarea name="l_desc" id="l_desc" rows="5" cols="55" ><?php dir::formValue('l_desc') ?></textarea></p> |
| <?php |
| require_once PT_INC_PATH.'libs/puntoolbar_smilies.php'; |
| $ptb = new puntoolbarSmilies($puntal); |
| echo $ptb->generatePtb('l_desc'); |
| ?> |
| <p class="field"><label for="l_lang"><?php tpl::lang('Website language') ?></label> |
| <input type="text" size="5" name="l_lang" id="l_lang" maxlength="5" value="<?php dir::formValue('l_lang') ?>" /></p> |
| |
| </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('Submit') ?>" /></p> |
| </form> |
| </div> |
| </div> |