if (!$grid->import($handler)) { $smarty->assign('msg', "Impossible to import the file."); $smarty->display("error.tpl"); die; } $handler = new TikiSheetDatabaseHandler($sheetId); $grid->export($handler); ob_start(); $handler = new TikiSheetOutputHandler(); $grid->export($handler); $smarty->assign("grid_content", ob_get_contents()); ob_end_clean(); } else { $list = array(); $encoding = new Encoding(); $charsetList = $encoding->get_input_supported_encodings(); $handlers = TikiSheet::getHandlerList(); foreach ($handlers as $key => $handler) { $temp = new $handler(); if (!$temp->supports(TIKISHEET_LOAD_DATA | TIKISHEET_LOAD_CALC)) { continue; } $list[$key] = array("name" => $temp->name(), "version" => $temp->version(), "class" => $handler); } $smarty->assign_by_ref("handlers", $list); $smarty->assign_by_ref("charsets", $charsetList); } $cat_type = 'sheet'; $cat_objid = $_REQUEST["sheetId"]; include_once "categorize_list.php"; include_once 'tiki-section_options.php';