forked from drlippman/IMathAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed commit of the following: commit c985fb2 Author: drlippman <drlippman@yahoo.com> Date: Thu Apr 20 18:08:48 2017 -0700 Remove old code commit 92f2b90 Merge: 045112f 74ec75c Author: drlippman <drlippman@yahoo.com> Date: Thu Apr 20 18:06:23 2017 -0700 Merge branch 'master' into feature.user_prefs Conflicts: forms.php header.php commit 045112f Author: drlippman <drlippman@yahoo.com> Date: Tue Apr 18 19:10:28 2017 -0700 Update help with user prefs Put timezone user pref last commit 169244b Author: drlippman <drlippman@yahoo.com> Date: Mon Apr 3 20:57:15 2017 -0700 Rename migration number commit df84aa0 Author: drlippman <drlippman@yahoo.com> Date: Mon Apr 3 18:54:45 2017 -0700 Adjust loginpage example to remove a11y settings commit 4e10007 Author: drlippman <drlippman@yahoo.com> Date: Mon Apr 3 18:54:07 2017 -0700 Adjust LTI launch to use userprefs Remove accessibility options from LTI launch page Auto-submit tzname detection page if no assess timelimit commit 4d67d6f Author: drlippman <drlippman@yahoo.com> Date: Mon Apr 3 18:53:15 2017 -0700 Move user preference loading into include file Remove old accessibility handling code commit 612bca0 Author: drlippman <drlippman@yahoo.com> Date: Mon Apr 3 18:51:34 2017 -0700 Bug fix top vs parent reference in GB_hide commit 837572f Author: David Lippman <drlippman@yahoo.com> Date: Sat Mar 25 02:31:20 2017 -0700 Add warning when login tz doesn't match active tz commit aaa9709 Author: drlippman <drlippman@yahoo.com> Date: Tue Mar 21 09:14:06 2017 -0700 Delete user_prefs on user delete commit 2fb45cf Author: drlippman <drlippman@yahoo.com> Date: Sat Mar 18 11:17:32 2017 -0700 Add LTI page for editing userprefs Add links from lti views commit 0e897f9 Author: drlippman <drlippman@yahoo.com> Date: Sat Mar 18 10:07:10 2017 -0700 Update branch to use new migrations approach commit aa13cd1 Merge: 682bd2b 7146d1e Author: drlippman <drlippman@yahoo.com> Date: Sat Mar 18 09:53:40 2017 -0700 Merge branch 'master' into feature.user_prefs Conflicts: assessment/showtest.php upgrade.php validate.php commit 682bd2b Author: drlippman <drlippman@yahoo.com> Date: Tue Mar 14 17:08:25 2017 -0700 Move userpref handling to an include file commit cd325f7 Author: drlippman <drlippman@yahoo.com> Date: Mon Mar 13 21:17:01 2017 -0700 Implement new userprefs commit 345136b Merge: 03b0378 8b5ed89 Author: drlippman <drlippman@yahoo.com> Date: Mon Mar 13 19:33:06 2017 -0700 Merge branch 'feature.user_prefs' of github.com:drlippman/IMathAS into feature.user_prefs commit 03b0378 Merge: b7a7df4 0b2fa71 Author: drlippman <drlippman@yahoo.com> Date: Mon Mar 13 19:30:44 2017 -0700 Merge branch 'master' of github.com:drlippman/IMathAS into feature.user_prefs commit 8b5ed89 Author: David Lippman <drlippman@yahoo.com> Date: Mon Mar 13 19:25:37 2017 -0700 Work on forms for user prefs commit b7a7df4 Author: drlippman <drlippman@yahoo.com> Date: Sat Mar 11 22:22:41 2017 -0800 Initial work on user a11y and display prefs
- Loading branch information
Showing
16 changed files
with
654 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
//IMathAS: User preference editing for LTI users | ||
|
||
require('../validate.php'); | ||
require('../includes/userprefs.php'); | ||
$action = "ltiuserprefs.php?cid=$cid"; | ||
if (isset($_GET['greybox'])) { | ||
$flexwidth = true; | ||
$nologo = true; | ||
$action .= "&greybox=true"; | ||
$greybox = true; | ||
} else { | ||
$greybox = false; | ||
} | ||
$placeinhead = "<script type=\"text/javascript\" src=\"$imasroot/javascript/jstz_min.js\" ></script>"; | ||
require('../header.php'); | ||
|
||
if (isset($_POST['mathdisp'])) { | ||
storeUserPrefs(); | ||
echo '<p>'._('Preferences saved. Your new preferences will go into effect when you visit a new page or load the current page.').'</p>'; | ||
if ($greybox) { | ||
echo '<input type="button" onclick="parent.GB_hide()" value="'._('Done').'" />'; | ||
} | ||
} else { | ||
echo '<div id="headerforms" class="pagetitle"><h2>'._('User Preferences').'</h2></div>'; | ||
echo "<form enctype=\"multipart/form-data\" method=post action=\"$action\">\n"; | ||
showUserPrefsForm(); | ||
echo "<div class=submit><input type=submit value='Update Info'></div>\n"; | ||
echo "</form>\n"; | ||
} | ||
|
||
require('../footer.php'); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.