4 * http://opencaps.atrc.utoronto.ca
\r
6 * Copyright 2009 Heidi Hazelton
\r
7 * Adaptive Technology Resource Centre, University of Toronto
\r
9 * Licensed under the Educational Community License (ECL), Version 2.0.
\r
10 * You may not use this file except in compliance with this License.
\r
11 * http://www.opensource.org/licenses/ecl2.php
\r
15 define('INCLUDE_PATH', 'include/');
\r
16 require(INCLUDE_PATH.'vitals.inc.php');
\r
18 if (isset($_POST['remote_submit'])) {
\r
19 //$this_proj->remoteUpdate($_SESSION['rid']);
\r
20 $this_system->putCaps($this_proj->id);
\r
21 } else if (isset($_POST['format'])) {
\r
22 $this_proj->exportCaption($_POST['format']);
\r
25 require(INCLUDE_PATH.'header.inc.php');
\r
29 <script language="javascript" type="text/javascript" src="js/export.js"></script>
\r
32 <form action="export.php" method="post" id="form">
\r
34 <?php if (isset($systems) && isset($_SESSION['rid'])) { ?>
\r
35 <h3>Send Captions to <?php echo $systems[$_SESSION['rid']]['name']; ?></h3>
\r
36 <p>If you are finished captioning this project, use the button below to update the system with your caption file.</p>
\r
37 <p><input type="submit" name="remote_submit" value="Submit Captions to <?php echo $systems[$_SESSION['rid']]['name']; ?>" /></p>
\r
40 <h3>Export Caption File</h3>
\r
41 <p>You may export your captions in a variety of formats. Choose a format to receive a download of that caption file:</p>
\r
43 <input type="hidden" name="format" />
\r
44 <ul id="export-list">
\r
45 <!-- li><a href="javascript:set_format('json')">Complete Package</a><br />Zip of original movie, caption file, SMIL file, and accessible html player</li -->
\r
46 <li><a href="javascript:set_format('DFXP')">Timed Text (DFXP)</a></li>
\r
47 <li><a href="javascript:set_format('DvdStl')">DVD STL</a></li>
\r
48 <li><a href="javascript:set_format('MicroDvd')">MicroDVD</a></li>
\r
49 <!-- li><a href="javascript:set_format('MPlayer')">MPlayer</a></li -->
\r
50 <li><a href="javascript:set_format('QTtext')">QT text</a></li>
\r
51 <!-- li><a href="javascript:set_format('RealText')">Real Text</a></li -->
\r
52 <li><a href="javascript:set_format('Sami')">SAMI</a></li>
\r
53 <li><a href="javascript:set_format('SubRipSrt')">SubRip</a></li>
\r
54 <li><a href="javascript:set_format('SubViewer')">SubViewer</a></li>
\r
55 <li><a href="javascript:set_format('json')">JSON for OpenCaps</a></li>
\r
56 <!-- li><a href="javascript:set_format('Scc')">SCC</a></li -->
\r
59 <h3>Export Transcript</h3>
\r
61 <!-- ul id="export-list">
\r
62 <li><a href="javascript:set_format('plain')">Transcript</a> - a plain text file of the captions, separated by new lines</li>
\r
66 if (extension_loaded('zip')) { ?>
\r
67 <h3>Export Complete Project</h3>
\r
68 <ul id="export-list">
\r
69 <li><a href="javascript:set_format('all')">Complete Package</a> - .zip of original movie, caption file, SMIL file (layout in preview), and accessible html player</li>
\r
75 <p>Once you have exported your work to save it, you may now <a href="start.php"><img style="margin-bottom:-3px;" src="images/cross.png" alt="" /> <strong>Close</strong></a> this project.</p>
\r
77 <?php require(INCLUDE_PATH.'footer.inc.php'); ?>
\r