<?php $this->load->view('security'); ?>
<?php $this->load->view('header'); ?>
<!-- sidebar menu -->
<?php $this->load->view('left_bar'); ?>

<!-- page content -->

<div class="right_col" role="main">
  <div class="">
    <div class="clearfix"></div>
    <div class="row">
      <div class="col-md-4 col-sm-4 col-xs-12">
        <div class="x_panel tile fixed_height_320 overflow_hidden" style="display:none;">
          <div class="x_title">
            <h2>N-JOB-N Activity Graph</h2>
            <ul class="nav navbar-right panel_toolbox">
              <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li>
              <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                <ul class="dropdown-menu" role="menu">
                  <li><a href="#">Settings 1</a> </li>
                  <li><a href="#">Settings 2</a> </li>
                </ul>
              </li>
              <li><a class="close-link"><i class="fa fa-close"></i></a> </li>
            </ul>
            <div class="clearfix"></div>
          </div>
          <div class="x_content">
            <table class="" style="width:100%">
              <tr>
                <th style="width:37%;"> <p></p>
                </th>
                <th> <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
                    <p class=""></p>
                  </div>
                  <div class="col-lg-5 col-md-5 col-sm-5 col-xs-5">
                    <p class=""></p>
                  </div>
                </th>
              </tr>
              <tr>
                <td><canvas id="canvas1" height="140" width="140" style="margin: 15px 10px 10px 0"></canvas></td>
                <td><table class="tile_info">
                    <tr>
                      <td><p><i class="fa fa-square blue"></i>Total Jobs</p></td>
                      <td>30%</td>
                    </tr>
                    <tr>
                      <td><p><i class="fa fa-square green"></i>Active Jobs</p></td>
                      <td>10%</td>
                    </tr>
                    <tr>
                      <td><p><i class="fa fa-square purple"></i>Short Listed Jobs</p></td>
                      <td>20%</td>
                    </tr>
                    <tr>
                      <td><p><i class="fa fa-square aero"></i>Total Candidate's</p></td>
                      <td>15%</td>
                    </tr>
                    <tr>
                      <td><p><i class="fa fa-square red"></i>Total Recruiter's</p></td>
                      <td>30%</td>
                    </tr>
                  </table></td>
              </tr>
            </table>
          </div>
        </div>
      </div>
      <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
          <div class="x_title">
            <h2>Set Tags</h2>
            <div class="clearfix"></div>
          </div>
          <?php  echo validation_errors(); ?>
          <div class="x_content"> <br />
            <form id="demo-form2" class="form-horizontal form-label-left" action="<?php base_url();?>settags" method="post" name="form1"  enctype="multipart/form-data">
			<?php 
foreach($query as $val)
{
?>
<input type="hidden" name="cand_id" value="<?php echo $val->user_id;?>" />
<div class="form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12"><?php echo $this->session->flashdata('feedback');?></label>
              </div>
			  
<div class="form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Name</label>
                <div class="col-md-6 col-sm-6 col-xs-12" style="margin-top: 6px;">
                  <?php echo $val->fname.' '.$val->lname; ?>
                </div>
              </div>
<div class="form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Email</label>
                <div class="col-md-6 col-sm-6 col-xs-12" style="margin-top: 6px;">
                  <?php echo $val->email;?>
                </div>
              </div>
			  <div class="form-group">
 <label class="control-label col-md-3 col-sm-3 col-xs-12"  style="margin-top: 6px;" for="last-name"><input type="radio" name="chkPassPort" value="1" style="margin-top: -1px;" checked="checked" id="chkYes" onclick="ShowHideDiv23()"/> Select Multiple Tags</label>
 <div class="col-md-6 col-sm-6 col-xs-12" style="margin-top: 13px;" id="multiple">
<!--<link rel="stylesheet" href="<?php echo base_url();?>assets/docsupport/style.css">-->
  <link rel="stylesheet" href="<?php echo base_url();?>assets/docsupport/prism.css">
  <link rel="stylesheet" href="<?php echo base_url();?>assets/docsupport/chosen.css">
 <select name="tags[]" data-placeholder="Choose Industry sectors..." class="chosen-select" multiple="multiple" style="width:525px;"  id="tags" >
 <option value=""></option>
			 <?php
  $sel_tags=mysql_query("select * from tags");
  while($fethch_tags=mysql_fetch_array($sel_tags))
	{
	?>
            <option value="<?php echo $fethch_tags['tag_id'];?>"><?php echo $fethch_tags['tag_name'];?></option>
     <?php }?>
          
          </select>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
  <script src="<?php echo base_url();?>assets/docsupport/chosen.jquery.js" type="text/javascript"></script>
  <script src="<?php echo base_url();?>assets/docsupport/prism.js" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript">
    var config = {
      '.chosen-select'           : {},
      '.chosen-select-deselect'  : {allow_single_deselect:true},
      '.chosen-select-no-single' : {disable_search_threshold:10},
      '.chosen-select-no-results': {no_results_text:'Oops, nothing found!'},
      '.chosen-select-width'     : {width:"95%"}
    }
    for (var selector in config) {
      $(selector).chosen(config[selector]);
    }
  </script>

                      </div>
                      </div>
              <div class="form-group">
                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name"><input type="radio" name="chkPassPort" id="chkYes" value="1" style="margin-top: -1px;" onclick="ShowHideDiv()"/>OR Enter New Tag</label>
                <div class="col-md-6 col-sm-6 col-xs-12" style="display:none;" id="single">
                  <input type="text"  name="tagname" id="tagname" placeholder="Enter New Tag" style="width: 46%;height: 28px;"  class="form-control col-md-7 col-xs-12">
                </div>
              </div>
              
              <div class="ln_solid"></div>
              <div class="form-group">
                <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                  <button type="submit" class="btn btn-success">Set Tags</button>
                </div>
              </div>
			  <?php }?>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- The Modal -->
              
              <script>
// Get the modal
var modal = document.getElementById('myModal');

// Get the button that opens the modal
var btn = document.getElementById("MainNavHelp");

// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];

// When the user clicks the button, open the modal
btn.onclick = function() {
    modal.style.display = "block";
}

// When the user clicks on <span> (x), close the modal
span.onclick = function() {
    modal.style.display = "none";
}

// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
    if (event.target == modal) {
        modal.style.display = "none";
    }
}
</script>
</div>
<!-- /page content --> 

<!-- footer content -->
<?php $this->load->view('footer'); ?>
