
		   <div class="form-group">
                        <?php //$nm_f="target[$a]";?> 
			   <div class="col-sm-2" style="border-bottom: 1px solid #2B7DBC;">
                               <label for="<?php echo $nm_f?>"><strong>Activity</strong></label>
                           </div><div class="col-sm-4"><strong>Target</strong></div>
                   </div>

<?php
$a=0;
foreach($activity as $act){?>
		   <div class="form-group">
                        <?php $nm_f="target[$a]";?> 
			   <div class="col-sm-2">
                               <label for="<?php echo $nm_f?>"><?php echo $act['notes']?></label>
				   </div><div class="col-sm-9">
                                       <div class="col-sm-3">
                                   <?php echo form_input($nm_f,GetValue('target','sv_customer_plan_default',array('sales'=>'where/'.$_POST['s'],'activity'=>'where/'.$act['id'])),'class="form-control" onchange="" id="'.$nm_f.'"'); ?></div>
                                   <?php echo form_input("activity[$a]",$act['id'],'class="" onchange="" id="'.$nm_f.'" style="display:none"'); ?>
			   </div>
                   </div>
<?php
$a++;

}?>