Skip to content

Commit

Permalink
MDL-14187 "Improve tablelib - improve api and add functionality to do…
Browse files Browse the repository at this point in the history
…wnload table contents in a variety of formats - XLS, ODS and CSV"
  • Loading branch information
jamiesensei committed Jun 6, 2008
1 parent 6c4ed85 commit 20e1f1c
Show file tree
Hide file tree
Showing 3 changed files with 846 additions and 149 deletions.
32 changes: 32 additions & 0 deletions lang/en_utf8/help/tableexportformats.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<h1>Downloading Table Data</h1>

<p>You may want to download the data displayed in the on-screen
table for further analysis. You can choose between the many file
formats for downloaded data shown below.
</p><p>In each case data will be
presented as a table with appropriate column titles, as on the screen.
The downloaded table is :</p>
<ul><li>not paged, all data for all pages will be downloaded in a
single file.</li>
<li>not filtered by username initials. (Some on screen tables of data about users allows you to
select to only display data for users with selected first / last name initials).</li>
<li>not affected by sorting by columns that a user can do on the on screen table.</li>
</ul>

<h2>Microsoft Excel Spreadsheet format.</h2>
<p>You will get an .xls spreadsheet document.</p>
<h2>OpenDocument Spreadsheet (ODS) format.</h2>
<p>You will get an .ods spreadsheet document. This format
can be opened with OpenOffice.org, KOffice, Google Docs,
NeoOffice, Zoho, IBM Lotus Symphony and Corel WordPerfect Office X4.</p>
<h2>A tab seperated values text file</h2>
<p>In this case, you will get a
regular text file. A line for each row in the table with data
separated by <em>tabstops</em>. Can be opened by many different apps.</p>
<h2>A comma seperated values text file</h2>
<p>In this case, you will get a
regular text file. A line for each row in the table with data
separated by <em>commas</em>. Can be opened by many different apps.</p>
<h2>An unpaged XHTML document</h2>
<p>In this case, you will get a saveable, printable xhtml document without the headers
and footers that you have on a normal Moodle page.</p>
9 changes: 9 additions & 0 deletions lang/en_utf8/table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php // $Id$
$string['downloadas'] = 'Download table data as';
$string['downloadexcel'] = 'a Microsoft Excel spreadsheet';
$string['downloadods'] = 'an OpenDocument Spreadsheet (ODS)';
$string['downloadtsv'] = 'a tab seperated values text file';
$string['downloadcsv'] = 'a comma seperated values text file';
$string['downloadxhtml'] = 'an unpaged XHTML document';
$string['tableexportformats'] = 'Downloading Table Data';
?>
Loading

0 comments on commit 20e1f1c

Please sign in to comment.