<?php
global $bp, $wpdb;

$required = 'required="required"';
?>
    <h4>
        <?php _e('Base event details', 'buddypress') ?>
    </h4>
    
    <div id="custom-event-name">
        <label for="event-name">
            <?php _e('* Event Name', 'buddypress') ?>
        </label>
        <input type="text" name="event-name" id="event-name" size ="26" <?php echo $required; ?> />
    </div>
    
    <div id="custom-event-classification">
        <label for="event-etype">
            <?php _e('* Event classification', 'buddypress') ?>
        </label>

        <select name="event-etype" id="event-etype" size = "1">
            <option value="Reuniones">
                <?php _e('Reuniones', 'buddypress'); ?>
            </option> 
            <option value="Espectáculos y Conciertos">
                <?php _e('Espectáculos y Conciertos', 'buddypress'); ?>
            </option>
            <option value="Fiestas">
                <?php _e('Fiestas', 'buddypress'); ?>
            </option>
            <option value="Escapadas">
                <?php _e('Escapadas', 'buddypress'); ?>
            </option>
            <option value="Congreso">
                <?php _e('Congreso', 'buddypress'); ?>
            </option>
            <option value="Feria">
                <?php _e('Feria', 'buddypress'); ?>
            </option>
            <option value="Ponencia">
                <?php _e('Ponencia', 'buddypress'); ?>
            </option>
            <option value="Otros">
                <?php _e('Otros', 'buddypress'); ?>
            </option >
        </select>
    </div>
    
    <div id="custom-event-desc">
        <label for="event-desc">
            <?php _e('* Event Description', 'buddypress') ?>
        </label>
        <textarea name="event-desc" id="event-desc" <?php echo $required; ?> ></textarea>
    </div>
    
    <div id="custom-event-placedcity">
        <label for="event-placedcity">
            <?php _e('* Dirección web del evento', 'buddypress') ?>
        </label>
        <input type="text" name="event-web" id="event-web" size="35" maxlength="70" <?php echo $required; ?> />
    </div>
    
    <div id="custom-event-placedaddress">
        <label for="event-placedaddress">
            <?php _e('* Event address', 'buddypress') ?>
        </label>
        <input type="text" name="event-placedaddress" id="event-placedaddress" size="35" maxlength="70" <?php echo $required; ?>  />
    </div>
    
    <h4 id="custom-event-date-title">
        <?php _e('* Event Date', 'buddypress') ?>
    </h4>
    
    <div id="custom-event-date-start">
        <label for="event-edtsd">
            <?php _e('* Event Start date', 'buddypress') ?>
        </label>
    
        <input type="text" readonly name="event-edtsd" id="event-edtsd" size="12" maxlength="20" value="<?php bp_new_event_edtsd() ?>" />
    
        <select name="event-edtsth" id="event-edtsth" size=1>
        <?php
            for ($i=0; $i<24; $i++) { ?>
            <?php if ($i<10)
                { $codei = '0'.$i; }
                    else
                { $codei = $i; } ?>
                <option value="<?php echo $codei;?>"><?php echo $codei; ?></option>
        <?php } ?>
        </select>
    
        <?php _e(' hours', 'buddypress'); ?>
        <select name="event-edtstm" id="event-edtstm" size=1>
        <?php for ($i=0;$i<60;$i=$i+5)
            { ?>
            <?php if ($i<10)
                { $codei = '0'.$i; }
                    else
                { $codei = $i; } ?>
        <option value="<?php echo $codei; ?>"><?php echo $codei; ?></option>
        <?php } ?>
        </select>
        <?php _e(' minutes', 'buddypress'); ?>
    </div>
    
    <div id="custom-event-date-end">
        <label for="event-edted">
            <?php _e('* Event End date', 'buddypress') ?>
        </label>
        
        <input type="text" readonly name="event-edted" id="event-edted" size="12" maxlength="20" value="<?php bp_new_event_edted() ?>" />
                
        <select name="event-edteth" id="event-edteth" size=1>
        <?php
            for ($i=0; $i<24; $i++) { ?>
            <?php if ($i<10)
                { $codei = '0'.$i; }
                    else
                { $codei = $i; } ?>
                <option value="<?php echo $codei;?>"><?php echo $codei; ?></option>
        <?php } ?>
        </select>
        
        <?php _e(' hours', 'buddypress'); ?>
        
        <select name="event-edtetm" id="event-edtetm" size=1>
        <?php for ($i=0;$i<60;$i=$i+5)
            { ?>
            <?php if ($i<10)
                { $codei = '0'.$i; }
                    else
                { $codei = $i; } ?>
        <option value="<?php echo $codei; ?>"><?php echo $codei; ?></option>
        <?php } ?>
        </select><?php _e(' minutes', 'buddypress'); ?>
    </div>
<?php
/*    
    <div id="custom-event-group">
        <h4>
            <?php _e( 'Group/Forum link options', 'buddypress'); ?>
        </h4>
        <label><?php _e('Select the group you want to contact the event:', 'buddypress'); ?></label>
        <?php jes_event_groups_dropdown( $_POST['event-grouplink'] ) ?>
    </div>
*/
?>
        <input type="submit" name="next" id="custom-event-create" value="<?php _e('Create Event and Continue', 'buddypress'); ?>" style=" margin-top: 15px; float: right; " />
        <input type="hidden" name="notifytimedenable" id="notifytimedenable" value="0" />
