<!-- <div id="sidebar-wrapper">
      <ul id="sidebar_menu" class="sidebar-nav">
           <li class="sidebar-brand">
             <a id="menu-toggle" href="#">
               <img src="assets/img/logo.png" alt="image" class="logo-img">
                  <i id="hamburger" class="fa fa-bars" aria-hidden="true"></i>
                  <span id="main_icon" class="glyphicon glyphicon-align-justify"></span>
                </a>
          </li>
      </ul>
        <ul class="sidebar-nav" id="sidebar">     
        <li 
        	<?php if (($base_name=="dashboard.php")){echo 'class="active"';}?> class="nav-item">
 <a class="nav-link" href="<?php echo $base_dir; ?>index.php">
  <p>Dashboard</p>
  <i class="nc-icon nc-chart-pie-35"></i>
</a>
</li>
<li <?php if (($base_name=="section-185")){echo 'class="active"';}?> class="nav-item">
 <a class="nav-link" href="section-185.php">
  <p>Section 185</p>
  <i class="nc-icon nc-paper-2"></i>
</a>
</li>
 <li <?php if (($base_name=="section-2(22)(e)")){echo 'class="active"';}?> class="nav-item">
 <a class="nav-link" href="section-2(22)E.php">
  <p>Section 2(22)E</p>
  <i class="nc-icon nc-paper-2"></i>
</a>
</li>
        </ul>
      </div> -->

      <div class="sidebar no-print">

	<div class="collapseToggle">
  <img src="assets/img/logo.png" alt="image" class="logo-img">
		<span id="toggleIcon" class="fa fa-bars"></span>
		</div>

    <ul class="nav nav-sidebar">

        <li
        	<?php if (($base_name=="dashboard")){echo 'class="active"';}?> class="nav-item">
					<a class="nav-link" href="<?php echo $base_dir; ?>dashboard.php">
						<span class="nc-icon nc-chart-pie-35"></span> 
						<span class="menuText">Dashboard</span>
					</a>
        </li>
			  <li <?php if (($base_name=="section-185")){echo 'class="active"';}?> class="nav-item"> 
					<a class="nav-link" href="section-185.php">
						<span class="nc-icon nc-paper-2"></span> 
						<span class="menuText">Section 185</span>
					</a>
        </li>
        <li <?php if (($base_name=="section-2(22)(e)")){echo 'class="active"';}?> class="nav-item"> 
					<a class="nav-link" href="section-2(22)(e).php">
						<span class="nc-icon nc-paper-2"></span> 
						<span class="menuText">Section 2(22)(e)</span>
					</a>
			  </li>
    </ul>
</div>

<!-- add form Modal -->
<div class="dash-anf-modal">
 <div class="modal fade modal-mini modal-primary" id="add-newform" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
   <div class="modal-content">
    <div class="title">
     <h4>Please fill the below details</h4>
   </div>
   <div class="modal-body text-center">
     <div class="row">
      <div class="col-md-12">
       <div class="card">
        <div class="card-body">
            <div class="alert alert-danger errmsg text-center" style="display: none;"></div>
         <form>

          <fieldset>

           <div class="row">

            <div class="col-md-12">
             <label for="company-name" aria-hidden="true">Name of Section <span>*</span></label>
             <select name="section" id="section">                
              <option></option>
              <?php
               $section = $obj->select( "*","gbca_section_master"," gbca_section_master.section_id");
                            
              foreach ($section as $section_master)
               {
                ?>
                <option value="<?php echo $section_master['section_id'];?>"><?php  echo $section_master['section_name'];?></option>

                <?php
               }
              ?>                                                  
            </select>
          </div>
          
           <div class="col-md-12">
           <label for="company-name">Name of Company <span>*</span></label>
            <div class="row">
                <div class="col-md-11 sec" >
                 <select  placeholder="select company" name="company" id="company">                
           <option></option>

             <?php
               $company = $obj->select( "*","gbca_company_master"," company_status='1' ORDER BY company_id DESC ");
                            
              foreach ($company as $company_master)
              {
                ?>
                <option value="<?php echo $company_master['company_id'];?>"><?php  echo $company_master['company_name'];?></option>

                <?php
              }
              ?>                   
          </select>
                </div>
                <div class="col-md-1" style="padding-left:0px">
                    <div class="comp">
                   <a href=" " id="new" data-toggle="modal" data-target="#add-newcompany" class="new"><i class="fa fa-plus" aria-hidden="true"></i></a> 
                   </div>
                </div>
            </div>
        </div>

      </div>

      <div class="row">
        <div class="col-md-12">
         <label for="name">Name of Maker <span>*</span></label>
         <input type="text" id="maker" name="maker" onkeypress="return (event.charCode > 64 && event.charCode < 91) || (event.charCode > 96 && event.charCode < 123) || (event.charCode==32)">
       </div>

       <div class="col-md-12">
         <label for="text">Name of Checker <span></span></label>
         <input type="text" id="checker" name="checker" onkeypress="return (event.charCode > 64 && event.charCode < 91) || (event.charCode > 96 && event.charCode < 123) || (event.charCode==32)">
       </div>
     </div>



     <a href="#" class="close-btn" data-dismiss="modal">Close</a>              
     <a href="#" id="proceed" class="submit-btn">Proceed</a>
   </fieldset>
 </form>
</div>
</div>
</div>

</div>
</div>

</div>
</div>
</div>
</div>
<!--  End Modal -->

<!-- add company Modal -->
<div class="dash-anf-modal">
 <div class="modal fade modal-mini modal-primary" id="add-newcompany" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
   <div class="modal-content">
    <div class="title">
     <h4>Please add company</h4>
   </div>
   <div class="modal-body text-center">
     <div class="row">
      <div class="col-md-12">
       <div class="card">
        <div class="card-body">
            <div class="alert alert-danger errmsg text-center" style="display: none;"></div>
         <form>

          <fieldset>

      <div class="row">
        <div class="col-md-12">
         <label for="name">Name of Company </label>
         <input type="text" id="new_company" name="new_company" onkeypress="return (event.charCode > 64 && event.charCode < 91) || (event.charCode > 96 && event.charCode < 123) || (event.charCode==32)">
       </div>

     </div>

     <a href="#" class="close-btn" data-dismiss="modal">Close</a>              
     <a href="#" id="comp_add" class="submit-btn">Add</a>
   </fieldset>
 </form>
</div>
</div>
</div>

</div>
</div>

</div>
</div>
</div>
</div>
<!--  End company Modal -->

<script type="text/javascript" src="assets/js/section-a.js"></script> 
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js"></script>

    <script>
      $("#section").select2({
          placeholder: "Select",
          allowClear: true
        
          
      });
      $("#company").select2({
          placeholder: "Select",
          allowClear: true
        
      });
      

$("#new").click(function(){
   $('#add-newcompany').modal("show");
    $('#add-newform').modal("hide");
     });
    </script>