";
}
if($hasWriteAccess)
{
$edit_link="";
}
if($hasExecuteAccess)
{
$delete_link="";
}
$credit_to=$row1['credit_to'];
$credit_to_name="";
if($credit_to=="1"){
$credit_to_name="All Employees";
}else if($credit_to=="2"){
$credit_to_name="Employee Categories";
}else if($credit_to=="3"){
$credit_to_name="Specific Employee";
}
$employee_categories="";
$emp_cat_ids=array();
if($row1['emp_cat_id']!=null && $row1['emp_cat_id']!=""){
$emp_cat_ids= explode(",",$row1['emp_cat_id']);
for($i=0;$i $row1['assign_training_id'],
'cell' => array($count++,$credit_to_name, $employee_categories,$employee_name,$training_schedule,date_format(date_create($row1['date_assigned']),"d-M-Y "),$links)
);
}
$data['rows'][] = array(
'id' => $row['filterkey'],
'cell' => array(
'',
"",
"",
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
'',
''
)
);
echo json_encode($data);
?>