コード例 #1
0
ファイル: tiki-import_sheet.php プロジェクト: noikiy/owaspbwa
    }
    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();
    $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);
}
$cat_type = 'sheet';
$cat_objid = $_REQUEST["sheetId"];
include_once "categorize_list.php";
$section = 'sheet';
include_once 'tiki-section_options.php';
ask_ticket('sheet');