|
|
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 |
%s', '%s'); ?>
|
|
|
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 |
|
|
|
ef5584 |
<form action="<?php calendar::url('add') ?>" method="post">
|
|
|
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>'); ?>
|
|
|
ef5584 |
</select>
|
|
|
ef5584 |
|
|
|
ef5584 |
</fieldset>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<fieldset>
|
|
|
ef5584 |
<legend></legend>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<select class="calendar" name="event_annee" tabindex="<?php echo calendar::curIndex();?>">
|
|
|
ef5584 |
%s</option>','<option value="%s">%s</option>','year'); ?>
|
|
|
ef5584 |
</select>
|
|
|
ef5584 |
|
|
|
ef5584 |
<select class="calendar" name="event_mois" tabindex="<?php echo calendar::curIndex(); ?>">
|
|
|
ef5584 |
%s</option>','<option value="%s">%s</option>','month'); ?>
|
|
|
ef5584 |
</select>
|
|
|
ef5584 |
|
|
|
ef5584 |
<select class="calendar" name="event_jour" tabindex="<?php echo calendar::curIndex(); ?>">
|
|
|
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 |
<label for="req_username"></label>
|
|
|
ef5584 |
<input type="text" name="req_username" id="req_username" class="longinput" size="80" maxlength="70" value="" tabindex="<?php echo calendar::curIndex(); ?>" />
|
|
|
ef5584 |
|
|
|
ef5584 |
<label for="req_email"></label>
|
|
|
ef5584 |
<input type="text" name="req_email" id="req_email" class="longinput" size="80" maxlength="70" value="" tabindex="<?php echo calendar::curIndex(); ?>" />
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<label for="req_category"></label>
|
|
|
ef5584 |
<select class="category" name="req_category" id="req_category">
|
|
|
ef5584 |
<option value=""> </option>
|
|
|
ef5584 |
%s</option>','<option value="%s">%s</option>'); ?>
|
|
|
ef5584 |
</select>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<label for="req_subject"></label>
|
|
|
ef5584 |
<input type="text" name="req_subject" id="req_subject" class="longinput" size="80" maxlength="70" value="<?php calendar::formSubject(); ?>" tabindex="<?php echo calendar::curIndex(); ?>" />
|
|
|
ef5584 |
|
|
|
ef5584 |
<label for="req_message"></label>
|
|
|
ef5584 |
<textarea name="req_message" id="req_message" cols="55" rows="10" tabindex="<?php echo calendar::curIndex(); ?>"></textarea>
|
|
|
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 |
// 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 |
<label><input type="checkbox" name="hide_smilies" value="1" tabindex="<?php calendar::curIndex(); ?>" <?php calendar::checked('hide_smilies');?> /> </label>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<label><input type="checkbox" name="subscribe" value="1" tabindex="<?php calendar::curIndex(); ?>" <?php calendar::checked('subscribe'); ?> /> </label>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
</fieldset>
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
|
|
|
ef5584 |
<input type="hidden" name="form_sent" value="1" />
|
|
|
ef5584 |
<input type="hidden" name="form_user" value="<?php echo calendar::formUser(); ?>"/>
|
|
|
ef5584 |
<input class="submit" type="submit" value=" <?php tpl::lang('Add'); ?> " />
|
|
|
ef5584 |
<input type="hidden" name="ptkn" value="<?php echo tpl::pTkn(); ?>" />
|
|
|
ef5584 |
<input class="submit" type="submit" name="preview" value="<?php tpl::lang('Preview') ?>" />
|
|
|
ef5584 |
</form>
|
|
|
ef5584 |
|
|
|
ef5584 |
|