<?php $this->load->view('header');?>
		
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            &nbsp;
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?php echo base_url();?>"><?php echo $this->lang->line('hf_home');?></a></li>
              <li class="breadcrumb-item active"><?php echo $this->lang->line('hf_registration');?></li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

	<!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="card card-default">
          <div class="card-header">
            <h3 class="card-title"><?php echo $this->lang->line('hf_registration');?></h3>

            <div class="card-tools">
              
            </div>
          </div>
          <!-- /.card-header -->
          <div class="card-body">
			<form class="form-horizontal" id="register-form">
				<div class="form-group row">
					<label for="username" class="col-sm-2 col-form-label"><?php echo $this->lang->line('registration_username');?></label>
					<div class="col-sm-3">
					  <input type="text" class="form-control" id="username" name="username" placeholder="<?php echo $this->lang->line('registration_username_must_fill_in_message');?>">
					</div>
				</div>
				<div class="form-group row">
					<label for="password" class="col-sm-2 col-form-label"><?php echo $this->lang->line('registration_password');?></label>
					<div class="col-sm-3">
					  <input type="password" class="form-control" id="password" name="password" placeholder="<?php echo $this->lang->line('registration_password_must_fill_in_message');?>">
					</div>
				</div>
				<div class="form-group row">
					<label for="confirm_password" class="col-sm-2 col-form-label"><?php echo $this->lang->line('registration_confirm_password');?></label>
					<div class="col-sm-3">
					  <input type="password" class="form-control" id="confirm_password" name="confirm_password" placeholder="<?php echo $this->lang->line('registration_confirm_password_must_fill_in_message');?>">
					</div>
				</div>
				<div class="form-group row">
					<label for="nationality" class="col-sm-2 col-form-label"><?php echo $this->lang->line('registration_nationality');?></label>
					<div class="col-sm-3">
						<select class="form-control" id="nationality" name="nationality">
						    <?php
								foreach(get_country_name() as $k => $v) {
									if($k == 'CN') {
										echo '<option value="' . $k . '" selected="selected">' . $this->lang->line($v) . '</option>';
									}
									else {
										echo '<option value="' . $k. '">' . $this->lang->line($v) . '</option>';
									}
								}
							?>
						</select>
					</div>
				</div>
				<div class="form-group row">
					<label for="introducer" class="col-sm-2 col-form-label"><?php echo $this->lang->line('registration_introducer');?></label>
					<div class="col-sm-3">
					  <input type="text" class="form-control" id="introducer" name="introducer" value="<?php echo $this->session->userdata('member_username');?>" placeholder="<?php echo $this->lang->line('registration_introducer_must_fill_in_message');?>">
					</div>
				</div>
				<div class="form-group row">
					<div class="offset-sm-2 col-sm-10">
					  <input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
					  <button onclick="register_submit()" type="button" class="btn btn-primary"><?php echo $this->lang->line('registration_register');?></button>
					</div>
				</div>
			</form>
          </div>
          <!-- /.card-body -->
        </div>
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
		
<?php $this->load->view('footer');?>		