<!-- begin #content -->
<?php
//$this->load->view('alumni/index');
$this->load->view('templates/header');
//include 'templates/header.php';
//include 'includes_top.php';
?>
<div id="content" class="content">
    <div class="row">
        <div class="col-md-6">
            <h1 class="page-header"><?php echo $this->lang->line('alumnus'); ?> <small><?php echo $this->lang->line('add_alumnus_page'); ?></small></h1>
        </div>
        <div class="col-md-6">
            <?php if ($this->session->flashdata('warning')) : ?>
                <div class="alert alert-warning alert-dismissible fade show" role="alert">
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">×</span>
                    </button>
                    <?php echo $this->session->flashdata('warning'); ?>
                </div>
            <?php endif; ?>
        </div>
    </div>

    <!-- begin row -->
    <div class="row">
        <!-- begin col-6 -->
        <div class="col-lg-6 offset-lg-3" style="direction:rtl;text-align:right;">
            <!-- begin panel -->
            <div class="panel panel-inverse">
                <div class="panel-body">
                    <?php echo form_open_multipart('admin/alumni/add', array('data-parsley-validate' => 'true', 'name' => 'alumnus')); ?>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('name'); ?></label>
                        <input autofocus class="form-control" type="text" name="name" placeholder="<?php echo $this->lang->line('ph_alumnus_name'); ?>" data-parsley-required="true" />
                    </div>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('username'); ?></label>
                        <input class="form-control" type="text" name="username" placeholder="<?php echo $this->lang->line('ph_alumnus_username'); ?>" data-parsley-required="true" />
                    </div>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('image'); ?></label>
                        <div class="note note-info" align="center">
                            <?php echo $this->lang->line('image_size_suggestion'); ?> 160 &times; 160
                        </div>
                        <span class="btn btn-sm btn-success fileinput-button">
                            <i class="fa fa-plus"></i>
                            <span><?php echo $this->lang->line('add_image'); ?></span>
                            <input type="file" name="image_link">
                        </span>
                    </div>
                               <div class="form-group">
                        <label><?php echo $this->lang->line('blood_group'); ?></label>
                        <select class="combobox" name="blood_group">
													<option value=""><?php echo $this->lang->line('select_blood_group'); ?></option>
													<option value="ذكر">ذكر</option>
													<option value="أنثى">أنثى</option>
                        </select>
                    </div>

                    <div class="form-group">
                        <label><?php echo $this->lang->line('location'); ?></label>
                        <select class="combobox" name="location_id">
                            <option value=""><?php echo $this->lang->line('select_location'); ?></option>
                            <?php
                            $location_info = $this->db->get('location')->result_array();
                            foreach ($location_info as $location) :
                            ?>
                                <option value="<?php echo $location['location_id']; ?>"><?php echo $location['name']; ?></option>
                            <?php endforeach; ?>
                        </select>
                    </div>   
                    <div class="form-group">
                        <label><?php echo $this->lang->line('email'); ?></label>
                        <input class="form-control" type="text" name="email" placeholder="<?php echo $this->lang->line('ph_alumnus_email'); ?>" data-parsley-required="true" />
                    </div>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('password'); ?></label>
                        <input type="text" name="password" id="password-indicator-visible" class="form-control m-b-5" data-parsley-required="true">
                    </div>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('date_of_birth'); ?></label>
                        <input type="text" name="dob" class="form-control" id="datepicker-default" placeholder="mm/dd/yyyy" />
                    </div>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('batch'); ?></label>
                        <select class="combobox" name="batch">
                            <option value=""><?php echo $this->lang->line('select_class'); ?></option>
                            <?php for ($start_year = date('Y'); $start_year >= 1900; $start_year--) : ?>
                                <option style="direction:rtl;text-align:right;" value="<?php echo $start_year; ?>"><?php echo $start_year; ?></option>
                            <?php endfor; ?>
                        </select>
                    </div>
                                       <div class="form-group">
                        <label><?php echo $this->lang->line('mobile_number'); ?></label>
                        <input class="form-control" type="text" name="mobile_number" placeholder="<?php echo $this->lang->line('ph_alumnus_mobile'); ?>" />
                    </div>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('profession'); ?></label>
                        <select class="combobox" name="profession_id">
                            <option value=""><?php echo $this->lang->line('select_profession'); ?></option>
                            <?php
                            $professions_info = $this->db->get('profession')->result_array();
                            foreach ($professions_info as $profession) :
                            ?>
                                <option value="<?php echo $profession['profession_id']; ?>"><?php echo $profession['name']; ?></option>
                            <?php endforeach; ?>
                        </select>
                    </div>
                    
                    <!--  Abu Shquier Start -->
                    
              <div class="row">
        <div class="col-lg-12">
            <div class="form-group">
                <select title="Select Level" name="regcountry" class="form-control" id="country-name">      
                    <option value="">اختر المرحلة</option>
                    <?php
                    foreach ($geCountries as $key => $element) {
                        echo '<option value="'.$element['country_id'].'">'.$element['country_name'].'</option>';
                    }
                    ?>
                </select>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="form-group">
                <select title="Select Fac" name="state_name" class="form-control" id="state-name">      
                    <option value="">اختر الكليّة</option>
                </select>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="form-group">
                <select title="Select Dept" name="city_name" class="form-control" id="city-name">      
                    <option value="">اختر التخصّص</option>
                </select>
            </div>
        </div>
    </div>
            
            
            
            
           <!-- Abu Shquier End -->
                  
                    <div class="form-group">
                        <label><?php echo $this->lang->line('personal_website'); ?></label>
                        <input class="form-control" type="text" name="website" placeholder="<?php echo $this->lang->line('ph_alumnus_webstie'); ?>" />
                    </div>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('short_biography'); ?></label>
                        <textarea maxlength="181" style="resize: none" rows="3" class="form-control" type="text" name="short_bio" placeholder="<?php echo $this->lang->line('ph_alumnus_short_bio'); ?>"></textarea>
                    </div>
                    
                    <div class="form-group">
                        <label><?php echo $this->lang->line('position'); ?></label>
                        <input class="form-control" type="text" name="position" placeholder="<?php echo $this->lang->line('ph_alumnus_position'); ?>" />
                    </div>
         
                    <div class="form-group">
                        <label><?php echo $this->lang->line('facebook'); ?></label>
                        <input class="form-control" type="text" name="facebook" placeholder="<?php echo $this->lang->line('ph_alumnus_facebook'); ?>" />
                    </div>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('twitter'); ?></label>
                        <input class="form-control" type="text" name="twitter" placeholder="<?php echo $this->lang->line('ph_alumnus_twitter'); ?>" />
                    </div>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('linkedin'); ?></label>
                        <input class="form-control" type="text" name="linkedin" placeholder="<?php echo $this->lang->line('ph_alumnus_linkedin'); ?>" />
                    </div>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('youtube'); ?></label>
                        <input class="form-control" type="text" name="youtube" placeholder="<?php echo $this->lang->line('ph_alumnus_youtube'); ?>" />
                    </div>
                    <div class="form-group">
                        <label><?php echo $this->lang->line('status'); ?></label>
                        <select class="combobox" name="status" data-parsley-required="true">
                            <option value=""><?php echo $this->lang->line('select_status'); ?></option>
                            <option value="0"><?php echo $this->lang->line('pending'); ?></option>
                            <option value="1"><?php echo $this->lang->line('active'); ?></option>
                        </select>
                    </div>

                    <button type="submit" class="mb-sm btn btn-success"><?php echo $this->lang->line('add'); ?></button>
                    <?php echo form_close(); ?>
                </div>
            </div>
            <!-- end panel -->
        </div>
        <!-- end col-6 -->
    </div>
    <!-- end row -->
</div>
<!-- end #content
<?php
$this->load->view('templates/footer');
//$this->load->view('alumni/index');

//include 'templates/footer.php';
?>