4 * http://opencaps.atrc.utoronto.ca
6 * Copyright 2009 Heidi Hazelton
7 * Adaptive Technology Resource Centre, University of Toronto
9 * Licensed under the Educational Community License (ECL), Version 2.0.
10 * You may not use this file except in compliance with this License.
11 * http://www.opensource.org/licenses/ecl2.php
15 define('INCLUDE_PATH', 'include/');
16 require(INCLUDE_PATH.'vitals.inc.php');
18 if (isset($_POST['submit-name'])) {
19 $this_proj->editName($_POST['name']);
20 } if (isset($_POST['submit-caps'])) {
21 $this_proj->importCaptions($_FILES['caption_file']);
25 require(INCLUDE_PATH.'header.inc.php');
29 <script language="javascript" type="text/javascript" src="js/settings.js"></script>
33 <h3>Project Settings</h3>
34 <p>Edit your project's settings here.</p>
36 <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" id="form" enctype="multipart/form-data">
39 <p><?php echo $this_proj->name; ?>
40 <?php if (!isset($_SESSION['rid'])) { ?> (<a href="#" onclick="javascript:hide_all();$('#edit-name').show();">Edit</a>)</p> <?php } ?>
43 New project name: <input type="input" name="name" value="" /> <input type="submit" class='button' style='width:6em;' name="submit-name" value="Submit" />
47 <p><a href="#" onclick="javascript:hide_all();$('#edit-caps').show();">Import caption file</a></p>
50 <p>Uploading a new caption file will delete all existing captions. Make sure to backup your project (<a href="export.php">Export</a> Json file) before doing this.</p>
51 Caption File: <input type="file" name="caption_file" /> <input type="submit" name="submit-caps" class='button' style='width:6em;' value="Submit" />
54 <!-- h4>Media File</h4>
55 <p><?php if (substr($this_proj->media_loc,0, 7) == "http://") echo $this_proj->media_loc; else echo end(explode("/", $this_proj->media_loc)); ?> (<a href="#" onclick="javascript:hide_all();$('#edit-media').show();">Edit</a>)</p -->
59 Upload a new version of your media. The duration of the new media file must match that of the existing media.</p>
60 <!-- input type="file" name="media_file" /> <input type="submit" name="submit-media" class='button' style='width:6em;' value="Submit" / -->
63 <!-- h4>Permissions</h4>
65 <p>People who can edit this project: You (<a href="#" onclick="javascript:hide_all();$('#edit-perms').show();">Edit</a>) </p>
69 Permissions will allow for collaborative editing by letting you give other users access to your project.</p>
71 <select name="collab" size="4" multiple="multiple">
73 <input type="submit" name="submit-perms" class='button' style='width:6em;' value="Submit" />
79 <?php require(INCLUDE_PATH.'footer.inc.php'); ?>