Example #1
0
 public static function mapFields($mapping, $excel, $numRows, $filesystemValid, &$filesystemErrors, $tableValid, $tableErrors, $tableWarnings)
 {
     global $lang;
     //if filesystem contained errors
     if ($filesystemValid !== 0 || $tableValid !== 0) {
         $fallback = 'startOver';
         include 'views/error.php';
         return;
     }
     global $maxRows;
     global $maxCols;
     global $template;
     if ($mapping != null && array_key_exists("template", $mapping)) {
         $template = $mapping['template'];
     }
     $js_vars = View::buildJSVars($excel, $maxRows);
     echo $js_vars;
     include 'views/mapFields.php';
 }