BrowzOS/sprdsht/spreadsheet_offline.html

77 lines
3.8 KiB
HTML

<!--
/**************************************************************************\
* Simple Groupware 0.632 *
* http://www.simple-groupware.de *
* Copyright (C) 2002-2010 by Thomas Bley *
* ------------------------------------------------------------------------ *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License Version 2 *
* as published by the Free Software Foundation; only version 2 *
* of the License, no later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* Version 2 along with this program; if not, write to the Free Software *
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, *
* MA 02111-1307, USA. *
\**************************************************************************/
-->
<html>
<head>
<title>Simple Spreadsheet</title>
<!--
This website is brought to you by Simple Groupware
Simple Groupware is an open source Groupware and Web Application Framework created by Thomas Bley and licensed under GNU GPL v2.
Simple Groupware is copyright 2002-2010 by Thomas Bley. Extensions and translations are copyright of their respective owners.
More information and documentation at http://www.simple-groupware.de/
-->
<link media="all" href="styles.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="spreadsheet.js" type="text/javascript"></script>
<script src="json.js" type="text/javascript"></script>
</head>
<body>
<!--
Simple Spreadsheet is an open source Component created by Thomas Bley and licensed under GNU GPL v2.
Simple Spreadsheet is copyright 2006-2010 by Thomas Bley.
Translations writte by Sophie Lee.
More information and documentation at http://www.simple-groupware.de/
-->
<div class="data" id="data"></div>
<div id="source" align="center">
<script>
var lang = "en";
if (m = /lang=([^&]*)/.exec(document.location.href)) {
if (m[1]) lang = m[1];
}
loadScriptFile("translations/"+lang+".js");
if (lang=="de") {
loadSheetFromUrl("examples/features_de_offline.js");
} else {
loadSheetFromUrl("examples/features_en_offline.js");
}
</script>
<script>
var out = "";
out += trans("Simple Spreadsheet code / CSV data / Tab separated values (copy/paste from Excel):");
out += '<br><textarea id="code" wrap="off"></textarea><br>';
out += '<table class="default_table" style="width:60%;">';
out += '<tr><td colspan="3"><input type="button" value="'+trans("Load")+'" onclick="load(getObj(\'code\').value);" style="width:100%;"></td>';
out += '<td><input type="button" value="'+trans("Cancel")+'" onclick="cancelLoad();"></td></tr>';
out += '<tr><td>&nbsp;</td></tr>';
out += '<tr><td>'+trans("Url")+':</td>';
out += '<td style="width:100%;"><input type="Text" id="code_url" value="" style="width:100%;"></td>';
out += '<td><input type="button" value="'+trans("Load")+'" onclick="loadSheetFromUrl(getObj(\'code_url\').value);"></td>';
out += '<td style="white-space:nowrap;">('+trans("Only Javascript-like syntax")+')</td>';
out += '</tr></table>';
document.write(out);
</script>
</div>
</body>
</html>