<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="https://cdn.rawgit.com/dubrox/Multiple-Dates-Picker-for-jQuery-UI/master/jquery-ui.multidatespicker.css" rel="stylesheet"/>
<link href="https://code.jquery.com/ui/1.12.1/themes/pepper-grinder/jquery-ui.css" rel="stylesheet"/>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<script src="https://cdn.rawgit.com/dubrox/Multiple-Dates-Picker-for-jQuery-UI/master/jquery-ui.multidatespicker.js"></script>
<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 */?>
    <?php print_r($ret);?>
        <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/Adminlte/course_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/Adminlte/course_list','<i class="fa fa-fw fa-arrows"></i> Course List',['class'=>'btn btn-default pull-right','style'=>'background-color: #ffffff;']); ?> 
				  <select class="form-control" id="add_course_type" name="Designation" style="width:250px" onchange="changeValue();">
				    <option selected="selected" value="1">Week</option>
                    <option value="2">Custom Date</option>
                    <option value="3">Week and CUSTOM DATE</option>
                   </select> 
                </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 $options=array(''=>'Select Faculty Type','0'=>'Dummy','1'=>'Real');  ?>
                  					<?php //echo form_dropdown('presenter_type',$options,set_value('presenter_type',''),['class'=>'form-control']);?>
                  					   <select id='sel_faculty' class="form-control" name="faculty">
                                            <option value="" >Select faculty</option>
                                        </select>
                                </div>	
                            </div>	 
                                      
                        </div>
                        <div class="col-md-12">
                        	<div class="col-md-3">
                                <div class="form-group">
    								<?php echo form_label('Course Duration *','course_end_date',['for'=>'course_duration']);?><?php echo form_error('course_duration'); ?>
                    				 <div class="input-group">
                        				 <div class="input-group-addon"><i class="fa fa-calendar"></i></div>
                        				 <?php echo form_input(['name'=>'course_duration','class'=>'form-control','id'=>'reservation','placeholder'=>'Enter course Duration',
        								'value'=>set_value('course_duration')]);?>
    								</div>
                                </div>
                            </div> 	
                            <div class="col-md-3" class="week1" >
                                <div class="form-group">
    								<?php  echo form_label('Week Days ','week_days',['for'=>'week_days','class'=>'']);?><?php echo form_error('week_days[]'); ?>
    								<?php $days = array('Monday'=>'Monday','Tuesday'=>'Tuesday','Wednesday'=>'Wednesday','Thursday'=>'Thursday',
                                     'Friday'=>'Friday','Saturday'=>'Saturday','Sunday'=>'Sunday');?>
    								<?php echo form_dropdown('week_days[]',$days,set_value('week_days'),['class'=>'form-control select2 select2-hidden-accessible','multiple'=>'','data-placeholder'=>"Select a State",'style'=>"width: 100%;",'tabindex'=>"-1", 'aria-hidden'=>"true"]);?>         					
                                </div>	
                            </div>
                             <div class="col-md-3" class="customdate1">
                                <div class="form-group">
    								<?php echo form_label('Custom Date','custom_date',['for'=>'custom_date','class'=>'']);?><?php echo form_error('custom_date'); ?>
    								<?php echo form_label('Custom Date','custom_date',['for'=>'custom_date','class'=>'']);?><?php echo form_error('custom_date'); ?>
                    				 <div class="input-group">
                        				 <div class="input-group-addon"><i class="fa fa-calendar"></i></div>
                        				 <?php echo form_input(['name'=>'custom_date','class'=>'form-control ','id'=>'mdp-demo','placeholder'=>'Enter Custom Date Multi',
        								 'value'=>set_value('custom_date')]);?><!--  <div id="mdp-demo"></div>-->
    								</div>
                                </div>
                            </div>   
                            <div class="col-md-3">
                            	<div class="bootstrap-timepicker"><div class="bootstrap-timepicker-widget dropdown-menu"><table><tbody><tr><td><a href="#" data-action="incrementHour"><i class="glyphicon glyphicon-chevron-up"></i></a></td><td class="separator">&nbsp;</td><td><a href="#" data-action="incrementMinute"><i class="glyphicon glyphicon-chevron-up"></i></a></td><td class="separator">&nbsp;</td><td class="meridian-column"><a href="#" data-action="toggleMeridian"><i class="glyphicon glyphicon-chevron-up"></i></a></td></tr><tr><td><span class="bootstrap-timepicker-hour">08</span></td> <td class="separator">:</td><td><span class="bootstrap-timepicker-minute">45</span></td> <td class="separator">&nbsp;</td><td><span class="bootstrap-timepicker-meridian">AM</span></td></tr><tr><td><a href="#" data-action="decrementHour"><i class="glyphicon glyphicon-chevron-down"></i></a></td><td class="separator"></td><td><a href="#" data-action="decrementMinute"><i class="glyphicon glyphicon-chevron-down"></i></a></td><td class="separator">&nbsp;</td><td><a href="#" data-action="toggleMeridian"><i class="glyphicon glyphicon-chevron-down"></i></a></td></tr></tbody></table></div>
                                    <div class="form-group">
        								<?php echo form_label('Class Time *','class_start_time',['for'=>'class_time']);?><?php echo form_error('class_start_time'); ?>
                        				<div class="input-group">
                            				<div class="input-group-addon"><i class="fa fa-clock-o"></i></div>
                            				<?php echo form_input(['name'=>'class_start_time','class'=>'form-control timepicker','placeholder'=>'Enter class Start Time',
            								'value'=>set_value('class_start_time')]);?>
        								</div>
                                    </div>
                                </div>
                            </div>  
                        </div>
                         <div class="col-md-12">
                              <div class="col-md-3">
                                <div class="form-group">
    								<?php echo form_label('Duration in Hours *','class_duration',['for'=>'presenter_type']);?><?php echo form_error('class_duration'); ?>
                    				<?php  $course_duration  = array(''=>"Select Course Duration",
                                            '15'=>'15 Min','30'=>'30 Min','45'=>'45 Min','60'=>'1 Hour',
                                            '75'=>'1 Hour 15 min','90'=>'1 Hour 30 min','105'=>'1 Hour 45 min',
                                            '120'=>'2 Hour','135'=>'2 Hour 15 min','150'=>'2 Hour 30 min','165'=>'2 Hour 45 min',
                                            '180'=>'3 Hour','195'=>'3 Hour 15 min','210'=>'3 Hour 30 min','225'=>'3 Hour 45 min',
                                            '240'=>'4 Hour','255'=>'4 Hour 15 min','270'=>'4 Hour 30 min','285'=>'4 Hour 45 min',
                                            '300'=>'5 Hour');$options=array(''=>'Select Presenter','0'=>'Dummy','1'=>'Real');  ?>
                  					<?php echo form_dropdown('class_duration',$course_duration,set_value('class_duration',''),['class'=>'form-control']);?>
                                </div>	
                            </div>	
                          	<div class="col-md-3">
                                <div class="form-group">
    								<?php echo form_label('Extend Duration Mins','extend_duration',['for'=>'extend_duration']);?><?php echo form_error('extend_duration'); ?>
                    				<?php  $extend_duration  = array(''=>"Select Extend Duration",'05'=>'05 Min','10'=>'10 Min','15'=>'15 Min',
                                                '20'=>'20 Min','25'=>'25 Min','30'=>'30 min');?>
                    				<?php echo form_dropdown('extend_duration',$extend_duration,set_value('extend_duration',''),['class'=>'form-control']);?>
                                </div>
                            </div> 
                            <div class="col-md-3">
                                <div class="form-group">
    								<?php echo form_label('Per class basic Amount Payed By Student *','per_class_amount',['for'=>'per_class_amount']);?><?php echo form_error('per_class_amount'); ?>
                    				 <div class="input-group">
                        				 <div class="input-group-addon"><i class="fa fa-fw fa-rupee"></i></div>
                        				 <?php echo form_input(['name'=>'per_class_amount','class'=>'form-control','id'=>'','placeholder'=>'Enter Per class Amount Basic',
        								 'value'=>set_value('per_class_amount')]);?>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3">
                                <div class="form-group">
    								<?php echo form_label('Par Class Earning teacher *','per_class_earning',['for'=>'per_class_earning']);?><?php echo form_error('per_class_earning'); ?>
                    				 <div class="input-group">
                        				 <div class="input-group-addon"><i class="fa fa-fw fa-rupee"></i></div>
                        				 <?php echo form_input(['name'=>'per_class_earning','class'=>'form-control','id'=>'','placeholder'=>'Class per Amount pay to teacher ',
        								 'value'=>set_value('per_class_earning')]);?>
                                    </div>
                                </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>

<style>
.SumoSelect {
    display: block;
    position: relative;
    outline: none;
}

</style>
<script>$('#mdp-demo').multiDatesPicker();</script>