* Easy set variables */ /* Array of database columns which should be read and sent back to DataTables. Use a space where * you want to insert a non-database field (for example a counter or static image) */ $aColumns = array( ''); /* Indexed column (used for fast and accurate table cardinality) */ $sIndexColumn = "id"; /* DB table to use */ $sTable = "ajax"; $f2f_records_count =view_session_face2face_sql($userid,$sessiontype,$requestDatacount,$starttime,$endtime,$batchid); $f2f_records =view_session_face2face_sql($userid,$sessiontype,$requestData,$starttime,$endtime,$batchid); //print_object($f2f_records); $data = array(); foreach($f2f_records as $f2f_record) { // preparing an array $nestedData=array(); $nestedData[] = batches_table_dispaly($f2f_record,$location,$tab,$userid,$sessiontype,$f2f_renderer,$batchid); $data[] = $nestedData; } //if ( $requestData['sSearch'] != "" ){ // $iTotal = count($data); //}else{ // $iTotal = count($f2f_records_count);
padding-left: 6px !important; margin: 0px; border-left:none !important; }#page-mod-facetoface-view_sessions .tmhead2 { text-align: left !important; color: #FFF; font-size: 22px !important; padding: 11px !important; width: 85%; float: left !important; border-radius: 0px !important; } </style>'; echo '<a href="'.$CFG->wwwroot.'/course/modedit.php?add=facetoface&type=&course=1§ion=1&return=0" id="createsession_link" > Create New + </a>'; } $f2f_records =view_session_face2face_sql($userid,$sessiontype); foreach($f2f_records as $frecord){ $batchinfo=$f2f_renderer->define_batch_status_icons($frecord);//*This function returns define_batch_status_icons based on there capabilities*// } echo $batchinfo; if($batchid==0){ echo '<div class="session_type_select">'.$OUTPUT->render($sch).'</div>'; if(( $filter_starttime!=0 || $filter_endtime!=0) && $daterangemform->is_submitted()){ $collapse_date =0; }else{ $collapse_date=1; } print_collapsible_region_start('', 'daterange-filter', get_string('datesearch','facetoface'),false,$collapse_date);