<?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"><?php echo $this->lang->line('hf_settings');?></li>
              <li class="breadcrumb-item active"><?php echo $this->lang->line('hf_account_binding');?></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_account_binding');?></h3>

            <div class="card-tools">
              
            </div>
          </div>
          <!-- /.card-header -->
          <div class="card-body">
			<form class="form-horizontal" id="account-binding-form">
				<div class="form-group row">
					<label for="casino_username" class="col-sm-3 col-form-label"><?php echo $this->lang->line('profile_casino_username');?></label>
					<div class="col-sm-4">
					  <input type="text" class="form-control" id="casino_username" name="casino_username" placeholder="<?php echo $this->lang->line('profile_casino_username_must_fill_in_message');?>" value="<?php echo (isset($casino_username) ? $casino_username : '');?>" <?php echo ((isset($casino_username) && $casino_username != '') ? 'disabled="disabled"' : '');?>>
					</div>
				</div>
				<?php if($casino_username == '') {?>
				<div class="form-group row">
					<div class="offset-sm-3 col-sm-9">
					  <input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
					  <button onclick="account_binding_submit()" type="button" class="btn btn-primary"><?php echo $this->lang->line('profile_submit');?></button>
					</div>
				</div>
				<?php }?>
			</form>
          </div>
          <!-- /.card-body -->
        </div>
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
		
<?php $this->load->view('footer');?>		