<?php defined('BASEPATH')or exit("NO DIRECT ACCESS iS ALLOWED");?>
<div class="col-md-12  padding_sidebar">
<div class="row" style="margin-right:0px ;margin-left:0px;">
		<div class="card-head profile-categories_bread"><header>Teaching Subject</header>
		    		    <div class="pull-left"><?php echo  $link;?></div>


    		 <ol class="breadcrumb page-breadcrumb pull-right">
                    <li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="<?=site_url("Teacher")?>">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
                    </li>
                    <li class="active">Teaching Subject</li>
             </ol>
			 <div class="pull-left">
			            <!-- <a href="#" class="btn btn-sm btn-social btn-github pull-right button_collapse">
						<i class="fa fa-fw fa-search  text-green"></i>Search</a> -->
						</div>

    	</div>
    <div class="card card-topline-purple">
    	<div class="card-head">

    	</div>
	   <div class="table-responsive">
	   <div id="tableContainer2" class="container-tb">
	     <table class="table" style="font-family: sans-serif;font-size: 12px;">
			<thead>
				<tr>
					 <th>#</th>
                    <th>Category</th>
                    <th>Class</th>
					 <th>Subject</th>
                    <th>Subject Code</th>
				</tr>
			</thead>
		   <tbody>
		   <?php if( count($list) ):$sn=1;
                $count = $this->uri->segment(4);
                foreach($list as $lists ): ?>
				<tr>
					<td><?php echo  $sn; ?></td>
                <td><?php echo  strtoupper($lists->category);?></td>
                <td><?php echo  strtoupper($lists->class);?></td>
                <td><?php echo strtoupper($lists->subject);?></td>
                <td><?php echo  strtoupper($lists->category_code.$lists->class_code.$lists->subject_code)?></td>
					<!--  <td>
    					<div class="progress progress-striped progress-xs">
    						<div style="width: 80%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="80" role="progressbar" class="progress-bar progress-bar-success"></div>
    						</div>
    				</td>-->

					<!-- <td>
						<button class="btn btn-success btn-xs">
							<i class="fa fa-check"></i>
						</button>
						<button class="btn btn-primary btn-xs">
							<i class="fa fa-pencil"></i>
						</button>
						<button class="btn btn-danger btn-xs">
							<i class="fa fa-trash-o "></i>
						</button>
				     </td> -->
				</tr>
		<?php $sn++;unset($json2);unset($user_id);unset($user_url);unset($stars);unset($ends);unset($today);?>
        <?php endforeach; ?>
        <?php else : ?>
        <tr><td><a href="#">No Record Found</a></td></tr>
         <?php endif; ?>
		  </tbody><?php $count++; ?>

	</table>
</div>
</div>
</div>

</div>
</div>
</div>
</div>
 <div class='wrap_search'>
	<div class='content content_pop'>
		<div class="col-md-12">
			 <?=form_open('Teacher/subject_approved_list_search');?>
				<div class="col-md-10">
					<div class="col-md-2  padding_20 emp_style">
			<select id='sel_category' class="form-control input-sm" name="category">
					<option value="" >Select Category</option>
					<?php
					foreach($category as $category1){
						echo "<option value='".$category1['id']."'>".strtoupper($category1['category_code'])." | ".strtoupper($category1['category'])."</option>";
					}
					?>
			</select>
					</div>
					<div class="col-md-2  padding_20 emp_style">
						<select id='sel_class' class="form-control input-sm" name="class" >
							<option value="" >Select class</option>
						</select>
					</div>
					<div class="col-md-2  padding_20 emp_style">
						<select id='sel_subject' class="form-control input-sm" name="subject" >
							<option value="" >Select subject</option>
						</select>
					</div>
					<div class="col-md-2  btn_mrgin1 emp_style">
	    <?=form_submit('search','search',['class'=>'btn btn-primary btn_mrgin btn-sm']);?>
					</div>
				</div>
			<?php echo form_close();?>
			</div>
	<?=form_open('Teacher/subject_approved_list_search2');?>
	<div class="col-md-2">
		<div class="col-md-12  padding_20 emp_style">
			<?=form_dropdown('subject_code',$subject_code ,set_value('subject_code',$data_taskpo['subject_code']),['class'=>'form-control input-sm select2 select2-hidden-accessible',
			"tabindex"=>"-1","aria-hidden"=>"true","style"=>"width: 100%;",'onchange'=>"this.form.submit()"]);?>
		</div>
	<?php echo form_close();?>

	</div>

</div>
