<?php
//$this->load->view('alumni/index');
$this->load->view('templates/header');
//include 'templates/header.php';
include 'includes_top.php';
?>
<body class="<?php echo $body_class; ?> page-my-account">
    <!-- Wrapper -->
    <div class="wrapper">
        <!-- Header -->
        <div class="navigation-wrapper">
            <?php include 'header.php'; ?>
            <?php include 'navbar.php'; ?>
            <div class="background">
                <img src="<?php echo base_url(); ?>assets/alumni/img/background-city.png" alt="background">
            </div>
        </div>
        <!-- end Header -->
        <?php include 'modal.php'; ?>
        <!-- Page Content -->
        <?php include $page_name . '.php'; ?>
        <!-- end Page Content -->
<div class="container">
    <ol class="breadcrumb">
        <li><a href="<?php echo base_url(); ?>"><?php echo $this->lang->line('home'); ?></a></li>
        <li class="active"><?php echo $this->lang->line('login_or_register'); ?></li>
    </ol>
</div>
<!-- end Breadcrumb -->

<!-- Page Content -->
<div id="page-content" style="direction:rtl">
    <div class="container">
        <div class="row">
            <!--MAIN Content-->
            <div id="page-main">
                <div class="col-md-10 col-sm-10 col-sm-offset-1 col-md-offset-1">
                    <div class="row">
                        <div class="col-md-6">
                            <section id="account-sign-in" class="account-block">
                                <header>
                                    <h2><?php echo $this->lang->line('have_an_account'); ?>؟</h2>
                                </header>
                                <?php if ($this->session->flashdata('info')) : ?>
                                    <div class="alert alert-info alert-dismissible fade in" role="alert">
                                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                            <span aria-hidden="true">×</span>
                                        </button>
                                        <?php echo $this->session->flashdata('info'); ?>
                                    </div>
                                <?php endif; ?>
                                <?php if ($this->session->flashdata('success')) : ?>
                                    <div class="alert alert-success alert-dismissible fade in" role="alert">
                                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                                            <span aria-hidden="true">×</span>
                                        </button>
                                        <?php echo $this->session->flashdata('success'); ?>
                                    </div>
                                <?php endif; ?>
                                <?php if ($this->session->flashdata('warning')) : ?>
                                    <div class="alert alert-warning alert-dismissible fade in" 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; ?>

                                <?php echo form_open('auth/website_login', array('class' => 'clearfix', 'data-parsley-validate' => 'true')); ?>
                                <div class="form-group">
                                    <label for="email"><?php echo $this->lang->line('email'); ?></label>
                                    <input name="email" type="email" class="form-control" id="email" placeholder="<?php echo $this->lang->line('ph_alumni_email'); ?>" data-parsley-required="true">
                                </div>
                                <div class="form-group">
                                    <label for="password"><?php echo $this->lang->line('password'); ?></label>
                                    <input name="password" type="password" class="form-control" id="password" placeholder="<?php echo $this->lang->line('ph_alumni_password'); ?>" data-parsley-required="true">
                                </div>
                                <div class="">
                                    <div class="radio">
                                        <label><input type="radio" value="alumnus" name="auth_type" checked><?php echo $this->lang->line('login_as_alumnus'); ?></label>
                                    </div>
                                    <div class="radio">
                                        <label><input type="radio" value="volunteer" name="auth_type"><?php echo $this->lang->line('login_as_volunteer'); ?></label>
                                    </div>
                                </div>
                                <button type="submit" class="btn pull-right"><?php echo $this->lang->line('sign_in'); ?></button>
                                <?php echo form_close(); ?>
                            </section><!-- /#account-block -->
                        </div><!-- /.col-md-6 -->
                        <div class="col-md-6">
                            <section class="account-block">
                                <header>
                                    <h2><?php echo $this->lang->line('create_new_alumni_account'); ?></h2>
                                </header>
                                <?php echo form_open('register/alumuns', array('data-parsley-validate' => 'true', 'style' => 'margin: 0 0 40px 0')); ?>
                                <div class="form-group">
                                    <label style="float:right;"><?php echo $this->lang->line('name'); ?></label>
                                    <input name="name" type="text" class="form-control" placeholder="<?php echo $this->lang->line('ph_alumni_full_name'); ?>" data-parsley-required="true">
                                </div>
                                
                             <div class="form-group">
                                    <label style="float:right;"><?php echo $this->lang->line('username'); ?></label>
                                    <input name="username" type="text" class="form-control" placeholder="<?php echo $this->lang->line('ph_alumni_username'); ?>" data-parsley-required="true">
                            </div>
                            
                               <div class="form-group">
												<select name="blood_group"  class="form-control" data-parsley-required="true">
													<option value=""><?php echo $this->lang->line('select_blood_group'); ?></option>
													<option value="ذكر">ذكر</option>
													<option value="أنثى">أنثى</option>
												</select>
								</div>
                            
                               
                            <!-- Location Means Nationality -->
                            <!-- Username Means SSN -->
                            <!-- Countries Means Level -->
                            <!-- States Means Faculty -->
                            <!-- Cities Means Dept -->
                            <!-- Blood_group Means Gender -->
                                    <div class="form-group" style="margin-bottom:30px;">
                                    <select name="location_id" class="form-control" data-parsley-required="true">
                                        <option value=""><?php echo $this->lang->line('location'); ?></option>
                                        <?php
                                        $locations_info = $this->security->xss_clean($this->db->get('location')->result_array());
                                        foreach ($locations_info as $location) :
                                        ?>
                                            <option value="<?php echo $location['location_id']; ?>"><?php echo $location['name']; ?></option>
                                        <?php endforeach; ?>
                                    </select>
                                </div>
                                
                                <div class="form-group">
                                    <label style="float:right;"><?php echo $this->lang->line('email'); ?></label>
                                    <input name="email" type="email" class="form-control" placeholder="<?php echo $this->lang->line('ph_alumni_email'); ?>" data-parsley-required="true">
                                </div>
                                
                                <div class="form-group">
                                    <label style="float:right;"><?php echo $this->lang->line('mobile_number'); ?></label>
                                    <input name="mobile_number" type="text" class="form-control" placeholder="<?php echo $this->lang->line('ph_alumni_mobile'); ?>" data-parsley-required="true">
                                </div>
                                
                                <div class="form-group" style="margin-bottom:30px;">
                                    
                                    <select name="batch" class="form-control" data-parsley-required="true">
                                        <option value=""><?php echo $this->lang->line('select_class'); ?></option>
                                        <?php for ($start_year = date('Y'); $start_year >= 1992; $start_year--) : ?>
                                            <option value="<?php echo $start_year; ?>"><?php echo $start_year; ?></option>
                                        <?php endfor; ?>
                                    </select>
                                </div>
                                
                                 <div class="form-group" style="margin-bottom:30px;">
                                    
                                    <select name="profession_id" class="form-control" data-parsley-required="true">
                                        <option value=""><?php echo $this->lang->line('select_profession'); ?></option>
                                        <?php
                                        $professions_info = $this->security->xss_clean($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" data-parsley-required="true">      
                    <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" data-parsley-required="true">      
                    <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" data-parsley-required="true">      
                    <option value="">اختر التخصّص</option>
                </select>
            </div>
        </div>
    </div>
            
            
            
            
           <!-- Abu Shquier End -->
                                
                               
                                
                               

    
     <div class="form-group">
                                    <label style="float:right;"><?php echo $this->lang->line('facebook'); ?></label>
                                    <input name="facebook" type="text" class="form-control" placeholder="<?php echo $this->lang->line('ph_alumni_facebook'); ?>" data-parsley-required="false">
                                </div>
                                <div class="checkbox">
                                    <label> 
                                        <input type="checkbox" name="terms" data-parsley-required="true" float="right">&nbsp;&nbsp;<?php echo $this->lang->line('i_understand_terms'); ?> &amp; <?php echo $this->lang->line('conditions'); ?>
                                    </label>
                                </div>
                                <button style="margin: 6% 0 10% 0" type="submit" class="btn pull-right"><?php echo $this->lang->line('create_new_account'); ?></button>
                                <?php echo form_close(); ?>
                            </section><!-- /#account-block -->
                        </div><!-- /.col-md-6 -->
                    </div><!-- /.row -->
                </div><!-- /.col-md-10 -->
            </div><!-- /#page-main -->
            <!-- end SIDEBAR Content-->
        </div><!-- /.row -->
    </div><!-- /.container -->
</div>

<?php
$this->load->view('templates/footer');
//$this->load->view('alumni/index');

//include 'templates/footer.php';
?>
<body class="<?php echo $body_class; ?> page-my-account">
    <!-- Wrapper -->
    <div class="wrapper">
        <!-- Header -->
        
      
        
        <?php include 'footer.php'; ?>
    </div>
    <!-- end Wrapper -->
    <?php include 'includes_bottom_menu.php'; ?>


    <script type="text/javascript">
        $(document).ready(function() {
            window.setTimeout(function() {
                $(".alert").slideUp(1000, function() {
                    $(this).remove();
                });
            }, 5000);
        });
    </script>
