<div class="container">
    <div class="row">
        <div class="col-md-3">
          
        </div>


        <div class="col-md-6">
            <div class="panel panel-default">
                
                    <div class="panel-heading">
                    <h2 class="form-signin-heading">Add Event Listing</h2>

                </div>
                <div class="panel-body">

                    <?php
                    $attributes = array(
                        'class' => 'form-horizontal',
                    );
                    ?>
                    <?php echo validation_errors('<p class="alert alert-dismissable alert-danger">'); ?>

                    <?php if ($this->session->flashdata('event_added')) : ?>
                        <p class="alert alert-dismissable alert-success"><?php echo $this->session->flashdata('event_added'); ?></p>
                    <?php endif; ?>


                    <?php echo form_open_multipart('event/add_listing', $attributes); ?>


                    <div class="panel-body">
                        <span class="msgF pull-right">* required field.</span>
                        <div class="form-group">
                            <label for="startDate" class="col-sm-3 control-label">Start Date:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control datepicker" data-date-format="mm-dd-yyyy" id="startDate" name="startDate" value="<?php echo set_value('startDate'); ?>" placeholder="MM-DD-YYYY">
                            </div>
                            <div class="col-sm-1">
                                <span class="error2">*</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="endDate" class="col-sm-3 control-label">End Date:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control datepicker" data-date-format="mm-dd-yyyy" id="endDate" name="endDate" value="<?php echo set_value('endDate'); ?>" placeholder="MM-DD-YYYY">
                            </div>
                            <div class="col-sm-1">
                                <span class="error2">*</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="title" class="col-sm-3 control-label">Title:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id="title" name="title" value="<?php echo set_value('title'); ?>" placeholder="Title">
                            </div>
                            <div class="col-sm-1">
                                <span class="error2">*</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="description" class="col-sm-3 control-label">Description:</label>
                            <div class="col-sm-5">

                                <textarea class="form-control" rows="8" id="description" name="description" value="<?php echo set_value('description'); ?>" placeholder="Event Description"></textarea>


                            </div>
                        </div>
                        <div class="form-group">
                            <label for="country" class="col-sm-3 control-label">Country:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id="country" name="country" value="<?php echo set_value('country'); ?>" placeholder="Country">
                            </div>
                            <div class="col-sm-1">
                                <span class="error2">*</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="state" class="col-sm-3 control-label">State:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id="state" name="state" value="<?php echo set_value('state'); ?>" placeholder="State">
                            </div>
                            <div class="col-sm-1">
                                <span class="error2">*</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="city" class="col-sm-3 control-label">City:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id ="city" name="city" value="<?php echo set_value('city'); ?>" placeholder="City">
                            </div>
                            <div class="col-sm-1">
                                <span class="error2">*</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="zipcode" class="col-sm-3 control-label">Zipcode:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id="zipcode" name="zipcode" value="<?php echo set_value('zipcode'); ?>" placeholder="Zipcode">
                            </div>
                            <div class="col-sm-1">
                                <span class="error2">*</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="address" class="col-sm-3 control-label">Address:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id="address" name="address" value="<?php echo set_value('address'); ?>" placeholder="Address">
                            </div>
                        </div>
                        <div class="form-group">           
                            <label for="brochure" class="col-sm-3 control-label">Brochure:</label>
                            <div class="col-sm-5">
                                <input type="file" class="form-control" name="userfile" size="20">
                            </div>
                        </div>


                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-10">
                                <button type="submit" class="btn btn-primary btn-xs">Save
                                    <i class="glyphicon glyphicon-log-in"></i></button>
                                <a href="<?php echo base_url(); ?>event/displayEvents">
                                    <button type="button" class="btn btn-default btn-xs">Close</button></a>

                            </div>
                        </div>


                    </div>
                    <?php echo form_close(); ?>

                </div>
            </div>
        </div>

        <div class="col-md-3">
            <div class="list-group">
           
            </div>
        </div>
    </div>
</div>










