|
|
ef5584 |
|
|
|
ef5584 |
/***********************************************************************
|
|
|
ef5584 |
|
|
|
ef5584 |
Copyright (C) 2005-2007 Vincent Garnier and contributors. All rights
|
|
|
ef5584 |
reserved.
|
|
|
ef5584 |
|
|
|
ef5584 |
This file is part of Puntal 2.
|
|
|
ef5584 |
|
|
|
ef5584 |
Puntal 2 is free software; you can redistribute it and/or modify it
|
|
|
ef5584 |
under the terms of the GNU General Public License as published
|
|
|
ef5584 |
by the Free Software Foundation; either version 2 of the License,
|
|
|
ef5584 |
or (at your option) any later version.
|
|
|
ef5584 |
|
|
|
ef5584 |
Puntal 2 is distributed in the hope that it will be useful, but
|
|
|
ef5584 |
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
ef5584 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
ef5584 |
GNU General Public License for more details.
|
|
|
ef5584 |
|
|
|
ef5584 |
You should have received a copy of the GNU General Public License
|
|
|
ef5584 |
along with this program; if not, write to the Free Software
|
|
|
ef5584 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
ef5584 |
MA 02111-1307 USA
|
|
|
ef5584 |
|
|
|
ef5584 |
************************************************************************/?>
|
|
|
ef5584 |
|
|
|
ef5584 |
if (calendar::hasErrors()) : ?>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
calendar::error('', '%s');
|
|
|
ef5584 |
?>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
if (calendar::onPreview()) : ?>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<form method="post" action="<?php echo calendar::url('edit') ?>">
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<fieldset>
|
|
|
ef5584 |
<legend></legend>
|
|
|
ef5584 |
<label for="req_cal_category"></label>
|
|
|
ef5584 |
<select class="category" name="req_cal_category" id="req_cal_category">
|
|
|
ef5584 |
<option value=""> </option>
|
|
|
ef5584 |
%s</option>','<option value="%s">%s</option>'); ?>
|
|
|
ef5584 |
</select>
|
|
|
ef5584 |
|
|
|
ef5584 |
</fieldset>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<fieldset>
|
|
|
ef5584 |
<legend></legend>
|
|
|
ef5584 |
|
|
|
ef5584 |
<select name="event_annee" >
|
|
|
ef5584 |
%s</option>','<option value="%s">%s</option>','year'); ?>
|
|
|
ef5584 |
</select>
|
|
|
ef5584 |
|
|
|
ef5584 |
<select name="event_mois" >
|
|
|
ef5584 |
%s</option>','<option value="%s">%s</option>','month'); ?>
|
|
|
ef5584 |
</select>
|
|
|
ef5584 |
|
|
|
ef5584 |
<select name="event_jour" >
|
|
|
ef5584 |
%s</option>','<option value="%s">%s</option>','day'); ?>
|
|
|
ef5584 |
</select>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
</fieldset>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<fieldset>
|
|
|
ef5584 |
<legend></legend>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<label class="conl"> <input type="text" name="req_username" value="<?php calendar::formValue('req_username') ?>" size="25" maxlength="25" /> </label>
|
|
|
ef5584 |
<label class="conl"> <input type="text" name="<?php echo calendar::guestEmailName() ?> ?>" value="<?php calendar::formValue('req_username') ?>" size="50" maxlength="50" /> </label>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<label> <input class="longinput" type="text" name="req_subject" value="<?php calendar::formSubject(); ?>" size="80" maxlength="50" /> </label>
|
|
|
ef5584 |
<label>
|
|
|
ef5584 |
<textarea id="req_message" name="req_message" rows="20" cols="95"></textarea> </label>
|
|
|
ef5584 |
|
|
|
ef5584 |
require_once PT_INC_PATH.'libs/puntoolbar_smilies.php';
|
|
|
ef5584 |
$ptb = new puntoolbarSmilies($puntal);
|
|
|
ef5584 |
echo $ptb->generatePtb('req_message');
|
|
|
ef5584 |
?>
|
|
|
ef5584 |
|
|
|
ef5584 |
: pun_config['p_message_bbcode'] == '1') ? __('Enabled') : __('Disabled'); ?>
|
|
|
ef5584 |
: pun_config['p_message_img_tag'] == '1') ? __('Enabled') : __('Disabled'); ?>
|
|
|
ef5584 |
: pun_config['o_smilies'] == '1') ? __('Enabled') : __('Disabled'); ?>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
</fieldset>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
// If we have to post new topic
|
|
|
ef5584 |
if (pt_mod_calendar_forum_id > 0) : ?>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<fieldset>
|
|
|
ef5584 |
<legend></legend>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<label><input type="checkbox" name="hide_smilies" value="1" <?php calendar::checked('hide_smilies');?> /></label>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<label><input type="checkbox" name="subscribe" value="1" <?php calendar::checked('subscribe'); ?> /> </label>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<label><input type="checkbox" name="hide_smilies" value="1" <?php calendar::checked('hide_smilies');?> /> </label>
|
|
|
ef5584 |
|
|
|
ef5584 |
<label><input type="checkbox" name="silent" value="1" checked="checked" /> </label>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
</fieldset>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<input type="hidden" name="event_id" value="<?php echo calendar::eventId(); ?>" />
|
|
|
ef5584 |
<input type="hidden" name="form_sent" value="1" />
|
|
|
ef5584 |
<input type="hidden" name="form_user" value="<?php echo calendar::formUser(); ?>"/>
|
|
|
ef5584 |
<input type="hidden" name="ptkn" value="<?php echo tpl::pTkn(); ?>" />
|
|
|
ef5584 |
<input type="submit" value=" <?php tpl::lang('Validate'); ?> " /><input type="submit" name="preview" value="<?php tpl::lang('Preview') ?>" />
|
|
|
ef5584 |
|
|
|
ef5584 |
</form>
|
|
|
ef5584 |
|
|
|
ef5584 |
|