?
Path : /home/admin/public_html/old/board/components/com_kunena/template/default/announcement/ |
Current File : /home/admin/public_html/old/board/components/com_kunena/template/default/announcement/edit.php |
<?php /** * @version $Id: edit.php 4336 2011-01-31 06:05:12Z severdia $ * Kunena Component * @package Kunena * * @Copyright (C) 2008 - 2011 Kunena Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @link http://www.kunena.org **/ // Dont allow direct linking defined( '_JEXEC' ) or die(); $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_KUNENA_ANN_ANNOUNCEMENTS') . ' - ' . $this->config->board_title); JHTML::_('behavior.formvalidation'); $document->addScriptDeclaration('// <![CDATA[ function myValidate(f) { if (document.formvalidator.isValid(f)) { return true; } return false; } // ]]>'); ?> <div class="kblock kannouncement"> <div class="kheader"> <h2><?php echo JText::_('COM_KUNENA_ANN_ANNOUNCEMENTS'); ?>: <?php echo $this->id ? JText::_('COM_KUNENA_ANN_EDIT') : JText::_('COM_KUNENA_ANN_ADD'); ?></h2> </div> <div class="kcontainer" id="kannouncement"> <div class="kactions"><?php echo CKunenaLink::GetAnnouncementLink('show',NULL, JText::_('COM_KUNENA_ANN_CPANEL'), JText::_('COM_KUNENA_ANN_CPANEL')); ?></div> <div class="kbody"> <div class="kanndesc"> <form class="form-validate" action="<?php echo CKunenaLink::GetAnnouncementURL('doedit'); ?>" method="post" name="editform" onsubmit="return myValidate(this);"> <?php echo JHTML::_( 'form.token' ); ?> <div> <label> <?php echo JText::_('COM_KUNENA_ANN_TITLE'); ?>: <input class="klarge required" type="text" name="title" value="<?php echo $this->escape($this->announcement->title) ;?>"/> </label> <label> <?php echo JText::_('COM_KUNENA_ANN_SORTTEXT'); ?>: <textarea class="ksmall required" rows="80" cols="4" name="sdescription"><?php echo $this->escape($this->announcement->sdescription); ?></textarea> </label> </div> <div> <label> <?php echo JText::_('COM_KUNENA_ANN_LONGTEXT'); ?>: <textarea class="klarge" rows="80" cols="16" name="description"><?php echo $this->escape($this->announcement->description); ?></textarea> </label> </div> <div> <label> <?php echo JText::_('COM_KUNENA_ANN_DATE'); ?>: <?php echo JHTML::_('calendar', $this->escape($this->announcement->created), 'created', 'addcreated');?> </label> <label> <?php echo JText::_('COM_KUNENA_ANN_SHOWDATE'); ?>: <select name="showdate"> <option value="1" <?php echo ($this->announcement->showdate == 1 ? 'selected="selected"' : ''); ?>><?php echo JText::_('COM_KUNENA_ANN_YES'); ?></option> <option value="0" <?php echo ($this->announcement->showdate == 0 ? 'selected="selected"' : ''); ?>><?php echo JText::_('COM_KUNENA_ANN_NO'); ?></option> </select> </label> <label> <?php echo JText::_('COM_KUNENA_ANN_PUBLISH'); ?>: <select name="published"> <option value="1" <?php echo ($this->announcement->published == 1 ? 'selected="selected"' : ''); ?>><?php echo JText::_('COM_KUNENA_ANN_YES'); ?></option> <option value="0" <?php echo ($this->announcement->published == 0 ? 'selected="selected"' : ''); ?>><?php echo JText::_('COM_KUNENA_ANN_NO'); ?></option> </select> </label> </div> <input type='hidden' name="do" value="doedit"/> <input type='hidden' name="id" value="<?php echo intval($this->announcement->id) ;?>"/> <input name="submit" class="kbutton" type="submit" value="<?php echo JText::_('COM_KUNENA_ANN_SAVE'); ?>"/> </form> </div> </div> </div> </div>