  <?php defined('BASEPATH')or exit("NO DIRECT ACCESS iS ALLOWED");?>
<div class="content-wrapper">
<?php /*?>    <section class="content-header">
      <h1><small>Add WorkPackage</small></h1>
      <ol class="breadcrumb">
        <li><?php echo anchor('dashboard','<i class="fa fa-dashboard"></i> Dashboard')?></li>
        <li><?php echo anchor('master/Activity','Activity')?></li>
        <li class="active">Add WorkPackage</li>
      </ol>
    </section> <?php */?>
    <!-- <div id="tableContainer2" class="container-tb"></div> -->
        <section class="content">
          <div class="row">
            <div class="col-xs-12">
              <div class="box">
                <div class="box-header">
                  <!--<h3 class="box-title">Add Products</h3>-->
                  <?php echo form_open('admin/master/faculty/create',['name'=>'activity_form_add','id'=>'activity_form_add']);?>
          		  <?php echo form_hidden('my_array',['name'=>'doaction','id'=>'doaction']);?>
                  <?php echo $message;?>
                  <?php echo form_submit(['name'=>'save','value'=>'Save','class'=>'btn btn-default pull-right',
				  'style'=>'margin-left:5px;background-color: #ffffff;']); ?>
                  
				  <?php echo anchor('admin/master/faculty','<i class="fa fa-fw fa-arrows"></i> faculty List',['class'=>'btn btn-default pull-right','style'=>'background-color: #ffffff;']); ?>    
                </div><!-- /.box-header -->
                <div class="box-body">
                <hr />
        		<div class="row">
        			   <div class="col-md-12">
                            <div class="col-md-3">
                				<div class="form-group">
        							<?php echo form_label('Category *','category',['for'=>'category']);?><?php echo form_error('category'); ?>
                  					 <select id='sel_category' class="form-control" 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>
                            <div class="col-md-3">
                				<div class="form-group">
        							<?php echo form_label('Class *','class',['for'=>'class']);?><?php echo form_error('class'); ?>
                                     <select id='sel_class' class="form-control" name="class" >
                                        <option value="" >Select class</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-md-3">
                                <div class="form-group">
        							<?php echo form_label('Subject *','subject',['for'=>'subject']);?><?php echo form_error('subject'); ?>
                                     <select id='sel_subject' class="form-control" name="subject" >
                                        <option value="" >Select subject</option>
                                    </select>
                                </div>
                            </div>
                            <div class="col-md-3">
                                <div class="form-group">
        							<?php echo form_label('faculty','faculty',['for'=>'faculty']);?><?php echo form_error('faculty'); ?>
                  					<?php echo form_dropdown('faculty',$teacher,set_value('faculty',''),['class'=>'form-control']);?>
                                </div>
                            </div>
                        <!--  <div class="col-sm-3">
                        		<div class="form-group">
                        			<select style="width:200px" class="tech" name="tech" id="tech" onchange="showValue(this)">
                                      <option value="calendar" data-image="<?=base_url('uploads/user/images/1/profile/managed-services-icons-268x3001.png')?>">Calendar</option>
                                      <option value="shopping_cart" data-image="images/msdropdown/icons/icon_cart.gif">Shopping Cart</option>
                                      <option value="cd" data-image="images/msdropdown/icons/icon_cd.gif" name="cd">CD</option>
                                      <option value="email"  data-image="images/msdropdown/icons/icon_email.gif">Email</option>
                                      <option value="faq" data-image="images/msdropdown/icons/icon_faq.gif">FAQ</option>
                                      <option value="games" data-image="images/msdropdown/icons/icon_games.gif">Games</option>
                                      <option value="music" data-image="images/msdropdown/icons/icon_music.gif">Music</option>
                                      <option value="phone" data-image="images/msdropdown/icons/icon_phone.gif">Phone</option>
                                      <option value="graph" data-image="images/msdropdown/icons/icon_sales.gif">Graph</option>
                                      <option value="secured" data-image="images/msdropdown/icons/icon_secure.gif">Secured</option>
                                      <option value="video" data-image="images/msdropdown/icons/icon_video.gif">Video</option>
                                      <option value="cd" data-image="images/msdropdown/icons/icon_cd.gif" name="cd">CD</option>
                                    </select>
                        		</div>
                        	</div>
                        </div>-->
                        <div class="col-sm-12">
                        	<!--<div class="col-md-3">
                                <div class="form-group">
        							<?php //echo form_label('Faculty code','faculty_code',['for'=>'faculty_code']);?><?php //echo form_error('faculty_code'); ?>
                  					 <?php //echo form_input(['name'=>'faculty_code','class'=>'form-control','id'=>'faculty_code','placeholder'=>'Enter Faculty Code  here',
            							//'value'=>set_value('faculty_code')]);?>
                                </div>
                            </div>-->
                            <div class="col-md-3">
                                <div class="form-group">
        							<?php echo form_label('Description','description',['for'=>'description']);?><?php echo form_error('description'); ?>
                    				
                                    <?php //form_textarea(['name'=>'description','class'=>'form-control no-resize','rows'=>'4','placeholder'=>'Class Description']);?>
                                    <?php echo form_input(['name'=>'description','class'=>'form-control','id'=>'description','placeholder'=>'Enter description  here',
            							'value'=>set_value('description')]);?>
                                </div>	
                            </div>
                            <div class="col-md-3">
                                <div class="form-group">
        							<?php echo form_label('Status','status',['for'=>'status']);?><?php echo form_error('status'); ?>
                    				<?php $options=array(''=>'Select Status','1'=>'Active','0'=>'Inactive');  ?>
                  					<?php echo form_dropdown('status',$options,set_value('status','1'),['class'=>'form-control']);?>
                                </div>	
                        	</div>	      
                        </div>
                    </div>
                </div>
                <hr />
<?php echo form_submit(['name'=>'save','value'=>'Save','class'=>'btn btn-default pull-right','style'=>'margin-left:5px;background-color: #ffffff;']); ?>
<?php echo  form_close();?>
</div>
</div>
</div>
</section>
</div>


