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



