<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 */?>
        <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/subject/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/subject','<i class="fa fa-fw fa-arrows"></i> subject 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'); ?>
                				<?php echo form_input(['name'=>'subject','class'=>'form-control','id'=>'subject','placeholder'=>'Enter subject  here',
    							'value'=>set_value('subject')]);?>
                            </div>
                        </div>
                        <div class="col-md-3">
                            <div class="form-group">
    							<?php echo form_label('Subject Code','subject_code',['for'=>'subject_code']);?><?php echo form_error('subject_code'); ?>
                				<?php echo form_input(['name'=>'subject_code','class'=>'form-control','id'=>'subject_code','placeholder'=>'Enter subject Code  here',
    							'value'=>set_value('subject_code')]);?>
                            </div>
                        </div>
                        
                        </div>
                        <div class="col-sm-12">
                        	<div class="col-md-3">
                            <div class="form-group">
    							<?php echo form_label('Description','description',['for'=>'description']);?><?php echo form_error('description'); ?>
                				<?php echo form_error('description'); ?>
                				<?php echo form_input(['name'=>'description','class'=>'form-control','id'=>'description','placeholder'=>'Enter description  here',
    							'value'=>set_value('description')]);?>
                                <?php //form_textarea(['name'=>'description','class'=>'form-control no-resize','rows'=>'4','placeholder'=>'Class 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>



