Blame Extras/Puntal/themes/punbb/calendar/edit_event.php

4c79b5
4c79b5
/***********************************************************************
4c79b5

4c79b5
  Copyright (C) 2005-2007 Vincent Garnier and contributors. All rights
4c79b5
  reserved.
4c79b5
  
4c79b5
  This file is part of Puntal 2.
4c79b5

4c79b5
  Puntal 2 is free software; you can redistribute it and/or modify it
4c79b5
  under the terms of the GNU General Public License as published
4c79b5
  by the Free Software Foundation; either version 2 of the License,
4c79b5
  or (at your option) any later version.
4c79b5

4c79b5
  Puntal 2 is distributed in the hope that it will be useful, but
4c79b5
  WITHOUT ANY WARRANTY; without even the implied warranty of
4c79b5
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4c79b5
  GNU General Public License for more details.
4c79b5

4c79b5
  You should have received a copy of the GNU General Public License
4c79b5
  along with this program; if not, write to the Free Software
4c79b5
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
4c79b5
  MA  02111-1307  USA
4c79b5

4c79b5
************************************************************************/?>
4c79b5
4c79b5
	if (calendar::hasErrors()) : ?>
4c79b5
	
4c79b5
		

4c79b5
		
4c79b5
			
4c79b5
				

4c79b5
				
4c79b5
	
4c79b5
				calendar::error('
    %s
', '
  • %s
  • ');
    4c79b5
    	?>
    
    4c79b5
    				
    
    4c79b5
    			
    
    4c79b5
    		
    
    4c79b5
    	
    
    4c79b5
    
    
    4c79b5
    
    
    4c79b5
    4c79b5
    	if (calendar::onPreview()) : ?>
    
    4c79b5
    
    
    4c79b5
    4c79b5
    	

    4c79b5
    	
    4c79b5
    		
    4c79b5
    			
    4c79b5
    				
    4c79b5
    					
    
    4c79b5
    				
    
    4c79b5
    			
    
    4c79b5
    		
    
    4c79b5
    	
    
    4c79b5
    
    
    4c79b5
    
    
    4c79b5
    
    
    4c79b5
    	
    4c79b5
    		

    4c79b5
    		
    4c79b5
    			<form method="post" action="<?php echo calendar::url('edit') ?>">
    
    4c79b5
    
    
    4c79b5
    				
    4c79b5
    					<fieldset>
    
    4c79b5
    						<legend></legend>
    
    4c79b5
    							

    <label for="req_cal_category"></label>

    4c79b5
    							<select class="category" name="req_cal_category" id="req_cal_category">
    
    4c79b5
    								<option value=""> </option> 
    
    4c79b5
    								%s</option>','<option value="%s">%s</option>'); ?>
    
    4c79b5
    							</select>							
    
    4c79b5
    							

    4c79b5
    					</fieldset>
    
    4c79b5
    											
    
    4c79b5
    						
    
    4c79b5
    				
    4c79b5
    					<fieldset>
    
    4c79b5
    						<legend></legend>
    
    4c79b5
    						
    4c79b5
    							<select name="event_annee" > 
    
    4c79b5
    								%s</option>','<option value="%s">%s</option>','year'); ?>
    
    4c79b5
    							</select>
    
    4c79b5
    							
    
    4c79b5
    							<select name="event_mois" > 
    
    4c79b5
    								%s</option>','<option value="%s">%s</option>','month'); ?>
    
    4c79b5
    							</select>
    
    4c79b5
    							
    
    4c79b5
    							<select name="event_jour" >
    
    4c79b5
    								%s</option>','<option value="%s">%s</option>','day'); ?>	
    
    4c79b5
    							</select>
    
    4c79b5
    						
    
    4c79b5
    						
    
    4c79b5
    					</fieldset>
    
    4c79b5
    				
    
    4c79b5
    				
    4c79b5
    					<fieldset>
    
    4c79b5
    						<legend></legend>
    
    4c79b5
    						
    4c79b5
    
    
    4c79b5
    	
    
    4c79b5
    						<label class="conl">
    <input type="text" name="req_username" value="<?php calendar::formValue('req_username') ?>" size="25" maxlength="25" />
    </label>
    4c79b5
    						<label class="conl">
    <input type="text" name="<?php echo calendar::guestEmailName() ?> ?>" value="<?php calendar::formValue('req_username') ?>" size="50" maxlength="50" />
    </label>
    4c79b5
    						
    4c79b5
    
    
    4c79b5
    						<label>
    <input class="longinput" type="text" name="req_subject" value="<?php calendar::formSubject(); ?>" size="80" maxlength="50" />
    </label>
    4c79b5
    						<label>
    4c79b5
    						<textarea id="req_message" name="req_message" rows="20" cols="95"></textarea>
    </label>
    4c79b5
    4c79b5
    require_once PT_INC_PATH.'libs/puntoolbar_smilies.php'; 
    
    4c79b5
    $ptb = new puntoolbarSmilies($puntal);
    
    4c79b5
    echo $ptb->generatePtb('req_message');
    
    4c79b5
    ?>						
    
    4c79b5
    						
    4c79b5
    							
  • : pun_config['p_message_bbcode'] == '1') ? __('Enabled') : __('Disabled'); ?>
  • 4c79b5
    							
  • : pun_config['p_message_img_tag'] == '1') ? __('Enabled') : __('Disabled'); ?>
  • 4c79b5
    							
  • : pun_config['o_smilies'] == '1') ? __('Enabled') : __('Disabled'); ?>
  • 4c79b5
    						
    
    4c79b5
    						
    
    4c79b5
    					</fieldset>
    
    4c79b5
    									
    
    4c79b5
    
    
    4c79b5
    4c79b5
    // If we have to post new topic
    
    4c79b5
    if (pt_mod_calendar_forum_id > 0) : ?>
    
    4c79b5
    
    
    4c79b5
    			
    4c79b5
    				<fieldset>
    
    4c79b5
    					<legend></legend>
    
    4c79b5
    					
    4c79b5
    						
    4c79b5
    	
    
    4c79b5
    
    
    4c79b5
    		
    
    4c79b5
    						<label><input type="checkbox" name="hide_smilies" value="1" <?php calendar::checked('hide_smilies');?> /></label>
    
    4c79b5
    		
    
    4c79b5
    		
    
    4c79b5
    						<label><input type="checkbox" name="subscribe" value="1" <?php calendar::checked('subscribe'); ?> /> </label>
    
    4c79b5
    		
    
    4c79b5
    	
    
    4c79b5
    						<label><input type="checkbox" name="hide_smilies" value="1" <?php calendar::checked('hide_smilies');?> /> </label>
    
    4c79b5
    		
    
    4c79b5
    						<label><input type="checkbox" name="silent" value="1" checked="checked" /> </label>
    
    4c79b5
    						
    
    4c79b5
    					
    
    4c79b5
    				</fieldset>
    
    4c79b5
    			
    
    4c79b5
    	
    
    4c79b5
    			

    4c79b5
    				<input type="hidden" name="event_id" value="<?php echo calendar::eventId(); ?>" />
    
    4c79b5
    				<input type="hidden" name="form_sent" value="1" />
    
    4c79b5
    				<input type="hidden" name="form_user" value="<?php echo calendar::formUser(); ?>"/>
    
    4c79b5
    				<input type="hidden" name="ptkn" value="<?php echo tpl::pTkn(); ?>" />		
    
    4c79b5
    			<input type="submit" value=" <?php tpl::lang('Validate'); ?> " /><input type="submit" name="preview" value="<?php tpl::lang('Preview') ?>" />
    
    4c79b5
    			

    4c79b5
    		</form>
    
    4c79b5
    	
    
    4c79b5