Issue-4845: Merged in branch 'gsoc11_benj' for the enhanced mobile theme.
authorCindy Qi Li <cli@ocad.ca>
Thu, 15 Sep 2011 16:00:54 +0000 (12:00 -0400)
committerCindy Qi Li <cli@ocad.ca>
Thu, 15 Sep 2011 16:00:54 +0000 (12:00 -0400)
479 files changed:
.project [new file with mode: 0644]
docs/about.php
docs/admin/config_edit.php
docs/admin/cron_config.php
docs/admin/fix_content.php
docs/admin/index.php
docs/confirm.php
docs/contact_instructor.php
docs/content.php
docs/documentation/developer/themes.html
docs/inbox/index.php
docs/inbox/sent_messages.php
docs/include/lib/constants.inc.php
docs/include/vitals.inc.php
docs/jscripts/jQueryMobile/jquery.mobile-1.0b1.min.js [new file with mode: 0644]
docs/mods/_core/backups/create.php
docs/mods/_core/backups/edit.php
docs/mods/_core/backups/index.php
docs/mods/_core/backups/restore.php
docs/mods/_core/backups/upload.php
docs/mods/_core/cats_categories/admin/course_categories.php
docs/mods/_core/cats_categories/module.php
docs/mods/_core/content/index.php
docs/mods/_core/courses/admin/courses.php
docs/mods/_core/courses/admin/create_course.php
docs/mods/_core/courses/admin/default_mods.php
docs/mods/_core/courses/admin/default_side.php
docs/mods/_core/courses/html/course_properties.inc.php
docs/mods/_core/courses/module.php
docs/mods/_core/enrolment/create_course_list.php
docs/mods/_core/enrolment/export_course_list.php
docs/mods/_core/enrolment/html/enrollment.inc.php
docs/mods/_core/enrolment/import_course_list.php
docs/mods/_core/enrolment/module.php
docs/mods/_core/file_manager/module.php
docs/mods/_core/glossary/module.php
docs/mods/_core/glossary/tools/add.php
docs/mods/_core/glossary/tools/index.php
docs/mods/_core/groups/create.php
docs/mods/_core/groups/create_automatic.php
docs/mods/_core/groups/create_manual.php
docs/mods/_core/groups/module.php
docs/mods/_core/languages/language.php
docs/mods/_core/languages/language_add.php
docs/mods/_core/languages/language_edit.php
docs/mods/_core/languages/language_import.php
docs/mods/_core/languages/language_translate.php
docs/mods/_core/languages/module.php
docs/mods/_core/modules/details.php
docs/mods/_core/modules/index.php
docs/mods/_core/modules/install_modules.php
docs/mods/_core/modules/module.php
docs/mods/_core/modules/version_history.php
docs/mods/_core/properties/admin/edit_course.php
docs/mods/_core/users/admin_email.php
docs/mods/_core/users/admins/create.php
docs/mods/_core/users/admins/edit.php
docs/mods/_core/users/admins/index.php
docs/mods/_core/users/admins/log.php
docs/mods/_core/users/admins/my_edit.php
docs/mods/_core/users/admins/password.php
docs/mods/_core/users/instructor_requests.php
docs/mods/_core/users/master_list.php
docs/mods/_core/users/master_list_edit.php
docs/mods/_core/users/password_user.php
docs/mods/_core/users/user_enrollment.php
docs/mods/_core/users/users.php
docs/mods/_standard/announcements/add_news.php
docs/mods/_standard/announcements/edit_news.php
docs/mods/_standard/announcements/index.php
docs/mods/_standard/assignments/index_instructor.php
docs/mods/_standard/assignments/module.php
docs/mods/_standard/chat/manage/index.php
docs/mods/_standard/chat/manage/start_transcript.php
docs/mods/_standard/course_email/course_email.php
docs/mods/_standard/course_tools/module.php
docs/mods/_standard/course_tools/modules.php
docs/mods/_standard/course_tools/side_menu.php
docs/mods/_standard/faq/add_question.php
docs/mods/_standard/faq/add_topic.php
docs/mods/_standard/faq/edit_question.php
docs/mods/_standard/faq/edit_topic.php
docs/mods/_standard/faq/index_instructor.php
docs/mods/_standard/forums/add_forum.php
docs/mods/_standard/forums/admin/forum_add.php
docs/mods/_standard/forums/admin/forum_edit.php
docs/mods/_standard/forums/admin/forums.php
docs/mods/_standard/forums/edit_forum.php
docs/mods/_standard/forums/index.php
docs/mods/_standard/forums/lib/forums.inc.php
docs/mods/_standard/google_search/admin/module_prefs.php
docs/mods/_standard/gradebook/module.php
docs/mods/_standard/patcher/module.php
docs/mods/_standard/polls/tools/add.php
docs/mods/_standard/polls/tools/edit.php
docs/mods/_standard/polls/tools/index.php
docs/mods/_standard/reading_list/module.php
docs/mods/_standard/rss_feeds/add_feed.php
docs/mods/_standard/rss_feeds/edit_feed.php
docs/mods/_standard/rss_feeds/index.php
docs/mods/_standard/rss_feeds/preview.php
docs/mods/_standard/social/index_admin.php
docs/mods/_standard/statistics/course_stats.php
docs/mods/_standard/student_tools/module.php
docs/mods/_standard/support_tools/scaffolds.php
docs/mods/_standard/tile_search/admin/module_setup.php
docs/mods/_standard/tracker/tools/index.php
docs/mods/_standard/tracker/tools/page_student_stats.php
docs/mods/_standard/tracker/tools/student_usage.php
docs/search.php
docs/themes/default/about.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/courses/auto_enroll.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/courses/course_categories.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/courses/courses.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/courses/create_course.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/courses/default_mods.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/courses/default_side.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/courses/edit_course.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/courses/enrollment.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/courses/forum_add.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/courses/forum_edit.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/courses/forums.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/courses/privileges.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/courses/scaffolds.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/fix_content.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/index.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/modules/details.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/modules/index.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/modules/install_modules.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/modules/version_history.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/my_edit.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/patcher/index_admin.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/patcher/myown_patches.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/add_feed.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/config_edit.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/cron_config.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/edit_feed.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/index.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/index_admin.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/language.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/language_add.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/language_edit.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/language_editor.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/language_import.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/language_translate.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/module_prefs.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/module_setup.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/preview.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/system_preferences/themes/index.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/users/admin_email.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/users/create.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/users/default_preferences.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/users/edit.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/users/index.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/users/instructor_requests.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/users/log.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/users/master_list.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/users/master_list_edit.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/users/password.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/users/password_user.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/users/user_enrollment.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/users/users.tmpl.php [new file with mode: 0644]
docs/themes/default/confirm.tmpl.php [new file with mode: 0644]
docs/themes/default/contact_instructor.tmpl.php [new file with mode: 0644]
docs/themes/default/editor/edit_content_folder.tmpl.php
docs/themes/default/images/editor/arrange_content.tmpl.php [new file with mode: 0644]
docs/themes/default/images/editor/edit_content_folder.tmpl.php [new file with mode: 0644]
docs/themes/default/inbox/inbox.tmpl.php [new file with mode: 0644]
docs/themes/default/inbox/sent_messages.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/announcements/add_news.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/announcements/edit_news.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/announcements/index.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/assignments/add_assignment.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/assignments/index_instructor.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/backups/create.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/backups/edit.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/backups/index.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/backups/restore.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/backups/upload.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/chat/index.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/chat/start_transcript.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/content/index.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/content/page_student_stats.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/content/tracker/index.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/content/tracker/student_usage.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/course_email/course_email.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/course_tools/modules.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/course_tools/side_menu.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/enrolment/create_course_list.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/enrolment/export_course_list.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/enrolment/import_course_list.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/enrolment/index.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/enrolment/privileges.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/faq/add_question.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/faq/add_topic.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/faq/edit_question.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/faq/edit_topic.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/faq/index_instructor.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/forums/add_forum.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/forums/edit_forum.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/forums/index.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/glossary/add.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/glossary/edit.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/glossary/index.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/groups/create.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/groups/create_automatic.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/groups/create_manual.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/groups/index.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/polls/add.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/polls/edit.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/polls/index.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/reading_list/index_instructor.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/statistics/course_stats.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/statistics/tracker/my_stats.tmpl.php [new file with mode: 0644]
docs/themes/default/instructor/student_tools/instructor_index.tmpl.php [new file with mode: 0644]
docs/themes/default/registration.tmpl.php
docs/themes/default/search.tmpl.php [new file with mode: 0644]
docs/themes/default/styles.css
docs/themes/default/theme.cfg.php
docs/themes/default/theme_info.xml
docs/themes/default/users/index.tmpl.php
docs/themes/default/users/password_change.tmpl.php
docs/themes/default/users/preferences.tmpl.php
docs/themes/mobile/admin/courses/courses.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/courses/create_course.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/courses/default_mods.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/courses/edit_course.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/courses/enrollment.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/courses/forum_add.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/courses/forums.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/courses/scaffolds.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/index.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/modules/details.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/modules/index.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/modules/install_modules.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/modules/version_history.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/my_edit.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/patcher/index_admin.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/add_feed.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/config_edit.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/cron_config.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/edit_feed.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/index.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/index_admin.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/language.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/language_add.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/language_edit.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/language_editor.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/language_import.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/language_translate.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/module_prefs.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/module_setup.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/system_preferences/preview.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/users/admin_email.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/users/create.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/users/index.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/users/instructor_requests.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/users/log.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/users/master_list.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/users/user_enrollment.tmpl.php [new file with mode: 0644]
docs/themes/mobile/admin/users/users.tmpl.php [new file with mode: 0644]
docs/themes/mobile/android.css
docs/themes/mobile/blackberry.css
docs/themes/mobile/confirm.tmpl.php [new file with mode: 0644]
docs/themes/mobile/editor/edit_content_folder.tmpl.php [new file with mode: 0644]
docs/themes/mobile/editor/page_student_stats.tmpl.php [new file with mode: 0644]
docs/themes/mobile/images/arrow-up-black.png [new file with mode: 0644]
docs/themes/mobile/images/clr.gif [new file with mode: 0644]
docs/themes/mobile/images/down.png [new file with mode: 0644]
docs/themes/mobile/images/idi_background.png [new file with mode: 0644]
docs/themes/mobile/images/minus.png [new file with mode: 0644]
docs/themes/mobile/images/navbar_back_button_insetShadow_right.png [new file with mode: 0644]
docs/themes/mobile/images/navbar_normal_button_insetShadow.png
docs/themes/mobile/images/plus.png [new file with mode: 0644]
docs/themes/mobile/images/up.png [new file with mode: 0644]
docs/themes/mobile/images/white_listmenu_arrow.png [new file with mode: 0644]
docs/themes/mobile/inbox/inbox.tmpl.php [new file with mode: 0644]
docs/themes/mobile/inbox/sent_messages.tmpl.php [new file with mode: 0644]
docs/themes/mobile/include/footer.tmpl.php
docs/themes/mobile/include/header.tmpl.php
docs/themes/mobile/index.tmpl.php
docs/themes/mobile/instructor/announcements/add_news.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/announcements/edit_news.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/announcements/index.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/assignments/index_instructor.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/backups/edit.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/backups/index.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/chat/index.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/content/index.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/content/page_student_stats.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/content/tracker/index.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/content/tracker/student_usage.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/course_email/course_email.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/enrolment/index.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/faq/add_question.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/faq/add_topic.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/faq/edit_question.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/faq/edit_topic.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/faq/index_instructor.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/forums/add_forum.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/forums/edit_forum.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/forums/index.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/glossary/add.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/polls/add.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/polls/edit.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/polls/index.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/properties/course_properties.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/statistics/course_stats.tmpl.php [new file with mode: 0644]
docs/themes/mobile/instructor/statistics/tracker/my_stats.tmpl.php [new file with mode: 0644]
docs/themes/mobile/iphone.css
docs/themes/mobile/login.tmpl.php
docs/themes/mobile/mobile.css [new file with mode: 0644]
docs/themes/mobile/moz.css [new file with mode: 0644]
docs/themes/mobile/password_reminder.tmpl.php [new file with mode: 0644]
docs/themes/mobile/readme.txt
docs/themes/mobile/registration.tmpl.php [new file with mode: 0644]
docs/themes/mobile/social/index_public.tmpl.php
docs/themes/mobile/tablet.css [new file with mode: 0644]
docs/themes/mobile/users/browse.tmpl.php
docs/themes/mobile/users/index.tmpl.php
docs/themes/mobile/users/preferences.tmpl.php
docs/themes/simplified-desktop/TeraWurflRemoteClient.php [new file with mode: 0644]
docs/themes/simplified-desktop/about.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/courses/courses.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/courses/create_course.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/courses/default_mods.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/courses/edit_course.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/courses/enrollment.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/courses/forum_add.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/courses/forums.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/courses/scaffolds.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/modules/details.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/modules/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/modules/install_modules.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/modules/version_history.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/my_edit.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/patcher/index_admin.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/add_feed.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/config_edit.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/cron_config.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/edit_feed.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/index_admin.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/language.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/language_add.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/language_edit.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/language_editor.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/language_import.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/language_translate.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/module_prefs.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/module_setup.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/system_preferences/preview.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/users/admin_email.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/users/create.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/users/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/users/instructor_requests.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/users/log.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/users/master_list.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/users/user_enrollment.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/admin/users/users.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/android.css [new file with mode: 0644]
docs/themes/simplified-desktop/blackberry.css [new file with mode: 0644]
docs/themes/simplified-desktop/confirm.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/content.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/editor/edit_content_folder.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/editor/page_student_stats.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/forms.css [new file with mode: 0644]
docs/themes/simplified-desktop/images/arrow-up-black.png [new file with mode: 0644]
docs/themes/simplified-desktop/images/arrow-up.png [new file with mode: 0644]
docs/themes/simplified-desktop/images/clr.gif [new file with mode: 0644]
docs/themes/simplified-desktop/images/down.png [new file with mode: 0644]
docs/themes/simplified-desktop/images/idi_background.png [new file with mode: 0644]
docs/themes/simplified-desktop/images/minus.png [new file with mode: 0644]
docs/themes/simplified-desktop/images/navbar_back_button_insetShadow_right.png [new file with mode: 0644]
docs/themes/simplified-desktop/images/navbar_normal_button_insetShadow.png [new file with mode: 0644]
docs/themes/simplified-desktop/images/plus.png [new file with mode: 0644]
docs/themes/simplified-desktop/images/up.png [new file with mode: 0644]
docs/themes/simplified-desktop/images/white_listmenu_arrow.png [new file with mode: 0644]
docs/themes/simplified-desktop/inbox/inbox.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/inbox/sent_messages.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/include/TeraWurflRemoteClient.php [new file with mode: 0644]
docs/themes/simplified-desktop/include/footer.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/include/header.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/announcements/add_news.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/announcements/edit_news.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/announcements/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/assignments/index_instructor.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/backups/edit.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/backups/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/chat/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/content/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/content/page_student_stats.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/content/tracker/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/content/tracker/student_usage.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/course_email/course_email.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/enrolment/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/faq/add_question.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/faq/add_topic.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/faq/edit_question.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/faq/edit_topic.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/faq/index_instructor.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/forums/add_forum.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/forums/edit_forum.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/forums/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/glossary/add.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/polls/add.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/polls/edit.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/polls/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/properties/course_properties.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/statistics/course_stats.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/instructor/statistics/tracker/my_stats.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/iphone.css [new file with mode: 0644]
docs/themes/simplified-desktop/login.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/mobile.css [new file with mode: 0644]
docs/themes/simplified-desktop/moz.css [new file with mode: 0644]
docs/themes/simplified-desktop/password_reminder.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/print.css [new file with mode: 0644]
docs/themes/simplified-desktop/readme.txt [new file with mode: 0644]
docs/themes/simplified-desktop/registration.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/rtl.css [new file with mode: 0644]
docs/themes/simplified-desktop/screenshot.gif [new file with mode: 0644]
docs/themes/simplified-desktop/social/activities.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/admin/delete_applications.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/application_settings.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/applications.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/basic_profile.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/connections.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/edit_profile.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/edit_profile/account_settings.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/edit_profile/edit_additional.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/edit_profile/edit_contact.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/edit_profile/edit_education.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/edit_profile/edit_personal.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/edit_profile/edit_position.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/edit_profile/edit_representation.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/edit_profile/edit_websites.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/friend_list.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/index_public.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/individual_application.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/notifications.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/oauth/authorize.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/oauth/footer.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/oauth/header.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/profile_picture.html.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/settings/account_settings.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/settings/application_settings.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/settings/privacy_settings.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/settings/settings_menu.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/sgroup_create.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/sgroup_edit.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/sgroup_invite.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/sgroup_list.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/sgroup_search.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/sgroup_view.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/sgroups.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/sprofile.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/tiny_applications.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/social/tiny_sgroups.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/tablet.css [new file with mode: 0644]
docs/themes/simplified-desktop/test.html [new file with mode: 0644]
docs/themes/simplified-desktop/theme.cfg.php [new file with mode: 0644]
docs/themes/simplified-desktop/theme_info.xml [new file with mode: 0644]
docs/themes/simplified-desktop/users/browse.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/users/email_change.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/users/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/users/password_change.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/users/pref_wizard/index.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/users/pref_wizard/initialize.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/users/preferences.tmpl.php [new file with mode: 0644]
docs/themes/simplified-desktop/users/profile.tmpl.php [new file with mode: 0644]
docs/themes/tablet1/include/footer.tmpl.php [new file with mode: 0644]
docs/themes/tablet1/include/header.tmpl.php [new file with mode: 0644]
docs/themes/tablet1/jquery.mobile-1.0b1.css [new file with mode: 0644]
docs/themes/tablet1/readme.txt [new file with mode: 0644]
docs/themes/tablet1/theme.cfg.php [new file with mode: 0644]
docs/themes/tablet1/theme_info.xml [new file with mode: 0644]
docs/users/index.php

diff --git a/.project b/.project
new file mode 100644 (file)
index 0000000..3c35977
--- /dev/null
+++ b/.project
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>GSoC2011</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+       </buildSpec>
+       <natures>
+       </natures>
+</projectDescription>
index 407fc9c..f124a63 100644 (file)
@@ -18,8 +18,6 @@ require(AT_INCLUDE_PATH.'/vitals.inc.php');
 require(AT_INCLUDE_PATH.'header.inc.php');
 
 ?>
-<p><?php echo _AT('atutor_is');  ?></p>
-
-<?php echo _AT('atutor_links');  ?>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php 
+$savant->display('about.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 54cffa0..690a33a 100644 (file)
@@ -141,260 +141,6 @@ if (!isset($_POST['submit'])) {
 }
 ?>
 
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
-<div class="input-form">
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="sitename"><?php echo _AT('site_name'); ?></label><br />
-               <input type="text" name="site_name" size="40" maxlength="60" id="sitename" value="<?php if (!empty($_POST['site_name'])) { echo $stripslashes(htmlspecialchars($_POST['site_name'])); } else { echo $_config['site_name']; } ?>" />
-       </div>
-
-       <div class="row">
-               <label for="home_url"><?php echo _AT('home_url'); ?></label><br />
-
-               <input type="text" name="home_url" size="50" maxlength="60" id="home_url" value="<?php if (!empty($_POST['home_url'])) { echo $stripslashes(htmlspecialchars($_POST['home_url'])); } else { echo $_config['home_url']; } ?>"  />
-       </div>
-
-       <div class="row">
-               <label for="default_lang"><?php echo _AT('default_language'); ?></label><br />
-
-               <?php if (!empty($_POST['default_language'])) { 
-                               $select_lang = $_POST['default_language']; 
-                       } else { 
-                               $select_lang = $_config['default_language'];
-                       } ?>
-               <?php if ($disabled): ?>
-                       <select name="default_language" id="default_lang" disabled="disabled"><option><?php echo $select_lang; ?></option></select>
-               <?php else: ?>
-                       <?php $languageManager->printDropdown($select_lang, 'default_language', 'default_lang'); ?>
-               <?php endif; ?>
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="cemail"><?php echo _AT('contact_email'); ?></label><br />
-               <input type="text" name="contact_email" id="cemail" size="40" value="<?php if (!empty($_POST['email'])) { echo $stripslashes(htmlspecialchars($_POST['email'])); } else { echo $_config['contact_email']; } ?>"  />
-       </div>
-
-       <div class="row">
-               <label for="time_zone"><?php echo _AT('time_zone'); ?></label><br />
-
-               <?php
-
-
-               // Replace this hack to use the PHP timezone functions when the PHP requirement is raised to 5.3
-               global $utc_timezones; // set in include/lib/constants.inc.php
-               $local_offset = ((date(Z)/3600));
-               echo '<select name="time_zone" id="time_zone">';        
-                       echo '<option value="0">'._AT('none').'</option>';
-               foreach ($utc_timezones as $zone => $offset){
-                       if(($offset[1]) == $_config['time_zone']){
-                       echo '<option value="'.($offset[1]).'" selected="selected">'.$offset[1].'</option>';
-                       }else{
-                       echo '<option value="'.($offset[1]).'">'.$offset[1].'</option>';
-
-                       }
-               }
-               echo "</select>";
-
-
-               //echo '<input type="text" name="time_zone" value="'.$_config['time_zone'].'" size="5" maxlength="5"/> ';
-
-               // If PHP 5+ generate a list of timezones
-/*
-               if(phpversion() >= 5){
-                       $timezone_names = timezone_identifiers_list();
-               }else{
-               // if less than PHP version 5, read a text file to generate the menu
-                       $timezone_names = file("timezones.txt");
-               }
-
-               echo '<select name="time_zone">';
-               foreach($timezone_names as $timezone_name){
-                       if($timezone_name == $_config{'time_zone'}){
-                               $selected = ' selected="selected"';
-                       }
-                       echo '<option'.$selected.'>'.$timezone_name.'</option>';
-                       $selected = '';
-               }
-               echo '</select>';
-*/
-echo AT_date(_AT('server_date_format'), '', AT_DATE_MYSQL_DATETIME);
-?>
-       </div>
-
-       <div class="row">
-               <label for="maxfile"><?php echo _AT('maximum_file_size'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_file_size']; ?>)<br />
-               <input type="text" size="10" name="max_file_size" id="maxfile" value="<?php if (!empty($_POST['max_file_size'])) { echo $stripslashes(htmlspecialchars($_POST['max_file_size'])); } else { echo $_config['max_file_size']; } ?>"  /> <?php echo _AT('bytes'); ?>
-       </div>
-
-       <div class="row">
-               <label for="maxcourse"><?php echo _AT('maximum_course_size'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_course_size']; ?>)<br />
-               <input type="text" size="10" name="max_course_size" id="maxcourse" value="<?php if (!empty($_POST['max_course_size'])) { echo $stripslashes(htmlspecialchars($_POST['max_course_size'])); } else { echo $_config['max_course_size']; } ?>"  /> <?php echo _AT('bytes'); ?>
-       </div>
-
-       <div class="row">
-               <label for="float"><?php echo _AT('maximum_course_float'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_course_float']; ?>)<br />
-               <input type="text" size="10" name="max_course_float" id="float" value="<?php if (!empty($_POST['max_course_float'])) { echo $stripslashes(htmlspecialchars($_POST['max_course_float'])); } else { echo $_config['max_course_float']; } ?>"  /> <?php echo _AT('bytes'); ?>
-       </div>
-
-       <div class="row">
-               <label for="maximum_login_attempt"><?php echo _AT('maximum_login_attempt'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_login']; ?>)<br />
-               <input type="text" size="10" name="max_login" id="maximum_login_attempt" value="<?php if (!empty($_POST['max_login'])) { echo $stripslashes(htmlspecialchars($_POST['max_login'])); } else { echo $_config['max_login']; } ?>"  /> <?php echo _AT('times'); ?>
-       </div>
-       
-       <div class="row">
-               <?php echo _AT('display_name_format'); ?> (<?php echo _AT('default'); ?>: <?php echo _AT($display_name_formats[$_config_defaults['display_name_format']], _AT('login_name'), _AT('first_name'), _AT('second_name'), _AT('last_name')); ?>)<br />
-               <?php foreach ($display_name_formats as $key => $value): ?>
-                       <input type="radio" name="display_name_format" value="<?php echo $key; ?>" id="dnf<?php echo $key; ?>" <?php if ($_config['display_name_format'] == $key) { echo 'checked="checked"'; }?> /><label for="dnf<?php echo $key; ?>"><?php echo _AT($value, _AT('login_name'), _AT('first_name'), _AT('second_name'), _AT('last_name')); ?></label><br />
-               <?php endforeach; ?>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('master_list_authentication'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['master_list'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="master_list" value="1" id="ml_y" <?php if ($_config['master_list']) { echo 'checked="checked"'; }?>  /><label for="ml_y"><?php echo _AT('enable'); ?></label> 
-
-               <input type="radio" name="master_list" value="0" id="ml_n" <?php if(!$_config['master_list']) { echo 'checked="checked"'; }?>  /><label for="ml_n"><?php echo  _AT('disable'); ?></label>
-       </div>
-       <div class="row">
-               <?php echo _AT('allow_registration'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_registration'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="allow_registration" value="1" id="reg_y" <?php if($_config['allow_registration']) { echo 'checked="checked"'; }?>  /><label for="reg_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_registration" value="0" id="reg_n" <?php if(!$_config['allow_registration']) { echo 'checked="checked"'; }?>  /><label for="reg_n"><?php echo _AT('disable'); ?></label>
-       </div>
-       <div class="row">
-               <?php echo _AT('allow_browse'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_browse'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="allow_browse" value="1" id="browse_y" <?php if($_config['allow_browse']) { echo 'checked="checked"'; }?>  /><label for="browse_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_browse" value="0" id="browse_n" <?php if(!$_config['allow_browse']) { echo 'checked="checked"'; }?>  /><label for="browse_n"><?php echo _AT('disable'); ?></label>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('allow_instructor_registration'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_instructor_registration'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="allow_instructor_registration" value="1" id="enrollreg_y" <?php if($_config['allow_instructor_registration']) { echo 'checked="checked"'; }?>  /><label for="enrollreg_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_instructor_registration" value="0" id="enrollreg_n" <?php if(!$_config['allow_instructor_registration']) { echo 'checked="checked"'; }?>  /><label for="enrollreg_n"><?php echo _AT('disable'); ?></label>
-       </div>
-       <div class="row">               
-               <?php echo _AT('use_captcha'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['use_captcha'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <?php if (extension_loaded('gd')): ?>
-               <input type="radio" name="use_captcha" value="1" id="use_captcha_y" <?php if($_config['use_captcha']) { echo 'checked="checked"'; }?>  /><label for="use_captcha_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="use_captcha" value="0" id="use_captcha_n" <?php if(!$_config['use_captcha']) { echo 'checked="checked"'; }?>  /><label for="use_captcha_n"><?php echo _AT('disable'); ?></label>
-               <?php else: ?>
-               <input type="radio" name="use_captcha" value="1" id="use_captcha_y" disabled="disabled" /><label for="use_captcha_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="use_captcha" value="0" id="use_captcha_n" checked="checked" /><label for="use_captcha_n"><?php echo _AT('disable'); ?></label>
-               <?php endif; ?>
-       </div>
-       <div class="row">
-               <?php echo _AT('allow_unenroll'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_unenroll'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="allow_unenroll" value="1" id="ene_y" <?php if($_config['allow_unenroll']) { echo 'checked="checked"'; }?>  /><label for="ene_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_unenroll" value="0" id="ene_n" <?php if(!$_config['allow_unenroll']) { echo 'checked="checked"'; }?>  /><label for="ene_n"><?php echo _AT('disable'); ?></label>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('require_email_confirmation'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['email_confirmation'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="email_confirmation" value="1" id="ec_y" <?php if ($_config['email_confirmation']) { echo 'checked="checked"'; }?>  /><label for="ec_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="email_confirmation" value="0" id="ec_n" <?php if(!$_config['email_confirmation']) { echo 'checked="checked"'; }?>  /><label for="ec_n"><?php echo _AT('disable'); ?></label>
-       </div>
-               
-       <div class="row">
-               <?php echo _AT('allow_instructor_requests'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_instructor_requests'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="allow_instructor_requests" value="1" id="air_y" <?php if($_config['allow_instructor_requests']) { echo 'checked="checked"'; }?>  /><label for="air_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_instructor_requests" value="0" id="air_n" <?php if(!$_config['allow_instructor_requests']) { echo 'checked="checked"'; }?>  /><label for="air_n"><?php echo _AT('disable'); ?></label>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('instructor_request_email_notification'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['email_notification'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="email_notification" value="1" id="en_y" <?php if ($_config['email_notification']) { echo 'checked="checked"'; }?>  /><label for="en_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="email_notification" value="0" id="en_n" <?php if(!$_config['email_notification']) { echo 'checked="checked"'; }?>  /><label for="en_n"><?php echo _AT('disable'); ?></label>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('auto_approve_instructors'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['auto_approve_instructors'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="auto_approve_instructors" value="1" id="aai_y" <?php if($_config['auto_approve_instructors']) { echo 'checked="checked"'; }?>  /><label for="aai_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="auto_approve_instructors" value="0" id="aai_n" <?php if(!$_config['auto_approve_instructors']) { echo 'checked="checked"'; }?>  /><label for="aai_n"><?php echo _AT('disable'); ?></label>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('theme_specific_categories'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['theme_categories'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="theme_categories" value="1" id="tc_y" <?php if($_config['theme_categories']) { echo 'checked="checked"'; }?>  /><label for="tc_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="theme_categories" value="0" id="tc_n" <?php if(!$_config['theme_categories']) { echo 'checked="checked"'; }?>  /><label for="tc_n"><?php echo _AT('disable'); ?></label>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('user_contributed_notes'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['user_notes'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="user_notes" value="1" id="un_y" <?php if($_config['user_notes']) { echo 'checked="checked"'; }?>  /><label for="un_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="user_notes" value="0" id="un_n" <?php if(!$_config['user_notes']) { echo 'checked="checked"'; }?>  /><label for="un_n"><?php echo _AT('disable'); ?></label>
-       </div>
-
-       <div class="row">
-               <label for="ext"><?php echo _AT('illegal_file_extensions'); ?></label><br />
-               <textarea name="illegal_extentions" cols="24" id="ext" rows="2" class="formfield" ><?php if ($_config['illegal_extentions']) { echo str_replace('|',' ',$_config['illegal_extentions']); }?></textarea>
-       </div>
-
-       <div class="row">
-               <label for="cache"><?php echo _AT('cache_directory'); ?></label><br />
-               <input type="text" name="cache_dir" id="cache" size="40" value="<?php if (!empty($_POST['cache_dir'])) { echo $stripslashes(htmlspecialchars($_POST['cache_dir'])); } else { echo $_config['cache_dir']; } ?>"  />
-       </div>
-
-       <div class="row">
-               <label for="latex_server"><?php echo _AT('latex_server'); ?></label><br />
-               <input type="text" name="latex_server" id="latex_server" size="40" value="<?php if (!empty($_POST['latex_server'])) { echo $stripslashes(htmlspecialchars($_POST['latex_server'])); } else { echo $_config['latex_server']; } ?>"  />
-       </div>
-
-       <div class="row">
-               <label for="course_backups"><?php echo _AT('course_backups'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['course_backups']; ?>)<br />
-               <input type="text" size="2" name="course_backups" id="course_backups" value="<?php if (!empty($_POST['course_backups'])) { echo $stripslashes(htmlspecialchars($_POST['course_backups'])); } else { echo $_config['course_backups']; } ?>"  />
-       </div>
-
-       <div class="row">
-               <label for="sent_msgs_ttl"><?php echo _AT('sent_msgs_ttl_text'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['sent_msgs_ttl']; ?>)<br />
-               <input type="text" size="3" name="sent_msgs_ttl" id="sent_msgs_ttl" value="<?php if (!empty($_POST['sent_msgs_ttl'])) { echo intval($_POST['sent_msgs_ttl']); } else { echo $_config['sent_msgs_ttl']; } ?>"  />
-       </div>
-
-       <div class="row">
-               <?php echo _AT('auto_check_new_version'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['check_version'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="check_version" value="1" id="cv_y" <?php if($_config['check_version']) { echo 'checked="checked"'; }?>  /><label for="cv_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="check_version" value="0" id="cv_n" <?php if(!$_config['check_version']) { echo 'checked="checked"'; }?>  /><label for="cv_n"><?php echo _AT('disable'); ?></label>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('file_storage_version_control'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['fs_versioning'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="fs_versioning" value="1" id="cf_y" <?php if($_config['fs_versioning']) { echo 'checked="checked"'; }?>  /><label for="cf_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="fs_versioning" value="0" id="cf_n" <?php if(!$_config['fs_versioning']) { echo 'checked="checked"'; }?>  /><label for="cf_n"><?php echo _AT('disable'); ?></label>
-       </div>
-
-       <div class="row">
-               <input type="hidden" name="old_enable_mail_queue" value="<?php echo $_config['enable_mail_queue']; ?>" />
-               <?php echo _AT('enable_mail_queue'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['enable_mail_queue'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <?php echo _AT('mail_queue_cron'); ?><br />
-               <?php if (!$_config['last_cron'] || (time() - (int) $_config['last_cron'] > 2 * 60 * 60)): ?>
-                       <input type="radio" name="enable_mail_queue" value="1" disabled="disabled" id="mq_y"  /><label for="mq_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="enable_mail_queue" value="0" id="mq_n" checked="checked" /><label for="mq_n"><?php echo _AT('disable'); ?></label>
-               <?php else: ?>
-                       <input type="radio" name="enable_mail_queue" value="1" id="mq_y" <?php if($_config['enable_mail_queue']) { echo 'checked="checked"'; }?>  /><label for="mq_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="enable_mail_queue" value="0" id="mq_n" <?php if(!$_config['enable_mail_queue']) { echo 'checked="checked"'; }?>  /><label for="mq_n"><?php echo _AT('disable'); ?></label>
-               <?php endif; ?>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('auto_install_languages'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['auto_install_languages'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <?php echo _AT('auto_install_languages_cron'); ?><br />
-               <?php if (!$_config['last_cron'] || (time() - (int) $_config['last_cron'] > 2 * 60 * 60)): ?>
-                       <input type="radio" name="auto_install_languages" value="1" disabled="disabled" /><?php echo _AT('enable'); ?> <input type="radio" name="auto_install_languages" value="0" id="ai_n" checked="checked" /><label for="ai_n"><?php echo _AT('disable'); ?></label>
-               <?php else: ?>
-                       <input type="radio" name="auto_install_languages" value="1" id="ai_y" <?php if($_config['auto_install_languages']) { echo 'checked="checked"'; }?>  /><label for="ai_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="auto_install_languages" value="0" id="ai_n" <?php if(!$_config['auto_install_languages']) { echo 'checked="checked"'; }?>  /><label for="ai_n"><?php echo _AT('disable'); ?></label>
-               <?php endif; ?>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('pretty_url'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['pretty_url'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="pretty_url" value="1" id="pu_y" <?php if($_config['pretty_url']) { echo 'checked="checked"'; }?> onclick="apache_mod_rewrite_toggler(true);"/><label for="pu_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="pretty_url" value="0" id="pu_n" <?php if(!$_config['pretty_url']) { echo 'checked="checked"'; }?> onclick="apache_mod_rewrite_toggler(false);"/><label for="pu_n"><?php echo _AT('disable'); ?></label>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('course_dir_name'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['course_dir_name'] ? _AT('enable') : _AT('disable')); ?>)<br />
-               <input type="radio" name="course_dir_name" value="1" id="cdn_y" <?php if($_config['course_dir_name']) { echo 'checked="checked"'; }?> /><label for="cdn_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="course_dir_name" value="0" id="cdn_n" <?php if(!$_config['course_dir_name']) { echo 'checked="checked"'; }?>  /><label for="cdn_n"><?php echo _AT('disable'); ?></label>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('apache_mod_rewrite'); ?><br />
-               <?php if (function_exists('apache_get_modules') && in_array('mod_rewrite', apache_get_modules())): ?>
-                       <?php echo _AT('mod_rewrite'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['apache_mod_rewrite'] ? _AT('enable') : _AT('disable')); ?>)<br />
-                       <input type="radio" name="apache_mod_rewrite" value="1" id="mr_y" <?php if($_config['apache_mod_rewrite']) { echo 'checked="checked"'; }?> /><label for="mr_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="apache_mod_rewrite" value="0" id="mr_n" <?php if(!$_config['apache_mod_rewrite']) { echo 'checked="checked"'; }?>  /><label for="mr_n"><?php echo _AT('disable'); ?></label>
-               <?php else: ?>
-                       <?php echo _AT('mod_rewrite'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['apache_mod_rewrite'] ? _AT('enable') : _AT('disable')); ?>)<br />
-                       <input type="radio" name="apache_mod_rewrite" value="1" id="mr_y" disabled="disabled" /><label for="mr_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="apache_mod_rewrite" value="0" id="mr_n" checked="checked" /><label for="mr_n"><?php echo _AT('disable'); ?></label>
-               <?php endif; ?>
-       </div>
-
-       <div class="row buttons">
-                       <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s"  />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />
-       </div>
-</div>
-</form>
-
-
 <script type="text/javascript">
        function apache_mod_rewrite_toggler(enabled){
                var obj_y = document.getElementById('mr_y');
@@ -419,5 +165,7 @@ echo AT_date(_AT('server_date_format'), '', AT_DATE_MYSQL_DATETIME);
 
 
 <?php 
+$savant->assign('display_name_formats', $display_name_formats);
+$savant->display('admin/system_preferences/config_edit.tmpl.php');
 require(AT_INCLUDE_PATH.'footer.inc.php'); 
 ?>
\ No newline at end of file
index ed5d647..e7d605c 100644 (file)
@@ -10,16 +10,5 @@ if (!isset($_config['cron_key']) || !$_config['cron_key']) {
 }\r
 \r
 require(AT_INCLUDE_PATH.'header.inc.php');\r
-?>\r
-\r
-<div class="input-form">\r
-       <div class="row">\r
-               <p><?php echo _AT('cron_url_usage'); ?></p>\r
-       </div>\r
-       <div class="row">\r
-               <?php echo _AT('cron_url'); ?><br />\r
-               <code><?php echo AT_BASE_HREF; ?>admin/cron.php?k=<?php echo $_config['cron_key']; ?></code>\r
-       </div>\r
-</div>\r
-\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->display('admin/system_preferences/cron_config.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index a232fa5..42c8c5b 100644 (file)
@@ -25,17 +25,21 @@ echo "cpID\torder\t cID";
 
 $sql    = "SELECT content_id, content_parent_id, ordering, course_id FROM ".TABLE_PREFIX."content ORDER BY course_id, content_parent_id, ordering";
 $result = mysql_query($sql, $db);
+
+
 while ($row = mysql_fetch_assoc($result)) {
        if ($current_course_id != $row['course_id']) {
                echo "\n\n-- course id $row[course_id]\n\n";
                $current_course_id = $row['course_id'];
                unset($current_parent_id);
                unset($ordering);
+               
        }
        echo $row['content_parent_id'] . "\t" . $row['ordering'] . "\t" . $row['content_id'];
        if ($current_parent_id != $row['content_parent_id']) {
                $current_parent_id = $row['content_parent_id'];
                $ordering = 1;
+               
        }
 
        if ($row['ordering'] != $ordering) {
@@ -43,14 +47,20 @@ while ($row = mysql_fetch_assoc($result)) {
                $sql = "UPDATE ".TABLE_PREFIX."content SET ordering=$ordering WHERE content_id=$row[content_id]";
                mysql_query($sql, $db);
                write_to_log(AT_ADMIN_LOG_UPDATE, 'content', mysql_affected_rows($db), $sql);
+               
        }
 
         echo "\n";
 
        $ordering++;
+       
 }
 
-echo' </pre></div>';
+$savant->assign('ordering', $ordering);
+$savant->assign('content_id', $content_id);    
+$savant->assign('content_parent_id', $content_parent_id);
 
+echo' </pre></div>';
+$savant->display('admin/fix_content.tmpl.php');
 require(AT_INCLUDE_PATH.'footer.inc.php');
 ?>
\ No newline at end of file
index b44fc4e..d9061b1 100644 (file)
@@ -42,6 +42,7 @@ if (isset($_POST['social_submit'])) {
        }
        $_config['just_social'] = $_POST['just_social'];
 }
+
 require(AT_INCLUDE_PATH.'header.inc.php');
 
 if ($_config['check_version']) {
@@ -50,246 +51,119 @@ if ($_config['check_version']) {
                $msg->printFeedbacks('ATUTOR_UPDATE_AVAILABLE');
        }
 }
-
-?>
-
-<div class="container" style="width: 40%; float: right; padding-top: 4px; padding-left: 10px;">
-       <div class="input-form" style="width: 98%;">
-                       <div class="row">
-                               <h3><?php echo _AT('social_switch'); ?></h3>
-                               <p><?php echo _AT('social_switch_text'); ?></p>
-                       </div>
-                       <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-                       <div class="row">
-                       <?php echo _AT('social_switch'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['just_social'] ? _AT('just_social') : _AT('social_and_lms')); ?>)<br />
-                       <input type="radio" name="just_social" value="1" id="social_y" <?php if($_config['just_social']) { echo 'checked="checked"'; }?>  /><label for="social_y"><?php echo _AT('just_social'); ?></label> <br /><input type="radio" name="just_social" value="0" id="social_n" <?php if(!$_config['just_social']) { echo 'checked="checked"'; }?>  /><label for="social_n"><?php echo _AT('social_and_lms'); ?></label>
-                       </div>
-
-                       <div class="row buttons">
-                               <input type="submit" name="social_submit" value="<?php echo _AT('save'); ?>" />
-                       </div>
-                       </form>
-
-       </div>
-       <div class="input-form" style="width: 98%;">
-                       <div class="row">
-                               <h3><?php echo _AT('donate'); ?></h3>
-                               <p><?php echo _AT('donate_text'); ?></p>
-                       </div>
-
-                       <div style="text-align:center;">
-                               <a href="http://www.atutor.ca/payment/index.php?project=ATutor-Donation"><img src="<?php echo $_base_href; ?>/images/donate.gif" height="28" width="136" border="0" alt="<?php echo _AT('donate'); ?>" /></a><br /><br />
-                       </div>
-       </div>
-       <?php if ($_config['allow_instructor_requests'] && admin_authenticate(AT_ADMIN_PRIV_USERS, AT_PRIV_RETURN)): ?> 
-               <?php
-                       $sql    = "SELECT COUNT(*) AS cnt FROM ".TABLE_PREFIX."instructor_approvals";
+if ($_config['allow_instructor_requests'] && admin_authenticate(AT_ADMIN_PRIV_USERS, AT_PRIV_RETURN)){
+       $sql    = "SELECT COUNT(*) AS cnt FROM ".TABLE_PREFIX."instructor_approvals";
                        $result = mysql_query($sql, $db);
                        $row    = mysql_fetch_assoc($result);
-               ?>
-       <div class="input-form" style="width: 98%;">
-               <form method="get" action="mods/_core/users/instructor_requests.php">
-                       <div class="row">
-                               <h3><?php echo _AT('instructor_requests'); ?></h3>
-                               <p><?php echo _AT('instructor_requests_text', $row['cnt']); ?></p>
-                       </div>
+                       $instructor_row[] = $row;
+                       $savant->assign('row_instructor', $instructor_row);
+}
+
 
-                       <div class="row buttons">
-                               <input type="submit" name="submit" value="<?php echo _AT('view'); ?>" />
-                       </div>
-               </form>
-       </div>
-       <?php endif; ?>
 
-       <?php 
+$update_server = "update.atutor.ca"; 
 
+$file = fsockopen ($update_server, 80, $errno, $errstr, 15);
 
-       $update_server = "update.atutor.ca"; 
+if ($file) 
+{
+       // get patch list
+       $patch_folder = "http://" . $update_server . '/patch/' . str_replace('.', '_', VERSION) . '/';
 
-       $file = fsockopen ($update_server, 80, $errno, $errstr, 15);
+       $patch_list_xml = @file_get_contents($patch_folder . 'patch_list.xml');
        
-       if ($file
+       if ($patch_list_xml
        {
-               // get patch list
-               $patch_folder = "http://" . $update_server . '/patch/' . str_replace('.', '_', VERSION) . '/';
-
-               $patch_list_xml = @file_get_contents($patch_folder . 'patch_list.xml');
+               require_once('../mods/_standard/patcher/classes/PatchListParser.class.php');
+               $patchListParser = new PatchListParser();
+               $patchListParser->parse($patch_list_xml);
+               $patch_list_array = $patchListParser->getMyParsedArrayForVersion(VERSION);
                
-               if ($patch_list_xml) 
-               {
-                       require_once('../mods/_standard/patcher/classes/PatchListParser.class.php');
-                       $patchListParser = new PatchListParser();
-                       $patchListParser->parse($patch_list_xml);
-                       $patch_list_array = $patchListParser->getMyParsedArrayForVersion(VERSION);
-                       
-                       if (count($patch_list_array)) {
-                               foreach ($patch_list_array as $row_num => $patch) {
-                                       $patch_ids .= '\'' . $patch['atutor_patch_id'] . '\', ';
-                               }
-                                       
-                               $sql = "select count(distinct atutor_patch_id) cnt_installed_patches from ".TABLE_PREFIX."patches " .
-                                      "where atutor_patch_id in (" . substr($patch_ids, 0, -2) .")".
-                                      " and status like '%Installed'";
-                       
-                               $result = mysql_query($sql, $db) or die(mysql_error());
-                               $row = mysql_fetch_assoc($result);
-                               
-                               $cnt = count($patch_list_array) - $row['cnt_installed_patches'];
-       
-                               if ($cnt > 0)
-                               {
-               ?>
-       <div class="input-form" style="width: 98%;">
-               <form method="get" action="mods/_standard/patcher/index_admin.php">
-                       <div class="row">
-                               <h3><?php echo _AT('available_patches'); ?></h3>
-                               <p><?php echo _AT('available_patches_text', $cnt); ?></p>
-                       </div>
-
-                       <div class="row buttons">
-                               <input type="submit" name="submit" value="<?php echo _AT('view'); ?>" />
-                       </div>
-               </form>
-       </div>
-       <?php 
-                               }
-                       }
-               }
-       } 
-
-       ?>
-
-       <div class="input-form" style="width: 98%">
-               <?php
-                       if (!isset($_config['db_size']) || ($_config['db_size_ttl'] < time())) {
-                               $_config['db_size'] = 0;
-                               $sql = 'SHOW TABLE STATUS';
-                               $result = mysql_query($sql, $db);
-                               while($row = mysql_fetch_assoc($result)) {
-                                       $_config['db_size'] += $row['Data_length']+$row['Index_length'];
-                               }
-
-                               $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('db_size', '{$_config['db_size']}')";
-                               mysql_query($sql, $db);
-
-                               // get disk usage if we're on *nix
-                               if (DIRECTORY_SEPARATOR == '/') {
-                                       $du = @shell_exec('du -sk '.escapeshellcmd(AT_CONTENT_DIR));
-                                       if ($du) {
-                                               $_config['du_size'] = (int) $du;
-                                               $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('du_size', '{$_config['du_size']}')";
-                                               mysql_query($sql, $db);
-                                       }
-                               }
-
-                               $ttl = time() + 24 * 60 * 60; // every 1 day.
-                               $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('db_size_ttl', '$ttl')";
-                               mysql_query($sql, $db);
+               if (count($patch_list_array)) {
+                       foreach ($patch_list_array as $row_num => $patch) {
+                               $patch_ids .= '\'' . $patch['atutor_patch_id'] . '\', ';
                        }
-
-                       $sql = "SELECT COUNT(*) AS cnt FROM ".TABLE_PREFIX."courses";
-                       $result = mysql_query($sql, $db);
-                       $row = mysql_fetch_assoc($result);
-                       $num_courses = $row['cnt'];
-
-                       $sql = "SELECT COUNT(*) AS cnt FROM ".TABLE_PREFIX."members";
-                       $result = mysql_query($sql, $db);
-                       $row = mysql_fetch_assoc($result);
-                       $num_users = $row['cnt'];
-
-                       $sql = "SELECT COUNT(*) AS cnt FROM ".TABLE_PREFIX."admins";
-                       $result = mysql_query($sql, $db);
+                               
+                       $sql = "select count(distinct atutor_patch_id) cnt_installed_patches from ".TABLE_PREFIX."patches " .
+                              "where atutor_patch_id in (" . substr($patch_ids, 0, -2) .")".
+                              " and status like '%Installed'";
+               
+                       $result = mysql_query($sql, $db) or die(mysql_error());
                        $row = mysql_fetch_assoc($result);
-                       $num_users += $row['cnt'];
-
-                       $sql = "SELECT VERSION()";
-                       $result = mysql_query($sql, $db);
-                       $row = mysql_fetch_array($result);
-                       $mysql_version = $row[0];
-               ?>
+                       
+                       $cnt = count($patch_list_array) - $row['cnt_installed_patches'];
+                       $savant->assign('cnt', $cnt);
 
-               <div class="row">
-                       <h3><?php echo _AT('statistics_information'); ?></h3>
+                       if ($cnt > 0)
+                       {
 
-                       <dl class="col-list">
-                               <?php if ($_config['db_size']): ?>
-                                       <dt><?php echo _AT('database'); ?>:</dt>
-                                       <dd><?php echo number_format($_config['db_size']/AT_KBYTE_SIZE/AT_KBYTE_SIZE,2); ?> <acronym title="<?php echo _AT('megabytes'); ?>"><?php echo _AT('mb'); ?></acronym></dd>
-                               <?php endif; ?>
 
-                               <?php if ($_config['du_size']): ?>
-                                       <dt><?php echo _AT('disk_usage'); ?>:</dt>
-                                       <dd><?php echo number_format($_config['du_size']/AT_KBYTE_SIZE,2); ?> <acronym title="<?php echo _AT('megabytes'); ?>"><?php echo _AT('mb'); ?></acronym></dd>
-                               <?php endif; ?>
 
-                               <dt><?php echo _AT('courses'); ?>:</dt>
-                               <dd><?php echo $num_courses; ?></dd>
+                       }
+               }
+       }
+} 
+
+if (!isset($_config['db_size']) || ($_config['db_size_ttl'] < time())) {
+       $_config['db_size'] = 0;
+       $sql = 'SHOW TABLE STATUS';
+       $result = mysql_query($sql, $db);
+       while($row = mysql_fetch_assoc($result)) {
+               $_config['db_size'] += $row['Data_length']+$row['Index_length'];
+       
+       }
 
-                               <dt><?php echo _AT('users'); ?>:</dt>
-                               <dd><?php echo $num_users; ?></dd>
+       $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('db_size', '{$_config['db_size']}')";
+       mysql_query($sql, $db);
 
-                               <dt><?php echo _AT('atutor_version'); ?>:</dt>
-                <?php
-                    require('../svn.php');
-                    if (!empty($svn_data)) {
-                        $svn_data   = explode("\n", $svn_data);
-                        if (substr($svn_data[1], 0, 1) == 'r') {
-                            $svn_data = $svn_data[1];
-                        } else if (substr($svn_data[2], 0, 1) == 'r') {
-                            $svn_data = $svn_data[2];
-                        }
+       // get disk usage if we're on *nix
+       if (DIRECTORY_SEPARATOR == '/') {
+               $du = @shell_exec('du -sk '.escapeshellcmd(AT_CONTENT_DIR));
+               if ($du) {
+                       $_config['du_size'] = (int) $du;
+                       $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('du_size', '{$_config['du_size']}')";
+                       mysql_query($sql, $db);
+                       
+               }
+       }
 
-                        if (count($svn_data) > 1) {
-                            $build = 'unknown';
-                            $build_date = date('Y-m-d H:i:s');
-                        } else {
-                            $svn_data   = explode(' ', $svn_data);
+       $ttl = time() + 24 * 60 * 60; // every 1 day.
+       $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('db_size_ttl', '$ttl')";
+       mysql_query($sql, $db);
+       
+}
 
-                            $build      = $svn_data[0];
-                            $build_date = $svn_data[4] .' '. $svn_data[5];
-                        }
-                        $build_str = '(' . $build . ' - '.$build_date . ')';
-                    }
-                ?>
-                               <dd><?php echo _AT('atutor_version_text', VERSION . $build_str, urlencode(VERSION)); ?></dd>
+$sql = "SELECT COUNT(*) AS cnt FROM ".TABLE_PREFIX."courses";
+$result = mysql_query($sql, $db);
+$row = mysql_fetch_assoc($result);
+$num_courses = $row['cnt'];
+$savant->assign('num_courses', $num_courses);
 
-                               <dt><?php echo _AT('php_version'); ?>:</dt>
-                               <dd><?php echo PHP_VERSION; ?></dd>
+$sql = "SELECT COUNT(*) AS cnt FROM ".TABLE_PREFIX."members";
+$result = mysql_query($sql, $db);
+$row = mysql_fetch_assoc($result);
+$num_users = $row['cnt'];
+$savant->assign('num_users', $num_users);
 
-                               <dt><?php echo _AT('mysql_version'); ?>:</dt>
-                               <dd><?php echo $mysql_version; ?></dd>
+$sql = "SELECT COUNT(*) AS cnt FROM ".TABLE_PREFIX."admins";
+$result = mysql_query($sql, $db);
+$row = mysql_fetch_assoc($result);
+$num_users += $row['cnt'];
 
-                               <dt><?php echo _AT('os'); ?>:</dt>
-                               <dd><?php echo @php_uname('s') . ' ' . @php_uname('r'); ?></dd>
-                       </dl>
-               </div>
-       </div>
 
-</div>
+$sql = "SELECT VERSION()";
+$result = mysql_query($sql, $db);
+$row = mysql_fetch_array($result);
+$mysql_version = $row[0];
 
-<div class="admin_container" style="width: 55%;">
-       <?php
-       $path_length = strlen($_base_path);
+$savant->assign('path_length', $path_length);
+$savant->assign('pages', $_pages);
+$savant->assign('db_size', $_config['db_size']);
+$savant->assign('du_size', $_config['du_size']);
+$savant->assign('row', $row);
 
-       echo '<ol id="tools" style="margin-right: 0px;">';
-       foreach ($_top_level_pages as $page_info) {
-               echo '<li class="top-tool"><a href="' . $page_info['url'] . '">' . $page_info['title'] . '</a>  ';
+$savant->display('admin/index.tmpl.php');
 
-               $page_info['url'] = substr($page_info['url'], $path_length);
+require(AT_INCLUDE_PATH.'footer.inc.php'); 
 
-               if ($_pages[$page_info['url']]['children']) {
-                       echo '<ul class="child-top-tool">';
-                       foreach ($_pages[$page_info['url']]['children'] as $child) {
-                               // check whether the page is set to be available for mobile themes. @see include/lib/menu_pages.php
-                               if (page_available($child)) {
-                                       echo ' <li class="child-tool"><a href="'.$child.'">'._AT($_pages[$child]['title_var']).'</a></li>';
-                               }
-                       }
-                       echo '</ul>';
-               }
-               echo '</li>';
-       }
-       echo '</ol>';
-?>
-</div>
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+?>
\ No newline at end of file
index 35b1d6f..2c5bec4 100644 (file)
@@ -162,26 +162,9 @@ if (isset($_REQUEST['auto_login']))
        }
 }
 
-require(AT_INCLUDE_PATH.'header.inc.php'); ?>
+require(AT_INCLUDE_PATH.'header.inc.php'); 
 
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+$savant->display('confirm.tmpl.php');
 
-<div class="input-form" style="max-width: 400px">
-       <div class="row">
-               <p><?php echo _AT('send_confirmation'); ?></p>
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />
-               <input type="text" name="email" id="email" size="50" />
-               <input type="hidden" name="en_id" id="en_id" value="<?php echo AT_print($_REQUEST['en_id'], 'input.email'); ?>" size="50" />
-       </div>
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('send'); ?>" /> 
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </div>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
+require(AT_INCLUDE_PATH.'footer.inc.php'); 
+?>
\ No newline at end of file
index 1daa701..3fb0483 100644 (file)
@@ -103,40 +103,6 @@ if (isset($_POST['submit'])) {
 
 require (AT_INCLUDE_PATH.'header.inc.php');
 ?>
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-<input type="hidden" name="id" value="<?php echo $id; ?>" />
-
-<div class="input-form">
-       <div class="row">
-               <?php echo _AT('to'); ?><br />
-               <?php echo $instructor_name; ?>
-       </div>
-
-       <div class="row">
-               <label for="from"><?php echo _AT('from_name'); ?></label><br />
-               <input type="text" class="formfield" name="from" id="from" size="40" value="<?php echo $student_name;?>" />
-       </div>
-
-       <div class="row">
-               <label for="from_email"><?php echo _AT('from_email'); ?></label><br />
-               <input type="text" class="formfield" name="from_email" id="from_email" size="40" value="<?php echo $student_email;?>" />
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="subject"><?php echo _AT('subject'); ?></label><br />
-               <input type="text" class="formfield" name="subject" id="subject" size="40" value="<?php echo $_POST['subject']; ?>" />
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('body'); ?></label><br />
-               <textarea class="formfield" cols="55" rows="15" id="body" name="body" wrap="wrap"><?php echo $_POST['body']; ?></textarea>
-       </div>
-
-       <div class="buttons row">
-               <input type="submit" name="submit" class="button" value="<?php echo _AT('send_message'); ?>" accesskey="s" />  
-               <input type="submit" name="cancel" class="button" value="<?php echo _AT('cancel'); ?>" />
-       </div>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php 
+$savant->display('contact_instructor.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 5f4b365..68b1840 100644 (file)
@@ -135,14 +135,14 @@ while ($content_forum_row = mysql_fetch_assoc($content_forum_rs)){
        $content_forum_ids[] = $content_forum_row;
 }
 
-// use any styles that were part of the imported document
+// use any styles that were part of the imported document, except on the mobile theme. 
 // $_custom_css = $_base_href.'headstuff.php?cid='.$cid.SEP.'path='.urlEncode($_base_href.$course_base_href.$content_base_href);
-
+if (is_mobile_device == false) {
 if ($content_row['use_customized_head'] && strlen($content_row['head']) > 0)
 {
        $_custom_head .= $content_row['head'];
 }
-
+}
 global $_custom_head;
 $_custom_head .= '
        <script language="javascript" type="text/javascript">
index be4b8c2..dcf256a 100644 (file)
@@ -334,7 +334,7 @@ VALUES
 * current_sub_level_page    string                    full url to the current sub level page in the "sub_level_pages"
 * sub_level_pages           array(array('url', 'title'))     the sub level pages.
 * is_mobile_device          true or false                    the request is from a mobile device or a desktop device
-* mobile_device_type        One of the values: ipod, blackberry, android, unknown
+* mobile_device_type        One of the values: ipod, blackberry, android, unknown, ipad
 </pre>
 <a name="testing"></a>
 <h2>Testing A Theme</h2>
index 9487ec8..b396647 100644 (file)
@@ -63,35 +63,8 @@ require(AT_INCLUDE_PATH.'header.inc.php');
 
 if (isset($_GET['view']) && $_GET['view']) {
        $sql    = "SELECT * FROM ".TABLE_PREFIX."messages WHERE message_id=$_GET[view] AND to_member_id=$_SESSION[member_id]";
-       $result = mysql_query($sql, $db);
-
-       if ($row = mysql_fetch_assoc($result)) {
-?>
-       <ul id="inbox-msg">
-       <li>
-               <div class="forum-post-author">
-                       <a href="profile.php?id=<?php echo $row['from_member_id']; ?>" class="title"><?php echo get_display_name($row['from_member_id']); ?></a><br />
-                       <?php print_profile_img($row['from_member_id']); ?>
-               </div>
-
-               <div class="forum-post-content">
-                       <h3><?php echo AT_print($row['subject'], 'messages.subject'); ?></h3>
-                       <div>
-                               <div class="forum-post-ctrl">
-                                       <a href="inbox/send_message.php?reply=<?php echo $_GET['view']; ?>"><?php echo _AT('reply'); ?></a> | <a href="<?php echo $_SERVER['PHP_SELF']; ?>?delete=<?php echo $_GET['view']; ?>"><?php echo _AT('delete'); ?></a>
-                               </div>
-                               <p class="date"><?php echo AT_date(_AT('forum_date_format'), $row['date_sent'], AT_DATE_MYSQL_DATETIME); ?></p>
-                       </div>
-
-                       <div class="body">
-                               <p><?php echo AT_print($row['body'], 'messages.body'); ?></p>
-                       </div>
-               </div>
-
-       </li>
-       </ul><br /><br />
-       <?php
-       }
+       $result_messages = mysql_query($sql, $db);
+
 } else if (isset($_POST['delete'], $_POST['id'])) {
        $hidden_vars['ids'] = implode(',', $_POST['id']);
 
@@ -101,81 +74,15 @@ if (isset($_GET['view']) && $_GET['view']) {
 
 $sql   = "SELECT * FROM ".TABLE_PREFIX."messages WHERE to_member_id=$_SESSION[member_id] ORDER BY date_sent DESC";
 $result = mysql_query($sql,$db);
-?>
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form" >
-<table class="data" summary="" rules="rows" width="55%">
-<thead>
-<tr>
-       <th scope="col">&nbsp;</th>
-       <th scope="col">&nbsp;</th>
-       <th scope="col" ><?php echo _AT('from');   ?></th>
-       <th scope="col" ><?php echo _AT('subject');?></th>
-       <th scope="col" ><?php echo _AT('date');   ?></th>
-</tr>
-</thead>
-<tfoot>
-<tr>
-       <td colspan="5"><input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"/></td>
-</tr>
-</tfoot>
-<tbody>
-<?php if ($row = mysql_fetch_assoc($result)): ?>
-       <?php do { ?>
-               <?php if ($row['message_id'] == $_GET['view']): ?>
-                       <tr class="selected">
-               <?php else: ?>
-                       <tr onmousedown="document.form['m<?php echo $row['message_id']; ?>'].checked = !document.form['m<?php echo $row['message_id']; ?>'].checked; rowselectbox(this, document.form['m<?php echo $row['message_id']; ?>'].checked, '');" id="r_<?php echo $row['message_id']; ?>_1">
-               <?php endif; ?>
-               <td><input type="checkbox" name="id[]" value="<?php echo $row['message_id']; ?>" id="m<?php echo $row['message_id']; ?>" <?php if (isset($_POST['id']) && in_array($row['message_id'], $_POST['id'])) { echo 'checked="checked"'; } ?> title="<?php echo _AT('delete').': '.AT_print($row['subject'], 'messages.subject');?>" onmouseup="this.checked=!this.checked" /></td>
-               <td valign="middle">
-               <?php
-               if ($row['new'] == 1)   {
-                       echo _AT('new');
-               } else if ($row['replied'] == 1) {
-                       echo _AT('replied');
-               }
-               echo '</td>';
-
-               $name = get_display_name($row['from_member_id']);
-
-               echo '<td align="left" valign="middle">';
-
-               if ($_GET['view'] != $row['message_id']) {
-                       echo $name;
-               } else {
-                       echo '<strong>'.$name.'</strong>';
-               }
-               echo '</td>';
-
-               echo '<td><label for="m'.$row['message_id'].'">';
-               if ($_GET['view'] != $row['message_id']) {
-                       echo '<a href="'.$_SERVER['PHP_SELF'].'?view='.$row['message_id'].'">'.AT_print($row['subject'], 'messages.subject').'</a>';
-               } else {
-                       echo '<strong>'.AT_print($row['subject'], 'messages.subject').'</strong>';
-               }
-               echo '</label></td>';
-       
-               echo '<td valign="middle" align="left" nowrap="nowrap">';
-               echo AT_date(_AT('inbox_date_format'),  $row['date_sent'], AT_DATE_MYSQL_DATETIME);
-               echo '</td>';
-               echo '</tr>';
-       } while ($row = mysql_fetch_assoc($result)); ?>
-<?php else: ?>
-       <tr>
-               <td colspan="5"><?php echo _AT('none_found'); ?></td>
-       </tr>
-<?php endif; ?>
-</tbody>
-</table>
-</form>
 
-<?php
 // since Inbox isn't a module, it can't have a cron job.
 // so, we delete the expires sent messages with P =  1/7.
 if (!rand(0, 6)) {
        $sql = "DELETE FROM ".TABLE_PREFIX."messages_sent WHERE from_member_id=$_SESSION[member_id] AND TO_DAYS(date_sent) < (TO_DAYS(NOW()) - {$_config['sent_msgs_ttl']}) LIMIT 100";
        mysql_query($sql, $db);
 }
-?>
 
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('result', $result);
+$savant->assign('result_messages', $result_messages);
+$savant->display('inbox/inbox.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index fbbedd6..3274b47 100644 (file)
@@ -76,33 +76,6 @@ if (isset($_GET['view']) && $_GET['view']) {
        $sql    = "SELECT * FROM ".TABLE_PREFIX."messages_sent WHERE message_id=$_GET[view] AND from_member_id=$_SESSION[member_id]";
        $result = mysql_query($sql, $db);
 
-       if ($row = mysql_fetch_assoc($result)) {
-?>
-       <ul id="inbox-msg">
-       <li>
-               <div class="forum-post-author">
-                       <a href="profile.php?id=<?php echo $row['to_member_id']; ?>" class="title"><?php echo get_display_name($row['to_member_id']); ?></a><br />
-                       <?php print_profile_img($row['to_member_id']); ?>
-               </div>
-
-               <div class="forum-post-content">
-                       <h3><?php echo AT_print($row['subject'], 'messages.subject'); ?></h3>
-                       <div>
-                               <div class="forum-post-ctrl">
-                                       <a href="inbox/send_message.php?forward=<?php echo $_GET['view']; ?>"><?php echo _AT('forward'); ?></a> | <a href="<?php echo $_SERVER['PHP_SELF']; ?>?delete=<?php echo $_GET['view']; ?>"><?php echo _AT('delete'); ?></a>
-                               </div>
-                               <p class="date"><?php echo AT_date(_AT('forum_date_format'), $row['date_sent'], AT_DATE_MYSQL_DATETIME); ?></p>
-                       </div>
-
-                       <div class="body">
-                               <p><?php echo AT_print($row['body'], 'messages.body'); ?></p>
-                       </div>
-                       <div style="clear: both; font-size:0.1em"></div>
-               </div>
-       </li>
-       </ul>
-       <?php
-       }
 } else if (isset($_POST['delete'], $_POST['id'])) {
        $hidden_vars['ids'] = implode(',', $_POST['id']);
 
@@ -114,68 +87,8 @@ $msg->printInfos(array('INBOX_SENT_MSGS_TTL', $_config['sent_msgs_ttl']));
 
 $sql   = "SELECT * FROM ".TABLE_PREFIX."messages_sent WHERE from_member_id=$_SESSION[member_id] ORDER BY date_sent DESC";
 $result = mysql_query($sql,$db);
-?>
-
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
-<table class="data" summary="" rules="rows">
-<thead>
-<tr>
-       <th scope="col">&nbsp;</th>
-       <th scope="col" ><?php echo _AT('to');   ?></th>
-       <th scope="col" ><?php echo _AT('subject');?></th>
-       <th scope="col" ><?php echo _AT('date');   ?></th>
-</tr>
-</thead>
-<tfoot>
-<tr>
-       <td colspan="4">
-               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"/>
-               <input type="submit" name="move" value="<?php echo _AT('move_to_inbox'); ?>"/>
-       </td>
-</tr>
-</tfoot>
-<tbody>
-<?php if ($row = mysql_fetch_assoc($result)): ?>
-       <?php do { ?>
-               <?php if ($row['message_id'] == $_GET['view']): ?>
-                       <tr class="selected">
-               <?php else: ?>
-                       <tr onmousedown="document.form['m<?php echo $row['message_id']; ?>'].checked = !document.form['m<?php echo $row['message_id']; ?>'].checked; rowselectbox(this, document.form['m<?php echo $row['message_id']; ?>'].checked, '');" id="r_<?php echo $row['message_id']; ?>_1">
-               <?php endif; ?>
-               <td><input type="checkbox" name="id[]" value="<?php echo $row['message_id']; ?>" id="m<?php echo $row['message_id']; ?>" <?php if (isset($_POST['id']) && in_array($row['message_id'], $_POST['id'])) { echo 'checked="checked"'; } ?> title="<?php echo _AT('delete').': '.AT_print($row['subject'], 'messages.subject');?>" onmouseup="this.checked=!this.checked" /></td>
-               <?php
-
-               $name = get_display_name($row['to_member_id']);
-
-               echo '<td align="left" valign="middle">';
-
-               if ($_GET['view'] != $row['message_id']) {
-                       echo $name;
-               } else {
-                       echo '<strong>'.$name.'</strong>';
-               }
-               echo '</td>';
-
-               echo '<td><label for="m'.$row['message_id'].'">';
-               if ($_GET['view'] != $row['message_id']) {
-                       echo '<a href="'.$_SERVER['PHP_SELF'].'?view='.$row['message_id'].'">'.AT_print($row['subject'], 'messages.subject').'</a>';
-               } else {
-                       echo '<strong>'.AT_print($row['subject'], 'messages.subject').'</strong>';
-               }
-               echo '</label></td>';
-       
-               echo '<td valign="middle" align="left" nowrap="nowrap">';
-               echo AT_date(_AT('inbox_date_format'),  $row['date_sent'], AT_DATE_MYSQL_DATETIME);
-               echo '</td>';
-               echo '</tr>';
-       } while ($row = mysql_fetch_assoc($result)); ?>
-<?php else: ?>
-       <tr>
-               <td colspan="4"><?php echo _AT('none_found'); ?></td>
-       </tr>
-<?php endif; ?>
-</tbody>
-</table>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+
+$savant->assign('result', $result);
+$savant->assign('result_messages', $result_messages);
+$savant->display('inbox/sent_messages.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 3586fb8..14ca77e 100644 (file)
@@ -270,6 +270,7 @@ define('IPHONE_DEVICE', 'iphone');
 define('BLACKBERRY_DEVICE',  'blackberry');
 define('ANDROID_DEVICE',  'android');
 define('UNKNOWN_DEVICE',  'unknown');
+define('IPAD_DEVICE', 'ipad');
 
 // machine type
 define('DESKTOP_DEVICE',  'Desktop');
index f642bde..193216b 100644 (file)
@@ -13,7 +13,7 @@
 
 if (!defined('AT_INCLUDE_PATH')) { exit; }
 
-define('AT_DEVEL', 1);
+define('AT_DEVEL', 0);
 define('AT_ERROR_REPORTING', E_ALL ^ E_NOTICE); // default is E_ALL ^ E_NOTICE, use E_ALL or E_ALL + E_STRICT for developing
 define('AT_DEVEL_TRANSLATE', 0);
 
@@ -1422,6 +1422,7 @@ function is_mobile_device() {
        return ((stripos($http_user_agent, IPOD_DEVICE) !== false && stripos($http_user_agent, IPOD_DEVICE) >= 0) ||
                        (stripos($http_user_agent, IPHONE_DEVICE) !== false && stripos($http_user_agent, IPHONE_DEVICE) >= 0) ||
                (stripos($http_user_agent, BLACKBERRY_DEVICE) !== false && stripos($http_user_agent, BLACKBERRY_DEVICE) >= 0) ||
+               (stripos($http_user_agent, IPAD_DEVICE) !== false && stripos($http_user_agent, IPAD_DEVICE) >= 0) ||
                (stripos($http_user_agent, ANDROID_DEVICE) !== false && stripos($http_user_agent, ANDROID_DEVICE) >= 0)) 
                ? true : false;
 }
@@ -1434,6 +1435,8 @@ function get_mobile_device_type() {
                return IPHONE_DEVICE;
        } else if (stripos($http_user_agent, BLACKBERRY_DEVICE) !== false && stripos($http_user_agent, BLACKBERRY_DEVICE) >= 0) {
                return BLACKBERRY_DEVICE;
+       } else if (stripos($http_user_agent, IPAD_DEVICE) !== false && stripos($http_user_agent, IPAD_DEVICE) >= 0) {
+               return IPAD_DEVICE;
        } else if (stripos($http_user_agent, ANDROID_DEVICE) !== false && stripos($http_user_agent, ANDROID_DEVICE) >= 0) {
                return ANDROID_DEVICE;
        } else {
diff --git a/docs/jscripts/jQueryMobile/jquery.mobile-1.0b1.min.js b/docs/jscripts/jQueryMobile/jquery.mobile-1.0b1.min.js
new file mode 100644 (file)
index 0000000..771115f
--- /dev/null
@@ -0,0 +1,146 @@
+/*!
+ * jQuery Mobile v1.0b1
+ * http://jquerymobile.com/
+ *
+ * Copyright 2010, jQuery Project
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ */
+(function(a,d){if(a.cleanData){var c=a.cleanData;a.cleanData=function(e){for(var b=0,d;(d=e[b])!=null;b++)a(d).triggerHandler("remove");c(e)}}else{var b=a.fn.remove;a.fn.remove=function(e,c){return this.each(function(){c||(!e||a.filter(e,[this]).length)&&a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return b.call(a(this),e,c)})}}a.widget=function(e,b,c){var d=e.split(".")[0],h,e=e.split(".")[1];h=d+"-"+e;if(!c)c=b,b=a.Widget;a.expr[":"][h]=function(b){return!!a.data(b,
+e)};a[d]=a[d]||{};a[d][e]=function(a,e){arguments.length&&this._createWidget(a,e)};b=new b;b.options=a.extend(!0,{},b.options);a[d][e].prototype=a.extend(!0,b,{namespace:d,widgetName:e,widgetEventPrefix:a[d][e].prototype.widgetEventPrefix||e,widgetBaseClass:h},c);a.widget.bridge(e,a[d][e])};a.widget.bridge=function(e,b){a.fn[e]=function(c){var i=typeof c==="string",h=Array.prototype.slice.call(arguments,1),l=this,c=!i&&h.length?a.extend.apply(null,[!0,c].concat(h)):c;if(i&&c.charAt(0)==="_")return l;
+i?this.each(function(){var b=a.data(this,e);if(!b)throw"cannot call methods on "+e+" prior to initialization; attempted to call method '"+c+"'";if(!a.isFunction(b[c]))throw"no such method '"+c+"' for "+e+" widget instance";var f=b[c].apply(b,h);if(f!==b&&f!==d)return l=f,!1}):this.each(function(){var d=a.data(this,e);d?d.option(c||{})._init():a.data(this,e,new b(c,this))});return l}};a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",
+options:{disabled:!1},_createWidget:function(b,c){a.data(c,this.widgetName,this);this.element=a(c);this.options=a.extend(!0,{},this.options,this._getCreateOptions(),b);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){var b={};a.metadata&&(b=a.metadata.get(element)[this.widgetName]);return b},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);
+this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(b,c){var g=b;if(arguments.length===0)return a.extend({},this.options);if(typeof b==="string"){if(c===d)return this.options[b];g={};g[b]=c}this._setOptions(g);return this},_setOptions:function(b){var c=this;a.each(b,function(a,b){c._setOption(a,b)});return this},_setOption:function(a,b){this.options[a]=b;a==="disabled"&&
+this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b);return this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(b,c,d){var i=this.options[b],c=a.Event(c);c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();d=d||{};if(c.originalEvent)for(var b=a.event.props.length,h;b;)h=a.event.props[--b],c[h]=c.originalEvent[h];this.element.trigger(c,
+d);return!(a.isFunction(i)&&i.call(this.element[0],c,d)===!1||c.isDefaultPrevented())}}})(jQuery);(function(a,d){a.widget("mobile.widget",{_getCreateOptions:function(){var c=this.element,b={};a.each(this.options,function(a){var f=c.jqmData(a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}));f!==d&&(b[a]=f)});return b}})})(jQuery);
+(function(a){function d(){var d=c.width(),g=[],i=[],h;b.removeClass("min-width-"+e.join("px min-width-")+"px max-width-"+e.join("px max-width-")+"px");a.each(e,function(a,b){d>=b&&g.push("min-width-"+b+"px");d<=b&&i.push("max-width-"+b+"px")});g.length&&(h=g.join(" "));i.length&&(h+=" "+i.join(" "));b.addClass(h)}var c=a(window),b=a("html"),e=[320,480,768,1024];a.mobile.media=function(){var c={},e=a("<div id='jquery-mediatest'>"),d=a("<body>").append(e);return function(a){if(!(a in c)){var l=document.createElement("style"),
+m="@media "+a+" { #jquery-mediatest { position:absolute; } }";l.type="text/css";l.styleSheet?l.styleSheet.cssText=m:l.appendChild(document.createTextNode(m));b.prepend(d).prepend(l);c[a]=e.css("position")==="absolute";d.add(l).remove()}return c[a]}}();a.mobile.addResolutionBreakpoints=function(b){a.type(b)==="array"?e=e.concat(b):e.push(b);e.sort(function(a,b){return a-b});d()};a(document).bind("mobileinit.htmlclass",function(){c.bind("orientationchange.htmlclass throttledResize.htmlclass",function(a){a.orientation&&
+b.removeClass("portrait landscape").addClass(a.orientation);d()})});a(function(){c.trigger("orientationchange.htmlclass")})})(jQuery);
+(function(a,d){function c(a){var b=a.charAt(0).toUpperCase()+a.substr(1),a=(a+" "+f.join(b+" ")+b).split(" "),c;for(c in a)if(e[c]!==d)return!0}var b=a("<body>").prependTo("html"),e=b[0].style,f=["webkit","moz","o"],g="palmGetResource"in window,i=window.blackberry;a.mobile.browser={};a.mobile.browser.ie=function(){for(var a=3,b=document.createElement("div"),c=b.all||[];b.innerHTML="<\!--[if gt IE "+ ++a+"]><br><![endif]--\>",c[0];);return a>4?a:!a}();a.extend(a.support,{orientation:"orientation"in
+window,touch:"ontouchend"in document,cssTransitions:"WebKitTransitionEvent"in window,pushState:!!history.pushState,mediaquery:a.mobile.media("only all"),cssPseudoElement:!!c("content"),boxShadow:!!c("boxShadow")&&!i,scrollTop:("pageXOffset"in window||"scrollTop"in document.documentElement||"scrollTop"in b[0])&&!g,dynamicBaseTag:function(){var c=location.protocol+"//"+location.host+location.pathname+"ui-dir/",e=a("head base"),d=null,f="";e.length?f=e.attr("href"):e=d=a("<base>",{href:c}).appendTo("head");
+var g=a("<a href='testurl'></a>").prependTo(b)[0].href;e[0].href=f?f:location.pathname;d&&d.remove();return g.indexOf(c)===0}(),eventCapture:"addEventListener"in document});b.remove();a.support.boxShadow||a("html").addClass("ui-mobile-nosupport-boxshadow")})(jQuery);
+(function(a,d,c,b){function e(a){for(;a&&typeof a.originalEvent!=="undefined";)a=a.originalEvent;return a}function f(b){for(var c={};b;){var e=a.data(b,n),d;for(d in e)if(e[d])c[d]=c.hasVirtualBinding=!0;b=b.parentNode}return c}function g(){v&&(clearTimeout(v),v=0);v=setTimeout(function(){A=v=0;B.length=0;w=!1;r=!0},a.vmouse.resetTimerDuration)}function i(c,d,r){var f=!1,g;if(!(g=r&&r[c])){if(r=!r)a:{for(r=d.target;r;){if((g=a.data(r,n))&&(!c||g[c]))break a;r=r.parentNode}r=null}g=r}if(g){f=d;r=f.type;
+f=a.Event(f);f.type=c;var h=f.originalEvent,j=a.event.props;if(h)for(c=j.length;c;)g=j[--c],f[g]=h[g];if(r.search(/^touch/)!==-1&&(c=e(h),r=c.touches,c=c.changedTouches,r=r&&r.length?r[0]:c&&c.length?c[0]:b)){c=0;for(h=y.length;c<h;c++)g=y[c],f[g]=r[g]}a(d.target).trigger(f);f=f.isDefaultPrevented()}return f}function h(b){var c=a.data(b.target,z);!w&&(!A||A!==c)&&i("v"+b.type,b)}function l(b){var c=e(b).touches;if(c&&c.length===1){var d=b.target,c=f(d);if(c.hasVirtualBinding)A=F++,a.data(d,z,A),v&&
+(clearTimeout(v),v=0),s=r=!1,d=e(b).touches[0],x=d.pageX,u=d.pageY,i("vmouseover",b,c),i("vmousedown",b,c)}}function m(a){r||(s||i("vmousecancel",a,f(a.target)),s=!0,g())}function o(b){if(!r){var c=e(b).touches[0],d=s,h=a.vmouse.moveDistanceThreshold;s=s||Math.abs(c.pageX-x)>h||Math.abs(c.pageY-u)>h;c=f(b.target);s&&!d&&i("vmousecancel",b,c);i("vmousemove",b,c);g()}}function j(a){if(!r){r=!0;var b=f(a.target);i("vmouseup",a,b);if(!s&&i("vclick",a,b)){var c=e(a).changedTouches[0];B.push({touchID:A,
+x:c.clientX,y:c.clientY});w=!0}i("vmouseout",a,b);s=!1;g()}}function p(b){var b=a.data(b,n),c;if(b)for(c in b)if(b[c])return!0;return!1}function k(){}function q(b){var c=b.substr(1);return{setup:function(){p(this)||a.data(this,n,{});a.data(this,n)[b]=!0;t[b]=(t[b]||0)+1;t[b]===1&&C.bind(c,h);a(this).bind(c,k);if(E)t.touchstart=(t.touchstart||0)+1,t.touchstart===1&&C.bind("touchstart",l).bind("touchend",j).bind("touchmove",o).bind("scroll",m)},teardown:function(){--t[b];t[b]||C.unbind(c,h);E&&(--t.touchstart,
+t.touchstart||C.unbind("touchstart",l).unbind("touchmove",o).unbind("touchend",j).unbind("scroll",m));var d=a(this),e=a.data(this,n);e&&(e[b]=!1);d.unbind(c,k);p(this)||d.removeData(n)}}}var n="virtualMouseBindings",z="virtualTouchID",d="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),y="clientX clientY pageX pageY screenX screenY".split(" "),t={},v=0,x=0,u=0,s=!1,B=[],w=!1,r=!1,E=a.support.eventCapture,C=a(c),F=1,A=0;a.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,
+resetTimerDuration:1500};for(var D=0;D<d.length;D++)a.event.special[d[D]]=q(d[D]);E&&c.addEventListener("click",function(b){var c=B.length,d=b.target;if(c)for(var e=b.clientX,r=b.clientY,f=a.vmouse.clickDistanceThreshold,g=d;g;){for(var h=0;h<c;h++){var j=B[h];if(g===d&&Math.abs(j.x-e)<f&&Math.abs(j.y-r)<f||a.data(g,z)===j.touchID){b.preventDefault();b.stopPropagation();return}}g=g.parentNode}},!0)})(jQuery,window,document);
+(function(a,d){function c(b,c,d){var e=d.type;d.type=c;a.event.handle.call(b,d);d.type=e}a.each("touchstart touchmove touchend orientationchange throttledresize tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(b,c){a.fn[c]=function(a){return a?this.bind(c,a):this.trigger(c)};a.attrFn[c]=!0});var b=a.support.touch,e=b?"touchstart":"mousedown",f=b?"touchend":"mouseup",g=b?"touchmove":"mousemove";a.event.special.scrollstart={enabled:!0,setup:function(){function b(a,
+f){e=f;c(d,e?"scrollstart":"scrollstop",a)}var d=this,e,f;a(d).bind("touchmove scroll",function(c){a.event.special.scrollstart.enabled&&(e||b(c,!0),clearTimeout(f),f=setTimeout(function(){b(c,!1)},50))})}};a.event.special.tap={setup:function(){var b=this,d=a(b);d.bind("vmousedown",function(a){function e(){g=!1;clearTimeout(k);d.unbind("vclick",f).unbind("vmousecancel",e)}function f(a){e();p==a.target&&c(b,"tap",a)}if(a.which&&a.which!==1)return!1;var g=!0,p=a.target,k;d.bind("vmousecancel",e).bind("vclick",
+f);k=setTimeout(function(){g&&c(b,"taphold",a)},750)})}};a.event.special.swipe={setup:function(){var b=a(this);b.bind(e,function(c){function e(a){if(o){var b=a.originalEvent.touches?a.originalEvent.touches[0]:a;j={time:(new Date).getTime(),coords:[b.pageX,b.pageY]};Math.abs(o.coords[0]-j.coords[0])>10&&a.preventDefault()}}var m=c.originalEvent.touches?c.originalEvent.touches[0]:c,o={time:(new Date).getTime(),coords:[m.pageX,m.pageY],origin:a(c.target)},j;b.bind(g,e).one(f,function(){b.unbind(g,e);
+o&&j&&j.time-o.time<1E3&&Math.abs(o.coords[0]-j.coords[0])>30&&Math.abs(o.coords[1]-j.coords[1])<75&&o.origin.trigger("swipe").trigger(o.coords[0]>j.coords[0]?"swipeleft":"swiperight");o=j=d})})}};(function(a){function b(){var a=d();a!==e&&(e=a,c.trigger("orientationchange"))}var c=a(window),d,e;a.event.special.orientationchange={setup:function(){if(a.support.orientation)return!1;e=d();c.bind("throttledresize",b)},teardown:function(){if(a.support.orientation)return!1;c.unbind("throttledresize",b)},
+add:function(a){var b=a.handler;a.handler=function(a){a.orientation=d();return b.apply(this,arguments)}}};a.event.special.orientationchange.orientation=d=function(){var a=document.documentElement;return a&&a.clientWidth/a.clientHeight<1.1?"portrait":"landscape"}})(jQuery);(function(){a.event.special.throttledresize={setup:function(){a(this).bind("resize",b)},teardown:function(){a(this).unbind("resize",b)}};var b=function(){e=(new Date).getTime();f=e-c;f>=250?(c=e,a(this).trigger("throttledresize")):
+(d&&clearTimeout(d),d=setTimeout(b,250-f))},c=0,d,e,f})();a.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(b,c){a.event.special[b]={setup:function(){a(this).bind(c,a.noop)}}})})(jQuery);
+(function(a,d,c){function b(a){a=a||location.href;return"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}var e="hashchange",f=document,g,i=a.event.special,h=f.documentMode,l="on"+e in d&&(h===c||h>7);a.fn[e]=function(a){return a?this.bind(e,a):this.trigger(e)};a.fn[e].delay=50;i[e]=a.extend(i[e],{setup:function(){if(l)return!1;a(g.start)},teardown:function(){if(l)return!1;a(g.stop)}});g=function(){function g(){var c=b(),f=n(i);if(c!==i)q(i=c,f),a(d).trigger(e);else if(f!==i)location.href=location.href.replace(/#.*/,
+"")+f;j=setTimeout(g,a.fn[e].delay)}var h={},j,i=b(),k=function(a){return a},q=k,n=k;h.start=function(){j||g()};h.stop=function(){j&&clearTimeout(j);j=c};a.browser.msie&&!l&&function(){var c,d;h.start=function(){if(!c)d=(d=a.fn[e].src)&&d+b(),c=a('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){d||q(b());g()}).attr("src",d||"javascript:0").insertAfter("body")[0].contentWindow,f.onpropertychange=function(){try{if(event.propertyName==="title")c.document.title=f.title}catch(a){}}};
+h.stop=k;n=function(){return b(c.location.href)};q=function(b,d){var g=c.document,h=a.fn[e].domain;if(b!==d)g.title=f.title,g.open(),h&&g.write('<script>document.domain="'+h+'"<\/script>'),g.close(),c.location.hash=b}}();return h}()})(jQuery,this);
+(function(a){a.widget("mobile.page",a.mobile.widget,{options:{backBtnText:"Back",addBackBtn:!1,backBtnTheme:null,degradeInputs:{color:!1,date:!1,datetime:!1,"datetime-local":!1,email:!1,month:!1,number:!1,range:"number",search:!0,tel:!1,time:!1,url:!1,week:!1},keepNative:null},_create:function(){var d=this.element,c=this.options;this.keepNative=":jqmData(role='none'), :jqmData(role='nojs')"+(c.keepNative?", "+c.keepNative:"");this._trigger("beforeCreate")!==!1&&(d.find(":jqmData(role='page'), :jqmData(role='content')").andSelf().each(function(){a(this).addClass("ui-"+
+a(this).jqmData("role"))}),d.find(":jqmData(role='nojs')").addClass("ui-nojs"),d.find(":jqmData(role)").andSelf().each(function(){var b=a(this),e=b.jqmData("role"),f=b.jqmData("theme");if(e==="header"||e==="footer"){b.addClass("ui-bar-"+(f||b.parent(":jqmData(role='page')").jqmData("theme")||"a"));b.attr("role",e==="header"?"banner":"contentinfo");var f=b.children("a"),g=f.hasClass("ui-btn-left"),i=f.hasClass("ui-btn-right");if(!g)g=f.eq(0).not(".ui-btn-right").addClass("ui-btn-left").length;i||f.eq(1).addClass("ui-btn-right");
+c.addBackBtn&&e==="header"&&a(".ui-page").length>1&&d.jqmData("url")!==a.mobile.path.stripHash(location.hash)&&!g&&b.jqmData("backbtn")!==!1&&(f=a("<a href='#' class='ui-btn-left' data-"+a.mobile.ns+"rel='back' data-"+a.mobile.ns+"icon='arrow-l'>"+c.backBtnText+"</a>").prependTo(b),c.backBtnTheme&&f.attr("data-"+a.mobile.ns+"theme",c.backBtnTheme));b.children("h1, h2, h3, h4, h5, h6").addClass("ui-title").attr({tabindex:"0",role:"heading","aria-level":"1"})}else e==="content"?(f&&b.addClass("ui-body-"+
+f),b.attr("role","main")):e==="page"&&b.addClass("ui-body-"+(f||"c"));switch(e){case "header":case "footer":case "page":case "content":b.addClass("ui-"+e);break;case "collapsible":case "fieldcontain":case "navbar":case "listview":case "dialog":b[e]()}}),this._enhanceControls(),d.find(":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a").not(".ui-btn").not(this.keepNative).buttonMarkup(),d.find(":jqmData(role='controlgroup')").controlgroup(),d.find("a:not(.ui-btn):not(.ui-link-inherit)").not(this.keepNative).addClass("ui-link"),
+d.fixHeaderFooter())},_typeAttributeRegex:/\s+type=["']?\w+['"]?/,_enhanceControls:function(){var d=this.options,c=this;this.element.find("input").not(this.keepNative).each(function(){var b=this.getAttribute("type"),e=d.degradeInputs[b]||"text";d.degradeInputs[b]&&a(this).replaceWith(a("<div>").html(a(this).clone()).html().replace(c._typeAttributeRegex,' type="'+e+'" data-'+a.mobile.ns+'type="'+b+'" '))});var b=this.element.find("input, textarea, select, button"),e=b.not(this.keepNative),b=b.filter("input[type=text]");
+b.length&&typeof b[0].autocorrect!=="undefined"&&b.each(function(){this.setAttribute("autocorrect","off");this.setAttribute("autocomplete","off")});e.filter("[type='radio'], [type='checkbox']").checkboxradio();e.filter("button, [type='button'], [type='submit'], [type='reset'], [type='image']").button();e.filter("input, textarea").not("[type='radio'], [type='checkbox'], [type='button'], [type='submit'], [type='reset'], [type='image'], [type='hidden']").textinput();e.filter("input, select").filter(":jqmData(role='slider'), :jqmData(type='range')").slider();
+e.filter("select:not(:jqmData(role='slider'))").selectmenu()}})})(jQuery);
+(function(a,d){a.extend(a.mobile,{ns:"",subPageUrlKey:"ui-page",nonHistorySelectors:"dialog",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",ajaxEnabled:!0,useFastClick:!0,hashListeningEnabled:!0,defaultPageTransition:"slide",minScrollBack:screen.height/2,defaultDialogTransition:"pop",loadingMessage:"loading",pageLoadErrorMessage:"Error Loading Page",gradeA:function(){return a.support.mediaquery||a.mobile.browser.ie&&a.mobile.browser.ie>=7},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,
+COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},silentScroll:function(b){if(a.type(b)!=="number")b=a.mobile.defaultHomeScroll;a.event.special.scrollstart.enabled=!1;setTimeout(function(){d.scrollTo(0,b);a(document).trigger("silentscroll",
+{x:0,y:b})},20);setTimeout(function(){a.event.special.scrollstart.enabled=!0},150)},normalizeRegex:/-([a-z])/g,nsNormalize:function(b){if(b)return a.camelCase(a.mobile.ns+b)}});a.fn.jqmData=function(b,c){return this.data(b?a.mobile.nsNormalize(b):b,c)};a.jqmData=function(b,c,d){return a.data(b,a.mobile.nsNormalize(c),d)};a.fn.jqmRemoveData=function(b){return this.removeData(a.mobile.nsNormalize(b))};a.jqmRemoveData=function(b,c){return a.removeData(b,a.mobile.nsNormalize(c))};a.jqmHasData=function(b,
+c){return a.hasData(b,a.mobile.nsNormalize(c))};var c=a.find;a.find=function(b,d,f,g){b=b.replace(/:jqmData\(([^)]*)\)/g,"[data-"+(a.mobile.ns||"")+"$1]");return c.call(this,b,d,f,g)};a.extend(a.find,c);a.find.matches=function(b,c){return a.find(b,null,null,c)};a.find.matchesSelector=function(b,c){return a.find(c,null,null,[b]).length>0}})(jQuery,this);
+(function(a,d){function c(a){var b=a.jqmData("lastClicked");b&&b.length?b.focus():(b=a.find(".ui-title:eq(0)"),b.length?b.focus():a.find(z).eq(0).focus())}function b(b){q&&(!q.closest(".ui-page-active").length||b)&&q.removeClass(a.mobile.activeBtnClass);q=null}function e(){t=!1;y.length>0&&a.mobile.changePage.apply(null,y.pop())}function f(b,d,e,f){var h=a.support.scrollTop?o.scrollTop():!0,j=b.data("lastScroll")||a.mobile.defaultHomeScroll,i=g();h&&window.scrollTo(0,a.mobile.defaultHomeScroll);j<
+a.mobile.minScrollBack&&(j=0);d&&(d.height(i+h).jqmData("lastScroll",h).jqmData("lastClicked",q),d.data("page")._trigger("beforehide",null,{nextPage:b}));b.height(i+j).data("page")._trigger("beforeshow",null,{prevPage:d||a("")});a.mobile.hidePageLoadingMsg();e=(a.mobile.transitionHandlers[e||"none"]||a.mobile.defaultTransitionHandler)(e,f,b,d);e.done(function(){b.height("");j?(a.mobile.silentScroll(j),a(document).one("silentscroll",function(){c(b)})):c(b);d&&d.height("").data("page")._trigger("hide",
+null,{nextPage:b});b.data("page")._trigger("show",null,{prevPage:d||a("")})});return e}function g(){var b=jQuery.event.special.orientationchange.orientation()==="portrait",c=b?screen.availHeight:screen.availWidth,b=Math.max(b?480:320,a(window).height());return Math.min(c,b)}function i(){a("."+a.mobile.activePageClass).css("min-height",g())}function h(b,c){c&&b.attr("data-"+a.mobile.ns+"role",c);b.page()}function l(a){for(;a;){if(a.nodeName.toLowerCase()=="a")break;a=a.parentNode}return a}function m(b){var b=
+a(b).closest(".ui-page").jqmData("url"),c=s.hrefNoHash;if(!b||!k.isPath(b))b=c;return k.makeUrlAbsolute(b,c)}var o=a(window),j=a("html"),p=a("head"),k={urlParseRE:/^(((([^:\/#\?]+:)?(?:\/\/((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?]+)(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,parseUrl:function(a){if(typeof a==="object")return a;var a=k.urlParseRE.exec(a),b;a&&(b={href:a[0]||"",hrefNoHash:a[1]||"",hrefNoSearch:a[2]||"",domain:a[3]||"",protocol:a[4]||"",authority:a[5]||
+"",username:a[7]||"",password:a[8]||"",host:a[9]||"",hostname:a[10]||"",port:a[11]||"",pathname:a[12]||"",directory:a[13]||"",filename:a[14]||"",search:a[15]||"",hash:a[16]||""});return b||{}},makePathAbsolute:function(a,b){if(a&&a.charAt(0)==="/")return a;for(var a=a||"",c=(b=b?b.replace(/^\/|\/?[^\/]*$/g,""):"")?b.split("/"):[],d=a.split("/"),e=0;e<d.length;e++){var f=d[e];switch(f){case ".":break;case "..":c.length&&c.pop();break;default:c.push(f)}}return"/"+c.join("/")},isSameDomain:function(a,
+b){return k.parseUrl(a).domain===k.parseUrl(b).domain},isRelativeUrl:function(a){return k.parseUrl(a).protocol===""},isAbsoluteUrl:function(a){return k.parseUrl(a).protocol!==""},makeUrlAbsolute:function(a,b){if(!k.isRelativeUrl(a))return a;var c=k.parseUrl(a),d=k.parseUrl(b),e=c.protocol||d.protocol,f=c.authority||d.authority,g=c.pathname!=="",h=k.makePathAbsolute(c.pathname||d.filename,d.pathname);return e+"//"+f+h+(c.search||!g&&d.search||"")+c.hash},addSearchParams:function(b,c){var d=k.parseUrl(b),
+e=typeof c==="object"?a.param(c):c,f=d.search||"?";return d.hrefNoSearch+f+(f.charAt(f.length-1)!=="?"?"&":"")+e+(d.hash||"")},convertUrlToDataUrl:function(a){var b=k.parseUrl(a);if(k.isEmbeddedPage(b))return b.hash.replace(/^#/,"");else if(k.isSameDomain(b,s))return b.hrefNoHash.replace(s.domain,"");return a},get:function(a){if(a===d)a=location.hash;return k.stripHash(a).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(b){var c="&"+a.mobile.subPageUrlKey;return b&&b.split(c)[0].split(v)[0]},
+set:function(a){location.hash=a},isPath:function(a){return/\//.test(a)},clean:function(a){return a.replace(s.domain,"")},stripHash:function(a){return a.replace(/^#/,"")},cleanHash:function(a){return k.stripHash(a.replace(/\?.*$/,"").replace(v,""))},isExternal:function(a){a=k.parseUrl(a);return a.protocol&&a.domain!==u.domain?!0:!1},hasProtocol:function(a){return/^(:?\w+:)/.test(a)},isEmbeddedPage:function(a){a=k.parseUrl(a);if(a.protocol!=="")return a.hash&&(a.hrefNoHash===u.hrefNoHash||B&&a.hrefNoHash===
+s.hrefNoHash);return/^#/.test(a.href)}},q=null,n={stack:[],activeIndex:0,getActive:function(){return n.stack[n.activeIndex]},getPrev:function(){return n.stack[n.activeIndex-1]},getNext:function(){return n.stack[n.activeIndex+1]},addNew:function(a,b,c,d){n.getNext()&&n.clearForward();n.stack.push({url:a,transition:b,title:c,page:d});n.activeIndex=n.stack.length-1},clearForward:function(){n.stack=n.stack.slice(0,n.activeIndex+1)},directHashChange:function(b){var c,e,f;a.each(n.stack,function(a,d){b.currentUrl===
+d.url&&(c=a<n.activeIndex,e=!c,f=a)});this.activeIndex=f!==d?f:this.activeIndex;c?b.isBack():e&&b.isForward()},ignoreNextHashChange:!1},z="[tabindex],a,button:visible,select:visible,input",y=[],t=!1,v="&ui-state=dialog",x=p.children("base"),u=k.parseUrl(location.href),s=x.length?k.parseUrl(k.makeUrlAbsolute(x.attr("href"),u.href)):u,B=u.hrefNoHash!==s.hrefNoHash,w=a.support.dynamicBaseTag?{element:x.length?x:a("<base>",{href:s.hrefNoHash}).prependTo(p),set:function(a){w.element.attr("href",k.makeUrlAbsolute(a,
+s))},reset:function(){w.element.attr("href",s.hrefNoHash)}}:d;a.fn.animationComplete=function(b){return a.support.cssTransitions?a(this).one("webkitAnimationEnd",b):(setTimeout(b,0),a(this))};a.mobile.updateHash=k.set;a.mobile.path=k;a.mobile.base=w;a.mobile.urlstack=n.stack;a.mobile.urlHistory=n;a.mobile.noneTransitionHandler=function(b,c,d,e){e&&e.removeClass(a.mobile.activePageClass);d.addClass(a.mobile.activePageClass);return a.Deferred().resolve(b,c,d,e).promise()};a.mobile.defaultTransitionHandler=
+a.mobile.noneTransitionHandler;a.mobile.transitionHandlers={none:a.mobile.defaultTransitionHandler};a.mobile.allowCrossDomainPages=!1;a.mobile.getDocumentUrl=function(b){return b?a.extend({},u):u.href};a.mobile.getDocumentBase=function(b){return b?a.extend({},s):s.href};a.mobile.loadPage=function(b,c){var e=a.Deferred(),f=a.extend({},a.mobile.loadPage.defaults,c),g=null,j=null,i=k.makeUrlAbsolute(b,s.hrefNoHash);if(f.data&&f.type==="get")i=k.addSearchParams(i,f.data),f.data=d;var n=k.getFilePath(i),
+q=k.convertUrlToDataUrl(i);f.pageContainer=f.pageContainer||a.mobile.pageContainer;g=f.pageContainer.children(":jqmData(url='"+q+"')");w&&w.reset();if(g.length){if(!f.reloadPage)return h(g,f.role),e.resolve(i,c,g),e.promise();j=g}f.showLoadMsg&&a.mobile.showPageLoadingMsg();a.ajax({url:n,type:f.type,data:f.data,dataType:"html",success:function(d){var l=a("<div></div>"),p=d.match(/<title[^>]*>([^<]*)/)&&RegExp.$1,o=RegExp("\\bdata-"+a.mobile.ns+"url=[\"']?([^\"'>]*)[\"']?");RegExp(".*(<[^>]+\\bdata-"+
+a.mobile.ns+"role=[\"']?page[\"']?[^>]*>).*").test(d)&&RegExp.$1&&o.test(RegExp.$1)&&RegExp.$1&&(b=n=k.getFilePath(RegExp.$1));w&&w.set(n);l.get(0).innerHTML=d;g=l.find(":jqmData(role='page'), :jqmData(role='dialog')").first();p&&!g.jqmData("title")&&g.jqmData("title",p);if(!a.support.dynamicBaseTag){var m=k.get(n);g.find("[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]").each(function(){var b=a(this).is("[href]")?"href":a(this).is("[src]")?"src":"action",c=a(this).attr(b),
+c=c.replace(location.protocol+"//"+location.host+location.pathname,"");/^(\w+:|#|\/)/.test(c)||a(this).attr(b,m+c)})}g.attr("data-"+a.mobile.ns+"url",k.convertUrlToDataUrl(n)).appendTo(f.pageContainer);h(g,f.role);i.indexOf("&"+a.mobile.subPageUrlKey)>-1&&(g=f.pageContainer.children(":jqmData(url='"+q+"')"));f.showLoadMsg&&a.mobile.hidePageLoadingMsg();e.resolve(i,c,g,j)},error:function(){w&&w.set(k.get());f.showLoadMsg&&(a.mobile.hidePageLoadingMsg(),a("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h1>"+
+a.mobile.pageLoadErrorMessage+"</h1></div>").css({display:"block",opacity:0.96,top:o.scrollTop()+100}).appendTo(f.pageContainer).delay(800).fadeOut(400,function(){a(this).remove()}));e.reject(i,c)}});return e.promise()};a.mobile.loadPage.defaults={type:"get",data:d,reloadPage:!1,role:d,showLoadMsg:!0,pageContainer:d};a.mobile.changePage=function(c,g){if(typeof g!=="object"){var i=null;if(typeof c==="object"&&c.url&&c.type)i={type:c.type,data:c.data,forcePageLoad:!0},c=c.url;var q=arguments.length;
+if(q>1){var l=["transition","reverse","changeHash","fromHashChange"],p;for(p=1;p<q;p++){var o=arguments[p];typeof o!=="undefined"&&(i=i||{},i[l[p-1]]=o)}}if(i)return a.mobile.changePage(c,i)}if(t)y.unshift(arguments);else{t=!0;var m=a.extend({},a.mobile.changePage.defaults,g);m.pageContainer=m.pageContainer||a.mobile.pageContainer;if(typeof c=="string")a.mobile.loadPage(c,m).done(function(b,c,d,e){t=!1;c.duplicateCachedPage=e;a.mobile.changePage(d,c)}).fail(function(){t=!1;b(!0);e();m.pageContainer.trigger("changepagefailed")});
+else{var s=m.pageContainer,i=a.mobile.activePage,q=c.jqmData("url");k.getFilePath(q);l=n.getActive();p=n.activeIndex===0;var x=0,o=document.title,u=m.role==="dialog"||c.jqmData("role")==="dialog";s.trigger("beforechangepage");if(i&&i[0]===c[0])t=!1,s.trigger("changepage");else{h(c,m.role);m.fromHashChange&&n.directHashChange({currentUrl:q,isBack:function(){x=-1},isForward:function(){x=1}});a(document.activeElement||"").add("input:focus, textarea:focus, select:focus").blur();u&&l&&(q=l.url+v);if(m.changeHash!==
+!1&&q)n.ignoreNextHashChange=!0,k.set(q);(u=c.jqmData("title")||c.children(":jqmData(role='header')").find(".ui-title").text())&&o==document.title&&(o=u);x||n.addNew(q,m.transition,o,c);document.title=n.getActive().title;a.mobile.activePage=c;m.transition=m.transition||(x&&!p?l.transition:d)||(m.role==="dialog"?a.mobile.defaultDialogTransition:a.mobile.defaultPageTransition);m.reverse=m.reverse||x<0;f(c,i,m.transition,m.reverse).done(function(){b();m.duplicateCachedPage&&m.duplicateCachedPage.remove();
+j.removeClass("ui-mobile-rendering");e();s.trigger("changepage")})}}}};a.mobile.changePage.defaults={transition:d,reverse:!1,changeHash:!0,fromHashChange:!1,role:d,duplicateCachedPage:d,pageContainer:d};a("form").live("submit",function(b){var c=a(this);if(a.mobile.ajaxEnabled&&!c.is(":jqmData(ajax='false')")){var d=c.attr("method"),e=k.makeUrlAbsolute(c.attr("action"),m(c)),f=c.attr("target");!k.isExternal(e)&&!f&&(a.mobile.changePage(e,{type:d.length&&d.toLowerCase()||"get",data:c.serialize(),transition:c.jqmData("transition"),
+direction:c.jqmData("direction"),reloadPage:!0}),b.preventDefault())}});a(document).bind("vclick",function(b){if((b=l(b.target))&&k.parseUrl(b.getAttribute("href")||"#").hash!=="#")a(b).closest(".ui-btn").not(".ui-disabled").addClass(a.mobile.activeBtnClass),a("."+a.mobile.activePageClass+" .ui-btn").not(b).blur()});a(document).bind(a.mobile.useFastClick?"vclick click":"click",function(c){var e=l(c.target);if(e){var f=a(e),g=function(){window.setTimeout(function(){b(!0)},200)};if(f.is(":jqmData(rel='back')"))return window.history.back(),
+!1;if(a.mobile.ajaxEnabled){var h=m(f),e=k.makeUrlAbsolute(f.attr("href")||"#",h);if(e.search("#")!=-1)if(e=e.replace(/[^#]*#/,""))e=k.isPath(e)?k.makeUrlAbsolute(e,h):k.makeUrlAbsolute("#"+e,u.hrefNoHash);else{c.preventDefault();return}var h=f.is("[rel='external']")||f.is(":jqmData(ajax='false')")||f.is("[target]"),i=a.mobile.allowCrossDomainPages&&u.protocol==="file:"&&e.search(/^https?:/)!=-1,h=h||k.isExternal(e)&&!i;q=f.closest(".ui-btn");h?g():(g=f.jqmData("transition"),h=(h=f.jqmData("direction"))&&
+h==="reverse"||f.jqmData("back"),f=f.attr("data-"+a.mobile.ns+"rel")||d,a.mobile.changePage(e,{transition:g,reverse:h,role:f}),c.preventDefault())}else g()}});o.bind("hashchange",function(){var b=k.stripHash(location.hash),c=a.mobile.urlHistory.stack.length===0?"none":d;if(!a.mobile.hashListeningEnabled||n.ignoreNextHashChange)n.ignoreNextHashChange=!1;else{if(n.stack.length>1&&b.indexOf(v)>-1)if(a.mobile.activePage.is(".ui-dialog")){var e=function(){b=a.mobile.urlHistory.getActive().page};n.directHashChange({currentUrl:b,
+isBack:e,isForward:e})}else{n.directHashChange({currentUrl:b,isBack:function(){window.history.back()},isForward:function(){window.history.forward()}});return}b?(b=typeof b==="string"&&!k.isPath(b)?"#"+b:b,a.mobile.changePage(b,{transition:c,changeHash:!1,fromHashChange:!0})):a.mobile.changePage(a.mobile.firstPage,{transition:c,changeHash:!1,fromHashChange:!0})}});a(document).bind("pageshow",i);a(window).bind("throttledresize",i)})(jQuery);
+(function(a){function d(c,b,d,f){var g=new a.Deferred,i=b?" reverse":"",h="ui-mobile-viewport-transitioning viewport-"+c;d.animationComplete(function(){d.add(f).removeClass("out in reverse "+c);f&&f.removeClass(a.mobile.activePageClass);d.parent().removeClass(h);g.resolve(c,b,d,f)});d.parent().addClass(h);f&&f.addClass(c+" out"+i);d.addClass(a.mobile.activePageClass+" "+c+" in"+i);return g.promise()}a.mobile.css3TransitionHandler=d;if(a.mobile.defaultTransitionHandler===a.mobile.noneTransitionHandler)a.mobile.defaultTransitionHandler=
+d})(jQuery,this);
+(function(a,d){a.fn.fixHeaderFooter=function(){if(!a.support.scrollTop)return this;return this.each(function(){var c=a(this);c.jqmData("fullscreen")&&c.addClass("ui-page-fullscreen");c.find(".ui-header:jqmData(position='fixed')").addClass("ui-header-fixed ui-fixed-inline fade");c.find(".ui-footer:jqmData(position='fixed')").addClass("ui-footer-fixed ui-fixed-inline fade")})};a.fixedToolbars=function(){function c(){!g&&f=="overlay"&&(i||a.fixedToolbars.hide(!0),a.fixedToolbars.startShowTimer())}function b(a){var b=
+0;if(a)for(var c=a.offsetParent,d=document.body,b=a.offsetTop;a&&a!=d;){b+=a.scrollTop||0;if(a==c)b+=c.offsetTop,c=a.offsetParent;a=a.parentNode}return b}function e(c){var d=a(window).scrollTop(),e=b(c[0]),f=c.css("top")=="auto"?0:parseFloat(c.css("top")),g=window.innerHeight,h=c.outerHeight(),i=c.parents(".ui-page:not(.ui-page-fullscreen)").length;return c.is(".ui-header-fixed")?(f=d-e+f,f<e&&(f=0),c.css("top",i?f:d)):c.css("top",i?d+g-h-(e-f):d+g-h)}if(a.support.scrollTop){var f="inline",g=!1,i,
+h,l=null,m=!1,o=!0;a(function(){a(document).bind("vmousedown",function(){o&&(l=f)}).bind("vclick",function(b){o&&!a(b.target).closest("a,input,textarea,select,button,label,.ui-header-fixed,.ui-footer-fixed").length&&!m&&(a.fixedToolbars.toggle(l),l=null)}).bind("silentscroll",c);(a(document).scrollTop()==0?a(window):a(document)).bind("scrollstart",function(){m=!0;l==null&&(l=f);var b=l=="overlay";if(g=b||!!i)a.fixedToolbars.clearShowTimer(),b&&a.fixedToolbars.hide(!0)}).bind("scrollstop",function(b){a(b.target).closest("a,input,textarea,select,button,label,.ui-header-fixed,.ui-footer-fixed").length||
+(m=!1,g&&(g=!1,a.fixedToolbars.startShowTimer()),l=null)});a(window).bind("resize",c)});a(".ui-page").live("pagebeforeshow",function(b,c){var d=a(b.target).find(":jqmData(role='footer')"),f=d.data("id"),g=c.prevPage,g=g&&g.find(":jqmData(role='footer')"),g=g.length&&g.jqmData("id")===f;f&&g&&(h=d,e(h.removeClass("fade in out").appendTo(a.mobile.pageContainer)))});a(".ui-page").live("pageshow",function(){var b=a(this);h&&h.length&&setTimeout(function(){e(h.appendTo(b).addClass("fade"));h=null},500);
+a.fixedToolbars.show(!0,this)});a(".ui-collapsible-contain").live("collapse expand",c);return{show:function(c,d){a.fixedToolbars.clearShowTimer();f="overlay";return(d?a(d):a.mobile.activePage?a.mobile.activePage:a(".ui-page-active")).children(".ui-header-fixed:first, .ui-footer-fixed:not(.ui-footer-duplicate):last").each(function(){var d=a(this),f=a(window).scrollTop(),g=b(d[0]),h=window.innerHeight,i=d.outerHeight(),f=d.is(".ui-header-fixed")&&f<=g+i||d.is(".ui-footer-fixed")&&g<=f+h;d.addClass("ui-fixed-overlay").removeClass("ui-fixed-inline");
+!f&&!c&&d.animationComplete(function(){d.removeClass("in")}).addClass("in");e(d)})},hide:function(b){f="inline";return(a.mobile.activePage?a.mobile.activePage:a(".ui-page-active")).children(".ui-header-fixed:first, .ui-footer-fixed:not(.ui-footer-duplicate):last").each(function(){var c=a(this),d=c.css("top"),d=d=="auto"?0:parseFloat(d);c.addClass("ui-fixed-inline").removeClass("ui-fixed-overlay");if(d<0||c.is(".ui-header-fixed")&&d!=0)b?c.css("top",0):c.css("top")!=="auto"&&parseFloat(c.css("top"))!==
+0&&c.animationComplete(function(){c.removeClass("out reverse");c.css("top",0)}).addClass("out reverse")})},startShowTimer:function(){a.fixedToolbars.clearShowTimer();var b=a.makeArray(arguments);i=setTimeout(function(){i=d;a.fixedToolbars.show.apply(null,b)},100)},clearShowTimer:function(){i&&clearTimeout(i);i=d},toggle:function(b){b&&(f=b);return f=="overlay"?a.fixedToolbars.hide():a.fixedToolbars.show()},setTouchToggleEnabled:function(a){o=a}}}}()})(jQuery);
+(function(a,d){a.widget("mobile.checkboxradio",a.mobile.widget,{options:{theme:null},_create:function(){var c=this,b=this.element,e=b.closest("form,fieldset,:jqmData(role='page')").find("label").filter('[for="'+b[0].id+'"]'),f=b.attr("type"),g="ui-icon-"+f+"-off";if(!(f!="checkbox"&&f!="radio")){a.extend(this,{label:e,inputtype:f,checkedicon:"ui-icon-"+f+"-on",uncheckedicon:g});if(!this.options.theme)this.options.theme=this.element.jqmData("theme");e.buttonMarkup({theme:this.options.theme,icon:this.element.parents(":jqmData(type='horizontal')").length?
+d:g,shadow:!1});b.add(e).wrapAll("<div class='ui-"+f+"'></div>");e.bind({vmouseover:function(){if(a(this).parent().is(".ui-disabled"))return!1},vclick:function(a){if(b.is(":disabled"))a.preventDefault();else return c._cacheVals(),b.prop("checked",f==="radio"&&!0||!b.prop("checked")),c._getInputSet().not(b).prop("checked",!1),c._updateAll(),!1}});b.bind({vmousedown:function(){this._cacheVals()},vclick:function(){a(this).is(":checked")?(a(this).prop("checked",!0),c._getInputSet().not(a(this)).prop("checked",
+!1)):a(this).prop("checked",!1);c._updateAll()},focus:function(){e.addClass("ui-focus")},blur:function(){e.removeClass("ui-focus")}});this.refresh()}},_cacheVals:function(){this._getInputSet().each(function(){a(this).jqmData("cacheVal",a(this).is(":checked"))})},_getInputSet:function(){return this.element.closest("form,fieldset,:jqmData(role='page')").find("input[name='"+this.element.attr("name")+"'][type='"+this.inputtype+"']")},_updateAll:function(){var c=this;this._getInputSet().each(function(){(a(this).is(":checked")||
+c.inputtype==="checkbox")&&a(this).trigger("change")}).checkboxradio("refresh")},refresh:function(){var c=this.element,b=this.label,d=b.find(".ui-icon");a(c[0]).prop("checked")?(b.addClass(a.mobile.activeBtnClass),d.addClass(this.checkedicon).removeClass(this.uncheckedicon)):(b.removeClass(a.mobile.activeBtnClass),d.removeClass(this.checkedicon).addClass(this.uncheckedicon));c.is(":disabled")?this.disable():this.enable()},disable:function(){this.element.prop("disabled",!0).parent().addClass("ui-disabled")},
+enable:function(){this.element.prop("disabled",!1).parent().removeClass("ui-disabled")}})})(jQuery);
+(function(a){a.widget("mobile.textinput",a.mobile.widget,{options:{theme:null},_create:function(){var h;var d=this.element,c=this.options,b=c.theme;b||(b=this.element.closest("[class*='ui-bar-'],[class*='ui-body-']"),h=(b=b.length&&/ui-(bar|body)-([a-z])/.exec(b.attr("class")))&&b[2]||"c",b=h);b=" ui-body-"+b;a('label[for="'+d.attr("id")+'"]').addClass("ui-input-text");d.addClass("ui-input-text ui-body-"+c.theme);var e=d;if(d.is("[type='search'],:jqmData(type='search')")){var e=d.wrap('<div class="ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield'+
+b+'"></div>').parent(),f=a('<a href="#" class="ui-input-clear" title="clear text">clear text</a>').tap(function(a){d.val("").focus();d.trigger("change");f.addClass("ui-input-clear-hidden");a.preventDefault()}).appendTo(e).buttonMarkup({icon:"delete",iconpos:"notext",corners:!0,shadow:!0}),c=function(){d.val()==""?f.addClass("ui-input-clear-hidden"):f.removeClass("ui-input-clear-hidden")};c();d.keyup(c);d.focus(c)}else d.addClass("ui-corner-all ui-shadow-inset"+b);d.focus(function(){e.addClass("ui-focus")}).blur(function(){e.removeClass("ui-focus")});
+if(d.is("textarea")){var g=function(){var a=d[0].scrollHeight;d[0].clientHeight<a&&d.css({height:a+15})},i;d.keyup(function(){clearTimeout(i);i=setTimeout(g,100)})}},disable:function(){(this.element.attr("disabled",!0).is("[type='search'],:jqmData(type='search')")?this.element.parent():this.element).addClass("ui-disabled")},enable:function(){(this.element.attr("disabled",!1).is("[type='search'],:jqmData(type='search')")?this.element.parent():this.element).removeClass("ui-disabled")}})})(jQuery);
+(function(a){a.widget("mobile.selectmenu",a.mobile.widget,{options:{theme:null,disabled:!1,icon:"arrow-d",iconpos:"right",inline:null,corners:!0,shadow:!0,iconshadow:!0,menuPageTheme:"b",overlayTheme:"a",hidePlaceholderMenuItems:!0,closeText:"Close",nativeMenu:!0},_create:function(){var d=this,c=this.options,b=this.element.wrap("<div class='ui-select'>"),e=b.attr("id"),f=a('label[for="'+e+'"]').addClass("ui-select"),g=b[0].selectedIndex==-1?0:b[0].selectedIndex,i=(d.options.nativeMenu?a("<div/>"):
+a("<a>",{href:"#",role:"button",id:m,"aria-haspopup":"true","aria-owns":o})).text(a(b[0].options.item(g)).text()).insertBefore(b).buttonMarkup({theme:c.theme,icon:c.icon,iconpos:c.iconpos,inline:c.inline,corners:c.corners,shadow:c.shadow,iconshadow:c.iconshadow}),h=d.isMultiple=b[0].multiple;c.nativeMenu&&window.opera&&window.opera.version&&b.addClass("ui-select-nativeonly");if(!c.nativeMenu){var l=b.find("option"),m=e+"-button",o=e+"-menu",j=b.closest(".ui-page"),g=/ui-btn-up-([a-z])/.exec(i.attr("class"))[1],
+p=a("<div data-"+a.mobile.ns+"role='dialog' data-"+a.mobile.ns+"theme='"+c.menuPageTheme+"'><div data-"+a.mobile.ns+"role='header'><div class='ui-title'>"+f.text()+"</div></div><div data-"+a.mobile.ns+"role='content'></div></div>").appendTo(a.mobile.pageContainer).page(),k=p.find(".ui-content");p.find(".ui-header a");var q=a("<div>",{"class":"ui-selectmenu-screen ui-screen-hidden"}).appendTo(j),n=a("<div>",{"class":"ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all pop ui-body-"+
+c.overlayTheme}).insertAfter(q),z=a("<ul>",{"class":"ui-selectmenu-list",id:o,role:"listbox","aria-labelledby":m}).attr("data-"+a.mobile.ns+"theme",g).appendTo(n),y=a("<div>",{"class":"ui-header ui-bar-"+g}).prependTo(n),t=a("<h1>",{"class":"ui-title"}).appendTo(y),v=a("<a>",{text:c.closeText,href:"#","class":"ui-btn-left"}).attr("data-"+a.mobile.ns+"iconpos","notext").attr("data-"+a.mobile.ns+"icon","delete").appendTo(y).buttonMarkup()}if(h)d.buttonCount=a("<span>").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(i);
+c.disabled&&this.disable();b.change(function(){d.refresh()});a.extend(d,{select:b,optionElems:l,selectID:e,label:f,buttonId:m,menuId:o,thisPage:j,button:i,menuPage:p,menuPageContent:k,screen:q,listbox:n,list:z,menuType:void 0,header:y,headerClose:v,headerTitle:t,placeholder:""});c.nativeMenu?b.appendTo(i).bind("vmousedown",function(){i.addClass(a.mobile.activeBtnClass)}).bind("focus vmouseover",function(){i.trigger("vmouseover")}).bind("vmousemove",function(){i.removeClass(a.mobile.activeBtnClass)}).bind("change blur vmouseout",
+function(){i.trigger("vmouseout").removeClass(a.mobile.activeBtnClass)}):(d.refresh(),b.attr("tabindex","-1").focus(function(){a(this).blur();i.focus()}),i.bind("vclick keydown",function(b){if(b.type=="vclick"||b.keyCode&&(b.keyCode===a.mobile.keyCode.ENTER||b.keyCode===a.mobile.keyCode.SPACE))d.open(),b.preventDefault()}),z.attr("role","listbox").delegate(".ui-li>a","focusin",function(){a(this).attr("tabindex","0")}).delegate(".ui-li>a","focusout",function(){a(this).attr("tabindex","-1")}).delegate("li:not(.ui-disabled, .ui-li-divider)",
+"vclick",function(c){var e=b[0].selectedIndex,f=z.find("li:not(.ui-li-divider)").index(this),g=d.optionElems.eq(f)[0];g.selected=h?!g.selected:!0;h&&a(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",g.selected).toggleClass("ui-icon-checkbox-off",!g.selected);(h||e!==f)&&b.trigger("change");h||d.close();c.preventDefault()}).keydown(function(b){var c=a(b.target),d=c.closest("li");switch(b.keyCode){case 38:return b=d.prev(),b.length&&(c.blur().attr("tabindex","-1"),b.find("a").first().focus()),
+!1;case 40:return b=d.next(),b.length&&(c.blur().attr("tabindex","-1"),b.find("a").first().focus()),!1;case 13:case 32:return c.trigger("vclick"),!1}}),q.bind("vclick",function(){d.close()}),d.headerClose.click(function(){if(d.menuType=="overlay")return d.close(),!1}))},_buildList:function(){var d=this,c=this.options,b=this.placeholder,e=[],f=[],g=d.isMultiple?"checkbox-off":"false";d.list.empty().filter(".ui-listview").listview("destroy");d.select.find("option").each(function(){var i=a(this),h=i.parent(),
+l=i.text(),m="<a href='#'>"+l+"</a>",o=[],j=[];h.is("optgroup")&&(h=h.attr("label"),a.inArray(h,e)===-1&&(f.push("<li data-"+a.mobile.ns+"role='list-divider'>"+h+"</li>"),e.push(h)));if(!this.getAttribute("value")||l.length==0||i.jqmData("placeholder"))c.hidePlaceholderMenuItems&&o.push("ui-selectmenu-placeholder"),b=d.placeholder=l;this.disabled&&(o.push("ui-disabled"),j.push("aria-disabled='true'"));f.push("<li data-"+a.mobile.ns+"icon='"+g+"' class='"+o.join(" ")+"' "+j.join(" ")+">"+m+"</li>")});
+d.list.html(f.join(" "));d.list.find("li").attr({role:"option",tabindex:"-1"}).first().attr("tabindex","0");this.isMultiple||this.headerClose.hide();!this.isMultiple&&!b.length?this.header.hide():this.headerTitle.text(this.placeholder);d.list.listview()},refresh:function(d){var c=this,b=this.element,e=this.isMultiple,f=this.optionElems=b.find("option"),g=f.filter(":selected"),i=g.map(function(){return f.index(this)}).get();!c.options.nativeMenu&&(d||b[0].options.length!=c.list.find("li").length)&&
+c._buildList();c.button.find(".ui-btn-text").text(function(){if(!e)return g.text();return g.length?g.map(function(){return a(this).text()}).get().join(", "):c.placeholder});e&&c.buttonCount[g.length>1?"show":"hide"]().text(g.length);c.options.nativeMenu||c.list.find("li:not(.ui-li-divider)").removeClass(a.mobile.activeBtnClass).attr("aria-selected",!1).each(function(b){a.inArray(b,i)>-1&&(b=a(this).addClass(a.mobile.activeBtnClass),b.find("a").attr("aria-selected",!0),e&&b.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on"))})},
+open:function(){function d(){c.list.find(".ui-btn-active").focus()}if(!this.options.disabled&&!this.options.nativeMenu){var c=this,b=c.list.parent().outerHeight(),e=c.list.parent().outerWidth(),f=a(window).scrollTop(),g=c.button.offset().top,i=window.innerHeight,h=window.innerWidth;c.button.addClass(a.mobile.activeBtnClass);setTimeout(function(){c.button.removeClass(a.mobile.activeBtnClass)},300);if(b>i-80||!a.support.scrollTop){if(f==0&&g>i)c.thisPage.one("pagehide",function(){a(this).jqmData("lastScroll",
+g)});c.menuPage.one("pageshow",function(){a(window).one("silentscroll",function(){d()})});c.menuType="page";c.menuPageContent.append(c.list);a.mobile.changePage(c.menuPage,{transition:"pop"})}else{c.menuType="overlay";c.screen.height(a(document).height()).removeClass("ui-screen-hidden");var l=g-f,m=f+i-g,o=b/2,j=parseFloat(c.list.parent().css("max-width")),b=l>b/2&&m>b/2?g+c.button.outerHeight()/2-o:l>m?f+i-b-30:f+30;e<j?j=(h-e)/2:(j=c.button.offset().left+c.button.outerWidth()/2-e/2,j<30?j=30:j+
+e>h&&(j=h-e-30));c.listbox.append(c.list).removeClass("ui-selectmenu-hidden").css({top:b,left:j}).addClass("in");d()}setTimeout(function(){c.isOpen=!0},400)}},close:function(){function a(){setTimeout(function(){c.button.focus()},40);c.listbox.removeAttr("style").append(c.list)}if(!this.options.disabled&&this.isOpen&&!this.options.nativeMenu){var c=this;c.menuType=="page"?(c.menuPage.one("pagehide",a),window.history.back()):(c.screen.addClass("ui-screen-hidden"),c.listbox.addClass("ui-selectmenu-hidden").removeAttr("style").removeClass("in"),
+a());this.isOpen=!1}},disable:function(){this.element.attr("disabled",!0);this.button.addClass("ui-disabled").attr("aria-disabled",!0);return this._setOption("disabled",!0)},enable:function(){this.element.attr("disabled",!1);this.button.removeClass("ui-disabled").attr("aria-disabled",!1);return this._setOption("disabled",!1)}})})(jQuery);
+(function(a){function d(b){for(;b;){var c=a(b);if(c.hasClass("ui-btn")&&!c.hasClass("ui-disabled"))break;b=b.parentNode}return b}a.fn.buttonMarkup=function(b){return this.each(function(){var d=a(this),f=a.extend({},a.fn.buttonMarkup.defaults,d.jqmData(),b),g,i="ui-btn-inner",h;c&&c();if(!f.theme)g=d.closest("[class*='ui-bar-'],[class*='ui-body-']"),f.theme=g.length?/ui-(bar|body)-([a-z])/.exec(g.attr("class"))[2]:"c";g="ui-btn ui-btn-up-"+f.theme;f.inline&&(g+=" ui-btn-inline");if(f.icon)f.icon="ui-icon-"+
+f.icon,f.iconpos=f.iconpos||"left",h="ui-icon "+f.icon,f.shadow&&(h+=" ui-icon-shadow");f.iconpos&&(g+=" ui-btn-icon-"+f.iconpos,f.iconpos=="notext"&&!d.attr("title")&&d.attr("title",d.text()));f.corners&&(g+=" ui-btn-corner-all",i+=" ui-btn-corner-all");f.shadow&&(g+=" ui-shadow");d.attr("data-"+a.mobile.ns+"theme",f.theme).addClass(g);f=("<D class='"+i+"'><D class='ui-btn-text'></D>"+(f.icon?"<span class='"+h+"'></span>":"")+"</D>").replace(/D/g,f.wrapperEls);d.wrapInner(f)})};a.fn.buttonMarkup.defaults=
+{corners:!0,shadow:!0,iconshadow:!0,wrapperEls:"span"};var c=function(){a(document).bind({vmousedown:function(b){if(b=d(b.target)){var b=a(b),c=b.attr("data-"+a.mobile.ns+"theme");b.removeClass("ui-btn-up-"+c).addClass("ui-btn-down-"+c)}},"vmousecancel vmouseup":function(b){if(b=d(b.target)){var b=a(b),c=b.attr("data-"+a.mobile.ns+"theme");b.removeClass("ui-btn-down-"+c).addClass("ui-btn-up-"+c)}},"vmouseover focus":function(b){if(b=d(b.target)){var b=a(b),c=b.attr("data-"+a.mobile.ns+"theme");b.removeClass("ui-btn-up-"+
+c).addClass("ui-btn-hover-"+c)}},"vmouseout blur":function(b){if(b=d(b.target)){var b=a(b),c=b.attr("data-"+a.mobile.ns+"theme");b.removeClass("ui-btn-hover-"+c).addClass("ui-btn-up-"+c)}}});c=null}})(jQuery);
+(function(a){a.widget("mobile.button",a.mobile.widget,{options:{theme:null,icon:null,iconpos:null,inline:null,corners:!0,shadow:!0,iconshadow:!0},_create:function(){var d=this.element,c=this.options;this.button=a("<div></div>").text(d.text()||d.val()).buttonMarkup({theme:c.theme,icon:c.icon,iconpos:c.iconpos,inline:c.inline,corners:c.corners,shadow:c.shadow,iconshadow:c.iconshadow}).insertBefore(d).append(d.addClass("ui-btn-hidden"));c=d.attr("type");c!=="button"&&c!=="reset"&&d.bind("vclick",function(){var b=
+a("<input>",{type:"hidden",name:d.attr("name"),value:d.attr("value")}).insertBefore(d);a(document).submit(function(){b.remove()})});this.refresh()},enable:function(){this.element.attr("disabled",!1);this.button.removeClass("ui-disabled").attr("aria-disabled",!1);return this._setOption("disabled",!1)},disable:function(){this.element.attr("disabled",!0);this.button.addClass("ui-disabled").attr("aria-disabled",!0);return this._setOption("disabled",!0)},refresh:function(){this.element.attr("disabled")?
+this.disable():this.enable()}})})(jQuery);
+(function(a){a.widget("mobile.slider",a.mobile.widget,{options:{theme:null,trackTheme:null,disabled:!1},_create:function(){var d=this,c=this.element,b=c.parents("[class*=ui-bar-],[class*=ui-body-]").eq(0),b=b.length?b.attr("class").match(/ui-(bar|body)-([a-z])/)[2]:"c",e=this.options.theme?this.options.theme:b,f=this.options.trackTheme?this.options.trackTheme:b,g=c[0].nodeName.toLowerCase(),b=g=="select"?"ui-slider-switch":"",i=c.attr("id"),h=i+"-label",i=a('[for="'+i+'"]').attr("id",h),l=function(){return g==
+"input"?parseFloat(c.val()):c[0].selectedIndex},m=g=="input"?parseFloat(c.attr("min")):0,o=g=="input"?parseFloat(c.attr("max")):c.find("option").length-1,j=window.parseFloat(c.attr("step")||1),p=a('<div class="ui-slider '+b+" ui-btn-down-"+f+' ui-btn-corner-all" role="application"></div>'),k=a('<a href="#" class="ui-slider-handle"></a>').appendTo(p).buttonMarkup({corners:!0,theme:e,shadow:!0}).attr({role:"slider","aria-valuemin":m,"aria-valuemax":o,"aria-valuenow":l(),"aria-valuetext":l(),title:l(),
+"aria-labelledby":h});a.extend(this,{slider:p,handle:k,dragging:!1,beforeStart:null});g=="select"&&(p.wrapInner('<div class="ui-slider-inneroffset"></div>'),c.find("option"),c.find("option").each(function(b){var c=b==0?"b":"a",d=b==0?"right":"left",b=b==0?" ui-btn-down-"+f:" ui-btn-active";a('<div class="ui-slider-labelbg ui-slider-labelbg-'+c+b+" ui-btn-corner-"+d+'"></div>').prependTo(p);a('<span class="ui-slider-label ui-slider-label-'+c+b+" ui-btn-corner-"+d+'" role="img">'+a(this).text()+"</span>").prependTo(k)}));
+i.addClass("ui-slider");c.addClass(g=="input"?"ui-slider-input":"ui-slider-switch").change(function(){d.refresh(l(),!0)}).keyup(function(){d.refresh(l(),!0,!0)}).blur(function(){d.refresh(l(),!0)});a(document).bind("vmousemove",function(a){if(d.dragging)return d.refresh(a),!1});p.bind("vmousedown",function(a){d.dragging=!0;if(g==="select")d.beforeStart=c[0].selectedIndex;d.refresh(a);return!1});p.add(document).bind("vmouseup",function(){if(d.dragging){d.dragging=!1;if(g==="select"){d.beforeStart===
+c[0].selectedIndex&&d.refresh(d.beforeStart===0?1:0);var a=l(),a=Math.round(a/(o-m)*100);k.addClass("ui-slider-handle-snapping").css("left",a+"%").animationComplete(function(){k.removeClass("ui-slider-handle-snapping")})}return!1}});p.insertAfter(c);this.handle.bind("vmousedown",function(){a(this).focus()}).bind("vclick",!1);this.handle.bind("keydown",function(b){var c=l();if(!d.options.disabled){switch(b.keyCode){case a.mobile.keyCode.HOME:case a.mobile.keyCode.END:case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:if(b.preventDefault(),
+!d._keySliding)d._keySliding=!0,a(this).addClass("ui-state-active")}switch(b.keyCode){case a.mobile.keyCode.HOME:d.refresh(m);break;case a.mobile.keyCode.END:d.refresh(o);break;case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:d.refresh(c+j);break;case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:d.refresh(c-j)}}}).keyup(function(){if(d._keySliding)d._keySliding=!1,a(this).removeClass("ui-state-active")});this.refresh()},refresh:function(a,
+c,b){if(!this.options.disabled){var e=this.element,f=e[0].nodeName.toLowerCase(),g=f==="input"?parseFloat(e.attr("min")):0,i=f==="input"?parseFloat(e.attr("max")):e.find("option").length-1;if(typeof a==="object"){if(!this.dragging||a.pageX<this.slider.offset().left-8||a.pageX>this.slider.offset().left+this.slider.width()+8)return;a=Math.round((a.pageX-this.slider.offset().left)/this.slider.width()*100)}else a==null&&(a=f==="input"?parseFloat(e.val()):e[0].selectedIndex),a=(parseFloat(a)-g)/(i-g)*
+100;if(!isNaN(a)){a<0&&(a=0);a>100&&(a=100);var h=Math.round(a/100*(i-g))+g;h<g&&(h=g);h>i&&(h=i);this.handle.css("left",a+"%");this.handle.attr({"aria-valuenow":f==="input"?h:e.find("option").eq(h).attr("value"),"aria-valuetext":f==="input"?h:e.find("option").eq(h).text(),title:h});f==="select"&&(h===0?this.slider.addClass("ui-slider-switch-a").removeClass("ui-slider-switch-b"):this.slider.addClass("ui-slider-switch-b").removeClass("ui-slider-switch-a"));if(!b)f==="input"?e.val(h):e[0].selectedIndex=
+h,c||e.trigger("change")}}},enable:function(){this.element.attr("disabled",!1);this.slider.removeClass("ui-disabled").attr("aria-disabled",!1);return this._setOption("disabled",!1)},disable:function(){this.element.attr("disabled",!0);this.slider.addClass("ui-disabled").attr("aria-disabled",!0);return this._setOption("disabled",!0)}})})(jQuery);
+(function(a){a.widget("mobile.collapsible",a.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:!1,heading:">:header,>legend",theme:null,iconTheme:"d"},_create:function(){var d=this.element,c=this.options,b=d.addClass("ui-collapsible-contain"),e=d.find(c.heading).eq(0),f=b.wrapInner('<div class="ui-collapsible-content"></div>').find(".ui-collapsible-content"),d=d.closest(":jqmData(role='collapsible-set')").addClass("ui-collapsible-set");
+e.is("legend")&&(e=a('<div role="heading">'+e.html()+"</div>").insertBefore(e),e.next().remove());e.insertBefore(f).addClass("ui-collapsible-heading").append('<span class="ui-collapsible-heading-status"></span>').wrapInner('<a href="#" class="ui-collapsible-heading-toggle"></a>').find("a:eq(0)").buttonMarkup({shadow:!d.length,corners:!1,iconPos:"left",icon:"plus",theme:c.theme}).find(".ui-icon").removeAttr("class").buttonMarkup({shadow:!0,corners:!0,iconPos:"notext",icon:"plus",theme:c.iconTheme});
+d.length?b.jqmData("collapsible-last")&&e.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-bottom"):e.find("a:eq(0)").addClass("ui-corner-all").find(".ui-btn-inner").addClass("ui-corner-all");b.bind("collapse",function(d){!d.isDefaultPrevented()&&a(d.target).closest(".ui-collapsible-contain").is(b)&&(d.preventDefault(),e.addClass("ui-collapsible-heading-collapsed").find(".ui-collapsible-heading-status").text(c.expandCueText).end().find(".ui-icon").removeClass("ui-icon-minus").addClass("ui-icon-plus"),
+f.addClass("ui-collapsible-content-collapsed").attr("aria-hidden",!0),b.jqmData("collapsible-last")&&e.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-bottom"))}).bind("expand",function(a){a.isDefaultPrevented()||(a.preventDefault(),e.removeClass("ui-collapsible-heading-collapsed").find(".ui-collapsible-heading-status").text(c.collapseCueText),e.find(".ui-icon").removeClass("ui-icon-plus").addClass("ui-icon-minus"),f.removeClass("ui-collapsible-content-collapsed").attr("aria-hidden",!1),b.jqmData("collapsible-last")&&
+e.find("a:eq(0), .ui-btn-inner").removeClass("ui-corner-bottom"))}).trigger(c.collapsed?"collapse":"expand");d.length&&!d.jqmData("collapsiblebound")&&(d.jqmData("collapsiblebound",!0).bind("expand",function(b){a(b.target).closest(".ui-collapsible-contain").siblings(".ui-collapsible-contain").trigger("collapse")}),d=d.find(":jqmData(role='collapsible'):first"),d.first().find("a:eq(0)").addClass("ui-corner-top").find(".ui-btn-inner").addClass("ui-corner-top"),d.last().jqmData("collapsible-last",!0));
+e.bind("vclick",function(a){e.is(".ui-collapsible-heading-collapsed")?b.trigger("expand"):b.trigger("collapse");a.preventDefault()})}})})(jQuery);
+(function(a){a.fn.controlgroup=function(d){return this.each(function(){function c(a){a.removeClass("ui-btn-corner-all ui-shadow").eq(0).addClass(f[0]).end().filter(":last").addClass(f[1]).addClass("ui-controlgroup-last")}var b=a.extend({direction:a(this).jqmData("type")||"vertical",shadow:!1},d),e=a(this).find(">legend"),f=b.direction=="horizontal"?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"];a(this).find("input:eq(0)").attr("type");e.length&&(a(this).wrapInner('<div class="ui-controlgroup-controls"></div>'),
+a('<div role="heading" class="ui-controlgroup-label">'+e.html()+"</div>").insertBefore(a(this).children(0)),e.remove());a(this).addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+b.direction);c(a(this).find(".ui-btn"));c(a(this).find(".ui-btn-inner"));b.shadow&&a(this).addClass("ui-shadow")})}})(jQuery);(function(a){a.fn.fieldcontain=function(){return this.addClass("ui-field-contain ui-body ui-br")}})(jQuery);
+(function(a){var d={};a.widget("mobile.listview",a.mobile.widget,{options:{theme:"c",countTheme:"c",headerTheme:"b",dividerTheme:"b",splitIcon:"arrow-r",splitTheme:"b",inset:!1},_create:function(){var a=this;a.element.addClass(function(b,d){return d+" ui-listview "+(a.options.inset?" ui-listview-inset ui-corner-all ui-shadow ":"")});a.refresh()},_itemApply:function(c,b){b.find(".ui-li-count").addClass("ui-btn-up-"+(c.jqmData("counttheme")||this.options.countTheme)+" ui-btn-corner-all").end().find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading").end().find("p, dl").addClass("ui-li-desc").end().find(">img:eq(0), .ui-link-inherit>img:eq(0)").addClass("ui-li-thumb").each(function(){b.addClass(a(this).is(".ui-li-icon")?
+"ui-li-has-icon":"ui-li-has-thumb")}).end().find(".ui-li-aside").each(function(){var b=a(this);b.prependTo(b.parent())})},_removeCorners:function(a){a.add(a.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb")).removeClass("ui-corner-top ui-corner-bottom ui-corner-br ui-corner-bl ui-corner-tr ui-corner-tl")},refresh:function(c){this._createSubPages();var b=this.options,d=this.element,f=d.jqmData("dividertheme")||b.dividerTheme,g=d.jqmData("splittheme"),i=d.jqmData("spliticon"),h=d.children("li"),
+l=a.support.cssPseudoElement||!a.nodeName(d[0],"ol")?0:1;l&&d.find(".ui-li-dec").remove();for(var m=0,o=h.length;m<o;m++){var j=h.eq(m),p="ui-li";if(c||!j.hasClass("ui-li")){var k=j.jqmData("theme")||b.theme,q=j.children("a");if(q.length){var n=j.jqmData("icon");j.buttonMarkup({wrapperEls:"div",shadow:!1,corners:!1,iconpos:"right",icon:q.length>1||n===!1?!1:n||"arrow-r",theme:k});q.first().addClass("ui-link-inherit");q.length>1&&(p+=" ui-li-has-alt",q=q.last(),n=g||q.jqmData("theme")||b.splitTheme,
+q.appendTo(j).attr("title",q.text()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:!1,corners:!1,theme:k,icon:!1,iconpos:!1}).find(".ui-btn-inner").append(a("<span />").buttonMarkup({shadow:!0,corners:!0,theme:n,iconpos:"notext",icon:i||q.jqmData("icon")||b.splitIcon})))}else j.jqmData("role")==="list-divider"?(p+=" ui-li-divider ui-btn ui-bar-"+f,j.attr("role","heading"),l&&(l=1)):p+=" ui-li-static ui-body-"+k}b.inset&&(m===0&&(p+=" ui-corner-top",j.add(j.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-tr").end().find(".ui-li-thumb").addClass("ui-corner-tl"),
+j.next().next().length&&this._removeCorners(j.next())),m===h.length-1&&(p+=" ui-corner-bottom",j.add(j.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").addClass("ui-corner-bl"),j.prev().prev().length&&this._removeCorners(j.prev())));l&&p.indexOf("ui-li-divider")<0&&(j.is(".ui-li-static:first")?j:j.find(".ui-link-inherit")).addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+l++ +". </span>");j.add(j.children(".ui-btn-inner")).addClass(p);
+c||this._itemApply(d,j)}},_idStringEscape:function(a){return a.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var c=this.element,b=c.closest(".ui-page"),e=b.jqmData("url"),f=e||b[0][a.expando],g=c.attr("id"),i=this.options,h="data-"+a.mobile.ns,l=b.find(":jqmData(role='footer')").jqmData("id");typeof d[f]==="undefined"&&(d[f]=-1);g=g||++d[f];a(c.find("li>ul, li>ol").toArray().reverse()).each(function(b){var d=a(this),f=d.attr("id")||g+"-"+b,b=d.parent(),p=a(d.prevAll().toArray().reverse()),
+p=p.length?p:a("<span>"+a.trim(b.contents()[0].nodeValue)+"</span>"),k=p.first().text(),f=(e||"")+"&"+a.mobile.subPageUrlKey+"="+f;theme=d.jqmData("theme")||i.theme;countTheme=d.jqmData("counttheme")||c.jqmData("counttheme")||i.countTheme;newPage=d.detach().wrap("<div "+h+"role='page' "+h+"url='"+f+"' "+h+"theme='"+theme+"' "+h+"count-theme='"+countTheme+"'><div "+h+"role='content'></div></div>").parent().before("<div "+h+"role='header' "+h+"theme='"+i.headerTheme+"'><div class='ui-title'>"+k+"</div></div>").after(l?
+a("<div "+h+"role='footer' "+h+"id='"+l+"'>"):"").parent().appendTo(a.mobile.pageContainer);newPage.page();d=b.find("a:first");d.length||(d=a("<a />").html(p||k).prependTo(b.empty()));d.attr("href","#"+f)}).listview()}})})(jQuery);
+(function(a){a.mobile.listview.prototype.options.filter=!1;a.mobile.listview.prototype.options.filterPlaceholder="Filter items...";a.mobile.listview.prototype.options.filterTheme="c";a(":jqmData(role='listview')").live("listviewcreate",function(){var d=a(this),c=d.data("listview");if(c.options.filter){var b=a("<form>",{"class":"ui-listview-filter ui-bar-"+c.options.filterTheme,role:"search"});a("<input>",{placeholder:c.options.filterPlaceholder}).attr("data-"+a.mobile.ns+"type","search").jqmData("lastval",
+"").bind("keyup change",function(){var b=this.value.toLowerCase(),c=null,c=a(this).jqmData("lastval")+"";a(this).jqmData("lastval",b);change=b.replace(RegExp("^"+c),"");c=b.length<c.length||change.length!=b.length-c.length?d.children():d.children(":not(.ui-screen-hidden)");if(b){for(var g,i=!1,h="",l=c.length-1;l>=0;l--)g=a(c[l]),h=g.jqmData("filtertext")||g.text(),g.is("li:jqmData(role=list-divider)")?(g.toggleClass("ui-filter-hidequeue",!i),i=!1):h.toLowerCase().indexOf(b)===-1?g.toggleClass("ui-filter-hidequeue",
+!0):i=!0;c.filter(":not(.ui-filter-hidequeue)").toggleClass("ui-screen-hidden",!1);c.filter(".ui-filter-hidequeue").toggleClass("ui-screen-hidden",!0).toggleClass("ui-filter-hidequeue",!1)}else c.toggleClass("ui-screen-hidden",!1)}).appendTo(b).textinput();a(this).jqmData("inset")&&b.addClass("ui-listview-filter-inset");b.insertBefore(d)}})})(jQuery);
+(function(a){a.widget("mobile.dialog",a.mobile.widget,{options:{closeBtnText:"Close"},_create:function(){var d=this.element;d.attr("role","dialog").addClass("ui-page ui-dialog ui-body-a").find(":jqmData(role=header)").addClass("ui-corner-top ui-overlay-shadow").prepend("<a href='#' data-"+a.mobile.ns+"icon='delete' data-"+a.mobile.ns+"rel='back' data-"+a.mobile.ns+"iconpos='notext'>"+this.options.closeBtnText+"</a>").end().find('.ui-content:not([class*="ui-body-"])').addClass("ui-body-c").end().find(".ui-content,:jqmData(role='footer')").last().addClass("ui-corner-bottom ui-overlay-shadow");
+d.bind("vclick submit",function(c){c=a(c.target).closest(c.type==="vclick"?"a":"form");if(c.length&&!c.jqmData("transition")){var b=a.mobile.urlHistory.getActive()||{};c.attr("data-"+a.mobile.ns+"transition",b.transition||a.mobile.defaultDialogTransition).attr("data-"+a.mobile.ns+"direction","reverse")}}).bind("pagehide",function(){a(this).find("."+a.mobile.activeBtnClass).removeClass(a.mobile.activeBtnClass)})},close:function(){window.history.back()}})})(jQuery);
+(function(a,d){a.widget("mobile.navbar",a.mobile.widget,{options:{iconpos:"top",grid:null},_create:function(){var c=this.element,b=c.find("a"),e=b.filter(":jqmData(icon)").length?this.options.iconpos:d;c.addClass("ui-navbar").attr("role","navigation").find("ul").grid({grid:this.options.grid});e||c.addClass("ui-navbar-noicons");b.buttonMarkup({corners:!1,shadow:!1,iconpos:e});c.delegate("a","vclick",function(){b.not(".ui-state-persist").removeClass(a.mobile.activeBtnClass);a(this).addClass(a.mobile.activeBtnClass)})}})})(jQuery);
+(function(a){a.fn.grid=function(d){return this.each(function(){var c=a.extend({grid:null},d),b=a(this).children(),e={solo:1,a:2,b:3,c:4,d:5},c=c.grid;if(!c)if(b.length<=5)for(var f in e)e[f]==b.length&&(c=f);else c="a";e=e[c];a(this).addClass("ui-grid-"+c);b.filter(":nth-child("+e+"n+1)").addClass("ui-block-a");e>1&&b.filter(":nth-child("+e+"n+2)").addClass("ui-block-b");e>2&&b.filter(":nth-child(3n+3)").addClass("ui-block-c");e>3&&b.filter(":nth-child(4n+4)").addClass("ui-block-d");e>4&&b.filter(":nth-child(5n+5)").addClass("ui-block-e")})}})(jQuery);
+(function(a,d,c){var b=a("html");a("head");var e=a(d);a(d.document).trigger("mobileinit");if(a.mobile.gradeA()){if(d.blackberry&&!d.WebKitPoint||d.operamini&&Object.prototype.toString.call(d.operamini)==="[object OperaMini]")a.mobile.ajaxEnabled=!1;b.addClass("ui-mobile ui-mobile-rendering");var f=a.mobile.loadingMessage?a("<div class='ui-loader ui-body-a ui-corner-all'><span class='ui-icon ui-icon-loading spin'></span><h1>"+a.mobile.loadingMessage+"</h1></div>"):c;a.extend(a.mobile,{showPageLoadingMsg:function(){if(a.mobile.loadingMessage){var c=
+a("."+a.mobile.activeBtnClass).first();f.appendTo(a.mobile.pageContainer).css({top:a.support.scrollTop&&a(d).scrollTop()+a(d).height()/2||c.length&&c.offset().top||100})}b.addClass("ui-loading")},hidePageLoadingMsg:function(){b.removeClass("ui-loading")},pageLoading:function(b){b?a.mobile.hidePageLoadingMsg():a.mobile.showPageLoadingMsg()},initializePage:function(){var b=a(":jqmData(role='page')");b.add(":jqmData(role='dialog')").each(function(){var b=a(this);b.jqmData("url")||b.attr("data-"+a.mobile.ns+
+"url",b.attr("id"))});a.mobile.firstPage=b.first();a.mobile.pageContainer=b.first().parent().addClass("ui-mobile-viewport");a.mobile.showPageLoadingMsg();!a.mobile.hashListeningEnabled||!a.mobile.path.stripHash(location.hash)?a.mobile.changePage(a.mobile.firstPage,{transition:"none",reverse:!0,changeHash:!1,fromHashChange:!0}):e.trigger("hashchange",[!0])}});a(function(){d.scrollTo(0,1);a.mobile.defaultHomeScroll=!a.support.scrollTop||a(d).scrollTop()===1?0:1;a(a.mobile.initializePage);e.load(a.mobile.silentScroll)})}})(jQuery,
+this);
index 17b872b..4981c36 100644 (file)
@@ -33,32 +33,6 @@ if (isset($_POST['cancel'])) {
 }
 
 require(AT_INCLUDE_PATH.'header.inc.php');
-
-?>
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-
-<div class="input-form">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('create_backup'); ?></legend>
-       <div class="row">
-               <?php echo _AT('create_backup_about', AT_COURSE_BACKUPS); ?>
-       </div>
-
-       <?php if ($Backup->getNumAvailable() >= AT_COURSE_BACKUPS): ?>
-               <div class="row">
-                       <p><strong><?php echo _AT('max_backups_reached'); ?></strong></p>
-               </div>
-       <?php else: ?>
-               <div class="row">
-                       <label for="desc"><?php echo _AT('optional_description'); ?></label>
-                       <textarea cols="35" rows="2" id="desc" name="description"></textarea>
-               </div>
-
-               <div class="row buttons">
-                       <input type="submit" name="submit" value="<?php echo _AT('create'); ?>" accesskey="s"  class="button"/> 
-                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  class="button"/>
-               </div>
-       <?php endif; ?>
-</div>
-</form>
-
-<?php require (AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
+$savant->assign('Backup', $Backup);
+$savant->display('instructor/backups/create.tmpl.php');
+require (AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
index 11a235f..c8b4e25 100644 (file)
@@ -37,23 +37,6 @@ require(AT_INCLUDE_PATH.'header.inc.php');
 \r
 $row = $Backup->getRow($_REQUEST['backup_id']);\r
 //check for errors\r
-\r
-\r
-?>\r
-<form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-<input type="hidden" name="backup_id" value="<?php echo $_GET['backup_id']; ?>" />\r
-<div class="input-form">\r
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit'); ?></legend>\r
-       <div class="row">\r
-               <label for="description"><?php echo _AT('optional_description'); ?></label>\r
-               <textarea cols="30" rows="2" id="description" name="new_description"><?php echo AT_print($row['description'], 'backups.description'); ?></textarea>\r
-       </div>\r
-\r
-       <div class="row buttons">\r
-               <input type="submit" name="edit" value="<?php echo _AT('save'); ?>" accesskey="s" /> \r
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />\r
-       </div>\r
-       </fieldset>\r
-</div>\r
-</form>\r
-<?php require (AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
+$savant->assign('row', $row);\r
+$savant->display('instructor/backups/edit.tmpl.php');\r
+require (AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
index 128e55d..61c868b 100644 (file)
@@ -42,51 +42,6 @@ require(AT_INCLUDE_PATH.'header.inc.php');
 
 $Backup = new Backup($db, $_SESSION['course_id']);
 $list = $Backup->getAvailableList();
-
-?>
-
-<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-
-<table class="data" summary="" rules="cols">
-<thead>
-<tr>
-       <th><?php echo _AT('file_name');    ?></th>
-       <th><?php echo _AT('date_created'); ?></th>
-       <th><?php echo _AT('file_size');    ?></th>
-       <th><?php echo _AT('description');  ?></th>
-</tr>
-</thead>
-<tfoot>
-<tr>
-       <td colspan="6"><input type="submit" name="restore" value="<?php echo _AT('restore'); ?>"  class="button"/> 
-                                 <input type="submit" name="download" value="<?php echo _AT('download'); ?>"  class="button"/> 
-                                 <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"  class="button"/> 
-                                 <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>"  class="button"/></td>
-</tr>
-</tfoot>
-<tbody>
-<?php
-
-       if (!$list) {
-               ?>
-       <tr>
-               <td colspan="4"><?php echo _AT('none_found'); ?></td>
-       </tr>
-       <?php
-       } else {
-               foreach ($list as $row) {
-                       echo '<tr onmousedown="document.form[\'b'.$row['backup_id'].'\'].checked = true; rowselect(this);" id="r_'.$row['backup_id'].'">';
-                       echo '<td class="row1"><label><input type="radio" value="'.$row['backup_id'].'" name="backup_id" id="b'.$row['backup_id'].'" />';
-                       echo $row['file_name'].'</label></td>';
-                       echo '<td>'.AT_date(_AT('filemanager_date_format'), $row['date'], AT_DATE_MYSQL_DATETIME).'</td>';
-                       echo '<td align="right">'.get_human_size($row['file_size']).'</td>';
-                       echo '<td>'.AT_print($row['description'], 'backups.description').'</td>';
-                       echo '</tr>';
-               }
-?>
-       <?php } ?>
-</tbody>
-</table>
-</form>
-
-<?php require (AT_INCLUDE_PATH.'footer.inc.php');  ?>
+$savant->assign('list', $list);
+$savant->display('instructor/backups/index.tmpl.php');
+require (AT_INCLUDE_PATH.'footer.inc.php');  ?>
index 95d1463..8d4003b 100644 (file)
@@ -45,64 +45,6 @@ require(AT_INCLUDE_PATH.'header.inc.php');
 
 $row = $Backup->getRow($_REQUEST['backup_id']);
 
-?>
 
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
-<input type="hidden" name="backup_id" value="<?php echo $_REQUEST['backup_id']; ?>" />
-
-<div class="input-form">
-<fieldset class="group_form"><legend class="group_form"><?php echo _AT('restore'); ?></legend>
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('material'); ?><br />
-
-               <input type="checkbox" value="1" name="all" id="all" onclick="javascript:selectAll();" /><label for="all"><?php echo _AT('material_select_all'); ?></label><br /><br />
-
-               <input type="checkbox" value="1" name='material[properties]' id='m0' /><label for='m0'><?php echo _AT('banner'); ?></label><br />
-               <?php
-               $i=0;
-               $modules = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED, 0, TRUE);
-               $keys = array_keys($modules);
-               ?>
-               <?php foreach($keys as $module_name): ?>
-                       <?php $module =& $modules[$module_name]; ?>
-                       <?php if ($module->isBackupable()): ?>
-                               <input type="checkbox" value="1" name="material[<?php echo $module_name; ?>]" id="m<?php echo ++$i; ?>" /><label for="m<?php echo $i; ?>"><?php echo $module->getName(); ?></label><br />
-                       <?php endif; ?>
-               <?php endforeach; ?>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('action'); ?><br />
-               <input type="radio" checked="checked" name="action" value="append" id="append" /><label for="append"><?php echo _AT('append_content'); ?></label><br />
-               
-               <input type="radio" name="action" value="overwrite" id="overwrite" /><label for="overwrite"><?php echo _AT('overwite_content'); ?></label><br />
-       </div>
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('restore'); ?>"  class="button"/> 
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  class="button"/>
-       </div>
-</fieldset>
-</div>
-</form>
-<?php $i=0; ?>
-<script language="javascript" type="text/javascript">
-       
-       function selectAll() {
-               if (document.form.all.checked == true) {
-                       document.form.m0.checked = true;
-                       <?php foreach($keys as $module_name): $module =& $modules[$module_name]; if ($module->isBackupable()): ?>
-                               document.form.m<?php echo ++$i; ?>.checked = true;
-                       <?php endif; endforeach; ?>
-               } else {
-                       document.form.m0.checked = false;
-                       <?php $i=0;?>
-                       <?php foreach($keys as $module_name): $module =& $modules[$module_name]; if ($module->isBackupable()): ?>
-                               document.form.m<?php echo ++$i; ?>.checked = false;
-                       <?php endif; endforeach; ?>
-
-               }
-       }
-</script>
-
-<?php require (AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
+$savant->display('instructor/backups/restore.tmpl.php');
+require (AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
index c86cc3b..a196f41 100644 (file)
@@ -44,36 +44,7 @@ require(AT_INCLUDE_PATH.'header.inc.php');
 
 ?>
 
-<form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data" >
-<div class="input-form">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('upload'); ?></legend>
-       <div class="row">
-               <p><?php echo _AT('restore_upload'); ?></p>
-       </div>
 
-       <?php if ($Backup->getNumAvailable() >= AT_COURSE_BACKUPS): ?>
-               <div class="row">
-                       <p><strong><?php echo _AT('max_backups_reached'); ?></strong></p>
-               </div>
-       <?php else: ?>
-               <div class="row">
-                       <label for="descrip"><?php echo _AT('optional_description'); ?></label><br />
-                       <textarea id="descrip" cols="30" rows="2" name="description"></textarea>
-               </div>
-               
-               <div class="row">
-                       <label for="file"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('file'); ?></label><br />
-                       <input type="file" name="file" id="file" />
-               </div>
-
-               <div class="row buttons">
-               <input type="submit" name="upload" value="<?php echo _AT('upload_backup'); ?>" onclick="openWindow('<?php echo AT_BASE_HREF; ?>tools/prog.php');"  class="button"/> 
-                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  class="button"/>
-               </div>
-       <?php endif; ?>
-       </fieldset>
-</div>
-</form>
 
 <script language="javascript" type="text/javascript">
 function openWindow(page) {
@@ -82,4 +53,7 @@ function openWindow(page) {
 }
 </script>
 
-<?php require (AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
+<?php 
+$savant->assign('Backup', $Backup);
+$savant->display('instructor/backups/upload.tmpl.php');
+require (AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
index 24a3ed3..29c00fb 100644 (file)
@@ -1,91 +1,44 @@
-<?php\r
-/****************************************************************************/\r
-/* ATutor                                                                                                                                      */\r
-/****************************************************************************/\r
-/* Copyright (c) 2002-2010                                                  */\r
-/* Inclusive Design Institute                                               */\r
-/* http://atutor.ca                                                                                                                    */\r
-/*                                                                                                                                                     */\r
-/* This program is free software. You can redistribute it and/or                       */\r
-/* modify it under the terms of the GNU General Public License                         */\r
-/* as published by the Free Software Foundation.                                                       */\r
-/****************************************************************************/\r
-// $Id$\r
-\r
-define('AT_INCLUDE_PATH', '../../../../include/');\r
-require(AT_INCLUDE_PATH.'vitals.inc.php');\r
-require(AT_INCLUDE_PATH.'../mods/_core/themes/lib/themes.inc.php');\r
-admin_authenticate(AT_ADMIN_PRIV_CATEGORIES);\r
-\r
-if (isset($_POST['delete'], $_POST['cat_id'])) {\r
-       header('Location: delete_category.php?cat_id='.$_POST['cat_id']);\r
-       exit;\r
-} else if (isset($_POST['edit'], $_POST['cat_id'])) {\r
-       header('Location: edit_category.php?cat_id='.$_POST['cat_id']);\r
-       exit;\r
-} else if (!empty($_POST)) {\r
-       $msg->addError('NO_ITEM_SELECTED');\r
-}\r
-\r
-require(AT_INCLUDE_PATH.'header.inc.php'); \r
-\r
-?>\r
-<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-<table summary="" class="data" rules="cols" align="center" style="width: 95%;">\r
-\r
-<thead>\r
-<tr>\r
-       <th scope="col">&nbsp;</th>\r
-       <th scope="col"><?php echo _AT('name'); ?></th>\r
-       <th scope="col"><?php echo _AT('parent'); ?></th>\r
-<?php if (defined('AT_ENABLE_CATEGORY_THEMES') && AT_ENABLE_CATEGORY_THEMES) : ?>\r
-       <th scope="col"><?php echo _AT('theme'); ?></th>\r
-<?php endif; ?>\r
-</tr>\r
-</thead>\r
-<tfoot>\r
-<tr>\r
-       <td colspan="4">\r
-               <div class="row buttons">\r
-               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /> \r
-               </div>\r
-       </td>\r
-</tr>\r
-</tfoot>\r
-<tbody>\r
-<?php\r
-$sql   = "SELECT * FROM ".TABLE_PREFIX."course_cats ORDER BY cat_name";\r
-$result = mysql_query($sql, $db);\r
-if ($row = mysql_fetch_assoc($result)): ?>\r
-       <?php\r
-       do {\r
-               $parent_cat_name = '';\r
-               if ($row['cat_parent']) {\r
-                       $sql_cat        = "SELECT cat_name FROM ".TABLE_PREFIX."course_cats WHERE cat_id=".$row['cat_parent'];\r
-                       $result_cat = mysql_query($sql_cat, $db);\r
-                       $row_cat = mysql_fetch_assoc($result_cat);\r
-                       $parent_cat_name = $row_cat['cat_name'];\r
-               } \r
-       ?>\r
-               <tr onmousedown="document.form['m<?php echo $row['cat_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['cat_id']; ?>">\r
-                       <td width="10"><input type="radio" name="cat_id" value="<?php echo $row['cat_id']; ?>" id="m<?php echo $row['cat_id']; ?>" /></td>\r
-                       <td><label for="m<?php echo $row['cat_id']; ?>"><?php echo AT_print($row['cat_name'], 'course_cats.cat_name'); ?></label></td>\r
-                       <td><?php echo AT_print($parent_cat_name, 'course_cats.cat_name'); ?></td>\r
-                       <?php if (defined('AT_ENABLE_CATEGORY_THEMES') && AT_ENABLE_CATEGORY_THEMES) : ?>\r
-                               <td><?php echo AT_print(get_theme_name($row['theme']), 'themes.title'); ?></td>\r
-                       <?php endif; ?>\r
-\r
-               </tr>\r
-       <?php } while ($row = mysql_fetch_assoc($result)); ?>\r
-<?php else: ?>\r
-       <tr>\r
-               <td colspan="3"><?php echo _AT('none_found'); ?></td>\r
-       </tr>\r
-<?php endif; ?>\r
-</tbody>\r
-</table>\r
-\r
-</form>\r
-\r
-\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php
+/****************************************************************************/
+/* ATutor                                                                                                                                      */
+/****************************************************************************/
+/* Copyright (c) 2002-2010                                                  */
+/* Inclusive Design Institute                                               */
+/* http://atutor.ca                                                                                                                    */
+/*                                                                                                                                                     */
+/* This program is free software. You can redistribute it and/or                       */
+/* modify it under the terms of the GNU General Public License                         */
+/* as published by the Free Software Foundation.                                                       */
+/****************************************************************************/
+// $Id$
+
+define('AT_INCLUDE_PATH', '../../../../include/');
+require(AT_INCLUDE_PATH.'vitals.inc.php');
+require(AT_INCLUDE_PATH.'../mods/_core/themes/lib/themes.inc.php');
+admin_authenticate(AT_ADMIN_PRIV_CATEGORIES);
+
+if (isset($_POST['delete'], $_POST['cat_id'])) {
+       header('Location: delete_category.php?cat_id='.$_POST['cat_id']);
+       exit;
+} else if (isset($_POST['edit'], $_POST['cat_id'])) {
+       header('Location: edit_category.php?cat_id='.$_POST['cat_id']);
+       exit;
+} else if (!empty($_POST)) {
+       $msg->addError('NO_ITEM_SELECTED');
+}
+
+require(AT_INCLUDE_PATH.'header.inc.php'); 
+$sql   = "SELECT * FROM ".TABLE_PREFIX."course_cats ORDER BY cat_name";
+$result = mysql_query($sql, $db);
+//not working? 
+$sql_cat       = "SELECT cat_name FROM ".TABLE_PREFIX."course_cats WHERE cat_id=".$row['cat_parent'];
+$result_cat = mysql_query($sql_cat, $db);
+$row_cat = mysql_fetch_assoc($result_cat);
+                       
+
+$savant->assign('row_cat', $row_cat);
+$savant->assign('result', $result);
+$savant->display('admin/courses/course_categories.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); 
+
+?>
\ No newline at end of file
index 885690c..5c3a98c 100644 (file)
@@ -16,6 +16,7 @@ if (admin_authenticate(AT_ADMIN_PRIV_CATEGORIES, TRUE) || admin_authenticate(AT_
 $this->_pages['mods/_core/cats_categories/admin/course_categories.php']['title_var'] = 'cats_categories';\r
 $this->_pages['mods/_core/cats_categories/admin/course_categories.php']['guide']     = 'admin/?p=categories.php';\r
 $this->_pages['mods/_core/cats_categories/admin/course_categories.php']['children']  = array('mods/_core/cats_categories/admin/create_category.php');\r
+$this->_pages['mods/_core/cats_categories/admin/course_categories.php']['avail_in_mobile']   = false;\r
 \r
        $this->_pages['mods/_core/cats_categories/admin/create_category.php']['title_var'] = 'create_category';\r
        $this->_pages['mods/_core/cats_categories/admin/create_category.php']['parent']    = 'mods/_core/cats_categories/admin/course_categories.php';\r
index 941b2e7..3b4ef31 100644 (file)
@@ -95,67 +95,7 @@ function print_select($pid, $depth) {
                }\r
        }\r
 }\r
-\r
-?>\r
-<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-<div class="input-form">\r
-       <div class="row">\r
-               <h3><label for="ctid"><?php echo _AT('select_parent_topic'); ?></label></h3>\r
-       </div>\r
-\r
-       <div class="row">\r
-               <select name="ctid" id="ctid">\r
-                       <option value="0"><?php echo _AT('top_level'); ?></option>\r
-                       <?php\r
-                               print_select(0, 1);\r
-                       ?>\r
-               </select>\r
-       </div>\r
-\r
-       <div class="row buttons">\r
-               <input type="submit" name="sub_content" value="<?php echo _AT('view_sub_topics'); ?>" />\r
-       </div>\r
-</div>\r
-</form>\r
-\r
-<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-\r
-<table class="data" summary="" rules="cols" style="width: 95%;">\r
-<thead>\r
-<tr>\r
-       <th scope="col">&nbsp;</th>\r
-       <th scope="col">#</th>\r
-       <th scope="col"><?php echo _AT('title'); ?></th>\r
-       <th scope="col"><?php echo _AT('num_pages'); ?></th>\r
-</tr>\r
-</thead>\r
-<tfoot>\r
-<tr>\r
-       <td colspan="5">\r
-               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> \r
-               <input type="submit" name="view" value="<?php echo _AT('view'); ?>" />\r
-               <input type="submit" name="usage" value="<?php echo _AT('usage'); ?>" />\r
-               <input type="submit" name="sub_content" value="<?php echo _AT('sub_topics'); ?>" />\r
-               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />\r
-       </td>\r
-</tr>\r
-</tfoot>\r
-<tbody>\r
-       <?php if (!empty($content)): ?>\r
-               <?php foreach ($content as $row): ?>\r
-                       <tr onmousedown="document.form['c<?php echo $row['content_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['content_id']; ?>">\r
-                               <td><input type="radio" name="ctid" value="<?php echo $row['content_id']; ?>" id="c<?php echo $row['content_id']; ?>" /></td>\r
-                               <td><?php echo $row['ordering']; ?></td>\r
-                               <td><label for="c<?php echo $row['content_id']; ?>"><?php echo AT_print($row['title'], 'content.title'); ?></label></td>\r
-                               <td><?php echo count($all_content[$row['content_id']]); ?></td>\r
-                       </tr>\r
-               <?php endforeach; ?>\r
-       <?php else: ?>\r
-               <tr>\r
-                       <td colspan="5"><?php echo _AT('none_found'); ?></td>\r
-               </tr>\r
-       <?php endif; ?>\r
-</tbody>\r
-</table>\r
-</form>\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('all_content', $all_content);\r
+$savant->assign('content', $content);\r
+$savant->display('instructor/content/index.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index b408e4c..99b69c6 100644 (file)
@@ -104,106 +104,15 @@ $sql     = "SELECT C.*, M.login, T.cat_name FROM ".TABLE_PREFIX."members M INNER JOI
 $result = mysql_query($sql, $db);
 
 $num_rows = mysql_num_rows($result);
-?>
-
-<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-       <div class="input-form">
-               <div class="row">
-                       <h3><?php echo _AT('results_found', $num_results); ?></h3>
-               </div>
-
-               <div class="row">
-                       <?php echo _AT('access'); ?><br />
-
-                       <input type="radio" name="access" value="0" id="s0" <?php if ($_GET['access'] == 0) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('public'); ?></label> 
-
-                       <input type="radio" name="access" value="1" id="s1" <?php if ($_GET['access'] == 1) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('protected'); ?></label> 
-
-                       <input type="radio" name="access" value="2" id="s2" <?php if ($_GET['access'] == 2) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('private'); ?></label>
-
-                       <input type="radio" name="access" value="" id="s" <?php if ($_GET['access'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
-               </div>
-
-               <div class="row">
-                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('title').', '._AT('description'); ?>)</label><br />
-                       <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
-               </div>
-
-               <div class="row buttons">
-                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
-                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
-               </div>
-       </div>
-</form>
-
-<?php print_paginator($page, $num_results, $page_string . SEP . $order .'='. $col, $results_per_page); ?>
-
-<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-
-<table class="data" summary="" rules="cols">
-<colgroup>
-       <?php if ($col == 'title'): ?>
-               <col />
-               <col class="sort" />
-               <col span="6" />
-       <?php elseif($col == 'login'): ?>
-               <col span="2" />
-               <col class="sort" />
-               <col span="5" />
-       <?php elseif($col == 'access'): ?>
-               <col span="3" />
-               <col class="sort" />
-               <col span="4" />
-       <?php elseif($col == 'created_date'): ?>
-               <col span="4" />
-               <col class="sort" />
-               <col span="3" />
-       <?php elseif($col == 'cat_name'): ?>
-               <col span="5" />
-               <col class="sort" />
-               <col span="2" />
-       <?php endif; ?>
-</colgroup>
-<thead>
-<tr>
-       <th scope="col">&nbsp;</th>
-       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $orders[$order]; ?>=title<?php echo $page_string; ?>"><?php echo _AT('title');               ?></a></th>
-       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $orders[$order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('Instructor');          ?></a></th>
-       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $orders[$order]; ?>=access<?php echo $page_string; ?>"><?php echo _AT('access');             ?></a></th>
-       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $orders[$order]; ?>=created_date<?php echo $page_string; ?>"><?php echo _AT('created_date'); ?></a></th>
-       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $orders[$order]; ?>=cat_name<?php echo $page_string; ?>"><?php echo _AT('category'); ?></a></th>
-       <th scope="col"><?php echo _AT('enrolled'); ?></th>
-       <th scope="col"><?php echo _AT('alumni'); ?></th>
-</tr>
-</thead>
-<tfoot>
-<tr>
-       <td colspan="8"><input type="submit" name="view" value="<?php echo _AT('view'); ?>" /> 
-                                       <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
-                                       <input type="submit" name="backups" value="<?php echo _AT('backups'); ?>" /> 
-                                       <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
-</tr>
-</tfoot>
-<tbody>
-<?php if ($num_rows): ?>
-       <?php while ($row = mysql_fetch_assoc($result)): ?>
-               <tr onmousedown="document.form['m<?php echo $row['course_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['course_id']; ?>">
-                       <td><input type="radio" name="id" value="<?php echo $row['course_id']; ?>" id="m<?php echo $row['course_id']; ?>" /></td>
-                       <td><label for="m<?php echo $row['course_id']; ?>"><?php echo AT_print($row['title'], 'courses.title'); ?></label></td>
-                       <td><?php echo AT_print($row['login'],'members.login'); ?></td>
-                       <td><?php echo _AT($row['access']); ?></td>
-                       <td><?php echo AT_date($startend_date_long_format, $row['created_date'], AT_DATE_UNIX_TIMESTAMP); ?></td>
-                       <td><?php echo ($row['cat_name'] ? $row['cat_name'] : '-')?></td>
-                       <td><?php echo ($enrolled[$row['course_id']]['y'] ? $enrolled[$row['course_id']]['y'] : 0); ?></td>
-                       <td><?php echo ($enrolled[$row['course_id']]['a'] ? $enrolled[$row['course_id']]['a'] : 0); ?></td>
-               </tr>
-       <?php endwhile; ?>
-<?php else: ?>
-       <tr>
-               <td colspan="8"><?php echo _AT('none_found'); ?></td>
-       </tr>
-<?php endif; ?>
-</tbody>
-</table>
-</form>
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+
+$savant->assign('results_per_page', $results_per_page);
+$savant->assign('page', $page);
+$savant->assign('page_string', $page_string);
+$savant->assign('enrolled', $enrolled);
+$savant->assign('num_rows', $num_rows);
+$savant->assign('result', $result);
+$savant->assign('orders', $orders);
+$savant->assign('order', $order);
+$savant->assign('num_results', $num_results);
+$savant->display('admin/courses/courses.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 044d0e9..60351a1 100644 (file)
@@ -38,10 +38,16 @@ $msg->printAll();
 
 $course = 0;
 $isadmin   = TRUE;
+$sql = "SELECT member_id, login FROM ".TABLE_PREFIX."members WHERE status=".AT_STATUS_INSTRUCTOR;
+$result = mysql_query($sql, $db);
+
+$savant->assign('result', $result);
+$savant->assign('course', $course);
+$savant->assign('isadmin', $isadmin);
 
-require(AT_INCLUDE_PATH.'../mods/_core/courses/html/course_properties.inc.php');
 
 
+require(AT_INCLUDE_PATH.'../mods/_core/courses/html/course_properties.inc.php');
 
 require(AT_INCLUDE_PATH.'footer.inc.php');
 
index eca9ce4..a670bcb 100644 (file)
@@ -165,24 +165,6 @@ $home_defaults = explode('|', $_config['home_defaults']);
 $main_defaults = array_filter($main_defaults); // remove empties
 $home_defaults = array_filter($home_defaults); // remove empties
 ?>
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-<table class="data static" rules="rows" summary="">
-<thead>
-<tr>
-       <th scope="cols"><?php echo _AT('section'); ?></th>
-       <th><?php echo _AT('location'); ?></th>
-       <th><?php echo _AT('order'); ?></th>
-</tr>
-</thead>
-<tfoot>
-<tr>
-       <td colspan="3" style="text-align:right;">              
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s"  />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />     
-       </td>
-</tr>
-</tfoot>
-<tbody>
 <?php 
 $module_list = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED);
 $keys = array_keys($module_list);
@@ -207,50 +189,14 @@ $num_modules = count($_current_modules);
 $_current_modules = array_merge($_current_modules, array_diff($student_tools, $_current_modules));
 
 
-foreach ($_current_modules as $tool) :
-       $count++; 
 ?>
-       <tr>
-               <td><?php 
-               if (isset($_pages[$tool]['title'])) {
-                       echo $_pages[$tool]['title'];
-               } else {
-                       echo _AT($_pages[$tool]['title_var']);
-               } ?></td>
-               <td align="center">
-                       <?php if (in_array($tool, $main_defaults)): ?>
-                               <input type="checkbox" name="main[]" value="<?php echo $tool; ?>" id="m<?php echo $tool; ?>" checked="checked" /><label for="m<?php echo $tool; ?>"><?php echo _AT('main_navigation'); ?></label>
-                       <?php else: ?>
-                               <input type="checkbox" name="main[]" value="<?php echo $tool; ?>" id="m<?php echo $tool; ?>" /><label for="m<?php echo $tool; ?>"><?php echo _AT('main_navigation'); ?></label>
-                       <?php endif; ?>
-
-                       <?php if (in_array($tool, $home_defaults)): ?>
-                               <input type="checkbox" name="home[]" value="<?php echo $tool; ?>" id="h<?php echo $tool; ?>" checked="checked" /><label for="h<?php echo $tool; ?>"><?php echo _AT('home'); ?></label>
-                       <?php else: ?>
-                               <input type="checkbox" name="home[]" value="<?php echo $tool; ?>" id="h<?php echo $tool; ?>" /><label for="h<?php echo $tool; ?>"><?php echo _AT('home'); ?></label>
-                       <?php endif; ?>
-               </td>
-               <td align="right">
-                       <?php if (!in_array($tool, $home_defaults) && !in_array($tool, $main_defaults)): ?>
-                               &nbsp;
-                       <?php else: ?>
-                               <?php if (($count != $num_main+1) && ($count > 1)): ?>
-                                       <input type="submit" name="up[<?php echo $tool; ?>]" value="<?php echo _AT('move_up'); ?>" title="<?php echo _AT('move_up'); ?>" style="background-color: white; border: 1px solid; padding: 0px;" />
-                               <?php else: ?>
-                                       <img src="images/clr.gif" alt="" width="12" />
-                               <?php endif; ?>
-                               <?php if (($count != $num_main) && ($count < $num_modules)): ?>
-                                       <input type="submit" name="down[<?php echo $tool; ?>]" value="<?php echo _AT('move_down'); ?>" title="<?php echo _AT('move_down'); ?>" style="background-color: white; border: 1px solid; padding: 0px;"/>
-                               <?php else: ?>
-                                       <img src="images/clr.gif" alt="" width="12" />
-                               <?php endif; ?>
-                       <?php endif; ?>
-               </td>
-       </tr>
-<?php 
-endforeach; ?>
-</tbody>
-</table>
-</form>
 
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php 
+$savant->assign('current_modules', $_current_modules);
+$savant->assign('home_defaults', $home_defaults);
+$savant->assign('main_defaults', $main_defaults);
+$savant->assign('num_modules', $num_modules);
+$savant->assign('num_main', $num_main);
+$savant->assign('pages', $_pages);
+$savant->display('admin/courses/default_mods.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 7c628b2..3eea8d8 100644 (file)
@@ -56,44 +56,9 @@ if (isset($_POST['submit'])) {
 
 require(AT_INCLUDE_PATH.'header.inc.php');
 
-?>
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="prefs">
-<div class="input-form" style="width:95%">
-       <div class="row">
-               <p><?php echo _AT('side_menu_text'); ?></p>
-       </div>
-
-       <div class="row">
-               <?php
-                       $num_stack = count($_stacks);   
-
-                       $side_menu = explode('|', $_config['side_defaults']);
-
-                       for ($i=0; $i<$num_stack; $i++) {                               
-                               echo '<select name="stack['.$i.']">';
-                               echo '<option value=""></option>';
-                               foreach ($_stacks as $name=>$info) {
-                                       if (isset($info['title'])) {
-                                               $title = $info['title'];
-                                       } else {
-                                               $title = _AT($info['title_var']);
-                                       }
-                                       echo '<option value="'.$name.'"';
-                                       if (isset($side_menu[$i]) && ($name == $side_menu[$i])) {
-                                               echo ' selected="selected"';
-                                       }
-                                       echo '>'.$title.'</option>';
-                               }
-                               echo '</select>';
-                               echo '<br />'; 
-                       } ?>
-       </div>
-
-       <div class="buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />
-       </div>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$num_stack = count($_stacks);  
+$side_menu = explode('|', $_config['side_defaults']);
+$savant->assign('side_menu', $side_menu);
+$savant->assign('num_stack', $num_stack);
+$savant->display('admin/courses/default_side.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index d1ce259..5e1d811 100644 (file)
@@ -148,458 +148,11 @@ if (($_POST['setvisual'] || $_POST['settext']) && !$_POST['submit']){
        $anchor =  "#banner";
 } */
 
-?>
-
-<form method="post" action="<?php echo $_SERVER['PHP_SELF'];  ?>" name="course_form" enctype="multipart/form-data">
-       <input type="hidden" name="form_course" value="true" />
-       <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_config['prof_pic_max_file_size']; ?>" />
-       <input type="hidden" name="course" value="<?php echo $course; ?>" />
-       <input type="hidden" name="old_access" value="<?php echo $row['access']; ?>" />
-       <input type="hidden" name="created_date" value="<?php echo $row['created_date']; ?>" />
-       <input type="hidden" name="show_courses" value="<?php echo $_GET['show_courses']; ?>" />
-       <input type="hidden" name="current_cat" value="<?php echo $_GET['current_cat']; ?>" />
-       <input type="submit" name="submit" style="display:none;"/>
-
-<div class="input-form">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('properties'); ?></legend>
-<?php if ($isadmin): ?>
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="inst"><?php echo  _AT('instructor'); ?></label><br />
-                       <?php 
-                       $sql = "SELECT member_id, login FROM ".TABLE_PREFIX."members WHERE status=".AT_STATUS_INSTRUCTOR;
-                       $result = mysql_query($sql, $db);
-                       
-                       if ($instructor_row = mysql_fetch_assoc($result)) {
-                               echo '<select name="instructor" id="inst">';
-                               do {
-                                       if ($instructor_row['member_id'] == $row['member_id']) {
-                                               echo '<option value="'.$instructor_row['member_id'].'" selected="selected">'.$instructor_row['login'].'</option>';
-                                       } else {
-                                               echo '<option value="'.$instructor_row['member_id'].'">'.$instructor_row['login'].'</option>';
-                                       }
-                               } while($instructor_row = mysql_fetch_assoc($result));
-                               echo '</select>';
-                       } else {
-                               echo '<span id="inst">'._AT('none_found').'</span>';
-                       }
-                       ?>
-       </div>
-<?php endif; ?>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
-               <input type="text" id="title" name="title" size="40" value="<?php echo htmlspecialchars($row['title']); ?>" />
-       </div>
-
-       <div class="row">
-               <label for="pri_lang"><?php  echo _AT('primary_language'); ?></label><br />
-               <?php $languageManager->printDropdown($row['primary_language'], 'pri_lang', 'pri_lang'); ?>
-       </div>
-
-       <div class="row">
-               <label for="description"><?php echo _AT('description'); ?></label><br />
-               <textarea id="description" cols="45" rows="2" name="description"><?php echo $row['description']; ?></textarea>
-       </div>
-
-       <?php if ($_config['course_dir_name']): ?>
-       <div class="row">
-               <label for="course_dir_name"><?php echo _AT('course_dir_name'); ?></label><br />
-               <input type="text" id="course_dir_name" name="course_dir_name" size="40" value="<?php echo htmlspecialchars($row['course_dir_name']); ?>" />
-       </div>
-       <?php endif; ?>
-
-       <?php $categories = get_categories(); ?>
-       <?php if (is_array($categories)): ?>
-               <div class="row">
-               <label for="cat"><?php echo _AT('category'); ?></label><br />
-                       <select name="category_parent" id="cat">
-                               <option value="0">&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;<?php echo _AT('cats_uncategorized'); ?>&nbsp;&nbsp;]&nbsp;&nbsp;&nbsp;</option>
-                               <?php select_categories($categories, 0, $row['cat_id'], false); ?>
-
-                       </select>
-               </div>
-       <?php endif; ?>
-
-       <div class="row">
-               <?php  echo _AT('export_content'); ?><br />
-               <?php
-                       switch ($row['content_packaging']) {
-                               case 'none':
-                                               $none = ' checked="checked"';
-                                               break;
-
-                               case 'top':
-                                               $top     = ' checked="checked"';
-                                               break;
-
-                               case 'all':
-                                               $all    = ' checked="checked"';
-                                               break;
-                       }
-                       ?>
-               <label><input type="radio" name="content_packaging" value="none" id="none" <?php echo $none; ?> /><?php echo _AT('content_packaging_none'); ?></label><br />
-               <label><input type="radio" name="content_packaging" value="top" id="ctop"  <?php echo $top; ?> /><?php  echo _AT('content_packaging_top'); ?></label><br />
-               <label><input type="radio" name="content_packaging" value="all" id="all" <?php echo $all; ?> /><?php  echo _AT('content_packaging_all'); ?></label>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('syndicate_announcements'); ?><br />
-               <?php
-                               $rss_no = $rss_yes = '';
-
-                               if ($row['rss']) {
-                                       $rss_yes = ' checked="checked"';
-                               } else {
-                                       $rss_no = ' checked="checked"';
-                               }
-               ?>
-               <label><input type="radio" name="rss" value="1" id="rss_y" <?php echo $rss_yes; ?> /><?php echo _AT('enable_syndicate'); ?></label><br />
-               <label><input type="radio" name="rss" value="0" id="rss_n"  <?php echo $rss_no; ?> /><?php  echo _AT('disable_syndicate'); ?></label>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('access'); ?><br />
-               <?php
-                               switch ($row['access']) {
-                                       case 'public':
-                                                       $pub = ' checked="checked"';
-                                                       $disable = 'disabled="disabled"'; // disable the nofity box
-                                                       break;
-
-                                       case 'protected':
-                                                       $prot    = ' checked="checked"';
-                                                       $disable = 'disabled="disabled"'; // disable the nofity box
-                                                       break;
-
-                                       case 'private':
-                                                       $priv   = ' checked="checked"';
-                                                       break;
-                               }
-
-                               if ($row['notify']) {
-                                       $notify = ' checked="checked"';
-                               }
-
-                               if ($row['hide']) {
-                                       $hide = ' checked="checked"';
-                               }
-               ?>
-               <input type="radio" name="access" value="public" id="pub" onclick="disableNotify();" <?php echo $pub; ?> /><label for="pub"><strong> <?php echo  _AT('public'); ?>: </strong></label><?php echo  _AT('about_public'); ?><br /><br />
-
-               <input type="radio" name="access" value="protected" id="prot" onclick="disableNotify();" <?php echo $prot; ?> /><label for="prot"><strong><?php echo  _AT('protected'); ?>:</strong></label> <?php echo _AT('about_protected'); ?><br /><br />
-
-               <input type="radio" name="access" value="private" id="priv" onclick="enableNotify();" <?php echo $priv; ?> /><label for="priv"><strong><?php echo  _AT('private'); ?>:</strong></label> <?php echo  _AT('about_private'); ?><br />
-               <input type="checkbox" name="notify" id="notify" value="1" <?php
-                       echo $disable;
-                       echo $notify; ?> /><label for="notify"><?php echo  _AT('email_approvals'); ?></label>
-               <br />
-               <input type="checkbox" name="hide" id="hide" value="1" <?php
-               echo $disable;
-               echo $hide; ?> /><label for="hide"><?php echo  _AT('hide_course'); ?></label>.
-       </div>
-
-       <div class="row">
-               <?php echo _AT('release_date'); ?><br />
-               <?php
-                       $rel_no = $rel_yes = '';
-
-                       if (intval($row['release_date'])) {
-                               $rel_yes = ' checked="checked"';
-
-                               $today_day   = substr($row['release_date'], 8, 2);
-                               $today_mon   = substr($row['release_date'], 5, 2);
-                               $today_year  = substr($row['release_date'], 0, 4);
-
-                               $today_hour  = substr($row['release_date'], 11, 2);
-                               $today_min   = substr($row['release_date'], 14, 2);
-                       } else {
-                               $rel_no = ' checked="checked"'; 
-                               $today_year  = date('Y');
-                       }
-
-               ?>
-
-               <input type="radio" name="release_date" value="0" id="release_now" <?php echo $rel_no; ?> /> <label for="release_now"><?php echo _AT('available_immediately'); ?></label><br />
-
-
-               <input type="radio" name="release_date" value="1" id="release_later" <?php echo $rel_yes; ?> /> <label for="release_later"><?php echo _AT('release_on'); ?></label> 
-               <?php
-                       $name = '_release';
-                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
-               ?>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('end_date'); ?><br />
-               <?php
-                       $end_no = $end_yes = '';
-
-                       if (intval($row['end_date'])) {
-                               $end_yes = ' checked="checked"';
-
-                               $today_day   = substr($row['end_date'], 8, 2);
-                               $today_mon   = substr($row['end_date'], 5, 2);
-                               $today_year  = substr($row['end_date'], 0, 4);
-
-                               $today_hour  = substr($row['end_date'], 11, 2);
-                               $today_min   = substr($row['end_date'], 14, 2);
-                       } else {
-                               $end_no = ' checked="checked"'; 
-                               $today_year  = date('Y')+1;
-                       }
-
-               ?>
-
-               <input type="radio" name="end_date" value="0" id="end_now" <?php echo $end_no; ?> /> <label for="end_now"><?php echo _AT('no_end_date'); ?></label><br />
-
-               <input type="radio" name="end_date" value="1" id="end_later" <?php echo $end_yes; ?> /> <label for="end_later"><?php echo _AT('end_on'); ?></label> 
-               <?php
-                       $name = '_end';
-                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
-               ?>
-       </div>
-
-       <div class="row">
-               <?php
-                       if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
-                               echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
-                               echo '<input type="submit" name="settext" value="'._AT('switch_text').'"  class="button"/>';
-                       } else {
-                               echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'" class="button"/>';
-                       }
-               ?>
-       </div>
-       <div class="row">
-
-               <label for="banner"><?php echo _AT('banner'); ?></label><br />
-               <textarea id="banner" cols="45" rows="15" name="banner"><?php echo $row['banner']; ?></textarea>
-       </div>
-
-<?php if (!$course) : ?>
-       <div class="row">
-               <label for="initial_content"><?php echo _AT('initial_content'); ?></label><br />
-               <select name="initial_content" id="initial_content" size="5">
-                       <option value="0"><?php echo _AT('empty'); ?></option>
-                       <option value="1" selected="selected"><?php echo _AT('create_basic'); ?></option>
-                       <?php 
-                       $Backup = new Backup($db);
-
-                       if ($isadmin) {
-                               $sql    = "SELECT course_id, title FROM ".TABLE_PREFIX."courses ORDER BY title";
-                       } else {
-                               $sql    = "SELECT course_id, title FROM ".TABLE_PREFIX."courses WHERE member_id=$_SESSION[member_id] ORDER BY title";
-                       }
-
-                       $result = mysql_query($sql, $db);
-
-                       if ($course_row = mysql_fetch_assoc($result)) {
-                               do {
-                                       $Backup->setCourseID($course_row['course_id']);
-                                       $list = $Backup->getAvailableList();
-
-                                       if (!empty($list)) { 
-                                               echo '<optgroup label="'. _AT('restore').': '.$course_row['title'].'">';
-                                               foreach ($list as $list_item) {
-                                                       echo '<option value="'.$list_item['backup_id'].'_'.$list_item['course_id'].'">'.$list_item['file_name'].' - '.get_human_size($list_item['file_size']).'</option>';
-                                               }
-                                               echo '</optgroup>';
-                                       }
-                               } while ($course_row = mysql_fetch_assoc($result));
-                       }
-                       ?>
-                       </select>
-       </div>
-<?php endif; // !$course_id ?>
-
-<?php if ($isadmin) : ?>
-       <div class="row">
-               <?php  echo _AT('course_quota'); ?><br />
-               <?php 
-                       if ($row['max_quota'] == AT_COURSESIZE_UNLIMITED) { 
-                               $c_unlim = ' checked="checked" ';
-                               $c_oth2 = ' disabled="disabled" ';
-                       } elseif ($row['max_quota'] == AT_COURSESIZE_DEFAULT) {
-                               $c_def = ' checked="checked" ';
-                               $c_oth2 = ' disabled="disabled" ';
-                       } else {
-                               $c_oth = ' checked="checked" ';
-                               $c_oth2 = '';
-                       }
-
-                       if ($course > 0) {
-                               $course_size = dirsize(AT_CONTENT_DIR . $course.'/');
-                       } else {
-                               $course_size = 0;
-                       }
-
-                       if ($course) {
-                               echo _AT('current_course_size') .': '.get_human_size($course_size).'<br />'; 
-                       }
-               ?>
-
-               <input type="radio" id="c_default" name="quota" value="<?php echo AT_COURSESIZE_DEFAULT; ?>" onclick="disableOther();" <?php echo $c_def;?> /><label for="c_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxCourseSize).')'; ?></label> <br />
-               <input type="radio" id="c_unlim" name="quota" value="<?php echo AT_COURSESIZE_UNLIMITED; ?>" onclick="disableOther();" <?php echo $c_unlim;?>/><label for="c_unlim"> <?php echo _AT('unlimited'); ?></label> <br />
-               <input type="radio" id="c_other" name="quota" value="2" onclick="enableOther();" <?php echo $c_oth;?>/><label for="c_other"> <?php echo _AT('other'); ?> </label> - 
-               <input type="text" id="quota_entered" name="quota_entered" <?php echo $c_oth2?> value="<?php if ($row['max_quota']!=AT_COURSESIZE_UNLIMITED && $row['max_quota']!=AT_COURSESIZE_DEFAULT) { echo bytes_to_megabytes($row['max_quota']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
-       </div>
-
-       <div class="row">
-               <?php  echo _AT('max_file_size'); ?><br />
-               <?php 
-                       $max_allowed = megabytes_to_bytes(substr(ini_get('upload_max_filesize'), 0, -1));
-
-                       if ($row['max_file_size'] == AT_FILESIZE_DEFAULT) { 
-                               $f_def = ' checked="checked" ';
-                               $f_oth2 = ' disabled="disabled" ';
-                       } elseif ($row['max_file_size'] == AT_FILESIZE_SYSTEM_MAX) {
-                               $f_max = ' checked="checked" ';
-                               $f_oth2 = ' disabled="disabled" ';
-                       } else {
-                               $f_oth = ' checked="checked" ';
-                               $f_oth2 = '';
-                       }
-               ?>
-               <input type="radio" id="f_default" name="filesize" value="<?php echo AT_FILESIZE_DEFAULT; ?>" onclick="disableOther2();" <?php echo $f_def;?> /><label for="f_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxFileSize).')'; ?></label> <br />
-               <input type="radio" id="f_maxallowed" name="filesize" value="<?php echo AT_FILESIZE_SYSTEM_MAX; ?>" onclick="disableOther2();" <?php echo $f_max;?>/><label for="f_maxallowed"> <?php echo _AT('max_file_size_system') . ' ('.get_human_size($max_allowed).')'; ?></label> <br />
-               <input type="radio" id="f_other" name="filesize" value="2" onclick="enableOther2();" <?php echo $f_oth;?>/><label for="f_other"> <?php echo _AT('other'); ?> </label> - 
-               <input type="text" id="filesize_entered" name="filesize_entered" <?php echo $f_oth2?> value="<?php if ($row['max_file_size']!=AT_FILESIZE_DEFAULT && $row['max_file_size']!=AT_FILESIZE_SYSTEM_MAX) { echo bytes_to_megabytes($row['max_file_size']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
-       </div>
-
-<?php else: ?>
-       <input type="hidden" name="quota" value="<?php echo $row['max_quota']; ?>" />
-       <input type="hidden" name="filesize" value="<?php echo $row['max_file_size']; ?>" />
-       <input type="hidden" name="tracking" value="<?php echo $row['tracking']; ?>" />
-<?php endif; ?>
-
-       <div class="row">
-               <label for="copyright"><?php echo _AT('course_copyright'); ?></label><br />
-               <textarea name="copyright" rows="2" cols="65" id="copyright"><?php echo $row['copyright']; ?></textarea>
-       </div>
-       <div class="row">
-               <?php 
-            if ($row['icon'] != ''): 
-                $path = AT_CONTENT_DIR.$row['course_id']."/custom_icons/";
-                if (file_exists($path.$row['icon'])) {
-                    if (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) {
-                        $custom_icon_path = 'get_course_icon.php/?id='.$row['course_id'];
-                    } else {
-                        $_base_href = 'content/' . $row['course_id'] . '/';
-                    }
-                } else {
-                    $_base_href = "images/courses/";   //$_base_href = 'get_course_icon.php/?id='.$row['course_id'];
-                }
-
-            $force_get = (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) ? true : false;
-            echo "<input type='hidden' name='boolForce' id='boolForce' value='$force_get' />";
-        
-       //include(AT_INCLUDE_PATH.'html/course_icon.inc.php');        
-        ?>
-               <img id="i0" src="<?php echo ($custom_icon_path=='')?$_base_href.$row['icon']:$custom_icon_path; ?>" alt="<?php echo $row['icon']; ?>" border="1" height="79" width="79"  style="float: left; margin: 2px;" />
-
-               <?php else: ?>
-                       <img id="i0" src="images/clr.gif" alt="" style="float: left; margin: 2px;" border="1" height="79" width="79"  />
-                       <input type='hidden' name='boolForce' id='boolForce' value='' />
-               <?php endif; ?>
-               <div style="width:40%; float:left;">
-               <label for="icons"><?php echo _AT('icon'); ?></label><br />
-               <select name="icon" id="icons" onchange="SelectImg()">
-                       <option value=""><?php echo _AT('no_icon'); ?></option>
-            <?php // ------------- custom course icons
-                $path = AT_CONTENT_DIR.$row['course_id']."/custom_icons/";
-                $boolCustom = false;
-                $optCount = 0;
-
-                if (is_dir($path)) {
-                    $boolCustom = true;  // true if custom icons are uploaded, otherwise false
-                    
-                    /*$files = scandir($path);  //SCANDIR STOPS ATUTOR WHEN RUN AS INSTRUCTOR, BUT NOT AS ADMIN. WHY? -Gorzan */
-                    
-                    /* PHP 4 REPLACEMENT FOR SCANDIR */
-                                       $dh  = opendir($path);
-                                       while (false !== ($filename = readdir($dh))) {
-                                               $files[] = $filename;
-                                       }
-
-                                       /*END PHP 4 REPLACEMENT FOR SCANDIR*/
-                    echo "<optgroup label='"._AT('custom_icons')."'>";
-                    foreach($files as $val) {
-                                               $file_ext = substr(strtolower($val), -3);
-                        if ($file_ext == "jpg" || $file_ext == "png" || $file_ext == "gif") {
-                            $optCount++;
-                            echo "<option value='".$val."'";
-                            if ($val == $row['icon']) {
-                                echo 'selected="selected"';
-                            }
-                            echo ">".$val."</option>";
-                        }
-                    }
-                    echo "</optgroup>";
-                }
-                
-            ?>
-                       <?php // ------------- other icons
-
-                               $course_imgs = array();
-                               if ($dir = opendir(AT_INCLUDE_PATH.'../images/courses/')) {
-                                       while (false !== ($file = readdir($dir)) ) {
-                                               if( ($file == '.') || ($file == '..')) { 
-                                                       continue;
-                                               }
-                                               $course_imgs[] = $file;
-                                       }               
-                                       closedir($dir); 
-                               }
-                               sort($course_imgs);
-                if ($boolCustom == true) {
-                    echo "<optgroup label='"._AT('builtin_icons')."'>";
-                }
-                               foreach ($course_imgs as $file) {
-                                       echo '<option value="' . $file . '" ';
-                                       if ($file == $row['icon']) { 
-                                               echo 'selected="selected"'; 
-                                       }
-                                       echo ' >' . $file . '</option>';        
-                               }
-                if ($boolCustom == true) {
-                    echo "</optgroup>";
-                }
-                       ?>
-               </select><?php echo "&nbsp;&nbsp;&nbsp; "._AT('or'); ?>
-       </div>
-            <!-- div class="row" style="float:right;width:40%;">
-            <?php echo _AT('upload_icon'); ?><br />
-                <input type="file" name="customicon" id="customicon" value="<?php echo $_POST['customicon']; ?>"/><br />
-                <small><?php echo _AT('upload_icon_text'); ?></small>
-            </div -->
-
-        <?php  require_once(AT_INCLUDE_PATH.'../mods/_core/courses/html/course_icon.inc.php'); ?>
-
-        <br style="clear: left;" />
-
-       </div>
-
-    <div style="clear: both;"></div>
-
-    
-
-       <div class="buttons">
-               <?php
-            echo "<input type='hidden' name='custOptCount' id='custOptCount' value='".$optCount."' />";
-            echo "<input type='hidden' name='courseId' id='courseId' value='".$row['course_id']."' />";
-               ?>
-
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel');?>" />
-       </div>
-    </fieldset>
-</div>
-
-</form>
-<?php
-
 if ($_POST['customicon']) {
     echo "<script language='javascript' type='text/javascript'>document.getElementById('uploadform').focus();</script>";
 }
+$savant->assign('row', $row);
+$savant->display('admin/courses/edit_course.tmpl.php');
 ?>
 
 <script language="javascript" type="text/javascript">
index 253969c..88cce18 100644 (file)
@@ -41,7 +41,7 @@ if (admin_authenticate(AT_ADMIN_PRIV_COURSES, TRUE) || admin_authenticate(AT_ADM
             $this->_pages['mods/_core/courses/admin/auto_enroll.php']['guide']     = 'admin/?p=auto_enroll.php';\r
             $this->_pages['mods/_core/courses/admin/auto_enroll.php']['children']  = array_merge(array('mods/_core/courses/admin/auto_enroll_edit.php'));\r
             $this->_pages['admin/config_edit.php']['children']  = array_merge((array) $this->_pages['admin/config_edit.php']['children']);\r
-\r
+                       $this->_pages['mods/_core/courses/admin/auto_enroll.php']['avail_in_mobile']   = false;\r
 \r
 \r
             $this->_pages['mods/_core/courses/admin/auto_enroll_edit.php']['title_var'] = 'auto_enroll_edit';\r
index 181ad01..1aabc0b 100644 (file)
@@ -17,54 +17,6 @@ authenticate(AT_PRIV_ENROLLMENT);
 
 require(AT_INCLUDE_PATH.'header.inc.php');
 $msg->printAll();
-?>
-<div class="input-form">
-               <fieldset class="group_form"><legend class="group_form"><?php echo _AT('list_create_course_list'); ?></legend>
-<form action="mods/_core/enrolment/verify_list.php" method="post">
-<input type="hidden" name="from" value="create" />
-<div>
 
-       <div class="row">
-               <?php echo _AT('import_sep_txt'); ?><br />
-               <input type="radio" name="sep_choice" id="und" value="_" checked="checked" />
-               <label for="und"><?php echo _AT('underscore'); ?></label>
-               <input type="radio" name="sep_choice" id="per" value="." />
-               <label for="per"><?php echo _AT('period'); ?></label>
-       </div>
-
-               
-<table class="data static" summary="" rules="cols">
-<thead>
-<tr>
-       <th>&nbsp;</th>
-       <th><?php echo _AT('first_name'); ?></th>
-       <th><?php echo _AT('last_name'); ?></th>
-       <th><?php echo _AT('email'); ?></th>
-</tr>
-</thead>
-
-<tfoot>
-<tr>
-       <td colspan="4">
-               <input type="submit" name="submit" value="<?php echo _AT('list_add_course_list');  ?>" />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </td>
-</tr>
-</tfoot>
-
-<tbody>
-<?php for ($i=1; $i <= 5; $i++): ?>
-       <tr>
-               <td><?php echo $i; ?></td>
-               <td><input type="text" name="first_name<?php echo $i; ?>" /></td>
-               <td><input type="text" name="last_name<?php echo $i; ?>" /></td>
-               <td><input type="text" name="email<?php echo $i; ?>" /></td>
-       </tr>
-<?php endfor; ?>
-</tbody>
-
-</table>
-</form>
-</fieldset>
-</div>
-<?php  require(AT_INCLUDE_PATH.'footer.inc.php');      ?>
\ No newline at end of file
+$savant->display('instructor/enrolment/create_course_list.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php');     ?>
\ No newline at end of file
index c94afb3..88d643a 100644 (file)
@@ -82,26 +82,6 @@ if(isset($_POST['done'])) {
 require(AT_INCLUDE_PATH.'header.inc.php');
 
 
-?>
-
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="selectform">
-<div class="input-form">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('export'); ?></legend>
-       <div class="row">
-               <label><input type="checkbox" name="enrolled" value="1" id="enrolled" /><?php echo _AT('enrolled_list_includes_assistants'); ?></label><br />
-               <label><input type="checkbox" name="pending_enrollment" value="1" id="pending_enrollment" /><?php echo _AT('pending_enrollment'); ?></label><br />
-               <label><input type="checkbox" name="alumni" value="1" id="alumni" /><?php echo _AT('alumni'); ?></label>
-       </div>
-
-       <div class="row buttons">
-               <input type="submit" name="export" value="<?php echo _AT('export'); ?>" /> 
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </div>
-       </fieldset>
-</div>
-</form>
-
-<?php 
 
 /**
 * Creates csv file to be exported
@@ -119,6 +99,6 @@ function quote_csv($line) {
 
        return '"'.$line.'"';
 }
-
+$savant->display('instructor/enrolment/export_course_list.tmpl.php');
 require(AT_INCLUDE_PATH.'footer.inc.php'); 
 ?>
\ No newline at end of file
index 8dc73a8..d30c9e5 100644 (file)
@@ -266,146 +266,6 @@ require(AT_INCLUDE_PATH.'header.inc.php');
 
 ?>
 
-<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-       <input type="hidden" name="tab" value="<?php echo $current_tab; ?>"/>
-       <input type="hidden" name="course_id" value="<?php echo $course_id; ?>"/>
-       <div class="input-form">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('search'); ?></legend>
-               <?php if (admin_authenticate(AT_ADMIN_PRIV_ENROLLMENT, TRUE)): ?>
-                       <div class="row">
-                               <label for="course"><?php echo _AT('course'); ?></label><br/>
-                               <select name="course_id" id="course">
-                               <?php
-                               $sql = "SELECT course_id, title FROM ".TABLE_PREFIX."courses ORDER BY title";
-                               $result = mysql_query($sql, $db);
-                               while ($courses_row = mysql_fetch_assoc($result)) {
-                                       if ($courses_row['course_id'] == $course_id) {
-                                               echo '<option value="'.$courses_row['course_id'].'" selected="selected">'.validate_length($courses_row['title'], 45,VALIDATE_LENGTH_FOR_DISPLAY).'</option>';
-                                       } else {
-                                               echo '<option value="'.$courses_row['course_id'].'">'.validate_length($courses_row['title'],45,VALIDATE_LENGTH_FOR_DISPLAY).'</option>';
-                                       }
-                               }
-                               ?></select>
-                       </div>
-               <?php endif; ?>
-
-               <div class="row">
-                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('login_name').', '._AT('first_name').', '._AT('second_name').', '._AT('last_name') .', '._AT('email'); ?>)</label><br />
-                       <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
-                       <br/>
-                       <?php echo _AT('search_match'); ?>:
-                       <input type="radio" name="match" value="all" id="match_all" <?php echo $checked_match_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> <input type="radio" name="match" value="one" id="match_one" <?php echo $checked_match_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
-               </div>
-
-               <div class="row buttons">
-                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
-                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
-               </div>
-       </fieldset>
-       </div>
-</form>
-
-<?php print_paginator($page, $tab_counts[$current_tab], $page_string_w_tab . SEP . $order .'='. $col, $results_per_page); ?>
-
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="selectform">
-<input type="hidden" name="tab" value="<?php echo $current_tab; ?>" />
-<input type="hidden" name="course_id" value="<?php echo $course_id; ?>"/>
-
-<ul id="etabbed-list">
-       <?php for ($i = 0; $i< $num_tabs; $i++): ?>
-               <?php if ($current_tab == $i): ?>
-                       <li class="prefs_tab_selected"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?tab=<?php echo $i.$page_string; ?>" class="active"><strong><?php echo _AT($tabs[$i]); ?> - <?php echo $tab_counts[$i]; ?></strong></a></li>
-               <?php else: ?>
-                       <li class="prefs_tab"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?tab=<?php echo $i.$page_string; ?>"><?php echo _AT($tabs[$i]); ?> - <?php echo $tab_counts[$i]; ?></a></li>
-               <?php endif; ?>
-       <?php endfor; ?>
-</ul>
-
-
-<table class="data" style="width:95%;" summary="" rules="cols" >
-<colgroup>
-       <?php if ($col == 'login'): ?>
-               <col />
-               <col class="sort" />
-               <col span="4" />
-       <?php elseif($col == 'first_name'): ?>
-               <col span="2" />
-               <col class="sort" />
-               <col span="3" />
-       <?php elseif($col == 'second_name'): ?>
-               <col span="3" />
-               <col class="sort" />
-               <col span="2" />
-       <?php elseif($col == 'last_name'): ?>
-               <col span="4" />
-               <col class="sort" />
-               <col />
-       <?php elseif($col == 'email'): ?>
-               <col span="5" />
-               <col class="sort" />
-       <?php endif; ?>
-</colgroup>
-<thead>
-<tr>
-       <th scope="col" align="left"><input type="checkbox" value="<?php echo _AT('select_all'); ?>" id="all" title="<?php echo _AT('select_all'); ?>" name="selectall" onclick="CheckAll();" /></th>
-
-       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $orders[$order]; ?>=login<?php echo $page_string_w_tab;?>"><?php echo _AT('login_name'); ?></a></th>
-
-       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $orders[$order]; ?>=first_name<?php echo $page_string_w_tab;?>"><?php echo _AT('first_name'); ?></a></th>
-
-       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $orders[$order]; ?>=second_name<?php echo $page_string_w_tab;?>"><?php echo _AT('second_name'); ?></a></th>
-
-       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $orders[$order]; ?>=last_name<?php echo $page_string_w_tab;?>"><?php echo _AT('last_name'); ?></a></th>
-
-       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $orders[$order]; ?>=email<?php echo $page_string_w_tab;?>"><?php echo _AT('email'); ?></a></th>
-</tr>
-</thead>
-<tfoot>
-<tr>
-       <td colspan="6">
-               <?php if ($current_tab == 0): ?>
-                       <input type="submit" name="role"     value="<?php echo _AT('privileges');  ?>" /> 
-                       <input type="submit" name="unenroll" value="<?php echo _AT('remove');    ?>" /> 
-                       <input type="submit" name="alumni"   value="<?php echo _AT('mark_alumni'); ?>" />
-               <?php elseif ($current_tab == 1): ?>
-                       <input type="submit" name="role" value="<?php echo _AT('privileges'); ?>" /> 
-                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" /> 
-
-               <?php elseif ($current_tab == 2): ?>
-                       <input type="submit" name="enroll"   value="<?php echo _AT('enroll'); ?>" /> 
-                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" />
-               
-               <?php elseif ($current_tab == 3): ?>
-                       <input type="submit" name="enroll" value="<?php echo _AT('enroll'); ?>" /> 
-                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" />
-
-               <?php elseif ($current_tab == 4): ?>
-                       <input type="submit" name="enroll"   value="<?php echo _AT('enroll'); ?>" /> 
-
-               <?php endif; ?></td>
-</tr>
-</tfoot>
-<tbody>
-<?php if ($tab_counts[$current_tab]): ?>
-       <?php while ($row = mysql_fetch_assoc($enrollment_result)): ?>
-               <tr onmousedown="document.selectform['m<?php echo $row['member_id']; ?>'].checked = !document.selectform['m<?php echo $row['member_id']; ?>'].checked; togglerowhighlight(this, 'm<?php echo $row['member_id']; ?>');" id="rm<?php echo $row['member_id']; ?>">
-                       <td><input type="checkbox" name="id[]" value="<?php echo $row['member_id']; ?>" id="m<?php echo $row['member_id']; ?>" onmouseup="this.checked=!this.checked" title="<?php echo AT_print($row['login'], 'members.login'); ?>" /></td>
-                       <td><?php echo AT_print($row['login'], 'members.login'); ?></td>
-                       <td><?php echo AT_print($row['first_name'], 'members.name'); ?></td>
-                       <td><?php echo AT_print($row['second_name'], 'members.name'); ?></td>
-                       <td><?php echo AT_print($row['last_name'], 'members.name'); ?></td>
-                       <td><?php echo AT_print($row['email'], 'members.email'); ?></td>
-               </tr>
-       <?php endwhile; ?>
-<?php else: ?>
-       <tr>
-               <td colspan="6"><?php echo _AT('none_found'); ?></td>
-       </tr>
-<?php endif; ?>
-</tbody>
-</table>
-</form>
-
 <script language="JavaScript" type="text/javascript">
 //<!--
 function CheckAll() {
@@ -427,4 +287,32 @@ function togglerowhighlight(obj, boxid) {
 }
 //-->
 </script>
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php 
+
+$savant->assign('current_tab', $current_tab);
+$savant->assign('course_id', $course_id);
+$sql = "SELECT course_id, title FROM ".TABLE_PREFIX."courses ORDER BY title";
+$result = mysql_query($sql, $db);
+$savant->assign('result', $result);
+$savant->assign('checked_match_all', $checked_match_all);
+$savant->assign('checked_match_one', $checked_match_one);
+$savant->assign('page', $page);
+$savant->assign('tab_counts', $tab_counts);
+$savant->assign('page_string_w_tab', $page_string_w_tab);
+$savant->assign('order', $order);
+$savant->assign('orders', $orders);
+$savant->assign('col', $col);
+$savant->assign('cols', $cols);
+$savant->assign('results_per_page', $results_per_page);
+$savant->assign('num_tabs', $num_tabs);
+$savant->assign('tabs', $tabs);
+$savant->assign('enrollment_result', $enrollment_result);
+if($_SESSION['is_admin'] == 0 && $_SESSION['privileges'] == AT_ADMIN_PRIV_ADMIN) {
+       $savant->display('admin/courses/enrollment.tmpl.php');
+}
+if($_SESSION['is_admin'] == 1){
+       $savant->display('instructor/enrolment/index.tmpl.php');
+}
+
+require(AT_INCLUDE_PATH.'footer.inc.php'); 
+?>
index ca24dcf..52927fe 100644 (file)
@@ -16,35 +16,6 @@ require (AT_INCLUDE_PATH.'vitals.inc.php');
 authenticate(AT_PRIV_ENROLLMENT);
 
 require(AT_INCLUDE_PATH.'header.inc.php');
-?>
-<form enctype="multipart/form-data" action="mods/_core/enrolment/verify_list.php" method="post">
-<input type="hidden" name="from" value="import" />
-<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
 
-<div class="input-form">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('import'); ?></legend>
-       <div class="row">
-               <p><?php echo _AT('list_import_howto'); ?></p>
-       </div>
-
-       <div class="row">
-               <label for="sep_choice"><?php echo _AT('import_sep_txt'); ?></label><br />
-               <input type="radio" name="sep_choice" id="und" value="_" checked="checked" />
-               <label for="und"><?php echo _AT('underscore'); ?></label>
-               <input type="radio" name="sep_choice" id="per" value="." />
-               <label for="per"><?php echo _AT('period'); ?></label>
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="course_list"><?php echo _AT('list_import_course_list'); ?></label><br />
-               <input type="file" name="file" id="course_list" />
-       </div>
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('list_import_course_list');  ?>" />
-       </div>
-       </fieldset>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->display('instructor/enrolment/import_course_list.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 44e80a3..e1a904c 100644 (file)
@@ -21,6 +21,8 @@ if (admin_authenticate(AT_ADMIN_PRIV_ENROLLMENT, TRUE) || admin_authenticate(AT_
        $this->_pages['mods/_core/enrolment/admin/privileges.php']['title_var'] = 'privileges';\r
        $this->_pages['mods/_core/enrolment/admin/privileges.php']['parent']    = 'mods/_core/enrolment/admin/index.php';\r
        $this->_pages['mods/_core/enrolment/admin/privileges.php']['guide']     = 'admin/?p=enrollment_privileges.php';\r
+       $this->_pages['mods/_core/enrolment/admin/privileges.php']['avail_in_mobile']   = false;\r
+       \r
 \r
        // linked from users.php\r
        $this->_pages['admin/user_enrollment.php']['title_var'] = 'enrollment';\r
@@ -40,6 +42,7 @@ $this->_pages['mods/_core/enrolment/index.php']['children'] = array('mods/_core/
 \r
        $this->_pages['mods/_core/enrolment/create_course_list.php']['title_var'] = 'list_create_course_list';\r
        $this->_pages['mods/_core/enrolment/create_course_list.php']['parent']    = 'mods/_core/enrolment/index.php';\r
+       $this->_pages['mods/_core/enrolment/create_course_list.php']['avail_in_mobile']   = false;\r
 \r
        $this->_pages['mods/_core/enrolment/verify_list.php']['title_var']  = 'course_list';\r
        $this->_pages['mods/_core/enrolment/verify_list.php']['parent'] = 'mods/_core/enrolment/index.php';\r
@@ -47,6 +50,7 @@ $this->_pages['mods/_core/enrolment/index.php']['children'] = array('mods/_core/
        $this->_pages['mods/_core/enrolment/privileges.php']['title_var']  = 'privileges';\r
        $this->_pages['mods/_core/enrolment/privileges.php']['parent'] = 'mods/_core/enrolment/index.php';\r
        $this->_pages['mods/_core/enrolment/privileges.php']['guide']     = 'instructor/?p=enrollment_privileges.php';\r
+       $this->_pages['mods/_core/enrolment/privileges.php']['avail_in_mobile']   = false;\r
        \r
        $this->_pages['mods/_core/enrolment/enroll_edit.php']['title_var']    = 'enrollment';\r
        $this->_pages['mods/_core/enrolment/enroll_edit.php']['parent']   = 'mods/_core/enrolment/index.php';\r
index 51e1da1..e67057d 100644 (file)
@@ -8,6 +8,7 @@ $this->_pages['mods/_core/file_manager/index.php']['title_var'] = 'file_manager'
 $this->_pages['mods/_core/file_manager/index.php']['parent']    = 'tools/index.php';\r
 $this->_pages['mods/_core/file_manager/index.php']['guide']     = 'instructor/?p=file_manager.php';\r
 $this->_pages['mods/_core/file_manager/index.php']['children']  = array('mods/_core/file_manager/new.php');\r
+$this->_pages['mods/_core/file_manager/index.php']['avail_in_mobile']   = false;\r
 \r
        $this->_pages['mods/_core/file_manager/new.php']['title_var'] = 'create_new_file';\r
        $this->_pages['mods/_core/file_manager/new.php']['parent']    = 'mods/_core/file_manager/index.php';\r
index 34de5cc..a88716d 100644 (file)
@@ -28,6 +28,7 @@ $_student_tool = 'mods/_core/glossary/index.php';
 $this->_pages['mods/_core/glossary/tools/index.php']['title_var'] = 'glossary';\r
 $this->_pages['mods/_core/glossary/tools/index.php']['parent']    = 'tools/index.php';\r
 $this->_pages['mods/_core/glossary/tools/index.php']['children']  = array('mods/_core/glossary/tools/add.php');\r
+$this->_pages['mods/_core/glossary/tools/index.php']['avail_in_mobile']   = false;\r
 \r
        $this->_pages['mods/_core/glossary/tools/add.php']['title_var']  = 'add_glossary';\r
        $this->_pages['mods/_core/glossary/tools/add.php']['parent'] = 'mods/_core/glossary/tools/index.php';\r
index 44fb2f5..210ab82 100644 (file)
@@ -87,72 +87,14 @@ $onload = 'document.form.title0.focus();';
 unset($word);
 
 $num_terms = 1;
+$sql = "SELECT * FROM ".TABLE_PREFIX."glossary WHERE course_id=$_SESSION[course_id] ORDER BY word";
+$result_glossary = mysql_query($sql, $db);
 
 require(AT_INCLUDE_PATH.'header.inc.php');
+$savant->assign('result_glossary', $result_glossary);
+$savant->assign('num_terms', $num_terms);
+$savant->display('instructor/glossary/add.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); 
 
-?>
 
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-<input type="hidden" name="num_terms" value="<?php echo $num_terms; ?>" />
-<?php
-for ($i=0;$i<$num_terms;$i++) {
-       if ($glossary[$word[$i]] != '') {
-               echo '<input type="hidden" name="ignore['.$i.']" value="1" />';
-               continue;
-       }
-       
-       for ($j=0;$j<$i;$j++) {
-               if ($word[$j] == $word[$i]) {
-                       echo '<input type="hidden" name="ignore['.$i.']" value="1" />';
-                       continue 2;
-               }
-       }
-
-       if ($word[$i] == '') {
-               $word[$i] = ContentManager::cleanOutput($_POST['word'][$i]);
-       }
-?>
-<div class="input-form">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_glossary'); ?></legend>
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title<?php echo $i; ?>"><?php echo _AT('glossary_term');  ?></label><br />
-               <input type="text" name="word[<?php echo $i; ?>]" size="30" value="<?php echo trim($word[$i]); ?>" id="title<?php echo $i; ?>" /><?php                  
-               if ($_GET['pcid'] != '') { 
-                       echo '<input type="checkbox" name="ignore['.$i.']" value="1" id="ig'.$i.'" /><label for="ig'.$i.'">Ignore this term</label>.';  
-               }
-               ?>
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body<?php echo $i; ?>"><?php echo _AT('glossary_definition');  ?></label><br />
-               <textarea name="definition[<?php echo $i; ?>]" class="formfield" cols="55" rows="7" id="body<?php echo $i; ?>" style="width:90%;"><?php echo ContentManager::cleanOutput($_POST['definition'][$i]); ?></textarea>
-       </div>
-
-       <div class="row">
-       <?php echo _AT('glossary_related');  ?><br />
-       <?php
-                       $sql = "SELECT * FROM ".TABLE_PREFIX."glossary WHERE course_id=$_SESSION[course_id] ORDER BY word";
-                       $result = mysql_query($sql, $db);
-                       if ($row_g = mysql_fetch_assoc($result)) {
-                               echo '<select name="related_term['.$i.']">';
-                               echo '<option value="0"></option>';
-                               do {
-                                       echo '<option value="'.$row_g['word_id'].'">'.$row_g['word'].'</option>';
-                               } while ($row_g = mysql_fetch_assoc($result));
-                               echo '</select>';
-                       } else {
-                               echo _AT('none_available');
-                       }
-               } // endfor
-       ?>
-       </div>
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </div>
-       </fieldset>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+?>
\ No newline at end of file
index 55c82a9..59ed9dc 100644 (file)
@@ -58,26 +58,7 @@ if($num_pages > 1) {
                }\r
        }\r
 }\r
-?>\r
 \r
-<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-\r
-<table class="data" summary="" rules="cols" style="width: 90%;">\r
-<thead>\r
-<tr>\r
-       <th scope="col">&nbsp;</th>\r
-       <th scope="col"><?php echo _AT('glossary_term'); ?></th>\r
-       <th scope="col"><?php echo _AT('glossary_definition'); ?></th>\r
-       <th scope="col"><?php echo _AT('glossary_related'); ?></th>\r
-</tr>\r
-</thead>\r
-<tfoot>\r
-<tr>\r
-       <td colspan="4"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>\r
-</tr>\r
-</tfoot>\r
-<tbody>\r
-<?php\r
 if(!empty($gloss_results)) {\r
        foreach ($gloss_results as $row) {      \r
                //get related term name\r
@@ -90,33 +71,13 @@ if(!empty($gloss_results)) {
                        }\r
                }\r
 \r
-               /* replaced w/ validate_length()\r
-               $def_trunc = $substr($row['definition'], 0, 70);\r
-               if ($strlen($def_trunc) < $strlen($row['definition'])) {\r
-                       $def_trunc .= ' &#8230;';\r
-               }\r
-               */\r
                $def_trunc = validate_length($row['definition'], 70, VALIDATE_LENGTH_FOR_DISPLAY);\r
-       ?>\r
-                       <tr onmousedown="document.form['m<?php echo $row['word_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['word_id']; ?>">\r
-                               <td valign="top" width="10"><input type="radio" name="word_id" value="<?php echo $row['word_id']; ?>" id="m<?php echo $row['word_id']; ?>" /></td>\r
-                               <td valign="top"><label for="m<?php echo $row['word_id']; ?>"><?php echo AT_print($row['word'], 'glossary.word'); ?></label></td>\r
-                               <td style="whitespace:nowrap;"><?php echo AT_print($def_trunc, 'glossary.definition'); ?></td>\r
-                               <td valign="top"><?php echo AT_print($related_word, 'glossary.word'); ?></td>\r
-                       </tr>\r
-<?php \r
-       }                               \r
-} else {\r
-?>\r
-       <tr>\r
-               <td colspan="5"><?php echo _AT('none_found'); ?></td>\r
-       </tr>\r
-<?php\r
-}                                      \r
-?>\r
-\r
-</tbody>\r
-</table>\r
-</form>\r
+               $gloss_results_row[] = $row;\r
+       }\r
+}\r
+$savant->assign('gloss_results_row', $gloss_results_row);\r
+$savant->assign('related_word', $related_word);\r
+$savant->assign('def_trunc', $def_trunc);      \r
 \r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->display('instructor/glossary/index.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 6334d00..00ef8c6 100644 (file)
@@ -25,22 +25,6 @@ if (isset($_GET['submit'], $_GET['create']) && ($_GET['create'] == 'automatic'))
 }\r
 \r
 require(AT_INCLUDE_PATH.'header.inc.php');\r
-?>\r
-<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-<div class="input-form">\r
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('create_groups'); ?></legend>\r
-       <div class="row">\r
-               <input type="radio" name="create" value="automatic" id="automatic" checked="checked" /><label for="automatic"><?php echo _AT('groups_create_automatic'); ?></label>\r
-       </div>\r
 \r
-       <div class="row">\r
-               <input type="radio" name="create" value="manual" id="manual" /><label for="manual"><?php echo _AT('groups_create_manual'); ?></label>\r
-       </div>\r
-\r
-       <div class="row buttons">\r
-               <input type="submit" name="submit" value="<?php echo _AT('continue'); ?>" />\r
-       </div>\r
-       </fieldset>\r
-</div>\r
-</form>\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->display('instructor/groups/create.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 8454049..693c4b7 100644 (file)
@@ -153,67 +153,12 @@ if (isset($_POST['cancel'])) {
 }\r
 \r
 require(AT_INCLUDE_PATH.'header.inc.php');\r
+$sql = "SELECT COUNT(*) AS cnt FROM ".TABLE_PREFIX."course_enrollment WHERE course_id=$_SESSION[course_id] AND approved='y' AND `privileges`&".AT_PRIV_GROUPS."=0";\r
+$result = mysql_query($sql, $db);\r
+$row = mysql_fetch_assoc($result);\r
 ?>\r
 \r
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">\r
-       <div class="input-form">\r
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('groups_create_automatic'); ?></legend>\r
-               <div class="row">\r
-                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="type"><?php echo _AT('groups_type'); ?></label><br />\r
-                       <input type="text" name="type_title" id="type" value="<?php echo AT_print($_POST['type_title'], 'groups.type'); ?>" size="30" maxlength="60" />\r
-               </div>\r
-\r
-               <div class="row">\r
-                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="prefix"><?php echo _AT('group_prefix'); ?></label><br />\r
-                       <input type="text" name="prefix" id="prefix" value="<?php echo AT_print($_POST['prefix'], 'groups.prefix'); ?>" size="20" maxlength="40" />\r
-               </div>\r
-\r
-               <div class="row">\r
-                       <label for="description"><?php echo _AT('default_description'); ?></label><br />\r
-                       <textarea name="description" id="description" cols="10" rows="2"><?php echo AT_print($_POST['description'], 'groups.description'); ?></textarea>\r
-               </div>\r
-\r
-               <div class="row">\r
-                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('number_of_groups'); ?><br />\r
-                       <?php\r
-                               $sql = "SELECT COUNT(*) AS cnt FROM ".TABLE_PREFIX."course_enrollment WHERE course_id=$_SESSION[course_id] AND approved='y' AND `privileges`&".AT_PRIV_GROUPS."=0";\r
-                               $result = mysql_query($sql, $db);\r
-                               $row = mysql_fetch_assoc($result);\r
-                       ?>\r
-                       <p><?php echo _AT('num_students_currently_enrolled', $row['cnt']-1); ?></p>\r
-\r
-                       <input type="radio" name="num_g" value="1" id="num1" checked="checked" onclick="javascript:changer('num_groups', 'num_students');" /><label for="num1"><?php echo _AT('number_of_students_per_group'); ?></label> <input type="text" name="num_students" size="3" style="text-align: right" maxlength="4" />\r
-                       <br />\r
-                       <input type="radio" name="num_g" value="2" id="num2" onclick="javascript:changer('num_students', 'num_groups');" /><label for="num2"><?php echo _AT('number_of_groups'); ?></label> <input type="text" name="num_groups" size="3" style="text-align: right" maxlength="4" value="-" />\r
-               </div>\r
-\r
-               <div class="row">\r
-                       <?php echo _AT('fill_groups'); ?><br />\r
-                       <input type="checkbox" name="fill" value="1" id="fill_r" checked="checked" /><label for="fill_r"><?php echo _AT('fill_groups_randomly'); ?></label>\r
-               </div>\r
-\r
-               <div class="row">\r
-                       <?php echo _AT('tools'); ?><br />\r
-                               <?php\r
-                               $modules = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED, 0, TRUE);\r
-                               $keys = array_keys($modules);\r
-                               $i=0;\r
-                               ?>\r
-                               <?php foreach($keys as $module_name): ?>\r
-                                       <?php $module =& $modules[$module_name]; ?>\r
-                                       <?php if ($module->getGroupTool() && (in_array($module->getGroupTool(),$_pages[AT_NAV_HOME]) || in_array($module->getGroupTool(),$_pages[AT_NAV_COURSE])) ): ?>\r
-                                               <input type="checkbox" value="<?php echo $module_name; ?>" name="modules[]" id="m<?php echo ++$i; ?>" /><label for="m<?php echo $i; ?>"><?php echo $module->getName(); ?></label><br />\r
-                                       <?php endif; ?>\r
-                               <?php endforeach; ?>\r
-               </div>\r
-\r
-               <div class="row buttons">\r
-                       <input type="submit" name="submit" value="<?php echo _AT('create'); ?>" accesskey="s" />\r
-                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />\r
-               </div>\r
-               </fieldset>\r
-       </div>\r
-</form>\r
+\r
 <script type="text/javascript">\r
 // <!--\r
 document.form.num_groups.disabled = true;\r
@@ -227,4 +172,7 @@ function changer(name1, name2) {
 }\r
 // -->\r
 </script>\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php \r
+$savant->assign('row', $row);\r
+$savant->display('instructor/groups/create_automatic.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 86aa318..92e20fa 100644 (file)
@@ -97,55 +97,6 @@ while ($row = mysql_fetch_assoc($result)) {
        $types[$row['type_id']] = htmlentities_utf8($row['title']);\r
 }\r
 \r
-?>\r
-\r
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">\r
-       <div class="input-form">\r
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('groups_create_manual'); ?></legend>\r
-               <div class="row">\r
-                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="type"><?php echo _AT('groups_type'); ?></label><br />\r
-                       <?php if ($types): ?>\r
-                               <?php echo _AT('existing_type'); ?>\r
-                               <select name="type" id="type">\r
-                               <?php foreach ($types as $type_id => $type_title): ?>\r
-                                       <option value="<?php echo $type_id; ?>"><?php echo $type_title; ?></option>\r
-                               <?php endforeach; ?>\r
-                               </select>\r
-                               <strong><?php echo _AT('or'); ?></strong>\r
-                       <?php endif; ?>\r
-                       <label for="new"><?php echo _AT('new_type'); ?></label> <input type="text" name="new_type" value="<?php echo AT_print($_POST['new_type'], 'groups.type'); ?>" id="new" size="30" maxlength="40" />\r
-               </div>\r
-\r
-               <div class="row">\r
-                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="prefix"><?php echo _AT('title'); ?></label><br />\r
-                       <input type="text" name="prefix" id="prefix" value="<?php echo AT_print($_POST['prefix'], 'prefix'); ?>" size="20" maxlength="40" />\r
-               </div>\r
-\r
-               <div class="row">\r
-                       <label for="description"><?php echo _AT('description'); ?></label><br />\r
-                       <textarea name="description" id="description" cols="10" rows="2"><?php echo AT_print($_POST['description'], 'groups.description'); ?></textarea>\r
-               </div>\r
-\r
-               <div class="row">\r
-                       <?php echo _AT('tools'); ?><br />\r
-                               <?php\r
-                               $modules = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED, 0, TRUE);\r
-                               $keys = array_keys($modules);\r
-                               $i=0;\r
-                               ?>\r
-                               <?php foreach($keys as $module_name): ?>\r
-                                       <?php $module =& $modules[$module_name]; ?>\r
-                                       <?php if ($module->getGroupTool() && (in_array($module->getGroupTool(),$_pages[AT_NAV_HOME]) || in_array($module->getGroupTool(),$_pages[AT_NAV_COURSE])) ): ?>\r
-                                               <input type="checkbox" value="<?php echo $module_name; ?>" name="modules[]" id="m<?php echo ++$i; ?>" /><label for="m<?php echo $i; ?>"><?php echo $module->getName(); ?></label><br />\r
-                                       <?php endif; ?>\r
-                               <?php endforeach; ?>\r
-               </div>\r
-\r
-               <div class="row buttons">\r
-                       <input type="submit" name="submit" value="<?php echo _AT('create'); ?>" accesskey="s" />\r
-                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />\r
-               </div>\r
-               </fieldset>\r
-       </div>\r
-</form>\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('types', $types);\r
+$savant->display('instructor/groups/create_manual.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 42578c7..e8ab060 100644 (file)
@@ -10,6 +10,7 @@ $this->_pages['mods/_core/groups/index.php']['title_var'] = 'groups';
 $this->_pages['mods/_core/groups/index.php']['parent']    = 'tools/index.php';\r
 $this->_pages['mods/_core/groups/index.php']['children']  = array('mods/_core/groups/create.php');\r
 $this->_pages['mods/_core/groups/index.php']['guide']  = 'instructor/?p=groups.php';\r
+$this->_pages['mods/_core/groups/index.php']['avail_in_mobile']   = false;\r
 \r
        $this->_pages['mods/_core/groups/edit_group.php']['title_var'] = 'edit';\r
        $this->_pages['mods/_core/groups/edit_group.php']['parent']    = 'mods/_core/groups/index.php';\r
index dc0d593..5e069a7 100644 (file)
@@ -46,53 +46,6 @@ if (AT_DEVEL_TRANSLATE == 1) {
 }
 
 require(AT_INCLUDE_PATH.'header.inc.php');
-?>
 
-<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-
-<table summary="" class="data" rules="cols">
-<colgroup>
-       <col />
-       <col class="sort" />
-       <col span="3" />
-</colgroup>
-<thead>
-<tr>
-       <th scope="col">&nbsp;</th>
-       <th scope="col"><?php echo _AT('name_in_language'); ?></th>
-       <th scope="col"><?php echo _AT('name_in_english'); ?></th>
-       <th scope="col"><?php echo _AT('lang_code'); ?></th>
-       <th scope="col"><?php echo _AT('charset'); ?></th>
-</tr>
-</thead>
-<tfoot>
-<tr>
-       <td colspan="5">
-               <?php if (defined('AT_DEVEL_TRANSLATE') && AT_DEVEL_TRANSLATE): ?>
-                       <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />  
-                       <input type="submit" name="export" value="<?php echo _AT('export'); ?>"  /> 
-                       <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /> 
-                       <?php echo _AT('or'); ?> <a href="mods/_core/languages/language_add.php"><?php echo _AT('add_a_new_language'); ?></a>
-               <?php else: ?>
-                       <input type="submit" name="export" value="<?php echo _AT('export'); ?>" /> 
-                       <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
-               <?php endif; ?>
-       </td>
-</tr>
-</tfoot>
-<tbody>
-       <?php foreach ($languageManager->getAvailableLanguages() as $codes): ?>
-               <?php $language = current($codes); ?>
-               <tr onmousedown="document.form['m<?php echo $language->getCode(); ?>'].checked = true; rowselect(this);" id="r_<?php echo $language->getCode(); ?>">
-                       <td><input type="radio" name="id" value="<?php echo $language->getCode(); ?>" id="m<?php echo $language->getCode(); ?>" /></td>
-                       <td><label for="m<?php echo $language->getCode(); ?>"><?php echo $language->getNativeName(); ?></label></td>
-                       <td><?php echo $language->getEnglishName(); ?></td>
-                       <td><?php echo strtolower($language->getCode()); ?></td>
-                       <td><?php echo strtolower($language->getCharacterSet()); ?></td>
-               </tr>
-       <?php endforeach; ?>
-</tbody>
-</table>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->display('admin/system_preferences/language.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 22523c2..882fce5 100644 (file)
@@ -36,60 +36,6 @@ if (isset($_POST['cancel'])) {
        } 
 }
 
-require(AT_INCLUDE_PATH.'header.inc.php'); ?>
-
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-<input type="hidden" name="import" value="1" />
-<div class="input-form" style="width:95%">
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="code"><?php echo _AT('lang_code'); ?></label><br />
-               <input id="code" name="code" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['code']; ?>" />
-       </div>
-
-       <div class="row">
-               <label for="locale"><?php echo _AT('locale'); ?></label><br />
-               <input id="locale" name="locale" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['locale']; ?>" />
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="charset"><?php echo _AT('charset'); ?></label><br />
-               <input id="charset" name="charset" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['charset']; ?>" />
-       </div>
-
-       <div class="row">
-               <label for="ltr"><?php echo _AT('direction'); ?></label><br />
-               <?php 
-                       if ($_POST['direction'] == 'rtl') { 
-                               $rtl = 'checked="checked"';  
-                               $ltr='';  
-                       } else { 
-                               $rtl = '';  
-                               $ltr='checked="checked"'; 
-                       }
-               ?>
-               <input id="ltr" name="direction" type="radio" value="ltr" <?php echo $ltr; ?> /><label for="ltr"><?php echo _AT('ltr'); ?></label>, <input id="rtl" name="direction" type="radio" value="rtl" <?php echo $rtl; ?> /><label for="rtl"><?php echo _AT('rtl'); ?></label>
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="reg_exp"><?php echo _AT('reg_exp'); ?></label><br />
-               <input id="reg_exp" name="reg_exp" type="text" size="31" class="formfield" value="<?php echo $_POST['reg_exp']; ?>" />
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="nname"><?php echo _AT('name_in_language'); ?></label><br />
-               <input id="nname" name="native_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['native_name']; ?>" />
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ename"><?php echo _AT('name_in_english'); ?></label><br />
-               <input id="ename" name="english_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['english_name'];?>" />
-       </div>
-
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" /> <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />           
-       </div>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
+require(AT_INCLUDE_PATH.'header.inc.php');
+$savant->display('admin/system_preferences/language_add.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
index e7a39fc..ada5438 100644 (file)
@@ -60,62 +60,6 @@ if (!isset($_POST['submit'])) {
        $_POST['english_name'] = $lang->getEnglishName();
 }
 
-?>
-
-<form method="post" action="<?php echo $_SERVER['PHP_SELF'] . '?lang_code=' . $_GET['lang_code']; ?>">
-
-<input type="hidden" name="old_code" value="<?php echo $lang->getCode(); ?>" />
-
-<div class="input-form" style="width:95%">
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="code"><?php echo _AT('lang_code'); ?></label><br />
-               <input id="code" name="code" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['code']; ?>" />
-       </div>
-
-       <div class="row">
-               <label for="locale"><?php echo _AT('locale'); ?></label><br />
-               <input id="locale" name="locale" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['locale']; ?>" />
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="charset"><?php echo _AT('charset'); ?></label><br />
-               <input id="charset" name="charset" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['charset']; ?>" />
-       </div>
-
-       <div class="row">
-               <label for="ltr"><?php echo _AT('direction'); ?></label><br />
-               <?php 
-                       if ($_POST['direction'] == 'rtl') { 
-                               $rtl = 'checked="checked"';  
-                               $ltr='';  
-                       } else { 
-                               $rtl = '';  
-                               $ltr='checked="checked"'; 
-                       }
-               ?>
-               <input id="ltr" name="direction" type="radio" value="ltr" <?php echo $ltr; ?> /><label for="ltr"><?php echo _AT('ltr'); ?></label>, <input id="rtl" name="direction" type="radio" value="rtl" <?php echo $rtl; ?> /><label for="rtl"><?php echo _AT('rtl'); ?></label>
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="reg_exp"><?php echo _AT('reg_exp'); ?></label><br />
-               <input id="reg_exp" name="reg_exp" type="text" size="31" class="formfield" value="<?php echo $_POST['reg_exp']; ?>" />
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="nname"><?php echo _AT('name_in_language'); ?></label><br />
-               <input id="nname" name="native_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['native_name']; ?>" />
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ename"><?php echo _AT('name_in_english'); ?></label><br />
-               <input id="ename" name="english_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['english_name'];?>" />
-       </div>
-
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" /> <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />           
-       </div>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
+$savant->assign('lang', $lang);
+$savant->display('admin/system_preferences/language_edit.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
index 24aacc7..6be1706 100644 (file)
@@ -41,63 +41,8 @@ if (isset($_POST['submit_import'])){
        exit;
 }
 
-?>
-<?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
-
-<form name="form1" method="post" action="mods/_core/languages/language_import.php" enctype="multipart/form-data" onsubmit="openWindow('<?php echo AT_BASE_HREF; ?>tools/prog.php');">
-<div class="input-form">
-       <div class="row">
-               <p><?php echo _AT('import_lang_howto'); ?></p>
-       </div>
-       
-       <div class="row">
-               <label for="file"><?php echo _AT('import_a_new_lang'); ?></label><br />
-               <input type="file" name="file" id="file" />
-       </div>
-       
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('import'); ?>" />
-       </div>
-</div>
-</form>
-
-
-<form name="form1" method="post" action="mods/_core/languages/language_import.php">
-<div class="input-form">
-       <div class="row">
-               <?php echo _AT('import_remote_language'); ?>
-       </div>
-
-       <div class="row">
-               <?php
-                       require_once(AT_INCLUDE_PATH.'../mods/_core/languages/classes/RemoteLanguageManager.class.php');
-                       $remoteLanguageManager = new RemoteLanguageManager();
-                       if ($remoteLanguageManager->getNumLanguages()) {
-                               $found = false;
-                               foreach ($remoteLanguageManager->getAvailableLanguages() as $codes){
-                                       $language = current($codes);
-                                       if (!$languageManager->exists($language->getCode()) && ($language->getStatus() == AT_LANG_STATUS_PUBLISHED)) {
-                                               if (!$found) {
-                                                       echo '<select name="language">';
-                                                       $found = true;
-                                               }
-                                               echo '<option value="'.$language->getCode().'">'.$language->getEnglishName().' - '.$language->getNativeName().'</option>';
-                                       }
-                               }
-                               if ($found) {
-                                       echo '</select></div>';
-                                       echo '<div class="row buttons"><input type="submit" name="submit_import" value="' . _AT('import') . '" class="button" /></div>';
-                               } else {
-                                       echo _AT('none_found');
-                                       echo '</div>';
-                               }
-                       } else {
-                               echo _AT('cannot_find_remote_languages');
-                               echo '</div>';
-                       }
-               ?>
-</div>
-</form>
-
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+require(AT_INCLUDE_PATH.'header.inc.php');
+require_once(AT_INCLUDE_PATH.'../mods/_core/languages/classes/RemoteLanguageManager.class.php'); 
+$savant->assign('remoteLanguageManager', $remoteLanguageManager);
+$savant->display('admin/system_preferences/language_import.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 32e5451..b8f36e9 100644 (file)
@@ -30,43 +30,6 @@ if (!defined('AT_DEVEL_TRANSLATE') || !AT_DEVEL_TRANSLATE) {
        $button_state = 'disabled="disabled"';
 }
 
-?>
-
-<form method="get">
-<div class="input-form">
-       <div class="row">
-               <h3><?php echo _AT('translate'); ?></h3>
-       </div>
-
-       <div class="row">
-               <p><?php echo _AT('translate_lang_howto'); ?></p>
-       </div>
-
-       <div class="row buttons">
-               <input type="button" onclick="javascript:window.open('<?php echo AT_BASE_HREF; ?>mods/_core/languages/translate_atutor.php', 'newWin1', 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=1, copyhistory=0, width=640, height=480')" value="<?php echo _AT('translate'); ?>" <?php echo $button_state; ?> />
-       </div>
-</div>
-</form>
-
-<?php if (defined('AT_DEVEL_TRANSLATE') && AT_DEVEL_TRANSLATE): ?>
-       <form name="form1" method="post" action="mods/_core/languages/language_translate.php">
-               <div class="input-form">
-                       <div class="row">
-                               Import partial language from the <strong>live ATutor language database</strong> to your local installation for translating.
-                       </div>
-                       <div class="row">
-                               <?php
-                                       require_once(AT_INCLUDE_PATH.'../mods/_core/languages/classes/RemoteLanguageManager.class.php');
-                                       $remoteLanguageManager = new RemoteLanguageManager();
-                                       $remoteLanguageManager->printDropdown($_SESSION['lang'], 'import_lang', 'import_lang');
-                               ?>
-                       </div>
-
-                       <div class="row buttons">
-                               <input type="submit" name="svn_submit" value="<?php echo _AT('import'); ?>" />
-                       </div>
-               </div>
-       </form>
-<?php endif; ?>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('button_state', $button_state); 
+$savant->display('admin/system_preferences/language_translate.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 783938d..b56a094 100644 (file)
@@ -35,7 +35,8 @@ if (admin_authenticate(AT_ADMIN_PRIV_LANGUAGES, TRUE) || admin_authenticate(AT_A
 \r
        $this->_pages['mods/_core/languages/language_editor.php']['title_var'] = 'editor';\r
        $this->_pages['mods/_core/languages/language_editor.php']['parent']    = 'mods/_core/languages/language.php';\r
-\r
+       $this->_pages['mods/_core/languages/language_editor.php']['avail_in_mobile']   = false;\r
+       \r
        $this->_pages['mods/_core/languages/language_term.php']['title_var'] = 'editor';\r
 }\r
 ?>
\ No newline at end of file
index f6f89f9..2f4c79c 100644 (file)
@@ -88,91 +88,7 @@ $module = $moduleFactory->getModule($_GET['mod']);
 
 $properties = $module->getProperties(array('maintainers', 'url', 'date', 'license', 'state', 'notes', 'version'));
 ?>
-<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-<input type="hidden" name="mod" value="<?php echo $_GET['mod']; ?>" />
-<input type="hidden" name="new" value="<?php echo $_GET['new']; ?>" />
-
-<input type="hidden" name="enabled" value="<?php echo (int) isset($_GET['enabled']); ?>" />
-<input type="hidden" name="disabled" value="<?php echo (int) isset($_GET['disabled']); ?>" />
-<input type="hidden" name="core" value="<?php echo (int) isset($_GET['core']); ?>" />
-<input type="hidden" name="standard" value="<?php echo (int) isset($_GET['standard']); ?>" />
-<input type="hidden" name="extra" value="<?php echo (int) isset($_GET['extra']); ?>" />
-<input type="hidden" name="missing" value="<?php echo (int) isset($_GET['missing']); ?>" />
-
-<div class="input-form">
-       <div class="row">
-               <h3><?php echo $module->getName(); ?></h3>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('description'); ?><br />
-               <?php echo nl2br($module->getDescription($_SESSION['lang'])); ?>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('maintainers'); ?><br />
-                       <ul class="horizontal">
-                               <?php foreach ($properties['maintainers'] as $maintainer): ?>
-                                       <li><?php echo $maintainer['name'] .' &lt;'.$maintainer['email'].'&gt;'; ?></li>
-                               <?php endforeach; ?>
-                       </ul>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('url'); ?><br />
-               <?php echo $properties['url']; ?>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('version'); ?><br />
-               <?php echo $properties['version']; ?>
-       </div>
 
-       <div class="row">
-               <?php echo _AT('date'); ?><br />
-               <?php echo $properties['date']; ?>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('license'); ?><br />
-               <?php echo $properties['license']; ?>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('state'); ?><br />
-               <?php echo $properties['state']; ?>
-       </div>
-
-       <div class="row">
-               <?php echo _AT('notes'); ?><br />
-               <?php echo nl2br($properties['notes']); ?>
-       </div>
-
-       <?php if (is_array($module->_pages)): ?>
-               <div class="row">
-                       <?php if (!isset($_GET['files'])): ?>
-                               <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES).SEP; ?>files#files"><?php echo _AT('files'); ?></a><br />
-                       <?php else: ?>
-                               <?php $module_pages = array_keys($module->_pages); ?>
-                               <?php natsort($module_pages); ?>
-                               <a name="files"></a><?php echo _AT('files'); ?><br />
-                               <ul style="margin-top: 0px;">
-                                       <?php foreach ($module_pages as $key): ?>
-                                               <?php if (defined($key)) : continue; endif; ?>
-                                               <li><kbd><?php echo $key; ?></kbd></li>
-                                       <?php endforeach; ?>
-                               </ul>
-                       <?php endif; ?>
-               </div>
-       <?php endif; ?>
-
-<?php if (!isset($_REQUEST['new'])): ?>
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('back'); ?>" />
-       </div>
-<?php endif; ?>
-</div>
-</form>
 <?php if (isset($_REQUEST['new'])): ?>
        <?php
                $hidden_vars['mod'] = $_REQUEST['mod'];
@@ -182,4 +98,9 @@ $properties = $module->getProperties(array('maintainers', 'url', 'date', 'licens
        ?>
 <?php endif; ?>
 
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php 
+
+$savant->assign('module', $module);
+$savant->assign('properties', $properties);
+$savant->display('admin/modules/details.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 888f9fc..64eadde 100644 (file)
@@ -147,124 +147,7 @@ if ($module_type_bits == 0) {
 
 $module_list = $moduleFactory->getModules($module_status_bits, $module_type_bits, $sort = TRUE);
 $keys = array_keys($module_list);
-?>
-<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-       <div class="input-form">
-               <div class="row">
-                       <h3><?php echo _AT('results_found', count($keys)); ?></h3>
-               </div>
-
-               <div class="row">
-                       <?php echo _AT('type'); ?><br />
-                       <input type="checkbox" name="core" value="1" id="t0" <?php if ($_GET['core']) { echo 'checked="checked"'; } ?> /><label for="t0"><?php echo _AT('core'); ?></label>
-
-                       <input type="checkbox" name="standard" value="1" id="t1" <?php if ($_GET['standard']) { echo 'checked="checked"'; } ?> /><label for="t1"><?php echo _AT('standard'); ?></label> 
-
-                       <input type="checkbox" name="extra" value="1" id="t2" <?php if ($_GET['extra']) { echo 'checked="checked"'; } ?> /><label for="t2"><?php echo _AT('extra'); ?></label> 
-               </div>
-
-
-               <div class="row">
-                       <?php echo _AT('status'); ?><br />
-                       <input type="checkbox" name="enabled" value="1" id="s0" <?php if ($_GET['enabled']) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('enabled'); ?></label> 
-
-                       <input type="checkbox" name="disabled" value="1" id="s1" <?php if ($_GET['disabled']) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('disabled'); ?></label> 
-
-                       <input type="checkbox" name="missing" value="1" id="s2" <?php if ($_GET['missing']) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('missing'); ?></label> 
-
-                       <input type="checkbox" name="partially_uninstalled" value="1" id="s3" <?php if ($_GET['partially_uninstalled']) { echo 'checked="checked"'; } ?> /><label for="s3"><?php echo _AT('partially_uninstalled'); ?></label> 
-               </div>
-
-               <div class="row buttons">
-                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
-                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
-               </div>
-       </div>
-</form>
-
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
-
-<input type="hidden" name="enabled" value="<?php echo (int) $_GET['enabled']; ?>" />
-<input type="hidden" name="disabled" value="<?php echo (int) $_GET['disabled']; ?>" />
-<input type="hidden" name="core" value="<?php echo (int) $_GET['core']; ?>" />
-<input type="hidden" name="standard" value="<?php echo (int) $_GET['standard']; ?>" />
-<input type="hidden" name="extra" value="<?php echo (int) $_GET['extra']; ?>" />
-<input type="hidden" name="missing" value="<?php echo (int) $_GET['missing']; ?>" />
-<input type="hidden" name="partially_uninstalled" value="<?php echo (int) $_GET['partially_uninstalled']; ?>" />
-
-<table class="data" summary="" rules="cols">
-<colgroup>
-               <col />
-               <col class="sort" />
-               <col span="4" />
-</colgroup>
-<thead>
-<tr>
-       <th scope="col">&nbsp;</th>
-       <th scope="col"><?php echo _AT('module_name'); ?></th>
-       <th scope="col"><?php echo _AT('type'); ?></th>
-       <th scope="col"><?php echo _AT('status'); ?></th>
-       <th scope="col"><?php echo _AT('cron'); ?></th>
-       <th scope="col"><?php echo _AT('directory_name'); ?></th>
-</tr>
-</thead>
-<tfoot>
-<tr>
-       <td colspan="6">
-               <input type="submit" name="details" value="<?php echo _AT('details'); ?>" />
-               <input type="submit" name="enable"  value="<?php echo _AT('enable'); ?>" />
-               <input type="submit" name="disable" value="<?php echo _AT('disable'); ?>" />
-               <input type="submit" name="uninstall" value="<?php echo _AT('uninstall'); ?>" />
-               <input type="submit" name="export" value="<?php echo _AT('export'); ?>" />
-       </td>
-</tr>
-</tfoot>
-<tbody>
-
-
-
-<?php foreach($keys as $dir_name) : $module =& $module_list[$dir_name]; $i++; $readme = get_readme(AT_INCLUDE_PATH.'../mods/'.$dir_name);?>
-
-       <tr onmousedown="document.form['t_<?php echo $i; ?>'].checked = true; rowselect(this);" id="r_<?php echo $i; ?>">
-               <td valign="top"><input type="radio" id="t_<?php echo $i; ?>" name="mod_dir" value="<?php echo $dir_name; ?>" /></td>
-               <td nowrap="nowrap" valign="top"><label for="t_<?php echo $i; ?>"><?php echo $module->getName(); if ($readme <> '') echo '&nbsp;<a href="#" onclick="ATutor.poptastic(\''.AT_BASE_HREF.'mods/'.$dir_name.'/'.$readme.'\');return false;">'._AT('view_readme').'</a>'; ?></label></td>
-               <td valign="top"><?php
-                       if ($module->isCore()) {
-                               echo '<strong>'._AT('core').'</strong>';
-                       } else if ($module->isStandard()) {
-                               echo _AT('standard');
-                       } else {
-                               echo _AT('extra');
-                       }
-                       ?></td>
-               <td valign="top"><?php
-                       if ($module->isEnabled()) {
-                               echo _AT('enabled');
-                       } else if ($module->isMissing()) {
-                               echo '<strong>'._AT('missing').'</strong>';
-                       } else if ($module->isPartiallyUninstalled()) {
-                               echo _AT('partially_uninstalled');
-                       } else {
-                               echo '<strong>'._AT('disabled').'</strong>';
-                       }
-                       ?></td>
-               <td valign="top" align="center">
-                       <?php if ($module->getCronInterval()): ?>
-                               <?php echo _AT('minutes', $module->getCronInterval()); ?>
-                       <?php else: ?>
-                               -
-                       <?php endif; ?>
-               </td>
-               <td valign="top"><code><?php echo $dir_name; ?>/</code></td>
-       </tr>
-<?php endforeach; ?>
-<?php if (!$keys): ?>
-       <tr>
-               <td colspan="6"><?php echo _AT('none_found'); ?></td>
-       </tr>
-<?php endif; ?>
-</tbody>
-</table>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('module_list', $module_list);
+$savant->assign('keys', $keys);
+$savant->display('admin/modules/index.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index bed2965..345c479 100644 (file)
@@ -193,153 +193,16 @@ $module_list = $moduleFactory->getModules(AT_MODULE_STATUS_UNINSTALLED | AT_MODU
 $keys = array_keys($module_list);
 natsort($keys);
 
+// check if the module has been installed
+$sql = "SELECT * FROM ".TABLE_PREFIX."modules WHERE dir_name = '" . $module_list_array[$i]["history"][0]["install_folder"] . "'";
+$result = mysql_query($sql, $db) or die(mysql_error());
+
 require (AT_INCLUDE_PATH.'header.inc.php');
 
 $msg->printAll();
 
 ?>
 
-<form name="frm_upload" enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" >
-       
-<div class="input-form">
-               <div class="row"><?php echo _AT("upload_module"); ?></div>
-
-               <div class="row">
-                       <input type="hidden" name="MAX_FILE_SIZE" value="52428800" />
-                       <input type="file" name="modulefile"  size="50" />
-               </div>
-               
-               <div class="row buttons">
-                       <input type="submit" name="install_upload" value="<?php echo _AT('install'); ?>" onclick="javascript: return validate_filename(); " class="submit" />
-                       <input type="hidden" name="uploading" value="1" />
-               </div>
-</div>
-
-</form>
-
-<?php 
-if (count($keys) > 0)
-{
-?>
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="installform">
-<table class="data" summary="" rules="cols">
-<thead>
-<tr>
-       <th scope="col">&nbsp;</th>
-       <th scope="col"><?php echo _AT('module_name'); ?></th>
-       <th scope="col"><?php echo _AT('directory_name'); ?></th>
-       <th scope="col"><?php echo _AT('description'); ?></th>
-</tr>
-</thead>
-
-<tfoot>
-<tr>
-       <td colspan="4">
-               <input type="submit" name="install_manually"  value="<?php echo _AT('install'); ?>" />
-       </td>
-</tr>
-</tfoot>
-
-<tbody>
-<?php if (!empty($keys)): ?>
-       <?php foreach($keys as $dir_name) : $module =& $module_list[$dir_name]; ?>
-               <tr onmousedown="document.installform['m_<?php echo $dir_name; ?>'].checked = true; rowselect(this);" id="r_<?php echo $dir_name; ?>">
-                       <td valign="top"><input type="radio" id="m_<?php echo $dir_name; ?>" name="mod" value="<?php echo $dir_name; ?>" /></td>
-                       <td valign="top"><label for="m_<?php echo $row['dir_name']; ?>"><?php echo $module->getName(); ?></label></td>
-                       <td valign="top"><code><?php echo $dir_name; ?>/</code></td>
-                       <td valign="top"><?php echo $module->getDescription($_SESSION['lang']); ?></td>
-               </tr>
-       <?php endforeach; ?>
-<?php else: ?>
-       <tr>
-               <td colspan="4"><?php echo _AT('none_found'); ?></td>
-       </tr>
-<?php endif; ?>
-</tbody>
-</table>
-</form>
-<br />
-<?php 
-}
-?>
-
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-<?php 
-?>
-<table class="data" summary="" rules="cols">
-<thead>
-       <tr>
-               <th scope="col">&nbsp;</th>
-               <th scope="col"><?php echo _AT('module_name');?></th>
-               <th scope="col"><?php echo _AT('description');?></th>
-               <th scope="col"><?php echo _AT('version');?></th>
-               <th scope="col"><?php echo _AT('atutor_version_tested_with');?></th>
-               <th scope="col"><?php echo _AT('maintainers');?></th>
-               <th scope="col"><?php echo _AT('installed').'?';?></th>
-       </tr>
-</thead>
-       
-<tfoot>
-<tr>
-       <td colspan="7">
-               <input type="submit" name="install" value="<?php echo _AT('install'); ?>" />
-               <input type="submit" name="download" value="<?php echo _AT('download'); ?>" />
-               <input type="submit" name="version_history" value="<?php echo _AT('version_history'); ?>" />
-       </td>
-</tr>
-</tfoot>
-
-<tbody>
-<?php 
-$num_of_modules = count($module_list_array);
-
-if ($num_of_modules == 0)
-{
-?>
-
-<tr>
-       <td colspan="7"><?php echo _AT('none_found'); ?></td>
-</tr>
-
-<?php 
-}
-else
-{
-       // display modules
-       if(is_array($module_list_array))
-       {
-               for ($i=0; $i < $num_of_modules; $i++)
-               {
-                       // check if the module has been installed
-                       $sql = "SELECT * FROM ".TABLE_PREFIX."modules WHERE dir_name = '" . $module_list_array[$i]["history"][0]["install_folder"] . "'";
-                       $result = mysql_query($sql, $db) or die(mysql_error());
-
-                       if (mysql_num_rows($result) == 0) $installed = false;
-                       else $installed = true;
-
-?>
-       <tr onmousedown="document.form['m<?php echo $i; ?>'].checked = true; rowselect(this);"  id="r_<?php echo $i; ?>">
-               <td><input type="radio" name="id" value="<?php echo $i; ?>" id="m<?php echo $i; ?>" <?php if ($installed) echo 'disabled="disabled"'; ?> /></td>
-               <td><label for="m<?php echo $i; ?>"><?php echo $module_list_array[$i]["name"]; ?></label></td>
-               <td><?php echo $module_list_array[$i]["description"]; ?></td>
-               <td><?php echo $module_list_array[$i]["history"][0]["version"]; ?></td>
-               <td><?php echo $module_list_array[$i]["atutor_version"]; ?></td>
-               <td><?php echo $module_list_array[$i]["history"][0]["maintainer"]; ?></td>
-               <td><?php if ($installed) echo _AT("installed"); else echo _AT("not_installed"); ?></td>
-       </tr>
-
-<?php 
-               }
-       }
-
-?>
-</tbody>
-
-<?php 
-}
-?>
-</table>
-</form>
 
 <script language="JavaScript">
 <!--
@@ -367,4 +230,10 @@ function validate_filename() {
 //-->
 </script>
 
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
+<?php 
+$savant->assign('keys', $keys);
+$savant->assign('result', $result);
+$savant->assign('module_list', $module_list);
+$savant->assign('module_list_array', $module_list_array);
+$savant->display('admin/modules/install_modules.tmpl.php');
+require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
index 8123974..63dcdcb 100644 (file)
@@ -19,16 +19,20 @@ if (admin_authenticate(AT_ADMIN_PRIV_MODULES, TRUE) || admin_authenticate(AT_ADM
 \r
        $this->_pages['mods/_core/modules/module_uninstall_step_1.php']['title_var'] = 'module_uninstall';\r
        $this->_pages['mods/_core/modules/module_uninstall_step_1.php']['parent']    = 'mods/_core/modules/index.php';\r
-\r
+    $this->_pages['mods/_core/modules/module_uninstall_step_1.php']['avail_in_mobile']   = false;\r
+       \r
        $this->_pages['mods/_core/modules/module_uninstall_step_2.php']['title_var'] = 'module_uninstall';\r
        $this->_pages['mods/_core/modules/module_uninstall_step_2.php']['parent']    = 'mods/_core/modules/index.php';\r
-\r
+       $this->_pages['mods/_core/modules/module_uninstall_step_2.php']['avail_in_mobile']   = false;\r
+       \r
        $this->_pages['mods/_core/modules/module_uninstall_step_3.php']['title_var'] = 'module_uninstall';\r
        $this->_pages['mods/_core/modules/module_uninstall_step_3.php']['parent']    = 'mods/_core/modules/index.php';\r
-\r
+       $this->_pages['mods/_core/modules/module_uninstall_step_3.php']['avail_in_mobile']   = false;\r
+       \r
        $this->_pages['mods/_core/modules/install_modules.php']['title_var'] = 'install_modules';\r
        $this->_pages['mods/_core/modules/install_modules.php']['parent']    = 'mods/_core/modules/index.php';\r
        $this->_pages['mods/_core/modules/install_modules.php']['guide']     = 'admin/?p=modules.php';\r
+       $this->_pages['mods/_core/modules/install_modules.php']['avail_in_mobile']   = false;\r
 \r
        $this->_pages['mods/_core/modules/version_history.php']['title_var'] = 'version_history';\r
        $this->_pages['mods/_core/modules/version_history.php']['parent']    = 'mods/_core/modules/install_modules.php';\r
index 54ff2a7..25ec4fb 100644 (file)
@@ -91,83 +91,8 @@ else if ($_POST['download'])
 require (AT_INCLUDE_PATH.'header.inc.php');
 
 $msg->printErrors();
-?>
 
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-<div class="input-form">
-
-<?php 
-?>
-<input type="hidden" name="id" value="<?php echo $id; ?>" />
-<table class="data" summary="" style="width: 100%" rules="cols">
-<thead>
-       <tr>
-               <th scope="col">&nbsp;</th>
-               <th scope="col"><?php echo _AT('version');?></th>
-               <th scope="col"><?php echo _AT('publish_date');?></th>
-               <th scope="col"><?php echo _AT('state');?></th>
-               <th scope="col"><?php echo _AT('maintainers');?></th>
-               <th scope="col"><?php echo _AT('notes');?></th>
-       </tr>
-</thead>
-
-<tfoot>
-<tr>
-       <td colspan="6">
-               <input type="submit" name="download" value="<?php echo _AT('download'); ?>" />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </td>
-</tr>
-</tfoot>
-
-<tbody>
-<?php 
-$num_of_versions = count($module_list_array[$id]['history']);
-
-if ($num_of_versions == 0)
-{
-?>
-
-<tr>
-       <td colspan="7">
-<?php 
-       echo _AT('none_found');
-?>
-       </td>
-</tr>
-
-<?php 
-}
-else
-{
-       // display version list
-       if(is_array($module_list_array[$id]['history']))
-       {
-               for ($i=0; $i < $num_of_versions; $i++)
-               {
-?>
-       <tr onmousedown="document.form['m<?php echo $i; ?>'].checked = true; rowselect(this);"  id="r_<?php echo $i; ?>">
-               <td><input type="radio" name="vid" value="<?php echo $i; ?>" id="m<?php echo $i; ?>" /></td>
-               <td><label for="m<?php echo $i; ?>"><?php echo $module_list_array[$id]["name"] . ' ' .$module_list_array[$id]['history'][$i]["version"]; ?></label></td>
-               <td><?php echo $module_list_array[$id]['history'][$i]["date"]; ?></td>
-               <td><?php echo $module_list_array[$id]['history'][$i]["state"]; ?></td>
-               <td><?php echo $module_list_array[$id]['history'][$i]["maintainer"]; ?></td>
-               <td><?php echo $module_list_array[$id]['history'][$i]["notes"]; ?></td>
-       </tr>
-
-<?php 
-               }
-       }
-
-?>
-</tbody>
-
-<?php 
-}
-?>
-</table>
-
-</div>
-</form>
-
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
+$savant->assign('id', $id);
+$savant->assign('module_list_array', $module_list_array);
+$savant->display('admin/modules/version_history.tmpl.php');
+require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
index 31aef2e..7f33c78 100644 (file)
@@ -39,7 +39,26 @@ $msg->printAll();
 $course = intval($_REQUEST['course']);
 $isadmin   = TRUE;
 
+if ($isadmin){
+       $sql = "SELECT member_id, login FROM ".TABLE_PREFIX."members WHERE status=".AT_STATUS_INSTRUCTOR;
+       $result = mysql_query($sql, $db);
+       //$savant->assign('result', $result);
+}
+if (!$course){
+       $Backup = new Backup($db);
+
+                       if ($isadmin) {
+                               $sql    = "SELECT course_id, title FROM ".TABLE_PREFIX."courses ORDER BY title";
+                       } else {
+                               $sql    = "SELECT course_id, title FROM ".TABLE_PREFIX."courses WHERE member_id=$_SESSION[member_id] ORDER BY title";
+                       }
+
+                       $result2 = mysql_query($sql, $db);
+}
 
+$savant->assign('isadmin', $isadmin);
+$savant->assign('course', $course);
+$savant->assign('result', $result);
 require(AT_INCLUDE_PATH.'../mods/_core/courses/html/course_properties.inc.php');
 
 require(AT_INCLUDE_PATH.'footer.inc.php'); 
index 80f78e2..7a6ed49 100644 (file)
@@ -99,33 +99,5 @@ if ($row['cnt'] == 0) {
        exit;
 }
 
-?>
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
-<input type="hidden" name="admin" value="admin" />
-
-<div class="input-form">
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo  _AT('to'); ?><br />
-               <input type="radio" name="to" value="3" checked="checked" id="all" /><label for="all"><?php echo _AT('all_users'); ?></label>  
-         <input type="radio" name="to" value="1" id="inst" <?php if ($_POST['to'] == AT_STATUS_INSTRUCTOR) { echo 'checked="checked"'; } ?> /><label for="inst"><?php echo  _AT('instructors'); ?></label>
-         <input type="radio" name="to" value="2" id="stud" <?php if ($_POST['to'] == AT_STATUS_STUDENT) { echo 'checked="checked"'; } ?> /><label for="stud"><?php echo  _AT('students'); ?></label>
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="subject"><?php echo _AT('subject'); ?></label><br />
-               <input type="text" name="subject" size="40" id="subject" value="<?php echo $_POST['subject']; ?>" />
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('body'); ?></label><br />
-               <textarea cols="55" rows="18" name="body" id="body"><?php echo $_POST['body']; ?></textarea>
-       </div>
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('send'); ?>" accesskey="s" /> 
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </div>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->display('admin/users/admin_email.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index d664ea8..cf10e8e 100644 (file)
@@ -142,58 +142,11 @@ require(AT_INCLUDE_PATH.'header.inc.php');
 ?>\r
 <script language="JavaScript" src="sha-1factory.js" type="text/javascript"></script>\r
 \r
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">\r
-<input type="hidden" name="form_password_hidden" value="" />\r
-<input type="hidden" name="password_error" value="" />\r
-\r
-<div class="input-form">\r
-       <div class="row">\r
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="login"><?php echo _AT('login_name'); ?></label><br />\r
-               <input type="text" name="login" id="login" size="25" value="<?php echo htmlspecialchars($_POST['login']); ?>" />\r
-       </div>\r
-\r
-       <div class="row">\r
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password"><?php echo _AT('password'); ?></label><br />\r
-               <input type="password" name="password" id="password" size="25" />\r
-       </div>\r
-\r
-       <div class="row">\r
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password2"><?php echo _AT('confirm_password'); ?></label><br />\r
-               <input type="password" name="confirm_password" id="password2" size="25" />\r
-       </div>\r
-\r
-       <div class="row">\r
-               <label for="real_name"><?php echo _AT('real_name'); ?></label><br />\r
-               <input type="text" name="real_name" id="real_name" size="30" value="<?php echo htmlspecialchars($_POST['real_name']); ?>" />\r
-       </div>\r
-\r
-       <div class="row">\r
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />\r
-               <input type="text" name="email" id="email" size="30" value="<?php echo htmlspecialchars($_POST['email']); ?>" />\r
-       </div>\r
-\r
-       <div class="row">\r
-               <?php echo _AT('privileges'); ?><br />\r
-               <input type="checkbox" name="priv_admin" value="1" id="priv_admin" <?php if ($_POST['priv_admin']) { echo 'checked="checked"'; } ?> /><label for="priv_admin"><?php echo _AT('priv_admin_super'); ?></label><br /><br />\r
-\r
-               <?php\r
-                       $module_list = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED, 0, TRUE);\r
-                       $keys = array_keys($module_list);\r
-               ?>\r
-\r
-               <?php foreach ($keys as $module_name): ?>\r
-                       <?php $module =& $module_list[$module_name]; ?>\r
-                       <?php if (!($module->getAdminPrivilege() > 1)) { continue; } ?>\r
-                               <input type="checkbox" name="privs[]" value="<?php echo $module->getAdminPrivilege(); ?>" id="priv_<?php echo $module->getAdminPrivilege(); ?>" <?php if (query_bit($_POST['privs'], $module->getAdminPrivilege())) { echo 'checked="checked"'; }  ?> /><label for="priv_<?php echo $module->getAdminPrivilege(); ?>"><?php echo $module->getName() ?></label><br />\r
-               <?php endforeach; ?>\r
-       </div>\r
-\r
-       <div class="row buttons">\r
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" onClick="return encrypt_password();" />\r
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />\r
-       </div>\r
-</div>\r
-</form>\r
+<?php\r
+       $module_list = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED, 0, TRUE);\r
+       $keys = array_keys($module_list);\r
+?>\r
+\r
 \r
 <script language="JavaScript" src="sha-1factory.js" type="text/javascript"></script>\r
 \r
@@ -225,4 +178,8 @@ function encrypt_password()
 }\r
 </script>\r
 \r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>\r
+<?php \r
+$savant->assign('keys', $keys);\r
+$savant->assign('module_list', $module_list);\r
+$savant->display('admin/users/create.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>\r
index 7c1f613..8e70967 100644 (file)
@@ -99,46 +99,11 @@ if (!isset($_POST['submit'])) {
        $_POST['privs'] = intval($row['privileges']);\r
 }\r
 \r
+\r
+       $module_list = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED, 0, TRUE);\r
+       $keys = array_keys($module_list);\r
+\r
 ?>\r
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">\r
-<input type="hidden" name="login" value="<?php echo $row['login']; ?>" />\r
-<div class="input-form">\r
-       <div class="row">\r
-               <h3><?php echo $row['login']; ?></h3>\r
-       </div>\r
-\r
-       <div class="row">\r
-               <label for="real_name"><?php echo _AT('real_name'); ?></label><br />\r
-               <input type="text" name="real_name" id="real_name" size="30" value="<?php echo htmlspecialchars($_POST['real_name']); ?>" />\r
-       </div>\r
-\r
-       <div class="row">\r
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />\r
-               <input type="text" name="email" id="email" size="30" value="<?php echo htmlspecialchars($_POST['email']); ?>" />\r
-       </div>\r
-\r
-       <div class="row">\r
-               <?php echo _AT('privileges'); ?><br />\r
-               <input type="checkbox" name="priv_admin" value="1" id="priv_admin" <?php if ($_POST['priv_admin']) { echo 'checked="checked"'; } ?> /><label for="priv_admin"><?php echo _AT('priv_admin_super'); ?></label><br /><br />\r
-\r
-               <?php\r
-                       $module_list = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED, 0, TRUE);\r
-                       $keys = array_keys($module_list);\r
-               ?>\r
-\r
-               <?php foreach ($keys as $module_name): ?>\r
-                       <?php $module =& $module_list[$module_name]; ?>\r
-                       <?php if (!($module->getAdminPrivilege() > 1)) { continue; } ?>\r
-                               <input type="checkbox" name="privs[]" value="<?php echo $module->getAdminPrivilege(); ?>" id="priv_<?php echo $module->getAdminPrivilege(); ?>" <?php if (query_bit($_POST['privs'], $module->getAdminPrivilege())) { echo 'checked="checked"'; }  ?> /><label for="priv_<?php echo $module->getAdminPrivilege(); ?>"><?php echo $module->getName(); ?></label><br />\r
-               <?php endforeach; ?>\r
-       </div>\r
-\r
-       <div class="row buttons">\r
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" <?php if ($_POST['priv_admin'] != 1) { echo 'onclick="return checkAdmin();"'; } ?> />\r
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />\r
-       </div>\r
-</div>\r
-</form>\r
 \r
 <script language="javascript" type="text/javascript">\r
 // <!--\r
@@ -152,4 +117,8 @@ function checkAdmin() {
 // -->\r
 </script>\r
 \r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php \r
+$savant->assign('keys', $keys);\r
+$savant->assign('module_list', $module_list);\r
+$savant->display('admin/users/edit.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index e6b1ef4..88ec2bc 100644 (file)
-<?php\r
-/****************************************************************************/\r
-/* ATutor                                                                                                                                      */\r
-/****************************************************************************/\r
-/* Copyright (c) 2002-2010                                                  */\r
-/* Inclusive Design Institute                                               */\r
-/* http://atutor.ca                                                                                                                    */\r
-/*                                                                                                                                                     */\r
-/* This program is free software. You can redistribute it and/or                       */\r
-/* modify it under the terms of the GNU General Public License                         */\r
-/* as published by the Free Software Foundation.                                                       */\r
-/****************************************************************************/\r
-// $Id$\r
-\r
-define('AT_INCLUDE_PATH', '../../../../include/');\r
-require(AT_INCLUDE_PATH.'vitals.inc.php');\r
-admin_authenticate(AT_ADMIN_PRIV_ADMIN);\r
-\r
-if (isset($_GET['delete'], $_GET['login'])) {\r
-       header('Location: delete.php?login='.$_GET['login']);\r
-       exit;\r
-} else if (isset($_GET['view_log'], $_GET['login'])) {\r
-       header('Location: log.php?login='.$_GET['login']);\r
-       exit;\r
-} else if (isset($_GET['password'], $_GET['login'])) {\r
-       header('Location: password.php?login='.$_GET['login']);\r
-       exit;\r
-} else if (isset($_GET['edit'], $_GET['login'])) {\r
-       header('Location: edit.php?login='.$_GET['login']);\r
-       exit;\r
-} else if ((isset($_GET['edit']) || isset($_GET['delete']) || isset($_GET['view_log']))) {\r
-       $msg->addError('NO_ITEM_SELECTED');\r
-}\r
-\r
-$id = $_GET['id'];\r
-$L = $_GET['L'];\r
-require(AT_INCLUDE_PATH.'header.inc.php'); \r
-\r
-\r
-$orders = array('asc' => 'desc', 'desc' => 'asc');\r
-$cols   = array('login' => 1, 'real_name' => 1, 'email' => 1, 'last_login' => 1);\r
-\r
-if (isset($_GET['asc'])) {\r
-       $order = 'asc';\r
-       $col   = isset($cols[$_GET['asc']]) ? $_GET['asc'] : 'login';\r
-} else if (isset($_GET['desc'])) {\r
-       $order = 'desc';\r
-       $col   = isset($cols[$_GET['desc']]) ? $_GET['desc'] : 'login';\r
-} else {\r
-       // no order set\r
-       $order = 'asc';\r
-       $col   = 'login';\r
-}\r
-\r
-?>\r
-\r
-<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-<table summary="" class="data" rules="cols" align="center" style="width: 90%;">\r
-<colgroup>\r
-       <?php if ($col == 'login'): ?>\r
-               <col />\r
-               <col class="sort" />\r
-               <col span="4" />\r
-       <?php elseif($col == 'real_name'): ?>\r
-               <col span="2" />\r
-               <col class="sort" />\r
-               <col span="3" />\r
-       <?php elseif($col == 'email'): ?>\r
-               <col span="3" />\r
-               <col class="sort" />\r
-               <col span="2" />\r
-       <?php elseif($col == 'last_login'): ?>\r
-               <col span="4" />\r
-               <col class="sort" />\r
-               <col />\r
-       <?php endif; ?>\r
-</colgroup>\r
-<thead>\r
-<tr>\r
-       <th scope="col">&nbsp;</th>\r
-       <th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('login_name');        ?></a></th>\r
-       <th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=real_name<?php echo $page_string; ?>"><?php echo _AT('real_name');   ?></a></th>\r
-       <th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=email<?php echo $page_string; ?>"><?php echo _AT('email');           ?></a></th>\r
-       <th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=last_login<?php echo $page_string; ?>"><?php echo _AT('last_login'); ?></a></th>\r
-       <th scope="col"><?php echo _AT('account_status'); ?></th>\r
-</tr>\r
-</thead>\r
-<tfoot>\r
-<tr>\r
-       <td colspan="6">\r
-               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />\r
-               <input type="submit" name="view_log" value="<?php echo _AT('view_log'); ?>" />\r
-               <input type="submit" name="password" value="<?php echo _AT('password'); ?>" />\r
-               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />\r
-       </td>\r
-</tr>\r
-</tfoot>\r
-<tbody>\r
-<?php\r
-       $offset = ($page-1)*$results_per_page;\r
-\r
-       $sql    = "SELECT * FROM ".TABLE_PREFIX."admins ORDER BY $col $order";\r
-       $result = mysql_query($sql, $db);\r
-\r
-       if (mysql_num_rows($result) == 0) { ?>\r
-       <tr>\r
-               <td colspan="6"><?php echo _AT('no_admins_found'); ?></td>\r
-       </tr><?php\r
-       } else {\r
-               while ($row = mysql_fetch_assoc($result)): ?>\r
-                       <tr onmousedown="document.form['m<?php echo $row['login']; ?>'].checked = true;rowselect(this);" id="r_<?php echo $row['login']; ?>">\r
-                               <td><input type="radio" name="login" value="<?php echo $row['login']; ?>" id="m<?php echo $row['login']; ?>" /></td>\r
-                               <td><label for="m<?php echo $row['login']; ?>"><?php echo $row['login'];      ?></label></td>\r
-                               <td><?php echo $row['real_name'];  ?></td>\r
-                               <td><?php echo $row['email'];      ?></td>\r
-                               <td><?php \r
-                                       if ($row['last_login'] == '0000-00-00 00:00:00') {\r
-                                               echo _AT('never');\r
-                                       } else {\r
-                                               echo $row['last_login'];\r
-                                       } ?></td>\r
-                               <td><?php \r
-                                       if ($row['privileges'] == 1) { \r
-                                               echo _AT('priv_admin_super');\r
-                                       } else if ($row['privileges'] > 0) {\r
-                                               echo _AT('active_admin');\r
-                                       } else {\r
-                                               echo _AT('inactive_admin');\r
-                                       }\r
-                                ?> </td>\r
-                       </tr>\r
-               <?php endwhile; ?>\r
-       <?php } ?>\r
-</tbody>\r
-</table>\r
-</form>\r
-\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php
+/****************************************************************************/
+/* ATutor                                                                                                                                      */
+/****************************************************************************/
+/* Copyright (c) 2002-2010                                                  */
+/* Inclusive Design Institute                                               */
+/* http://atutor.ca                                                                                                                    */
+/*                                                                                                                                                     */
+/* This program is free software. You can redistribute it and/or                       */
+/* modify it under the terms of the GNU General Public License                         */
+/* as published by the Free Software Foundation.                                                       */
+/****************************************************************************/
+// $Id$
+
+define('AT_INCLUDE_PATH', '../../../../include/');
+require(AT_INCLUDE_PATH.'vitals.inc.php');
+admin_authenticate(AT_ADMIN_PRIV_ADMIN);
+
+if (isset($_GET['delete'], $_GET['login'])) {
+       header('Location: delete.php?login='.$_GET['login']);
+       exit;
+} else if (isset($_GET['view_log'], $_GET['login'])) {
+       header('Location: log.php?login='.$_GET['login']);
+       exit;
+} else if (isset($_GET['password'], $_GET['login'])) {
+       header('Location: password.php?login='.$_GET['login']);
+       exit;
+} else if (isset($_GET['edit'], $_GET['login'])) {
+       header('Location: edit.php?login='.$_GET['login']);
+       exit;
+} else if ((isset($_GET['edit']) || isset($_GET['delete']) || isset($_GET['view_log']))) {
+       $msg->addError('NO_ITEM_SELECTED');
+}
+
+$id = $_GET['id'];
+$L = $_GET['L'];
+require(AT_INCLUDE_PATH.'header.inc.php'); 
+
+
+$orders = array('asc' => 'desc', 'desc' => 'asc');
+$cols   = array('login' => 1, 'real_name' => 1, 'email' => 1, 'last_login' => 1);
+
+if (isset($_GET['asc'])) {
+       $order = 'asc';
+       $col   = isset($cols[$_GET['asc']]) ? $_GET['asc'] : 'login';
+} else if (isset($_GET['desc'])) {
+       $order = 'desc';
+       $col   = isset($cols[$_GET['desc']]) ? $_GET['desc'] : 'login';
+} else {
+       // no order set
+       $order = 'asc';
+       $col   = 'login';
+}
+
+
+       $offset = ($page-1)*$results_per_page;
+
+       $sql    = "SELECT * FROM ".TABLE_PREFIX."admins ORDER BY $col $order";
+       $result = mysql_query($sql, $db);
+
+$savant->assign('result', $result);
+$savant->display('admin/users/index.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index d04f8e4..7437b5d 100644 (file)
@@ -68,32 +68,10 @@ if (($row = mysql_fetch_row($result))==0) {
        $sql    = "SELECT * FROM ".TABLE_PREFIX."admin_log $login_where ORDER BY `time` DESC LIMIT $offset, $results_per_page";\r
        $result = mysql_query($sql, $db);\r
 ?>\r
-<table summary="" class="data" rules="cols" align="center">\r
-<thead>\r
-<tr>\r
-       <th scope="col"><?php echo _AT('date');           ?></th>\r
-       <th scope="col"><?php echo _AT('login_name');     ?></th>\r
-       <th scope="col"><?php echo _AT('action');         ?></th>\r
-       <th scope="col"><?php echo _AT('database_table'); ?></th>\r
-</tr>\r
-</thead>\r
-<tbody>\r
-<?php if (mysql_num_rows($result) > 0) : ?>\r
-       <?php while ($row = mysql_fetch_assoc($result)): ?>\r
-               <?php $offset++; ?>\r
-               <tr onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_core/users/admins/detail_log.php?offset=<?php echo $offset.SEP.'p='.$page.SEP.'login='.$_GET['login']; ?>'" title="<?php echo _AT('view_details'); ?>">\r
-                       <td><a href="<?php echo AT_BASE_HREF; ?>mods/_core/users/admins/detail_log.php?offset=<?php echo $offset.SEP.'p='.$page.SEP.'login='.$_GET['login']; ?>"><?php echo $row['time']; ?></a></td>\r
-                       <td><?php echo $row['login']; ?></td>\r
-                       <td><?php echo $operations[$row['operation']]; ?></td>\r
-                       <td><?php echo $row['table']; ?></td>\r
-               </tr>\r
-       <?php endwhile; ?>\r
-<?php else: ?>\r
-<tr>\r
-       <td colspan="4"><?php echo _AT('none_found'); ?></td>\r
-</tr>\r
-<?php endif; ?>\r
-</tbody>\r
-</table>\r
 \r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+\r
+<?php \r
+$savant->assign('result', $result);\r
+$savant->assign('operations', $operations);\r
+$savant->display('admin/users/log.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 2fb105d..45a5f17 100644 (file)
@@ -72,23 +72,7 @@ if (!isset($_POST['submit'])) {
 }
 
 ?>
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-<div class="input-form">
-       <div class="row">
-               <label for="real_name"><?php echo _AT('real_name'); ?></label><br />
-               <input type="text" name="real_name" id="real_name" size="30" value="<?php echo htmlspecialchars($_POST['real_name']); ?>" />
-       </div>
 
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />
-               <input type="text" name="email" id="email" size="30" value="<?php echo htmlspecialchars($_POST['email']); ?>" />
-       </div>
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </div>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php 
+$savant->display('admin/my_edit.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 98f2936..34c5636 100644 (file)
@@ -96,31 +96,9 @@ function encrypt_password()
 }
 </script>
 
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
-       <input type="hidden" name="login" value="<?php echo $row['login']; ?>" />
-       <input type="hidden" name="form_password_hidden" value="" />
-       <input type="hidden" name="password_error" value="" />
-
-       <div class="input-form">
-               <div class="row">
-                       <h3><?php echo htmlspecialchars($row['login']); ?></h3>
-               </div>
-
-               <div class="row">
-                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="form_password1"><?php echo _AT('password'); ?></label><br />
-                       <input type="password" name="password1" id="password1" size="15" />
-               </div>
-
-               <div class="row">
-                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="form_password2"><?php echo _AT('confirm_password'); ?></label><br />
-                       <input type="password" name="confirm_password" id="confirm_password" size="15" />
-               </div>
-
-               <div class="row buttons">
-                       <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" accesskey="s" onclick="encrypt_password();" />
-                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-               </div>
-       </div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+
+
+<?php 
+$savant->assign('row', $row);
+$savant->display('admin/users/password.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 6d5eb64..6487ec2 100644 (file)
@@ -164,51 +164,10 @@ require(AT_INCLUDE_PATH.'header.inc.php');
 $sql   = "SELECT M.login, M.first_name, M.last_name, M.email, M.member_id, A.* FROM ".TABLE_PREFIX."members M, ".TABLE_PREFIX."instructor_approvals A WHERE A.member_id=M.member_id ORDER BY M.login";
 $result = mysql_query($sql, $db);
 $num_pending = mysql_num_rows($result);
-?>
-
-<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-<table class="data" summary="" rules="cols">
-<thead>
-<tr>
-       <th scope="col">&nbsp;</th>
-       <th scope="col"><?php echo _AT('login_name');     ?></th>
-       <th scope="col"><?php echo _AT('first_name');   ?></th>
-       <th scope="col"><?php echo _AT('last_name');    ?></th>
-       <th scope="col"><?php echo _AT('email');        ?></th>
-       <th scope="col"><?php echo _AT('notes');        ?></th>
-</tr>
-</thead>
-<tfoot>
-<tr>
-       <td colspan="6">
-       <input type="hidden" name="auth_publicKey" value="<?php echo $publicKey; ?>" />
-       <input type="hidden" name="auth_timestamp" value="<?php echo $timestamp; ?>" />
-       <input type="hidden" name="auth_token" value="<?php echo at_sign_request($timestamp, $publicKey); ?>" />
-       <input type="submit" name="deny" value="<?php echo _AT('deny'); ?>" /> 
-       <input type="submit" name="approve" value="<?php echo _AT('approve'); ?>" /></td>
-</tr>
-</tfoot>
-<tbody>
-<?php
-       if ($row = mysql_fetch_assoc($result)) {
-               do {
-                       echo '<tr onmousedown="document.form[\'i'.$row['member_id'].'\'].checked = true;rowselect(this);" id="r_'.$row['member_id'].'">';
-                       echo '<td><input type="radio" name="id" value="'.$row['member_id'].'" id="i'.$row['member_id'].'" /></td>';
-                       echo '<td><label for="i'.$row['member_id'].'">'.AT_print($row['login'], 'members.login').'</label></td>';
-                       echo '<td>'.AT_print($row['first_name'], 'members.first_name').'</td>';
-                       echo '<td>'.AT_print($row['last_name'], 'members.last_name').'</td>';
-                       echo '<td>'.AT_print($row['email'], 'members.email').'</td>';
-                       
-                       echo '<td>'.AT_print($row['notes'], 'instructor_approvals.notes').'</td>';
-
-                       echo '</tr>';
-               } while ($row = mysql_fetch_assoc($result));
-       } else {
-               echo '<tr><td colspan="6">'._AT('none_found').'</td></tr>';
-       }
-?>
-</tbody>
-</table>
-</form>
 
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
+$savant->assign('result', $result);
+$savant->assign('num_pending', $num_pending);
+$savant->display('admin/users/instructor_requests.tmpl.php');
+
+require(AT_INCLUDE_PATH.'footer.inc.php'); 
+?>
\ No newline at end of file
index 6f45051..ebab1a4 100644 (file)
@@ -138,29 +138,6 @@ require(AT_INCLUDE_PATH.'header.inc.php');
 if ($_GET['reset_filter']) {\r
        unset($_GET);\r
 }\r
-?>\r
-\r
-<form name="importForm" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data">\r
-<div class="input-form">\r
-       <div class="row">\r
-               <h3><?php echo _AT('update_list'); ?></h3>\r
-               <label for="file"><?php echo _AT('file'); ?></label><br />\r
-               <input type="file" name="file" size="40" id="file" />\r
-       </div>\r
-       \r
-       <div class="row">\r
-               <?php echo _AT('master_not_in_list'); ?><br />\r
-               <input type="radio" name="override" id="o0" value="0" checked="checked" /><label for="o0"><?php echo _AT('leave_unchanged'); ?></label>\r
-               <input type="radio" name="override" id="o1" value="1" /><label for="o1"><?php echo _AT('disable');     ?></label>\r
-       </div>\r
-\r
-       <div class="row buttons">\r
-               <input type= "submit" name="submit" value="<?php echo _AT('upload'); ?>" />\r
-       </div>\r
-</div>\r
-</form>\r
-\r
-<?php\r
 \r
 if (isset($_GET['status']) && ($_GET['status'] != '')) {\r
        if ($_GET['status'] == 1) {\r
@@ -224,117 +201,8 @@ $offset = ($page-1)*$results_per_page;
 \r
 $sql   = "SELECT M.*, B.login, B.first_name, B.second_name, B.last_name FROM ".TABLE_PREFIX."master_list M LEFT JOIN ".TABLE_PREFIX."members B USING (member_id) WHERE $status AND $search ORDER BY M.public_field LIMIT $offset, $results_per_page";\r
 $result = mysql_query($sql, $db);\r
-?>\r
-\r
-<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-       <div class="input-form">\r
-               <div class="row">\r
-                       <h3><?php echo _AT('results_found', $num_results); ?></h3>\r
-               </div>\r
-\r
-               <div class="row">\r
-                       <?php echo _AT('account_status'); ?><br />\r
-                       <input type="radio" name="status" value="1" id="s0" <?php if ($_GET['status'] == 1) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('not_created'); ?></label> \r
-\r
-                       <input type="radio" name="status" value="2" id="s1" <?php if ($_GET['status'] == 2) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('created'); ?></label> \r
-\r
-                       <input type="radio" name="status" value="" id="s" <?php if ($_GET['status'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label> \r
-               </div>\r
-\r
-               <div class="row">\r
-                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('student_id'); ?>)</label><br />\r
-                       <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />\r
-               </div>\r
-\r
-               <div class="row buttons">\r
-                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />\r
-                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />\r
-               </div>\r
-       </div>\r
-</form>\r
-\r
-<div class="paging">\r
-       <ul>\r
-       <?php for ($i=1; $i<=$num_pages; $i++): ?>\r
-               <li>\r
-                       <?php if ($i == $page) : ?>\r
-                               <a class="current" href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$page_string; ?>"><strong><?php echo $i; ?></strong></a>\r
-                       <?php else: ?>\r
-                               <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$page_string; ?>"><?php echo $i; ?></a>\r
-                       <?php endif; ?>\r
-               </li>\r
-       <?php endfor; ?>\r
-       </ul>\r
-</div>\r
-\r
-\r
-<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-<input type="hidden" name="status" value="<?php echo $_GET['status']; ?>" />\r
-\r
-<table summary="" class="data" rules="cols" style="width: 60%;">\r
-<thead>\r
-<tr>\r
-       <th scope="col">&nbsp;</th>\r
-       <th scope="col"><?php echo _AT('student_id'); ?></th>\r
-       <th scope="col"><?php echo _AT('login_name'); ?></th>\r
-       <th scope="col"><?php echo _AT('first_name'); ?></th>\r
-       <th scope="col"><?php echo _AT('second_name'); ?></th>\r
-       <th scope="col"><?php echo _AT('last_name'); ?></th>\r
-</tr>\r
-</thead>\r
-<?php if ($num_results > 0): ?>\r
-<tfoot>\r
-<tr>\r
-       <td colspan="6"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>\r
-</tr>\r
-</tfoot>\r
-<tbody>\r
-       <?php while($row = mysql_fetch_assoc($result)): ?>\r
-               <tr onmousedown="document.form['m<?php echo $row['public_field']; ?>'].checked = true;rowselect(this);" id="r_<?php echo $row['public_field']; ?>">\r
-                       <td><input type="radio" name="id" value="<?php \r
-                               if ($row['member_id']) {\r
-                                       echo $row['member_id'];\r
-                               } else {\r
-                                       echo '-'.$row['public_field'];\r
-                               }\r
-                               ?>" id="m<?php echo $row['public_field']; ?>" /></td>\r
-                       <td><label for="m<?php echo $row['public_field']; ?>"><?php echo $row['public_field']; ?></label></td>\r
-                       <td><?php\r
-                               if ($row['member_id']) {\r
-                                       echo $row['login'];\r
-                               } else {\r
-                                       echo '-';\r
-                               }\r
-                               ?></td>\r
-                       <td><?php\r
-                               if ($row['member_id']) {\r
-                                       echo $row['first_name'];\r
-                               } else {\r
-                                       echo '-';\r
-                               }\r
-                               ?></td>\r
-                       <td><?php\r
-                               if ($row['member_id']) {\r
-                                       echo $row['second_name'];\r
-                               } else {\r
-                                       echo '-';\r
-                               }\r
-                               ?></td>\r
-                       <td><?php\r
-                               if ($row['member_id']) {\r
-                                       echo $row['last_name'];\r
-                               } else {\r
-                                       echo '-';\r
-                               }\r
-                               ?></td>\r
-               </tr>\r
-       <?php endwhile; ?>\r
-</tbody>\r
-<?php else: ?>\r
-       <tr>\r
-               <td colspan="6"><?php echo _AT('none_found'); ?></td>\r
-       </tr>\r
-<?php endif; ?>\r
-</table>\r
-</form>\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('num_results', $num_results);\r
+$savant->assign('num_pages', $num_pages);\r
+$savant->assign('result', $result);\r
+$savant->display('admin/users/master_list.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 4d76187..39bed70 100644 (file)
@@ -55,20 +55,6 @@ if (!($row = mysql_fetch_assoc($result))) {
 } else {\r
        $_POST = $row;\r
 }\r
-?>\r
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">\r
-<input type="hidden" name="id" value="<?php echo $_REQUEST['id']; ?>" />\r
-<div class="input-form">\r
-       <div class="row">\r
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="student_id"><?php echo _AT('student_id'); ?></label><br />\r
-               <input type="text" name="public_field" id="student_id" size="25" value="<?php echo $_POST['public_field']; ?>" />\r
-       </div>\r
 \r
-       <div class="row buttons">\r
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />\r
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />\r
-       </div>\r
-</div>\r
-</form>\r
-\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->display('admin/users/master_list_edit.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 6bf7982..a050977 100644 (file)
@@ -115,31 +115,7 @@ function encrypt_password()
 }
 </script>
 
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
-       <input type="hidden" name="id" value="<?php echo $id; ?>" />
-       <input type="hidden" name="form_password_hidden" value="" />
-       <input type="hidden" name="password_error" value="" />
-
-       <div class="input-form">
-               <div class="row">
-                       <h3><?php echo htmlspecialchars($row['login']); ?></h3>
-               </div>
-
-               <div class="row">
-                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password"><?php echo _AT('password'); ?></label><br />
-                       <input type="password" name="password" id="password" value="" size="30" />
-               </div>
-
-               <div class="row">
-                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password2"><?php echo _AT('confirm_password'); ?></label><br />
-                       <input type="password" name="password2" id="password2" value="" size="30" />
-               </div>
-
-               <div class="row buttons">
-                       <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" onClick="encrypt_password()" />
-                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-               </div>
-       </div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php 
+$savant->assign('id', $id);
+$savant->display('admin/users/password_user.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 85a6187..1dab72a 100644 (file)
@@ -118,93 +118,11 @@ foreach ($system_courses as $cid => $course) {
                $not_enrolled[] = $cid;
        }
 }
-
-?>
-
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>?id=<?php echo $id; ?>">
-<input type="hidden" name="id" value="<?php echo $id; ?>"/>
-<div class="input-form" style="min-width: 400px; width: 45%; float: left; margin: 5px">
-       <div class="row">
-       <h3><?php echo _AT('instructor'); ?></h3>
-               <?php if ($instruct): ?>
-                       <ul>
-                       <?php foreach ($instruct as $cid): ?>
-                               <li><?php echo $system_courses[$cid]['title']; ?></li>
-                       <?php endforeach; ?>
-                       </ul>
-               <?php else: ?>
-                       <?php echo _AT('none'); ?>
-               <?php endif; ?>
-       </div>
-       <div class="row buttons">
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
-       </div>
-</div>
-
-<div class="input-form" style="min-width: 400px; width: 45%; float: left; margin: 5px">
-       <div class="row">
-       <h3><?php echo _AT('enrolled'); ?></h3>
-               <?php if ($enrolled): ?>
-                       <ul>
-                       <?php foreach ($enrolled as $cid): ?>
-                               <li><input type="checkbox" name="enrolled[]" value="<?php echo $cid; ?>" id="c<?php echo $cid; ?>"/><label for="c<?php echo $cid; ?>"><?php echo $system_courses[$cid]['title']; ?></label></li>
-                       <?php endforeach; ?>
-                       </ul>
-               <?php else: ?>
-                       <?php echo _AT('none'); ?>
-               <?php endif; ?>
-       </div>
-       <div class="row buttons">
-       <?php if ($enrolled): ?>
-               <input type="submit" name="enrolled_unenroll" value="<?php echo _AT('unenroll'); ?>"/>
-       <?php endif; ?>
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
-       </div>
-
-</div>
-
-<div class="input-form" style="min-width: 400px; width: 45%; float: left; margin: 5px">
-       <div class="row">
-       <h3><?php echo _AT('pending_enrollment'); ?></h3>
-               <?php if ($pending): ?>
-                       <ul>
-                       <?php foreach ($pending as $cid): ?>
-                               <li><input type="checkbox" name="pending[]" value="<?php echo $cid; ?>" id="c<?php echo $cid; ?>"/><label for="c<?php echo $cid; ?>"><?php echo $system_courses[$cid]['title']; ?></label></li>
-                       <?php endforeach; ?>
-                       </ul>
-               <?php else: ?>
-                       <?php echo _AT('none'); ?>
-               <?php endif; ?>
-       </div>
-       <div class="row buttons">
-       <?php if ($pending): ?>
-               <input type="submit" name="pending_remove" value="<?php echo _AT('remove'); ?>"/>
-               <input type="submit" name="pending_enroll" value="<?php echo _AT('enroll'); ?>"/>
-       <?php endif; ?>
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
-       </div>  
-</div>
-
-<div class="input-form" style="min-width: 400px; width: 45%; float: left; margin: 5px">
-       <div class="row">
-               <h3><?php echo _AT('not_enrolled');?></h3>
-                       <?php if ($not_enrolled): ?>
-                               <ul>
-                               <?php foreach ($not_enrolled as $cid): ?>
-                                       <li><input type="checkbox" name="not_enrolled[]" value="<?php echo $cid; ?>" id="c<?php echo $cid; ?>"/><label for="c<?php echo $cid; ?>"><?php echo $system_courses[$cid]['title']; ?></label></li>
-                               <?php endforeach; ?>
-                               </ul>
-                       <?php else: ?>
-                               <?php echo _AT('none'); ?>
-                       <?php endif; ?>
-       </div>
-       <div class="row buttons">
-       <?php if ($not_enrolled): ?>
-               <input type="submit" name="not_enrolled_enroll" value="<?php echo _AT('enroll'); ?>"/>
-       <?php endif; ?>
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
-       </div>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('system_courses', $system_courses);
+$savant->assign('instruct', $instruct);
+$savant->assign('enrolled', $enrolled);
+$savant->assign('pending', $pending);
+$savant->assign('not_enrolled', $not_enrolled);
+$savant->assign('id', $id);
+$savant->display('admin/users/user_enrollment.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 86ca3fc..0b374d5 100644 (file)
@@ -210,187 +210,7 @@ if ( isset($_GET['apply_all']) && $_GET['change_status'] >= -1) {
 require(AT_INCLUDE_PATH.'header.inc.php');
 
 ?>
-<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-       <div class="input-form">
-               <div class="row">
-                       <h3><?php echo _AT('results_found', $num_results); ?></h3>
-               </div>
 
-               <div class="row">
-                       <?php echo _AT('account_status'); ?><br />
-                       <input type="radio" name="status" value="0" id="s0" <?php if ($_GET['status'] == 0) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('disabled'); ?></label> 
-
-                       <input type="radio" name="status" value="1" id="s1" <?php if ($_GET['status'] == 1) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('unconfirmed'); ?></label> 
-
-                       <input type="radio" name="status" value="2" id="s2" <?php if ($_GET['status'] == 2) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('student'); ?></label>
-
-                       <input type="radio" name="status" value="3" id="s3" <?php if ($_GET['status'] == 3) { echo 'checked="checked"'; } ?> /><label for="s3"><?php echo _AT('instructor'); ?></label>
-
-                       <input type="radio" name="status" value="" id="s" <?php if ($_GET['status'] === '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
-               </div>
-
-               <div class="row">
-                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('login_name').', '._AT('first_name').', '._AT('second_name').', '._AT('last_name') .', '._AT('email'); ?>)</label><br />
-
-                       <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
-                       <br/>
-                       <?php echo _AT('search_match'); ?>:
-                       <input type="radio" name="include" value="all" id="match_all" <?php echo $checked_include_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> 
-                       <input type="radio" name="include" value="one" id="match_one" <?php echo $checked_include_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
-               </div>
-
-               <?php if (defined('AT_MASTER_LIST') && AT_MASTER_LIST): ?>
-                       <div class="row">
-                               <label for="searchid"><?php echo _AT('search'); ?> (<?php echo _AT('student_id'); ?>)</label><br />
-                               <input type="text" name="searchid" id="searchid" size="20" value="<?php echo htmlspecialchars($_GET['searchid']); ?>" />
-                       </div>
-               <?php endif; ?>
-
-               <div class="row">
-                       <label for="last_login_have"><?php echo _AT('last_login'); ?></label><br />                                     
-                       <select name="last_login_have" id="last_login_have">
-                               <option value="-1">- <?php echo _AT('select'); ?> -</option>
-                               <option value="1" <?php if($_GET['last_login_have']=='1') { echo 'selected="selected"';}?>><?php echo _AT('have'); ?></option>
-                               <option value="0" <?php if(isset($_GET['last_login_have']) && $_GET['last_login_have']=='0') { echo 'selected="selected"';}?>><?php echo _AT('have_not'); ?></option>
-                       </select> <?php echo _AT('logged_in_within'); ?>: <input type="text" name="last_login_days" size="3" value="<?php echo htmlspecialchars($_GET['last_login_days']); ?>" /> <?php echo _AT('days'); ?> <br />
-                       
-               </div>
-
-               <div class="row buttons">
-                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
-                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
-               </div>
-       </div>
-</form>
-
-<?php print_paginator($page, $num_results, $page_string . SEP . $order .'='. $col, $results_per_page); ?>
-
-<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-<input type="hidden" name="status" value="<?php echo $_GET['status']; ?>" />
-<input type="hidden" name="search" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
-<input type="hidden" name="include" value="<?php echo htmlspecialchars($_GET['include']); ?>" />
-
-<?php if (defined('AT_MASTER_LIST') && AT_MASTER_LIST) {  $col_counts = 1; } else { $col_counts = 0; } ?>
-<table summary="" class="data" rules="rows">
-<colgroup>
-       <?php if ($col == 'login'): ?>
-               <col />
-               <col class="sort" />
-               <col span="<?php echo 5 + $col_counts; ?>" />
-       <?php elseif($col == 'public_field'): ?>
-               <col span="<?php echo 1 + $col_counts; ?>" />
-               <col class="sort" />
-               <col span="6" />
-       <?php elseif($col == 'first_name'): ?>
-               <col span="<?php echo 2 + $col_counts; ?>" />
-               <col class="sort" />
-               <col span="5" />
-       <?php elseif($col == 'second_name'): ?>
-               <col span="<?php echo 3 + $col_counts; ?>" />
-               <col class="sort" />
-               <col span="4" />
-       <?php elseif($col == 'last_name'): ?>
-               <col span="<?php echo 4 + $col_counts; ?>" />
-               <col class="sort" />
-               <col span="3" />
-       <?php elseif($col == 'email'): ?>
-               <col span="<?php echo 5 + $col_counts; ?>" />
-               <col class="sort" />
-               <col span="2" />
-       <?php elseif($col == 'status'): ?>
-               <col span="<?php echo 6 + $col_counts; ?>" />
-               <col class="sort" />
-               <col />
-       <?php elseif($col == 'last_login'): ?>
-               <col span="<?php echo 7 + $col_counts; ?>" />
-               <col class="sort" />
-       <?php elseif($col == 'creation_date'): ?>
-               <col span="<?php echo 8 + $col_counts; ?>" />
-               <col class="sort" />
-       <?php endif; ?>
-</colgroup>
-<thead>
-<tr>
-       <th scope="col" align="left"><input type="checkbox" value="<?php echo _AT('select_all'); ?>" id="all" title="<?php echo _AT('select_all'); ?>" name="selectall" onclick="CheckAll();" /></th>
-
-       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $orders[$order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('login_name');      ?></a></th>
-       <?php if (defined('AT_MASTER_LIST') && AT_MASTER_LIST): ?>
-               <th scope="col"><a href="mods/_core/users/users.php?<?php echo $orders[$order]; ?>=public_field<?php echo $page_string; ?>"><?php echo _AT('student_id'); ?></a></th>
-       <?php endif; ?>
-       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $orders[$order]; ?>=first_name<?php echo $page_string; ?>"><?php echo _AT('first_name'); ?></a></th>
-       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $orders[$order]; ?>=second_name<?php echo $page_string; ?>"><?php echo _AT('second_name'); ?></a></th>
-       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $orders[$order]; ?>=last_name<?php echo $page_string; ?>"><?php echo _AT('last_name');   ?></a></th>
-       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $orders[$order]; ?>=email<?php echo $page_string; ?>"><?php echo _AT('email');           ?></a></th>
-       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $orders[$order]; ?>=status<?php echo $page_string; ?>"><?php echo _AT('account_status'); ?></a></th>
-       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $orders[$order]; ?>=last_login<?php echo $page_string; ?>"><?php echo _AT('last_login'); ?></a></th>
-       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $orders[$order]; ?>=creation_date<?php echo $page_string; ?>"><?php echo _AT('creation_date'); ?></a></th>
-</tr>
-
-</thead>
-<?php if ($num_results > 0): ?>
-       <tfoot>
-       <tr>
-               <td colspan="<?php echo 9 + $col_counts; ?>">
-                       <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
-                       <input type="submit" name="password" value="<?php echo _AT('password'); ?>" />
-                       <?php if (admin_authenticate(AT_ADMIN_PRIV_ENROLLMENT, true)): ?>
-                               <input type="submit" name="enrollment" value="<?php echo _AT('enrollment'); ?>" />
-                       <?php endif; ?>
-                       <span style="padding:0px 10px">|</span> 
-                       
-                       <select name="change_status">
-                               <option value="-2"><?php echo _AT('more_options'); ?></option>
-                               <optgroup label="<?php echo _AT('status'); ?>">
-                                       <option value="<?php echo AT_STATUS_STUDENT; ?>"><?php echo _AT('student'); ?></option>
-                                       <option value="<?php echo AT_STATUS_INSTRUCTOR; ?>"><?php echo _AT('instructor'); ?></option>   
-                                       <?php if ($_config['email_confirmation']): ?>
-                                               <option value="<?php echo AT_STATUS_UNCONFIRMED; ?>"><?php echo _AT('unconfirmed'); ?></option>
-                                       <?php endif; ?>
-                                       <option value="<?php echo AT_STATUS_DISABLED; ?>"><?php echo _AT('disable'); ?></option>                                
-                               </optgroup>
-                               <option value="-2" disabled="disabled">- - - - - - - - -</option>       
-                               <option value="-1"><?php echo _AT('delete'); ?></option>                                
-                       </select>
-                       <input type="submit" name="apply" value="<?php echo _AT('apply'); ?>" />
-                       <input type="submit" name="apply_all" value="<?php echo _AT('apply_to_all_results'); ?>" />
-               </td>
-       </tr>
-       </tfoot>
-       <tbody>
-               <?php while($row = mysql_fetch_assoc($result)): ?>
-                       <tr onmousedown="document.form['m<?php echo $row['member_id']; ?>'].checked = !document.form['m<?php echo $row['member_id']; ?>'].checked; togglerowhighlight(this, 'm<?php echo $row['member_id']; ?>');" id="rm<?php echo $row['member_id']; ?>">
-                               <td><input type="checkbox" name="id[]" value="<?php echo $row['member_id']; ?>" id="m<?php echo $row['member_id']; ?>" onmouseup="this.checked=!this.checked" /></td>
-                               <td><?php echo $row['login']; ?></td>
-                               <?php if (defined('AT_MASTER_LIST') && AT_MASTER_LIST): ?>
-                                       <td><?php echo $row['public_field']; ?></td>
-                               <?php endif; ?>
-                               <?php $startend_date_longs_format=_AT('startend_date_longs_format'); ?>
-                               <td><?php echo AT_print($row['first_name'], 'members.first_name'); ?></td>
-                               <td><?php echo AT_print($row['second_name'], 'members.second_name'); ?></td>
-                               <td><?php echo AT_print($row['last_name'], 'members.last_name'); ?></td>
-                               <td><?php echo AT_print($row['email'], 'members.email'); ?></td>
-                               <td><?php echo get_status_name($row['status']); ?></td>
-                               <td nowrap="nowrap">
-                                       <?php if ($row['last_login'] == 0): ?>
-                                               <?php echo _AT('never'); ?>
-                                       <?php else: ?>
-                                               <?php 
-                                               //echo AT_date('%d/%m/%y - %H:%i', $row['last_login'], AT_DATE_MYSQL_TIMESTAMP_14);
-                                               echo AT_date($startend_date_longs_format, $row['last_login'], AT_DATE_MYSQL_TIMESTAMP_14); 
-                                       ?>
-                                       <?php endif; ?>
-                               </td>
-                               <td><?php echo AT_date($startend_date_longs_format, $row['creation_date'], AT_DATE_MYSQL_DATETIME); ?></td>
-                       </tr>
-               <?php endwhile; ?>
-       </tbody>
-<?php else: ?>
-       <tr>
-               <td colspan="<?php echo 9 + $col_counts; ?>"><?php echo _AT('none_found'); ?></td>
-       </tr>
-<?php endif; ?>
-</table>
-</form>
 <script language="JavaScript" type="text/javascript">
 //<!--
 function CheckAll() {
@@ -412,4 +232,15 @@ function togglerowhighlight(obj, boxid) {
 }
 //-->
 </script>
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php 
+
+$savant->assign('result', $result);
+$savant->assign('results_per_page', $results_per_page);
+$savant->assign('page', $page);
+$savant->assign('orders', $orders);
+$savant->assign('order', $order);
+$savant->assign('page_string', $page_string);
+$savant->assign('num_results', $num_results);
+$savant->display('admin/users/users.tmpl.php');
+
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 327aa22..131bd87 100644 (file)
@@ -100,49 +100,5 @@ if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']) {
        load_editor();
 }
 $msg->printErrors();
-
-?>
-       <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-       <input type="hidden" name="add_news" value="true" />
-       <input type="submit" name="submit" style="display:none;"/>
-       <div class="input-form">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_announcement'); ?></legend>
-               <div class="row">
-                       <label for="title"><?php echo _AT('title'); ?></label><br />
-                       <input type="text" name="title" size="40" id="title" value="<?php echo $_POST['title']; ?>" />
-               </div>
-
-               <div class="row">
-                       <?php echo _AT('formatting'); ?><br />
-                       <input type="radio" name="formatting" value="0" id="text" <?php if ($_POST['formatting'] == 0) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=true;" <?php if ($_POST['setvisual'] && !$_POST['settext']) { echo 'disabled="disabled"'; } ?> />
-
-                       <label for="text"><?php echo _AT('plain_text'); ?></label>
-                       <input type="radio" name="formatting" value="1" id="html" <?php if ($_POST['formatting'] == 1 || $_POST['setvisual']) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=false;"/>
-
-                       <label for="html"><?php echo _AT('html'); ?></label>
-                       <?php   //Button for enabling/disabling visual editor
-                               if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
-                                       echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
-                                       echo '<input type="submit" name="settext" value="'._AT('switch_text').'" class="button"/>';
-                               } else {
-                                       echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'"  ';
-                                       if ($_POST['formatting']==0) { echo 'disabled="disabled"'; }
-                                       echo ' class="button" />';
-                               }
-                       ?>
-               </div>
-
-               <div class="row">
-                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body_text"><?php echo _AT('body'); ?></label><br />
-                       <textarea name="body_text" cols="55" rows="15" id="body_text"><?php echo $_POST['body_text']; ?></textarea>
-               </div>
-               
-               <div class="row buttons">
-                       <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s"  class="button"/>
-                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> "  class="button"/>
-               </div>
-       </fieldset>
-       </div>
-       </form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->display('instructor/announcements/add_news.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 3a2aef9..737ee5b 100644 (file)
@@ -108,49 +108,6 @@ if (!($row = mysql_fetch_array($result))) {
        exit;
 }
 $_POST['formatting'] = intval($row['formatting']);
-
-?>
-
-
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-<input type="hidden" name="edit_news" value="true">
-<input type="hidden" name="aid" value="<?php echo $row['news_id']; ?>">
-<input type="submit" name="submit" style="display:none;"/>
-<div class="input-form">
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
-               <input type="text" name="title" id="title" value="<?php echo AT_print($row['title'], 'input.text'); ?>" size="40">
-       </div>
-
-       <div class="row">
-               <?php echo _AT('formatting'); ?><br />
-               <input type="radio" name="formatting" value="0" id="text" <?php if ($_POST['formatting'] === 0) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=true;" <?php if ($_POST['setvisual'] && !$_POST['settext']) { echo 'disabled="disabled"'; } ?> /><label for="text"><?php echo _AT('plain_text'); ?></label>,
-
-               <input type="radio" name="formatting" value="1" id="html" <?php if ($_POST['formatting'] == 1 || $_POST['setvisual']) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=false;"  /> <label for="html"><?php echo _AT('html'); ?></label>
-               <?php
-                       if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
-                               echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
-                               echo '<input type="submit" name="settext"   value="'._AT('switch_text').'" />';
-                       } else {
-                               echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'" ';
-                               if ($_POST['formatting']==0) { echo 'disabled="disabled"'; }
-                               echo '/>';
-                       } 
-               ?>
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body_text"><?php echo _AT('body'); ?></label><br />
-               <textarea name="body_text" cols="55" rows="15" id="body_text" wrap="wrap"><?php echo AT_print($row['body'], 'input.text'); ?></textarea>
-       </div>
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
-       </div>
-
-
-</div>
-</form>
-
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('row', $row);
+$savant->display('instructor/announcements/edit_news.tmpl.php');
+require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index e629396..63defbd 100644 (file)
@@ -47,49 +47,9 @@ if (isset($_GET['asc'])) {
 $sql   = "SELECT news_id, title, date FROM ".TABLE_PREFIX."news WHERE course_id=$_SESSION[course_id] ORDER BY $col $order";\r
 $result = mysql_query($sql, $db);\r
 \r
-?>\r
-<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-<table class="data" summary="" rules="cols">\r
-<colgroup>\r
-       <?php if ($col == 'title'): ?>\r
-               <col />\r
-               <col class="sort" />\r
-               <col />\r
-       <?php elseif($col == 'date'): ?>\r
-               <col span="2" />\r
-               <col class="sort" />\r
-       <?php endif; ?>\r
-</colgroup>\r
-<thead>\r
-<tr>\r
-       <th scope="col">&nbsp;</th>\r
-       <th scope="col"><a href="mods/_standard/announcements/index.php?<?php echo $orders[$order]; ?>=title"><?php echo _AT('title'); ?></a></th>\r
-       <th scope="col"><a href="mods/_standard/announcements/index.php?<?php echo $orders[$order]; ?>=date"><?php echo _AT('date'); ?></a></th>\r
-</tr>\r
-</thead>\r
-<tfoot>\r
-<tr>\r
-       <td colspan="3"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" class="button"/> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"  class="button"/></td>\r
-</tr>\r
-</tfoot>\r
-<tbody>\r
-       <?php if ($row = mysql_fetch_assoc($result)): ?>\r
-               <?php do { ?>\r
-                       <tr onmousedown="document.form['n<?php echo $row['news_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['news_id']; ?>">\r
-                       \r
-                               <td><input type="radio" name="aid" value="<?php echo $row['news_id']; ?>" id="n<?php echo $row['news_id']; ?>" /></td>\r
-                               \r
-                               <td><label for="n<?php echo $row['news_id']; ?>"><?php echo AT_print($row['title'], 'news.title'); ?></label></td>\r
-                               <td><?php echo AT_date(_AT('announcement_date_format'), $row['date'], AT_DATE_MYSQL_DATETIME); ?></td>\r
-                       </tr>\r
-               <?php } while ($row = mysql_fetch_assoc($result)); ?>\r
-       <?php else: ?>\r
-               <tr>\r
-                       <td colspan="3"><?php echo _AT('none_found'); ?></td>\r
-               </tr>\r
-       <?php endif; ?>\r
-</tbody>\r
-</table>\r
-</form>\r
-\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('result', $result);\r
+$savant->assign('col', $col);\r
+$savant->assign('order', $order);\r
+$savant->assign('orders', $orders);\r
+$savant->display('instructor/announcements/index.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 42d272f..012823c 100644 (file)
@@ -48,87 +48,10 @@ if (isset($_GET['order'])){
 }\r
 $sql = "SELECT * FROM ".TABLE_PREFIX."assignments WHERE course_id=$_SESSION[course_id] ORDER BY $sort $order";\r
 $result = mysql_query($sql, $db);\r
-?>\r
-\r
-\r
-\r
-<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">\r
-<table class="data" style="width: 90%;" rules="cols">\r
-<colgroup>\r
-       <?php if ($sort == 'title'): ?>\r
-               <col />\r
-               <col class="sort" />\r
-               <col span="5" />\r
-       <?php elseif($sort == 'assign_to'): ?>\r
-               <col span="2" />\r
-               <col class="sort" />\r
-               <col span="4" />\r
-       <?php elseif($sort == 'date_due'): ?>\r
-               <col span="3" />\r
-               <col class="sort" />\r
-               <col span="3" />\r
-       <?php endif; ?>\r
-</colgroup>\r
-<thead>\r
-<tr>\r
-       <th>&nbsp;</th>\r
-       <th scope="col"><a href="mods/_standard/assignments/index_instructor.php?sort=title<?php echo SEP; ?>order=<?php echo $orders[$order]; ?>"><?php echo _AT('title'); ?></a></th>\r
-       <th scope="col"><?php echo _AT('assigned_to'); ?></th>\r
-       <th scope="col"><a href="mods/_standard/assignments/index_instructor.php?sort=date_due<?php echo SEP; ?>order=<?php echo $orders[$order]; ?>"><?php echo _AT('due_date'); ?></a></th>\r
-</tr>\r
-</thead>\r
-<?php if (($result != 0) && ($row = mysql_fetch_assoc($result))) : ?>\r
-<tfoot>\r
-<tr>\r
-       <td colspan="4">\r
-               <input type="submit" name="submissions" value="<?php echo _AT('submissions'); ?>" class="button"/> \r
-               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>"  class="button"/> \r
-               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" class="button" />\r
-                                       \r
-       </td>\r
-</tr>\r
-</tfoot>\r
-<tbody>\r
-       <?php do { ?>\r
-               <tr onmousedown="document.form['a<?php echo $row['assignment_id']; ?>'].checked = true; rowselect(this);" id="a_<?php echo $row['assignment_id']; ?>_0">\r
-               \r
-               <td><input type="radio" id="a<?php echo $row['assignment_id']; ?>" name="assignment" value="<?php echo $row['assignment_id']; ?>" \r
-\r
-               <?php // set first item as checked if nothing selected\r
-               if (isset($_GET['assignment_id'])){\r
-                       if ($_GET['assignment_id'] == $row['assignment_id']){ \r
-                               echo ' checked="checked"'; \r
-                       } \r
-               }\r
-               else {\r
-                       echo ' checked="checked"';\r
-                       $_GET['assignment_id'] = $row['assignment_id'];\r
-               }\r
-               ?>/></td>\r
-\r
-               <td><label for="a<?php echo $row['assignment_id']; ?>"><?php echo AT_print($row['title'], 'assignment.title'); ?></label></td>\r
-\r
-               <td><?php if($row['assign_to'] == '0'){echo _AT('all_students'); } else {\r
-                                       $sql = "SELECT title FROM ".TABLE_PREFIX."groups_types WHERE type_id=$row[assign_to] AND course_id=$_SESSION[course_id]";\r
-                                       $type_result = mysql_query($sql, $db);\r
-                                       $type_row = mysql_fetch_assoc($type_result);\r
-                                       echo $type_row['title']; } ?></td>\r
-\r
-               <td><?php  if ($row['date_due'] == '0000-00-00 00:00:00'){\r
-                       echo _AT('none');\r
-               }else {\r
-                       echo AT_Date(_AT('forum_date_format'), $row['date_due'], AT_DATE_MYSQL_DATETIME);\r
-               }?></td>\r
-               </tr>\r
-       <?php } while($row = mysql_fetch_assoc($result)); ?>\r
-</tbody>\r
-<?php else: ?>\r
-       <tr>\r
-               <td colspan="4"><strong><?php echo _AT('none_found'); ?></strong></td>\r
-       </tr>\r
-<?php endif; ?>\r
-</table>\r
-</form>\r
-\r
-\r
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$sql2 = "SELECT title FROM ".TABLE_PREFIX."groups_types WHERE type_id=$row[assign_to] AND course_id=$_SESSION[course_id]";\r
+$type_result = mysql_query($sql2, $db);\r
+$savant->assign('result', $result);\r
+$savant->assign('sort', $sort);\r
+$savant->assign('type_result', $type_result);\r
+$savant->display('instructor/assignments/index_instructor.tmpl.php');\r
+require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 333bbba..cdce3f1 100644 (file)
@@ -24,12 +24,14 @@ $this->_pages['mods/_standard/assignments/index_instructor.php']['guide']     =
 \r
        $this->_pages['mods/_standard/assignments/add_assignment.php']['title_var'] = 'add_assignment';\r
        $this->_pages['mods/_standard/assignments/add_assignment.php']['parent']    = 'mods/_standard/assignments/index_instructor.php';\r
-\r
+    $this->_pages['mods/_standard/assignments/add_assignment.php']['avail_in_mobile']   = false;\r
+    \r
        $this->_pages['mods/_standard/assignments/edit_assignment.php']['title_var'] = 'edit';\r
        $this->_pages['mods/_standard/assignments/edit_assignment.php']['parent']    = 'mods/_standard/assignments/index_instructor.php';\r
-\r
+    $this->_pages['mods/_standard/assignments/edit_assignment.php']['avail_in_mobile']   = false;\r
+    \r
        $this->_pages['mods/_standard/assignments/delete_assignment.php']['title_var'] = 'delete';\r
        $this->_pages['mods/_standard/assignments/delete_assignment.php']['parent']    = 'mods/_standard/assignments/index_instructor.php';\r
-\r
+    $this->_pages['mods/_standard/assignments/delete_assignment.php']['avail_in_mobile']   = false;\r
 \r
 ?>
\ No newline at end of file
index 115c332..5e5fc3c 100644 (file)
@@ -78,75 +78,10 @@ if ($dir = @opendir(AT_CONTENT_DIR . 'chat/'.$_SESSION['course_id'].'/tran/')) {
                }
        }
 }
-
-if (count($tran_files) == 0) {
-       echo '<div style="width:90%;" class="input-form"><p>'._AT('chat_none_found').'</p></div>';
-} else {?>
-       
-<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-
-       <table class="data" rules="cols" summary="">
-       <colgroup>
-               <?php if ($col == 'name'): ?>
-                       <col />
-                       <col class="sort" />
-                       <col span="2" />
-               <?php elseif($col == 'date'): ?>
-                       <col span="3" />
-                       <col class="sort" />
-               <?php endif; ?>
-       </colgroup>
-       <thead>
-       <tr>
-               <th scope="col">&nbsp;</th>
-               <th scope="col"><a href="mods/_standard/chat/index.php?<?php echo $orders[$order]; ?>=name"><?php echo _AT('chat_transcript');?></a></th>
-               <th scope="col"><?php echo _AT('status'); ?></th>
-               <th scope="col"><a href="mods/_standard/chat/index.php?<?php echo $orders[$order]; ?>=date"><?php echo _AT('date'); ?></a></th> 
-               </th> 
-       </tr>
-       </thead>
-       <?php
-
-       if (($col == 'date') && ($order == 'asc')) {
-               asort($tran_files);
-       } else if (($col == 'date') && ($order == 'desc')) {
-               arsort($tran_files);
-       } else if (($col == 'name') && ($order == 'asc')) {
-               ksort($tran_files);
-       } else if (($col == 'name') && ($order == 'desc')) {
-               krsort($tran_files);
-       }
-       reset ($tran_files);
-       ?>
-
-       <tbody>
-       <?php foreach ($tran_files as $file => $date) { ?>
-               <tr onmousedown="document.form['<?php echo $file; ?>'].checked = true; rowselect(this);" id="r_<?php echo $file; ?>">
-                       <td><input type="radio" name="file" value="<?php echo $file; ?>" id="<?php echo $file; ?>" /></td>
-
-                       <td><label for="<?php echo $file; ?>"><?php echo $file; ?></label></td>
-                       <td>
-                               <?php if (($file.'.html' == $admin['tranFile']) && ($admin['produceTran'])) { 
-                                       echo _AT('chat_currently_active');
-                               } else {
-                                       echo _AT('chat_inactive');
-                               }?>
-                       </td>
-       
-                       <td><?php echo AT_DATE(_AT('server_date_format'), $date); ?></td>
-               </tr>
-       <?php } ?>
-       </tbody>
-
-       <tfoot>
-       <tr>
-               <td colspan="4"><input type="submit" name="view" value="<?php echo _AT('view'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
-       </tr>
-       </tfoot>
-
-       </table>
-</form>
-<?php
-}
-
+$savant->assign('admin', $admin);
+$savant->assign('orders', $orders);
+$savant->assign('order', $order);
+$savant->assign('col', $col);
+$savant->assign('tran_files', $tran_files);
+$savant->display('instructor/chat/index.tmpl.php');
 require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index d0b142a..6b077a1 100644 (file)
@@ -208,41 +208,9 @@ require(AT_INCLUDE_PATH.'header.inc.php');
     } else {
         $i1Y = ' selected ';
     } 
-?>
 
-<form name="f1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-<div class="input-form">
-       <div class="row">
-               <?php echo _AT('chat_keep_tran'); ?>
-       </div>
-
-<?php
-       echo '<input type="hidden" name="adminPass" value="'.$adminPass.'" />';
-
-       if ($admin['produceTran'] > 0) {
-               echo '<input type="hidden" name="function" value="stopTran" />';
-               echo '<div class="row">';
-                       echo _AT('chat_current_tran').' <a href="mods/_standard/chat/view_transcript.php?t='.str_replace('.html', '', $admin['tranFile']).'" >'.str_replace('.html', '', $admin['tranFile']).'</a>.</p>';
-               echo '</div>';
-
-               echo '<div class="row buttons">';
-               echo '<input type="submit" value="'._AT('chat_stop_tran').'" name="submit2" />';
-               echo '</div>';
-
-    } else {
-        echo '<input type="hidden" name="function" value="startTran" />';
-
-               echo '<div class="row">';
-                       echo _AT('chat_tran_file_name').' ';
-                       echo '<input type="text" name="tranFile" class="formfield" />';
-               echo '</div>';          
-
-               echo '<div class="row buttons">';
-               echo '<input type="submit" value="'._AT('chat_start_tran').'" name="submit2" />';
-               echo '</div>';
-    }
-       echo '</div>';
-       echo '</form>';
-       
-       require(AT_INCLUDE_PATH.'footer.inc.php');
+$savant->assign('admin', $admin);      
+$savant->assign('adminPass', $adminPass);
+$savant->display('instructor/chat/start_transcript.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php');
 ?>
\ No newline at end of file
index 05037d8..56eac2b 100644 (file)
@@ -173,59 +173,31 @@ if ($row['cnt'] == 0) {
        exit;
 }
 
+//fetch groups names, same as first out of loop query. 
+$sql = "SELECT type_id, title FROM ".TABLE_PREFIX."groups_types WHERE course_id=$_SESSION[course_id] ORDER BY title";
+$result = mysql_query($sql, $db);
+
+
+$group_type_rows = array(); 
+
+while ($row = mysql_fetch_assoc($result)) {  
+       //While a row of data exists, put the fields "title" and "type_id", into $row as an associative array. 
+
+    $group_type_rows[$row['type_id']] = $row; 
+    //save the first SQL result set ($row) into $group_type_rows. Use type_id as the key to map each row
+     
+    
+    $sql = "SELECT group_id, title FROM ".TABLE_PREFIX."groups WHERE type_id=$row[type_id] ORDER BY title";
+    $group_result = mysql_query($sql, $db);
+    //second loop adds a child array to our $group_type_rows created above to store the data
+    while($group_rows = mysql_fetch_assoc($group_result)) {
+        $group_type_rows[$row['type_id']]['group_type_row'][] = $group_rows;
+    }
+
+}
+
+$savant->assign('group_type_rows', $group_type_rows);
+$savant->display('instructor/course_email/course_email.tmpl.php');
 ?>
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-<input type="hidden" name="course" value="<?php echo $course; ?>" />
-
-<div class="input-form">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('course_email'); ?></legend>
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
-               <?php echo  _AT('to'); ?><br />
-               <input type="checkbox" name="to_assistants" value="1" id="assistants" <?php if ($_POST['to_assistants']=='1') { echo 'checked="checked"'; } ?> /><label for="assistants"><?php echo  _AT('assistants'); ?></label>
-               <input type="checkbox" name="to_enrolled" value="1" id="enrolled" <?php if ($_POST['to_enrolled']=='1') { echo 'checked="checked"'; } else { echo 'checked="checked"'; } ?> /><label for="enrolled"><?php echo  _AT('enrolled'); ?></label>
-               <input type="checkbox" name="to_unenrolled" value="1" id="unenrolled" <?php if ($_POST['to_unenrolled']=='1') { echo 'checked="checked"'; } ?> /><label for="unenrolled"><?php echo  _AT('unenrolled'); ?></label>
-               <input type="checkbox" name="to_alumni" value="1" id="alumni" <?php if ($_POST['to_alumni']=='1') { echo 'checked="checked"'; } ?> /><label for="alumni"><?php echo  _AT('alumni'); ?></label>
-
-               <?php
-               $sql = "SELECT type_id, title FROM ".TABLE_PREFIX."groups_types WHERE course_id=$_SESSION[course_id] ORDER BY title";
-               $result = mysql_query($sql, $db);
-               ?>
-               <?php if ($row = mysql_fetch_assoc($result)): ?>
-                       <br /><br />
-                       <?php echo _AT('or_groups'); ?>:<br />
-                       <select name="groups[]" multiple="multiple" size="10" style="padding-right: 5px">
-                               <?php do { ?>
-                                       <optgroup label="<?php echo $row['title']; ?>">
-                                               <?php 
-                                                       $sql = "SELECT group_id, title FROM ".TABLE_PREFIX."groups WHERE type_id=$row[type_id] ORDER BY title";
-                                                       $group_result = mysql_query($sql, $db);
-                                               ?>
-                                               <?php while ($group_row = mysql_fetch_assoc($group_result)): ?>
-                                                       <option value="<?php echo $group_row['group_id']; ?>"><?php echo $group_row['title']; ?></option>
-                                               <?php endwhile; ?>
-                                       </optgroup>
-                               <?php } while ($row = mysql_fetch_assoc($result)); ?>
-                       </select>
-               <?php endif; ?>
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="subject"><?php echo _AT('subject'); ?></label><br />
-               <input type="text" name="subject" size="60" id="subject" value="<?php echo $_POST['subject']; ?>" />
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('body'); ?></label><br />
-               <textarea cols="55" rows="18" name="body" id="body"><?php echo $_POST['body']; ?></textarea>
-       </div>
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('send'); ?>" accesskey="s" /> 
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </div>
-       </fieldset>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+
+<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
index 5b1d25f..6db0436 100644 (file)
@@ -8,9 +8,10 @@ $this->_pages['mods/_standard/course_tools/modules.php']['title_var'] = 'course_
 $this->_pages['mods/_standard/course_tools/modules.php']['parent']    = 'tools/index.php';\r
 $this->_pages['mods/_standard/course_tools/modules.php']['children']  = array('mods/_standard/course_tools/side_menu.php');\r
 $this->_pages['mods/_standard/course_tools/modules.php']['guide']     = 'instructor/?p=student_tools.php';\r
+$this->_pages['mods/_standard/course_tools/modules.php']['avail_in_mobile']   = false;\r
 \r
        $this->_pages['mods/_standard/course_tools/side_menu.php']['title_var'] = 'side_menu';\r
        $this->_pages['mods/_standard/course_tools/side_menu.php']['parent']    = 'mods/_standard/course_tools/modules.php';\r
        $this->_pages['mods/_standard/course_tools/side_menu.php']['guide']     = 'instructor/?p=side_menu.php';\r
-\r
+       $this->_pages['mods/_standard/course_tools/side_menu.php']['avail_in_mobile']   = false;\r
 ?>
\ No newline at end of file
index 94ba4ff..f427e34 100644 (file)
@@ -130,66 +130,8 @@ $num_modules = count($_current_modules);
 //all other mods
 $_current_modules = array_merge( (array) $_current_modules, array_diff($_modules, $_current_modules));
 
-$count = 0;
-
-?>
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
-<table class="data static" rules="rows" summary="">
-<thead>
-<tr>
-       <th scope="cols"><?php echo _AT('section'); ?></th>
-       <th><?php echo _AT('location'); ?></th>
-       <th><?php echo _AT('order'); ?></th>
-</tr>
-</thead>
-<tfoot>
-<tr>
-       <td colspan="3" style="text-align:right;"><input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /></td>
-</tr>
-</tfoot>
-<tbody>
-<?php foreach ($_current_modules as $module): ?>
-<?php $count++; ?>
-<tr>
-       <td><?php 
-               if (isset($_pages[$module]['title'])) {
-                       echo $_pages[$module]['title'];
-               } else {
-                       echo _AT($_pages[$module]['title_var']);
-               } ?></td>
-       <td>
-               <?php if (in_array($module, $_pages[AT_NAV_COURSE])): ?>
-                       <input type="checkbox" name="main[]" value="<?php echo $module; ?>" id="m<?php echo $count; ?>" checked="checked" /><label for="m<?php echo $count; ?>"><?php echo _AT('main_navigation'); ?></label>
-               <?php else: ?>
-                       <input type="checkbox" name="main[]" value="<?php echo $module; ?>" id="m<?php echo $count; ?>" /><label for="m<?php echo $count; ?>"><?php echo _AT('main_navigation'); ?></label>
-               <?php endif; ?>
-
-               <?php if (in_array($module, $_pages[AT_NAV_HOME])): ?>
-                       <input type="checkbox" name="home[]" value="<?php echo $module; ?>" id="h<?php echo $count; ?>" checked="checked" /><label for="h<?php echo $count; ?>"><?php echo _AT('home'); ?></label>
-               <?php else: ?>
-                       <input type="checkbox" name="home[]" value="<?php echo $module; ?>" id="h<?php echo $count; ?>" /><label for="h<?php echo $count; ?>"><?php echo _AT('home'); ?></label>
-               <?php endif; ?>
-       </td>
-       <td align="right">
-               <?php if (!in_array($module, $_pages[AT_NAV_HOME]) && !in_array($module, $_pages[AT_NAV_COURSE])): ?>
-                       &nbsp;
-               <?php else: ?>
-                       <?php if (($count != $num_main+1) && ($count > 1)): ?>
-                               <input type="submit" name="up[<?php echo $module; ?>]" value="<?php echo _AT('move_up'); ?>" title="<?php echo _AT('move_up'); ?>" style="background-color: white; border: 1px solid; padding: 0px;" />
-                       <?php else: ?>
-                               <img src="images/clr.gif" alt="" width="12" />
-                       <?php endif; ?>
-                       <?php if (($count != $num_main) && ($count < $num_modules)): ?>
-                               <input type="submit" name="down[<?php echo $module; ?>]" value="<?php echo _AT('move_down'); ?>" title="<?php echo _AT('move_down'); ?>" style="background-color: white; border: 1px solid; padding: 0px;"/>
-                       <?php else: ?>
-                               <img src="images/clr.gif" alt="" width="12" />
-                       <?php endif; ?>
-               <?php endif; ?>
-       </td>
-</tr>
-<?php endforeach; ?>
-</tbody>
-</table>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('num_modules', $num_modules);
+$savant->assign('num_main', $num_main);
+$savant->assign('current_modules', $_current_modules);
+$savant->display('instructor/course_tools/modules.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 7f09260..f29c31b 100644 (file)
@@ -43,46 +43,5 @@ if (isset($_POST['submit'])) {
 }
 
 require(AT_INCLUDE_PATH.'header.inc.php');
-
-?>
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="prefs">
-<div class="input-form" style="width:90%">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('side_menu'); ?></legend>
-       <div class="row">
-               <p><?php echo _AT('side_menu_text'); ?></p>
-       </div>
-
-       <div class="row">
-               <?php
-                       $num_stack = count($_stacks);
-                       $side_menu = explode("|", $system_courses[$_SESSION['course_id']]['side_menu']);                        
-
-                       for ($i=0; $i<$num_stack; $i++) {                               
-                               echo '<select name="stack['.$i.']">';
-                               echo '<option value=""></option>';
-                               foreach ($_stacks as $name=>$info) {
-                                       if (isset($info['title'])) {
-                                               $title = $info['title'];
-                                       } else {
-                                               $title = _AT($info['title_var']);
-                                       }
-                                       echo '<option value="'.$name.'"';
-                                       if (isset($side_menu[$i]) && ($name == $side_menu[$i])) {
-                                               echo ' selected="selected"';
-                                       }
-                                       echo '>'.$title.'</option>';
-                               }
-                               echo '</select>';
-                               echo '<br />'; 
-                       } ?>
-       </div>
-
-       <div class="buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('apply'); ?>" accesskey="s" />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </div>
-       </fieldset>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->display('instructor/course_tools/side_menu.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 947c90e..039be5e 100644 (file)
@@ -74,38 +74,6 @@ require(AT_INCLUDE_PATH.'header.inc.php');
                require(AT_INCLUDE_PATH.'footer.inc.php');
                exit;
        }
-?>
-
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-
-<div class="input-form">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_question'); ?></legend>
-       <div class="row">
-
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="topic"><?php  echo _AT('topic'); ?></label><br />
-               <select name="topic_id" id="topic">
-                       <?php while ($row = mysql_fetch_assoc($result)): ?>
-                               <option value="<?php echo $row['topic_id']; ?>"<?php if (isset($_POST['topic_id']) && ($row['topic_id'] == $_POST['topic_id'])) { echo ' selected="selected"'; } ?>><?php echo AT_print($row['name'], 'input.text'); ?></option>
-                       <?php endwhile; ?>
-               </select>
-       </div>
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php  echo _AT('question'); ?></label><br />
-               <input type="text" name="question" size="50" id="question" value="<?php if (isset($_POST['question'])) echo AT_print($stripslashes($_POST['question']), 'input.text');  ?>" />
-
-       </div>
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="answer"><?php  echo _AT('answer'); ?></label><br />
-               <textarea name="answer" cols="45" rows="3" id="answer" style="width:90%;"><?php if (isset ($_POST['answer'])) echo AT_print($stripslashes($_POST['answer']), 'text.input');  ?></textarea>
-       </div>
-
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </div>
-       </fieldset>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('result', $result);
+$savant->display('instructor/faq/add_question.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index b4eba4f..bcbcb53 100644 (file)
@@ -43,23 +43,6 @@ $onload = 'document.form.name.focus();';
 
 require(AT_INCLUDE_PATH.'header.inc.php');
 
-?>
 
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-
-<div class="input-form">       
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_topic'); ?></legend>
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="name"><?php  echo _AT('name'); ?></label><br />
-               <input type="text" name="name" size="50" id="name" value="<?php if (isset($_POST['name'])) echo $stripslashes($_POST['name']);  ?>" />
-       </div>
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </div>
-       </fieldset>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->display('instructor/faq/add_topic.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index d4914c2..feb1cae 100644 (file)
@@ -92,42 +92,17 @@ if (!$num_topics) {
        exit;
 }
 
-?>
-
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-<input type="hidden" name="id" value="<?php echo $row['entry_id']; ?>" />
-
-<div class="input-form">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('create_new_file'); ?></legend>
-       <div class="row">
-               <?php
-                       $sql    = "SELECT name, topic_id FROM ".TABLE_PREFIX."faq_topics WHERE course_id=$_SESSION[course_id] ORDER BY name";
-                       $result = mysql_query($sql, $db);
-               ?>
-
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="topic"><?php  echo _AT('topic'); ?></label><br />
-               <select name="topic_id" id="topic">
-                       <?php while ($topic_row = mysql_fetch_assoc($result)): ?>
-                               <option value="<?php echo $topic_row['topic_id']; ?>"<?php if ($topic_row['topic_id'] == $row['topic_id']) { echo ' selected="selected"'; } ?>><?php echo AT_print($topic_row['name'], 'input.text'); ?></option>
-                       <?php endwhile; ?>
-               </select>
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php echo _AT('question'); ?>:</label><br />
-               <input type="text" name="question" size="50" id="question" value="<?php if (isset ($_POST['question'])) { echo AT_print($stripslashes($_POST['question']), 'input.text'); } else { echo AT_print($row['question'], 'input.text'); } ?>" />
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="answer"><?php  echo _AT('answer'); ?></label><br />
-               <textarea name="answer" cols="45" rows="3" id="answer" style="width:90%;"><?php if (isset ($_POST['answer'])) { echo AT_print($stripslashes($_POST['answer']), 'input.text'); } else { echo AT_print($row['answer'], 'input.text'); } ?></textarea>
-       </div>
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
-       </div>
-       </fieldset>
-</div>
-</form>
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$sql   = "SELECT name, topic_id FROM ".TABLE_PREFIX."faq_topics WHERE course_id=$_SESSION[course_id] ORDER BY name";
+$result = mysql_query($sql, $db);
+$faq_topics = array();
+while ($topic_row = mysql_fetch_assoc($result)){
+       $faq_topics[] = $topic_row;
+}
+                               
+
+
+$savant->assign('row', $row);
+$savant->assign('result', $result);
+$savant->assign('faq_topics', $faq_topics);
+$savant->display('instructor/faq/edit_question.tmpl.php');
+require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index ca028b4..91bf822 100644 (file)
@@ -66,24 +66,6 @@ if (!$row = mysql_fetch_assoc($result)) {
 } else if (!isset($_POST['name'])) {
        $_POST['name'] = $row['name'];
 }
-
-?>
-
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-<input type="hidden" name="id" value="<?php echo $id; ?>" />
-
-<div class="input-form">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit'); ?></legend>
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="name"><?php  echo _AT('name'); ?></label><br />
-               <input type="text" name="name" size="50" id="name" value="<?php if (isset($_POST['name'])) echo AT_print($stripslashes($_POST['name']), 'input.text');  ?>" />
-       </div>
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
-       </div>
-       </fieldset>
-</div>
-</form>
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('id', $id);
+$savant->display('instructor/faq/edit_topic.tmpl.php');
+require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index cf3748e..8627a42 100644 (file)
@@ -42,53 +42,28 @@ require(AT_INCLUDE_PATH.'header.inc.php');
 $counter = 1;\r
 $sql    = "SELECT name, topic_id FROM ".TABLE_PREFIX."faq_topics WHERE course_id=$_SESSION[course_id] ORDER BY name";\r
 $result  = mysql_query($sql, $db);\r
-?>\r
 \r
-<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">\r
-<table class="data" style="width: 90%;">\r
-<thead>\r
-<tr>\r
-       <th>&nbsp;</th>\r
-       <th style="width: 100%;"><?php echo _AT('name'); ?></th>\r
-</tr>\r
-</thead>\r
-<tfoot>\r
-<tr>\r
-       <td colspan="2"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> \r
-                                   <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>\r
-</tr>\r
-</tfoot>\r
-<?php if ($row = mysql_fetch_assoc($result)) : ?>\r
-<tbody>\r
-               <?php do { ?>\r
-                       <tr onmousedown="document.form['t<?php echo $row['topic_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['topic_id']; ?>_0">\r
-                               <th style="border-top:1pt solid #e0e0e0;"><input type="radio" name="item" id="t<?php echo $row['topic_id']; ?>" value="<?php echo $row['topic_id']; ?>" /></th>\r
-                               <th style="border-top:1pt solid #e0e0e0;"><?php echo AT_print($row['name'], 'faqs.topic'); ?></th>\r
-                       </tr>\r
-                       <?php \r
-                               $entry_sql = "SELECT * FROM ".TABLE_PREFIX."faq_entries WHERE topic_id=$row[topic_id] ORDER BY question";\r
-                               $entry_result = mysql_query($entry_sql, $db);\r
-                       ?>\r
+$faq_topics = array(); \r
+while ($row = mysql_fetch_assoc($result)) { \r
+       \r
+       $faq_topics[$row['topic_id']] = $row;\r
+       $entry_sql = "SELECT * FROM ".TABLE_PREFIX."faq_entries WHERE topic_id=$row[topic_id] ORDER BY question";\r
+       $entries = mysql_query($entry_sql, $db);\r
+       \r
+       while ($entry_result = mysql_fetch_assoc($entries))\r
+       {\r
+               $faq_topics[$row['topic_id']]['entry_rows'][] = $entry_result;\r
+       }\r
+}\r
+\r
 \r
-                       <?php if ($entry_row = mysql_fetch_assoc($entry_result)) : do { ?>\r
-                               <tr onmousedown="document.form['q<?php echo $entry_row['entry_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['topic_id']; ?>_<?php echo $entry_row['entry_id']; ?>">\r
-                                       <td><input type="radio" name="item" id="q<?php echo $entry_row['entry_id']; ?>" value="<?php echo $entry_row['entry_id']; ?>q" /></td>\r
-                                       <td><?php echo AT_print($entry_row['question'], 'faqs.question'); ?></td>\r
-                               </tr>\r
-                       <?php } while ($entry_row = mysql_fetch_assoc($entry_result)); else: ?>\r
-                               <tr>\r
-                                       <td>&nbsp;</td>\r
-                                       <td><?php echo _AT('no_questions'); ?></td>\r
-                               </tr>\r
-                       <?php endif; ?>\r
-               <?php } while($row = mysql_fetch_assoc($result)); ?>\r
-</tbody>\r
-<?php else: ?>\r
-       <tr>\r
-               <td colspan="2"><strong><?php echo _AT('none_found'); ?></strong></td>\r
-       </tr>\r
-<?php endif; ?>\r
-</table>\r
-</form>\r
 \r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
+if ($_SESSION['id'] > 0){\r
+       $savant->assign('faq_topics', $faq_topics);     \r
+}\r
+else {\r
+       $savant->assign('faq_topics', $faq_topics);     \r
+       $savant->display('instructor/faq/index_instructor.tmpl.php');\r
+}\r
+\r
+require(AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
index 15d6823..b6f2438 100644 (file)
@@ -43,31 +43,5 @@ $onload = 'document.form.title.focus();';
 
 require(AT_INCLUDE_PATH.'header.inc.php');
 
-?>
-
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-<input type="hidden" name="add_forum" value="true">
-
-<div class="input-form">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('create_forum'); ?></legend>
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
-               <input type="text" name="title" size="40" id="title" />
-       </div>
-       <div class="row">
-               <label for="body"><?php echo _AT('description'); ?></label><br />
-               <textarea name="body" cols="45" rows="2" id="body" wrap="wrap"></textarea>
-       </div>
-       <div class="row">
-               <label for="edit"><?php echo _AT('allow_editing'); ?></label><br />
-               <input type="text" name="edit" size="3" id="edit" value="<?php echo intval($row['mins_to_edit']); ?>" /> <?php echo _AT('in_minutes'); ?>
-       </div>
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </div>
-       </fieldset>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->display('instructor/forums/add_forum.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 65fcd60..8e7c331 100644 (file)
@@ -62,50 +62,12 @@ if (isset($_POST['cancel'])) {
 
 $onload = 'document.form.title.focus();';
 
-require(AT_INCLUDE_PATH.'header.inc.php'); 
-
-?>
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-<input type="hidden" name="add_forum" value="true">
-
-<div class="input-form">
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
-               <input type="text" name="title" size="40" id="title" value="<?php echo $_POST['title']; ?>" />
-       </div>
-
-       <div class="row">
-               <label for="body"><?php echo _AT('description'); ?></label><br />
-               <textarea name="description" cols="45" rows="2" id="body" wrap="wrap"><?php echo $_POST['description']; ?></textarea>
-       </div>
+               $sql = "SELECT course_id, title FROM ".TABLE_PREFIX."courses ORDER BY title";
+               $result = mysql_query($sql, $db);
+               $savant->assign('result', $result);             
 
-       <div class="row">
-               <label for="edit"><?php echo _AT('allow_editing'); ?></label><br />
-               <input type="text" name="edit" size="3" id="edit" value="<?php echo intval($row['mins_to_edit']); ?>" /> <?php echo _AT('in_minutes'); ?>
-       </div>
-
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="courses"><?php echo _AT('courses'); ?></label><br />
-               <?php if ($system_courses): ?>
-                       <select name="courses[]" id="courses" multiple="multiple" size="5"><?php
-               
-                               $sql = "SELECT course_id, title FROM ".TABLE_PREFIX."courses ORDER BY title";
-                               $result = mysql_query($sql, $db);
-                               while ($row = mysql_fetch_assoc($result)) {
-                                       echo '<option value="'.$row['course_id'].'">'.$row['title'].'</option>';                
-                               }
-                               ?>
-                       </select>
-               <?php else: ?>
-                       <span id="courses"><?php echo _AT('no_courses_found'); ?></span>
-               <?php endif; ?>
-       </div>
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </div>
-</div>
-</form>
+require(AT_INCLUDE_PATH.'header.inc.php'); 
 
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('system_courses', $system_courses);
+$savant->display('admin/courses/forum_add.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index f68246c..ae4dc61 100644 (file)
@@ -112,55 +112,15 @@ if (!($forum = @get_forum($_GET['forum']))) {
        while ($row = mysql_fetch_assoc($result)) {
                $courses[] = $row['course_id'];         
        }
+$sql = "SELECT course_id, title FROM ".TABLE_PREFIX."courses ORDER BY title";
+       $result = mysql_query($sql, $db);
 ?>
-       <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-       <input type="hidden" name="edit_forum" value="true">
-       <input type="hidden" name="forum" value="<?php echo $_REQUEST['forum']; ?>">
-
-<div class="input-form">
-       <div class="row">
-               <label for="title"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php  echo _AT('title'); ?></label><br />
-               <input type="text" name="title" size="40" id="title" value="<?php echo AT_print($forum['title'], 'input.text'); ?>" />
-       </div>
-
-       <div class="row">
-               <label for="body"><?php echo _AT('description'); ?></label><br />
-               <textarea name="description" cols="45" rows="5" id="body" wrap="wrap"><?php echo AT_print($forum['description'], 'input.text'); ?></textarea>
-       </div>
-
-       <div class="row">
-               <label for="edit"><?php echo _AT('allow_editing'); ?></label><br />
-               <input type="text" name="edit" size="3" id="edit" value="<?php echo intval($forum['mins_to_edit']); ?>" /> <?php echo _AT('in_minutes'); ?>
-       </div>
-
-       <div class="row">
-               <label for="courses"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('courses'); ?></label><br />
-               <select name="courses[]" id="courses" multiple="multiple" size="5"><?php
-                       /*
-                       echo '<option value="0"';
-                       if ($courses[0] == 0) {
-                               echo ' selected="selected"';
-                       }
-                       echo '> '._AT('all').' </option>';
-                       */
-                       $sql = "SELECT course_id, title FROM ".TABLE_PREFIX."courses ORDER BY title";
-                       $result = mysql_query($sql, $db);
-                       while ($row = mysql_fetch_assoc($result)) {
-                               if (in_array($row['course_id'], $courses) ) {
-                                       echo '<option value="'.$row['course_id'].'" selected="selected">'.AT_print($row['title'], 'input.text').'</option>';            
-                               } else {
-                                       echo '<option value="'.$row['course_id'].'">'.AT_print($row['title'], 'input.text').'</option>';
-                               }
-                       }
-                       ?></select>
-       </div>
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php  echo _AT('submit'); ?>" accesskey="s" /> <input type="submit" name="cancel" value="<?php  echo _AT('cancel'); ?>" />
-       </div>
-</div>
-       </form>
+       
 <?php
 }
-
+$savant->assign('courses', $courses);
+$savant->assign('result', $result);
+$savant->assign('forum', $forum);
+$savant->display('admin/courses/forum_edit.tmpl.php');
 require(AT_INCLUDE_PATH.'footer.inc.php');
 ?>
\ No newline at end of file
index 3971321..97ab303 100644 (file)
-<?php\r
-/************************************************************************/\r
-/* ATutor                                                                                                                              */\r
-/************************************************************************/\r
-/* Copyright (c) 2002-2010                                              */\r
-/* Inclusive Design Institute                                           */\r
-/* http://atutor.ca                                                                                                            */\r
-/*                                                                                                                                             */\r
-/* This program is free software. You can redistribute it and/or        */\r
-/* modify it under the terms of the GNU General Public License          */\r
-/* as published by the Free Software Foundation.                        */\r
-/************************************************************************/\r
-// $Id$\r
-\r
-define('AT_INCLUDE_PATH', '../../../../include/');\r
-require(AT_INCLUDE_PATH.'vitals.inc.php');\r
-\r
-admin_authenticate(AT_ADMIN_PRIV_FORUMS);\r
-\r
-if (isset($_GET['edit'], $_GET['id'])) {\r
-       header('Location: forum_edit.php?forum='.$_GET['id']);\r
-       exit;\r
-} else if (isset($_GET['delete'], $_GET['id'])) {\r
-       header('Location: forum_delete.php?forum='.$_GET['id']);\r
-       exit;\r
-} else if (isset($_GET['delete']) || isset($_GET['edit'])) {\r
-       $msg->addError('NO_ITEM_SELECTED');\r
-}\r
-\r
-include(AT_INCLUDE_PATH.'../mods/_standard/forums/lib/forums.inc.php');\r
-\r
-require(AT_INCLUDE_PATH.'header.inc.php'); \r
-\r
-?>\r
-<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-<table class="data" summary="" rules="groups" style="width: 90%">\r
-<thead>\r
-<tr>\r
-       <th scope="col">&nbsp;</th>\r
-       <th scope="col"><?php echo _AT('title');       ?></th>\r
-       <th scope="col"><?php echo _AT('description'); ?></th>\r
-       <th scope="col"><?php echo _AT('courses');     ?></th>\r
-</tr>\r
-</thead>\r
-<tfoot>\r
-<tr>\r
-       <td colspan="4"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>\r
-</tr>\r
-</tfoot>\r
-<tbody>\r
-<tr>\r
-       <th colspan="4"><?php echo _AT('shared_forums'); ?></th>\r
-</tr>\r
-<?php\r
-\r
-\r
-       $all_forums    = get_forums(0);\r
-       $num_shared    = count($all_forums['shared']);\r
-       $num_nonshared = count($all_forums['nonshared']);\r
-\r
-       if ($num_shared) {\r
-               foreach ($all_forums['shared'] as $forum) {\r
-                       echo '<tr onmousedown="document.form[\'f'.$forum['forum_id'].'\'].checked = true; rowselect(this);"  id="r_'.$forum['forum_id'].'">';\r
-                       echo '<td><input type="radio" name="id" value="'. $forum['forum_id'].'" id="f'.$forum['forum_id'].'"></td>';\r
-                       echo '  <td><label for="f'.$forum['forum_id'].'">' . AT_print($forum['title'], 'forums.title') . '</label></td>';\r
-                       echo '  <td>' . AT_print($forum['description'], 'forums.description') . '</td>';\r
-                       echo '  <td>';\r
-\r
-                       $courses = array();\r
-                       $sql = "SELECT F.course_id FROM ".TABLE_PREFIX."forums_courses F WHERE F.forum_id=$forum[forum_id]";\r
-                       $c_result = mysql_query($sql, $db);\r
-                       while ($course = mysql_fetch_assoc($c_result)) {\r
-                               $courses[] = $system_courses[$course['course_id']]['title'];\r
-                       }\r
-                       natcasesort($courses);\r
-                       echo implode(', ', $courses);\r
-                       echo '</td>';\r
-                       echo '</tr>';\r
-               }\r
-       } else {\r
-               echo '<tr>';\r
-               echo '  <td colspan="4"><strong>' . _AT('no_forums') . '</strong></td>';\r
-               echo '</tr>';\r
-       }\r
-?>\r
-</tbody>\r
-<tbody>\r
-       <tr>\r
-               <th colspan="4"><?php echo _AT('unshared_forums'); ?></th>\r
-       </tr>\r
-<?php if ($num_nonshared) : ?>\r
-       <?php foreach ($all_forums['nonshared'] as $forum) : ?>\r
-               <tr onmousedown="document.form['f<?php echo $forum['forum_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $forum['forum_id']; ?>">\r
-                       <td><input type="radio" name="id" value="<?php echo $forum['forum_id']; ?>" id="f<?php echo $forum['forum_id']; ?>" /></td>\r
-                       <td><label for="f<?php echo $forum['forum_id']; ?>"><?php echo AT_print($forum['title'], 'forums.title'); ?></label></td>\r
-                       <td><?php echo AT_print($forum['description'], 'forums.description'); ?></td>\r
-                       <td><?php echo $system_courses[$forum['course_id']]['title']; ?></td>\r
-               </tr>\r
-       <?php endforeach; ?>\r
-<?php else: ?>\r
-       <tr>\r
-               <td colspan="4"><strong><?php echo _AT('no_forums'); ?></strong></td>\r
-       </tr>\r
-<?php endif; ?>\r
-</tbody>\r
-</table>\r
-</form>\r
-\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php
+/************************************************************************/
+/* ATutor                                                                                                                              */
+/************************************************************************/
+/* Copyright (c) 2002-2010                                              */
+/* Inclusive Design Institute                                           */
+/* http://atutor.ca                                                                                                            */
+/*                                                                                                                                             */
+/* This program is free software. You can redistribute it and/or        */
+/* modify it under the terms of the GNU General Public License          */
+/* as published by the Free Software Foundation.                        */
+/************************************************************************/
+// $Id$
+
+define('AT_INCLUDE_PATH', '../../../../include/');
+require(AT_INCLUDE_PATH.'vitals.inc.php');
+
+admin_authenticate(AT_ADMIN_PRIV_FORUMS);
+
+if (isset($_GET['edit'], $_GET['id'])) {
+       header('Location: forum_edit.php?forum='.$_GET['id']);
+       exit;
+} else if (isset($_GET['delete'], $_GET['id'])) {
+       header('Location: forum_delete.php?forum='.$_GET['id']);
+       exit;
+} else if (isset($_GET['delete']) || isset($_GET['edit'])) {
+       $msg->addError('NO_ITEM_SELECTED');
+}
+
+include(AT_INCLUDE_PATH.'../mods/_standard/forums/lib/forums.inc.php');
+
+require(AT_INCLUDE_PATH.'header.inc.php'); 
+
+
+
+       $all_forums    = get_forums(0);
+       $num_shared    = count($all_forums['shared']);
+       $num_nonshared = count($all_forums['nonshared']);
+
+       $shared_forums = array();
+       $i = 0;
+               
+       if ($num_shared) {
+               foreach ($all_forums['shared'] as $forum) {
+                       $shared_forums[$i]["id"] = $forum['forum_id'];
+                       $shared_forums[$i]["title"] = AT_print($forum['title'], 'forums.title');   
+                       $shared_forums[$i]["desc"] = AT_print($forum['description'], 'forums.description');
+
+                       $courses = array();//create an empty array
+                       $sql = "SELECT F.course_id FROM ".TABLE_PREFIX."forums_courses F WHERE F.forum_id=$forum[forum_id]";
+                       $c_result = mysql_query($sql, $db);
+                       while ($course = mysql_fetch_assoc($c_result)) {
+                               $courses[] = $system_courses[$course['course_id']]['title'];
+                       }
+                       natcasesort($courses);
+                       $shared_forums[$i]["courses"] = $courses;
+                       
+                       $i++;
+
+               }
+       } else {
+               echo '<tr>';
+               echo '  <td colspan="4"><strong>' . _AT('no_forums') . '</strong></td>';
+               echo '</tr>';
+       }
+
+$nonshared_forums = array();
+$i = 0;
+
+if ($num_nonshared) {
+       foreach ($all_forums['nonshared'] as $forum) {
+               $nonshared_forums[$i]["forum_id"] = $forum['forum_id'];
+               $nonshared_forums[$i]["title"] = AT_print($forum['title'], 'forums.title');
+               $nonshared_forums[$i]["desc"] = AT_print($forum['description'], 'forums.description');
+               
+               $i++;
+       }
+}
+
+$savant->assign('system_courses', $system_courses);
+$savant->assign('num_nonshared', $num_nonshared);
+$savant->assign('courses', $courses);
+$savant->assign('shared_forums', $shared_forums);
+$savant->assign('nonshared_forums', $nonshared_forums);
+$savant->assign('all_forums', $all_forums);
+$savant->display('admin/courses/forums.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 80db48a..05e7367 100644 (file)
@@ -64,35 +64,7 @@ if (!isset($_POST['submit'])) {
 }
 
 $msg->printErrors();
-
-?>
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-<input type="hidden" name="edit_forum" value="true">
-<input type="hidden" name="fid" value="<?php echo $fid; ?>">
-
-<div class="input-form">
-       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit_forum'); ?></legend>
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
-               <input type="text" name="title" size="50" id="title" value="<?php echo htmlspecialchars(stripslashes($row['title'])); ?>" />
-       </div>
-
-       <div class="row">
-               <label for="body"><?php echo _AT('description'); ?></label><br />
-               <textarea name="body" cols="45" rows="2" id="body" wrap="wrap"><?php echo AT_print($row['description'], 'input.text'); ?></textarea>
-       </div>
-
-       <div class="row">
-               <label for="edit"><?php echo _AT('allow_editing'); ?></label><br />
-               <input type="text" name="edit" size="3" id="edit" value="<?php echo intval($row['mins_to_edit']); ?>" /> <?php echo _AT('in_minutes'); ?>
-       </div>
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </div>
-       </fieldset>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('row', $row);
+$savant->assign('fid', $fid);
+$savant->display('instructor/forums/edit_forum.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index c8bcd6b..e79e2cc 100644 (file)
@@ -33,46 +33,6 @@ require(AT_INCLUDE_PATH.'header.inc.php');
 \r
 \r
 $all_forums = get_forums($_SESSION['course_id']);\r
-?>\r
-<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-\r
-<table class="data" summary="" rules="cols">\r
-<thead>\r
-<tr>\r
-       <th scope="col">&nbsp;</th>\r
-       <th scope="col"><?php echo _AT('title'); ?></th>\r
-       <th scope="col"><?php echo _AT('description'); ?></th>\r
-       <th scope="col"><?php echo _AT('allow_editing'); ?></th>\r
-</tr>\r
-</thead>\r
-<tfoot>\r
-<tr>\r
-       <td colspan="4"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>\r
-</tr>\r
-</tfoot>\r
-<tbody>\r
-<?php if ($all_forums['nonshared']): ?>\r
-       <?php foreach($all_forums['nonshared'] as $row): ?>\r
-               <tr onmousedown="document.form['f<?php echo $row['forum_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['forum_id']; ?>">\r
-                       <td width="10"><input type="radio" name="id" value="<?php echo $row['forum_id']; ?>" id="f<?php echo $row['forum_id']; ?>" /></td>\r
-                       <td><label for="f<?php echo $row['forum_id']; ?>"><?php echo AT_print($row['title'], 'forums.title'); ?></label></td>\r
-                       <td><?php echo AT_print($row['description'], 'forums.description'); ?></td>\r
-                       <td>\r
-                               <?php if (!$row['mins_to_edit']): ?>\r
-                                       <?php echo _AT('no'); ?>\r
-                               <?php else: ?>\r
-                                       <?php echo  _AT('minutes', $row['mins_to_edit']); ?>\r
-                               <?php endif; ?>\r
-                       </td>\r
-               </tr>\r
-       <?php endforeach; ?>\r
-<?php else: ?>\r
-       <tr>\r
-               <td colspan="4"><?php echo _AT('none_found'); ?></td>\r
-       </tr>\r
-<?php endif; ?>\r
-</tbody>\r
-</table>\r
-</form>\r
-\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('all_forums', $all_forums);\r
+$savant->display('instructor/forums/index.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 1f8e427..59a1ccc 100644 (file)
@@ -258,7 +258,7 @@ function delete_forum($forum_id) {
 }
 
 function print_entry($row) {
-       global $page,$system_courses, $forum_info;
+       global $page, $system_courses, $forum_info;
        static $counter;
        $counter++;
 
index 6c2c3b7..f0025e1 100644 (file)
@@ -89,39 +89,6 @@ if (isset($_POST['submit'])) {
        $msg->printAll();\r
 }\r
 \r
-?>\r
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">\r
-       <div class="input-form" style="max-width: 95%">\r
-               <div class="row">\r
-                       <?php echo _AT("google_search_type_txt"); ?><br/>\r
-                       <?php\r
-                               if ($googleType==GOOGLE_TYPE_SOAP){\r
-                                       $type1=' checked="checked"'; \r
-                               } elseif ($googleType==GOOGLE_TYPE_AJAX){\r
-                                       $type2=' checked="checked"'; \r
-                               }\r
-                       ?>\r
-                       <input type="radio" name="gtype" id="googleTypeSoap" value="<?php echo GOOGLE_TYPE_SOAP?>" <?php echo $type1 ?>/>\r
-                       <label for="googleTypeSoap"><?php echo _AT("google_search_soap"); ?></label><br/>\r
-\r
-                       <input type="radio" name="gtype" id="googleTypeAjax" value="<?php echo GOOGLE_TYPE_AJAX?>" <?php echo $type2 ?>/>\r
-                       <label for="googleTypeAjax"><?php echo _AT("google_search_ajax"); ?></label><br/>\r
-               </div>\r
-               \r
-               <div class="row">\r
-                       <?php echo _AT('google_search_attn'); ?><br/><br/>\r
-                       <?php echo _AT('google_key_txt'); ?>\r
-               </div>\r
-               <div class="row">\r
-                       <input type="text" name="key" size="80" value="<?php echo $key; ?>" style="min-width: 90%;" />\r
-               </div>\r
-\r
-               <div class="row buttons">\r
-                       <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />\r
-               </div>\r
-       </div>\r
-\r
-</form>\r
-\r
-\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('googleType', $googleType);\r
+$savant->display('admin/system_preferences/module_prefs.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 3730557..5f78e33 100644 (file)
@@ -43,6 +43,7 @@ $this->_pages['mods/_standard/gradebook/gradebook_tests.php']['title_var'] = 'gr
 $this->_pages['mods/_standard/gradebook/gradebook_tests.php']['parent']    = 'tools/index.php';\r
 $this->_pages['mods/_standard/gradebook/gradebook_tests.php']['guide']     = 'instructor/?p=gradebook.php';\r
 $this->_pages['mods/_standard/gradebook/gradebook_tests.php']['children']  = array('mods/_standard/gradebook/gradebook_add_tests.php', 'mods/_standard/gradebook/update_gradebook.php', 'mods/_standard/gradebook/import_export_external_marks.php', 'mods/_standard/gradebook/edit_marks.php', 'mods/_standard/gradebook/grade_scale.php');\r
+$this->_pages['mods/_standard/gradebook/gradebook_tests.php']['avail_in_mobile']   = false;\r
 \r
 $this->_pages['mods/_standard/gradebook/gradebook_add_tests.php']['title_var'] = 'add_tests';\r
 $this->_pages['mods/_standard/gradebook/gradebook_add_tests.php']['parent']    = 'mods/_standard/gradebook/gradebook_tests.php';\r
index 7f9e41c..2def6fe 100644 (file)
@@ -23,7 +23,7 @@ if (admin_authenticate(AT_ADMIN_PRIV_PATCHER, TRUE) || admin_authenticate(AT_ADM
        $this->_pages['mods/_standard/patcher/index_admin.php']['title_var'] = 'patcher';\r
        $this->_pages['mods/_standard/patcher/index_admin.php']['parent']    = AT_NAV_ADMIN;\r
        $this->_pages['mods/_standard/patcher/index_admin.php']['avail_in_mobile']   = false;\r
-       \r
+
        $this->_pages['mods/_standard/patcher/index_admin.php']['children'] = array('mods/_standard/patcher/myown_patches.php','mods/_standard/patcher/patch_create.php');\r
        $this->_pages['mods/_standard/patcher/myown_patches.php']['title_var'] = 'myown_patches';\r
        $this->_pages['mods/_standard/patcher/myown_patches.php']['parent']   = 'mods/_standard/patcher/index_admin.php';\r
index 91e1d5a..3b14faf 100644 (file)
@@ -60,35 +60,5 @@ if ($_POST['add_poll'] && (authenticate(AT_PRIV_POLLS, AT_PRIV_RETURN))) {
 }
 
 require(AT_INCLUDE_PATH.'header.inc.php');
-
-?>
-
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-<input type="hidden" name="add_poll" value="true" />
-
-<div class="input-form">       
-<fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_poll'); ?></legend>
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php  echo _AT('question'); ?></label><br />
-               <textarea name="question" cols="45" rows="3" id="question" style="width:90%;"><?php if (isset ($_POST['question'])) echo htmlspecialchars($_POST['question']);  ?></textarea>
-       </div>
-
-<?php for ($i=1; $i<= AT_NUM_POLL_CHOICES; $i++): ?>
-       <div class="row">
-               <?php if (($i==1) || ($i==2)) { ?>
-                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
-               <?php } ?>
-               <label for="c<?php echo $i; ?>"><?php echo _AT('choice'); ?> <?php echo $i; ?></label><br />
-               <input type="text" name="c<?php echo $i; ?>" value="<?php if (isset($_POST['c' . $i])) echo htmlspecialchars($_POST['c' . $i]);  ?>" size="50" id="c<?php echo $i; ?>" />
-       </div>
-<?php endfor; ?>
-
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
-       </div>
-       </fieldset>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->display('instructor/polls/add.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index b885dab..5d84e89 100644 (file)
@@ -79,35 +79,6 @@ require(AT_INCLUDE_PATH.'header.inc.php');
                exit;
        }
 
-?>
-
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-<input type="hidden" name="edit_poll" value="true" />
-<input type="hidden" name="poll_id" value="<?php echo $row['poll_id']; ?>" />
-
-<div class="input-form">
-<fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit_poll'); ?></legend>
-       <div class="row">
-               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php echo _AT('question'); ?>:</label><br />
-               <textarea name="question" cols="55" rows="3" id="question"><?php if (isset ($_POST['question'])) { echo AT_print($_POST['question'], 'input.text'); } else { echo AT_print($row['question'], 'input.text'); } ?></textarea>
-       </div>
-
-<?php
-       for ($i=1; $i<= AT_NUM_POLL_CHOICES; $i++): ?>
-               <div class="row">
-                       <?php if (($i==1) || ($i==2)) { ?>
-                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
-                       <?php } ?>
-                       <label for="c<?php echo $i; ?>"><?php echo _AT('choice'); ?> <?php echo $i; ?>:</label><br />
-                       <input type="text" name="c<?php echo $i; ?>" id="c<?php echo $i; ?>" value="<?php if (isset ($_POST['c' . $i])) { echo AT_print($_POST['c' . $i], 'input.text'); } else { echo AT_print($row['choice' . $i], 'input.text'); }?>" size="40" />
-               </div>
-
-<?php endfor; ?>
-       <div class="row buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
-       </div>
-       </fieldset>
-</div>
-</form>
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('row', $row);
+$savant->display('instructor/polls/edit.tmpl.php');
+require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 580c95d..8f154b7 100644 (file)
@@ -46,58 +46,9 @@ if (isset($_GET['asc'])) {
 
 $sql   = "SELECT poll_id, question, created_date, total FROM ".TABLE_PREFIX."polls WHERE course_id=$_SESSION[course_id] ORDER BY $col $order";
 $result = mysql_query($sql, $db);
-
-
-?>
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
-<table class="data" summary="" rules="cols">
-<colgroup>
-       <?php if ($col == 'question'): ?>
-               <col />
-               <col class="sort" />
-               <col span="2" />
-       <?php elseif($col == 'created_date'): ?>
-               <col span="2" />
-               <col class="sort" />
-               <col />
-       <?php elseif($col == 'total'): ?>
-               <col span="3" />
-               <col class="sort" />
-       <?php endif; ?>
-</colgroup>
-<thead>
-<tr>
-       <th scope="col">&nbsp;</th>
-       <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $orders[$order]; ?>=question"><?php echo _AT('question'); ?></a></th>
-       <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $orders[$order]; ?>=created_date"><?php echo _AT('created'); ?></a></th>
-       <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $orders[$order]; ?>=total"><?php echo _AT('total_votes'); ?></a></th>
-</tr>
-</thead>
-<tfoot>
-<tr>
-       <td colspan="4">
-               <input type="submit" name="edit"   value="<?php echo _AT('edit'); ?>" />
-               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
-       </td>
-</tr>
-</tfoot>
-<tbody>
-<?php if ($row = mysql_fetch_assoc($result)) : ?>
-       <?php do { ?>
-               <tr onmousedown="document.form['p_<?php echo $row['poll_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['poll_id']; ?>">
-                       <td><input type="radio" id="p_<?php echo $row['poll_id']; ?>" name="poll" value="<?php echo $row['poll_id']; ?>" /></td>
-                       <td><label for="p_<?php echo $row['poll_id']; ?>"><?php echo AT_print($row['question'], 'polls.question'); ?></label></td>
-                       <td><?php echo AT_DATE(_AT("server_date_format"), $row['created_date']); ?></td>
-                       <td><?php echo $row['total']; ?></td>
-               </tr>
-       <?php } while($row = mysql_fetch_assoc($result)); ?>
-<?php else: ?>
-       <tr>
-               <td colspan="4"><?php echo _AT('none_found'); ?></td>
-       </tr>
-<?php endif; ?>
-</tbody>
-</table>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
+$savant->assign('col', $col);
+$savant->assign('order', $order);
+$savant->assign('orders', $orders);
+$savant->assign('result', $result);
+$savant->display('instructor/polls/index.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php');  ?>
\ No newline at end of file
index 966ce04..da274b8 100644 (file)
@@ -30,7 +30,7 @@ $this->_pages['mods/_standard/reading_list/index_instructor.php']['title_var'] =
 $this->_pages['mods/_standard/reading_list/index_instructor.php']['parent']   = 'tools/index.php';\r
 $this->_pages['mods/_standard/reading_list/index_instructor.php']['children'] = array('mods/_standard/reading_list/display_resources.php');\r
 $this->_pages['mods/_standard/reading_list/index_instructor.php']['guide'] = 'instructor/?p=reading_list.php';\r
-\r
+$this->_pages['mods/_standard/reading_list/index_instructor.php']['avail_in_mobile']   = false;\r
 \r
        $this->_pages['mods/_standard/reading_list/add_resource_url.php']['title_var'] = 'rl_add_resource_url';\r
        $this->_pages['mods/_standard/reading_list/add_resource_url.php']['parent']    = 'mods/_standard/reading_list/display_resources.php';\r
index bd9c940..ae4e418 100644 (file)
@@ -73,64 +73,15 @@ if (isset($_POST['cancel'])) {
 } \r
 \r
 $onload = 'document.form.title.focus();';\r
+$hidden_vars['new'] = '1';\r
+$hidden_vars['title'] = $_POST['title'];\r
+$hidden_vars['url'] = $_POST['url'];\r
 \r
+$msg->addConfirm('ADD_FEED', $hidden_vars);\r
 require (AT_INCLUDE_PATH.'header.inc.php');\r
 \r
-if (!isset($_POST['confirm'])) {\r
-?>\r
-       <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">\r
-               <input type="hidden" name="confirm" value="1" />\r
-\r
-               <div class="input-form" style="width: 95%x">\r
-                       <div class="row">\r
-                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />\r
-                               <input id="title" name="title" type="text" size="60" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_POST['title'])); ?>" /><br />\r
-                       </div>\r
-\r
-                       <div class="row">\r
-                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="url"><?php echo _AT('url'); ?></label><br />\r
-                               <input id="url" name="url" type="text" size="60" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_POST['url'])); ?>" /><br />\r
-                       </div>\r
-\r
-                       <div class="row buttons">\r
-                               <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" />\r
-                               <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />\r
-                       </div>\r
-               </div>\r
-       </form>\r
-<?php \r
-} else { ?>\r
-\r
-       <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-       <input type="hidden" name="new" value="<?php echo $_POST['new']; ?>" />\r
-\r
-       <div class="input-form">\r
-               <div class="row">\r
-                       <h3><?php if (file_exists($title_file)) { \r
-                                       readfile($title_file); \r
-                               } else {\r
-                                       echo $_POST['title'];\r
-                               }?>\r
-                       </h3>\r
-               </div>\r
-\r
-               <div class="row">\r
-                       <?php echo $output; ?>\r
-               </div>\r
-       </div>\r
-       </form>\r
-\r
-       <?php\r
-               $hidden_vars['new'] = '1';\r
-               $hidden_vars['title'] = $_POST['title'];\r
-               $hidden_vars['url'] = $_POST['url'];\r
-\r
-               $msg->addConfirm('ADD_FEED', $hidden_vars);\r
-               $msg->printConfirm();\r
-       ?>\r
-\r
-<?php \r
-}\r
-?>\r
-\r
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('msg', $msg);\r
+$savant->assign('output', $output);\r
+$savant->assign('title_file', $title_file);\r
+$savant->display('admin/system_preferences/add_feed.tmpl.php');\r
+require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 10e7b71..4630b1e 100644 (file)
@@ -78,26 +78,6 @@ if ($feed_id != '') {
 $onload = 'document.form.title.focus();';\r
 \r
 require (AT_INCLUDE_PATH.'header.inc.php');\r
-?>\r
-\r
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">\r
-       <input type="hidden" name="fid" value="<?php echo $feed_id; ?>" />\r
-       <div class="input-form" style="width:95%">\r
-               <div class="row">\r
-                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />\r
-                       <input id="title" name="title" type="text" size="60" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_GET['title'])); ?>" /><br />\r
-               </div>\r
-\r
-               <div class="row">\r
-                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="url"><?php echo _AT('url'); ?></label><br />\r
-                       <input id="url" name="url" type="text" size="60" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_GET['url'])); ?>" /><br />\r
-               </div>\r
-\r
-               <div class="row buttons">\r
-                       <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" />\r
-                       <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />\r
-               </div>\r
-       </div>\r
-</form>\r
-\r
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('feed_id', $feed_id);\r
+$savant->display('admin/system_preferences/edit_feed.tmpl.php');\r
+require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 743106d..8f9ca70 100644 (file)
@@ -32,51 +32,10 @@ if ((isset($_GET['preview']) || isset($_GET['edit']) || isset($_GET['delete']))
 }\r
 \r
 require (AT_INCLUDE_PATH.'header.inc.php');\r
-?>\r
 \r
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">\r
-\r
-<table class="data" summary="" rules="cols">\r
-<thead>\r
-<tr>\r
-       <th scope="col">&nbsp;</th>\r
-       <th scope="col"><?php echo _AT('title'); ?></th>\r
-       <th scope="col"><?php echo _AT('url'); ?></th>\r
-</tr>\r
-</thead>\r
-<tfoot>\r
-<tr>\r
-       <td colspan="3">\r
-               <input type="submit" name="preview" value="<?php echo _AT('preview'); ?>" />\r
-               <input type="submit" name="edit"    value="<?php echo _AT('edit'); ?>" />\r
-               <input type="submit" name="delete"  value="<?php echo _AT('delete'); ?>" />\r
-       </td>\r
-</tr>\r
-</tfoot>\r
-<tbody>\r
-<?php \r
 $sql   = "SELECT * FROM ".TABLE_PREFIX."feeds ORDER BY feed_id";\r
 $result = mysql_query($sql, $db);\r
 \r
-if (!($row = mysql_fetch_assoc($result))) { \r
-?>\r
-\r
-       <tr>\r
-               <td colspan="3"><?php echo _AT('none_found'); ?></td>\r
-       </tr>\r
-<?php } else { ?>\r
-       <?php do { \r
-               $title_file = AT_CONTENT_DIR.'feeds/'.$row['feed_id'].'_rss_title.cache'; ?>\r
-               <tr onmousedown="document.form['f_<?php echo $row['feed_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['feed_id']; ?>">\r
-                       <td valign="top"><input type="radio" id="f_<?php echo $row['feed_id']; ?>" name="fid" value="<?php echo $row['feed_id']; ?>" /></td>\r
-                       <td><label for="f_<?php echo $row['feed_id']; ?>"><?php if (file_exists($title_file)) { readfile($title_file); } ?></label></td>\r
-                       <td><?php echo $row['url']; ?></td>\r
-               </tr>\r
-       <?php } while ($row = mysql_fetch_assoc($result)); ?>\r
-\r
-<?php } ?>\r
-</tbody>\r
-</table>\r
-</form>\r
-\r
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('result', $result);\r
+$savant->display('admin/system_preferences/index.tmpl.php');\r
+require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index cd2b95c..17ef94f 100644 (file)
@@ -1,58 +1,41 @@
-<?php  \r
-/************************************************************************/\r
-/* ATutor                                                                                                                              */\r
-/************************************************************************/\r
-/* Copyright (c) 2002-2010                                              */\r
-/* Inclusive Design Institute                                           */\r
-/* http://atutor.ca                                                                                                            */\r
-/*                                                                                                                                             */\r
-/* This program is free software. You can redistribute it and/or        */\r
-/* modify it under the terms of the GNU General Public License          */\r
-/* as published by the Free Software Foundation.                        */\r
-/************************************************************************/\r
-// $Id$\r
-\r
-define('AT_INCLUDE_PATH', '../../../include/');\r
-require(AT_INCLUDE_PATH . 'vitals.inc.php');\r
-\r
-admin_authenticate(AT_ADMIN_PRIV_RSS);\r
-\r
-if (isset($_POST['back'])) {\r
-       header('Location: index.php');\r
-       exit;\r
-}\r
-\r
-require (AT_INCLUDE_PATH.'header.inc.php');\r
-\r
-$feed_id    = intval($_GET['fid']);\r
-$cache_file = AT_CONTENT_DIR.'feeds/'.$feed_id.'_rss.cache';\r
-$title_file = AT_CONTENT_DIR.'feeds/'.$feed_id.'_rss_title.cache';\r
-\r
-if (!file_exists($cache_file) || ((time() - filemtime($cache_file)) > 21600) ) {\r
-       make_cache_file($feed_id);\r
-}\r
-?>\r
-\r
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">\r
-\r
-<div class="input-form">\r
-       <div class="row">\r
-               <h3><?php if (file_exists($title_file)) { readfile($title_file); } ?></h3>\r
-       </div>\r
-\r
-       <div class="row">\r
-               <?php if (file_exists($cache_file) && filesize($cache_file) > 0) { \r
-                       readfile($cache_file); \r
-                       echo '<p><br /><small>'._AT('new_window').'</small></p>';\r
-               } else {\r
-                       echo _AT('no_content_avail');\r
-               }?>\r
-       </div>\r
-\r
-       <div class="row buttons">\r
-               <input type="submit" name="back" value="<?php echo _AT('back'); ?>" />\r
-       </div>\r
-</div>\r
-</form>\r
-\r
-<?php require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php  
+/************************************************************************/
+/* ATutor                                                                                                                              */
+/************************************************************************/
+/* Copyright (c) 2002-2010                                              */
+/* Inclusive Design Institute                                           */
+/* http://atutor.ca                                                                                                            */
+/*                                                                                                                                             */
+/* This program is free software. You can redistribute it and/or        */
+/* modify it under the terms of the GNU General Public License          */
+/* as published by the Free Software Foundation.                        */
+/************************************************************************/
+// $Id$
+
+define('AT_INCLUDE_PATH', '../../../include/');
+require(AT_INCLUDE_PATH . 'vitals.inc.php');
+
+admin_authenticate(AT_ADMIN_PRIV_RSS);
+
+if (isset($_POST['back'])) {
+       header('Location: index.php');
+       exit;
+}
+
+require (AT_INCLUDE_PATH.'header.inc.php');
+
+$feed_id    = intval($_GET['fid']);
+$cache_file = AT_CONTENT_DIR.'feeds/'.$feed_id.'_rss.cache';
+$title_file = AT_CONTENT_DIR.'feeds/'.$feed_id.'_rss_title.cache';
+
+if (!file_exists($cache_file) || ((time() - filemtime($cache_file)) > 21600) ) {
+       make_cache_file($feed_id);
+}
+?>
+
+
+<?php 
+$savant->assign('cache_file', $cache_file);
+$savant->assign('title_file', $title_file);
+$savant->display('admin/system_preferences/preview.tmpl.php');
+require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 52e393a..0846461 100644 (file)
@@ -30,21 +30,6 @@ if($_POST['save']){
 }\r
 \r
 require (AT_INCLUDE_PATH.'header.inc.php');\r
-?>\r
-\r
-<div style="width:95%;margin-left:auto;margin-right:auto;">\r
-       <div class="headingbox"><h3><?php echo _AT('admin_social'); ?></h3></a></div>\r
-       <div class="contentbox">\r
-       <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">\r
-               <p><?php echo _AT('shindig_blurb'); ?></p>\r
-\r
-                               <label for="shindig"><?php echo _AT('shindig_url'); ?></label>\r
-                               <input type="text" id="shindig" name="shindig_url" size="60" value="<?php echo $_config['shindig_url']; ?>" />\r
-\r
-               <input type="submit" name="save" value="<?php echo _AT('save'); ?>" />\r
-       </form>\r
-       </div>\r
-</div>\r
-<?php \r
 \r
+$savant->display('admin/system_preferences/index_admin.tmpl.php');\r
 require (AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 0a3de05..412f355 100644 (file)
@@ -101,104 +101,21 @@ $month = intval($_GET['month']);
 
 require(AT_INCLUDE_PATH.'header.inc.php');
 
-?>
-       <table cellspacing="1" cellpadding="1" border="0" class="bodyline" summary="" align="center">
-       <tr>
-               <th colspan="2" class="cyan"><small class="bigspacer"><?php
-                       echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.($last_month).SEP.'year='.$last_year.'">';
-                       echo ' '.AT_date('%F', $last_month, AT_DATE_INDEX_VALUE ); ?></a> |</small>
-                       <?php echo AT_date('%F', $month, AT_DATE_INDEX_VALUE ); ?> <small class="bigspacer">| <?php
-                       echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.$next_month.SEP.'year='.$next_year.'">';
-                       echo AT_date('%F', $next_month, AT_DATE_INDEX_VALUE); ?> </a></small></th>
-       </tr>
-<?php
-               if (($num_days == 0) || ($empty)) {
-                       echo '<tr>';
-                       echo '<td class="row1" colspan="2">'._AT('no_month_data').'</td>';
-                       echo '</tr>';
-                       echo '</table>';
-                       require(AT_INCLUDE_PATH.'footer.inc.php');
-                       exit;
-               }
-?>
-       <tr>
-               <td class="row1" valign="top" align="right"><strong><?php echo _AT('total'); ?>:</strong></td>
-               <td class="row1"><?php echo $total_logins; ?></td>
-       </tr>
-       <tr><td height="1" class="row2" colspan="2"></td></tr>
-       <tr>
-               <td class="row1" valign="top" align="right"><strong><?php echo _AT('maximum'); ?>:</strong></td>
-               <td class="row1"><?php echo $max_total_logins; ?></td>
-       </tr>
-       <tr><td height="1" class="row2" colspan="2"></td></tr>
-
-       <tr>
-               <td class="row1" valign="top" align="right"><strong><?php echo _AT('minimum'); ?>:</strong></td>
-               <td class="row1"><?php
-               if ($min_total_logins < 99999999) {
-                       echo $min_total_logins; 
-               } else {
-                       echo '0';
-               } ?></td>
-       </tr>
-       <tr><td height="1" class="row2" colspan="2"></td></tr>
-       <tr>
-               <td class="row1" valign="top" align="right"><strong><?php   echo _AT('average'); ?>:</strong></td>
-               <td class="row1"><?php echo number_format($avg_total_logins, 1); ?> <?php   echo _AT('per_day'); ?></td>
-       </tr>
-       <tr><td height="1" class="row2" colspan="2"></td></tr>
-
-       <tr>
-               <td class="row1" valign="top" align="right"><strong><?php   echo _AT('graph'); ?>:</strong></td>
-               <td class="row1">
-                       <table border="0" cellspacing="0" cellpadding="0">
-                       <tr>
-                               <td valign="top" class="graph1"><small><?php echo $max_total_logins; ?></small></td>
-
-<?php
-                       foreach ($days as $day => $logins) {
-                       $dd++;
-                               echo '<td valign="bottom" class="graph"><img src="images/clr.gif" height="'.(($max_total_logins*$multiplyer_height) % $block_height + $block_height).'" width="10" alt="" /><br /><img src="images/blue.gif" height="'.($logins[0]*$multiplyer_height).'" width="9" alt="'.$logins[0].' '._AT('guests').' ('.($logins[0]+$logins[1]).' '._AT('total').')" /><br /><img src="images/red.gif" height="'.($logins[1]*$multiplyer_height).'" width="9" alt="'.$logins[1].' '._AT('members').' ('.($logins[1]+$logins[0]).' '._AT('total').')" /><br /><small>'.$dd.'&nbsp;</small></td>';
-
-                       } while ($row = mysql_fetch_array($result));
-?>
-
-                       </tr>
-                       <tr>
-                               <td valign="top"><small>0</small></td>
-                       </tr>
-                       </table>
-
-                       <small><?php  echo _AT('legend'); ?>: <img src="images/red.gif" height="10" width="10" alt="<?php echo _AT('red_members'); ?>" /> <?php   echo _AT('members'); ?>,
-                               <img src="images/blue.gif" height="10" width="10" alt="<?php echo _AT('blue_guests'); ?>" /> <?php echo _AT('guests'); ?>.</small>
-               </td>
-       </tr>
-       <tr><td height="1" class="row2" colspan="2"></td></tr>
-       <tr>
-               <td class="row1" valign="top" align="right"><strong><?php echo _AT('raw_data'); ?>:</strong></td>
-               <td class="row1" align="center">
-       
-               <table class="data static" summary="" rules="cols">
-               <thead>
-               <tr>
-                       <th scope="col"><?php echo _AT('date');    ?></th>
-                       <th scope="col"><?php echo _AT('guests');  ?></th>
-                       <th scope="col"><?php echo _AT('members'); ?></th>
-               </tr>
-               </thead>
-               <tbody>
-               <?php $short_name = $month_name_con['en'][$month-1]; ?>
-               <?php foreach ($days as $day => $logins):?>
-                       <tr>
-                               <td><?php echo $short_name.' '.$day; ?></td>
-                               <td><?php echo $logins[0]; ?></td>
-                               <td><?php echo $logins[1]; ?></td>
-                       </tr>
-               <?php endforeach; ?>
-               <tbody>
-               </table>
-
-               </td>
-       </tr>
-       </table>
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('last_month', $last_month);
+$savant->assign('last_year', $last_year);
+$savant->assign('month', $month);
+$savant->assign('next_month', $next_month);
+$savant->assign('next_year', $next_year);
+$savant->assign('num_days', $num_days);
+$savant->assign('empty', $empty);
+$savant->assign('total_logins', $total_logins);
+$savant->assign('min_total_logins', $min_total_logins);
+$savant->assign('max_total_logins', $max_total_logins);
+$savant->assign('avg_total_logins', $avg_total_logins);
+$savant->assign('multiplyer_height', $multiplyer_height);
+$savant->assign('block_height', $block_height);
+$savant->assign('days', $days);
+$savant->assign('result', $result);
+$savant->assign('short_name', $short_name);
+$savant->display('instructor/statistics/course_stats.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 3605336..10526b2 100644 (file)
@@ -18,6 +18,7 @@ $_student_tool = 'mods/_standard/student_tools/index.php';
 $this->_pages['mods/_standard/student_tools/instructor_index.php']['title_var'] = 'student_tools';\r
 $this->_pages['mods/_standard/student_tools/instructor_index.php']['parent']    = 'tools/index.php';\r
 $this->_pages['mods/_standard/student_tools/instructor_index.php']['guide']     = 'instructor/?p=fha_student_tools.php';\r
+$this->_pages['mods/_standard/student_tools/instructor_index.php']['avail_in_mobile']   = false;\r
 $this->_pages['mods/_standard/student_tools/index.php']['title_var'] = 'student_tools';\r
 $this->_pages['mods/_standard/student_tools/index.php']['img']       = 'mods/_standard/student_tools/icon.gif';\r
 $this->_pages['mods/_standard/student_tools/index.php']['text']      = _AT('student_tools_text');\r
index ef82350..cc1b3f4 100644 (file)
@@ -47,28 +47,7 @@ if (isset($_POST['submit'])) {
 require(AT_INCLUDE_PATH.'header.inc.php');
 
 ?>
-<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="scaffolds">
-<div class="input-form">
- <fieldset class="group_form"> <legend class="group_form"><strong><?php echo _AT("support_tools"); ?></strong>  </legend>  
-       <div class="row">
-               <p><?php echo _AT('scaffold_text'); ?></p>
-       </div>
-       <div class="row">
 
-               <label for="encyclopedia"><?php echo _AT('encyclopedia'); ?></label><br /><input type="text" id="encyclopedia"  name="encyclopedia" value="<?php echo $_config['encyclopedia']; ?>"  size="60"/><br />
-               <label for="dictionary"><?php echo _AT('dictionary'); ?></label><br /><input type="text" id="dictionary"  name="dictionary" value="<?php echo $_config['dictionary']; ?>"  size="60"/><br />
-               <label for="thesaurus"><?php echo _AT('thesaurus'); ?></label><br /><input type="text" id="thesaurus"  name="thesaurus" value="<?php echo $_config['thesaurus']; ?>" size="60"/><br />
-               <label for="atlas"><?php echo _AT('atlas'); ?></label><br /><input type="text" id="atlas"  name="atlas" value="<?php echo $_config['atlas']; ?>"  size="60"/><br />
-               <label for="calculator"><?php echo _AT('calculator'); ?></label><br /><input type="text" id="calculator"  name="calculator" value="<?php echo $_config['calculator']; ?>"  size="60"/><br />
-               <label for=""><?php echo _AT('note_taking'); ?></label><br /><input type="text" id="note_taking"  name="note_taking" value="<?php echo $_config['note_taking']; ?>"  size="60"/>        <br />
-               <label for="abacas"><?php echo _AT('abacus'); ?></label><br /><input type="text" id="abacas"  name="abacas" value="<?php echo $_config['abacas']; ?>"  size="60"/><br />
-       </div>
-       <div class="buttons">
-               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
-               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />
-       </div>
-</fieldset>
-</div>
-</form>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php 
+$savant->display('admin/courses/scaffolds.tmpl.php');
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index d6d8400..b8a4705 100644 (file)
@@ -80,24 +80,8 @@ require (AT_INCLUDE_PATH.'header.inc.php');
             <p><?php echo _AT('tile_setup_txt');  ?></p>\r
         </div>\r
     </div>\r
-<form action="<?php  $_SERVER['PHP_SELF']; ?>" method="post" name="form">\r
-    <div class="input-form">\r
-        <div class="row">\r
-               <p><label for="uri"><?php echo _AT('transformable_uri'); ?></label></p>\r
-               <input type="text" name="transformable_uri" value="<?php echo $_config['transformable_uri']; ?>" id="uri" size="80" style="min-width: 95%;" />\r
-            \r
-                   <p><label for="key"><?php echo _AT('web_service_id'); ?></label></p>\r
-                   <input type="text" name="transformable_web_service_id" value="<?php echo $_config['transformable_web_service_id']; ?>" id="key" size="80" style="min-width: 95%;" />\r
-\r
-                   <p><label for="key"><?php echo _AT('oauth_expire'); ?></label></p>\r
-                   <input type="text" name="transformable_oauth_expire" value="<?php echo $_config['transformable_oauth_expire']; ?>" id="key" size="20" />&nbsp;<?php echo _AT('seconds'); ?><br />\r
-                      <small>&middot; <?php echo _AT('oauth_expire_note'); ?><br />\r
-        </div>\r
 \r
-        <div class="row buttons">\r
-            <input type="submit" name="submit" value="<?php echo _AT('save'); ?>"  />\r
-        </div>\r
-    </div>\r
-</form> \r
 \r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+<?php \r
+$savant->display('admin/system_preferences/module_setup.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 7be5e88..f4c491e 100644 (file)
@@ -59,71 +59,10 @@ $offset = ($page-1)*$results_per_page;
 /*create a table that lists all the content pages and the number of time they were viewed*/\r
 $sql = "SELECT content_id, COUNT(*) AS unique_hits, SUM(counter) AS total_hits, SEC_TO_TIME(SUM(duration)/SUM(counter)) AS average_duration, SEC_TO_TIME(SUM(duration)) AS total_duration FROM ".TABLE_PREFIX."member_track WHERE course_id=$_SESSION[course_id] GROUP BY content_id ORDER BY $col $order LIMIT $offset, $results_per_page";\r
 $result = mysql_query($sql, $db);\r
-\r
-?>\r
-<div class="toolcontainer">\r
-<div class="paging">\r
-       <ul>\r
-       <?php for ($i=1; $i<=$num_pages; $i++): ?>\r
-               <li>\r
-                       <?php if ($i == $page) : ?>\r
-                               <a class="current" href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$page_string; ?>"><strong><?php echo $i; ?></strong></a>\r
-                       <?php else: ?>\r
-                               <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$page_string; ?>"><?php echo $i; ?></a>\r
-                       <?php endif; ?>\r
-               </li>\r
-       <?php endfor; ?>\r
-       </ul>\r
-</div>\r
-\r
-<table class="data" rules="cols" summary="">\r
-<colgroup>\r
-       <?php if ($col == 'total_hits'): ?>\r
-               <col />\r
-               <col class="sort" />\r
-               <col span="4" />\r
-       <?php elseif($col == 'unique_hits'): ?>\r
-               <col span="2" />\r
-               <col class="sort" />\r
-               <col span="3" />\r
-       <?php elseif($col == 'average_duration'): ?>\r
-               <col span="3" />\r
-               <col class="sort" />\r
-               <col span="2" />\r
-       <?php elseif($col == 'total_duration'): ?>\r
-               <col span="4" />\r
-               <col class="sort" />\r
-               <col />\r
-       <?php endif; ?>\r
-</colgroup>\r
-<thead>\r
-<tr>\r
-       <th scope="col"><?php echo _AT('page'); ?></th>\r
-       <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=total_hits"><?php echo _AT('visits');             ?></a></th>\r
-       <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=unique_hits"><?php echo _AT('unique_visits');     ?></a></th>\r
-       <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=average_duration"><?php echo _AT('avg_duration'); ?></a></th>\r
-       <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=total_duration"><?php echo _AT('duration');       ?></a></th>\r
-       <th scope="col"><?php echo _AT('details');       ?></th>\r
-</tr>\r
-</thead>\r
-<tbody>\r
-<?php if ($row = mysql_fetch_assoc($result)): ?>\r
-       <?php do { ?>\r
-               <tr onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/page_student_stats.php?content_id=<?php echo $row['content_id']; ?>'" title="<?php echo _AT('details'); ?>">\r
-                       <td><?php echo $contentManager->_menu_info[$row['content_id']]['title']; ?></td>\r
-                       <td><?php echo $row['total_hits'];       ?></td>\r
-                       <td><?php echo $row['unique_hits'];      ?></td>\r
-                       <td><?php echo $row['average_duration']; ?></td>\r
-                       <td><?php echo $row['total_duration'];   ?></td>\r
-                       <td><a href="mods/_standard/tracker/tools/page_student_stats.php?content_id=<?php echo $row['content_id']; ?>"><?php echo _AT('details'); ?></a></td>\r
-               </tr>\r
-       <?php } while ($row = mysql_fetch_assoc($result)); ?>\r
-<?php else: ?>\r
-       <tr>\r
-               <td colspan="6"><?php echo _AT('none_found'); ?></td>\r
-       </tr>\r
-<?php endif; ?>\r
-</tbody>\r
-</table>\r
-</div>\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('result', $result);\r
+$savant->assign('col', $col);\r
+$savant->assign('page_string', $page_string);\r
+$savant->assign('page', $page);\r
+$savant->assign('num_pages', $num_pages);\r
+$savant->display('instructor/content/tracker/index.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 9abe4e4..0f6a347 100644 (file)
@@ -28,32 +28,6 @@ require(AT_INCLUDE_PATH.'header.inc.php');
 $sql = "SELECT counter, content_id, member_id, SEC_TO_TIME(duration) AS total, SEC_TO_TIME(duration/counter) AS average FROM ".TABLE_PREFIX."member_track WHERE course_id=$_SESSION[course_id] AND content_id=$content_id ORDER BY total DESC";\r
 $result = mysql_query($sql, $db);\r
 \r
-?>\r
-<table class="data" rules="cols" summary="">\r
-<thead>\r
-<tr>\r
-       <th scope="col"><?php echo _AT('login_name'); ?></th>\r
-       <th scope="col"><?php echo _AT('visits'); ?></th>\r
-       <th scope="col"><?php echo _AT('avg_duration'); ?></th>\r
-       <th scope="col"><?php echo _AT('duration'); ?></th>\r
-</tr>\r
-</thead>\r
-<tbody>\r
-<?php if ($row = mysql_fetch_assoc($result)) : ?>\r
-       <?php do { ?>\r
-       <tr onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/student_usage.php?id=<?php echo $row['member_id']; ?>'" title="<?php echo _AT('member_stats'); ?>">\r
-               <td><a href="<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/student_usage.php?id=<?php echo $row['member_id']; ?>"><?php echo get_display_name($row['member_id']); ?></a></td>\r
-               <td><?php echo $row['counter']; ?></td>\r
-               <td><?php echo $row['average']; ?></td>\r
-               <td><?php echo $row['total']; ?></td>\r
-       </tr>\r
-       <?php } while ($row = mysql_fetch_assoc($result)); ?>\r
-<?php else: ?>\r
-       <tr>\r
-               <td colspan="4"><?php echo _AT('none_found'); ?></td>\r
-       </tr>\r
-<?php endif; ?>\r
-</tbody>\r
-</table>\r
-\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$savant->assign('result', $result); \r
+$savant->display('instructor/content/page_student_stats.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 93b630d..aacb3fa 100644 (file)
@@ -25,60 +25,9 @@ $result = mysql_query($sql, $db);
 \r
 $_GET['id'] = intval($_GET['id']);\r
 \r
-?>\r
-<form name="form" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">\r
-<div class="input-form">\r
-       <div class="row">\r
-               <label for="id"><?php echo _AT('select_member'); ?></label><br />\r
-               <select name="id" id="id">\r
-                       <?php\r
-                               while ($row = mysql_fetch_assoc($result)) {\r
-                                       $sender = get_display_name($row['member_id']);\r
-                                       echo '<option value="'.$row['member_id'].'"';\r
-                                       if ($row['member_id'] == $_GET['id']) {\r
-                                               echo ' selected="selected"';\r
-                                       }\r
-                                       echo '>'.$sender.'</option>';\r
-                               }\r
-                       ?>\r
-               </select>\r
-       </div>\r
-\r
-       <div class="row buttons">\r
-               <input type="submit" name="submit" value="<?php echo _AT('view'); ?>" />\r
-       </div>\r
-</div>\r
-</form>\r
-\r
-<?php if ($_GET['id']) : ?>\r
-<?php\r
-       $sql = "SELECT counter, content_id, SEC_TO_TIME(duration) AS total FROM ".TABLE_PREFIX."member_track WHERE member_id=$_GET[id] AND course_id=$_SESSION[course_id] ORDER BY counter DESC";\r
-       $result = mysql_query($sql, $db);\r
-?>\r
-       <table class="data static" rules="cols" summary="">\r
-       <thead>\r
-       <tr>\r
-               <th scope="col"><?php echo _AT('page'); ?></th>\r
-               <th scope="col"><?php echo _AT('visits'); ?></th>\r
-               <th scope="col"><?php echo _AT('duration'); ?></th>\r
-       </tr>\r
-       </thead>\r
-       <tbody>\r
-       <?php if ($row = mysql_fetch_assoc($result)): ?>\r
-               <?php do { ?>\r
-                       <tr>\r
-                               <td><?php echo $contentManager->_menu_info[$row['content_id']]['title']; ?></td>\r
-                               <td><?php echo $row['counter']; ?></td>\r
-                               <td><?php echo $row['total']; ?></td>\r
-                       </tr>\r
-               <?php } while ($row = mysql_fetch_assoc($result)); ?>\r
-       <?php else: ?>\r
-               <tr>\r
-                       <td colspan="3"><?php echo _AT('none_found'); ?></td>\r
-               </tr>\r
-       <?php endif; ?>\r
-</tbody>\r
-</table>\r
-<?php endif; ?>\r
-\r
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+$sql = "SELECT counter, content_id, SEC_TO_TIME(duration) AS total FROM ".TABLE_PREFIX."member_track WHERE member_id=$_GET[id] AND course_id=$_SESSION[course_id] ORDER BY counter DESC";\r
+$result_list = mysql_query($sql, $db);\r
+$savant->assign('result_list', $result_list);\r
+$savant->assign('result', $result);\r
+$savant->display('instructor/content/tracker/student_usage.tmpl.php');\r
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 350dfca..247851d 100644 (file)
@@ -19,6 +19,6 @@ require(AT_INCLUDE_PATH . 'vitals.inc.php');
 require(AT_INCLUDE_PATH . 'lib/search.inc.php');
 $onload = 'document.form.keywords.focus();';
 require(AT_INCLUDE_PATH . 'header.inc.php');
-require(AT_INCLUDE_PATH . 'html/search.inc.php');
+$savant->display('search.tmpl.php');
 require(AT_INCLUDE_PATH . 'footer.inc.php');
 ?>
\ No newline at end of file
diff --git a/docs/themes/default/about.tmpl.php b/docs/themes/default/about.tmpl.php
new file mode 100644 (file)
index 0000000..6af1bb3
--- /dev/null
@@ -0,0 +1,4 @@
+
+<p><?php echo _AT('atutor_is');  ?></p>
+
+<?php echo _AT('atutor_links');  ?>
diff --git a/docs/themes/default/admin/courses/auto_enroll.tmpl.php b/docs/themes/default/admin/courses/auto_enroll.tmpl.php
new file mode 100644 (file)
index 0000000..32f95c0
--- /dev/null
@@ -0,0 +1 @@
+hi
\ No newline at end of file
diff --git a/docs/themes/default/admin/courses/course_categories.tmpl.php b/docs/themes/default/admin/courses/course_categories.tmpl.php
new file mode 100644 (file)
index 0000000..53f0cf3
--- /dev/null
@@ -0,0 +1,53 @@
+<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<table summary="" class="data" rules="cols" align="center" style="width: 95%;">
+
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('name'); ?></th>
+       <th scope="col"><?php echo _AT('parent'); ?></th>
+<?php if (defined('AT_ENABLE_CATEGORY_THEMES') && AT_ENABLE_CATEGORY_THEMES) : ?>
+       <th scope="col"><?php echo _AT('theme'); ?></th>
+<?php endif; ?>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="4">
+               <div class="row buttons">
+               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /> 
+               </div>
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php
+
+if ($row = mysql_fetch_assoc($this->result)): ?>
+       <?php
+       do {
+               $parent_cat_name = '';
+               if ($row['cat_parent']) {
+                       // won't work
+                       $parent_cat_name = $this->row_cat['cat_name'];
+               } 
+       ?>
+               <tr onmousedown="document.form['m<?php echo $row['cat_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['cat_id']; ?>">
+                       <td width="10"><input type="radio" name="cat_id" value="<?php echo $row['cat_id']; ?>" id="m<?php echo $row['cat_id']; ?>" /></td>
+                       <td><label for="m<?php echo $row['cat_id']; ?>"><?php echo AT_print($row['cat_name'], 'course_cats.cat_name'); ?></label></td>
+                               <td><?php echo AT_print($parent_cat_name, 'course_cats.cat_name'); ?></td>
+                       <?php if (defined('AT_ENABLE_CATEGORY_THEMES') && AT_ENABLE_CATEGORY_THEMES) : ?>
+                               <td><?php echo AT_print(get_theme_name($row['theme']), 'themes.title'); ?></td>
+                       <?php endif; ?>
+
+               </tr>
+       <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="3"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/courses/courses.tmpl.php b/docs/themes/default/admin/courses/courses.tmpl.php
new file mode 100644 (file)
index 0000000..176a983
--- /dev/null
@@ -0,0 +1,101 @@
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               <div class="row">
+                       <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+               </div>
+
+               <div class="row">
+                       <?php echo _AT('access'); ?><br />
+
+                       <input type="radio" name="access" value="0" id="s0" <?php if ($_GET['access'] == 0) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('public'); ?></label> 
+
+                       <input type="radio" name="access" value="1" id="s1" <?php if ($_GET['access'] == 1) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('protected'); ?></label> 
+
+                       <input type="radio" name="access" value="2" id="s2" <?php if ($_GET['access'] == 2) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('private'); ?></label>
+
+                       <input type="radio" name="access" value="" id="s" <?php if ($_GET['access'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
+               </div>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('title').', '._AT('description'); ?>)</label><br />
+                       <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+</form>
+
+<?php print_paginator($this->page, $this->num_results, $this->page_string . SEP . $this->order .'='. $col, $this->results_per_page); ?>
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+
+<table class="data" summary="List of courses by title, instructor, access, category, creation date, enrollment, and alumni." rules="cols">
+<colgroup>
+       <?php if ($col == 'title'): ?>
+               <col />
+               <col class="sort" />
+               <col span="6" />
+       <?php elseif($col == 'login'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="5" />
+       <?php elseif($col == 'access'): ?>
+               <col span="3" />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($col == 'created_date'): ?>
+               <col span="4" />
+               <col class="sort" />
+               <col span="3" />
+       <?php elseif($col == 'cat_name'): ?>
+               <col span="5" />
+               <col class="sort" />
+               <col span="2" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=title<?php echo $page_string; ?>"><?php echo _AT('title');               ?></a></th>
+       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('Instructor');          ?></a></th>
+       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=access<?php echo $page_string; ?>"><?php echo _AT('access');             ?></a></th>
+       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=created_date<?php echo $page_string; ?>"><?php echo _AT('created_date'); ?></a></th>
+       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=cat_name<?php echo $page_string; ?>"><?php echo _AT('category'); ?></a></th>
+       <th scope="col"><?php echo _AT('enrolled'); ?></th>
+       <th scope="col"><?php echo _AT('alumni'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="8"><input type="submit" name="view" value="<?php echo _AT('view'); ?>" /> 
+                                       <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+                                       <input type="submit" name="backups" value="<?php echo _AT('backups'); ?>" /> 
+                                       <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($this->num_rows): ?>
+       <?php while ($row = mysql_fetch_assoc($this->result)): ?>
+               <tr onkeydown="document.form['m<?php echo $row['course_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['m<?php echo $row['course_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['course_id']; ?>">
+                       <td><input type="radio" name="id" value="<?php echo $row['course_id']; ?>" id="m<?php echo $row['course_id']; ?>" /></td>
+                       <td><label for="m<?php echo $row['course_id']; ?>"><?php echo AT_print($row['title'], 'courses.title'); ?></label></td>
+                       <td><?php echo AT_print($row['login'],'members.login'); ?></td>
+                       <td><?php echo _AT($row['access']); ?></td>
+                       <td><?php echo AT_date($startend_date_long_format, $row['created_date'], AT_DATE_UNIX_TIMESTAMP); ?></td>
+                       <td><?php echo ($row['cat_name'] ? $row['cat_name'] : '-')?></td>
+                       <td><?php echo ($this->enrolled[$row['course_id']]['y'] ? $this->enrolled[$row['course_id']]['y'] : 0); ?></td>
+                       <td><?php echo ($this->enrolled[$row['course_id']]['a'] ? $this->enrolled[$row['course_id']]['a'] : 0); ?></td>
+               </tr>
+       <?php endwhile; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="8"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/courses/create_course.tmpl.php b/docs/themes/default/admin/courses/create_course.tmpl.php
new file mode 100644 (file)
index 0000000..77ddc03
--- /dev/null
@@ -0,0 +1,447 @@
+
+<?php global $languageManager,  $_config, $MaxCourseSize, $MaxFileSize;
+
+?>
+<form method="post" action="<?php echo $_SERVER['PHP_SELF'];  ?>" name="course_form" enctype="multipart/form-data">
+       <input type="hidden" name="form_course" value="true" />
+       <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_config['prof_pic_max_file_size']; ?>" />
+       <input type="hidden" name="course" value="<?php echo $this->course; ?>" />
+       <input type="hidden" name="old_access" value="<?php echo $this->row['access']; ?>" />
+       <input type="hidden" name="created_date" value="<?php echo $this->row['created_date']; ?>" />
+       <input type="hidden" name="show_courses" value="<?php echo $_GET['show_courses']; ?>" />
+       <input type="hidden" name="current_cat" value="<?php echo $_GET['current_cat']; ?>" />
+       <input type="submit" name="submit" style="display:none;"/>
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('properties'); ?></legend>
+<?php if ($this->isadmin): ?>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="inst"><?php echo  _AT('instructor'); ?></label><br />
+                       <?php 
+               
+                       if ($instructor_row = mysql_fetch_assoc($this->result)) {
+                               echo '<select name="instructor" id="inst">';
+                               do {
+                                       if ($instructor_row['member_id'] == $this->row['member_id']) {
+                                               echo '<option value="'.$instructor_row['member_id'].'" selected="selected">'.$instructor_row['login'].'</option>';
+                                       } else {
+                                               echo '<option value="'.$instructor_row['member_id'].'">'.$instructor_row['login'].'</option>';
+                                       }
+                               } while($instructor_row = mysql_fetch_assoc($this->result));
+                               echo '</select>';
+                       } else {
+                               echo '<span id="inst">'._AT('none_found').'</span>';
+                       }
+                       ?>
+       </div>
+<?php endif; ?>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" id="title" name="title" size="40" value="<?php echo htmlspecialchars($this->row['title']); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="pri_lang"><?php  echo _AT('primary_language'); ?></label><br />
+               <?php $languageManager->printDropdown($this->row['primary_language'], 'pri_lang', 'pri_lang'); ?>
+       </div>
+
+       <div class="row">
+               <label for="description"><?php echo _AT('description'); ?></label><br />
+               <textarea id="description" cols="45" rows="2" name="description"><?php echo $this->row['description']; ?></textarea>
+       </div>
+
+       <?php if ($_config['course_dir_name']): ?>
+       <div class="row">
+               <label for="course_dir_name"><?php echo _AT('course_dir_name'); ?></label><br />
+               <input type="text" id="course_dir_name" name="course_dir_name" size="40" value="<?php echo htmlspecialchars($this->row['course_dir_name']); ?>" />
+       </div>
+       <?php endif; ?>
+
+       <?php $categories = get_categories(); ?>
+       <?php if (is_array($categories)): ?>
+               <div class="row">
+               <label for="cat"><?php echo _AT('category'); ?></label><br />
+                       <select name="category_parent" id="cat">
+                               <option value="0">&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;<?php echo _AT('cats_uncategorized'); ?>&nbsp;&nbsp;]&nbsp;&nbsp;&nbsp;</option>
+                               <?php select_categories($categories, 0, $this->row['cat_id'], false); ?>
+
+                       </select>
+               </div>
+       <?php endif; ?>
+
+       <div class="row">
+               <?php  echo _AT('export_content'); ?><br />
+               <?php
+                       switch ($this->row['content_packaging']) {
+                               case 'none':
+                                               $none = ' checked="checked"';
+                                               break;
+
+                               case 'top':
+                                               $top     = ' checked="checked"';
+                                               break;
+
+                               case 'all':
+                                               $all    = ' checked="checked"';
+                                               break;
+                       }
+                       ?>
+               <label><input type="radio" name="content_packaging" value="none" id="none" <?php echo $none; ?> /><?php echo _AT('content_packaging_none'); ?></label><br />
+               <label><input type="radio" name="content_packaging" value="top" id="ctop"  <?php echo $top; ?> /><?php  echo _AT('content_packaging_top'); ?></label><br />
+               <label><input type="radio" name="content_packaging" value="all" id="all" <?php echo $all; ?> /><?php  echo _AT('content_packaging_all'); ?></label>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('syndicate_announcements'); ?><br />
+               <?php
+                               $rss_no = $rss_yes = '';
+
+                               if ($this->row['rss']) {
+                                       $rss_yes = ' checked="checked"';
+                               } else {
+                                       $rss_no = ' checked="checked"';
+                               }
+               ?>
+               <label><input type="radio" name="rss" value="1" id="rss_y" <?php echo $rss_yes; ?> /><?php echo _AT('enable_syndicate'); ?></label><br />
+               <label><input type="radio" name="rss" value="0" id="rss_n"  <?php echo $rss_no; ?> /><?php  echo _AT('disable_syndicate'); ?></label>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('access'); ?><br />
+               <?php
+                               switch ($this->row['access']) {
+                                       case 'public':
+                                                       $pub = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'protected':
+                                                       $prot    = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'private':
+                                                       $priv   = ' checked="checked"';
+                                                       break;
+                               }
+
+                               if ($this->row['notify']) {
+                                       $notify = ' checked="checked"';
+                               }
+
+                               if ($this->row['hide']) {
+                                       $hide = ' checked="checked"';
+                               }
+               ?>
+               <input type="radio" name="access" value="public" id="pub" onclick="disableNotify();" <?php echo $pub; ?> /><label for="pub"><strong> <?php echo  _AT('public'); ?>: </strong></label><?php echo  _AT('about_public'); ?><br /><br />
+
+               <input type="radio" name="access" value="protected" id="prot" onclick="disableNotify();" <?php echo $prot; ?> /><label for="prot"><strong><?php echo  _AT('protected'); ?>:</strong></label> <?php echo _AT('about_protected'); ?><br /><br />
+
+               <input type="radio" name="access" value="private" id="priv" onclick="enableNotify();" <?php echo $priv; ?> /><label for="priv"><strong><?php echo  _AT('private'); ?>:</strong></label> <?php echo  _AT('about_private'); ?><br />
+               <input type="checkbox" name="notify" id="notify" value="1" <?php
+                       echo $disable;
+                       echo $notify; ?> /><label for="notify"><?php echo  _AT('email_approvals'); ?></label>
+               <br />
+               <input type="checkbox" name="hide" id="hide" value="1" <?php
+               echo $disable;
+               echo $hide; ?> /><label for="hide"><?php echo  _AT('hide_course'); ?></label>.
+       </div>
+
+       <div class="row">
+               <?php echo _AT('release_date'); ?><br />
+               <?php
+                       $rel_no = $rel_yes = '';
+
+                       if (intval($this->row['release_date'])) {
+                               $rel_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['release_date'], 8, 2);
+                               $today_mon   = substr($this->row['release_date'], 5, 2);
+                               $today_year  = substr($this->row['release_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['release_date'], 11, 2);
+                               $today_min   = substr($this->row['release_date'], 14, 2);
+                       } else {
+                               $rel_no = ' checked="checked"'; 
+                               $today_year  = date('Y');
+                       }
+
+               ?>
+
+               <input type="radio" name="release_date" value="0" id="release_now" <?php echo $rel_no; ?> /> <label for="release_now"><?php echo _AT('available_immediately'); ?></label><br />
+
+
+               <input type="radio" name="release_date" value="1" id="release_later" <?php echo $rel_yes; ?> /> <label for="release_later"><?php echo _AT('release_on'); ?></label> 
+               <?php
+                       $name = '_release';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('end_date'); ?><br />
+               <?php
+                       $end_no = $end_yes = '';
+
+                       if (intval($this->row['end_date'])) {
+                               $end_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['end_date'], 8, 2);
+                               $today_mon   = substr($this->row['end_date'], 5, 2);
+                               $today_year  = substr($this->row['end_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['end_date'], 11, 2);
+                               $today_min   = substr($this->row['end_date'], 14, 2);
+                       } else {
+                               $end_no = ' checked="checked"'; 
+                               $today_year  = date('Y')+1;
+                       }
+
+               ?>
+
+               <input type="radio" name="end_date" value="0" id="end_now" <?php echo $end_no; ?> /> <label for="end_now"><?php echo _AT('no_end_date'); ?></label><br />
+
+               <input type="radio" name="end_date" value="1" id="end_later" <?php echo $end_yes; ?> /> <label for="end_later"><?php echo _AT('end_on'); ?></label> 
+               <?php
+                       $name = '_end';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+       </div>
+
+       <div class="row">
+               <?php
+                       if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
+                               echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
+                               echo '<input type="submit" name="settext" value="'._AT('switch_text').'"  class="button"/>';
+                       } else {
+                               echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'" class="button"/>';
+                       }
+               ?>
+       </div>
+       <div class="row">
+
+               <label for="banner"><?php echo _AT('banner'); ?></label><br />
+               <textarea id="banner" cols="45" rows="15" name="banner"><?php echo $this->row['banner']; ?></textarea>
+       </div>
+
+<?php if (!$this->course) : ?>
+       <div class="row">
+               <label for="initial_content"><?php echo _AT('initial_content'); ?></label><br />
+               <select name="initial_content" id="initial_content" size="5">
+                       <option value="0"><?php echo _AT('empty'); ?></option>
+                       <option value="1" selected="selected"><?php echo _AT('create_basic'); ?></option>
+               <?php 
+                       $Backup = new Backup($db);
+
+                       if ($isadmin) {
+                               $sql    = "SELECT course_id, title FROM ".TABLE_PREFIX."courses ORDER BY title";
+                       } else {
+                               $sql    = "SELECT course_id, title FROM ".TABLE_PREFIX."courses WHERE member_id=$_SESSION[member_id] ORDER BY title";
+                       }
+
+                       $result = mysql_query($sql, $db);
+
+                       if ($course_row = mysql_fetch_assoc($result)) {
+                               do {
+                                       $Backup->setCourseID($course_row['course_id']);
+                                       $list = $Backup->getAvailableList();
+
+                                       if (!empty($list)) { 
+                                               echo '<optgroup label="'. _AT('restore').': '.$course_row['title'].'">';
+                                               foreach ($list as $list_item) {
+                                                       echo '<option value="'.$list_item['backup_id'].'_'.$list_item['course_id'].'">'.$list_item['file_name'].' - '.get_human_size($list_item['file_size']).'</option>';
+                                               }
+                                               echo '</optgroup>';
+                                       }
+                               } while ($course_row = mysql_fetch_assoc($result));
+                       }
+                       ?>
+                       </select>
+       </div>
+<?php endif; // !$course_id ?>
+
+<?php if ($this->isadmin) : ?>
+       <div class="row">
+               <?php  echo _AT('course_quota'); ?><br />
+               <?php 
+                       if ($this->row['max_quota'] == AT_COURSESIZE_UNLIMITED) { 
+                               $c_unlim = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_quota'] == AT_COURSESIZE_DEFAULT) {
+                               $c_def = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $c_oth = ' checked="checked" ';
+                               $c_oth2 = '';
+                       }
+
+                       if ($this->course > 0) {
+                               $course_size = dirsize(AT_CONTENT_DIR . $this->course.'/');
+                       } else {
+                               $course_size = 0;
+                       }
+
+                       if ($this->course) {
+                               echo _AT('current_course_size') .': '.get_human_size($course_size).'<br />'; 
+                       }
+               ?>
+
+               <input type="radio" id="c_default" name="quota" value="<?php echo AT_COURSESIZE_DEFAULT; ?>" onclick="disableOther();" <?php echo $c_def;?> /><label for="c_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxCourseSize).')'; ?></label> <br />
+               <input type="radio" id="c_unlim" name="quota" value="<?php echo AT_COURSESIZE_UNLIMITED; ?>" onclick="disableOther();" <?php echo $c_unlim;?>/><label for="c_unlim"> <?php echo _AT('unlimited'); ?></label> <br />
+               <input type="radio" id="c_other" name="quota" value="2" onclick="enableOther();" <?php echo $c_oth;?>/><label for="c_other"> <?php echo _AT('other'); ?> </label> - 
+               <input type="text" id="quota_entered" name="quota_entered" <?php echo $c_oth2?> value="<?php if ($this->row['max_quota']!=AT_COURSESIZE_UNLIMITED && $this->row['max_quota']!=AT_COURSESIZE_DEFAULT) { echo bytes_to_megabytes($this->row['max_quota']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+       <div class="row">
+               <?php  echo _AT('max_file_size'); ?><br />
+               <?php 
+                       $max_allowed = megabytes_to_bytes(substr(ini_get('upload_max_filesize'), 0, -1));
+
+                       if ($this->row['max_file_size'] == AT_FILESIZE_DEFAULT) { 
+                               $f_def = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_file_size'] == AT_FILESIZE_SYSTEM_MAX) {
+                               $f_max = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $f_oth = ' checked="checked" ';
+                               $f_oth2 = '';
+                       }
+               ?>
+               <input type="radio" id="f_default" name="filesize" value="<?php echo AT_FILESIZE_DEFAULT; ?>" onclick="disableOther2();" <?php echo $f_def;?> /><label for="f_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxFileSize).')'; ?></label> <br />
+               <input type="radio" id="f_maxallowed" name="filesize" value="<?php echo AT_FILESIZE_SYSTEM_MAX; ?>" onclick="disableOther2();" <?php echo $f_max;?>/><label for="f_maxallowed"> <?php echo _AT('max_file_size_system') . ' ('.get_human_size($max_allowed).')'; ?></label> <br />
+               <input type="radio" id="f_other" name="filesize" value="2" onclick="enableOther2();" <?php echo $f_oth;?>/><label for="f_other"> <?php echo _AT('other'); ?> </label> - 
+               <input type="text" id="filesize_entered" name="filesize_entered" <?php echo $f_oth2?> value="<?php if ($this->row['max_file_size']!=AT_FILESIZE_DEFAULT && $this->row['max_file_size']!=AT_FILESIZE_SYSTEM_MAX) { echo bytes_to_megabytes($this->row['max_file_size']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+<?php else: ?>
+       <input type="hidden" name="quota" value="<?php echo $this->row['max_quota']; ?>" />
+       <input type="hidden" name="filesize" value="<?php echo $this->row['max_file_size']; ?>" />
+       <input type="hidden" name="tracking" value="<?php echo $this->row['tracking']; ?>" />
+<?php endif; ?>
+
+       <div class="row">
+               <label for="copyright"><?php echo _AT('course_copyright'); ?></label><br />
+               <textarea name="copyright" rows="2" cols="65" id="copyright"><?php echo $this->row['copyright']; ?></textarea>
+       </div>
+       <div class="row">
+               <?php 
+            if ($this->row['icon'] != ''): 
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                if (file_exists($path.$this->row['icon'])) {
+                    if (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) {
+                        $custom_icon_path = 'get_course_icon.php/?id='.$this->row['course_id'];
+                    } else {
+                        $_base_href = 'content/' . $this->row['course_id'] . '/';
+                    }
+                } else {
+                    $_base_href = "images/courses/";   //$_base_href = 'get_course_icon.php/?id='.$row['course_id'];
+                }
+
+            $force_get = (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) ? true : false;
+            echo "<input type='hidden' name='boolForce' id='boolForce' value='$force_get' />";
+        
+       //include(AT_INCLUDE_PATH.'html/course_icon.inc.php');        
+        ?>
+               <img id="i0" src="<?php echo ($custom_icon_path=='')?$_base_href.$this->row['icon']:$custom_icon_path; ?>" alt="<?php echo $this->row['icon']; ?>" border="1" height="79" width="79"  style="float: left; margin: 2px;" />
+
+               <?php else: ?>
+                       <img id="i0" src="images/clr.gif" alt="" style="float: left; margin: 2px;" border="1" height="79" width="79"  />
+                       <input type='hidden' name='boolForce' id='boolForce' value='' />
+               <?php endif; ?>
+               <div style="width:40%; float:left;">
+               <label for="icons"><?php echo _AT('icon'); ?></label><br />
+               <select name="icon" id="icons" onchange="SelectImg()">
+                       <option value=""><?php echo _AT('no_icon'); ?></option>
+            <?php // ------------- custom course icons
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                $boolCustom = false;
+                $optCount = 0;
+
+                if (is_dir($path)) {
+                    $boolCustom = true;  // true if custom icons are uploaded, otherwise false
+                    
+                    /*$files = scandir($path);  //SCANDIR STOPS ATUTOR WHEN RUN AS INSTRUCTOR, BUT NOT AS ADMIN. WHY? -Gorzan */
+                    
+                    /* PHP 4 REPLACEMENT FOR SCANDIR */
+                                       $dh  = opendir($path);
+                                       while (false !== ($filename = readdir($dh))) {
+                                               $files[] = $filename;
+                                       }
+
+                                       /*END PHP 4 REPLACEMENT FOR SCANDIR*/
+                    echo "<optgroup label='"._AT('custom_icons')."'>";
+                    foreach($files as $val) {
+                                               $file_ext = substr(strtolower($val), -3);
+                        if ($file_ext == "jpg" || $file_ext == "png" || $file_ext == "gif") {
+                            $optCount++;
+                            echo "<option value='".$val."'";
+                            if ($val == $this->row['icon']) {
+                                echo 'selected="selected"';
+                            }
+                            echo ">".$val."</option>";
+                        }
+                    }
+                    echo "</optgroup>";
+                }
+                
+            ?>
+                       <?php // ------------- other icons
+
+                               $course_imgs = array();
+                               if ($dir = opendir(AT_INCLUDE_PATH.'../images/courses/')) {
+                                       while (false !== ($file = readdir($dir)) ) {
+                                               if( ($file == '.') || ($file == '..')) { 
+                                                       continue;
+                                               }
+                                               $course_imgs[] = $file;
+                                       }               
+                                       closedir($dir); 
+                               }
+                               sort($course_imgs);
+                if ($boolCustom == true) {
+                    echo "<optgroup label='"._AT('builtin_icons')."'>";
+                }
+                               foreach ($course_imgs as $file) {
+                                       echo '<option value="' . $file . '" ';
+                                       if ($file == $this->row['icon']) { 
+                                               echo 'selected="selected"'; 
+                                       }
+                                       echo ' >' . $file . '</option>';        
+                               }
+                if ($boolCustom == true) {
+                    echo "</optgroup>";
+                }
+                       ?>
+               </select><?php echo "&nbsp;&nbsp;&nbsp; "._AT('or'); ?>
+       </div>
+            <!-- div class="row" style="float:right;width:40%;">
+            <?php echo _AT('upload_icon'); ?><br />
+                <input type="file" name="customicon" id="customicon" value="<?php echo $_POST['customicon']; ?>"/><br />
+                <small><?php echo _AT('upload_icon_text'); ?></small>
+            </div -->
+
+        <?php  require_once(AT_INCLUDE_PATH.'../mods/_core/courses/html/course_icon.inc.php'); ?>
+
+        <br style="clear: left;" />
+
+       </div>
+
+    <div style="clear: both;"></div>
+
+    
+
+       <div class="buttons">
+               <?php
+            echo "<input type='hidden' name='custOptCount' id='custOptCount' value='".$optCount."' />";
+            echo "<input type='hidden' name='courseId' id='courseId' value='".$this->row['course_id']."' />";
+               ?>
+
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel');?>" />
+       </div>
+    </fieldset>
+</div>
+
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/courses/default_mods.tmpl.php b/docs/themes/default/admin/courses/default_mods.tmpl.php
new file mode 100644 (file)
index 0000000..c4089c8
--- /dev/null
@@ -0,0 +1,67 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<table class="data static" rules="rows" summary="Table of default course tools">
+<thead>
+<tr>
+       <th scope="cols"><?php echo _AT('section'); ?></th>
+       <th><?php echo _AT('location'); ?></th>
+       <th><?php echo _AT('order'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="3" style="text-align:right;">              
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s"  />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />     
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php 
+
+
+foreach ($this->current_modules as $tool) :
+       $count++; 
+?>
+       <tr>
+               <td><?php 
+               if (isset($this->pages[$tool]['title'])) {
+                       echo $this->pages[$tool]['title'];
+               } else {
+                       echo _AT($this->pages[$tool]['title_var']);
+               } ?></td>
+               <td align="center">
+                       <?php if (in_array($tool, $this->main_defaults)): ?>
+                               <input type="checkbox" name="main[]" value="<?php echo $tool; ?>" id="m<?php echo $tool; ?>" checked="checked" /><label for="m<?php echo $tool; ?>"><?php echo _AT('main_navigation'); ?></label>
+                       <?php else: ?>
+                               <input type="checkbox" name="main[]" value="<?php echo $tool; ?>" id="m<?php echo $tool; ?>" /><label for="m<?php echo $tool; ?>"><?php echo _AT('main_navigation'); ?></label>
+                       <?php endif; ?>
+
+                       <?php if (in_array($tool, $this->home_defaults)): ?>
+                               <input type="checkbox" name="home[]" value="<?php echo $tool; ?>" id="h<?php echo $tool; ?>" checked="checked" /><label for="h<?php echo $tool; ?>"><?php echo _AT('home'); ?></label>
+                       <?php else: ?>
+                               <input type="checkbox" name="home[]" value="<?php echo $tool; ?>" id="h<?php echo $tool; ?>" /><label for="h<?php echo $tool; ?>"><?php echo _AT('home'); ?></label>
+                       <?php endif; ?>
+               </td>
+               <td align="right">
+                       <?php if (!in_array($tool, $this->home_defaults) && !in_array($tool, $this->main_defaults)): ?>
+                               &nbsp;
+                       <?php else: ?>
+                               <?php if (($count != $this->num_main+1) && ($count > 1)): ?>
+                                       <input type="submit" name="up[<?php echo $tool; ?>]" value="<?php echo _AT('move_up'); ?>" title="<?php echo _AT('move_up'); ?>" style="background-color: white; border: 1px solid; padding: 0px;" />
+                               <?php else: ?>
+                                       <img src="images/clr.gif" alt="" width="12" />
+                               <?php endif; ?>
+                               <?php if (($count != $this->num_main) && ($count < $this->num_modules)): ?>
+                                       <input type="submit" name="down[<?php echo $tool; ?>]" value="<?php echo _AT('move_down'); ?>" title="<?php echo _AT('move_down'); ?>" style="background-color: white; border: 1px solid; padding: 0px;"/>
+                               <?php else: ?>
+                                       <img src="images/clr.gif" alt="" width="12" />
+                               <?php endif; ?>
+                       <?php endif; ?>
+               </td>
+       </tr>
+<?php 
+endforeach; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/courses/default_side.tmpl.php b/docs/themes/default/admin/courses/default_side.tmpl.php
new file mode 100644 (file)
index 0000000..6505e13
--- /dev/null
@@ -0,0 +1,38 @@
+<?php 
+global $_stacks;
+?>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="prefs">
+<div class="input-form" style="width:95%">
+       <div class="row">
+               <p><?php echo _AT('side_menu_text'); ?></p>
+       </div>
+
+       <div class="row">
+               <?php
+                       for ($i=0; $i<$this->num_stack; $i++) {                         
+                               echo '<select name="stack['.$i.']">';
+                               echo '<option value=""></option>';
+                               foreach ($_stacks as $name=>$info) {
+                                       if (isset($info['title'])) {
+                                               $title = $info['title'];
+                                       } else {
+                                               $title = _AT($info['title_var']);
+                                       }
+                                       echo '<option value="'.$name.'"';
+                                       if (isset($this->side_menu[$i]) && ($name == $this->side_menu[$i])) {
+                                               echo ' selected="selected"';
+                                       }
+                                       echo '>'.$title.'</option>';
+                               }
+                               echo '</select>';
+                               echo '<br />'; 
+                       } ?>
+       </div>
+
+       <div class="buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/courses/edit_course.tmpl.php b/docs/themes/default/admin/courses/edit_course.tmpl.php
new file mode 100644 (file)
index 0000000..7b067e1
--- /dev/null
@@ -0,0 +1,442 @@
+
+<?php 
+global $languageManager,  $_config, $MaxCourseSize, $MaxFileSize;
+
+?>
+<?php //echo _AT('available_immediately'); ?>
+<form method="post" action="<?php echo $_SERVER['PHP_SELF'];  ?>" name="course_form" enctype="multipart/form-data">
+       <input type="hidden" name="form_course" value="true" />
+       <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_config['prof_pic_max_file_size']; ?>" />
+       <input type="hidden" name="course" value="<?php echo $this->course; ?>" />
+       <input type="hidden" name="old_access" value="<?php echo $this->row['access']; ?>" />
+       <input type="hidden" name="created_date" value="<?php echo $this->row['created_date']; ?>" />
+       <input type="hidden" name="show_courses" value="<?php echo $_GET['show_courses']; ?>" />
+       <input type="hidden" name="current_cat" value="<?php echo $_GET['current_cat']; ?>" />
+       <input type="submit" name="submit" style="display:none;"/>
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('properties'); ?></legend>
+<?php if ($this->isadmin): ?>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="inst"><?php echo  _AT('instructor'); ?></label><br />
+                       <?php 
+                       
+                       
+                       if ($instructor_row = mysql_fetch_assoc($this->result)) {
+                               echo '<select name="instructor" id="inst">';
+                               do {
+                                       if ($instructor_row['member_id'] == $this->row['member_id']) {
+                                               echo '<option value="'.$instructor_row['member_id'].'" selected="selected">'.$instructor_row['login'].'</option>';
+                                       } else {
+                                               echo '<option value="'.$instructor_row['member_id'].'">'.$instructor_row['login'].'</option>';
+                                       }
+                               } while($instructor_row = mysql_fetch_assoc($this->result));
+                               echo '</select>';
+                       } else {
+                               echo '<span id="inst">'._AT('none_found').'</span>';
+                       }
+                       ?>
+       </div>
+<?php endif; ?>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" id="title" name="title" size="40" value="<?php echo htmlspecialchars($this->row['title']); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="pri_lang"><?php  echo _AT('primary_language'); ?></label><br />
+               <?php $languageManager->printDropdown($this->row['primary_language'], 'pri_lang', 'pri_lang'); ?>
+       </div>
+
+       <div class="row">
+               <label for="description"><?php echo _AT('description'); ?></label><br />
+               <textarea id="description" cols="45" rows="2" name="description"><?php echo $this->row['description']; ?></textarea>
+       </div>
+       <?php if ($_config['course_dir_name']): ?>
+       <div class="row">
+               <label for="course_dir_name"><?php echo _AT('course_dir_name'); ?></label><br />
+               <input type="text" id="course_dir_name" name="course_dir_name" size="40" value="<?php echo htmlspecialchars($this->row['course_dir_name']); ?>" />
+       </div>
+       <?php endif; ?>
+
+       <?php $categories = get_categories(); ?>
+       <?php if (is_array($categories)): ?>
+               <div class="row">
+               <label for="cat"><?php echo _AT('category'); ?></label><br />
+                       <select name="category_parent" id="cat">
+                               <option value="0">&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;<?php echo _AT('cats_uncategorized'); ?>&nbsp;&nbsp;]&nbsp;&nbsp;&nbsp;</option>
+                               <?php select_categories($categories, 0, $this->row['cat_id'], false); ?>
+
+                       </select>
+               </div>
+       <?php endif; ?>
+
+       <div class="row">
+               <?php  echo _AT('export_content'); ?><br />
+               <?php
+                       switch ($this->row['content_packaging']) {
+                               case 'none':
+                                               $none = ' checked="checked"';
+                                               break;
+
+                               case 'top':
+                                               $top     = ' checked="checked"';
+                                               break;
+
+                               case 'all':
+                                               $all    = ' checked="checked"';
+                                               break;
+                       }
+                       ?>
+               <label for="none" ><input type="radio" name="content_packaging" value="none" id="none" <?php echo $none; ?> /><?php echo _AT('content_packaging_none'); ?></label><br />
+               <label for="ctop"><input type="radio" name="content_packaging" value="top" id="ctop"  <?php echo $top; ?> /><?php  echo _AT('content_packaging_top'); ?></label><br />
+               <label for="all"><input type="radio" name="content_packaging" value="all" id="all" <?php echo $all; ?> /><?php  echo _AT('content_packaging_all'); ?></label>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('syndicate_announcements'); ?><br />
+               <?php
+                               $rss_no = $rss_yes = '';
+
+                               if ($this->row['rss']) {
+                                       $rss_yes = ' checked="checked"';
+                               } else {
+                                       $rss_no = ' checked="checked"';
+                               }
+               ?>
+               <label for="rss_y"><input type="radio" name="rss" value="1" id="rss_y" <?php echo $rss_yes; ?> /><?php echo _AT('enable_syndicate'); ?></label><br />
+               <label for="rss_n"><input type="radio" name="rss" value="0" id="rss_n"  <?php echo $rss_no; ?> /><?php  echo _AT('disable_syndicate'); ?></label>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('access'); ?><br />
+               <?php
+                               switch ($this->row['access']) {
+                                       case 'public':
+                                                       $pub = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'protected':
+                                                       $prot    = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'private':
+                                                       $priv   = ' checked="checked"';
+                                                       break;
+                               }
+
+                               if ($this->row['notify']) {
+                                       $notify = ' checked="checked"';
+                               }
+
+                               if ($this->row['hide']) {
+                                       $hide = ' checked="checked"';
+                               }
+               ?>
+               <input type="radio" name="access" value="public" id="pub" onclick="disableNotify();" <?php echo $pub; ?> /><label for="pub"><strong> <?php echo  _AT('public'); ?>: </strong></label><?php echo  _AT('about_public'); ?><br /><br />
+
+               <input type="radio" name="access" value="protected" id="prot" onclick="disableNotify();" <?php echo $prot; ?> /><label for="prot"><strong><?php echo  _AT('protected'); ?>:</strong></label> <?php echo _AT('about_protected'); ?><br /><br />
+
+               <input type="radio" name="access" value="private" id="priv" onclick="enableNotify();" <?php echo $priv; ?> /><label for="priv"><strong><?php echo  _AT('private'); ?>:</strong></label> <?php echo  _AT('about_private'); ?><br />
+               <input type="checkbox" name="notify" id="notify" value="1" <?php
+                       echo $disable;
+                       echo $notify; ?> /><label for="notify"><?php echo  _AT('email_approvals'); ?></label>
+               <br />
+               <input type="checkbox" name="hide" id="hide" value="1" <?php
+               echo $disable;
+               echo $hide; ?> /><label for="hide"><?php echo  _AT('hide_course'); ?></label>.
+       </div>
+
+       <div class="row">
+               <?php echo _AT('release_date'); ?><br />
+               <?php
+                       $rel_no = $rel_yes = '';
+
+                       if (intval($this->row['release_date'])) {
+                               $rel_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['release_date'], 8, 2);
+                               $today_mon   = substr($this->row['release_date'], 5, 2);
+                               $today_year  = substr($this->row['release_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['release_date'], 11, 2);
+                               $today_min   = substr($this->row['release_date'], 14, 2);
+                       } else {
+                               $rel_no = ' checked="checked"'; 
+                               $today_year  = date('Y');
+                       }
+
+               ?>
+
+               <input type="radio" name="release_date" value="0" id="release_now" <?php echo $rel_no; ?> /> <label for="release_now"><?php echo _AT('available_immediately'); ?></label><br />
+
+
+               <input type="radio" name="release_date" value="1" id="release_later" <?php echo $rel_yes; ?> /> <label for="release_later"><?php echo _AT('release_on'); ?></label> 
+               <?php
+                       $name = '_release';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('end_date'); ?><br />
+               <?php
+                       $end_no = $end_yes = '';
+
+                       if (intval($this->row['end_date'])) {
+                               $end_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['end_date'], 8, 2);
+                               $today_mon   = substr($this->row['end_date'], 5, 2);
+                               $today_year  = substr($this->row['end_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['end_date'], 11, 2);
+                               $today_min   = substr($this->row['end_date'], 14, 2);
+                       } else {
+                               $end_no = ' checked="checked"'; 
+                               $today_year  = date('Y')+1;
+                       }
+
+               ?>
+
+               <input type="radio" name="end_date" value="0" id="end_now" <?php echo $end_no; ?> /> <label for="end_now"><?php echo _AT('no_end_date'); ?></label><br />
+
+               <input type="radio" name="end_date" value="1" id="end_later" <?php echo $end_yes; ?> /> <label for="end_later"><?php echo _AT('end_on'); ?></label> 
+               <?php
+                       $name = '_end';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+       </div>
+
+       <div class="row">
+               <?php
+                       if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
+                               echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
+                               echo '<input type="submit" name="settext" value="'._AT('switch_text').'"  class="button"/>';
+                       } else {
+                               echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'" class="button"/>';
+                       }
+               ?>
+       </div>
+       <div class="row">
+
+               <label for="banner"><?php echo _AT('banner'); ?></label><br />
+               <textarea id="banner" cols="45" rows="15" name="banner"><?php echo $this->row['banner']; ?></textarea>
+       </div>
+<!-- FIX  -->
+<?php if (!$this->course) : ?>
+       <div class="row">
+               <label for="initial_content"><?php echo _AT('initial_content'); ?></label><br />
+               <select name="initial_content" id="initial_content" size="5">
+                       <option value="0"><?php echo _AT('empty'); ?></option>
+                       <option value="1" selected="selected"><?php echo _AT('create_basic'); ?></option>
+                       <?php 
+                       
+                       if ($course_row = mysql_fetch_assoc($result)) {
+                               do {
+                                       $Backup->setCourseID($course_row['course_id']);
+                                       $list = $Backup->getAvailableList();
+
+                                       if (!empty($list)) { 
+                                               echo '<optgroup label="'. _AT('restore').': '.$course_row['title'].'">';
+                                               foreach ($list as $list_item) {
+                                                       echo '<option value="'.$list_item['backup_id'].'_'.$list_item['course_id'].'">'.$list_item['file_name'].' - '.get_human_size($list_item['file_size']).'</option>';
+                                               }
+                                               echo '</optgroup>';
+                                       }
+                               } while ($course_row = mysql_fetch_assoc($result));
+                       }
+                       ?>
+                       </select>
+       </div>
+<?php endif; // !$course_id ?>
+
+<?php if ($this->isadmin) : ?>
+       <div class="row">
+               <?php  echo _AT('course_quota'); ?><br />
+               <?php 
+                       if ($this->row['max_quota'] == AT_COURSESIZE_UNLIMITED) { 
+                               $c_unlim = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_quota'] == AT_COURSESIZE_DEFAULT) {
+                               $c_def = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $c_oth = ' checked="checked" ';
+                               $c_oth2 = '';
+                       }
+
+                       if ($this->course > 0) {
+                               $course_size = dirsize(AT_CONTENT_DIR . $this->course.'/');
+                       } else {
+                               $course_size = 0;
+                       }
+
+                       if ($this->course) {
+                               echo _AT('current_course_size') .': '.get_human_size($course_size).'<br />'; 
+                       }
+               ?>
+
+               <input type="radio" id="c_default" name="quota" value="<?php echo AT_COURSESIZE_DEFAULT; ?>" onclick="disableOther();" <?php echo $c_def;?> /><label for="c_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxCourseSize).')'; ?></label> <br />
+               <input type="radio" id="c_unlim" name="quota" value="<?php echo AT_COURSESIZE_UNLIMITED; ?>" onclick="disableOther();" <?php echo $c_unlim;?>/><label for="c_unlim"> <?php echo _AT('unlimited'); ?></label> <br />
+               <input type="radio" id="c_other" name="quota" value="2" onclick="enableOther();" <?php echo $c_oth;?>/><label for="c_other"> <?php echo _AT('other'); ?> </label> - 
+               <label for="quota_entered">Quota Entered</label>
+               <input type="text" id="quota_entered" name="quota_entered" <?php echo $c_oth2?> value="<?php if ($this->row['max_quota']!=AT_COURSESIZE_UNLIMITED && $this->row['max_quota']!=AT_COURSESIZE_DEFAULT) { echo bytes_to_megabytes($this->row['max_quota']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+       <div class="row">
+               <?php  echo _AT('max_file_size'); ?><br />
+               <?php 
+                       $max_allowed = megabytes_to_bytes(substr(ini_get('upload_max_filesize'), 0, -1));
+
+                       if ($this->row['max_file_size'] == AT_FILESIZE_DEFAULT) { 
+                               $f_def = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_file_size'] == AT_FILESIZE_SYSTEM_MAX) {
+                               $f_max = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $f_oth = ' checked="checked" ';
+                               $f_oth2 = '';
+                       }
+               ?>
+               <input type="radio" id="f_default" name="filesize" value="<?php echo AT_FILESIZE_DEFAULT; ?>" onclick="disableOther2();" <?php echo $f_def;?> /><label for="f_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxFileSize).')'; ?></label> <br />
+               <input type="radio" id="f_maxallowed" name="filesize" value="<?php echo AT_FILESIZE_SYSTEM_MAX; ?>" onclick="disableOther2();" <?php echo $f_max;?>/><label for="f_maxallowed"> <?php echo _AT('max_file_size_system') . ' ('.get_human_size($max_allowed).')'; ?></label> <br />
+               <input type="radio" id="f_other" name="filesize" value="2" onclick="enableOther2();" <?php echo $f_oth;?>/><label for="f_other"> <?php echo _AT('other'); ?> </label> - 
+               <label for="filesize_entered">Filesize entered</label>
+               <input type="text" id="filesize_entered" name="filesize_entered" <?php echo $f_oth2?> value="<?php if ($this->row['max_file_size']!=AT_FILESIZE_DEFAULT && $this->row['max_file_size']!=AT_FILESIZE_SYSTEM_MAX) { echo bytes_to_megabytes($this->row['max_file_size']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+<?php else: ?>
+       <input type="hidden" name="quota" value="<?php echo $this->row['max_quota']; ?>" />
+       <input type="hidden" name="filesize" value="<?php echo $this->row['max_file_size']; ?>" />
+       <input type="hidden" name="tracking" value="<?php echo $this->row['tracking']; ?>" />
+<?php endif; ?>
+
+       <div class="row">
+               <label for="copyright"><?php echo _AT('course_copyright'); ?></label><br />
+               <textarea name="copyright" rows="2" cols="65" id="copyright"><?php echo $this->row['copyright']; ?></textarea>
+       </div>
+       <div class="row">
+               <?php 
+            if ($this->row['icon'] != ''): 
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                if (file_exists($path.$this->row['icon'])) {
+                    if (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) {
+                        $custom_icon_path = 'get_course_icon.php/?id='.$this->row['course_id'];
+                    } else {
+                        $_base_href = 'content/' . $this->row['course_id'] . '/';
+                    }
+                } else {
+                    $_base_href = "images/courses/";   //$_base_href = 'get_course_icon.php/?id='.$row['course_id'];
+                }
+
+            $force_get = (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) ? true : false;
+            echo "<input type='hidden' name='boolForce' id='boolForce' value='$force_get' />";
+        
+       //include(AT_INCLUDE_PATH.'html/course_icon.inc.php');        
+        ?>
+               <img id="i0" src="<?php echo ($custom_icon_path=='')?$_base_href.$this->row['icon']:$custom_icon_path; ?>" alt="<?php echo $this->row['icon']; ?>" border="1" height="79" width="79"  style="float: left; margin: 2px;" />
+
+               <?php else: ?>
+                       <img id="i0" src="images/clr.gif" alt="" style="float: left; margin: 2px;" border="1" height="79" width="79"  />
+                       <input type='hidden' name='boolForce' id='boolForce' value='' />
+               <?php endif; ?>
+               <div style="width:40%; float:left;">
+               <label for="icons"><?php echo _AT('icon'); ?></label><br />
+               <select name="icon" id="icons" onchange="SelectImg()">
+                       <option value=""><?php echo _AT('no_icon'); ?></option>
+            <?php // ------------- custom course icons
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                $boolCustom = false;
+                $optCount = 0;
+
+                if (is_dir($path)) {
+                    $boolCustom = true;  // true if custom icons are uploaded, otherwise false
+                    
+                    /*$files = scandir($path);  //SCANDIR STOPS ATUTOR WHEN RUN AS INSTRUCTOR, BUT NOT AS ADMIN. WHY? -Gorzan */
+                    
+                    /* PHP 4 REPLACEMENT FOR SCANDIR */
+                                       $dh  = opendir($path);
+                                       while (false !== ($filename = readdir($dh))) {
+                                               $files[] = $filename;
+                                       }
+
+                                       /*END PHP 4 REPLACEMENT FOR SCANDIR*/
+                    echo "<optgroup label='"._AT('custom_icons')."'>";
+                    foreach($files as $val) {
+                                               $file_ext = substr(strtolower($val), -3);
+                        if ($file_ext == "jpg" || $file_ext == "png" || $file_ext == "gif") {
+                            $optCount++;
+                            echo "<option value='".$val."'";
+                            if ($val == $this->row['icon']) {
+                                echo 'selected="selected"';
+                            }
+                            echo ">".$val."</option>";
+                        }
+                    }
+                    echo "</optgroup>";
+                }
+                
+            ?>
+                       <?php // ------------- other icons
+
+                               $course_imgs = array();
+                               if ($dir = opendir(AT_INCLUDE_PATH.'../images/courses/')) {
+                                       while (false !== ($file = readdir($dir)) ) {
+                                               if( ($file == '.') || ($file == '..')) { 
+                                                       continue;
+                                               }
+                                               $course_imgs[] = $file;
+                                       }               
+                                       closedir($dir); 
+                               }
+                               sort($course_imgs);
+                if ($boolCustom == true) {
+                    echo "<optgroup label='"._AT('builtin_icons')."'>";
+                }
+                               foreach ($course_imgs as $file) {
+                                       echo '<option value="' . $file . '" ';
+                                       if ($file == $this->row['icon']) { 
+                                               echo 'selected="selected"'; 
+                                       }
+                                       echo ' >' . $file . '</option>';        
+                               }
+                if ($boolCustom == true) {
+                    echo "</optgroup>";
+                }
+                       ?>
+               </select><?php echo "&nbsp;&nbsp;&nbsp; "._AT('or'); ?>
+       </div>
+            <!-- div class="row" style="float:right;width:40%;">
+            <?php echo _AT('upload_icon'); ?><br />
+               <label for="customicon"><input type="file" name="customicon" title="custom icon" id="customicon" value="<?php echo $_POST['customicon']; ?>"/></label><br />
+                <small><?php echo _AT('upload_icon_text'); ?></small>
+            </div -->
+
+        <?php  require_once(AT_INCLUDE_PATH.'../mods/_core/courses/html/course_icon.inc.php'); ?>
+
+        <br style="clear: left;" />
+
+       </div>
+
+    <div style="clear: both;"></div>
+
+    
+
+       <div class="buttons">
+               <?php
+            echo "<input type='hidden' name='custOptCount' id='custOptCount' value='".$optCount."' />";
+            echo "<input type='hidden' name='courseId' id='courseId' value='".$this->row['course_id']."' />";
+               ?>
+
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel');?>" />
+       </div>
+    </fieldset>
+</div>
+
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/courses/enrollment.tmpl.php b/docs/themes/default/admin/courses/enrollment.tmpl.php
new file mode 100644 (file)
index 0000000..bd9760f
--- /dev/null
@@ -0,0 +1,140 @@
+
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <input type="hidden" name="tab" value="<?php echo $this->current_tab; ?>"/>
+       <input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
+       <div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('search'); ?></legend>
+               <?php if (admin_authenticate(AT_ADMIN_PRIV_ENROLLMENT, TRUE)): ?>
+                       <div class="row">
+                               <label for="course"><?php echo _AT('course'); ?></label><br/>
+                               <select name="course_id" id="course">
+                               <?php
+                               
+                               while ($courses_row = mysql_fetch_assoc($this->result)) {
+                                       if ($courses_row['course_id'] == $this->course_id) {
+                                               echo '<option value="'.$courses_row['course_id'].'" selected="selected">'.validate_length($courses_row['title'], 45,VALIDATE_LENGTH_FOR_DISPLAY).'</option>';
+                                       } else {
+                                               echo '<option value="'.$courses_row['course_id'].'">'.validate_length($courses_row['title'],45,VALIDATE_LENGTH_FOR_DISPLAY).'</option>';
+                                       }
+                               }
+                               ?></select>
+                       </div>
+               <?php endif; ?>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('login_name').', '._AT('first_name').', '._AT('second_name').', '._AT('last_name') .', '._AT('email'); ?>)</label><br />
+                       <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+                       <br/>
+                       <?php echo _AT('search_match'); ?>:
+                       <input type="radio" name="match" value="all" id="match_all" <?php echo $this->checked_match_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> <input type="radio" name="match" value="one" id="match_one" <?php echo $this->checked_match_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </fieldset>
+       </div>
+</form>
+
+<?php print_paginator($this->page, $this->tab_counts[$this->current_tab], $this->page_string_w_tab . SEP . $this->order .'='. $this->col, $this->results_per_page); ?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="selectform">
+<input type="hidden" name="tab" value="<?php echo $this->current_tab; ?>" />
+<input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
+
+<ul id="subnavlist">
+       <?php for ($i = 0; $i< $this->num_tabs; $i++): ?>
+               <?php if ($this->current_tab == $i): ?>
+                       <li class="active"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?tab=<?php echo $i.$this->page_string; ?>" class="active"><strong><?php echo _AT($this->tabs[$i]); ?> - <?php echo $this->tab_counts[$i]; ?></strong></a></li>
+               <?php else: ?>
+                       <li><a href="<?php echo $_SERVER['PHP_SELF']; ?>?tab=<?php echo $i.$this->page_string; ?>"><?php echo _AT($this->tabs[$i]); ?> - <?php echo $this->tab_counts[$i]; ?></a></li>
+               <?php endif; ?>
+       <?php endfor; ?>
+</ul>
+
+
+<table class="data" style="width:95%;" summary="" rules="cols" >
+<colgroup>
+       <?php if ($this->col == 'login'): ?>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($this->col == 'first_name'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="3" />
+       <?php elseif($this->col == 'second_name'): ?>
+               <col span="3" />
+               <col class="sort" />
+               <col span="2" />
+       <?php elseif($this->col == 'last_name'): ?>
+               <col span="4" />
+               <col class="sort" />
+               <col />
+       <?php elseif($this->col == 'email'): ?>
+               <col span="5" />
+               <col class="sort" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col" align="left"><input type="checkbox" value="<?php echo _AT('select_all'); ?>" id="all" title="<?php echo _AT('select_all'); ?>" name="selectall" onclick="CheckAll();" /></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=login<?php echo $this->page_string_w_tab;?>"><?php echo _AT('login_name'); ?></a></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=first_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('first_name'); ?></a></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=second_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('second_name'); ?></a></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=last_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('last_name'); ?></a></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=email<?php echo $this->page_string_w_tab;?>"><?php echo _AT('email'); ?></a></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+               <?php if ($this->current_tab == 0): ?>
+                       <input type="submit" name="role"     value="<?php echo _AT('privileges');  ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove');    ?>" /> 
+                       <input type="submit" name="alumni"   value="<?php echo _AT('mark_alumni'); ?>" />
+               <?php elseif ($this->current_tab == 1): ?>
+                       <input type="submit" name="role" value="<?php echo _AT('privileges'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" /> 
+
+               <?php elseif ($this->current_tab == 2): ?>
+                       <input type="submit" name="enroll"   value="<?php echo _AT('enroll'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" />
+               
+               <?php elseif ($this->current_tab == 3): ?>
+                       <input type="submit" name="enroll" value="<?php echo _AT('enroll'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" />
+
+               <?php elseif ($this->current_tab == 4): ?>
+                       <input type="submit" name="enroll"   value="<?php echo _AT('enroll'); ?>" /> 
+
+               <?php endif; ?></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($this->tab_counts[$this->current_tab]): ?>
+       <?php while ($row = mysql_fetch_assoc($this->enrollment_result)): ?>
+               <tr onmousedown="document.selectform['m<?php echo $row['member_id']; ?>'].checked = !document.selectform['m<?php echo $row['member_id']; ?>'].checked; togglerowhighlight(this, 'm<?php echo $row['member_id']; ?>');" id="rm<?php echo $row['member_id']; ?>">
+                       <td><input type="checkbox" name="id[]" value="<?php echo $row['member_id']; ?>" id="m<?php echo $row['member_id']; ?>" onmouseup="this.checked=!this.checked" title="<?php echo AT_print($row['login'], 'members.login'); ?>" /></td>
+                       <td><?php echo AT_print($row['login'], 'members.login'); ?></td>
+                       <td><?php echo AT_print($row['first_name'], 'members.name'); ?></td>
+                       <td><?php echo AT_print($row['second_name'], 'members.name'); ?></td>
+                       <td><?php echo AT_print($row['last_name'], 'members.name'); ?></td>
+                       <td><?php echo AT_print($row['email'], 'members.email'); ?></td>
+               </tr>
+       <?php endwhile; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/courses/forum_add.tmpl.php b/docs/themes/default/admin/courses/forum_add.tmpl.php
new file mode 100644 (file)
index 0000000..0fccc48
--- /dev/null
@@ -0,0 +1,39 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="add_forum" value="true" />
+
+<div class="input-form">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" name="title" size="40" id="title" value="<?php echo $_POST['title']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="body"><?php echo _AT('description'); ?></label><br />
+               <textarea name="description" cols="45" rows="2" id="body" ><?php echo $_POST['description']; ?></textarea>
+       </div>
+
+       <div class="row">
+               <label for="edit"><?php echo _AT('allow_editing'); ?></label><br />
+               <input type="text" name="edit" size="3" id="edit" value="<?php echo intval($row['mins_to_edit']); ?>" /> <?php echo _AT('in_minutes'); ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="courses"><?php echo _AT('courses'); ?></label><br />
+               <?php if ($this->system_courses): ?>
+                       <select name="courses[]" id="courses" multiple="multiple" size="5"><?php
+                               while ($row = mysql_fetch_assoc($this->result)) {
+                                       echo '<option value="'.$row['course_id'].'">'.$row['title'].'</option>';                
+                               }
+                               ?>
+                       </select>
+               <?php else: ?>
+                       <span id="courses"><?php echo _AT('no_courses_found'); ?></span>
+               <?php endif; ?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/courses/forum_edit.tmpl.php b/docs/themes/default/admin/courses/forum_edit.tmpl.php
new file mode 100644 (file)
index 0000000..6239c6f
--- /dev/null
@@ -0,0 +1,45 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+       <input type="hidden" name="edit_this->forum" value="true" />
+       <input type="hidden" name="forum" value="<?php echo $_REQUEST['forum']; ?>"/>
+
+<div class="input-form">
+       <div class="row">
+               <label for="title"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php  echo _AT('title'); ?></label><br />
+               <input type="text" name="title" size="40" id="title" value="<?php echo AT_print($this->forum['title'], 'input.text'); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="body"><?php echo _AT('description'); ?></label><br />
+               <textarea name="description" cols="45" rows="5" id="body" ><?php echo AT_print($this->forum['description'], 'input.text'); ?></textarea>
+       </div>
+
+       <div class="row">
+               <label for="edit"><?php echo _AT('allow_editing'); ?></label><br />
+               <input type="text" name="edit" size="3" id="edit" value="<?php echo intval($this->forum['mins_to_edit']); ?>" /> <?php echo _AT('in_minutes'); ?>
+       </div>
+
+       <div class="row">
+               <label for="courses"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('courses'); ?></label><br />
+               <select name="courses[]" id="courses" multiple="multiple" size="5"><?php
+                       /*
+                       echo '<option value="0"';
+                       if ($courses[0] == 0) {
+                               echo ' selected="selected"';
+                       }
+                       echo '> '._AT('all').' </option>';
+                       */
+                       
+                       while ($row = mysql_fetch_assoc($this->result)) {
+                               if (in_array($row['course_id'], $this->courses) ) {
+                                       echo '<option value="'.$row['course_id'].'" selected="selected">'.AT_print($row['title'], 'input.text').'</option>';            
+                               } else {
+                                       echo '<option value="'.$row['course_id'].'">'.AT_print($row['title'], 'input.text').'</option>';
+                               }
+                       }
+                       ?></select>
+       </div>
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php  echo _AT('submit'); ?>" accesskey="s" /> <input type="submit" name="cancel" value="<?php  echo _AT('cancel'); ?>" />
+       </div>
+</div>
+       </form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/courses/forums.tmpl.php b/docs/themes/default/admin/courses/forums.tmpl.php
new file mode 100644 (file)
index 0000000..2a97818
--- /dev/null
@@ -0,0 +1,59 @@
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<table class="data" summary="Course forums" rules="groups" style="width: 90%">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('title');       ?></th>
+       <th scope="col"><?php echo _AT('description'); ?></th>
+       <th scope="col"><?php echo _AT('courses');  
+          ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="4"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+
+</tfoot>
+<tbody>
+
+<tr>
+       <th colspan="4"><?php echo _AT('shared_forums'); ?></th>
+</tr>
+<?php 
+foreach ($this->shared_forums as $forum) {
+
+?>
+<!--     <tr onmousedown="document.form[\'f'.$forum['forum_id'].'\'].checked = true; rowselect(this);"  id="r_'.$forum['forum_id'].'"></tr> -->      
+    <tr onkeydown="document.form['f<?php echo $forum['id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['f<?php echo $forum['id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $forum['id']; ?>">
+    <td><input type="radio" name="id" value= "<?php echo $forum['id']; ?>" id="f<?php echo $forum['id']; ?>"</td>
+       <td><label for="f<?php echo $forum['id']; ?>"> <?php echo       AT_print($forum['title'], 'forums.title'); ?>  </label></td>
+       <td><?php echo AT_print($forum['desc'], 'forums.description'); ?></td>
+       <td> <?php foreach ($forum["courses"] as $course) {echo $course. "  ";} ?>
+       </td>
+       </tr>
+<?php }?>
+
+</tbody>
+<tbody>
+       <tr>
+               <th colspan="4"><?php echo _AT('unshared_forums'); ?></th>
+       </tr>
+<?php if ($this->num_nonshared) : ?>
+       <?php foreach ($this->all_forums['nonshared'] as $forum) : ?>
+               <tr onkeydown="document.form['f<?php echo $forum['forum_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['f<?php echo $forum['forum_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $forum['forum_id']; ?>">
+                       <td><input type="radio" name="id" value="<?php echo $forum['forum_id']; ?>" id="f<?php echo $forum['forum_id']; ?>" /></td>
+                       <td><label for="f<?php echo $forum['forum_id']; ?>"><?php echo AT_print($forum['title'], 'forums.title'); ?></label></td>
+                       <td><?php echo AT_print($forum['description'], 'forums.description'); ?></td>
+                       <td><?php echo $this->system_courses[$forum['course_id']]['title']; ?></td>
+               </tr>
+       <?php endforeach; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><strong><?php echo _AT('no_forums'); ?></strong></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/courses/privileges.tmpl.php b/docs/themes/default/admin/courses/privileges.tmpl.php
new file mode 100644 (file)
index 0000000..da9b3fc
--- /dev/null
@@ -0,0 +1,56 @@
+hi I'm an administrator
+
+<?php global $moduleFactory;?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
+<input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
+<div class="input-form">
+
+       <div class="row">
+               <h3><?php echo $this->student_row['login']; ?></h3>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('privileges'); ?><br />
+                       <table width="100%" border="0" cellspacing="5" cellpadding="0" summary="">
+                       <tr>
+                       <?php           
+                       $count =0;
+                       $this->student_row['privileges'] = intval($this->student_row['privileges']);
+                       $module_list = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED, 0, TRUE);
+                       $keys = array_keys($module_list);
+                       foreach ($keys as $module_name) {
+                               $module =& $module_list[$module_name];
+                               if (!($module->getPrivilege() > 1)) {
+                                       continue;
+                               }
+                               $count++;
+                               echo '<td><label><input type="checkbox" name="privs['.$k.'][]" value="'.$module->getPrivilege().'" ';
+
+                               if (query_bit($this->student_row['privileges'], $module->getPrivilege())) { 
+                                       echo 'checked="checked"';
+                               } 
+
+                               echo ' />'.$module->getName().'</label></td>';
+
+                               if (!($count % $this->num_cols)) {
+                                       echo '</tr><tr>';
+                               }
+                       }
+                       if ($count % $this->num_cols) {
+                               echo '<td colspan="'.($this->num_cols-($count % $this->num_cols)).'">&nbsp;</td>';
+                       } else {
+                               echo '<td colspan="'.$this->num_cols.'">&nbsp;</td>';
+                       }
+                       ?>
+                       </tr>
+                       </table>
+               </div>
+<?php 
+       }//end for
+?>
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save');  ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel');  ?>" />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/courses/scaffolds.tmpl.php b/docs/themes/default/admin/courses/scaffolds.tmpl.php
new file mode 100644 (file)
index 0000000..b9f67d9
--- /dev/null
@@ -0,0 +1,25 @@
+<?php global $_config;?>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="scaffolds">
+<div class="input-form">
+ <fieldset class="group_form"> <legend class="group_form"><strong><?php echo _AT("support_tools"); ?></strong>  </legend>  
+       <div class="row">
+               <p><?php echo _AT('scaffold_text'); ?></p>
+       </div>
+       <div class="row">
+
+               <label for="encyclopedia"><?php echo _AT('encyclopedia'); ?></label><br /><input type="text" id="encyclopedia"  name="encyclopedia" value="<?php echo $_config['encyclopedia']; ?>"  size="60"/><br />
+               <label for="dictionary"><?php echo _AT('dictionary'); ?></label><br /><input type="text" id="dictionary"  name="dictionary" value="<?php echo $_config['dictionary']; ?>"  size="60"/><br />
+               <label for="thesaurus"><?php echo _AT('thesaurus'); ?></label><br /><input type="text" id="thesaurus"  name="thesaurus" value="<?php echo $_config['thesaurus']; ?>" size="60"/><br />
+               <label for="atlas"><?php echo _AT('atlas'); ?></label><br /><input type="text" id="atlas"  name="atlas" value="<?php echo $_config['atlas']; ?>"  size="60"/><br />
+               <label for="calculator"><?php echo _AT('calculator'); ?></label><br /><input type="text" id="calculator"  name="calculator" value="<?php echo $_config['calculator']; ?>"  size="60"/><br />
+               <label for="note_taking"><?php echo _AT('note_taking'); ?></label><br /><input type="text" id="note_taking"  name="note_taking" value="<?php echo $_config['note_taking']; ?>"  size="60"/>     <br />
+               <label for="abacas"><?php echo _AT('abacus'); ?></label><br /><input type="text" id="abacas"  name="abacas" value="<?php echo $_config['abacas']; ?>"  size="60"/><br />
+       </div>
+       <div class="buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />
+       </div>
+</fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/fix_content.tmpl.php b/docs/themes/default/admin/fix_content.tmpl.php
new file mode 100644 (file)
index 0000000..d1ec6df
--- /dev/null
@@ -0,0 +1,9 @@
+
+<?php 
+echo "Hello I have been templated";
+echo $this->tester2;
+
+echo $this->ordering;
+echo $this->content_id;
+echo $this->content_parent_id;
+?>
diff --git a/docs/themes/default/admin/index.tmpl.php b/docs/themes/default/admin/index.tmpl.php
new file mode 100644 (file)
index 0000000..5aca1d3
--- /dev/null
@@ -0,0 +1,151 @@
+<?php global $_config; $_config_defaults;?>
+<div class="container" style="width: 40%; float: right; padding-top: 4px; padding-left: 10px;">
+       <div class="input-form" style="width: 98%;">
+                       <div class="row">
+                               <h3><?php echo _AT('social_switch'); ?></h3>
+                               <p><?php echo _AT('social_switch_text'); ?></p>
+                       </div>
+                       <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+                       <fieldset>
+                       <legend id="social_networking"><?php echo _AT('social_switch'); ?></legend>(<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['just_social'] ? _AT('just_social') : _AT('social_and_lms')); ?>)
+                       <div class="row">
+                       <input type="radio" name="just_social" value="1" id="social_y" <?php if($_config['just_social']) { echo 'checked="checked"'; }?>  /><label for="social_y"><?php echo _AT('just_social'); ?></label> <br /><input type="radio" name="just_social" value="0" id="social_n" <?php if(!$_config['just_social']) { echo 'checked="checked"'; }?>  /><label for="social_n"><?php echo _AT('social_and_lms'); ?></label>
+                       </div>
+
+                       <div class="row buttons">
+                               <input type="submit" name="social_submit" value="<?php echo _AT('save'); ?>" />
+                       </div>
+                       </fieldset>
+                       </form>
+
+       </div>
+       <div class="input-form" style="width: 98%;">
+                       <div class="row">
+                               <h3><?php echo _AT('donate'); ?></h3>
+                               <p><?php echo _AT('donate_text'); ?></p>
+                       </div>
+
+                       <div style="text-align:center;">
+                               <a href="http://www.atutor.ca/payment/index.php?project=ATutor-Donation"><img src="<?php echo $this->base_href; ?>/images/donate.gif" height="28" width="136" border="0" alt="<?php echo _AT('donate'); ?>" /></a><br /><br />
+                       </div>
+       </div>
+
+       <div class="input-form" style="width: 98%;">
+       
+               <form method="get" action="mods/_core/users/instructor_requests.php">
+                       <div class="row">
+                               <h3><?php echo _AT('instructor_requests'); ?></h3>
+                               
+                               <?php foreach($this->row_instructor as $key => $value): ?>
+                               
+                               <p><?php echo _AT('instructor_requests_text', $value['cnt']); ?></p>
+                               <?php endforeach;?>
+                       </div>
+
+                       <div class="row buttons">
+                               <input type="submit" name="submit" value="<?php echo _AT('view'); ?>" />
+                       </div>
+                       
+               </form>
+               
+       </div>
+
+       
+       <div class="input-form" style="width: 98%;">
+               <form method="get" action="mods/_standard/patcher/index_admin.php">
+                       <div class="row">
+                               <h3><?php echo _AT('available_patches'); ?></h3>
+                               <p><?php echo _AT('available_patches_text', $this->cnt); ?></p>
+                       </div>
+
+                       <div class="row buttons">
+                               <input type="submit" name="submit" value="<?php echo _AT('view'); ?>" />
+                       </div>
+               </form>
+       </div>
+       <div class="input-form" style="width: 98%">
+               <div class="row">
+                       <h3><?php echo _AT('statistics_information'); ?></h3>
+
+                       <dl class="col-list">
+                               <?php if ($this->db_size): ?>
+                                       <dt><?php echo _AT('database'); ?>:</dt>
+                                       <dd><?php echo number_format($this->db_size/AT_KBYTE_SIZE/AT_KBYTE_SIZE,2); ?> <acronym title="<?php echo _AT('megabytes'); ?>"><?php echo _AT('mb'); ?></acronym></dd>
+                               <?php endif; ?>
+
+                               <?php if ($this->du_size): ?>
+                                       <dt><?php echo _AT('disk_usage'); ?>:</dt>
+                                       <dd><?php echo number_format($this->du_size/AT_KBYTE_SIZE,2); ?> <acronym title="<?php echo _AT('megabytes'); ?>"><?php echo _AT('mb'); ?></acronym></dd>
+                               <?php endif; ?>
+
+                               <dt><?php echo _AT('courses'); ?>:</dt>
+                               <dd><?php echo $this->num_courses; ?></dd>
+
+                               <dt><?php echo _AT('users'); ?>:</dt>
+                               <dd><?php echo $this->num_users; ?></dd>
+
+                               <dt><?php echo _AT('atutor_version'); ?>:</dt>
+                <?php
+                    require('../svn.php');
+                    if (!empty($svn_data)) {
+                        $svn_data   = explode("\n", $svn_data);
+                        if (substr($svn_data[1], 0, 1) == 'r') {
+                            $svn_data = $svn_data[1];
+                        } else if (substr($svn_data[2], 0, 1) == 'r') {
+                            $svn_data = $svn_data[2];
+                        }
+
+                        if (count($svn_data) > 1) {
+                            $build = 'unknown';
+                            $build_date = date('Y-m-d H:i:s');
+                        } else {
+                            $svn_data   = explode(' ', $svn_data);
+
+                            $build      = $svn_data[0];
+                            $build_date = $svn_data[4] .' '. $svn_data[5];
+                        }
+                        $build_str = '(' . $build . ' - '.$build_date . ')';
+                    }
+                ?>
+                               <dd><?php echo _AT('atutor_version_text', VERSION . $build_str, urlencode(VERSION)); ?></dd>
+
+                               <dt><?php echo _AT('php_version'); ?>:</dt>
+                               <dd><?php echo PHP_VERSION; ?></dd>
+
+                               <dt><?php echo _AT('mysql_version'); ?>:</dt>
+                               <dd><?php echo $mysql_version; ?></dd>
+
+                               <dt><?php echo _AT('os'); ?>:</dt>
+                               <dd><?php echo @php_uname('s') . ' ' . @php_uname('r'); ?></dd>
+                       </dl>
+               </div>
+       </div>
+
+</div> 
+
+
+<div class="admin_container" style="width: 55%;"> 
+       <?php 
+       $this->path_length = strlen($this->base_path);
+
+       echo '<ol id="tools" style="margin-right: 0px;">';
+       foreach ($this->top_level_pages as $page_info) {
+               echo '<li class="top-tool"><a href="' . $page_info['url'] . '">' . $page_info['title'] . '</a>  ';
+
+               $page_info['url'] = substr($page_info['url'], $this->path_length);
+
+               if ($this->pages[$page_info['url']]['children']) {
+                       echo '<ul class="child-top-tool">';
+                       foreach ($this->pages[$page_info['url']]['children'] as $child) {
+                               echo ' <li class="child-tool"><a href="'.$child.'">'._AT($this->pages[$child]['title_var']).'</a></li>';
+                       }
+                       echo '</ul>';
+               }
+               echo '</li>'; //end top-tool
+       }
+       echo '</ol>';
+       
+?>
+
+</div>  <!-- end "container" -->
+
diff --git a/docs/themes/default/admin/modules/details.tmpl.php b/docs/themes/default/admin/modules/details.tmpl.php
new file mode 100644 (file)
index 0000000..7ed0ae6
--- /dev/null
@@ -0,0 +1,85 @@
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="mod" value="<?php echo $_GET['mod']; ?>" />
+<input type="hidden" name="new" value="<?php echo $_GET['new']; ?>" />
+
+<input type="hidden" name="enabled" value="<?php echo (int) isset($_GET['enabled']); ?>" />
+<input type="hidden" name="disabled" value="<?php echo (int) isset($_GET['disabled']); ?>" />
+<input type="hidden" name="core" value="<?php echo (int) isset($_GET['core']); ?>" />
+<input type="hidden" name="standard" value="<?php echo (int) isset($_GET['standard']); ?>" />
+<input type="hidden" name="extra" value="<?php echo (int) isset($_GET['extra']); ?>" />
+<input type="hidden" name="missing" value="<?php echo (int) isset($_GET['missing']); ?>" />
+
+<div class="input-form">
+       <div class="row">
+               <h3><?php echo $this->module->getName(); ?></h3>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('description'); ?><br />
+               <?php echo nl2br($this->module->getDescription($_SESSION['lang'])); ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('maintainers'); ?><br />
+                       <ul class="horizontal">
+                               <?php foreach ($this->properties['maintainers'] as $maintainer): ?>
+                                       <li><?php echo $maintainer['name'] .' &lt;'.$maintainer['email'].'&gt;'; ?></li>
+                               <?php endforeach; ?>
+                       </ul>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('url'); ?><br />
+               <?php echo $this->properties['url']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('version'); ?><br />
+               <?php echo $this->properties['version']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('date'); ?><br />
+               <?php echo $this->properties['date']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('license'); ?><br />
+               <?php echo $this->properties['license']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('state'); ?><br />
+               <?php echo $this->properties['state']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('notes'); ?><br />
+               <?php echo nl2br($this->properties['notes']); ?>
+       </div>
+
+       <?php if (is_array($this->module->_pages)): ?>
+               <div class="row">
+                       <?php if (!isset($_GET['files'])): ?>
+                               <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES).SEP; ?>files#files"><?php echo _AT('files'); ?></a><br />
+                       <?php else: ?>
+                               <?php $module_pages = array_keys($this->module->_pages); ?>
+                               <?php natsort($module_pages); ?>
+                               <a name="files"></a><?php echo _AT('files'); ?><br />
+                               <ul style="margin-top: 0px;">
+                                       <?php foreach ($module_pages as $key): ?>
+                                               <?php if (defined($key)) : continue; endif; ?>
+                                               <li><kbd><?php echo $key; ?></kbd></li>
+                                       <?php endforeach; ?>
+                               </ul>
+                       <?php endif; ?>
+               </div>
+       <?php endif; ?>
+
+<?php if (!isset($_REQUEST['new'])): ?>
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('back'); ?>" />
+       </div>
+<?php endif; ?>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/modules/index.tmpl.php b/docs/themes/default/admin/modules/index.tmpl.php
new file mode 100644 (file)
index 0000000..7d84dac
--- /dev/null
@@ -0,0 +1,120 @@
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               <div class="row">
+                       <h3><?php echo _AT('results_found', count($this->keys));?>
+                       </h3>
+               </div>
+
+               <div class="row">
+                       <?php echo _AT('type'); ?><br />
+                       <input type="checkbox" name="core" value="1" id="t0" <?php if ($_GET['core']) { echo 'checked="checked"'; } ?> /><label for="t0"><?php echo _AT('core'); ?></label>
+
+                       <input type="checkbox" name="standard" value="1" id="t1" <?php if ($_GET['standard']) { echo 'checked="checked"'; } ?> /><label for="t1"><?php echo _AT('standard'); ?></label> 
+
+                       <input type="checkbox" name="extra" value="1" id="t2" <?php if ($_GET['extra']) { echo 'checked="checked"'; } ?> /><label for="t2"><?php echo _AT('extra'); ?></label> 
+               </div>
+
+
+               <div class="row">
+                       <?php echo _AT('status'); ?><br />
+                       <input type="checkbox" name="enabled" value="1" id="s0" <?php if ($_GET['enabled']) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('enabled'); ?></label> 
+
+                       <input type="checkbox" name="disabled" value="1" id="s1" <?php if ($_GET['disabled']) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('disabled'); ?></label> 
+
+                       <input type="checkbox" name="missing" value="1" id="s2" <?php if ($_GET['missing']) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('missing'); ?></label> 
+
+                       <input type="checkbox" name="partially_uninstalled" value="1" id="s3" <?php if ($_GET['partially_uninstalled']) { echo 'checked="checked"'; } ?> /><label for="s3"><?php echo _AT('partially_uninstalled'); ?></label> 
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+</form>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
+
+<input type="hidden" name="enabled" value="<?php echo (int) $_GET['enabled']; ?>" />
+<input type="hidden" name="disabled" value="<?php echo (int) $_GET['disabled']; ?>" />
+<input type="hidden" name="core" value="<?php echo (int) $_GET['core']; ?>" />
+<input type="hidden" name="standard" value="<?php echo (int) $_GET['standard']; ?>" />
+<input type="hidden" name="extra" value="<?php echo (int) $_GET['extra']; ?>" />
+<input type="hidden" name="missing" value="<?php echo (int) $_GET['missing']; ?>" />
+<input type="hidden" name="partially_uninstalled" value="<?php echo (int) $_GET['partially_uninstalled']; ?>" />
+
+<table class="data" summary="List of modules" rules="cols">
+<colgroup>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('module_name'); ?></th>
+       <th scope="col"><?php echo _AT('type'); ?></th>
+       <th scope="col"><?php echo _AT('status'); ?></th>
+       <th scope="col"><?php echo _AT('cron'); ?></th>
+       <th scope="col"><?php echo _AT('directory_name'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+               <input type="submit" name="details" value="<?php echo _AT('details'); ?>" />
+               <input type="submit" name="enable"  value="<?php echo _AT('enable'); ?>" />
+               <input type="submit" name="disable" value="<?php echo _AT('disable'); ?>" />
+               <input type="submit" name="uninstall" value="<?php echo _AT('uninstall'); ?>" />
+               <input type="submit" name="export" value="<?php echo _AT('export'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+
+
+
+<?php foreach($this->keys as $dir_name) : $module =& $this->module_list[$dir_name]; $i++; $readme = get_readme(AT_INCLUDE_PATH.'../mods/'.$dir_name);?>
+
+       <tr onkeydown="document.form['t_<?php echo $i; ?>'].checked = true; rowselect(this);" onmousedown="document.form['t_<?php echo $i; ?>'].checked = true; rowselect(this);" id="r_<?php echo $i; ?>">
+               <td valign="top"><input type="radio" id="t_<?php echo $i; ?>" name="mod_dir" value="<?php echo $dir_name; ?>" /></td>
+               <td nowrap="nowrap" valign="top"><label for="t_<?php echo $i; ?>"><?php echo $module->getName(); if ($readme <> '') echo '&nbsp;<a href="#" onclick="ATutor.poptastic(\''.AT_BASE_HREF.'mods/'.$dir_name.'/'.$readme.'\');return false;">'._AT('view_readme').'</a>'; ?></label></td>
+               <td valign="top"><?php
+                       if ($module->isCore()) {
+                               echo '<strong>'._AT('core').'</strong>';
+                       } else if ($module->isStandard()) {
+                               echo _AT('standard');
+                       } else {
+                               echo _AT('extra');
+                       }
+                       ?></td>
+               <td valign="top"><?php
+                       if ($module->isEnabled()) {
+                               echo _AT('enabled');
+                       } else if ($module->isMissing()) {
+                               echo '<strong>'._AT('missing').'</strong>';
+                       } else if ($module->isPartiallyUninstalled()) {
+                               echo _AT('partially_uninstalled');
+                       } else {
+                               echo '<strong>'._AT('disabled').'</strong>';
+                       }
+                       ?></td>
+               <td valign="top" align="center">
+                       <?php if ($module->getCronInterval()): ?>
+                               <?php echo _AT('minutes', $module->getCronInterval()); ?>
+                       <?php else: ?>
+                               -
+                       <?php endif; ?>
+               </td>
+               <td valign="top"><code><?php echo $dir_name; ?>/</code></td>
+       </tr>
+<?php endforeach; ?>
+<?php if (!$this->keys): ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
diff --git a/docs/themes/default/admin/modules/install_modules.tmpl.php b/docs/themes/default/admin/modules/install_modules.tmpl.php
new file mode 100644 (file)
index 0000000..f5e0bc5
--- /dev/null
@@ -0,0 +1,142 @@
+
+<form name="frm_upload" enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" >
+       
+<div class="input-form">
+               <div class="row"><?php echo _AT("upload_module"); ?></div>
+
+               <div class="row">
+                       <input type="hidden" name="MAX_FILE_SIZE" value="52428800" />
+                       <input type="file" name="modulefile"  size="50" />
+               </div>
+               
+               <div class="row buttons">
+                       <input type="submit" name="install_upload" value="<?php echo _AT('install'); ?>" onclick="javascript: return validate_filename(); " class="submit" />
+                       <input type="hidden" name="uploading" value="1" />
+               </div>
+</div>
+
+</form>
+
+<?php 
+if (count($this->keys) > 0)
+{
+?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="installform">
+<table class="data" summary="" rules="cols">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('module_name'); ?></th>
+       <th scope="col"><?php echo _AT('directory_name'); ?></th>
+       <th scope="col"><?php echo _AT('description'); ?></th>
+</tr>
+</thead>
+
+<tfoot>
+<tr>
+       <td colspan="4">
+               <input type="submit" name="install_manually"  value="<?php echo _AT('install'); ?>" />
+       </td>
+</tr>
+</tfoot>
+
+<tbody>
+<?php if (!empty($this->keys)): ?>
+       <?php foreach($this->keys as $dir_name) : $module =& $this->module_list[$dir_name]; ?>
+               <tr onmousedown="document.installform['m_<?php echo $dir_name; ?>'].checked = true; rowselect(this);" id="r_<?php echo $dir_name; ?>">
+                       <td valign="top"><input type="radio" id="m_<?php echo $dir_name; ?>" name="mod" value="<?php echo $dir_name; ?>" /></td>
+                       <td valign="top"><label for="m_<?php echo $row['dir_name']; ?>"><?php echo $module->getName(); ?></label></td>
+                       <td valign="top"><code><?php echo $dir_name; ?>/</code></td>
+                       <td valign="top"><?php echo $module->getDescription($_SESSION['lang']); ?></td>
+               </tr>
+       <?php endforeach; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
+<br />
+<?php 
+}
+?>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<?php 
+?>
+<table class="data" summary="" rules="cols">
+<thead>
+       <tr>
+               <th scope="col">&nbsp;</th>
+               <th scope="col"><?php echo _AT('module_name');?></th>
+               <th scope="col"><?php echo _AT('description');?></th>
+               <th scope="col"><?php echo _AT('version');?></th>
+               <th scope="col"><?php echo _AT('atutor_version_tested_with');?></th>
+               <th scope="col"><?php echo _AT('maintainers');?></th>
+               <th scope="col"><?php echo _AT('installed').'?';?></th>
+       </tr>
+</thead>
+       
+<tfoot>
+<tr>
+       <td colspan="7">
+               <input type="submit" name="install" value="<?php echo _AT('install'); ?>" />
+               <input type="submit" name="download" value="<?php echo _AT('download'); ?>" />
+               <input type="submit" name="version_history" value="<?php echo _AT('version_history'); ?>" />
+       </td>
+</tr>
+</tfoot>
+
+<tbody>
+<?php 
+$num_of_modules = count($this->module_list_array);
+
+if ($num_of_modules == 0)
+{
+?>
+
+<tr>
+       <td colspan="7"><?php echo _AT('none_found'); ?></td>
+</tr>
+
+<?php 
+}
+else
+{
+       // display modules
+       if(is_array($this->module_list_array))
+       {
+               for ($i=0; $i < $num_of_modules; $i++)
+               {
+                       // check if the module has been installed
+                       //$sql = "SELECT * FROM ".TABLE_PREFIX."modules WHERE dir_name = '" . $this->module_list_array[$i]["history"][0]["install_folder"] . "'";
+                       //$result = mysql_query($sql, $db) or die(mysql_error());
+
+                       if (mysql_num_rows($this->result) == 0) $installed = false;
+                       else $installed = true;
+
+?>
+       <tr onmousedown="document.form['m<?php echo $i; ?>'].checked = true; rowselect(this);"  id="r_<?php echo $i; ?>">
+               <td><input type="radio" name="id" value="<?php echo $i; ?>" id="m<?php echo $i; ?>" <?php if ($installed) echo 'disabled="disabled"'; ?> /></td>
+               <td><label for="m<?php echo $i; ?>"><?php echo $this->module_list_array[$i]["name"]; ?></label></td>
+               <td><?php echo $this->module_list_array[$i]["description"]; ?></td>
+               <td><?php echo $this->module_list_array[$i]["history"][0]["version"]; ?></td>
+               <td><?php echo $this->module_list_array[$i]["atutor_version"]; ?></td>
+               <td><?php echo $this->module_list_array[$i]["history"][0]["maintainer"]; ?></td>
+               <td><?php if ($installed) echo _AT("installed"); else echo _AT("not_installed"); ?></td>
+       </tr>
+
+<?php 
+               }
+       }
+
+?>
+</tbody>
+
+<?php 
+}
+?>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/modules/version_history.tmpl.php b/docs/themes/default/admin/modules/version_history.tmpl.php
new file mode 100644 (file)
index 0000000..af2cc21
--- /dev/null
@@ -0,0 +1,76 @@
+<?php 
+//$this->module_list_array[$id]['history']
+?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<div class="input-form">
+<input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+<table class="data" summary="" style="width: 100%" rules="cols">
+<thead>
+       <tr>
+               <th scope="col">&nbsp;</th>
+               <th scope="col"><?php echo _AT('version');?></th>
+               <th scope="col"><?php echo _AT('publish_date');?></th>
+               <th scope="col"><?php echo _AT('state');?></th>
+               <th scope="col"><?php echo _AT('maintainers');?></th>
+               <th scope="col"><?php echo _AT('notes');?></th>
+       </tr>
+</thead>
+
+<tfoot>
+<tr>
+       <td colspan="6">
+               <input type="submit" name="download" value="<?php echo _AT('download'); ?>" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </td>
+</tr>
+</tfoot>
+
+<tbody>
+<?php 
+$num_of_versions = count($this->module_list_array[$this->id]['history']);
+
+if ($num_of_versions == 0)
+{
+?>
+
+<tr>
+       <td colspan="7">
+<?php 
+       echo _AT('none_found'); 
+?>
+       </td>
+</tr>
+
+<?php 
+}
+else
+{
+       // display version list
+       if(is_array($this->module_list_array[$this->id]['history']))
+       {
+               for ($i=0; $i < $num_of_versions; $i++)
+               {
+?>
+       <tr onmousedown="document.form['m<?php echo $i; ?>'].checked = true; rowselect(this);"  id="r_<?php echo $i; ?>">
+               <td><input type="radio" name="vid" value="<?php echo $i; ?>" id="m<?php echo $i; ?>" /></td>
+               <td><label for="m<?php echo $i; ?>"><?php echo $this->module_list_array[$this->id]["name"] . ' ' .$this->module_list_array[$this->id]['history'][$i]["version"]; ?></label></td>
+               <td><?php echo $this->module_list_array[$this->id]['history'][$i]["date"]; ?></td>
+               <td><?php echo $this->module_list_array[$this->id]['history'][$i]["state"]; ?></td>
+               <td><?php echo $this->module_list_array[$this->id]['history'][$i]["maintainer"]; ?></td>
+               <td><?php echo $this->module_list_array[$this->id]['history'][$i]["notes"]; ?></td>
+       </tr>
+
+<?php 
+               }
+       }
+
+?>
+</tbody>
+
+<?php 
+}
+?>
+</table>
+
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/my_edit.tmpl.php b/docs/themes/default/admin/my_edit.tmpl.php
new file mode 100644 (file)
index 0000000..829bb05
--- /dev/null
@@ -0,0 +1,18 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="input-form">
+       <div class="row">
+               <label for="real_name"><?php echo _AT('real_name'); ?></label><br />
+               <input type="text" name="real_name" id="real_name" size="40" value="<?php echo htmlspecialchars($_POST['real_name']); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />
+               <input type="text" name="email" id="email" size="40" value="<?php echo htmlspecialchars($_POST['email']); ?>" />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
diff --git a/docs/themes/default/admin/patcher/index_admin.tmpl.php b/docs/themes/default/admin/patcher/index_admin.tmpl.php
new file mode 100644 (file)
index 0000000..6ba0562
--- /dev/null
@@ -0,0 +1,116 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<div class="input-form">
+
+<table class="data" summary="" style="width: 100%" rules="cols">
+<thead>
+       <tr>
+               <th scope="col">&nbsp;</th>
+               <th scope="col"><?php echo _AT('atutor_patch_id');?></th>
+               <th scope="col"><?php echo _AT('description');?></th>
+               <th scope="col"><?php echo _AT('status');?></th>
+               <th scope="col"><?php echo _AT('available_to');?></th>
+               <th scope="col"><?php echo _AT('author');?></th>
+               <th scope="col"><?php echo _AT('installed_date');?></th>
+               <th scope="col"><?php echo _AT('view_message');?></th>
+       </tr>
+</thead>
+       
+<tbody>
+<?php 
+if ($this->num_of_patches == 0)
+{
+?>
+
+<tr>
+       <td colspan="8">
+<?php 
+       echo _AT('none_found');
+?>
+       </td>
+</tr>
+
+<?php 
+}
+else
+{
+       while ($row = mysql_fetch_assoc($this->result))
+       {
+                       print_patch_row($row, $row['patches_id'], false);
+       }
+       
+       $array_id = 0;
+       // display un-installed patches
+       if(is_array($this->patch_list_array))
+       {
+               foreach ($this->patch_list_array as $row_num => $new_patch)
+               {
+                       if (!is_patch_installed($new_patch['atutor_patch_id']))
+                       {
+                               $dependent_patches_installed = true;
+                               $dependent_patches = "";
+                               
+                               // check if the dependent patches are installed
+                               if (is_array($new_patch["dependent_patches"]))
+                               {
+                                       
+                                       foreach ($new_patch["dependent_patches"] as $num => $dependent_patch)
+                                       {
+                                               if (!is_patch_installed($dependent_patch))
+                                               {
+                                                       $dependent_patches_installed = false;
+                                                       $dependent_patches .= $dependent_patch. ", ";
+                                               }
+                                       }
+                                       
+                                       // remove the last comma in the string
+                                       if ($dependent_patches <> "") $dependent_patches = substr($dependent_patches, 0, -2);
+                               }
+       
+                               // display patch row
+                               if ($dependent_patches_installed)
+                                       print_patch_row($new_patch, $array_id++, true);
+                               else
+                               {
+                                       print_patch_row($new_patch, $array_id++, false);
+                                       $dependent_patches_installed = true;
+                               }
+                       }
+                       else
+                               $array_id++;
+               }
+       }
+?>
+</tbody>
+<tfoot>
+<tr>
+       <td colspan="8">
+               <input type="submit" name="install" value="<?php echo _AT('install'); ?>" />
+       </td>
+</tr>
+</tfoot>
+
+<?php 
+}
+?>
+</table>
+
+</div>
+</form>
+
+<form name="frm_upload" enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" >
+       
+<div class="input-form">
+               <div class="row"><?php echo _AT("upload_patch"); ?></div>
+
+               <div class="row">
+                       <input type="hidden" name="MAX_FILE_SIZE" value="52428800" />
+                       <input type="file" name="patchfile"  size="50" />
+               </div>
+               
+               <div class="row buttons">
+                       <input type="submit" name="install_upload" value="Install" onclick="javascript: return validate_filename(); " class="submit" />
+                       <input type="hidden" name="uploading" value="1" />
+               </div>
+</div>
+
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/patcher/myown_patches.tmpl.php b/docs/themes/default/admin/patcher/myown_patches.tmpl.php
new file mode 100644 (file)
index 0000000..eed4740
--- /dev/null
@@ -0,0 +1,57 @@
+<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<table summary="" class="data" rules="cols" align="center" style="width: 95%;">
+
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('atutor_patch_id'); ?></th>
+       <th scope="col"><?php echo _AT('atutor_version_to_apply'); ?></th>
+       <th scope="col"><?php echo _AT('description'); ?></th>
+       <th scope="col"><?php echo _AT('last_modified'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="5">
+               <div class="row buttons">
+               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+               <input type="submit" name="remove" value="<?php echo _AT('remove'); ?>" /> 
+               </div>
+       </td>
+</tr>
+<tr>
+       <td colspan="5"></td>
+</tr>
+</tfoot>
+<tbody>
+<?php
+
+if (mysql_num_rows($this->result) == 0)
+{
+?>
+       <tr>
+               <td colspan="5"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php 
+}
+else
+{
+       while ($row = mysql_fetch_assoc($this->result))
+       {
+       ?>
+               <tr onmousedown="document.form['m<?php echo $row['myown_patch_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['myown_patch_id']; ?>">
+                       <td width="10"><input type="radio" name="myown_patch_id" value="<?php echo $row['myown_patch_id']; ?>" id="m<?php echo $row['myown_patch_id']; ?>" <?php if ($row['myown_patch_id']==$_POST['myown_patch_id']) echo 'checked'; ?> /></td>
+                       <td><label for="m<?php echo $row['myown_patch_id']; ?>"><?php echo $row['atutor_patch_id']; ?></label></td>
+                       <td><?php echo $row['applied_version']; ?></td>
+                       <td><?php echo $row['description']; ?></td>
+                       <td><?php echo $row['last_modified']; ?></td>
+               </tr>
+<?php 
+       }
+}
+?>
+
+</tbody>
+</table>
+
+</form>
diff --git a/docs/themes/default/admin/system_preferences/add_feed.tmpl.php b/docs/themes/default/admin/system_preferences/add_feed.tmpl.php
new file mode 100644 (file)
index 0000000..6a73fa6
--- /dev/null
@@ -0,0 +1,51 @@
+<?php
+global $stripslashes;
+
+if (!isset($_POST['confirm'])) {
+?>
+       <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+               <input type="hidden" name="confirm" value="1" />
+
+               <div class="input-form" style="width: 95%x">
+                       <div class="row">
+                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+                               <input id="title" name="title" type="text" size="60" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_POST['title'])); ?>" /><br />
+                       </div>
+
+                       <div class="row">
+                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="url"><?php echo _AT('url'); ?></label><br />
+                               <input id="url" name="url" type="text" size="60" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_POST['url'])); ?>" /><br />
+                       </div>
+
+                       <div class="row buttons">
+                               <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" />
+                               <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
+                       </div>
+               </div>
+       </form>
+<?php 
+} else { ?>
+
+       <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <input type="hidden" name="new" value="<?php echo $_POST['new']; ?>" />
+
+       <div class="input-form">
+               <div class="row">
+                       <h3><?php if (file_exists($this->title_file)) { 
+                                       readfile($this->title_file); 
+                               } else {
+                                       echo $_POST['title'];
+                               }?>
+                       </h3>
+               </div>
+
+               <div class="row">
+                       <?php echo $this->output; ?>
+               </div>
+       </div>
+       </form>
+
+       <?php
+               $this->msg->printConfirm();
+}
+?>
\ No newline at end of file
diff --git a/docs/themes/default/admin/system_preferences/config_edit.tmpl.php b/docs/themes/default/admin/system_preferences/config_edit.tmpl.php
new file mode 100644 (file)
index 0000000..e0febae
--- /dev/null
@@ -0,0 +1,322 @@
+<?php global $_config, $languageManager, $_config_defaults, $stripslashes;?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<div class="input-form">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="sitename"><?php echo _AT('site_name'); ?></label><br />
+               <input type="text" name="site_name" size="40" maxlength="60" id="sitename" value="<?php if (!empty($_POST['site_name'])) { echo $stripslashes(htmlspecialchars($_POST['site_name'])); } else { echo $_config['site_name']; } ?>" />
+       </div>
+
+       <div class="row">
+               <label for="home_url"><?php echo _AT('home_url'); ?></label><br />
+
+               <input type="text" name="home_url" size="50" maxlength="60" id="home_url" value="<?php if (!empty($_POST['home_url'])) { echo $stripslashes(htmlspecialchars($_POST['home_url'])); } else { echo $_config['home_url']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="default_lang"><?php echo _AT('default_language'); ?></label><br />
+
+               <?php if (!empty($_POST['default_language'])) { 
+                               $select_lang = $_POST['default_language']; 
+                       } else { 
+                               $select_lang = $_config['default_language'];
+                       } ?>
+               <?php if ($disabled): ?>
+                       <select name="default_language" id="default_lang" disabled="disabled"><option><?php echo $select_lang; ?></option></select>
+               <?php else: ?>
+                       <?php $languageManager->printDropdown($select_lang, 'default_language', 'default_lang'); ?>
+               <?php endif; ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="cemail"><?php echo _AT('contact_email'); ?></label><br />
+               <input type="text" name="contact_email" id="cemail" size="40" value="<?php if (!empty($_POST['email'])) { echo $stripslashes(htmlspecialchars($_POST['email'])); } else { echo $_config['contact_email']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="time_zone"><?php echo _AT('time_zone'); ?></label><br />
+
+               <?php
+
+
+               // Replace this hack to use the PHP timezone functions when the PHP requirement is raised to 5.3
+               global $utc_timezones; // set in include/lib/constants.inc.php
+               $local_offset = ((date(Z)/3600));
+               echo '<select name="time_zone" id="time_zone">';        
+                       echo '<option value="0">'._AT('none').'</option>';
+               foreach ($utc_timezones as $zone => $offset){
+                       if(($offset[1]) == $_config['time_zone']){
+                       echo '<option value="'.($offset[1]).'" selected="selected">'.$offset[1].'</option>';
+                       }else{
+                       echo '<option value="'.($offset[1]).'">'.$offset[1].'</option>';
+
+                       }
+               }
+               echo "</select>";
+
+
+               //echo '<input type="text" name="time_zone" value="'.$_config['time_zone'].'" size="5" maxlength="5"/> ';
+
+               // If PHP 5+ generate a list of timezones
+/*
+               if(phpversion() >= 5){
+                       $timezone_names = timezone_identifiers_list();
+               }else{
+               // if less than PHP version 5, read a text file to generate the menu
+                       $timezone_names = file("timezones.txt");
+               }
+
+               echo '<select name="time_zone">';
+               foreach($timezone_names as $timezone_name){
+                       if($timezone_name == $_config{'time_zone'}){
+                               $selected = ' selected="selected"';
+                       }
+                       echo '<option'.$selected.'>'.$timezone_name.'</option>';
+                       $selected = '';
+               }
+               echo '</select>';
+*/
+echo AT_date(_AT('server_date_format'), '', AT_DATE_MYSQL_DATETIME);
+?>
+       </div>
+
+       <div class="row">
+               <label for="maxfile"><?php echo _AT('maximum_file_size'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_file_size']; ?>)<br />
+               <input type="text" size="10" name="max_file_size" id="maxfile" value="<?php if (!empty($_POST['max_file_size'])) { echo $stripslashes(htmlspecialchars($_POST['max_file_size'])); } else { echo $_config['max_file_size']; } ?>"  /> <?php echo _AT('bytes'); ?>
+       </div>
+
+       <div class="row">
+               <label for="maxcourse"><?php echo _AT('maximum_course_size'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_course_size']; ?>)<br />
+               <input type="text" size="10" name="max_course_size" id="maxcourse" value="<?php if (!empty($_POST['max_course_size'])) { echo $stripslashes(htmlspecialchars($_POST['max_course_size'])); } else { echo $_config['max_course_size']; } ?>"  /> <?php echo _AT('bytes'); ?>
+       </div>
+
+       <div class="row">
+               <label for="float"><?php echo _AT('maximum_course_float'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_course_float']; ?>)<br />
+               <input type="text" size="10" name="max_course_float" id="float" value="<?php if (!empty($_POST['max_course_float'])) { echo $stripslashes(htmlspecialchars($_POST['max_course_float'])); } else { echo $_config['max_course_float']; } ?>"  /> <?php echo _AT('bytes'); ?>
+       </div>
+
+       <div class="row">
+               <label for="maximum_login_attempt"><?php echo _AT('maximum_login_attempt'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_login']; ?>)<br />
+               <input type="text" size="10" name="max_login" id="maximum_login_attempt" value="<?php if (!empty($_POST['max_login'])) { echo $stripslashes(htmlspecialchars($_POST['max_login'])); } else { echo $_config['max_login']; } ?>"  /> <?php echo _AT('times'); ?>
+       </div>
+       
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('display_name_format'); ?> </legend>
+               (<?php echo _AT('default'); ?>: <?php echo _AT($this->display_name_formats[$_config_defaults['display_name_format']], _AT('login_name'), _AT('first_name'), _AT('second_name'), _AT('last_name')); ?>)<br />
+               <?php foreach ($this->display_name_formats as $key => $value): ?>
+                       <input type="radio" name="display_name_format" value="<?php echo $key; ?>" id="dnf<?php echo $key; ?>" <?php if ($_config['display_name_format'] == $key) { echo 'checked="checked"'; }?> /><label for="dnf<?php echo $key; ?>"><?php echo _AT($value, _AT('login_name'), _AT('first_name'), _AT('second_name'), _AT('last_name')); ?></label><br />
+               <?php endforeach; ?>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('master_list_authentication'); ?></legend>
+                (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['master_list'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="master_list" value="1" id="ml_y" <?php if ($_config['master_list']) { echo 'checked="checked"'; }?>  /><label for="ml_y"><?php echo _AT('enable'); ?></label> 
+
+               <input type="radio" name="master_list" value="0" id="ml_n" <?php if(!$_config['master_list']) { echo 'checked="checked"'; }?>  /><label for="ml_n"><?php echo  _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+       
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('allow_registration'); ?></legend> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_registration'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_registration" value="1" id="reg_y" <?php if($_config['allow_registration']) { echo 'checked="checked"'; }?>  /><label for="reg_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_registration" value="0" id="reg_n" <?php if(!$_config['allow_registration']) { echo 'checked="checked"'; }?>  /><label for="reg_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+       
+       <div class="row">
+       <fieldset><legend>      <?php echo _AT('allow_browse'); ?> </legend>
+       (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_browse'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_browse" value="1" id="browse_y" <?php if($_config['allow_browse']) { echo 'checked="checked"'; }?>  /><label for="browse_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_browse" value="0" id="browse_n" <?php if(!$_config['allow_browse']) { echo 'checked="checked"'; }?>  /><label for="browse_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('allow_instructor_registration'); ?> </legend>
+       (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_instructor_registration'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_instructor_registration" value="1" id="enrollreg_y" <?php if($_config['allow_instructor_registration']) { echo 'checked="checked"'; }?>  /><label for="enrollreg_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_instructor_registration" value="0" id="enrollreg_n" <?php if(!$_config['allow_instructor_registration']) { echo 'checked="checked"'; }?>  /><label for="enrollreg_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+       
+       <div class="row">               
+       <fieldset><legend><?php echo _AT('use_captcha'); ?> </legend>(<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['use_captcha'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <?php if (extension_loaded('gd')): ?>
+               <input type="radio" name="use_captcha" value="1" id="use_captcha_y" <?php if($_config['use_captcha']) { echo 'checked="checked"'; }?>  /><label for="use_captcha_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="use_captcha" value="0" id="use_captcha_n" <?php if(!$_config['use_captcha']) { echo 'checked="checked"'; }?>  /><label for="use_captcha_n"><?php echo _AT('disable'); ?></label>
+               <?php else: ?>
+               <input type="radio" name="use_captcha" value="1" id="use_captcha_y" disabled="disabled" /><label for="use_captcha_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="use_captcha" value="0" id="use_captcha_n" checked="checked" /><label for="use_captcha_n"><?php echo _AT('disable'); ?></label>
+               <?php endif; ?>
+               </fieldset>
+       </div>
+       
+       <div class="row">
+       <fieldset><legend><?php echo _AT('allow_unenroll'); ?></legend>
+                (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_unenroll'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_unenroll" value="1" id="ene_y" <?php if($_config['allow_unenroll']) { echo 'checked="checked"'; }?>  /><label for="ene_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_unenroll" value="0" id="ene_n" <?php if(!$_config['allow_unenroll']) { echo 'checked="checked"'; }?>  /><label for="ene_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('require_email_confirmation'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['email_confirmation'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="email_confirmation" value="1" id="ec_y" <?php if ($_config['email_confirmation']) { echo 'checked="checked"'; }?>  /><label for="ec_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="email_confirmation" value="0" id="ec_n" <?php if(!$_config['email_confirmation']) { echo 'checked="checked"'; }?>  /><label for="ec_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+               
+       <div class="row">
+       <fieldset><legend><?php echo _AT('allow_instructor_requests'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_instructor_requests'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_instructor_requests" value="1" id="air_y" <?php if($_config['allow_instructor_requests']) { echo 'checked="checked"'; }?>  /><label for="air_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_instructor_requests" value="0" id="air_n" <?php if(!$_config['allow_instructor_requests']) { echo 'checked="checked"'; }?>  /><label for="air_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('instructor_request_email_notification'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['email_notification'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="email_notification" value="1" id="en_y" <?php if ($_config['email_notification']) { echo 'checked="checked"'; }?>  /><label for="en_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="email_notification" value="0" id="en_n" <?php if(!$_config['email_notification']) { echo 'checked="checked"'; }?>  /><label for="en_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('auto_approve_instructors'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['auto_approve_instructors'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="auto_approve_instructors" value="1" id="aai_y" <?php if($_config['auto_approve_instructors']) { echo 'checked="checked"'; }?>  /><label for="aai_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="auto_approve_instructors" value="0" id="aai_n" <?php if(!$_config['auto_approve_instructors']) { echo 'checked="checked"'; }?>  /><label for="aai_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('theme_specific_categories'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['theme_categories'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="theme_categories" value="1" id="tc_y" <?php if($_config['theme_categories']) { echo 'checked="checked"'; }?>  /><label for="tc_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="theme_categories" value="0" id="tc_n" <?php if(!$_config['theme_categories']) { echo 'checked="checked"'; }?>  /><label for="tc_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('user_contributed_notes'); ?> </legend>
+       (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['user_notes'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="user_notes" value="1" id="un_y" <?php if($_config['user_notes']) { echo 'checked="checked"'; }?>  /><label for="un_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="user_notes" value="0" id="un_n" <?php if(!$_config['user_notes']) { echo 'checked="checked"'; }?>  /><label for="un_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+               <label for="ext"><?php echo _AT('illegal_file_extensions'); ?></label><br />
+               <textarea name="illegal_extentions" cols="24" id="ext" rows="2" class="formfield" ><?php if ($_config['illegal_extentions']) { echo str_replace('|',' ',$_config['illegal_extentions']); }?></textarea>
+       </div>
+
+       <div class="row">
+               <label for="cache"><?php echo _AT('cache_directory'); ?></label><br />
+               <input type="text" name="cache_dir" id="cache" size="40" value="<?php if (!empty($_POST['cache_dir'])) { echo $stripslashes(htmlspecialchars($_POST['cache_dir'])); } else { echo $_config['cache_dir']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="latex_server"><?php echo _AT('latex_server'); ?></label><br />
+               <input type="text" name="latex_server" id="latex_server" size="40" value="<?php if (!empty($_POST['latex_server'])) { echo $stripslashes(htmlspecialchars($_POST['latex_server'])); } else { echo $_config['latex_server']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="course_backups"><?php echo _AT('course_backups'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['course_backups']; ?>)<br />
+               <input type="text" size="2" name="course_backups" id="course_backups" value="<?php if (!empty($_POST['course_backups'])) { echo $stripslashes(htmlspecialchars($_POST['course_backups'])); } else { echo $_config['course_backups']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="sent_msgs_ttl"><?php echo _AT('sent_msgs_ttl_text'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['sent_msgs_ttl']; ?>)<br />
+               <input type="text" size="3" name="sent_msgs_ttl" id="sent_msgs_ttl" value="<?php if (!empty($_POST['sent_msgs_ttl'])) { echo intval($_POST['sent_msgs_ttl']); } else { echo $_config['sent_msgs_ttl']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <fieldset>
+               <legend><?php echo _AT('auto_check_new_version'); ?></legend>
+                (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['check_version'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="check_version" value="1" id="cv_y" <?php if($_config['check_version']) { echo 'checked="checked"'; }?>  /><label for="cv_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="check_version" value="0" id="cv_n" <?php if(!$_config['check_version']) { echo 'checked="checked"'; }?>  /><label for="cv_n"><?php echo _AT('disable'); ?></label>
+               </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('file_storage_version_control'); ?> </legend>
+       (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['fs_versioning'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="fs_versioning" value="1" id="cf_y" <?php if($_config['fs_versioning']) { echo 'checked="checked"'; }?>  /><label for="cf_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="fs_versioning" value="0" id="cf_n" <?php if(!$_config['fs_versioning']) { echo 'checked="checked"'; }?>  /><label for="cf_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <input type="hidden" name="old_enable_mail_queue" value="<?php echo $_config['enable_mail_queue']; ?>" />
+               <legend><?php echo _AT('enable_mail_queue'); ?></legend>
+                (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['enable_mail_queue'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <?php echo _AT('mail_queue_cron'); ?><br />
+               <?php if (!$_config['last_cron'] || (time() - (int) $_config['last_cron'] > 2 * 60 * 60)): ?>
+                       
+                       <input type="radio" name="enable_mail_queue" id="mq_y" value="1" disabled="disabled" /><?php echo _AT('enable'); ?> 
+                       <label for="mq_y"><?php echo _AT('enable'); ?></label> 
+                       <input type="radio" name="enable_mail_queue" value="0" id="mq_n" checked="checked" />
+                       <label for="mq_n"><?php echo _AT('disable'); ?></label>
+               <?php else: ?>
+       
+                       <input type="radio" name="enable_mail_queue" value="1" id="mq_y" <?php if($_config['enable_mail_queue']) { echo 'checked="checked"'; }?>  />
+                       <label for="mq_y"><?php echo _AT('enable'); ?></label> 
+                       <input type="radio" name="enable_mail_queue" value="0" id="mq_n" <?php if(!$_config['enable_mail_queue']) { echo 'checked="checked"'; }?>  />
+                       <label for="mq_n"><?php echo _AT('disable'); ?></label>
+               <?php endif; ?>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('auto_install_languages'); ?> </legend>
+               (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['auto_install_languages'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <?php echo _AT('auto_install_languages_cron'); ?><br />
+               <?php if (!$_config['last_cron'] || (time() - (int) $_config['last_cron'] > 2 * 60 * 60)): ?>
+                       <input type="radio" name="auto_install_languages" id="ai_y" value="1" disabled="disabled" />
+                       <label for="ai_y"><?php echo _AT('enable'); ?> </label>
+                       <input type="radio" name="auto_install_languages" value="0" id="ai_n" checked="checked" />
+                       <label for="ai_n"><?php echo _AT('disable'); ?></label>
+               <?php else: ?>
+                       <input type="radio" name="auto_install_languages" value="1" id="ai_y" <?php if($_config['auto_install_languages']) { echo 'checked="checked"'; }?>  /><label for="ai_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="auto_install_languages" value="0" id="ai_n" <?php if(!$_config['auto_install_languages']) { echo 'checked="checked"'; }?>  /><label for="ai_n"><?php echo _AT('disable'); ?></label>
+               <?php endif; ?>
+               </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('pretty_url'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['pretty_url'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="pretty_url" value="1" id="pu_y" <?php if($_config['pretty_url']) { echo 'checked="checked"'; }?> onclick="apache_mod_rewrite_toggler(true);"/><label for="pu_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="pretty_url" value="0" id="pu_n" <?php if(!$_config['pretty_url']) { echo 'checked="checked"'; }?> onclick="apache_mod_rewrite_toggler(false);"/><label for="pu_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('course_dir_name'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['course_dir_name'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="course_dir_name" value="1" id="cdn_y" <?php if($_config['course_dir_name']) { echo 'checked="checked"'; }?> /><label for="cdn_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="course_dir_name" value="0" id="cdn_n" <?php if(!$_config['course_dir_name']) { echo 'checked="checked"'; }?>  /><label for="cdn_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('apache_mod_rewrite'); ?></legend>
+               <?php if (function_exists('apache_get_modules') && in_array('mod_rewrite', apache_get_modules())): ?>
+                       <?php echo _AT('mod_rewrite'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['apache_mod_rewrite'] ? _AT('enable') : _AT('disable')); ?>)<br />
+                       <input type="radio" name="apache_mod_rewrite" value="1" id="mr_y" <?php if($_config['apache_mod_rewrite']) { echo 'checked="checked"'; }?> /><label for="mr_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="apache_mod_rewrite" value="0" id="mr_n" <?php if(!$_config['apache_mod_rewrite']) { echo 'checked="checked"'; }?>  /><label for="mr_n"><?php echo _AT('disable'); ?></label>
+               <?php else: ?>
+                       <?php echo _AT('mod_rewrite'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['apache_mod_rewrite'] ? _AT('enable') : _AT('disable')); ?>)<br />
+                       <input type="radio" name="apache_mod_rewrite" value="1" id="mr_y" disabled="disabled" /><label for="mr_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="apache_mod_rewrite" value="0" id="mr_n" checked="checked" /><label for="mr_n"><?php echo _AT('disable'); ?></label>
+               <?php endif; ?>
+       </fieldset>
+       </div>
+
+       <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s"  />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/system_preferences/cron_config.tmpl.php b/docs/themes/default/admin/system_preferences/cron_config.tmpl.php
new file mode 100644 (file)
index 0000000..60b9389
--- /dev/null
@@ -0,0 +1,10 @@
+<?php global $_config; ?>
+<div class="input-form">
+       <div class="row">
+               <p><?php echo _AT('cron_url_usage'); ?></p>
+       </div>
+       <div class="row">
+               <?php echo _AT('cron_url'); ?><br />
+               <code><?php echo AT_BASE_HREF; ?>admin/cron.php?k=<?php echo $_config['cron_key']; ?></code>
+       </div>
+</div>
\ No newline at end of file
diff --git a/docs/themes/default/admin/system_preferences/edit_feed.tmpl.php b/docs/themes/default/admin/system_preferences/edit_feed.tmpl.php
new file mode 100644 (file)
index 0000000..8f48b4e
--- /dev/null
@@ -0,0 +1,20 @@
+<?php global $stripslashes;?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
+       <input type="hidden" name="fid" value="<?php echo $this->feed_id; ?>" />
+       <div class="input-form" style="width:95%">
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+                       <input id="title" name="title" type="text" size="60" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_GET['title'])); ?>" /><br />
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="url"><?php echo _AT('url'); ?></label><br />
+                       <input id="url" name="url" type="text" size="60" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_GET['url'])); ?>" /><br />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" />
+                       <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
+               </div>
+       </div>
+</form>
diff --git a/docs/themes/default/admin/system_preferences/index.tmpl.php b/docs/themes/default/admin/system_preferences/index.tmpl.php
new file mode 100644 (file)
index 0000000..9c4a7b8
--- /dev/null
@@ -0,0 +1,44 @@
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
+
+<table class="data" summary="Title and URL of News feeds" rules="cols">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('title'); ?></th>
+       <th scope="col"><?php echo _AT('url'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="3">
+               <input type="submit" name="preview" value="<?php echo _AT('preview'); ?>" />
+               <input type="submit" name="edit"    value="<?php echo _AT('edit'); ?>" />
+               <input type="submit" name="delete"  value="<?php echo _AT('delete'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php 
+
+
+if (!($row = mysql_fetch_assoc($this->result))) { 
+?>
+
+       <tr>
+               <td colspan="3"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php } else { ?>
+       <?php do { 
+               $title_file = AT_CONTENT_DIR.'feeds/'.$row['feed_id'].'_rss_title.cache'; ?>
+               <tr onkeydown="document.form['f_<?php echo $row['feed_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['f_<?php echo $row['feed_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['feed_id']; ?>">
+                       <td valign="top"><input type="radio" id="f_<?php echo $row['feed_id']; ?>" name="fid" value="<?php echo $row['feed_id']; ?>" /></td>
+                       <td><label for="f_<?php echo $row['feed_id']; ?>"><?php if (file_exists($title_file)) { readfile($title_file); } ?></label></td>
+                       <td><?php echo $row['url']; ?></td>
+               </tr>
+       <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+
+<?php } ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/system_preferences/index_admin.tmpl.php b/docs/themes/default/admin/system_preferences/index_admin.tmpl.php
new file mode 100644 (file)
index 0000000..ab5ca8a
--- /dev/null
@@ -0,0 +1,15 @@
+<?php global $_config; ?>
+
+<div style="width:95%;margin-left:auto;margin-right:auto;">
+       <div class="headingbox"><h3><?php echo _AT('admin_social'); ?></h3></a></div>
+       <div class="contentbox">
+       <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
+               <p><?php echo _AT('shindig_blurb'); ?></p>
+
+                               <label for="shindig"><?php echo _AT('shindig_url'); ?></label>
+                               <input type="text" id="shindig" name="shindig_url" size="60" value="<?php echo $_config['shindig_url']; ?>" />
+
+               <input type="submit" name="save" value="<?php echo _AT('save'); ?>" />
+       </form>
+       </div>
+</div>
diff --git a/docs/themes/default/admin/system_preferences/language.tmpl.php b/docs/themes/default/admin/system_preferences/language.tmpl.php
new file mode 100644 (file)
index 0000000..3252b27
--- /dev/null
@@ -0,0 +1,47 @@
+<?php global $languageManager;?>
+<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+
+<table summary="ATutor langauge names in English and translated"; class="data" rules="cols">
+<colgroup>
+       <col />
+       <col class="sort" />
+       <col span="3" />
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('name_in_language'); ?></th>
+       <th scope="col"><?php echo _AT('name_in_english'); ?></th>
+       <th scope="col"><?php echo _AT('lang_code'); ?></th>
+       <th scope="col"><?php echo _AT('charset'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="5">
+               <?php if (defined('AT_DEVEL_TRANSLATE') && AT_DEVEL_TRANSLATE): ?>
+                       <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />  
+                       <input type="submit" name="export" value="<?php echo _AT('export'); ?>"  /> 
+                       <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /> 
+                       <?php echo _AT('or'); ?> <a href="mods/_core/languages/language_add.php"><?php echo _AT('add_a_new_language'); ?></a>
+               <?php else: ?>
+                       <input type="submit" name="export" value="<?php echo _AT('export'); ?>" /> 
+                       <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
+               <?php endif; ?>
+       </td>
+</tr>
+</tfoot>
+<tbody>
+       <?php foreach ($languageManager->getAvailableLanguages() as $codes): ?>
+               <?php $language = current($codes); ?>
+               <tr onmousedown="document.form['m<?php echo $language->getCode(); ?>'].checked = true; rowselect(this);" id="r_<?php echo $language->getCode(); ?>">
+                       <td><input type="radio" name="id" value="<?php echo $language->getCode(); ?>" id="m<?php echo $language->getCode(); ?>" /></td>
+                       <td><label for="m<?php echo $language->getCode(); ?>"><?php echo $language->getNativeName(); ?></label></td>
+                       <td><?php echo $language->getEnglishName(); ?></td>
+                       <td><?php echo strtolower($language->getCode()); ?></td>
+                       <td><?php echo strtolower($language->getCharacterSet()); ?></td>
+               </tr>
+       <?php endforeach; ?>
+</tbody>
+</table>
+</form>
diff --git a/docs/themes/default/admin/system_preferences/language_add.tmpl.php b/docs/themes/default/admin/system_preferences/language_add.tmpl.php
new file mode 100644 (file)
index 0000000..3d058e1
--- /dev/null
@@ -0,0 +1,53 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="import" value="1" />
+<div class="input-form" style="width:95%">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="code"><?php echo _AT('lang_code'); ?></label><br />
+               <input id="code" name="code" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['code']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="locale"><?php echo _AT('locale'); ?></label><br />
+               <input id="locale" name="locale" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['locale']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="charset"><?php echo _AT('charset'); ?></label><br />
+               <input id="charset" name="charset" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['charset']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="ltr"><?php echo _AT('direction'); ?></label><br />
+               <?php 
+                       if ($_POST['direction'] == 'rtl') { 
+                               $rtl = 'checked="checked"';  
+                               $ltr='';  
+                       } else { 
+                               $rtl = '';  
+                               $ltr='checked="checked"'; 
+                       }
+               ?>
+               <input id="ltr" name="direction" type="radio" value="ltr" <?php echo $ltr; ?> /><label for="ltr"><?php echo _AT('ltr'); ?></label>, <input id="rtl" name="direction" type="radio" value="rtl" <?php echo $rtl; ?> /><label for="rtl"><?php echo _AT('rtl'); ?></label>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="reg_exp"><?php echo _AT('reg_exp'); ?></label><br />
+               <input id="reg_exp" name="reg_exp" type="text" size="31" class="formfield" value="<?php echo $_POST['reg_exp']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="nname"><?php echo _AT('name_in_language'); ?></label><br />
+               <input id="nname" name="native_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['native_name']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ename"><?php echo _AT('name_in_english'); ?></label><br />
+               <input id="ename" name="english_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['english_name'];?>" />
+       </div>
+
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" /> <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />           
+       </div>
+</div>
+</form>
diff --git a/docs/themes/default/admin/system_preferences/language_edit.tmpl.php b/docs/themes/default/admin/system_preferences/language_edit.tmpl.php
new file mode 100644 (file)
index 0000000..db8725d
--- /dev/null
@@ -0,0 +1,56 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF'] . '?lang_code=' . $_GET['lang_code']; ?>">
+
+<input type="hidden" name="old_code" value="<?php echo $this->lang->getCode(); ?>" />
+
+<div class="input-form" style="width:95%">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="code"><?php echo _AT('lang_code'); ?></label><br />
+               <input id="code" name="code" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['code']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="locale"><?php echo _AT('locale'); ?></label><br />
+               <input id="locale" name="locale" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['locale']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="charset"><?php echo _AT('charset'); ?></label><br />
+               <input id="charset" name="charset" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['charset']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="ltr"><?php echo _AT('direction'); ?></label><br />
+               <?php 
+                       if ($_POST['direction'] == 'rtl') { 
+                               $rtl = 'checked="checked"';  
+                               $ltr='';  
+                       } else { 
+                               $rtl = '';  
+                               $ltr='checked="checked"'; 
+                       }
+               ?>
+               <input id="ltr" name="direction" type="radio" value="ltr" <?php echo $ltr; ?> /><label for="ltr"><?php echo _AT('ltr'); ?></label>, <input id="rtl" name="direction" type="radio" value="rtl" <?php echo $rtl; ?> /><label for="rtl"><?php echo _AT('rtl'); ?></label>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="reg_exp"><?php echo _AT('reg_exp'); ?></label><br />
+               <input id="reg_exp" name="reg_exp" type="text" size="31" class="formfield" value="<?php echo $_POST['reg_exp']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="nname"><?php echo _AT('name_in_language'); ?></label><br />
+               <input id="nname" name="native_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['native_name']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ename"><?php echo _AT('name_in_english'); ?></label><br />
+               <input id="ename" name="english_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['english_name'];?>" />
+       </div>
+
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" /> <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />           
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/system_preferences/language_editor.tmpl.php b/docs/themes/default/admin/system_preferences/language_editor.tmpl.php
new file mode 100644 (file)
index 0000000..214ce51
--- /dev/null
@@ -0,0 +1,61 @@
+<?php global $strlen?>
+<?php debug($this->num_results_row);?>
+hi
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               <div class="row">
+                       <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+               </div>
+
+               <div class="row">
+                       <?php echo _AT('type'); ?><br />
+                       <input type="radio" name="type" value="template" id="tyte" <?php if ($_GET['type'] == 'template') { echo 'checked="checked"'; } ?> /><label for="tyte"><?php echo _AT('template'); ?></label>
+                       <input type="radio" name="type" value="feedback" id="tyfe" <?php if ($_GET['type'] == 'feedback') { echo 'checked="checked"'; } ?> /><label for="tyfe"><?php echo _AT('feedback'); ?></label>
+               </div>
+
+               <div class="row">
+                       <input type="checkbox" name="custom" value="1" id="cus" <?php if (isset($_GET['custom'])) { echo 'checked="checked"'; } ?> /><label for="cus"><?php echo _AT('only_show_edited_terms'); ?></label>
+               </div>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?></label><br />
+                       <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+</form>
+
+<form name="form" method="post">
+<div class="input-form">
+       <table cellspacing="0" cellpadding="0">
+       <tr>
+       <td valign="top">
+               <?php if ($this->num_results): ?>
+                       <select size="<?php echo min(max($this->num_results,2), 25); ?>" name="terms" id="terms" onchange="javascript:showtext(this);">
+                               <?php
+                                       while ($row = mysql_fetch_assoc($result)): 
+                                               if ($strlen($row['text']) > 30) {
+                                                       $row['text'] = $substr($row['text'], 0, 28) . '...';
+                                               }
+                                       ?>
+                                               <option value="<?php echo $row['term']; ?>"><?php echo htmlspecialchars($row['text']); ?></option>
+                                       <?php endwhile; ?>
+                       </select>
+               <?php else: ?>
+                       <p><?php echo _AT('none_found'); ?></p>
+               <?php endif; ?>
+       </td>
+
+       <td valign="top">
+               <div class="row">
+                       <iframe src="mods/_core/languages/language_term.php" frameborder="0" height="430" width="450" marginheight="0" marginwidth="0" name="tran" id="tran"></iframe>
+               </div>
+       </td>
+       </tr>
+       </table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/system_preferences/language_import.tmpl.php b/docs/themes/default/admin/system_preferences/language_import.tmpl.php
new file mode 100644 (file)
index 0000000..16572e9
--- /dev/null
@@ -0,0 +1,53 @@
+<?php global $languageManager;?>
+<form name="form1" method="post" action="mods/_core/languages/language_import.php" enctype="multipart/form-data" onsubmit="openWindow('<?php echo AT_BASE_HREF; ?>tools/prog.php');">
+<div class="input-form">
+       <div class="row">
+               <p><?php echo _AT('import_lang_howto'); ?></p>
+       </div>
+       
+       <div class="row">
+               <label for="file"><?php echo _AT('import_a_new_lang'); ?></label><br />
+               <input type="file" name="file" id="file" />
+       </div>
+       
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('import'); ?>" />
+       </div>
+</div>
+</form>
+<form name="form1" method="post" action="mods/_core/languages/language_import.php">
+<div class="input-form">
+       <div class="row">
+               <?php echo _AT('import_remote_language'); ?>
+       </div>
+
+       <div class="row">
+               <?php
+                       
+                       $remoteLanguageManager = new RemoteLanguageManager();
+                       if ($remoteLanguageManager->getNumLanguages()) {
+                               $found = false;
+                               foreach ($remoteLanguageManager->getAvailableLanguages() as $codes){
+                                       $language = current($codes);
+                                       if (!$languageManager->exists($language->getCode()) && ($language->getStatus() == AT_LANG_STATUS_PUBLISHED)) {
+                                               if (!$found) {
+                                                       echo '<select name="language" title="language">';
+                                                       $found = true;
+                                               }
+                                               echo '<option value="'.$language->getCode().'">'.$language->getEnglishName().' - '.$language->getNativeName().'</option>';
+                                       }
+                               }
+                               if ($found) {
+                                       echo '</select></div>';
+                                       echo '<div class="row buttons"><input type="submit" name="submit_import" value="' . _AT('import') . '" class="button" /></div>';
+                               } else {
+                                       echo _AT('none_found');
+                                       echo '</div>';
+                               }
+                       } else {
+                               echo _AT('cannot_find_remote_languages');
+                               echo '</div>';
+                       }
+               ?>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/system_preferences/language_translate.tmpl.php b/docs/themes/default/admin/system_preferences/language_translate.tmpl.php
new file mode 100644 (file)
index 0000000..e32774e
--- /dev/null
@@ -0,0 +1,37 @@
+
+<form method="get">
+<div class="input-form">
+       <div class="row">
+               <h3><?php echo _AT('translate'); ?></h3>
+       </div>
+
+       <div class="row">
+               <p><?php echo _AT('translate_lang_howto'); ?></p>
+       </div>
+
+       <div class="row buttons">
+               <input type="button" onclick="javascript:window.open('<?php echo AT_BASE_HREF; ?>mods/_core/languages/translate_atutor.php', 'newWin1', 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=1, copyhistory=0, width=640, height=480')" value="<?php echo _AT('translate'); ?>" <?php echo $this->button_state; ?> />
+       </div>
+</div>
+</form>
+
+<?php if (defined('AT_DEVEL_TRANSLATE') && AT_DEVEL_TRANSLATE): ?>
+       <form name="form1" method="post" action="mods/_core/languages/language_translate.php">
+               <div class="input-form">
+                       <div class="row">
+                               Import partial language from the <strong>live ATutor language database</strong> to your local installation for translating.
+                       </div>
+                       <div class="row">
+                               <?php
+                                       require_once(AT_INCLUDE_PATH.'../mods/_core/languages/classes/RemoteLanguageManager.class.php');
+                                       $remoteLanguageManager = new RemoteLanguageManager();
+                                       $remoteLanguageManager->printDropdown($_SESSION['lang'], 'import_lang', 'import_lang');
+                               ?>
+                       </div>
+
+                       <div class="row buttons">
+                               <input type="submit" name="svn_submit" value="<?php echo _AT('import'); ?>" />
+                       </div>
+               </div>
+       </form>
+<?php endif; ?>
diff --git a/docs/themes/default/admin/system_preferences/module_prefs.tmpl.php b/docs/themes/default/admin/system_preferences/module_prefs.tmpl.php
new file mode 100644 (file)
index 0000000..f999c2b
--- /dev/null
@@ -0,0 +1,36 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
+       <div class="input-form" style="max-width: 95%">
+               <div class="row">
+                       <fieldset>      
+                       <legend><?php echo _AT("google_search_type_txt"); ?></legend>
+                       <?php
+                               if ($this->googleType==GOOGLE_TYPE_SOAP){
+                                       $type1=' checked="checked"'; 
+                               } elseif ($this->googleType==GOOGLE_TYPE_AJAX){
+                                       $type2=' checked="checked"'; 
+                               }
+                       ?>
+               
+                       <input type="radio" name="gtype" id="googleTypeSoap" value="<?php echo GOOGLE_TYPE_SOAP?>" <?php echo $type1 ?>/>
+                       <label for="googleTypeSoap"><?php echo _AT("google_search_soap"); ?></label><br/>
+
+                       <input type="radio" name="gtype" id="googleTypeAjax" value="<?php echo GOOGLE_TYPE_AJAX?>" <?php echo $type2 ?>/>
+                       <label for="googleTypeAjax"><?php echo _AT("google_search_ajax"); ?></label><br/>
+               </fieldset>
+               </div>
+               
+               <div class="row">
+                       <?php echo _AT('google_search_attn'); ?><br/><br/>
+                       <?php echo _AT('google_key_txt'); ?>
+               </div>
+               <div class="row">
+                       <label for="key">Key</label>
+                       <input type="text" name="key" size="80" id="key" value="<?php echo $key; ?>" style="min-width: 90%;" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               </div>
+       </div>
+
+</form>
diff --git a/docs/themes/default/admin/system_preferences/module_setup.tmpl.php b/docs/themes/default/admin/system_preferences/module_setup.tmpl.php
new file mode 100644 (file)
index 0000000..9e80576
--- /dev/null
@@ -0,0 +1,20 @@
+<?php global $_config; ?>
+<form action="<?php  $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+    <div class="input-form">
+        <div class="row">
+               <p><label for="uri"><?php echo _AT('transformable_uri'); ?></label></p>
+               <input type="text" name="transformable_uri" value="<?php echo $_config['transformable_uri']; ?>" id="uri" size="80" style="min-width: 95%;" />
+            
+                   <p><label for="key"><?php echo _AT('web_service_id'); ?></label></p>
+                   <input type="text" name="transformable_web_service_id" value="<?php echo $_config['transformable_web_service_id']; ?>" id="key" size="80" style="min-width: 95%;" />
+
+                   <p><label for="key"><?php echo _AT('oauth_expire'); ?></label></p>
+                   <input type="text" name="transformable_oauth_expire" value="<?php echo $_config['transformable_oauth_expire']; ?>" id="key" size="20" />&nbsp;<?php echo _AT('seconds'); ?><br />
+                      <small>&middot; <?php echo _AT('oauth_expire_note'); ?><br />
+        </div>
+
+        <div class="row buttons">
+            <input type="submit" name="submit" value="<?php echo _AT('save'); ?>"  />
+        </div>
+    </div>
+</form> 
\ No newline at end of file
diff --git a/docs/themes/default/admin/system_preferences/preview.tmpl.php b/docs/themes/default/admin/system_preferences/preview.tmpl.php
new file mode 100644 (file)
index 0000000..e4a7c3e
--- /dev/null
@@ -0,0 +1,22 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+
+<div class="input-form">
+       <div class="row">
+               <h3><?php if (file_exists($this->title_file)) { readfile($this->title_file); } ?></h3>
+       </div>
+
+       <div class="row">
+               <?php if (file_exists($this->cache_file) && filesize($this->cache_file) > 0) { 
+                       readfile($this->cache_file); 
+                       echo '<p><br /><small>'._AT('new_window').'</small></p>';
+               } else {
+                       echo _AT('no_content_avail');
+               }?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="back" value="<?php echo _AT('back'); ?>" />
+       </div>
+</div>
+</form>
diff --git a/docs/themes/default/admin/system_preferences/themes/index.tmpl.php b/docs/themes/default/admin/system_preferences/themes/index.tmpl.php
new file mode 100644 (file)
index 0000000..0b8cdda
--- /dev/null
@@ -0,0 +1,96 @@
+<?php if (!is_writeable(realpath('./../../../themes'))): ?>
+       <div class="input-form">
+               <div class="row">
+                       <?php echo _AT('install_themes_text', realpath('./../../../themes')); ?>                
+               </div>
+       </div>
+<?php else: ?>
+       <form name="importForm" method="post" action="mods/_core/themes/import.php" enctype="multipart/form-data">
+       <div class="input-form" style="width:95%;">
+               <div class="row">
+                       <h3><?php echo _AT('import_theme'); ?></h3>
+               </div>
+
+               <div class="row">
+                       <label for="file"><?php echo _AT('upload_theme_package'); ?></label><br />
+                       <input type="file" name="file" size="40" id="file" />
+               </div>
+
+               <div class="row">
+                       <label for="url"><?php echo _AT('specify_url_to_theme_package'); ?></label><br />
+                       <input type="text" name="url" value="http://" size="40" id="url" />
+               </div>
+                       
+               <div class="row buttons">
+                       <input type= "submit" name="import" value="<?php echo _AT('import'); ?>" />
+               </div>
+       </div>
+       </form>
+       <br />
+<?php endif; ?>
+<?php function print_data_table($this->result, $type) {
+       if (@mysql_num_rows($this->result) == 0) return;
+?>
+<h3><?php if ($type == DESKTOP_DEVICE) echo _AT('themes_for_desktop'); else echo _AT('themes_for_mobile');?></h3><br />
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form_<?php echo $type; ?>">
+<input type="hidden" name="type" value="<?php echo $type; ?>" />
+<table class="data" summary="" rules="cols">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('title'); ?></th>
+       <th scope="col"><?php echo _AT('status'); ?></th>
+       <th scope="col"><?php echo _AT('version'); ?></th>
+       <th scope="col"><?php echo _AT('directory_name'); ?></th>
+       <th scope="col"><?php echo _AT('description'); ?></th>
+       <th scope="col"><?php echo _AT('theme_screenshot'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="7">
+               <input type="submit" name="preview"  value="<?php echo _AT('preview'); ?>" />
+               <input type="submit" name="enable"  value="<?php echo _AT('enable'); ?>" />
+               <input type="submit" name="disable" value="<?php echo _AT('disable'); ?>" />
+               <input type="submit" name="default" value="<?php echo _AT('set_default').'&nbsp;'; if ($type == DESKTOP_DEVICE) echo _AT('desktop_theme'); else echo _AT('mobile_theme'); ?>" />
+               <input type="submit" name="export"  value="<?php echo _AT('export'); ?>" />
+               <input type="submit" name="delete"  value="<?php echo _AT('delete'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<?php while($row = mysql_fetch_assoc($this->result)) : ?>
+       <tbody>
+       <tr onmousedown="document.form_<?php echo $type; ?>['t_<?php echo $row['dir_name']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['dir_name']; ?>">
+               <td valign="top">
+                       <input type="radio" id="t_<?php echo $row['dir_name']; ?>" name="theme_dir" value="<?php echo $row['dir_name']; ?>" />
+                       <input type="hidden" name="<?php echo $row['dir_name']; ?>_version" value="<?php echo $row['version']; ?>" />
+               </td>
+               <td nowrap="nowrap" valign="top"><label for="t_<?php echo $row['dir_name']; ?>"><?php echo AT_print($row['title'], 'themes.title'); ?></label></td>
+               <td valign="top"><?php
+                       if ($row['status'] == 0) {
+                               echo _AT('disabled');
+                       } else if ($row['status'] == 1) {
+                               echo _AT('enabled');
+                       } else if (($type == DESKTOP_DEVICE && $row['status'] == 2) || ($type == MOBILE_DEVICE && $row['status'] == 3)) {
+                               echo '<strong>'._AT('default').'</strong>'; 
+                       }
+                       ?>
+               </td>
+               <td valign="top"><?php echo $row['version']; ?></td>
+               <td valign="top"><code><?php echo $row['dir_name']; ?>/</code></td>
+               <td valign="top"><?php echo $row['extra_info']; ?></td>
+               <td valign="top"><?php
+                       if (file_exists('../../../themes/'.$row['dir_name'].'/screenshot.jpg')) { ?>
+                                 <img src="<?php echo AT_BASE_HREF; ?>themes/<?php echo $row['dir_name']; ?>/screenshot.jpg" border="1" alt="<?php echo _AT('theme_screenshot'); ?>" />
+                       <?php           
+                       } else if (file_exists('../../../themes/'.$row['dir_name'].'/screenshot.gif')) { ?>
+                                <img src="<?php echo AT_BASE_HREF; ?>themes/<?php echo $row['dir_name']; ?>/screenshot.gif" border="1" alt="<?php echo _AT('theme_screenshot'); ?>" />
+                       <?php } ?>
+               </td>
+       </tr>
+       </tbody>
+<?php endwhile; ?>
+</table>
+</form>
+<?php
+}?>
\ No newline at end of file
diff --git a/docs/themes/default/admin/users/admin_email.tmpl.php b/docs/themes/default/admin/users/admin_email.tmpl.php
new file mode 100644 (file)
index 0000000..af004f7
--- /dev/null
@@ -0,0 +1,30 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<input type="hidden" name="admin" value="admin" />
+
+<div class="input-form">
+       <div class="row">
+       <fieldset>
+<legend><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo  _AT('to'); ?></legend>
+               <input type="radio" name="to" value="3" checked="checked" id="all" /><label for="all"><?php echo _AT('all_users'); ?></label>  
+         <input type="radio" name="to" value="1" id="inst" <?php if ($_POST['to'] == AT_STATUS_INSTRUCTOR) { echo 'checked="checked"'; } ?> /><label for="inst"><?php echo  _AT('instructors'); ?></label>
+         <input type="radio" name="to" value="2" id="stud" <?php if ($_POST['to'] == AT_STATUS_STUDENT) { echo 'checked="checked"'; } ?> /><label for="stud"><?php echo  _AT('students'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="subject"><?php echo _AT('subject'); ?></label><br />
+               <input type="text" name="subject" size="40" id="subject" value="<?php echo $_POST['subject']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('body'); ?></label><br />
+               <textarea cols="55" rows="18" name="body" id="body"><?php echo $_POST['body']; ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('send'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/users/create.tmpl.php b/docs/themes/default/admin/users/create.tmpl.php
new file mode 100644 (file)
index 0000000..7926667
--- /dev/null
@@ -0,0 +1,48 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<input type="hidden" name="form_password_hidden" value="" />
+<input type="hidden" name="password_error" value="" />
+
+<div class="input-form">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="login"><?php echo _AT('login_name'); ?></label><br />
+               <input type="text" name="login" id="login" size="25" value="<?php echo htmlspecialchars($_POST['login']); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password"><?php echo _AT('password'); ?></label><br />
+               <input type="password" name="password" id="password" size="25" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password2"><?php echo _AT('confirm_password'); ?></label><br />
+               <input type="password" name="confirm_password" id="password2" size="25" />
+       </div>
+
+       <div class="row">
+               <label for="real_name"><?php echo _AT('real_name'); ?></label><br />
+               <input type="text" name="real_name" id="real_name" size="30" value="<?php echo htmlspecialchars($_POST['real_name']); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />
+               <input type="text" name="email" id="email" size="30" value="<?php echo htmlspecialchars($_POST['email']); ?>" />
+       </div>
+
+       <div class="row">
+               <?php echo _AT('privileges'); ?><br />
+               <input type="checkbox" name="priv_admin" value="1" id="priv_admin" <?php if ($_POST['priv_admin']) { echo 'checked="checked"'; } ?> /><label for="priv_admin"><?php echo _AT('priv_admin_super'); ?></label><br /><br />
+
+       
+               <?php foreach ($this->keys as $module_name): ?>
+                       <?php $module =& $this->module_list[$module_name]; ?>
+                       <?php if (!($module->getAdminPrivilege() > 1)) { continue; } ?>
+                               <input type="checkbox" name="privs[]" value="<?php echo $module->getAdminPrivilege(); ?>" id="priv_<?php echo $module->getAdminPrivilege(); ?>" <?php if (query_bit($_POST['privs'], $module->getAdminPrivilege())) { echo 'checked="checked"'; }  ?> /><label for="priv_<?php echo $module->getAdminPrivilege(); ?>"><?php echo $module->getName() ?></label><br />
+               <?php endforeach; ?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" onclick="return encrypt_password();" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/users/default_preferences.tmpl.php b/docs/themes/default/admin/users/default_preferences.tmpl.php
new file mode 100644 (file)
index 0000000..32f95c0
--- /dev/null
@@ -0,0 +1 @@
+hi
\ No newline at end of file
diff --git a/docs/themes/default/admin/users/edit.tmpl.php b/docs/themes/default/admin/users/edit.tmpl.php
new file mode 100644 (file)
index 0000000..ab8f218
--- /dev/null
@@ -0,0 +1,34 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<input type="hidden" name="login" value="<?php echo $row['login']; ?>" />
+<div class="input-form">
+       <div class="row">
+               <h3><?php echo $row['login']; ?></h3>
+       </div>
+
+       <div class="row">
+               <label for="real_name"><?php echo _AT('real_name'); ?></label><br />
+               <input type="text" name="real_name" id="real_name" size="30" value="<?php echo htmlspecialchars($_POST['real_name']); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />
+               <input type="text" name="email" id="email" size="30" value="<?php echo htmlspecialchars($_POST['email']); ?>" />
+       </div>
+
+       <div class="row">
+               <?php echo _AT('privileges'); ?><br />
+               <input type="checkbox" name="priv_admin" value="1" id="priv_admin" <?php if ($_POST['priv_admin']) { echo 'checked="checked"'; } ?> /><label for="priv_admin"><?php echo _AT('priv_admin_super'); ?></label><br /><br />
+
+               <?php foreach ($this->keys as $module_name): ?>
+                       <?php $module =& $this->module_list[$module_name]; ?>
+                       <?php if (!($module->getAdminPrivilege() > 1)) { continue; } ?>
+                               <input type="checkbox" name="privs[]" value="<?php echo $module->getAdminPrivilege(); ?>" id="priv_<?php echo $module->getAdminPrivilege(); ?>" <?php if (query_bit($_POST['privs'], $module->getAdminPrivilege())) { echo 'checked="checked"'; }  ?> /><label for="priv_<?php echo $module->getAdminPrivilege(); ?>"><?php echo $module->getName(); ?></label><br />
+               <?php endforeach; ?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" <?php if ($_POST['priv_admin'] != 1) { echo 'onclick="return checkAdmin();"'; } ?> />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/users/index.tmpl.php b/docs/themes/default/admin/users/index.tmpl.php
new file mode 100644 (file)
index 0000000..7785617
--- /dev/null
@@ -0,0 +1,75 @@
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<table summary="List of administrators" class="data" rules="cols" align="left" style="width: 90%;">
+<colgroup>
+       <?php if ($col == 'login'): ?>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($col == 'real_name'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="3" />
+       <?php elseif($col == 'email'): ?>
+               <col span="3" />
+               <col class="sort" />
+               <col span="2" />
+       <?php elseif($col == 'last_login'): ?>
+               <col span="4" />
+               <col class="sort" />
+               <col />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('login_name');        ?></a></th>
+       <th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=real_name<?php echo $page_string; ?>"><?php echo _AT('real_name');   ?></a></th>
+       <th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=email<?php echo $page_string; ?>"><?php echo _AT('email');           ?></a></th>
+       <th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=last_login<?php echo $page_string; ?>"><?php echo _AT('last_login'); ?></a></th>
+       <th scope="col"><?php echo _AT('account_status'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />
+               <input type="submit" name="view_log" value="<?php echo _AT('view_log'); ?>" />
+               <input type="submit" name="password" value="<?php echo _AT('password'); ?>" />
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php if (mysql_num_rows($this->result) == 0) { ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('no_admins_found'); ?></td>
+       </tr>
+<?php } else {
+               while ($row = mysql_fetch_assoc($this->result)): ?>
+                       <tr onkeydown="document.form['m<?php echo $row['login']; ?>'].checked = true;rowselect(this);" onmousedown="document.form['m<?php echo $row['login']; ?>'].checked = true;rowselect(this);" id="r_<?php echo $row['login']; ?>">
+                               <td><input type="radio" name="login" value="<?php echo $row['login']; ?>" id="m<?php echo $row['login']; ?>" /></td>
+                               <td><label for="m<?php echo $row['login']; ?>"><?php echo $row['login'];      ?></label></td>
+                               <td><?php echo $row['real_name'];  ?></td>
+                               <td><?php echo $row['email'];      ?></td>
+                               <td><?php 
+                                       if ($row['last_login'] == '0000-00-00 00:00:00') {
+                                               echo _AT('never');
+                                       } else {
+                                               echo $row['last_login'];
+                                       } ?></td>
+                               <td><?php 
+                                       if ($row['privileges'] == 1) { 
+                                               echo _AT('priv_admin_super');
+                                       } else if ($row['privileges'] > 0) {
+                                               echo _AT('active_admin');
+                                       } else {
+                                               echo _AT('inactive_admin');
+                                       }
+                                ?> </td>
+                       </tr>
+               <?php endwhile; ?>
+       <?php } ?>
+</tbody>
+</table>
+</form>
diff --git a/docs/themes/default/admin/users/instructor_requests.tmpl.php b/docs/themes/default/admin/users/instructor_requests.tmpl.php
new file mode 100644 (file)
index 0000000..77afa9d
--- /dev/null
@@ -0,0 +1,42 @@
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<table class="data" summary="Table listing instructor requests" rules="cols">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('login_name');     ?></th>
+       <th scope="col"><?php echo _AT('first_name');   ?></th>
+       <th scope="col"><?php echo _AT('last_name');    ?></th>
+       <th scope="col"><?php echo _AT('email');        ?></th>
+       <th scope="col"><?php echo _AT('notes');        ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+       <input type="submit" name="deny" value="<?php echo _AT('deny'); ?>" /> 
+       <input type="submit" name="approve" value="<?php echo _AT('approve'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+<?php
+       if ($row = mysql_fetch_assoc($this->result)) {
+               do {
+                       echo '<tr onkeydown ="document.form[\'i'.$row['member_id'].'\'].checked = true;rowselect(this);" onmousedown="document.form[\'i'.$row['member_id'].'\'].checked = true;rowselect(this);" id="r_'.$row['member_id'].'">';
+                       echo '<td><input type="radio" name="id" value="'.$row['member_id'].'" id="i'.$row['member_id'].'" /></td>';
+                       echo '<td><label for="i'.$row['member_id'].'">'.AT_print($row['login'], 'members.login').'</label></td>';
+                       echo '<td>'.AT_print($row['first_name'], 'members.first_name').'</td>';
+                       echo '<td>'.AT_print($row['last_name'], 'members.last_name').'</td>';
+                       echo '<td>'.AT_print($row['email'], 'members.email').'</td>';
+                       
+                       echo '<td>'.AT_print($row['notes'], 'instructor_approvals.notes').'</td>';
+
+                       echo '</tr>';
+               } while ($row = mysql_fetch_assoc($this->result));
+       } else {
+               echo '<tr><td colspan="6">'._AT('none_found').'</td></tr>';
+       }
+?>
+</tbody>
+</table>
+</form>
diff --git a/docs/themes/default/admin/users/log.tmpl.php b/docs/themes/default/admin/users/log.tmpl.php
new file mode 100644 (file)
index 0000000..791406d
--- /dev/null
@@ -0,0 +1,27 @@
+<table summary="Date and login name associated with an action in a database table" class="data" rules="cols" align="center">
+<thead>
+<tr>
+       <th scope="col"><?php echo _AT('date');           ?></th>
+       <th scope="col"><?php echo _AT('login_name');     ?></th>
+       <th scope="col"><?php echo _AT('action');         ?></th>
+       <th scope="col"><?php echo _AT('database_table'); ?></th>
+</tr>
+</thead>
+<tbody>
+<?php if (mysql_num_rows($this->result) > 0) : ?>
+       <?php while ($row = mysql_fetch_assoc($this->result)): ?>
+               <?php $offset++; ?>
+               <tr onkeydown="document.location='<?php echo AT_BASE_HREF; ?>mods/_core/users/admins/detail_log.php?offset=<?php echo $offset.SEP.'p='.$page.SEP.'login='.$_GET['login']; ?>'" onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_core/users/admins/detail_log.php?offset=<?php echo $offset.SEP.'p='.$page.SEP.'login='.$_GET['login']; ?>'" title="<?php echo _AT('view_details'); ?>">
+                       <td><a href="<?php echo AT_BASE_HREF; ?>mods/_core/users/admins/detail_log.php?offset=<?php echo $offset.SEP.'p='.$page.SEP.'login='.$_GET['login']; ?>"><?php echo $row['time']; ?></a></td>
+                       <td><?php echo $row['login']; ?></td>
+                       <td><?php echo $this->operations[$row['operation']]; ?></td>
+                       <td><?php echo $row['table']; ?></td>
+               </tr>
+       <?php endwhile; ?>
+<?php else: ?>
+<tr>
+       <td colspan="4"><?php echo _AT('none_found'); ?></td>
+</tr>
+<?php endif; ?>
+</tbody>
+</table>
\ No newline at end of file
diff --git a/docs/themes/default/admin/users/master_list.tmpl.php b/docs/themes/default/admin/users/master_list.tmpl.php
new file mode 100644 (file)
index 0000000..d58c00e
--- /dev/null
@@ -0,0 +1,136 @@
+<form name="importForm" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data">
+<div class="input-form">
+       <div class="row">
+               <h3><?php echo _AT('update_list'); ?></h3>
+               <label for="file"><?php echo _AT('file'); ?></label><br />
+               <input type="file" name="file" size="40" id="file" />
+       </div>
+       
+       <div class="row">
+               <fieldset>
+               <legend><?php echo _AT('master_not_in_list'); ?></legend>
+               <input type="radio" name="override" id="o0" value="0" checked="checked" /><label for="o0"><?php echo _AT('leave_unchanged'); ?></label>
+               <input type="radio" name="override" id="o1" value="1" /><label for="o1"><?php echo _AT('disable');     ?></label>
+               </fieldset>
+       </div>
+
+       <div class="row buttons">
+               <input type= "submit" name="submit" value="<?php echo _AT('upload'); ?>" />
+       </div>
+</div>
+</form>
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               <div class="row">
+                       <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+               </div>
+
+               <div class="row">
+                       <fieldset>
+                       <legend><?php echo _AT('account_status'); ?></legend>
+                       <input type="radio" name="status" value="1" id="s0" <?php if ($_GET['status'] == 1) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('not_created'); ?></label> 
+
+                       <input type="radio" name="status" value="2" id="s1" <?php if ($_GET['status'] == 2) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('created'); ?></label> 
+
+                       <input type="radio" name="status" value="" id="s" <?php if ($_GET['status'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label> 
+                       </fieldset>
+               </div>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('student_id'); ?>)</label><br />
+                       <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+</form>
+
+<div class="paging">
+       <ul>
+       <?php for ($i=1; $i<=$this->num_pages; $i++): ?>
+               <li>
+                       <?php if ($i == $page) : ?>
+                               <a class="current" href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$page_string; ?>"><strong><?php echo $i; ?></strong></a>
+                       <?php else: ?>
+                               <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$page_string; ?>"><?php echo $i; ?></a>
+                       <?php endif; ?>
+               </li>
+       <?php endfor; ?>
+       </ul>
+</div>
+
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="status" value="<?php echo $_GET['status']; ?>" />
+
+<table summary="Table lists results by Student ID, Login Name, First Name, Second Name, and Last Name." class="data" rules="cols" style="width: 60%;">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('student_id'); ?></th>
+       <th scope="col"><?php echo _AT('login_name'); ?></th>
+       <th scope="col"><?php echo _AT('first_name'); ?></th>
+       <th scope="col"><?php echo _AT('second_name'); ?></th>
+       <th scope="col"><?php echo _AT('last_name'); ?></th>
+</tr>
+</thead>
+<?php if ($this->num_results > 0): ?>
+<tfoot>
+<tr>
+       <td colspan="6"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+       <?php while($row = mysql_fetch_assoc($this->result)): ?>
+               <tr onmousedown="document.form['m<?php echo $row['public_field']; ?>'].checked = true;rowselect(this);" onkeydown="document.form['m<?php echo $row['public_field']; ?>'].checked = true;rowselect(this);" id="r_<?php echo $row['public_field']; ?>">
+                       <td><input type="radio" name="id" value="<?php 
+                               if ($row['member_id']) {
+                                       echo $row['member_id'];
+                               } else {
+                                       echo '-'.$row['public_field'];
+                               }
+                               ?>" id="m<?php echo $row['public_field']; ?>" /></td>
+                       <td><label for="m<?php echo $row['public_field']; ?>"><?php echo $row['public_field']; ?></label></td>
+                       <td><?php
+                               if ($row['member_id']) {
+                                       echo $row['login'];
+                               } else {
+                                       echo '-';
+                               }
+                               ?></td>
+                       <td><?php
+                               if ($row['member_id']) {
+                                       echo $row['first_name'];
+                               } else {
+                                       echo '-';
+                               }
+                               ?></td>
+                       <td><?php
+                               if ($row['member_id']) {
+                                       echo $row['second_name'];
+                               } else {
+                                       echo '-';
+                               }
+                               ?></td>
+                       <td><?php
+                               if ($row['member_id']) {
+                                       echo $row['last_name'];
+                               } else {
+                                       echo '-';
+                               }
+                               ?></td>
+               </tr>
+       <?php endwhile; ?>
+</tbody>
+<?php else: ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/users/master_list_edit.tmpl.php b/docs/themes/default/admin/users/master_list_edit.tmpl.php
new file mode 100644 (file)
index 0000000..7716502
--- /dev/null
@@ -0,0 +1,16 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<input type="hidden" name="id" value="<?php echo $_REQUEST['id']; ?>" />
+<div class="input-form">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="student_id"><?php echo _AT('student_id'); ?></label><br />
+               <input type="text" name="public_field" id="student_id" size="25" value="<?php echo $_POST['public_field']; ?>" />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
+
diff --git a/docs/themes/default/admin/users/password.tmpl.php b/docs/themes/default/admin/users/password.tmpl.php
new file mode 100644 (file)
index 0000000..992e3da
--- /dev/null
@@ -0,0 +1,26 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+       <input type="hidden" name="login" value="<?php echo $this->row['login']; ?>" />
+       <input type="hidden" name="form_password_hidden" value="" />
+       <input type="hidden" name="password_error" value="" />
+
+       <div class="input-form">
+               <div class="row">
+                       <h3><?php echo htmlspecialchars($this->row['login']); ?></h3>
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="form_password1"><?php echo _AT('password'); ?></label><br />
+                       <input type="password" title="password" name="password1" id="password1" size="15" />
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="form_password2"><?php echo _AT('confirm_password'); ?></label><br />
+                       <input type="password" title="confirm password" name="confirm_password" id="confirm_password" size="15" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" accesskey="s" onclick="encrypt_password();" />
+                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+               </div>
+       </div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/users/password_user.tmpl.php b/docs/themes/default/admin/users/password_user.tmpl.php
new file mode 100644 (file)
index 0000000..23085e8
--- /dev/null
@@ -0,0 +1,27 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+       <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+       <input type="hidden" name="form_password_hidden" value="" />
+       <input type="hidden" name="password_error" value="" />
+
+       <div class="input-form">
+               <div class="row">
+                       <h3><?php echo htmlspecialchars($row['login']); ?></h3>
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password"><?php echo _AT('password'); ?></label><br />
+                       <input type="password" name="password" id="password" value="" size="30" />
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password2"><?php echo _AT('confirm_password'); ?></label><br />
+                       <input type="password" name="password2" id="password2" value="" size="30" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" onclick="encrypt_password()" />
+                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+               </div>
+       </div>
+</form>
diff --git a/docs/themes/default/admin/users/user_enrollment.tmpl.php b/docs/themes/default/admin/users/user_enrollment.tmpl.php
new file mode 100644 (file)
index 0000000..2fb76a5
--- /dev/null
@@ -0,0 +1,85 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>?id=<?php echo $this->id; ?>">
+<input type="hidden" name="id" value="<?php echo $this->id; ?>"/>
+<div class="input-form" style="min-width: 400px; width: 45%; float: left; margin: 5px">
+       <div class="row">
+       <h3><?php echo _AT('instructor'); ?></h3>
+               <?php if ($this->instruct): ?>
+                       <ul>
+                       <?php foreach ($this->instruct as $cid): ?>
+                               <li><?php echo $this->system_courses[$cid]['title']; ?></li>
+                       <?php endforeach; ?>
+                       </ul>
+               <?php else: ?>
+                       <?php echo _AT('none'); ?>
+               <?php endif; ?>
+       </div>
+       <div class="row buttons">
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
+       </div>
+</div>
+
+<div class="input-form" style="min-width: 400px; width: 45%; float: left; margin: 5px">
+       <div class="row">
+       <h3><?php echo _AT('enrolled'); ?></h3>
+               <?php if ($this->enrolled): ?>
+                       <ul>
+                       <?php foreach ($this->enrolled as $cid): ?>
+                               <li><input type="checkbox" name="enrolled[]" value="<?php echo $cid; ?>" id="c<?php echo $cid; ?>"/><label for="c<?php echo $cid; ?>"><?php echo $this->system_courses[$cid]['title']; ?></label></li>
+                       <?php endforeach; ?>
+                       </ul>
+               <?php else: ?>
+                       <?php echo _AT('none'); ?>
+               <?php endif; ?>
+       </div>
+       <div class="row buttons">
+       <?php if ($this->enrolled): ?>
+               <input type="submit" name="enrolled_unenroll" value="<?php echo _AT('unenroll'); ?>"/>
+       <?php endif; ?>
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
+       </div>
+
+</div>
+
+<div class="input-form" style="min-width: 400px; width: 45%; float: left; margin: 5px">
+       <div class="row">
+       <h3><?php echo _AT('pending_enrollment'); ?></h3>
+               <?php if ($this->pending): ?>
+                       <ul>
+                       <?php foreach ($this->pending as $cid): ?>
+                               <li><input type="checkbox" name="pending[]" value="<?php echo $cid; ?>" id="c<?php echo $cid; ?>"/><label for="c<?php echo $cid; ?>"><?php echo $this->system_courses[$cid]['title']; ?></label></li>
+                       <?php endforeach; ?>
+                       </ul>
+               <?php else: ?>
+                       <?php echo _AT('none'); ?>
+               <?php endif; ?>
+       </div>
+       <div class="row buttons">
+       <?php if ($this->pending): ?>
+               <input type="submit" name="pending_remove" value="<?php echo _AT('remove'); ?>"/>
+               <input type="submit" name="pending_enroll" value="<?php echo _AT('enroll'); ?>"/>
+       <?php endif; ?>
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
+       </div>  
+</div>
+
+<div class="input-form" style="min-width: 400px; width: 45%; float: left; margin: 5px">
+       <div class="row">
+               <h3><?php echo _AT('not_enrolled');?></h3>
+                       <?php if ($this->not_enrolled): ?>
+                               <ul>
+                               <?php foreach ($this->not_enrolled as $cid): ?>
+                                       <li><input type="checkbox" name="not_enrolled[]" value="<?php echo $cid; ?>" id="c<?php echo $cid; ?>"/><label for="c<?php echo $cid; ?>"><?php echo $this->system_courses[$cid]['title']; ?></label></li>
+                               <?php endforeach; ?>
+                               </ul>
+                       <?php else: ?>
+                               <?php echo _AT('none'); ?>
+                       <?php endif; ?>
+       </div>
+       <div class="row buttons">
+       <?php if ($this->not_enrolled): ?>
+               <input type="submit" name="not_enrolled_enroll" value="<?php echo _AT('enroll'); ?>"/>
+       <?php endif; ?>
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/admin/users/users.tmpl.php b/docs/themes/default/admin/users/users.tmpl.php
new file mode 100644 (file)
index 0000000..a21e164
--- /dev/null
@@ -0,0 +1,180 @@
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               <div class="row">
+                       <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+               </div>
+
+               <div class="row">
+                       <?php echo _AT('account_status'); ?><br />
+                       <input type="radio" name="status" value="0" id="s0" <?php if ($_GET['status'] == 0) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('disabled'); ?></label> 
+
+                       <input type="radio" name="status" value="1" id="s1" <?php if ($_GET['status'] == 1) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('unconfirmed'); ?></label> 
+
+                       <input type="radio" name="status" value="2" id="s2" <?php if ($_GET['status'] == 2) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('student'); ?></label>
+
+                       <input type="radio" name="status" value="3" id="s3" <?php if ($_GET['status'] == 3) { echo 'checked="checked"'; } ?> /><label for="s3"><?php echo _AT('instructor'); ?></label>
+
+                       <input type="radio" name="status" value="" id="s" <?php if ($_GET['status'] === '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
+               </div>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('login_name').', '._AT('first_name').', '._AT('second_name').', '._AT('last_name') .', '._AT('email'); ?>)</label><br />
+
+                       <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+                       <br/>
+                       <?php echo _AT('search_match'); ?>:
+                       <input type="radio" name="include" value="all" id="match_all" <?php echo $checked_include_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> 
+                       <input type="radio" name="include" value="one" id="match_one" <?php echo $checked_include_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
+               </div>
+
+               <?php if (defined('AT_MASTER_LIST') && AT_MASTER_LIST): ?>
+                       <div class="row">
+                               <label for="searchid"><?php echo _AT('search'); ?> (<?php echo _AT('student_id'); ?>)</label><br />
+                               <input type="text" name="searchid" id="searchid" size="20" value="<?php echo htmlspecialchars($_GET['searchid']); ?>" />
+                       </div>
+               <?php endif; ?>
+
+               <div class="row">
+                       <label for="last_login_have"><?php echo _AT('last_login'); ?></label><br />                                     
+                       <select name="last_login_have" id="last_login_have">
+                               <option value="-1">- <?php echo _AT('select'); ?> -</option>
+                               <option value="1" <?php if($_GET['last_login_have']=='1') { echo 'selected="selected"';}?>><?php echo _AT('have'); ?></option>
+                               <option value="0" <?php if(isset($_GET['last_login_have']) && $_GET['last_login_have']=='0') { echo 'selected="selected"';}?>><?php echo _AT('have_not'); ?></option>
+                       </select> <?php echo _AT('logged_in_within'); ?>: <input type="text" name="last_login_days" size="3" value="<?php echo htmlspecialchars($_GET['last_login_days']); ?>" /> <?php echo _AT('days'); ?> <br />
+                       
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+</form>
+<?php print_paginator($this->page, $this->num_results, $this->page_string . SEP . $this->order .'='. $col, $this->results_per_page); ?>
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="status" value="<?php echo $_GET['status']; ?>" />
+<input type="hidden" name="search" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+<input type="hidden" name="include" value="<?php echo htmlspecialchars($_GET['include']); ?>" />
+
+<?php if (defined('AT_MASTER_LIST') && AT_MASTER_LIST) {  $col_counts = 1; } else { $col_counts = 0; } ?>
+<table summary="" class="data" rules="rows">
+<colgroup>
+       <?php if ($col == 'login'): ?>
+               <col />
+               <col class="sort" />
+               <col span="<?php echo 5 + $col_counts; ?>" />
+       <?php elseif($col == 'public_field'): ?>
+               <col span="<?php echo 1 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="6" />
+       <?php elseif($col == 'first_name'): ?>
+               <col span="<?php echo 2 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="5" />
+       <?php elseif($col == 'second_name'): ?>
+               <col span="<?php echo 3 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($col == 'last_name'): ?>
+               <col span="<?php echo 4 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="3" />
+       <?php elseif($col == 'email'): ?>
+               <col span="<?php echo 5 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="2" />
+       <?php elseif($col == 'status'): ?>
+               <col span="<?php echo 6 + $col_counts; ?>" />
+               <col class="sort" />
+               <col />
+       <?php elseif($col == 'last_login'): ?>
+               <col span="<?php echo 7 + $col_counts; ?>" />
+               <col class="sort" />
+       <?php elseif($col == 'creation_date'): ?>
+               <col span="<?php echo 8 + $col_counts; ?>" />
+               <col class="sort" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col" align="left"><input type="checkbox" value="<?php echo _AT('select_all'); ?>" id="all" title="<?php echo _AT('select_all'); ?>" name="selectall" onclick="CheckAll();" /></th>
+
+       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('login_name');      ?></a></th>
+       <?php if (defined('AT_MASTER_LIST') && AT_MASTER_LIST): ?>
+               <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=public_field<?php echo $page_string; ?>"><?php echo _AT('student_id'); ?></a></th>
+       <?php endif; ?>
+       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=first_name<?php echo $page_string; ?>"><?php echo _AT('first_name'); ?></a></th>
+       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=second_name<?php echo $page_string; ?>"><?php echo _AT('second_name'); ?></a></th>
+       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=last_name<?php echo $page_string; ?>"><?php echo _AT('last_name');   ?></a></th>
+       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=email<?php echo $page_string; ?>"><?php echo _AT('email');           ?></a></th>
+       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=status<?php echo $page_string; ?>"><?php echo _AT('account_status'); ?></a></th>
+       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=last_login<?php echo $page_string; ?>"><?php echo _AT('last_login'); ?></a></th>
+       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=creation_date<?php echo $page_string; ?>"><?php echo _AT('creation_date'); ?></a></th>
+</tr>
+
+</thead>
+<?php if ($this->num_results > 0): ?>
+       <tfoot>
+       <tr>
+               <td colspan="<?php echo 9 + $col_counts; ?>">
+                       <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+                       <input type="submit" name="password" value="<?php echo _AT('password'); ?>" />
+                       <?php if (admin_authenticate(AT_ADMIN_PRIV_ENROLLMENT, true)): ?>
+                               <input type="submit" name="enrollment" value="<?php echo _AT('enrollment'); ?>" />
+                       <?php endif; ?>
+                       <span style="padding:0px 10px">|</span> 
+                       
+                       <select name="change_status">
+                               <option value="-2"><?php echo _AT('more_options'); ?></option>
+                               <optgroup label="<?php echo _AT('status'); ?>">
+                                       <option value="<?php echo AT_STATUS_STUDENT; ?>"><?php echo _AT('student'); ?></option>
+                                       <option value="<?php echo AT_STATUS_INSTRUCTOR; ?>"><?php echo _AT('instructor'); ?></option>   
+                                       <?php if ($_config['email_confirmation']): ?>
+                                               <option value="<?php echo AT_STATUS_UNCONFIRMED; ?>"><?php echo _AT('unconfirmed'); ?></option>
+                                       <?php endif; ?>
+                                       <option value="<?php echo AT_STATUS_DISABLED; ?>"><?php echo _AT('disable'); ?></option>                                
+                               </optgroup>
+                               <option value="-2" disabled="disabled">- - - - - - - - -</option>       
+                               <option value="-1"><?php echo _AT('delete'); ?></option>                                
+                       </select>
+                       <input type="submit" name="apply" value="<?php echo _AT('apply'); ?>" />
+                       <input type="submit" name="apply_all" value="<?php echo _AT('apply_to_all_results'); ?>" />
+               </td>
+       </tr>
+       </tfoot>
+       <tbody>
+               <?php while($row = mysql_fetch_assoc($this->result)): ?>
+                       <tr onmousedown="document.form['m<?php echo $row['member_id']; ?>'].checked = !document.form['m<?php echo $row['member_id']; ?>'].checked; togglerowhighlight(this, 'm<?php echo $row['member_id']; ?>');" id="rm<?php echo $row['member_id']; ?>">
+                               <td><input type="checkbox" name="id[]" value="<?php echo $row['member_id']; ?>" id="m<?php echo $row['member_id']; ?>" onmouseup="this.checked=!this.checked" /></td>
+                               <td><?php echo $row['login']; ?></td>
+                               <?php if (defined('AT_MASTER_LIST') && AT_MASTER_LIST): ?>
+                                       <td><?php echo $row['public_field']; ?></td>
+                               <?php endif; ?>
+                               <?php $startend_date_longs_format=_AT('startend_date_longs_format'); ?>
+                               <td><?php echo AT_print($row['first_name'], 'members.first_name'); ?></td>
+                               <td><?php echo AT_print($row['second_name'], 'members.second_name'); ?></td>
+                               <td><?php echo AT_print($row['last_name'], 'members.last_name'); ?></td>
+                               <td><?php echo AT_print($row['email'], 'members.email'); ?></td>
+                               <td><?php echo get_status_name($row['status']); ?></td>
+                               <td nowrap="nowrap">
+                                       <?php if ($row['last_login'] == 0): ?>
+                                               <?php echo _AT('never'); ?>
+                                       <?php else: ?>
+                                               <?php 
+                                               //echo AT_date('%d/%m/%y - %H:%i', $row['last_login'], AT_DATE_MYSQL_TIMESTAMP_14);
+                                               echo AT_date($startend_date_longs_format, $row['last_login'], AT_DATE_MYSQL_TIMESTAMP_14); 
+                                       ?>
+                                       <?php endif; ?>
+                               </td>
+                               <td><?php echo AT_date($startend_date_longs_format, $row['creation_date'], AT_DATE_MYSQL_DATETIME); ?></td>
+                       </tr>
+               <?php endwhile; ?>
+       </tbody>
+<?php else: ?>
+       <tr>
+               <td colspan="<?php echo 9 + $col_counts; ?>"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</table>
+</form>
diff --git a/docs/themes/default/confirm.tmpl.php b/docs/themes/default/confirm.tmpl.php
new file mode 100644 (file)
index 0000000..31a3a92
--- /dev/null
@@ -0,0 +1,19 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+
+<div class="input-form" style="max-width: 400px">
+       <div class="row">
+               <p><?php echo _AT('send_confirmation'); ?></p>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />
+               <input type="text" name="email" id="email" size="50" />
+               <input type="hidden" name="en_id" id="en_id" value="<?php echo $_REQUEST['en_id']; ?>" size="50" />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('send'); ?>" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/contact_instructor.tmpl.php b/docs/themes/default/contact_instructor.tmpl.php
new file mode 100644 (file)
index 0000000..534af3c
--- /dev/null
@@ -0,0 +1,36 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="id" value="<?php echo $id; ?>" />
+
+<div class="input-form">
+       <div class="row">
+               <?php echo _AT('to'); ?><br />
+               <?php echo $instructor_name; ?>
+       </div>
+
+       <div class="row">
+               <label for="from"><?php echo _AT('from_name'); ?></label><br />
+               <input type="text" class="formfield" name="from" id="from" size="40" value="<?php echo $student_name;?>" />
+       </div>
+
+       <div class="row">
+               <label for="from_email"><?php echo _AT('from_email'); ?></label><br />
+               <input type="text" class="formfield" name="from_email" id="from_email" size="40" value="<?php echo $student_email;?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="subject"><?php echo _AT('subject'); ?></label><br />
+               <input type="text" class="formfield" name="subject" id="subject" size="40" value="<?php echo $_POST['subject']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('body'); ?></label><br />
+               <textarea class="formfield" cols="55" rows="15" id="body" name="body" wrap="wrap"><?php echo $_POST['body']; ?></textarea>
+       </div>
+
+       <div class="buttons row">
+               <input type="submit" name="submit" class="button" value="<?php echo _AT('send_message'); ?>" accesskey="s" />  
+               <input type="submit" name="cancel" class="button" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
index 9d32ab5..51b007a 100644 (file)
@@ -54,7 +54,7 @@ if ($this->shortcuts):
        </div>\r
 \r
        <div class="row">\r
-       <table class="data" summary="" style="width: 98%" rules="cols">\r
+       <table class="data" summary="Title, status, release results, and pass score of available tests" style="width: 98%" rules="cols">\r
        <thead>\r
        <tr>\r
                <th scope="col">&nbsp;</th>\r
diff --git a/docs/themes/default/images/editor/arrange_content.tmpl.php b/docs/themes/default/images/editor/arrange_content.tmpl.php
new file mode 100644 (file)
index 0000000..2143bce
--- /dev/null
@@ -0,0 +1,49 @@
+<?php
+/************************************************************************/
+/* ATutor                                                                                                                              */
+/************************************************************************/
+/* Copyright (c) 2002-2010                                              */
+/* Inclusive Design Institute                                           */
+/* http://atutor.ca                                                     */
+/* This program is free software. You can redistribute it and/or        */
+/* modify it under the terms of the GNU General Public License          */
+/* as published by the Free Software Foundation.                        */
+/************************************************************************/
+if (!defined('AT_INCLUDE_PATH')) { exit; } 
+
+global $contentManager;
+
+require(AT_INCLUDE_PATH.'header.inc.php');
+?>
+<div class="input-form">
+<form action="<?php echo $_SERVER['PHP_SELF']; if ($this->cid > 0) echo '?cid='.$this->cid; else if ($this->pid > 0) echo '?pid='.$this->pid;?>" method="post" name="form"> 
+       <input type="hidden" name="button_1" value="-1" />
+<?php
+       if ($contentManager->getNumSections() > (1 - (bool)(!$cid))) {
+               echo '<p>' 
+                       , _AT('editor_properties_instructions', 
+                               '<img src="'.$_base_path.'images/after.gif" alt="'._AT('after_topic', '').'" title="'._AT('after_topic', '').'" />', 
+                               '<img src="'.$_base_path.'images/before.gif" alt="'._AT('before_topic', '').'" title="'._AT('before_topic', '').'" />',
+                               '<img src="'.$_base_path.'images/child_of.gif" alt="'._AT('child_of', '').'" title="'._AT('child_of', '').'"  />')
+                       , '</p>';
+
+       }
+
+       ?><br />
+       <table border="0" align="center">
+       <tr>
+               <th colspan="3"><?php echo _AT('move'); ?></th>
+               <th><?php echo _AT('content'); ?></th>
+       </tr>
+       <tr>
+               <td colspan="3">&nbsp;</td>
+               <td><?php echo _AT('home'); ?></td>
+       </tr>
+<?php
+               $contentManager->printActionMenu($contentManager->_menu, 0, 0, '', array(), "movable");
+                       
+?>
+       </table>
+</form>
+</div>
+<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
diff --git a/docs/themes/default/images/editor/edit_content_folder.tmpl.php b/docs/themes/default/images/editor/edit_content_folder.tmpl.php
new file mode 100644 (file)
index 0000000..9d32ab5
--- /dev/null
@@ -0,0 +1,108 @@
+<?php\r
+/************************************************************************/\r
+/* ATutor                                                                                                                              */\r
+/************************************************************************/\r
+/* Copyright (c) 2002-2010                                              */\r
+/* Inclusive Design Institute                                           */\r
+/* http://atutor.ca                                                                                                            */\r
+/*                                                                                                                                             */\r
+/* This program is free software. You can redistribute it and/or        */\r
+/* modify it under the terms of the GNU General Public License          */\r
+/* as published by the Free Software Foundation.                        */\r
+/************************************************************************/\r
+if (!defined('AT_INCLUDE_PATH')) { exit; } \r
+\r
+global $onload;\r
+$onload = 'document.form.title.focus();';\r
+?>\r
+<form action="<?php echo $_SERVER['PHP_SELF']; if ($this->cid > 0) echo '?cid='.$this->cid; else if ($this->pid > 0) echo '?pid='.$this->pid;?>" method="post" name="form"> \r
+<div class="input-form" style="width:95%;margin-left:1.5em;">\r
+<!-- <?php\r
+if ($this->shortcuts): \r
+?>\r
+ <fieldset id="shortcuts" style="margin-top:1em;float:right;clear:right;"><legend><?php echo _AT('shortcuts'); ?></legend>\r
+       <ul>\r
+               <?php foreach ($this->shortcuts as $link): ?>\r
+                       <li><a href="<?php echo $link['url']; ?>"><?php echo $link['title']; ?></a></li>\r
+               <?php endforeach; ?>\r
+       </ul>\r
+</fieldset>\r
+<?php endif; ?> -->\r
+       <div class="row">\r
+               <div style="font-weight:bold;"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ftitle"><?php echo _AT('content_folder_title');  ?></label></div>\r
+               <input type="text" name="title" id="ftitle" size="70" class="formfield" value="<?php echo ContentManager::cleanOutput($this->ftitle); ?>" />\r
+       </div>\r
+       \r
+       <div class="row">\r
+               <div style="font-weight:bold;"><?php echo _AT('release_date');  ?></div>\r
+               <?php if ($_POST['day']) { ?>\r
+                       <?php\r
+                               $today_day   = $_POST['day'];\r
+                               $today_mon   = $_POST['month'];\r
+                               $today_year  = $_POST['year'];\r
+\r
+                               $today_hour  = $_POST['hour'];\r
+                               $today_min   = $_POST['min'];           \r
+               }?>\r
+               <?php require(AT_INCLUDE_PATH.'html/release_date.inc.php');     ?>\r
+       </div>\r
+\r
+       <?php if (isset($this->pretests)) {?>\r
+       <div class="row">\r
+               <div style="font-weight:bold;"><?php echo _AT('define_pretest'); ?></div>\r
+               <p><?php echo _AT('about_pretest'); ?></p>\r
+       </div>\r
+\r
+       <div class="row">\r
+       <table class="data" summary="" style="width: 98%" rules="cols">\r
+       <thead>\r
+       <tr>\r
+               <th scope="col">&nbsp;</th>\r
+               <th scope="col"><?php echo _AT('title');          ?></th>\r
+               <th scope="col"><?php echo _AT('status');         ?></th>\r
+               <th scope="col"><?php echo _AT('result_release'); ?></th>\r
+               <th scope="col"><?php echo _AT('pass_score');     ?></th>\r
+               <th scope="col"><?php echo _AT('assigned_to');    ?></th>\r
+       </tr>\r
+       </thead>\r
+       <tbody>\r
+       <?php foreach ($this->pretests as $row) { ?>\r
+       <?php\r
+               $checkMe = '';\r
+               if (is_array($_POST['pre_tid']) && in_array($row['test_id'], $_POST['pre_tid'])){\r
+                       $checkMe = ' checked="checked"';\r
+               } \r
+       ?>\r
+       <tr onmousedown="toggleTestSelect('r_<?php echo $row['test_id']; ?>');rowselect(this);" id="r_<?php echo $row['test_id']; ?>">\r
+               <td><input type="checkbox" name="tid[]" value="<?php echo $row['test_id']; ?>" id="t<?php echo $row['test_id']; ?>" <?php echo $checkMe; ?> onmouseup="this.checked=!this.checked" /></td>\r
+               <td><?php echo $row['title']; ?></td>\r
+               <td><?php echo $row['status']; ?></td>\r
+               <!-- <td><?php echo $row['availability']; ?></td> -->\r
+               <td><?php echo $row['result_release']; ?></td>\r
+               <td><?php echo $row['pass_score']; ?></td>\r
+               <td><?php echo $row['assign_to']; ?></td>\r
+       </tr>\r
+       <?php } ?>\r
+       </tbody>\r
+       </table>\r
+       </div>\r
+<?php }?>\r
+\r
+       <div class="row buttons">\r
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" title="<?php echo _AT('save_changes'); ?> alt-s" accesskey="s" />\r
+       </div>\r
+</div>\r
+</form>\r
+\r
+<script language="javascript" type="text/javascript">\r
+       function toggleTestSelect(r_id){\r
+               var row = document.getElementById(r_id);\r
+               var checkBox = row.cells[0].firstChild;\r
+\r
+               if (checkBox.checked == true){\r
+                       checkBox.checked = false;\r
+               } else {\r
+                       checkBox.checked = true;\r
+               }\r
+       }\r
+</script>
\ No newline at end of file
diff --git a/docs/themes/default/inbox/inbox.tmpl.php b/docs/themes/default/inbox/inbox.tmpl.php
new file mode 100644 (file)
index 0000000..7db0add
--- /dev/null
@@ -0,0 +1,97 @@
+
+<?php 
+       if ($row = mysql_fetch_assoc($this->result_messages)) {
+?>
+       <ul id="inbox-msg">
+       <li>
+               <div class="forum-post-author">
+                       <a href="profile.php?id=<?php echo $row['from_member_id']; ?>" class="title"><?php echo get_display_name($row['from_member_id']); ?></a><br />
+                       <?php print_profile_img($row['from_member_id']); ?>
+               </div>
+
+               <div class="forum-post-content">
+                       <h3><?php echo AT_print($row['subject'], 'messages.subject'); ?></h3>
+                       <div>
+                               <div class="forum-post-ctrl">
+                                       <a href="inbox/send_message.php?reply=<?php echo $_GET['view']; ?>"><?php echo _AT('reply'); ?></a> | <a href="<?php echo $_SERVER['PHP_SELF']; ?>?delete=<?php echo $_GET['view']; ?>"><?php echo _AT('delete'); ?></a>
+                               </div>
+                               <p class="date"><?php echo AT_date(_AT('forum_date_format'), $row['date_sent'], AT_DATE_MYSQL_DATETIME); ?></p>
+                       </div>
+
+                       <div class="body">
+                               <p><?php echo AT_print($row['body'], 'messages.body'); ?></p>
+                       </div>
+               </div>
+
+       </li>
+       </ul><br /><br />
+       <?php
+       }
+?>
+       
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form" >
+<table class="data" summary="" rules="rows" width="55%">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col">&nbsp;</th>
+       <th scope="col" ><?php echo _AT('from');   ?></th>
+       <th scope="col" ><?php echo _AT('subject');?></th>
+       <th scope="col" ><?php echo _AT('date');   ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="5"><input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"/></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)): ?>
+       <?php do { ?>
+               <?php if ($row['message_id'] == $_GET['view']): ?>
+                       <tr class="selected">
+               <?php else: ?>
+                       <tr onmousedown="document.form['m<?php echo $row['message_id']; ?>'].checked = !document.form['m<?php echo $row['message_id']; ?>'].checked; rowselectbox(this, document.form['m<?php echo $row['message_id']; ?>'].checked, '');" id="r_<?php echo $row['message_id']; ?>_1">
+               <?php endif; ?>
+               <td><input type="checkbox" name="id[]" value="<?php echo $row['message_id']; ?>" id="m<?php echo $row['message_id']; ?>" <?php if (isset($_POST['id']) && in_array($row['message_id'], $_POST['id'])) { echo 'checked="checked"'; } ?> title="<?php echo _AT('delete').': '.AT_print($row['subject'], 'messages.subject');?>" onmouseup="this.checked=!this.checked" /></td>
+               <td valign="middle">
+               <?php
+               if ($row['new'] == 1)   {
+                       echo _AT('new');
+               } else if ($row['replied'] == 1) {
+                       echo _AT('replied');
+               }
+               echo '</td>';
+
+               $name = get_display_name($row['from_member_id']);
+
+               echo '<td align="left" valign="middle">';
+
+               if ($_GET['view'] != $row['message_id']) {
+                       echo $name;
+               } else {
+                       echo '<strong>'.$name.'</strong>';
+               }
+               echo '</td>';
+
+               echo '<td><label for="m'.$row['message_id'].'">';
+               if ($_GET['view'] != $row['message_id']) {
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?view='.$row['message_id'].'">'.AT_print($row['subject'], 'messages.subject').'</a>';
+               } else {
+                       echo '<strong>'.AT_print($row['subject'], 'messages.subject').'</strong>';
+               }
+               echo '</label></td>';
+       
+               echo '<td valign="middle" align="left" nowrap="nowrap">';
+               echo AT_date(_AT('inbox_date_format'),  $row['date_sent'], AT_DATE_MYSQL_DATETIME);
+               echo '</td>';
+               echo '</tr>';
+       } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="5"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/inbox/sent_messages.tmpl.php b/docs/themes/default/inbox/sent_messages.tmpl.php
new file mode 100644 (file)
index 0000000..fe56909
--- /dev/null
@@ -0,0 +1,92 @@
+
+<?php 
+       if ($row = mysql_fetch_assoc($this->result_messages)) {
+?>
+       <ul id="inbox-msg">
+       <li>
+               <div class="forum-post-author">
+                       <a href="profile.php?id=<?php echo $row['to_member_id']; ?>" class="title"><?php echo get_display_name($row['to_member_id']); ?></a><br />
+                       <?php print_profile_img($row['to_member_id']); ?>
+               </div>
+
+               <div class="forum-post-content">
+                       <h3><?php echo AT_print($row['subject'], 'messages.subject'); ?></h3>
+                       <div>
+                               <div class="forum-post-ctrl">
+                                       <a href="inbox/send_message.php?forward=<?php echo $_GET['view']; ?>"><?php echo _AT('forward'); ?></a> | <a href="<?php echo $_SERVER['PHP_SELF']; ?>?delete=<?php echo $_GET['view']; ?>"><?php echo _AT('delete'); ?></a>
+                               </div>
+                               <p class="date"><?php echo AT_date(_AT('forum_date_format'), $row['date_sent'], AT_DATE_MYSQL_DATETIME); ?></p>
+                       </div>
+
+                       <div class="body">
+                               <p><?php echo AT_print($row['body'], 'messages.body'); ?></p>
+                       </div>
+                       <div style="clear: both; font-size:0.1em"></div>
+               </div>
+       </li>
+       </ul>
+       <?php
+       }
+?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<table class="data" summary="" rules="rows">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col" ><?php echo _AT('to');   ?></th>
+       <th scope="col" ><?php echo _AT('subject');?></th>
+       <th scope="col" ><?php echo _AT('date');   ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="4">
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"/>
+               <input type="submit" name="move" value="<?php echo _AT('move_to_inbox'); ?>"/>
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)): ?>
+       <?php do { ?>
+               <?php if ($row['message_id'] == $_GET['view']): ?>
+                       <tr class="selected">
+               <?php else: ?>
+                       <tr onmousedown="document.form['m<?php echo $row['message_id']; ?>'].checked = !document.form['m<?php echo $row['message_id']; ?>'].checked; rowselectbox(this, document.form['m<?php echo $row['message_id']; ?>'].checked, '');" id="r_<?php echo $row['message_id']; ?>_1">
+               <?php endif; ?>
+               <td><input type="checkbox" name="id[]" value="<?php echo $row['message_id']; ?>" id="m<?php echo $row['message_id']; ?>" <?php if (isset($_POST['id']) && in_array($row['message_id'], $_POST['id'])) { echo 'checked="checked"'; } ?> title="<?php echo _AT('delete').': '.AT_print($row['subject'], 'messages.subject');?>" onmouseup="this.checked=!this.checked" /></td>
+               <?php
+
+               $name = get_display_name($row['to_member_id']);
+
+               echo '<td align="left" valign="middle">';
+
+               if ($_GET['view'] != $row['message_id']) {
+                       echo $name;
+               } else {
+                       echo '<strong>'.$name.'</strong>';
+               }
+               echo '</td>';
+
+               echo '<td><label for="m'.$row['message_id'].'">';
+               if ($_GET['view'] != $row['message_id']) {
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?view='.$row['message_id'].'">'.AT_print($row['subject'], 'messages.subject').'</a>';
+               } else {
+                       echo '<strong>'.AT_print($row['subject'], 'messages.subject').'</strong>';
+               }
+               echo '</label></td>';
+       
+               echo '<td valign="middle" align="left" nowrap="nowrap">';
+               echo AT_date(_AT('inbox_date_format'),  $row['date_sent'], AT_DATE_MYSQL_DATETIME);
+               echo '</td>';
+               echo '</tr>';
+       } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
diff --git a/docs/themes/default/instructor/announcements/add_news.tmpl.php b/docs/themes/default/instructor/announcements/add_news.tmpl.php
new file mode 100644 (file)
index 0000000..c682aa5
--- /dev/null
@@ -0,0 +1,42 @@
+       <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+       <input type="hidden" name="add_news" value="true" />
+       <input type="submit" name="submit" style="display:none;"/>
+       <div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_announcement'); ?></legend>
+               <div class="row">
+                       <label for="title"><?php echo _AT('title'); ?></label><br />
+                       <input type="text" name="title" size="40" id="title" value="<?php echo $_POST['title']; ?>" />
+               </div>
+
+               <div class="row">
+                       <?php echo _AT('formatting'); ?><br />
+                       <input type="radio" name="formatting" value="0" id="text" <?php if ($_POST['formatting'] == 0) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=true;" <?php if ($_POST['setvisual'] && !$_POST['settext']) { echo 'disabled="disabled"'; } ?> />
+
+                       <label for="text"><?php echo _AT('plain_text'); ?></label>
+                       <input type="radio" name="formatting" value="1" id="html" <?php if ($_POST['formatting'] == 1 || $_POST['setvisual']) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=false;"/>
+
+                       <label for="html"><?php echo _AT('html'); ?></label>
+                       <?php   //Button for enabling/disabling visual editor
+                               if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
+                                       echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
+                                       echo '<input type="submit" name="settext" value="'._AT('switch_text').'" class="button"/>';
+                               } else {
+                                       echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'"  ';
+                                       if ($_POST['formatting']==0) { echo 'disabled="disabled"'; }
+                                       echo ' class="button" />';
+                               }
+                       ?>
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body_text"><?php echo _AT('body'); ?></label><br />
+                       <textarea name="body_text" cols="40" rows="15" id="body_text"><?php echo $_POST['body_text']; ?></textarea>
+               </div>
+               
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s"  class="button"/>
+                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> "  class="button"/>
+               </div>
+       </fieldset>
+       </div>
+       </form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/announcements/edit_news.tmpl.php b/docs/themes/default/instructor/announcements/edit_news.tmpl.php
new file mode 100644 (file)
index 0000000..3db0163
--- /dev/null
@@ -0,0 +1,41 @@
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="edit_news" value="true">
+<input type="hidden" name="aid" value="<?php echo $this->row['news_id']; ?>">
+<input type="submit" name="submit" style="display:none;"/>
+<div class="input-form">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" name="title" id="title" value="<?php echo AT_print($this->row['title'], 'input.text'); ?>" size="40">
+       </div>
+
+       <div class="row">
+               <?php echo _AT('formatting'); ?><br />
+               <input type="radio" name="formatting" value="0" id="text" <?php if ($_POST['formatting'] === 0) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=true;" <?php if ($_POST['setvisual'] && !$_POST['settext']) { echo 'disabled="disabled"'; } ?> /><label for="text"><?php echo _AT('plain_text'); ?></label>,
+
+               <input type="radio" name="formatting" value="1" id="html" <?php if ($_POST['formatting'] == 1 || $_POST['setvisual']) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=false;"  /> <label for="html"><?php echo _AT('html'); ?></label>
+               <?php
+                       if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
+                               echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
+                               echo '<input type="submit" name="settext"   value="'._AT('switch_text').'" />';
+                       } else {
+                               echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'" ';
+                               if ($_POST['formatting']==0) { echo 'disabled="disabled"'; }
+                               echo '/>';
+                       } 
+               ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body_text"><?php echo _AT('body'); ?></label><br />
+               <textarea name="body_text" cols="55" rows="15" id="body_text" wrap="wrap"><?php echo AT_print($this->row['body'], 'input.text'); ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
+       </div>
+
+
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/announcements/index.tmpl.php b/docs/themes/default/instructor/announcements/index.tmpl.php
new file mode 100644 (file)
index 0000000..8b318d2
--- /dev/null
@@ -0,0 +1,43 @@
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<table class="data" summary="Title and date of annoucements" rules="cols">
+<colgroup>
+       <?php if ($this->col == 'title'): ?>
+               <col />
+               <col class="sort" />
+               <col />
+       <?php elseif($this->col == 'date'): ?>
+               <col span="2" />
+               <col class="sort" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><a href="mods/_standard/announcements/index.php?<?php echo $this->orders[$this->order]; ?>=title"><?php echo _AT('title'); ?></a></th>
+       <th scope="col"><a href="mods/_standard/announcements/index.php?<?php echo $this->orders[$this->order]; ?>=date"><?php echo _AT('date'); ?></a></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="3"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" class="button"/> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"  class="button"/></td>
+</tr>
+</tfoot>
+<tbody>
+       <?php if ($row = mysql_fetch_assoc($this->result)): ?>
+               <?php do { ?>
+                       <tr onkeydown="document.form['n<?php echo $row['news_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['n<?php echo $row['news_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['news_id']; ?>">
+                       
+                               <td><input type="radio" name="aid" value="<?php echo $row['news_id']; ?>" id="n<?php echo $row['news_id']; ?>" /></td>
+                               
+                               <td><label for="n<?php echo $row['news_id']; ?>"><?php echo AT_print($row['title'], 'news.title'); ?></label></td>
+                               <td><?php echo AT_date(_AT('announcement_date_format'), $row['date'], AT_DATE_MYSQL_DATETIME); ?></td>
+                       </tr>
+               <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+       <?php else: ?>
+               <tr>
+                       <td colspan="3"><?php echo _AT('none_found'); ?></td>
+               </tr>
+       <?php endif; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/assignments/add_assignment.tmpl.php b/docs/themes/default/instructor/assignments/add_assignment.tmpl.php
new file mode 100644 (file)
index 0000000..e0d0bac
--- /dev/null
@@ -0,0 +1,114 @@
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="id" value="<?php echo $this->id ?>" />
+<div class="input-form">       
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_assignment'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php  echo _AT('title'); ?></label><br/>
+               <input type="text" name="title" size="50" id="title" value="<?php echo AT_print($this->title, 'assignment.title'); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="assignto"><?php  echo _AT('assign_to'); ?></label><br/>
+
+               <?php // Are we editing an assignment?
+                       if ($this->id != '0'){
+                               // editing an existing assignment 
+                               if ($this->assign_to == '0'){ 
+                                       echo _AT('all_students'); 
+                               } else { // name of group goes here
+                                       
+                                       $type_row = mysql_fetch_assoc($this->result_group);
+                                       echo $type_row['title'];
+                               }
+                               ?>
+                       <?php } else { // creating a new assignment
+                       ?>
+                               <select name="assign_to" size="5" id="assignto">
+                                       <option value="0" <?php if ($this->assign_to == '0'){ echo 'selected="selected"'; } ?> label="<?php  echo _AT('all_students'); ?>"><?php  echo _AT('all_students'); ?></option>
+                                       <optgroup label="<?php  echo _AT('specific_groups'); ?>">
+                                               <?php
+                                                       
+                                                       while ($type_row = mysql_fetch_assoc($result_assign)) {
+                                                               echo '<option value="'.$type_row['type_id'].'" ';
+                                                               if ($this->assign_to == $type_row['type_id']) {
+                                                                       echo 'selected="selected"';
+                                                               }
+                                                               echo '>'.$type_row['title'].'</option>';
+                                                       }
+                                               ?>
+                                       </optgroup>
+                               </select>
+                       <?php } ?>
+       </div>  
+
+       <div class="row">
+               <?php  echo _AT('due_date'); ?><br />
+               <input type="radio" name="has_due_date" value="false" id="noduedate" <?php if ($this->has_due_date == 'false') { echo 'checked="checked"'; } ?> 
+               onfocus="disable_dates (true, '_due');" />
+               <label for="noduedate" title="<?php echo _AT('due_date'). ': '. _AT('none');  ?>"><?php echo _AT('none'); ?></label><br />
+
+               <input type="radio" name="has_due_date" value="true" id="hasduedate" <?php if ($this->has_due_date == 'true'){echo 'checked="checked"'; } ?> 
+               onfocus="disable_dates (false, '_due');" />
+               <label for="hasduedate"  title="<?php echo _AT('due_date') ?>"><?php  echo _AT('date'); ?></label>
+
+               <?php
+                       $today_day  = $dueday;
+                       $today_mon  = $duemonth;
+                       $today_year = $dueyear;
+                       $today_hour = $duehour;
+                       $today_min  = $dueminute;
+                       
+                       $name = '_due';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+       </div>
+
+       <div class="row">
+               <?php  echo _AT('accept_late_submissions'); ?><br />
+               <input type="radio" name="late_submit" value="0" id="always"  <?php if ($this->late_submit == '0'){echo 'checked="checked"';} ?> 
+               onfocus="disable_dates (true, '_cutoff');" />
+
+               <label for="always" title="<?php echo _AT('accept_late_submissions'). ': '. _AT('always');  ?>"><?php echo _AT('always'); ?></label><br />
+
+               <input type="radio" name="late_submit" value="1" id="never"  <?php if ($this->late_submit == '1'){echo 'checked="checked"';} ?>
+               onfocus="disable_dates (true, '_cutoff');" />
+
+               <label for="never" title="<?php echo _AT('accept_late_submissions'). ': '. _AT('never');  ?>"><?php  echo _AT('never'); ?></label><br />
+
+               <input type="radio" name="late_submit" value="2" id="until"  <?php if ($this->late_submit == '2'){echo 'checked="checked"';} ?>
+               onfocus="disable_dates (false, '_cutoff');" />
+
+               <label for="until" title="<?php echo _AT('accept_late_submissions'). ': '. _AT('until');  ?>"><?php  echo _AT('until'); ?></label>
+
+               <?php
+                       $today_day  = $cutoffday;
+                       $today_mon  = $cutoffmonth;
+                       $today_year = $cutoffyear;
+                       $today_hour = $cutoffhour;
+                       $today_min  = $cutoffminute;
+                       
+                       $name = '_cutoff';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+       </div>
+       <?php
+       /****
+        * not included in the initial release.
+        *
+       <div class="row">
+               <?php  echo _AT('options'); <br/>
+               <input type="checkbox" name="multi_submit" id="multisubmit" <?php if ($multi_submit == '1'){ echo 'checked="checked"'; }  />
+               <label for="multisubmit"><?php  echo _AT('allow_re_submissions'); </label>
+       </div>
+       ***/
+       ?>
+       
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" class="button"/>
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  class="button"/>
+       </div>
+       </fieldset>
+</div>
+
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/assignments/index_instructor.tmpl.php b/docs/themes/default/instructor/assignments/index_instructor.tmpl.php
new file mode 100644 (file)
index 0000000..b6fae20
--- /dev/null
@@ -0,0 +1,78 @@
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+
+<table class="data">
+<colgroup>
+       <?php if ($this->sort == 'title'): ?>
+               <col />
+               <col class="sort" />
+               <col span="5" />
+       <?php elseif($this->sort == 'assign_to'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($this->sort == 'date_due'): ?>
+               <col span="3" />
+               <col class="sort" />
+               <col span="3" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th>&nbsp;</th>
+       <th scope="col"><a href="mods/_standard/assignments/index_instructor.php?sort=title<?php echo SEP; ?>order=<?php echo $orders[$order]; ?>"><?php echo _AT('title'); ?></a></th>
+       <th scope="col"><?php echo _AT('assigned_to'); ?></th>
+       <th scope="col"><a href="mods/_standard/assignments/index_instructor.php?sort=date_due<?php echo SEP; ?>order=<?php echo $orders[$order]; ?>"><?php echo _AT('due_date'); ?></a></th>
+</tr>
+</thead>
+<?php if (($this->result != 0) && ($row = mysql_fetch_assoc($this->result))) : ?>
+<tfoot>
+<tr>
+       <td colspan="4">
+               <input type="submit" name="submissions" value="<?php echo _AT('submissions'); ?>" class="button"/> 
+               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>"  class="button"/> 
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" class="button" />
+                                       
+       </td>
+</tr>
+</tfoot>
+<tbody>
+       <?php do { ?>
+               <tr onkeydown="document.form['a<?php echo $row['assignment_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['a<?php echo $row['assignment_id']; ?>'].checked = true; rowselect(this);" id="a_<?php echo $row['assignment_id']; ?>_0">
+               
+               <td><input type="radio" id="a<?php echo $row['assignment_id']; ?>" name="assignment" value="<?php echo $row['assignment_id']; ?>" 
+
+               <?php // set first item as checked if nothing selected
+               if (isset($_GET['assignment_id'])){
+                       if ($_GET['assignment_id'] == $row['assignment_id']){ 
+                               echo ' checked="checked"'; 
+                       } 
+               }
+               else {
+                       echo ' checked="checked"';
+                       $_GET['assignment_id'] = $row['assignment_id'];
+               }
+               ?>/></td>
+
+               <td><label for="a<?php echo $row['assignment_id']; ?>"><?php echo AT_print($row['title'], 'assignment.title'); ?></label></td>
+
+               <td><?php if($row['assign_to'] == '0'){echo _AT('all_students'); } else {
+                               
+                                       $type_row = mysql_fetch_assoc($this->type_result);
+                                       echo $type_row['title']; } ?></td>
+
+               <td><?php  if ($row['date_due'] == '0000-00-00 00:00:00'){
+                       echo _AT('none');
+               }else {
+                       echo AT_Date(_AT('forum_date_format'), $row['date_due'], AT_DATE_MYSQL_DATETIME);
+               }?></td>
+               </tr>
+       <?php } while($row = mysql_fetch_assoc($this->result)); ?>
+</tbody>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><strong><?php echo _AT('none_found'); ?></strong></td>
+       </tr>
+<?php endif; ?>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/backups/create.tmpl.php b/docs/themes/default/instructor/backups/create.tmpl.php
new file mode 100644 (file)
index 0000000..f3a69ca
--- /dev/null
@@ -0,0 +1,25 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('create_backup'); ?></legend>
+       <div class="row">
+               <?php echo _AT('create_backup_about', AT_COURSE_BACKUPS); ?>
+       </div>
+
+       <?php if ($this->Backup->getNumAvailable() >= AT_COURSE_BACKUPS): ?>
+               <div class="row">
+                       <p><strong><?php echo _AT('max_backups_reached'); ?></strong></p>
+               </div>
+       <?php else: ?>
+               <div class="row">
+                       <label for="desc"><?php echo _AT('optional_description'); ?></label>
+                       <textarea cols="35" rows="2" id="desc" name="description"></textarea>
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('create'); ?>" accesskey="s"  class="button"/> 
+                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  class="button"/>
+               </div>
+       <?php endif; ?>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/backups/edit.tmpl.php b/docs/themes/default/instructor/backups/edit.tmpl.php
new file mode 100644 (file)
index 0000000..61955d9
--- /dev/null
@@ -0,0 +1,16 @@
+<form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="backup_id" value="<?php echo $_GET['backup_id']; ?>" />
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit'); ?></legend>
+       <div class="row">
+               <label for="description"><?php echo _AT('optional_description'); ?></label>
+               <textarea cols="30" rows="2" id="description" name="new_description"><?php echo AT_print($this->row['description'], 'backups.description'); ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="edit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
diff --git a/docs/themes/default/instructor/backups/index.tmpl.php b/docs/themes/default/instructor/backups/index.tmpl.php
new file mode 100644 (file)
index 0000000..dfa6224
--- /dev/null
@@ -0,0 +1,44 @@
+
+<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+
+<table class="data" summary="List of backups available" rules="cols">
+<thead>
+<tr>
+       <th><?php echo _AT('file_name');    ?></th>
+       <th><?php echo _AT('date_created'); ?></th>
+       <th><?php echo _AT('file_size');    ?></th>
+       <th><?php echo _AT('description');  ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6"><input type="submit" name="restore" value="<?php echo _AT('restore'); ?>"  class="button"/> 
+                                 <input type="submit" name="download" value="<?php echo _AT('download'); ?>"  class="button"/> 
+                                 <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"  class="button"/> 
+                                 <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>"  class="button"/></td>
+</tr>
+</tfoot>
+<tbody>
+<?php
+
+       if (!$this->list) {
+               ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+       <?php
+       } else {
+               foreach ($this->list as $row) {
+                       echo '<tr onmousedown="document.form[\'b'.$row['backup_id'].'\'].checked = true; rowselect(this);" id="r_'.$row['backup_id'].'">';
+                       echo '<td class="row1"><label><input type="radio" value="'.$row['backup_id'].'" name="backup_id" id="b'.$row['backup_id'].'" />';
+                       echo $row['file_name'].'</label></td>';
+                       echo '<td>'.AT_date(_AT('filemanager_date_format'), $row['date'], AT_DATE_MYSQL_DATETIME).'</td>';
+                       echo '<td align="right">'.get_human_size($row['file_size']).'</td>';
+                       echo '<td>'.AT_print($row['description'], 'backups.description').'</td>';
+                       echo '</tr>';
+               }
+?>
+       <?php } ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/backups/restore.tmpl.php b/docs/themes/default/instructor/backups/restore.tmpl.php
new file mode 100644 (file)
index 0000000..e03efd0
--- /dev/null
@@ -0,0 +1,58 @@
+<?php global $moduleFactory; ?>
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<input type="hidden" name="backup_id" value="<?php echo $_REQUEST['backup_id']; ?>" />
+
+<div class="input-form">
+<fieldset class="group_form"><legend class="group_form"><?php echo _AT('restore'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('material'); ?><br />
+
+               <input type="checkbox" value="1" name="all" id="all" onclick="javascript:selectAll();" /><label for="all"><?php echo _AT('material_select_all'); ?></label><br /><br />
+
+               <input type="checkbox" value="1" name='material[properties]' id='m0' /><label for='m0'><?php echo _AT('banner'); ?></label><br />
+               <?php
+               $i=0;
+               $modules = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED, 0, TRUE);
+               $keys = array_keys($modules);
+               ?>
+               <?php foreach($keys as $module_name): ?>
+                       <?php $module =& $modules[$module_name]; ?>
+                       <?php if ($module->isBackupable()): ?>
+                               <input type="checkbox" value="1" name="material[<?php echo $module_name; ?>]" id="m<?php echo ++$i; ?>" /><label for="m<?php echo $i; ?>"><?php echo $module->getName(); ?></label><br />
+                       <?php endif; ?>
+               <?php endforeach; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('action'); ?><br />
+               <input type="radio" checked="checked" name="action" value="append" id="append" /><label for="append"><?php echo _AT('append_content'); ?></label><br />
+               
+               <input type="radio" name="action" value="overwrite" id="overwrite" /><label for="overwrite"><?php echo _AT('overwite_content'); ?></label><br />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('restore'); ?>"  class="button"/> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  class="button"/>
+       </div>
+</fieldset>
+</div>
+</form>
+<?php $i=0; ?>
+<script language="javascript" type="text/javascript">
+       
+       function selectAll() {
+               if (document.form.all.checked == true) {
+                       document.form.m0.checked = true;
+                       <?php foreach($keys as $module_name): $module =& $modules[$module_name]; if ($module->isBackupable()): ?>
+                               document.form.m<?php echo ++$i; ?>.checked = true;
+                       <?php endif; endforeach; ?>
+               } else {
+                       document.form.m0.checked = false;
+                       <?php $i=0;?>
+                       <?php foreach($keys as $module_name): $module =& $modules[$module_name]; if ($module->isBackupable()): ?>
+                               document.form.m<?php echo ++$i; ?>.checked = false;
+                       <?php endif; endforeach; ?>
+
+               }
+       }
+</script>
diff --git a/docs/themes/default/instructor/backups/upload.tmpl.php b/docs/themes/default/instructor/backups/upload.tmpl.php
new file mode 100644 (file)
index 0000000..ff72018
--- /dev/null
@@ -0,0 +1,30 @@
+<form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data" >
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('upload'); ?></legend>
+       <div class="row">
+               <p><?php echo _AT('restore_upload'); ?></p>
+       </div>
+
+       <?php if ($this->Backup->getNumAvailable() >= AT_COURSE_BACKUPS): ?>
+               <div class="row">
+                       <p><strong><?php echo _AT('max_backups_reached'); ?></strong></p>
+               </div>
+       <?php else: ?>
+               <div class="row">
+                       <label for="descrip"><?php echo _AT('optional_description'); ?></label><br />
+                       <textarea id="descrip" cols="30" rows="2" name="description"></textarea>
+               </div>
+               
+               <div class="row">
+                       <label for="file"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('file'); ?></label><br />
+                       <input type="file" name="file" id="file" />
+               </div>
+
+               <div class="row buttons">
+               <input type="submit" name="upload" value="<?php echo _AT('upload_backup'); ?>" onclick="openWindow('<?php echo AT_BASE_HREF; ?>tools/prog.php');"  class="button"/> 
+                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  class="button"/>
+               </div>
+       <?php endif; ?>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/chat/index.tmpl.php b/docs/themes/default/instructor/chat/index.tmpl.php
new file mode 100644 (file)
index 0000000..de6300c
--- /dev/null
@@ -0,0 +1,69 @@
+<?php if (count($this->tran_files) == 0) {
+       echo '<div style="width:90%;" class="input-form"><p>'._AT('chat_none_found').'</p></div>';
+} else {?>
+       
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+
+       <table class="data" rules="cols" summary="List of transcripts for chat">
+       <colgroup>
+               <?php if ($this->col == 'name'): ?>
+                       <col />
+                       <col class="sort" />
+                       <col span="2" />
+               <?php elseif($this->col == 'date'): ?>
+                       <col span="3" />
+                       <col class="sort" />
+               <?php endif; ?>
+       </colgroup>
+       <thead>
+       <tr>
+               <th scope="col">&nbsp;</th>
+               <th scope="col"><a href="mods/_standard/chat/index.php?<?php echo $this->orders[$this->order]; ?>=name"><?php echo _AT('chat_transcript');?></a></th>
+               <th scope="col"><?php echo _AT('status'); ?></th>
+               <th scope="col"><a href="mods/_standard/chat/index.php?<?php echo $this->orders[$this->order]; ?>=date"><?php echo _AT('date'); ?></a></th> 
+               </th> 
+       </tr>
+       </thead>
+       <?php
+
+       if (($this->col == 'date') && ($this->order == 'asc')) {
+               asort($this->tran_files);
+       } else if (($this->col == 'date') && ($this->order == 'desc')) {
+               arsort($this->tran_files);
+       } else if (($this->col == 'name') && ($this->order == 'asc')) {
+               ksort($this->tran_files);
+       } else if (($this->col == 'name') && ($this->order == 'desc')) {
+               krsort($this->tran_files);
+       }
+       reset ($this->tran_files);
+       ?>
+
+       <tbody>
+       <?php foreach ($this->tran_files as $file => $date) { ?>
+               <tr onkeydown="document.form['<?php echo $file; ?>'].checked = true; rowselect(this);" onmousedown="document.form['<?php echo $file; ?>'].checked = true; rowselect(this);" id="r_<?php echo $file; ?>">
+                       <td><input type="radio" name="file" value="<?php echo $file; ?>" id="<?php echo $file; ?>" /></td>
+
+                       <td><label for="<?php echo $file; ?>"><?php echo $file; ?></label></td>
+                       <td>
+                               <?php if (($file.'.html' == $this->admin['tranFile']) && ($this->admin['produceTran'])) { 
+                                       echo _AT('chat_currently_active');
+                               } else {
+                                       echo _AT('chat_inactive');
+                               }?>
+                       </td>
+       
+                       <td><?php echo AT_DATE(_AT('server_date_format'), $date); ?></td>
+               </tr>
+       <?php } ?>
+       </tbody>
+
+       <tfoot>
+       <tr>
+               <td colspan="4"><input type="submit" name="view" value="<?php echo _AT('view'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+       </tr>
+       </tfoot>
+
+       </table>
+</form>
+<?php
+}?>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/chat/start_transcript.tmpl.php b/docs/themes/default/instructor/chat/start_transcript.tmpl.php
new file mode 100644 (file)
index 0000000..4a264d6
--- /dev/null
@@ -0,0 +1,33 @@
+<form name="f1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="input-form">
+       <div class="row">
+               <?php echo _AT('chat_keep_tran'); ?>
+       </div>
+<?php
+       echo '<input type="hidden" name="adminPass" value="'.$this->adminPass.'" />';
+
+       if ($this->admin['produceTran'] > 0) {
+               echo '<input type="hidden" name="function" value="stopTran" />';
+               echo '<div class="row">';
+                       echo _AT('chat_current_tran').' <a href="mods/_standard/chat/view_transcript.php?t='.str_replace('.html', '', $this->admin['tranFile']).'" >'.str_replace('.html', '', $this->admin['tranFile']).'</a>.</p>';
+               echo '</div>';
+
+               echo '<div class="row buttons">';
+               echo '<input type="submit" value="'._AT('chat_stop_tran').'" name="submit2" />';
+               echo '</div>';
+
+    } else {
+        echo '<input type="hidden" name="function" value="startTran" />';
+
+               echo '<div class="row">';
+                       echo _AT('chat_tran_file_name').' ';
+                       echo '<input type="text" name="tranFile" class="formfield" />';
+               echo '</div>';          
+
+               echo '<div class="row buttons">';
+               echo '<input type="submit" value="'._AT('chat_start_tran').'" name="submit2" />';
+               echo '</div>';
+    }
+       echo '</div>';
+       echo '</form>';
+?>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/content/index.tmpl.php b/docs/themes/default/instructor/content/index.tmpl.php
new file mode 100644 (file)
index 0000000..89299e7
--- /dev/null
@@ -0,0 +1,61 @@
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="input-form">
+       <div class="row">
+               <h3><label for="ctid"><?php echo _AT('select_parent_topic'); ?></label></h3>
+       </div>
+
+       <div class="row">
+               <select name="ctid" id="ctid">
+                       <option value="0"><?php echo _AT('top_level'); ?></option>
+                       <?php
+                               print_select(0, 1);
+                       ?>
+               </select>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="sub_content" value="<?php echo _AT('view_sub_topics'); ?>" />
+       </div>
+</div>
+</form>
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+
+<table class="data" summary="Parent topics and subtopics" rules="cols" style="width: 95%;">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col">#</th>
+       <th scope="col"><?php echo _AT('title'); ?></th>
+       <th scope="col"><?php echo _AT('num_pages'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="5">
+               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+               <input type="submit" name="view" value="<?php echo _AT('view'); ?>" />
+               <input type="submit" name="usage" value="<?php echo _AT('usage'); ?>" />
+               <input type="submit" name="sub_content" value="<?php echo _AT('sub_topics'); ?>" />
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+       <?php if (!empty($this->content)): ?>
+               <?php foreach ($this->content as $row): ?>
+                       <tr onmousedown="document.form['c<?php echo $row['content_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['content_id']; ?>">
+                               <td><input type="radio" name="ctid" value="<?php echo $row['content_id']; ?>" id="c<?php echo $row['content_id']; ?>" /></td>
+                               <td><?php echo $row['ordering']; ?></td>
+                               <td><label for="c<?php echo $row['content_id']; ?>"><?php echo AT_print($row['title'], 'content.title'); ?></label></td>
+                               <td><?php echo count($this->all_content[$row['content_id']]); ?></td>
+                       </tr>
+               <?php endforeach; ?>
+       <?php else: ?>
+               <tr>
+                       <td colspan="5"><?php echo _AT('none_found'); ?></td>
+               </tr>
+       <?php endif; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/content/page_student_stats.tmpl.php b/docs/themes/default/instructor/content/page_student_stats.tmpl.php
new file mode 100644 (file)
index 0000000..10009ac
--- /dev/null
@@ -0,0 +1,26 @@
+<table class="data" rules="cols" summary="Student usage statistics by login name">
+<thead>
+<tr>
+       <th scope="col"><?php echo _AT('login_name'); ?></th>
+       <th scope="col"><?php echo _AT('visits'); ?></th>
+       <th scope="col"><?php echo _AT('avg_duration'); ?></th>
+       <th scope="col"><?php echo _AT('duration'); ?></th>
+</tr>
+</thead>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)) : ?>
+       <?php do { ?>
+       <tr onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/student_usage.php?id=<?php echo $row['member_id']; ?>'" title="<?php echo _AT('member_stats'); ?>">
+               <td><a href="<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/student_usage.php?id=<?php echo $row['member_id']; ?>"><?php echo get_display_name($row['member_id']); ?></a></td>
+               <td><?php echo $row['counter']; ?></td>
+               <td><?php echo $row['average']; ?></td>
+               <td><?php echo $row['total']; ?></td>
+       </tr>
+       <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
diff --git a/docs/themes/default/instructor/content/tracker/index.tmpl.php b/docs/themes/default/instructor/content/tracker/index.tmpl.php
new file mode 100644 (file)
index 0000000..69d2fbe
--- /dev/null
@@ -0,0 +1,66 @@
+<?php global $contentManager;?>
+<div class="toolcontainer">
+<div class="paging">
+       <ul>
+       <?php for ($i=1; $i<=$this->num_pages; $i++): ?>
+               <li>
+                       <?php if ($i == $this->page) : ?>
+                               <a class="current" href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$this->page_string; ?>"><strong><?php echo $i; ?></strong></a>
+                       <?php else: ?>
+                               <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$this->page_string; ?>"><?php echo $i; ?></a>
+                       <?php endif; ?>
+               </li>
+       <?php endfor; ?>
+       </ul>
+</div>
+
+<table class="data" rules="cols" summary="Usage, including Visits, Unique Visits, average duration, and total duration, of content pages">
+<colgroup>
+       <?php if ($this->col == 'total_hits'): ?>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($this->col == 'unique_hits'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="3" />
+       <?php elseif($this->col == 'average_duration'): ?>
+               <col span="3" />
+               <col class="sort" />
+               <col span="2" />
+       <?php elseif($this->col == 'total_duration'): ?>
+               <col span="4" />
+               <col class="sort" />
+               <col />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col"><?php echo _AT('page'); ?></th>
+       <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=total_hits"><?php echo _AT('visits');             ?></a></th>
+       <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=unique_hits"><?php echo _AT('unique_visits');     ?></a></th>
+       <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=average_duration"><?php echo _AT('avg_duration'); ?></a></th>
+       <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=total_duration"><?php echo _AT('duration');       ?></a></th>
+       <th scope="col"><?php echo _AT('details');       ?></th>
+</tr>
+</thead>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)): ?>
+       <?php do { ?>
+               <tr onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/page_student_stats.php?content_id=<?php echo $row['content_id']; ?>'" title="<?php echo _AT('details'); ?>">
+                       <td><?php echo $contentManager->_menu_info[$row['content_id']]['title']; ?></td>
+                       <td><?php echo $row['total_hits'];       ?></td>
+                       <td><?php echo $row['unique_hits'];      ?></td>
+                       <td><?php echo $row['average_duration']; ?></td>
+                       <td><?php echo $row['total_duration'];   ?></td>
+                       <td><a href="mods/_standard/tracker/tools/page_student_stats.php?content_id=<?php echo $row['content_id']; ?>"><?php echo _AT('details'); ?></a></td>
+               </tr>
+       <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/content/tracker/student_usage.tmpl.php b/docs/themes/default/instructor/content/tracker/student_usage.tmpl.php
new file mode 100644 (file)
index 0000000..ce1233a
--- /dev/null
@@ -0,0 +1,52 @@
+<?php global $contentManager;?>
+<form name="form" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
+<div class="input-form">
+       <div class="row">
+               <label for="id"><?php echo _AT('select_member'); ?></label><br />
+               <select name="id" id="id">
+                       <?php
+                               while ($row = mysql_fetch_assoc($this->result)) {
+                                       $sender = get_display_name($row['member_id']);
+                                       echo '<option value="'.$row['member_id'].'"';
+                                       if ($row['member_id'] == $_GET['id']) {
+                                               echo ' selected="selected"';
+                                       }
+                                       echo '>'.$sender.'</option>';
+                               }
+                       ?>
+               </select>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('view'); ?>" />
+       </div>
+</div>
+</form>
+
+<?php if ($_GET['id']) : ?>
+
+       <table class="data static" rules="cols" summary="View the usage of a specific student">
+       <thead>
+       <tr>
+               <th scope="col"><?php echo _AT('page'); ?></th>
+               <th scope="col"><?php echo _AT('visits'); ?></th>
+               <th scope="col"><?php echo _AT('duration'); ?></th>
+       </tr>
+       </thead>
+       <tbody>
+       <?php if ($row = mysql_fetch_assoc($this->result_list)): ?>
+               <?php do { ?>
+                       <tr>
+                               <td><?php echo $contentManager->_menu_info[$row['content_id']]['title']; ?></td>
+                               <td><?php echo $row['counter']; ?></td>
+                               <td><?php echo $row['total']; ?></td>
+                       </tr>
+               <?php } while ($row = mysql_fetch_assoc($this->result_list)); ?>
+       <?php else: ?>
+               <tr>
+                       <td colspan="3"><?php echo _AT('none_found'); ?></td>
+               </tr>
+       <?php endif; ?>
+</tbody>
+</table>
+<?php endif; ?>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/course_email/course_email.tmpl.php b/docs/themes/default/instructor/course_email/course_email.tmpl.php
new file mode 100644 (file)
index 0000000..6fa5504
--- /dev/null
@@ -0,0 +1,45 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="course" value="<?php echo $course; ?>" />
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('course_email'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
+               <?php echo  _AT('to'); ?><br />
+               <input type="checkbox" name="to_assistants" value="1" id="assistants" <?php if ($_POST['to_assistants']=='1') { echo 'checked="checked"'; } ?> /><label for="assistants"><?php echo  _AT('assistants'); ?></label>
+               <input type="checkbox" name="to_enrolled" value="1" id="enrolled" <?php if ($_POST['to_enrolled']=='1') { echo 'checked="checked"'; } else { echo 'checked="checked"'; } ?> /><label for="enrolled"><?php echo  _AT('enrolled'); ?></label>
+               <input type="checkbox" name="to_unenrolled" value="1" id="unenrolled" <?php if ($_POST['to_unenrolled']=='1') { echo 'checked="checked"'; } ?> /><label for="unenrolled"><?php echo  _AT('unenrolled'); ?></label>
+               <input type="checkbox" name="to_alumni" value="1" id="alumni" <?php if ($_POST['to_alumni']=='1') { echo 'checked="checked"'; } ?> /><label for="alumni"><?php echo  _AT('alumni'); ?></label>
+
+               <?php if (!empty($this->group_type_rows)): ?>
+                       <br /><br />
+                       <?php echo _AT('or_groups'); ?>:<br />
+                       <select name="groups[]" multiple="multiple" size="10" style="padding-right: 5px">
+                               <?php foreach ($this->group_type_rows as $type_id => $row): ?>
+                                       <optgroup label="<?php echo $row['title']; ?>">
+                                               <?php foreach ($row['group_type_row'] as $group_row): ?>
+                                                       <option value="<?php echo $group_row['group_id']; ?>"><?php echo $group_row['title']; ?></option>
+                                               <?php endforeach; ?>
+                                       </optgroup>
+                               <?php endforeach; ?>
+                       </select>
+               <?php endif; ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="subject"><?php echo _AT('subject'); ?></label><br />
+               <input type="text" name="subject" size="60" id="subject" value="<?php echo $_POST['subject']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('body'); ?></label><br />
+               <textarea cols="55" rows="18" name="body" id="body"><?php echo $_POST['body']; ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('send'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
diff --git a/docs/themes/default/instructor/course_tools/modules.tmpl.php b/docs/themes/default/instructor/course_tools/modules.tmpl.php
new file mode 100644 (file)
index 0000000..7fd0810
--- /dev/null
@@ -0,0 +1,62 @@
+<?php $count = 0;
+global $_pages;
+?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<table class="data static" rules="rows" summary="">
+<thead>
+<tr>
+       <th scope="cols"><?php echo _AT('section'); ?></th>
+       <th><?php echo _AT('location'); ?></th>
+       <th><?php echo _AT('order'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="3" style="text-align:right;"><input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /></td>
+</tr>
+</tfoot>
+<tbody>
+<?php foreach ($this->current_modules as $module): ?>
+<?php $count++; ?>
+<tr>
+       <td><?php 
+               if (isset($_pages[$module]['title'])) {
+                       echo $_pages[$module]['title'];
+               } else {
+                       echo _AT($_pages[$module]['title_var']);
+               } ?></td>
+       <td>
+               <?php if (in_array($module, $_pages[AT_NAV_COURSE])): ?>
+                       <input type="checkbox" name="main[]" value="<?php echo $module; ?>" id="m<?php echo $count; ?>" checked="checked" /><label for="m<?php echo $count; ?>"><?php echo _AT('main_navigation'); ?></label>
+               <?php else: ?>
+                       <input type="checkbox" name="main[]" value="<?php echo $module; ?>" id="m<?php echo $count; ?>" /><label for="m<?php echo $count; ?>"><?php echo _AT('main_navigation'); ?></label>
+               <?php endif; ?>
+
+               <?php if (in_array($module, $_pages[AT_NAV_HOME])): ?>
+                       <input type="checkbox" name="home[]" value="<?php echo $module; ?>" id="h<?php echo $count; ?>" checked="checked" /><label for="h<?php echo $count; ?>"><?php echo _AT('home'); ?></label>
+               <?php else: ?>
+                       <input type="checkbox" name="home[]" value="<?php echo $module; ?>" id="h<?php echo $count; ?>" /><label for="h<?php echo $count; ?>"><?php echo _AT('home'); ?></label>
+               <?php endif; ?>
+       </td>
+       <td align="right">
+               <?php if (!in_array($module, $_pages[AT_NAV_HOME]) && !in_array($module, $_pages[AT_NAV_COURSE])): ?>
+                       &nbsp;
+               <?php else: ?>
+                       <?php if (($count != $this->num_main+1) && ($count > 1)): ?>
+                               <input type="submit" name="up[<?php echo $module; ?>]" value="<?php echo _AT('move_up'); ?>" title="<?php echo _AT('move_up'); ?>" style="background-color: white; border: 1px solid; padding: 0px;" />
+                       <?php else: ?>
+                               <img src="images/clr.gif" alt="" width="12" />
+                       <?php endif; ?>
+                       <?php if (($count != $this->num_main) && ($count < $this->num_modules)): ?>
+                               <input type="submit" name="down[<?php echo $module; ?>]" value="<?php echo _AT('move_down'); ?>" title="<?php echo _AT('move_down'); ?>" style="background-color: white; border: 1px solid; padding: 0px;"/>
+                       <?php else: ?>
+                               <img src="images/clr.gif" alt="" width="12" />
+                       <?php endif; ?>
+               <?php endif; ?>
+       </td>
+</tr>
+<?php endforeach; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/course_tools/side_menu.tmpl.php b/docs/themes/default/instructor/course_tools/side_menu.tmpl.php
new file mode 100644 (file)
index 0000000..b8a7110
--- /dev/null
@@ -0,0 +1,40 @@
+<?php global $_stacks; global $system_courses;  ?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="prefs">
+<div class="input-form" style="width:90%">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('side_menu'); ?></legend>
+       <div class="row">
+               <p><?php echo _AT('side_menu_text'); ?></p>
+       </div>
+
+       <div class="row">
+               <?php
+                       $num_stack = count($_stacks);
+                       $side_menu = explode("|", $system_courses[$_SESSION['course_id']]['side_menu']);                        
+
+                       for ($i=0; $i<$num_stack; $i++) {                               
+                               echo '<select name="stack['.$i.']">';
+                               echo '<option value=""></option>';
+                               foreach ($_stacks as $name=>$info) {
+                                       if (isset($info['title'])) {
+                                               $title = $info['title'];
+                                       } else {
+                                               $title = _AT($info['title_var']);
+                                       }
+                                       echo '<option value="'.$name.'"';
+                                       if (isset($side_menu[$i]) && ($name == $side_menu[$i])) {
+                                               echo ' selected="selected"';
+                                       }
+                                       echo '>'.$title.'</option>';
+                               }
+                               echo '</select>';
+                               echo '<br />'; 
+                       } ?>
+       </div>
+
+       <div class="buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('apply'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
diff --git a/docs/themes/default/instructor/enrolment/create_course_list.tmpl.php b/docs/themes/default/instructor/enrolment/create_course_list.tmpl.php
new file mode 100644 (file)
index 0000000..7ede144
--- /dev/null
@@ -0,0 +1,49 @@
+<div class="input-form">
+               <fieldset class="group_form"><legend class="group_form"><?php echo _AT('list_create_course_list'); ?></legend>
+<form action="mods/_core/enrolment/verify_list.php" method="post">
+<input type="hidden" name="from" value="create" />
+<div>
+
+       <div class="row">
+               <?php echo _AT('import_sep_txt'); ?><br />
+               <input type="radio" name="sep_choice" id="und" value="_" checked="checked" />
+               <label for="und"><?php echo _AT('underscore'); ?></label>
+               <input type="radio" name="sep_choice" id="per" value="." />
+               <label for="per"><?php echo _AT('period'); ?></label>
+       </div>
+
+               
+<table class="data static" summary="Create a course list by first name, last name, and email." rules="cols">
+<thead>
+<tr>
+       <th>&nbsp;</th>
+       <th><?php echo _AT('first_name'); ?></th>
+       <th><?php echo _AT('last_name'); ?></th>
+       <th><?php echo _AT('email'); ?></th>
+</tr>
+</thead>
+
+<tfoot>
+<tr>
+       <td colspan="4">
+               <input type="submit" name="submit" value="<?php echo _AT('list_add_course_list');  ?>" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </td>
+</tr>
+</tfoot>
+
+<tbody>
+<?php for ($i=1; $i <= 5; $i++): ?>
+       <tr>
+               <td><?php echo $i; ?></td>
+               <td><input type="text" name="first_name<?php echo $i; ?>" /></td>
+               <td><input type="text" name="last_name<?php echo $i; ?>" /></td>
+               <td><input type="text" name="email<?php echo $i; ?>" /></td>
+       </tr>
+<?php endfor; ?>
+</tbody>
+
+</table>
+</form>
+</fieldset>
+</div>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/enrolment/export_course_list.tmpl.php b/docs/themes/default/instructor/enrolment/export_course_list.tmpl.php
new file mode 100644 (file)
index 0000000..9ca6982
--- /dev/null
@@ -0,0 +1,16 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="selectform">
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('export'); ?></legend>
+       <div class="row">
+               <label><input type="checkbox" name="enrolled" value="1" id="enrolled" /><?php echo _AT('enrolled_list_includes_assistants'); ?></label><br />
+               <label><input type="checkbox" name="pending_enrollment" value="1" id="pending_enrollment" /><?php echo _AT('pending_enrollment'); ?></label><br />
+               <label><input type="checkbox" name="alumni" value="1" id="alumni" /><?php echo _AT('alumni'); ?></label>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="export" value="<?php echo _AT('export'); ?>" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/enrolment/import_course_list.tmpl.php b/docs/themes/default/instructor/enrolment/import_course_list.tmpl.php
new file mode 100644 (file)
index 0000000..8d0861c
--- /dev/null
@@ -0,0 +1,29 @@
+<form enctype="multipart/form-data" action="mods/_core/enrolment/verify_list.php" method="post">
+<input type="hidden" name="from" value="import" />
+<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('import'); ?></legend>
+       <div class="row">
+               <p><?php echo _AT('list_import_howto'); ?></p>
+       </div>
+
+       <div class="row">
+               <label for="sep_choice"><?php echo _AT('import_sep_txt'); ?></label><br />
+               <input type="radio" name="sep_choice" id="und" value="_" checked="checked" />
+               <label for="und"><?php echo _AT('underscore'); ?></label>
+               <input type="radio" name="sep_choice" id="per" value="." />
+               <label for="per"><?php echo _AT('period'); ?></label>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="course_list"><?php echo _AT('list_import_course_list'); ?></label><br />
+               <input type="file" name="file" id="course_list" />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('list_import_course_list');  ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/enrolment/index.tmpl.php b/docs/themes/default/instructor/enrolment/index.tmpl.php
new file mode 100644 (file)
index 0000000..af1bb8c
--- /dev/null
@@ -0,0 +1,139 @@
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <input type="hidden" name="tab" value="<?php echo $this->current_tab; ?>"/>
+       <input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
+       <div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('search'); ?></legend>
+               <?php if (admin_authenticate(AT_ADMIN_PRIV_ENROLLMENT, TRUE)): ?>
+                       <div class="row">
+                               <label for="course"><?php echo _AT('course'); ?></label><br/>
+                               <select name="course_id" id="course">
+                               <?php
+                               
+                               while ($courses_row = mysql_fetch_assoc($this->result)) {
+                                       if ($courses_row['course_id'] == $this->course_id) {
+                                               echo '<option value="'.$courses_row['course_id'].'" selected="selected">'.validate_length($courses_row['title'], 45,VALIDATE_LENGTH_FOR_DISPLAY).'</option>';
+                                       } else {
+                                               echo '<option value="'.$courses_row['course_id'].'">'.validate_length($courses_row['title'],45,VALIDATE_LENGTH_FOR_DISPLAY).'</option>';
+                                       }
+                               }
+                               ?></select>
+                       </div>
+               <?php endif; ?>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('login_name').', '._AT('first_name').', '._AT('second_name').', '._AT('last_name') .', '._AT('email'); ?>)</label><br />
+                       <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+                       <br/>
+                       <?php echo _AT('search_match'); ?>:
+                       <input type="radio" name="match" value="all" id="match_all" <?php echo $this->checked_match_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> <input type="radio" name="match" value="one" id="match_one" <?php echo $this->checked_match_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </fieldset>
+       </div>
+</form>
+
+<?php print_paginator($this->page, $this->tab_counts[$this->current_tab], $this->page_string_w_tab . SEP . $this->order .'='. $this->col, $this->results_per_page); ?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="selectform">
+<input type="hidden" name="tab" value="<?php echo $this->current_tab; ?>" />
+<input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
+
+<ul id="subnavlist">
+       <?php for ($i = 0; $i< $this->num_tabs; $i++): ?>
+               <?php if ($this->current_tab == $i): ?>
+                       <li class="active"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?tab=<?php echo $i.$this->page_string; ?>" class="active"><strong><?php echo _AT($this->tabs[$i]); ?> - <?php echo $this->tab_counts[$i]; ?></strong></a></li>
+               <?php else: ?>
+                       <li><a href="<?php echo $_SERVER['PHP_SELF']; ?>?tab=<?php echo $i.$this->page_string; ?>"><?php echo _AT($this->tabs[$i]); ?> - <?php echo $this->tab_counts[$i]; ?></a></li>
+               <?php endif; ?>
+       <?php endfor; ?>
+</ul>
+
+
+<table class="data" style="width:95%;" summary="List of students enrolled in course" rules="cols" >
+<colgroup>
+       <?php if ($this->col == 'login'): ?>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($this->col == 'first_name'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="3" />
+       <?php elseif($this->col == 'second_name'): ?>
+               <col span="3" />
+               <col class="sort" />
+               <col span="2" />
+       <?php elseif($this->col == 'last_name'): ?>
+               <col span="4" />
+               <col class="sort" />
+               <col />
+       <?php elseif($this->col == 'email'): ?>
+               <col span="5" />
+               <col class="sort" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col" align="left"><input type="checkbox" value="<?php echo _AT('select_all'); ?>" id="all" title="<?php echo _AT('select_all'); ?>" name="selectall" onclick="CheckAll();" /></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=login<?php echo $this->page_string_w_tab;?>"><?php echo _AT('login_name'); ?></a></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=first_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('first_name'); ?></a></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=second_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('second_name'); ?></a></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=last_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('last_name'); ?></a></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=email<?php echo $this->page_string_w_tab;?>"><?php echo _AT('email'); ?></a></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+               <?php if ($this->current_tab == 0): ?>
+                       <input type="submit" name="role"     value="<?php echo _AT('privileges');  ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove');    ?>" /> 
+                       <input type="submit" name="alumni"   value="<?php echo _AT('mark_alumni'); ?>" />
+               <?php elseif ($this->current_tab == 1): ?>
+                       <input type="submit" name="role" value="<?php echo _AT('privileges'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" /> 
+
+               <?php elseif ($this->current_tab == 2): ?>
+                       <input type="submit" name="enroll"   value="<?php echo _AT('enroll'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" />
+               
+               <?php elseif ($this->current_tab == 3): ?>
+                       <input type="submit" name="enroll" value="<?php echo _AT('enroll'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" />
+
+               <?php elseif ($this->current_tab == 4): ?>
+                       <input type="submit" name="enroll"   value="<?php echo _AT('enroll'); ?>" /> 
+
+               <?php endif; ?></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($this->tab_counts[$this->current_tab]): ?>
+       <?php while ($row = mysql_fetch_assoc($this->enrollment_result)): ?>
+               <tr onmousedown="document.selectform['m<?php echo $row['member_id']; ?>'].checked = !document.selectform['m<?php echo $row['member_id']; ?>'].checked; togglerowhighlight(this, 'm<?php echo $row['member_id']; ?>');" id="rm<?php echo $row['member_id']; ?>">
+                       <td><input type="checkbox" name="id[]" value="<?php echo $row['member_id']; ?>" id="m<?php echo $row['member_id']; ?>" onmouseup="this.checked=!this.checked" title="<?php echo AT_print($row['login'], 'members.login'); ?>" /></td>
+                       <td><?php echo AT_print($row['login'], 'members.login'); ?></td>
+                       <td><?php echo AT_print($row['first_name'], 'members.name'); ?></td>
+                       <td><?php echo AT_print($row['second_name'], 'members.name'); ?></td>
+                       <td><?php echo AT_print($row['last_name'], 'members.name'); ?></td>
+                       <td><?php echo AT_print($row['email'], 'members.email'); ?></td>
+               </tr>
+       <?php endwhile; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/enrolment/privileges.tmpl.php b/docs/themes/default/instructor/enrolment/privileges.tmpl.php
new file mode 100644 (file)
index 0000000..003dbbd
--- /dev/null
@@ -0,0 +1,2 @@
+hi Im an instructor
+
diff --git a/docs/themes/default/instructor/faq/add_question.tmpl.php b/docs/themes/default/instructor/faq/add_question.tmpl.php
new file mode 100644 (file)
index 0000000..d9af5ea
--- /dev/null
@@ -0,0 +1,32 @@
+<?php global $stripslashes;?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_question'); ?></legend>
+       <div class="row">
+
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="topic"><?php  echo _AT('topic'); ?></label><br />
+               <select name="topic_id" id="topic">
+                       <?php while ($row = mysql_fetch_assoc($this->result)): ?>
+                               <option value="<?php echo $row['topic_id']; ?>"<?php if (isset($_POST['topic_id']) && ($row['topic_id'] == $_POST['topic_id'])) { echo ' selected="selected"'; } ?>><?php echo AT_print($row['name'], 'input.text'); ?></option>
+                       <?php endwhile; ?>
+               </select>
+       </div>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php  echo _AT('question'); ?></label><br />
+               <input type="text" name="question" size="50" id="question" value="<?php if (isset($_POST['question'])) echo AT_print($stripslashes($_POST['question']), 'input.text');  ?>" />
+
+       </div>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="answer"><?php  echo _AT('answer'); ?></label><br />
+               <textarea name="answer" cols="45" rows="3" id="answer" style="width:90%;"><?php if (isset ($_POST['answer'])) echo AT_print($stripslashes($_POST['answer']), 'text.input');  ?></textarea>
+       </div>
+
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/faq/add_topic.tmpl.php b/docs/themes/default/instructor/faq/add_topic.tmpl.php
new file mode 100644 (file)
index 0000000..c0beaf9
--- /dev/null
@@ -0,0 +1,17 @@
+<?php global $stripslashes;?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+
+<div class="input-form">       
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_topic'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="name"><?php  echo _AT('name'); ?></label><br />
+               <input type="text" name="name" size="50" id="name" value="<?php if (isset($_POST['name'])) echo $stripslashes($_POST['name']);  ?>" />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/faq/edit_question.tmpl.php b/docs/themes/default/instructor/faq/edit_question.tmpl.php
new file mode 100644 (file)
index 0000000..8ab59d0
--- /dev/null
@@ -0,0 +1,37 @@
+<?php global $stripslashes;
+?>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="id" value="<?php echo $this->row['entry_id']; ?>" />
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('create_new_file'); ?></legend>
+       <div class="row">
+               
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="topic"><?php  echo _AT('topic'); ?></label><br />
+               <select name="topic_id" id="topic">
+               <?php if(!empty($this->faq_topics)):?>
+                       <?php foreach($this->faq_topics as $topic_row):?>
+                               <option value="<?php echo $topic_row['topic_id']; ?>"<?php if ($topic_row['topic_id'] == $row['topic_id']) { echo ' selected="selected"'; } ?>><?php echo AT_print($topic_row['name'], 'input.text'); ?></option>                       
+                       <?php endforeach;?>             
+               <?php endif;?>
+               </select>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php echo _AT('question'); ?>:</label><br />
+               <input type="text" name="question" size="50" id="question" value="<?php if (isset ($_POST['question'])) { echo AT_print($stripslashes($_POST['question']), 'input.text'); } else { echo AT_print($this->row['question'], 'input.text'); } ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="answer"><?php  echo _AT('answer'); ?></label><br />
+               <textarea name="answer" cols="45" rows="3" id="answer" style="width:90%;"><?php if (isset ($_POST['answer'])) { echo AT_print($stripslashes($_POST['answer']), 'input.text'); } else { echo AT_print($this->row['answer'], 'input.text'); } ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
+       </div>
+       </fieldset>
+</div>
+</form>
diff --git a/docs/themes/default/instructor/faq/edit_topic.tmpl.php b/docs/themes/default/instructor/faq/edit_topic.tmpl.php
new file mode 100644 (file)
index 0000000..8bde361
--- /dev/null
@@ -0,0 +1,18 @@
+<?php global $stripslashes;?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="name"><?php  echo _AT('name'); ?></label><br />
+               <input type="text" name="name" size="50" id="name" value="<?php if (isset($_POST['name'])) echo AT_print($stripslashes($_POST['name']), 'input.text');  ?>" />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/faq/index_instructor.tmpl.php b/docs/themes/default/instructor/faq/index_instructor.tmpl.php
new file mode 100644 (file)
index 0000000..9e77147
--- /dev/null
@@ -0,0 +1,49 @@
+
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<table class="data" summary="View and edit frequently asked questions for the course" style="width: 90%;">
+<thead>
+<tr>
+       <th>&nbsp;</th>
+       <th style="width: 100%;"><?php echo _AT('name'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="2"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+                                   <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<?php if (!empty($this->faq_topics)): ?>
+               <?php foreach ($this->faq_topics as $topic_id => $row): ?>
+                                       <tr onmousedown="document.form['t<?php echo $row['topic_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['topic_id']; ?>_0">
+                                       <th style="border-top:1pt solid #e0e0e0;"><input type="radio" name="item" id="t<?php echo $row['topic_id']; ?>" value="<?php echo $row['topic_id']; ?>" /></th>
+                                       <th style="border-top:1pt solid #e0e0e0;"><?php echo AT_print($row['name'], 'faqs.topic'); ?></th>
+                                       </tr>
+       
+                       <?php if (!empty($row['entry_rows'])): ?>
+                               <?php foreach($row['entry_rows'] as $question_row): ?>
+                               <tr onmousedown="document.form['q<?php echo $question_row['entry_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['topic_id']; ?>_<?php echo $question_row['entry_id']; ?>">
+                                       <td><input type="radio" name="item" id="q<?php echo $question_row['entry_id']; ?>" value="<?php echo $question_row['entry_id']; ?>q" /></td>
+                                       <td><?php echo AT_print($question_row['question'], 'faqs.question'); ?></td>
+                               </tr>
+                               <?php endforeach;?>
+                       
+                       <?php else:?>
+                       <tr>
+                                       <td>&nbsp;</td>
+                                       <td><?php echo _AT('no_questions'); ?></td>
+                               </tr>
+                       <?php endif;?>
+               <?php endforeach; ?>
+       <tbody>
+       
+               
+       </tbody>
+<?php else: ?>
+       <tr>
+               <td colspan="2"><strong><?php echo _AT('none_found'); ?></strong></td>
+       </tr>
+<?php endif; ?>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/forums/add_forum.tmpl.php b/docs/themes/default/instructor/forums/add_forum.tmpl.php
new file mode 100644 (file)
index 0000000..a63463d
--- /dev/null
@@ -0,0 +1,24 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="add_forum" value="true">
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('create_forum'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" name="title" size="40" id="title" />
+       </div>
+       <div class="row">
+               <label for="body"><?php echo _AT('description'); ?></label><br />
+               <textarea name="body" cols="45" rows="2" id="body" wrap="wrap"></textarea>
+       </div>
+       <div class="row">
+               <label for="edit"><?php echo _AT('allow_editing'); ?></label><br />
+               <input type="text" name="edit" size="3" id="edit" value="<?php echo intval($row['mins_to_edit']); ?>" /> <?php echo _AT('in_minutes'); ?>
+       </div>
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/forums/edit_forum.tmpl.php b/docs/themes/default/instructor/forums/edit_forum.tmpl.php
new file mode 100644 (file)
index 0000000..7ee463f
--- /dev/null
@@ -0,0 +1,28 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="edit_forum" value="true">
+<input type="hidden" name="fid" value="<?php echo $this->fid; ?>">
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit_forum'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" name="title" size="50" id="title" value="<?php echo htmlspecialchars(stripslashes($this->row['title'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="body"><?php echo _AT('description'); ?></label><br />
+               <textarea name="body" cols="45" rows="2" id="body" wrap="wrap"><?php echo AT_print($this->row['description'], 'input.text'); ?></textarea>
+       </div>
+
+       <div class="row">
+               <label for="edit"><?php echo _AT('allow_editing'); ?></label><br />
+               <input type="text" name="edit" size="3" id="edit" value="<?php echo intval($this->row['mins_to_edit']); ?>" /> <?php echo _AT('in_minutes'); ?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/forums/index.tmpl.php b/docs/themes/default/instructor/forums/index.tmpl.php
new file mode 100644 (file)
index 0000000..7731cff
--- /dev/null
@@ -0,0 +1,40 @@
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+
+<table class="data" summary="List of course forums" rules="cols">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('title'); ?></th>
+       <th scope="col"><?php echo _AT('description'); ?></th>
+       <th scope="col"><?php echo _AT('allow_editing'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="4"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($this->all_forums['nonshared']): ?>
+       <?php foreach($this->all_forums['nonshared'] as $row): ?>
+               <tr onmousedown="document.form['f<?php echo $row['forum_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['forum_id']; ?>">
+                       <td width="10"><input type="radio" name="id" value="<?php echo $row['forum_id']; ?>" id="f<?php echo $row['forum_id']; ?>" /></td>
+                       <td><label for="f<?php echo $row['forum_id']; ?>"><?php echo AT_print($row['title'], 'forums.title'); ?></label></td>
+                       <td><?php echo AT_print($row['description'], 'forums.description'); ?></td>
+                       <td>
+                               <?php if (!$row['mins_to_edit']): ?>
+                                       <?php echo _AT('no'); ?>
+                               <?php else: ?>
+                                       <?php echo  _AT('minutes', $row['mins_to_edit']); ?>
+                               <?php endif; ?>
+                       </td>
+               </tr>
+       <?php endforeach; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/glossary/add.tmpl.php b/docs/themes/default/instructor/glossary/add.tmpl.php
new file mode 100644 (file)
index 0000000..27bd08d
--- /dev/null
@@ -0,0 +1,61 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="num_terms" value="<?php echo $this->num_terms; ?>" />
+<?php
+for ($i=0;$i<$this->num_terms;$i++) {
+       if ($glossary[$word[$i]] != '') {
+               echo '<input type="hidden" name="ignore['.$i.']" value="1" />';
+               continue;
+       }
+       
+       for ($j=0;$j<$i;$j++) {
+               if ($word[$j] == $word[$i]) {
+                       echo '<input type="hidden" name="ignore['.$i.']" value="1" />';
+                       continue 2;
+               }
+       }
+
+       if ($word[$i] == '') {
+               $word[$i] = ContentManager::cleanOutput($_POST['word'][$i]);
+       }
+?>
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_glossary'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title<?php echo $i; ?>"><?php echo _AT('glossary_term');  ?></label><br />
+               <input type="text" name="word[<?php echo $i; ?>]" size="30" value="<?php echo trim($word[$i]); ?>" id="title<?php echo $i; ?>" /><?php                  
+               if ($_GET['pcid'] != '') { 
+                       echo '<input type="checkbox" name="ignore['.$i.']" value="1" id="ig'.$i.'" /><label for="ig'.$i.'">Ignore this term</label>.';  
+               }
+               ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body<?php echo $i; ?>"><?php echo _AT('glossary_definition');  ?></label><br />
+               <textarea name="definition[<?php echo $i; ?>]" class="formfield" cols="55" rows="7" id="body<?php echo $i; ?>" style="width:90%;"><?php echo ContentManager::cleanOutput($_POST['definition'][$i]); ?></textarea>
+       </div>
+
+       <div class="row">
+       <?php echo _AT('glossary_related');  ?><br />
+       <?php
+                       
+                       if ($row_g = mysql_fetch_assoc($this->result_glossary)) {
+                               echo '<select name="related_term['.$i.']">';
+                               echo '<option value="0"></option>';
+                               do {
+                                       echo '<option value="'.$row_g['word_id'].'">'.$row_g['word'].'</option>';
+                               } while ($row_g = mysql_fetch_assoc($this->result_glossary));
+                               echo '</select>';
+                       } else {
+                               echo _AT('none_available');
+                       }
+               } // endfor
+       ?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/glossary/edit.tmpl.php b/docs/themes/default/instructor/glossary/edit.tmpl.php
new file mode 100644 (file)
index 0000000..adc3bf1
--- /dev/null
@@ -0,0 +1,52 @@
+<?php global $stripslashes; ?>
+<?php debug($result_related);?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="gid" value="<?php echo $this->gid; ?>" />
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit_glossary'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('glossary_term');  ?></label><br/ >
+               <input type="text" name="word" size="40" id="title" value="<?php echo htmlentities_utf8($stripslashes($row['word'])); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('glossary_definition'); ?></label><br />
+               <textarea name="definition" cols="55" rows="7" id="body"><?php echo htmlentities_utf8($row['definition']); ?></textarea>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('glossary_related');  ?><br />
+       <?php
+               
+               if ($row_g = mysql_fetch_array($this->result_related)) {
+                       echo '<select name="related_term">';
+                       echo '<option value="0"></option>';
+                       do {
+                               if ($row_g['word_id'] == $row['word_id']) {
+                                       continue;
+                               }
+               
+                               echo '<option value="'.$row_g['word_id'].'"';
+                       
+                               if ($row_g['word_id'] == $row['related_word_id']) {
+                                       echo ' selected="selected" ';
+                               }
+                       
+                               echo '>'.htmlentities_utf8($row_g['word']).'</option>';
+                       } while ($row_g = mysql_fetch_array($result));
+                       
+                       echo '</select>';
+               
+               } else {
+                       echo  _AT('no_glossary_items');
+               }
+       ?>
+       </div>
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel');  ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/glossary/index.tmpl.php b/docs/themes/default/instructor/glossary/index.tmpl.php
new file mode 100644 (file)
index 0000000..4e5e3c1
--- /dev/null
@@ -0,0 +1,42 @@
+<?php debug($this->gloss_results_row);
+debug($this->related_word);
+
+?>
+
+<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+
+<table class="data" summary="" rules="cols" style="width: 90%;">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('glossary_term'); ?></th>
+       <th scope="col"><?php echo _AT('glossary_definition'); ?></th>
+       <th scope="col"><?php echo _AT('glossary_related'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="4"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+
+<?php if(!empty($this->gloss_results_row)):?>
+       <?php foreach($this->gloss_results_row as $row): ?>
+               <tr onmousedown="document.form['m<?php echo $row['word_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['word_id']; ?>">
+                       <td valign="top" width="10"><input type="radio" name="word_id" value="<?php echo $row['word_id']; ?>" id="m<?php echo $row['word_id']; ?>" /></td>
+                       <td valign="top"><label for="m<?php echo $row['word_id']; ?>"><?php echo AT_print($row['word'], 'glossary.word'); ?></label></td>
+                       <td style="whitespace:nowrap;"><?php echo AT_print($row['definition'], 'glossary.definition'); ?></td>  
+                       <?php if(!empty($row['related_word_id'])):?>    
+                       <td valign="top"><?php //debug($this->related_word);
+                       //echo AT_print($row[related_word_id], 'glossary.word'); ?></td>
+                       <?php endif; ?>
+               </tr>
+       
+       <?php endforeach;?>
+<?php endif; ?>
+
+</tbody>
+</table>
+</form>
+
diff --git a/docs/themes/default/instructor/groups/create.tmpl.php b/docs/themes/default/instructor/groups/create.tmpl.php
new file mode 100644 (file)
index 0000000..c1d2c71
--- /dev/null
@@ -0,0 +1,17 @@
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('create_groups'); ?></legend>
+       <div class="row">
+               <input type="radio" name="create" value="automatic" id="automatic" checked="checked" /><label for="automatic"><?php echo _AT('groups_create_automatic'); ?></label>
+       </div>
+
+       <div class="row">
+               <input type="radio" name="create" value="manual" id="manual" /><label for="manual"><?php echo _AT('groups_create_manual'); ?></label>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('continue'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/groups/create_automatic.tmpl.php b/docs/themes/default/instructor/groups/create_automatic.tmpl.php
new file mode 100644 (file)
index 0000000..557f51a
--- /dev/null
@@ -0,0 +1,59 @@
+<?php global $moduleFactory, $_pages;?>
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+       <div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('groups_create_automatic'); ?></legend>
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="type"><?php echo _AT('groups_type'); ?></label><br />
+                       <input type="text" name="type_title" id="type" value="<?php echo AT_print($_POST['type_title'], 'groups.type'); ?>" size="30" maxlength="60" />
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="prefix"><?php echo _AT('group_prefix'); ?></label><br />
+                       <input type="text" name="prefix" id="prefix" value="<?php echo AT_print($_POST['prefix'], 'groups.prefix'); ?>" size="20" maxlength="40" />
+               </div>
+
+               <div class="row">
+                       <label for="description"><?php echo _AT('default_description'); ?></label><br />
+                       <textarea name="description" id="description" cols="10" rows="2"><?php echo AT_print($_POST['description'], 'groups.description'); ?></textarea>
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('number_of_groups'); ?><br />
+               
+                       <p><?php echo _AT('num_students_currently_enrolled', $this->row['cnt']-1); ?></p>
+
+                       <input type="radio" name="num_g" value="1" id="num1" checked="checked" onclick="javascript:changer('num_groups', 'num_students');" /><label for="num1"><?php echo _AT('number_of_students_per_group'); ?></label> <input type="text" name="num_students" size="3" style="text-align: right" maxlength="4" />
+                       <br />
+                       <input type="radio" name="num_g" value="2" id="num2" onclick="javascript:changer('num_students', 'num_groups');" /><label for="num2"><?php echo _AT('number_of_groups'); ?></label> <input type="text" name="num_groups" size="3" style="text-align: right" maxlength="4" value="-" />
+               </div>
+
+               <div class="row">
+                       <?php echo _AT('fill_groups'); ?><br />
+                       <input type="checkbox" name="fill" value="1" id="fill_r" checked="checked" /><label for="fill_r"><?php echo _AT('fill_groups_randomly'); ?></label>
+               </div>
+
+               <div class="row">
+                       <?php echo _AT('tools'); ?><br />
+                               <?php
+                               $modules = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED, 0, TRUE);
+                               $keys = array_keys($modules);
+                               $i=0;
+                               
+                               ?>
+                               <?php foreach($keys as $module_name): ?>
+                                       <?php $module =& $modules[$module_name]; ?>
+                                       
+                                       <?php if ($module->getGroupTool() && (in_array($module->getGroupTool(),$_pages[AT_NAV_HOME]) || in_array($module->getGroupTool(),$_pages[AT_NAV_COURSE])) ): ?>
+                                               <input type="checkbox" value="<?php echo $module_name; ?>" name="modules[]" id="m<?php echo ++$i; ?>" /><label for="m<?php echo $i; ?>"><?php echo $module->getName(); ?></label><br />
+                                       
+                                       <?php endif; ?>
+                               <?php endforeach; ?>
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('create'); ?>" accesskey="s" />
+                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+               </div>
+               </fieldset>
+       </div>
+</form>
diff --git a/docs/themes/default/instructor/groups/create_manual.tmpl.php b/docs/themes/default/instructor/groups/create_manual.tmpl.php
new file mode 100644 (file)
index 0000000..5a5c487
--- /dev/null
@@ -0,0 +1,51 @@
+<?php global $moduleFactory, $_pages;?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+       <div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('groups_create_manual'); ?></legend>
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="type"><?php echo _AT('groups_type'); ?></label><br />
+                       <?php if ($this->types): ?>
+                               <?php echo _AT('existing_type'); ?>
+                               <select name="type" id="type">
+                               <?php foreach ($this->types as $type_id => $type_title): ?>
+                                       <option value="<?php echo $type_id; ?>"><?php echo $type_title; ?></option>
+                               <?php endforeach; ?>
+                               </select>
+                               <strong><?php echo _AT('or'); ?></strong>
+                       <?php endif; ?>
+                       <label for="new"><?php echo _AT('new_type'); ?></label> <input type="text" name="new_type" value="<?php echo AT_print($_POST['new_type'], 'groups.type'); ?>" id="new" size="30" maxlength="40" />
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="prefix"><?php echo _AT('title'); ?></label><br />
+                       <input type="text" name="prefix" id="prefix" value="<?php echo AT_print($_POST['prefix'], 'prefix'); ?>" size="20" maxlength="40" />
+               </div>
+
+               <div class="row">
+                       <label for="description"><?php echo _AT('description'); ?></label><br />
+                       <textarea name="description" id="description" cols="10" rows="2"><?php echo AT_print($_POST['description'], 'groups.description'); ?></textarea>
+               </div>
+
+               <div class="row">
+                       <?php echo _AT('tools'); ?><br />
+                               <?php
+                               $modules = $moduleFactory->getModules(AT_MODULE_STATUS_ENABLED, 0, TRUE);
+                               $keys = array_keys($modules);
+                               $i=0;
+                               ?>
+                               <?php foreach($keys as $module_name): ?>
+                                       <?php $module =& $modules[$module_name]; ?>
+                                       <?php if ($module->getGroupTool() && (in_array($module->getGroupTool(),$_pages[AT_NAV_HOME]) || in_array($module->getGroupTool(),$_pages[AT_NAV_COURSE])) ): ?>
+                                               <input type="checkbox" value="<?php echo $module_name; ?>" name="modules[]" id="m<?php echo ++$i; ?>" /><label for="m<?php echo $i; ?>"><?php echo $module->getName(); ?></label><br />
+                                       <?php endif; ?>
+                               <?php endforeach; ?>
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('create'); ?>" accesskey="s" />
+                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+               </div>
+               </fieldset>
+       </div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/groups/index.tmpl.php b/docs/themes/default/instructor/groups/index.tmpl.php
new file mode 100644 (file)
index 0000000..640ebd3
--- /dev/null
@@ -0,0 +1,57 @@
+<?php debug($this->group_type_rows);?>
+<div class="input-form">
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
+<fieldset class="group_form" margin:auto;"><legend class="group_form"><?php echo _AT('groups'); ?></legend>
+<table class="data" summary="" rules="cols" style="width: 80%">
+<tfoot>
+<tr>
+       <td>
+               <input type="submit" name="edit"    value="<?php echo _AT('edit'); ?>" />
+               <input type="submit" name="members" value="<?php echo _AT('members'); ?>" />
+               <input type="submit" name="delete"  value="<?php echo _AT('delete'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+
+<?php if (!empty($this->group_type_rows)): ?>
+
+               <?php foreach ($this->group_type_rows as $type_id => $row): ?>
+               <tr onmousedown="document.form['g<?php echo $row['type_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['type_id']; ?>">
+                       <th>
+                               <input type="radio" id="g<?php echo $row['type_id']; ?>" name="id" value="<?php echo $row['type_id']; ?>" />
+                               <label for="g<?php echo $row['type_id']; ?>"><?php echo AT_print($row['title'], 'groups.title'); ?></label> (<?php echo $this->num_groups.' '._AT('groups'); ?>)</td>
+                       </th>
+               </tr>
+               <?php endforeach; ?>
+               <?php if ($num_groups) : ?>
+                       <?php while ($group_row = mysql_fetch_assoc($group_result)): ?>
+                               <?php
+                                       $sql = "SELECT COUNT(*) AS cnt FROM ".TABLE_PREFIX."groups_members WHERE group_id=$group_row[group_id]";
+                                       $group_cnt_result = mysql_query($sql, $db);
+                                       $group_cnt = mysql_fetch_assoc($group_cnt_result);
+                               ?>
+                               <tr onmousedown="document.form['g<?php echo $row['type_id'].'_'.$group_row['group_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['type_id'].'_'.$group_row['group_id']; ?>">
+                                       <td class="indent"><input type="radio" id="g<?php echo $row['type_id'].'_'.$group_row['group_id']; ?>" name="id" value="<?php echo $row['type_id'].'_'.$group_row['group_id']; ?>" /> <label for="g<?php echo $row['type_id'].'_'.$group_row['group_id']; ?>"><?php echo AT_print($group_row['title'], 'groups.title'); ?></label> (<?php echo $group_cnt['cnt'].' '._AT('members'); ?>)</td>
+                               </tr>
+                       <?php endwhile; ?>
+               <?php else: ?>
+                       <tr>
+                               <td class="indent"><strong><?php echo _AT('none_found'); ?></strong></td>
+                       </tr>
+               <?php endif; ?>
+
+<?php endif;?>
+<?php if (empty($this->group_type_rows)): ?>
+<?php else: ?>
+       <tr>
+               <td><strong><?php echo _AT('none_found'); ?></strong></td>
+       </tr>
+<?php endif;?>
+
+
+</tbody>
+</table>
+</fieldset>
+</form><br />
+</div>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/polls/add.tmpl.php b/docs/themes/default/instructor/polls/add.tmpl.php
new file mode 100644 (file)
index 0000000..0d294a1
--- /dev/null
@@ -0,0 +1,27 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="add_poll" value="true" />
+
+<div class="input-form">       
+<fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_poll'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php  echo _AT('question'); ?></label><br />
+               <textarea name="question" cols="45" rows="3" id="question" style="width:90%;"><?php if (isset ($_POST['question'])) echo htmlspecialchars($_POST['question']);  ?></textarea>
+       </div>
+
+<?php for ($i=1; $i<= AT_NUM_POLL_CHOICES; $i++): ?>
+       <div class="row">
+               <?php if (($i==1) || ($i==2)) { ?>
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
+               <?php } ?>
+               <label for="c<?php echo $i; ?>"><?php echo _AT('choice'); ?> <?php echo $i; ?></label><br />
+               <input type="text" name="c<?php echo $i; ?>" value="<?php if (isset($_POST['c' . $i])) echo htmlspecialchars($_POST['c' . $i]);  ?>" size="50" id="c<?php echo $i; ?>" />
+       </div>
+<?php endfor; ?>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/polls/edit.tmpl.php b/docs/themes/default/instructor/polls/edit.tmpl.php
new file mode 100644 (file)
index 0000000..a896677
--- /dev/null
@@ -0,0 +1,30 @@
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="edit_poll" value="true" />
+<input type="hidden" name="poll_id" value="<?php echo $this->row['poll_id']; ?>" />
+
+<div class="input-form">
+<fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit_poll'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php echo _AT('question'); ?>:</label><br />
+               <textarea name="question" cols="55" rows="3" id="question"><?php if (isset ($_POST['question'])) { echo AT_print($_POST['question'], 'input.text'); } else { echo AT_print($this->row['question'], 'input.text'); } ?></textarea>
+       </div>
+
+<?php
+       for ($i=1; $i<= AT_NUM_POLL_CHOICES; $i++): ?>
+               <div class="row">
+                       <?php if (($i==1) || ($i==2)) { ?>
+                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
+                       <?php } ?>
+                       <label for="c<?php echo $i; ?>"><?php echo _AT('choice'); ?> <?php echo $i; ?>:</label><br />
+                       <input type="text" name="c<?php echo $i; ?>" id="c<?php echo $i; ?>" value="<?php if (isset ($_POST['c' . $i])) { echo AT_print($_POST['c' . $i], 'input.text'); } else { echo AT_print($this->row['choice' . $i], 'input.text'); }?>" size="40" />
+               </div>
+
+<?php endfor; ?>
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/polls/index.tmpl.php b/docs/themes/default/instructor/polls/index.tmpl.php
new file mode 100644 (file)
index 0000000..a78da47
--- /dev/null
@@ -0,0 +1,50 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<table class="data" summary="Course polls listed by question, creation date and votes" rules="cols">
+<colgroup>
+       <?php if ($this->col == 'question'): ?>
+               <col />
+               <col class="sort" />
+               <col span="2" />
+       <?php elseif($this->col == 'created_date'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col />
+       <?php elseif($this->col == 'total'): ?>
+               <col span="3" />
+               <col class="sort" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $this->orders[$this->order]; ?>=question"><?php echo _AT('question'); ?></a></th>
+       <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $this->orders[$this->order]; ?>=created_date"><?php echo _AT('created'); ?></a></th>
+       <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $this->orders[$this->order]; ?>=total"><?php echo _AT('total_votes'); ?></a></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="4">
+               <input type="submit" name="edit"   value="<?php echo _AT('edit'); ?>" />
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)) : ?>
+       <?php do { ?>
+               <tr onmousedown="document.form['p_<?php echo $row['poll_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['poll_id']; ?>">
+                       <td><input type="radio" id="p_<?php echo $row['poll_id']; ?>" name="poll" value="<?php echo $row['poll_id']; ?>" /></td>
+                       <td><label for="p_<?php echo $row['poll_id']; ?>"><?php echo AT_print($row['question'], 'polls.question'); ?></label></td>
+                       <td><?php echo AT_DATE(_AT("server_date_format"), $row['created_date']); ?></td>
+                       <td><?php echo $row['total']; ?></td>
+               </tr>
+       <?php } while($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
diff --git a/docs/themes/default/instructor/reading_list/index_instructor.tmpl.php b/docs/themes/default/instructor/reading_list/index_instructor.tmpl.php
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/themes/default/instructor/statistics/course_stats.tmpl.php b/docs/themes/default/instructor/statistics/course_stats.tmpl.php
new file mode 100644 (file)
index 0000000..4f013bf
--- /dev/null
@@ -0,0 +1,99 @@
+<table cellspacing="1" cellpadding="1" border="0" class="bodyline" summary="course statistics" align="center">
+       <tr>
+               <th colspan="2" class="cyan"><small class="bigspacer"><?php
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.($this->last_month).SEP.'year='.$this->last_year.'">';
+                       echo ' '.AT_date('%F', $this->last_month, AT_DATE_INDEX_VALUE ); ?></a> |</small>
+                       <?php echo AT_date('%F', $this->month, AT_DATE_INDEX_VALUE ); ?> <small class="bigspacer">| <?php
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.$this->next_month.SEP.'year='.$this->next_year.'">';
+                       echo AT_date('%F', $this->next_month, AT_DATE_INDEX_VALUE); ?> </a></small></th>
+       </tr>
+<?php
+               if (($this->num_days == 0) || ($this->empty)) {
+                       echo '<tr>';
+                       echo '<td class="row1" colspan="2">'._AT('no_month_data').'</td>';
+                       echo '</tr>';
+                       echo '</table>';
+                       require(AT_INCLUDE_PATH.'footer.inc.php');
+                       exit;
+               }
+?>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('total'); ?>:</strong></td>
+               <td class="row1"><?php echo $this->total_logins; ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('maximum'); ?>:</strong></td>
+               <td class="row1"><?php echo $this->max_total_logins; ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('minimum'); ?>:</strong></td>
+               <td class="row1"><?php
+               if ($this->min_total_logins < 99999999) {
+                       echo $this->min_total_logins; 
+               } else {
+                       echo '0';
+               } ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php   echo _AT('average'); ?>:</strong></td>
+               <td class="row1"><?php echo number_format($this->avg_total_logins, 1); ?> <?php   echo _AT('per_day'); ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php   echo _AT('graph'); ?>:</strong></td>
+               <td class="row1">
+                       <table border="0" cellspacing="0" cellpadding="0">
+                       <tr>
+                               <td valign="top" class="graph1"><small><?php echo $this->max_total_logins; ?></small></td>
+
+<?php
+                       foreach ($this->days as $day => $logins) {
+                       $dd++;
+                               echo '<td valign="bottom" class="graph"><img src="images/clr.gif" height="'.(($this->max_total_logins*$this->multiplyer_height) % $this->block_height + $this->block_height).'" width="10" alt="" /><br /><img src="images/blue.gif" height="'.($logins[0]*$this->multiplyer_height).'" width="9" alt="'.$logins[0].' '._AT('guests').' ('.($logins[0]+$logins[1]).' '._AT('total').')" /><br /><img src="images/red.gif" height="'.($logins[1]*$this->multiplyer_height).'" width="9" alt="'.$logins[1].' '._AT('members').' ('.($logins[1]+$logins[0]).' '._AT('total').')" /><br /><small>'.$dd.'&nbsp;</small></td>';
+
+                       } while ($row = mysql_fetch_array($this->result));
+?>
+
+                       </tr>
+                       <tr>
+                               <td valign="top"><small>0</small></td>
+                       </tr>
+                       </table>
+
+                       <small><?php  echo _AT('legend'); ?>: <img src="images/red.gif" height="10" width="10" alt="<?php echo _AT('red_members'); ?>" /> <?php   echo _AT('members'); ?>,
+                               <img src="images/blue.gif" height="10" width="10" alt="<?php echo _AT('blue_guests'); ?>" /> <?php echo _AT('guests'); ?>.</small>
+               </td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('raw_data'); ?>:</strong></td>
+               <td class="row1" align="center">
+       
+               <table class="data static" summary="" rules="cols">
+               <thead>
+               <tr>
+                       <th scope="col"><?php echo _AT('date');    ?></th>
+                       <th scope="col"><?php echo _AT('guests');  ?></th>
+                       <th scope="col"><?php echo _AT('members'); ?></th>
+               </tr>
+               </thead>
+               <tbody>
+               <?php $short_name = $month_name_con['en'][$month-1]; ?>
+               <?php foreach ($this->days as $day => $logins):?>
+                       <tr>
+                               <td><?php echo $short_name.' '.$day; ?></td>
+                               <td><?php echo $logins[0]; ?></td>
+                               <td><?php echo $logins[1]; ?></td>
+                       </tr>
+               <?php endforeach; ?>
+               <tbody>
+               </table>
+
+               </td>
+       </tr>
+       </table>
\ No newline at end of file
diff --git a/docs/themes/default/instructor/statistics/tracker/my_stats.tmpl.php b/docs/themes/default/instructor/statistics/tracker/my_stats.tmpl.php
new file mode 100644 (file)
index 0000000..1817ff0
--- /dev/null
@@ -0,0 +1,42 @@
+<?php global $contentManager;?>
+<table class="data static" rules="cols" summary="">
+<thead>
+<tr>
+       <th scope="col"><?php echo _AT('page'); ?></th>
+       <th scope="col"><?php echo _AT('visits'); ?></th>
+       <th scope="col"><?php echo _AT('duration'); ?></th>
+       <th scope="col"><?php echo _AT('last_accessed'); ?></th>
+</tr>
+</thead>
+<tbody>
+<?php
+       
+
+       if (mysql_num_rows($this->result) > 0) {
+               while ($row = mysql_fetch_assoc($this->result)) {
+                       if ($row['total'] == '') {
+                               $row['total'] = _AT('na');
+                       }
+
+                       echo '<tr>';
+                       echo '<td><a href='.AT_BASE_HREF.url_rewrite('content.php?cid='.$row['content_id']). '>' . $contentManager->_menu_info[$row['content_id']]['title'] . '</a></td>';
+                       echo '<td>' . $row['total_hits'] . '</td>';
+                       echo '<td>' . $row['total_duration'] . '</td>';
+                       if ($row['last_accessed'] == '') {
+                               echo '<td>' . _AT('na') . '</td>';
+                       } else {
+                               echo '<td>' . AT_date(_AT('forum_date_format'), $row['last_accessed'], AT_DATE_MYSQL_DATETIME) . '</td>';
+                       }
+                       echo '</tr>';
+               } //end while
+
+               echo '</tbody>';
+
+       } else {
+               echo '<tr><td colspan="4">' . _AT('none_found') . '</td></tr>';
+               echo '</tbody>';
+       }
+       ?>
+</tbody>
+</table>
+
diff --git a/docs/themes/default/instructor/student_tools/instructor_index.tmpl.php b/docs/themes/default/instructor/student_tools/instructor_index.tmpl.php
new file mode 100644 (file)
index 0000000..e07a793
--- /dev/null
@@ -0,0 +1,57 @@
+<?php global $_pages;?>
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<table class="data" rules="rows" summary="">
+<thead>
+<tr>
+       <th scope="cols"><?php echo _AT('section'); ?></th>
+       <th><?php echo _AT('order'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="2"><input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /></td>
+</tr>
+</tfoot>
+<tbody>
+
+<?php foreach ($this->_current_modules as $module): ?>
+<?php if ($module == 'mods/_standard/student_tools/index.php') { continue; } ?>
+<?php  ?>
+<tr>
+       <td>
+               <?php if (in_array($module, $this->fha_student_tools)): ?>
+                       <input type="checkbox" name="main[]" value="<?php echo $module; ?>" id="m<?php echo $count; ?>" checked="checked" />
+               <?php else: ?>
+                       <input type="checkbox" name="main[]" value="<?php echo $module; ?>" id="m<?php echo $count; ?>" />
+               <?php endif; ?>
+               <label for="m<?php echo $count; ?>"><?php 
+                       if (isset($_pages[$module]['title'])) {
+                               echo $_pages[$module]['title'];
+                       } else {
+                               echo _AT($_pages[$module]['title_var']);
+               } ?></label>
+       </td>
+
+       <td align="right">
+               <?php if (!in_array($module, $this->fha_student_tools)): ?>
+                       &nbsp;
+               <?php else: ?>
+                       <?php if (($count != $num_main+1) && ($count > 1)): ?>
+                               <input type="submit" name="up[<?php echo $module; ?>]" value="<?php echo _AT('move_up'); ?>" title="<?php echo _AT('move_up'); ?>" style="background-color: white; border: 1px solid; padding: 0px;" />
+                       <?php else: ?>
+                               <img src="images/clr.gif" alt="" width="12" />
+                       <?php endif; ?>
+                       <?php if (($count != $num_main) && ($count < $this->num_modules)): ?>
+                               <input type="submit" name="down[<?php echo $module; ?>]" value="<?php echo _AT('move_down'); ?>" title="<?php echo _AT('move_down'); ?>" style="background-color: white; border: 1px solid; padding: 0px;"/>
+                       <?php else: ?>
+                               <img src="images/clr.gif" alt="" width="12" />
+                       <?php endif; ?>
+               <?php endif; ?>
+       </td>
+</tr>
+<?php 
+$count++;
+endforeach; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
index a69477f..d4c26fd 100644 (file)
@@ -106,13 +106,13 @@ function encrypt_password()
 
        <div class="row">
                <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email_address'); ?></label><br />
-               <input id="email" name="email" type="text" size="50" maxlength="50" value="<?php echo stripslashes(htmlspecialchars($_POST['email'])); ?>" />
+               <input id="email" name="email" type="text" size="30" maxlength="50" value="<?php echo stripslashes(htmlspecialchars($_POST['email'])); ?>" /><br />
                <input type="checkbox" id="priv" name="private_email" value="1" <?php if ($_POST['private_email'] || !isset($_POST['submit'])) { echo 'checked="checked"'; } ?> /><label for="priv"><?php echo _AT('keep_email_private');?></label>
        </div>
 
        <div class="row">
                <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email2"><?php echo _AT('email_again'); ?></label><br />
-               <input id="email2" name="email2" type="text" size="50" maxlength="60" value="<?php echo stripslashes(htmlspecialchars($_POST['email2'])); ?>" />
+               <input id="email2" name="email2" type="text" size="30" maxlength="60" value="<?php echo stripslashes(htmlspecialchars($_POST['email2'])); ?>" />
        </div>
 
        <div class="row">
@@ -140,7 +140,7 @@ function encrypt_password()
                        } else {
                                $uncon = ' checked="checked"';
                        }?>
-                       <input type="hidden" name="id" value="<?php echo $_POST['member_id']; ?>" >
+                       <input type="hidden" name="id" value="<?php echo $_POST['member_id']; ?>" />
                        <div class="row">
                                <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('account_status'); ?><br />
 
@@ -176,7 +176,7 @@ function encrypt_password()
                <input type="hidden" name="old_student_id" value="<?php echo $_POST['old_student_id']; ?>" />
                <div class="row">
                        <label for="student_id"><?php echo _AT('student_id'); ?></label><br />
-                               <input type="text" name="student_id" value="<?php echo $_POST['student_id']; ?>" size="20" /><br />
+                               <input type="text" id="student_id" name="student_id" value="<?php echo $_POST['student_id']; ?>" size="20" /><br />
                </div>
                <div class="row">
                        <input type="checkbox" id="overwrite" name="overwrite" value="1" <?php if ($_POST['overwrite']) { echo 'checked="checked"'; } ?> /><label for="overwrite"><?php echo _AT('overwrite_master');?></label>
@@ -230,7 +230,7 @@ function encrypt_password()
        </div>
 </fieldset>
        <div class="row buttons">
-               <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" onClick="encrypt_password()" class="button"/>
+               <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" onclick="encrypt_password()" class="button"/>
                <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> "  class="button" />
        </div>
 </div>
diff --git a/docs/themes/default/search.tmpl.php b/docs/themes/default/search.tmpl.php
new file mode 100644 (file)
index 0000000..399560d
--- /dev/null
@@ -0,0 +1 @@
+<?php require(AT_INCLUDE_PATH . 'html/search.inc.php');?>
\ No newline at end of file
index 5a847c1..60f7e6b 100644 (file)
@@ -10,7 +10,7 @@ html,body{
        margin-left:.8em;
        float:left;
 }
-/* main body attributes */
+/* main body attributes STARTED HERE */
 body {
        font-family: Verdana, Helevetica, Arial, sans-serif;
        font-size:.8em;
@@ -1316,7 +1316,7 @@ div#content-test {
        width: 80%;
 }
 div#content-test ol{   
-       margin-right: 5pt;      
+       margin-right: 5pt;
 }
 
 div#content-test ol ul li{
@@ -2930,11 +2930,15 @@ text-decoration:none;
 vertical-align:middle;
 margin-right:.5em;
 }
-
+/*social networking box on admin page */
+#social_networking{
+padding: 1em;
+margin: 0;
+}
 
 /* End Photo Album Styles
  * 
  * 
  * 
  * 
- */
\ No newline at end of file
+ */
index 52a1314..1b92bbc 100644 (file)
 /* This is the default configuration file for the default theme. */
 
 /* The theme's name. */
-       $_theme['name'] = 'Default 1.6';
+       $_theme['name'] = 'simplified-desktop';
 
 /* The theme's version number. */
-       $_theme['version'] = '0.1';
+       $_theme['version'] = '1.0';
 
 /* Which version of ATutor is this theme intended for. */
        $_theme['atutor-version'] = '1.6';
index 8107862..7cd11b0 100644 (file)
@@ -3,10 +3,10 @@
 <!--Created from the ATutor Themes Export Generator-->\r
 \r
 <theme>\r
-       <title>Default</title>\r
+       <title>simplified-desktop</title>\r
        <version>1.0</version>\r
        <type>Desktop</type>\r
-       <last_updated>2008-02-12</last_updated>\r
+       <last_updated>2011-09-02</last_updated>\r
        <extra_info>plone-like.</extra_info>\r
 </theme>\r
 \r
index c977ca7..10c3f2b 100644 (file)
@@ -1,5 +1,4 @@
 <?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
-
 <div id="my_courses_container">
 <table class="data" style="width:100%;">
 <tr><th></th>
index 410fa72..9d451d3 100644 (file)
@@ -57,7 +57,7 @@ function encrypt_password()
                </div>
 
                <div class="row buttons">
-                       <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" onClick="encrypt_password()" /> 
+                       <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" onclick="encrypt_password()" /> 
                        <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
                </div>
        </div>
index 53ada3a..abdcfbc 100644 (file)
@@ -87,7 +87,7 @@ echo '<div id="container"><br />';
                        echo '  <input type="hidden" name="show_guide" value="'.$_POST['show_guide'].'" />'."\n\r";
                else if (isset($_SESSION['prefs']['PREF_SHOW_GUIDE']))
                        echo '  <input type="hidden" name="show_guide" value="'.$_SESSION['prefs']['PREF_SHOW_GUIDE'].'" />'."\n\r";
-               
+       
                if (isset($_POST['content_editor']))
                        echo '  <input type="hidden" name="content_editor" value="'.$_POST['content_editor'].'" />'."\n\r";
                else if (isset($_SESSION['prefs']['PREF_CONTENT_EDITOR']))
@@ -274,6 +274,8 @@ else  // user login
 <?php
 if($_SESSION['course_id'] == "-1"){
 echo '</div>';
+
 }
 
+
 require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
diff --git a/docs/themes/mobile/admin/courses/courses.tmpl.php b/docs/themes/mobile/admin/courses/courses.tmpl.php
new file mode 100644 (file)
index 0000000..2a69e48
--- /dev/null
@@ -0,0 +1,227 @@
+<?php if ($this->mobile_device_type != IPAD_DEVICE): ?>
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               
+                       <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+               <div id="results-hide-show-simple-content" class="hide-show-container-surround">                
+                       <a id="results-hide-show-link" class="content-expand" href="javascript:void(0);" tabindex="1">Refine Results</a>
+               </div>
+       
+               
+       <div id="results-hide-show" role="search"  aria-live="assertive">
+       <div id="results-display">
+       
+               <div class="row">
+               <fieldset>
+                       <legend><?php echo _AT('access'); ?></legend>
+
+                       <input type="radio" name="access" value="0" id="s0" <?php if ($_GET['access'] == 0) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('public'); ?></label> 
+
+                       <input type="radio" name="access" value="1" id="s1" <?php if ($_GET['access'] == 1) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('protected'); ?></label> 
+
+                       <input type="radio" name="access" value="2" id="s2" <?php if ($_GET['access'] == 2) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('private'); ?></label>
+
+                       <input type="radio" name="access" value="" id="s" <?php if ($_GET['access'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
+               </fieldset>
+               </div>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('title').', '._AT('description'); ?>)</label><br />
+                       <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+       </div> <!-- end #results-display -->
+       </div> <!-- end #results-hide-show -->
+</form>
+
+<?php print_paginator($this->page, $this->num_results, $this->page_string . SEP . $this->order .'='. $col, $this->results_per_page); ?>
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="Course title, instructor, and enrollment." >
+<colgroup>
+       <?php if ($col == 'title'): ?>
+               <col />
+               <col class="sort" />
+               <col span="6" />
+       <?php elseif($col == 'login'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="5" />
+       <?php// elseif($col == 'access'): ?>
+               <!-- REMOVED FOR MOBILE <col span="3" />
+               <col class="sort" />
+               <col span="4" /> -->
+       <?php //elseif($col == 'created_date'): ?>
+               <!-- REMOVED FOR MOBILE<col span="4" />
+               <col class="sort" />
+               <col span="3" />-->
+       <?php //elseif($col == 'cat_name'): ?> 
+               <!-- REMOVED FOR MOBILE<col span="5" />
+               <col class="sort" />
+               <col span="2" /> -->
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=title<?php echo $page_string; ?>"><?php echo _AT('title');               ?></a></th>
+       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('Instructor');          ?></a></th>
+<!-- REMOVEED FOR MOBILE       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php // echo $this->orders[$this->order]; ?>=access<?php echo $page_string; ?>"><?php echo _AT('access');             ?></a></th> -->
+<!--   <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php //echo $this->orders[$this->order]; ?>=created_date<?php //echo $page_string; ?>"><?php // echo _AT('created_date'); ?></a></th> -->
+<!--   <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php //echo $this->orders[$this->order]; ?>=cat_name<?php //echo $page_string; ?>"><?php //echo _AT('category'); ?></a></th> -->
+       <th scope="col"><?php echo _AT('enrolled'); ?></th>
+<!--   <th scope="col"><?php //echo _AT('alumni'); ?></th> -->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="8"><input type="submit" name="view" value="<?php echo _AT('view'); ?>" /> 
+                                       <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+                                       <input type="submit" name="backups" value="<?php echo _AT('backups'); ?>" /> 
+                                       <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($this->num_rows): ?>
+       <?php while ($row = mysql_fetch_assoc($this->result)): ?>
+               <tr onkeydown="document.form['m<?php echo $row['course_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['m<?php echo $row['course_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['course_id']; ?>">
+                       <td><input type="radio" name="id" value="<?php echo $row['course_id']; ?>" id="m<?php echo $row['course_id']; ?>" /></td>
+                       <td><label for="m<?php echo $row['course_id']; ?>"><?php echo AT_print($row['title'], 'courses.title'); ?></label></td>
+                       <td><?php echo AT_print($row['login'],'members.login'); ?></td>
+               <!-- REMOVED FOR MOBILE <td><?php //echo _AT($row['access']); ?></td> -->
+               <!--    <td><?php //echo AT_date($startend_date_long_format, $row['created_date'], AT_DATE_UNIX_TIMESTAMP); ?></td> -->
+               <!--    <td><?php //echo ($row['cat_name'] ? $row['cat_name'] : '-')?></td>-->
+                       <td><?php echo ($this->enrolled[$row['course_id']]['y'] ? $this->enrolled[$row['course_id']]['y'] : 0); ?></td>
+               <!--    <td><?php //echo ($this->enrolled[$row['course_id']]['a'] ? $this->enrolled[$row['course_id']]['a'] : 0); ?></td> -->
+               </tr>
+       <?php endwhile; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="8"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
+<?php endif; ?> <!--  end template for smartphone -->
+<?php if ($this->mobile_device_type == IPAD_DEVICE): ?> 
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               
+                       <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+               <div id="hide-show-container">          
+                       <a id="results-hide-show-link" class="content-expand" href="javascript:void(0);" tabindex="1">Refine Results</a>
+               </div>
+       
+               
+       <div id="results-hide-show" role="search"  aria-live="assertive">
+       <div id="results-display">
+       
+               <div class="row">
+               <fieldset>
+                       <legend><?php echo _AT('access'); ?></legend>
+
+                       <input type="radio" name="access" value="0" id="s0" <?php if ($_GET['access'] == 0) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('public'); ?></label> 
+
+                       <input type="radio" name="access" value="1" id="s1" <?php if ($_GET['access'] == 1) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('protected'); ?></label> 
+
+                       <input type="radio" name="access" value="2" id="s2" <?php if ($_GET['access'] == 2) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('private'); ?></label>
+
+                       <input type="radio" name="access" value="" id="s" <?php if ($_GET['access'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
+               </fieldset>
+               </div>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('title').', '._AT('description'); ?>)</label><br />
+                       <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+       </div> <!-- end #results-display -->
+       </div> <!-- end #results-hide-show -->
+</form>
+
+<?php print_paginator($this->page, $this->num_results, $this->page_string . SEP . $this->order .'='. $col, $this->results_per_page); ?>
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="Course title, instructor, and enrollment." >
+<colgroup>
+       <?php if ($col == 'title'): ?>
+               <col />
+               <col class="sort" />
+               <col span="6" />
+       <?php elseif($col == 'login'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="5" />
+       <?php// elseif($col == 'access'): ?>
+               <!-- REMOVED FOR MOBILE <col span="3" />
+               <col class="sort" />
+               <col span="4" /> -->
+       <?php //elseif($col == 'created_date'): ?>
+               <!-- REMOVED FOR MOBILE<col span="4" />
+               <col class="sort" />
+               <col span="3" />-->
+       <?php //elseif($col == 'cat_name'): ?> 
+               <!-- REMOVED FOR MOBILE<col span="5" />
+               <col class="sort" />
+               <col span="2" /> -->
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=title<?php echo $page_string; ?>"><?php echo _AT('title');               ?></a></th>
+       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('Instructor');          ?></a></th>
+<!-- REMOVEED FOR MOBILE       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php // echo $this->orders[$this->order]; ?>=access<?php echo $page_string; ?>"><?php echo _AT('access');             ?></a></th> -->
+<!--   <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php //echo $this->orders[$this->order]; ?>=created_date<?php //echo $page_string; ?>"><?php // echo _AT('created_date'); ?></a></th> -->
+<!--   <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php //echo $this->orders[$this->order]; ?>=cat_name<?php //echo $page_string; ?>"><?php //echo _AT('category'); ?></a></th> -->
+       <th scope="col"><?php echo _AT('enrolled'); ?></th>
+<!--   <th scope="col"><?php //echo _AT('alumni'); ?></th> -->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="8"><input type="submit" name="view" value="<?php echo _AT('view'); ?>" /> 
+                                       <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+                                       <input type="submit" name="backups" value="<?php echo _AT('backups'); ?>" /> 
+                                       <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($this->num_rows): ?>
+       <?php while ($row = mysql_fetch_assoc($this->result)): ?>
+               <tr onkeydown="document.form['m<?php echo $row['course_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['m<?php echo $row['course_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['course_id']; ?>">
+                       <td><input type="radio" name="id" value="<?php echo $row['course_id']; ?>" id="m<?php echo $row['course_id']; ?>" /></td>
+                       <td><label for="m<?php echo $row['course_id']; ?>"><?php echo AT_print($row['title'], 'courses.title'); ?></label></td>
+                       <td><?php echo AT_print($row['login'],'members.login'); ?></td>
+               <!-- REMOVED FOR MOBILE <td><?php //echo _AT($row['access']); ?></td> -->
+               <!--    <td><?php //echo AT_date($startend_date_long_format, $row['created_date'], AT_DATE_UNIX_TIMESTAMP); ?></td> -->
+               <!--    <td><?php //echo ($row['cat_name'] ? $row['cat_name'] : '-')?></td>-->
+                       <td><?php echo ($this->enrolled[$row['course_id']]['y'] ? $this->enrolled[$row['course_id']]['y'] : 0); ?></td>
+               <!--    <td><?php //echo ($this->enrolled[$row['course_id']]['a'] ? $this->enrolled[$row['course_id']]['a'] : 0); ?></td> -->
+               </tr>
+       <?php endwhile; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="8"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
+<?php endif; ?> <!--  end template for tablet -->
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/courses/create_course.tmpl.php b/docs/themes/mobile/admin/courses/create_course.tmpl.php
new file mode 100644 (file)
index 0000000..32285bb
--- /dev/null
@@ -0,0 +1,449 @@
+
+<?php 
+global $languageManager,  $_config, $MaxCourseSize, $MaxFileSize;
+
+?>
+<?php //echo _AT('available_immediately'); ?>
+<form method="post" action="<?php echo $_SERVER['PHP_SELF'];  ?>" name="course_form" enctype="multipart/form-data">
+       <input type="hidden" name="form_course" value="true" />
+       <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_config['prof_pic_max_file_size']; ?>" />
+       <input type="hidden" name="course" value="<?php echo $this->course; ?>" />
+       <input type="hidden" name="old_access" value="<?php echo $this->row['access']; ?>" />
+       <input type="hidden" name="created_date" value="<?php echo $this->row['created_date']; ?>" />
+       <input type="hidden" name="show_courses" value="<?php echo $_GET['show_courses']; ?>" />
+       <input type="hidden" name="current_cat" value="<?php echo $_GET['current_cat']; ?>" />
+       <input type="submit" name="submit" style="display:none;"/>
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('properties'); ?></legend>
+<?php if ($this->isadmin): ?>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="inst"><?php echo  _AT('instructor'); ?></label><br />
+                       <?php 
+                       
+                       
+                       if ($instructor_row = mysql_fetch_assoc($this->result)) {
+                               echo '<select name="instructor" id="inst">';
+                               do {
+                                       if ($instructor_row['member_id'] == $this->row['member_id']) {
+                                               echo '<option value="'.$instructor_row['member_id'].'" selected="selected">'.$instructor_row['login'].'</option>';
+                                       } else {
+                                               echo '<option value="'.$instructor_row['member_id'].'">'.$instructor_row['login'].'</option>';
+                                       }
+                               } while($instructor_row = mysql_fetch_assoc($this->result));
+                               echo '</select>';
+                       } else {
+                               echo '<span id="inst">'._AT('none_found').'</span>';
+                       }
+                       ?>
+       </div>
+<?php endif; ?>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" id="title" name="title" size="40" value="<?php echo htmlspecialchars($this->row['title']); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="pri_lang"><?php  echo _AT('primary_language'); ?></label><br />
+               <?php $languageManager->printDropdown($this->row['primary_language'], 'pri_lang', 'pri_lang'); ?>
+       </div>
+
+       <div class="row">
+               <label for="description"><?php echo _AT('description'); ?></label><br />
+               <textarea id="description" cols="40" rows="2" name="description"><?php echo $this->row['description']; ?></textarea>
+       </div>
+       <?php if ($_config['course_dir_name']): ?>
+       <div class="row">
+               <label for="course_dir_name"><?php echo _AT('course_dir_name'); ?></label><br />
+               <input type="text" id="course_dir_name" name="course_dir_name" size="40" value="<?php echo htmlspecialchars($this->row['course_dir_name']); ?>" />
+       </div>
+       <?php endif; ?>
+
+       <?php $categories = get_categories(); ?>
+       <?php if (is_array($categories)): ?>
+               <div class="row">
+               <label for="cat"><?php echo _AT('category'); ?></label><br />
+                       <select name="category_parent" id="cat">
+                               <option value="0">&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;<?php echo _AT('cats_uncategorized'); ?>&nbsp;&nbsp;]&nbsp;&nbsp;&nbsp;</option>
+                               <?php select_categories($categories, 0, $this->row['cat_id'], false); ?>
+
+                       </select>
+               </div>
+       <?php endif; ?>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php  echo _AT('export_content'); ?></legend>
+               <?php
+                       switch ($this->row['content_packaging']) {
+                               case 'none':
+                                               $none = ' checked="checked"';
+                                               break;
+
+                               case 'top':
+                                               $top     = ' checked="checked"';
+                                               break;
+
+                               case 'all':
+                                               $all    = ' checked="checked"';
+                                               break;
+                       }
+                       ?>
+               <label for="none" ><input type="radio" name="content_packaging" value="none" id="none" <?php echo $none; ?> /><?php echo _AT('content_packaging_none'); ?></label><br />
+               <label for="ctop"><input type="radio" name="content_packaging" value="top" id="ctop"  <?php echo $top; ?> /><?php  echo _AT('content_packaging_top'); ?></label><br />
+               <label for="all"><input type="radio" name="content_packaging" value="all" id="all" <?php echo $all; ?> /><?php  echo _AT('content_packaging_all'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('syndicate_announcements'); ?></legend>
+               <?php
+                               $rss_no = $rss_yes = '';
+
+                               if ($this->row['rss']) {
+                                       $rss_yes = ' checked="checked"';
+                               } else {
+                                       $rss_no = ' checked="checked"';
+                               }
+               ?>
+               <label for="rss_y"><input type="radio" name="rss" value="1" id="rss_y" <?php echo $rss_yes; ?> /><?php echo _AT('enable_syndicate'); ?></label><br />
+               <label for="rss_n"><input type="radio" name="rss" value="0" id="rss_n"  <?php echo $rss_no; ?> /><?php  echo _AT('disable_syndicate'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('access'); ?></legend>
+               <?php
+                               switch ($this->row['access']) {
+                                       case 'public':
+                                                       $pub = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'protected':
+                                                       $prot    = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'private':
+                                                       $priv   = ' checked="checked"';
+                                                       break;
+                               }
+
+                               if ($this->row['notify']) {
+                                       $notify = ' checked="checked"';
+                               }
+
+                               if ($this->row['hide']) {
+                                       $hide = ' checked="checked"';
+                               }
+               ?>
+               <input type="radio" name="access" value="public" id="pub" onclick="disableNotify();" <?php echo $pub; ?> /><label for="pub"><strong> <?php echo  _AT('public'); ?>: </strong></label><?php echo  _AT('about_public'); ?><br /><br />
+
+               <input type="radio" name="access" value="protected" id="prot" onclick="disableNotify();" <?php echo $prot; ?> /><label for="prot"><strong><?php echo  _AT('protected'); ?>:</strong></label> <?php echo _AT('about_protected'); ?><br /><br />
+
+               <input type="radio" name="access" value="private" id="priv" onclick="enableNotify();" <?php echo $priv; ?> /><label for="priv"><strong><?php echo  _AT('private'); ?>:</strong></label> <?php echo  _AT('about_private'); ?><br />
+               <input type="checkbox" name="notify" id="notify" value="1" <?php
+                       echo $disable;
+                       echo $notify; ?> /><label for="notify"><?php echo  _AT('email_approvals'); ?></label>
+               <br />
+               <input type="checkbox" name="hide" id="hide" value="1" <?php
+               echo $disable;
+               echo $hide; ?> /><label for="hide"><?php echo  _AT('hide_course'); ?></label>.
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('release_date'); ?></legend>
+               <?php
+                       $rel_no = $rel_yes = '';
+
+                       if (intval($this->row['release_date'])) {
+                               $rel_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['release_date'], 8, 2);
+                               $today_mon   = substr($this->row['release_date'], 5, 2);
+                               $today_year  = substr($this->row['release_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['release_date'], 11, 2);
+                               $today_min   = substr($this->row['release_date'], 14, 2);
+                       } else {
+                               $rel_no = ' checked="checked"'; 
+                               $today_year  = date('Y');
+                       }
+
+               ?>
+
+               <input type="radio" name="release_date" value="0" id="release_now" <?php echo $rel_no; ?> /> <label for="release_now"><?php echo _AT('available_immediately'); ?></label><br />
+
+
+               <input type="radio" name="release_date" value="1" id="release_later" <?php echo $rel_yes; ?> /> <label for="release_later"><?php echo _AT('release_on'); ?></label> 
+               <?php
+                       $name = '_release';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+       </fieldset>     
+       </div>
+
+       <div class="row">
+       <fieldset><legend>
+               <?php echo _AT('end_date'); ?></legend>
+               <?php
+                       $end_no = $end_yes = '';
+
+                       if (intval($this->row['end_date'])) {
+                               $end_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['end_date'], 8, 2);
+                               $today_mon   = substr($this->row['end_date'], 5, 2);
+                               $today_year  = substr($this->row['end_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['end_date'], 11, 2);
+                               $today_min   = substr($this->row['end_date'], 14, 2);
+                       } else {
+                               $end_no = ' checked="checked"'; 
+                               $today_year  = date('Y')+1;
+                       }
+
+               ?>
+
+               <input type="radio" name="end_date" value="0" id="end_now" <?php echo $end_no; ?> /> <label for="end_now"><?php echo _AT('no_end_date'); ?></label><br />
+
+               <input type="radio" name="end_date" value="1" id="end_later" <?php echo $end_yes; ?> /> <label for="end_later"><?php echo _AT('end_on'); ?></label> 
+               <?php
+                       $name = '_end';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+               </fieldset>
+       </div>
+
+       <div class="row">
+               <?php
+                       if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
+                               echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
+                               echo '<input type="submit" name="settext" value="'._AT('switch_text').'"  class="button"/>';
+                       } else {
+                               echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'" class="button"/>';
+                       }
+               ?>
+       </div>
+       <div class="row">
+
+               <label for="banner"><?php echo _AT('banner'); ?></label><br />
+               <textarea id="banner" cols="40" rows="15" name="banner"><?php echo $this->row['banner']; ?></textarea>
+       </div>
+<!-- FIX  -->
+<?php if (!$this->course) : ?>
+       <div class="row">
+               <label for="initial_content"><?php echo _AT('initial_content'); ?></label><br />
+               <select name="initial_content" id="initial_content" size="5">
+                       <option value="0"><?php echo _AT('empty'); ?></option>
+                       <option value="1" selected="selected"><?php echo _AT('create_basic'); ?></option>
+                       <?php 
+                       
+                       if ($course_row = mysql_fetch_assoc($result)) {
+                               do {
+                                       $Backup->setCourseID($course_row['course_id']);
+                                       $list = $Backup->getAvailableList();
+
+                                       if (!empty($list)) { 
+                                               echo '<optgroup label="'. _AT('restore').': '.$course_row['title'].'">';
+                                               foreach ($list as $list_item) {
+                                                       echo '<option value="'.$list_item['backup_id'].'_'.$list_item['course_id'].'">'.$list_item['file_name'].' - '.get_human_size($list_item['file_size']).'</option>';
+                                               }
+                                               echo '</optgroup>';
+                                       }
+                               } while ($course_row = mysql_fetch_assoc($result));
+                       }
+                       ?>
+                       </select>
+       </div>
+<?php endif; // !$course_id ?>
+
+<?php if ($this->isadmin) : ?>
+       <div class="row">
+               <?php  echo _AT('course_quota'); ?><br />
+               <?php 
+                       if ($this->row['max_quota'] == AT_COURSESIZE_UNLIMITED) { 
+                               $c_unlim = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_quota'] == AT_COURSESIZE_DEFAULT) {
+                               $c_def = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $c_oth = ' checked="checked" ';
+                               $c_oth2 = '';
+                       }
+
+                       if ($this->course > 0) {
+                               $course_size = dirsize(AT_CONTENT_DIR . $this->course.'/');
+                       } else {
+                               $course_size = 0;
+                       }
+
+                       if ($this->course) {
+                               echo _AT('current_course_size') .': '.get_human_size($course_size).'<br />'; 
+                       }
+               ?>
+
+               <input type="radio" id="c_default" name="quota" value="<?php echo AT_COURSESIZE_DEFAULT; ?>" onclick="disableOther();" <?php echo $c_def;?> /><label for="c_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxCourseSize).')'; ?></label> <br />
+               <input type="radio" id="c_unlim" name="quota" value="<?php echo AT_COURSESIZE_UNLIMITED; ?>" onclick="disableOther();" <?php echo $c_unlim;?>/><label for="c_unlim"> <?php echo _AT('unlimited'); ?></label> <br />
+               <input type="radio" id="c_other" name="quota" value="2" onclick="enableOther();" <?php echo $c_oth;?>/><label for="c_other"> <?php echo _AT('other'); ?> </label> - 
+               <label for="quota_entered">Quota Entered</label>
+               <input type="text" id="quota_entered" name="quota_entered" <?php echo $c_oth2?> value="<?php if ($this->row['max_quota']!=AT_COURSESIZE_UNLIMITED && $this->row['max_quota']!=AT_COURSESIZE_DEFAULT) { echo bytes_to_megabytes($this->row['max_quota']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+       <div class="row">
+               <?php  echo _AT('max_file_size'); ?><br />
+               <?php 
+                       $max_allowed = megabytes_to_bytes(substr(ini_get('upload_max_filesize'), 0, -1));
+
+                       if ($this->row['max_file_size'] == AT_FILESIZE_DEFAULT) { 
+                               $f_def = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_file_size'] == AT_FILESIZE_SYSTEM_MAX) {
+                               $f_max = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $f_oth = ' checked="checked" ';
+                               $f_oth2 = '';
+                       }
+               ?>
+               <input type="radio" id="f_default" name="filesize" value="<?php echo AT_FILESIZE_DEFAULT; ?>" onclick="disableOther2();" <?php echo $f_def;?> /><label for="f_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxFileSize).')'; ?></label> <br />
+               <input type="radio" id="f_maxallowed" name="filesize" value="<?php echo AT_FILESIZE_SYSTEM_MAX; ?>" onclick="disableOther2();" <?php echo $f_max;?>/><label for="f_maxallowed"> <?php echo _AT('max_file_size_system') . ' ('.get_human_size($max_allowed).')'; ?></label> <br />
+               <input type="radio" id="f_other" name="filesize" value="2" onclick="enableOther2();" <?php echo $f_oth;?>/><label for="f_other"> <?php echo _AT('other'); ?> </label> - 
+               <label for="filesize_entered">Filesize entered</label>
+               <input type="text" id="filesize_entered" name="filesize_entered" <?php echo $f_oth2?> value="<?php if ($this->row['max_file_size']!=AT_FILESIZE_DEFAULT && $this->row['max_file_size']!=AT_FILESIZE_SYSTEM_MAX) { echo bytes_to_megabytes($this->row['max_file_size']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+<?php else: ?>
+       <input type="hidden" name="quota" value="<?php echo $this->row['max_quota']; ?>" />
+       <input type="hidden" name="filesize" value="<?php echo $this->row['max_file_size']; ?>" />
+       <input type="hidden" name="tracking" value="<?php echo $this->row['tracking']; ?>" />
+<?php endif; ?>
+
+       <div class="row">
+               <label for="copyright"><?php echo _AT('course_copyright'); ?></label><br />
+               <textarea name="copyright" rows="2" cols="40" id="copyright"><?php echo $this->row['copyright']; ?></textarea>
+       </div>
+       <div class="row">
+               <?php 
+            if ($this->row['icon'] != ''): 
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                if (file_exists($path.$this->row['icon'])) {
+                    if (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) {
+                        $custom_icon_path = 'get_course_icon.php/?id='.$this->row['course_id'];
+                    } else {
+                        $_base_href = 'content/' . $this->row['course_id'] . '/';
+                    }
+                } else {
+                    $_base_href = "images/courses/";   //$_base_href = 'get_course_icon.php/?id='.$row['course_id'];
+                }
+
+            $force_get = (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) ? true : false;
+            echo "<input type='hidden' name='boolForce' id='boolForce' value='$force_get' />";
+        
+       //include(AT_INCLUDE_PATH.'html/course_icon.inc.php');        
+        ?>
+               <img id="i0" src="<?php echo ($custom_icon_path=='')?$_base_href.$this->row['icon']:$custom_icon_path; ?>" alt="<?php echo $this->row['icon']; ?>" border="1" height="79" width="79"  />
+
+               <?php else: ?>
+                       <img id="i0" src="images/clr.gif" alt="" border="1" height="79" width="79"  />
+                       <input type='hidden' name='boolForce' id='boolForce' value='' />
+               <?php endif; ?>
+               <div>
+               <label for="icons"><?php echo _AT('icon'); ?></label><br />
+               <select name="icon" id="icons" onchange="SelectImg()">
+                       <option value=""><?php echo _AT('no_icon'); ?></option>
+            <?php // ------------- custom course icons
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                $boolCustom = false;
+                $optCount = 0;
+
+                if (is_dir($path)) {
+                    $boolCustom = true;  // true if custom icons are uploaded, otherwise false
+                    
+                    /*$files = scandir($path);  //SCANDIR STOPS ATUTOR WHEN RUN AS INSTRUCTOR, BUT NOT AS ADMIN. WHY? -Gorzan */
+                    
+                    /* PHP 4 REPLACEMENT FOR SCANDIR */
+                                       $dh  = opendir($path);
+                                       while (false !== ($filename = readdir($dh))) {
+                                               $files[] = $filename;
+                                       }
+
+                                       /*END PHP 4 REPLACEMENT FOR SCANDIR*/
+                    echo "<optgroup label='"._AT('custom_icons')."'>";
+                    foreach($files as $val) {
+                                               $file_ext = substr(strtolower($val), -3);
+                        if ($file_ext == "jpg" || $file_ext == "png" || $file_ext == "gif") {
+                            $optCount++;
+                            echo "<option value='".$val."'";
+                            if ($val == $this->row['icon']) {
+                                echo 'selected="selected"';
+                            }
+                            echo ">".$val."</option>";
+                        }
+                    }
+                    echo "</optgroup>";
+                }
+                
+            ?>
+                       <?php // ------------- other icons
+
+                               $course_imgs = array();
+                               if ($dir = opendir(AT_INCLUDE_PATH.'../images/courses/')) {
+                                       while (false !== ($file = readdir($dir)) ) {
+                                               if( ($file == '.') || ($file == '..')) { 
+                                                       continue;
+                                               }
+                                               $course_imgs[] = $file;
+                                       }               
+                                       closedir($dir); 
+                               }
+                               sort($course_imgs);
+                if ($boolCustom == true) {
+                    echo "<optgroup label='"._AT('builtin_icons')."'>";
+                }
+                               foreach ($course_imgs as $file) {
+                                       echo '<option value="' . $file . '" ';
+                                       if ($file == $this->row['icon']) { 
+                                               echo 'selected="selected"'; 
+                                       }
+                                       echo ' >' . $file . '</option>';        
+                               }
+                if ($boolCustom == true) {
+                    echo "</optgroup>";
+                }
+                       ?>
+               </select><?php echo "&nbsp;&nbsp;&nbsp; "._AT('or'); echo "<br />"?>
+       </div>
+    
+            <?php echo _AT('upload_icon'); ?><br />
+               <label for="customicon"><input type="file" name="customicon" title="custom icon" id="customicon" value="<?php echo $_POST['customicon']; ?>"/></label><br />
+                <small><?php echo _AT('upload_icon_text'); ?></small>
+       
+        <?php  //require_once(AT_INCLUDE_PATH.'../mods/_core/courses/html/course_icon.inc.php'); ?>
+
+        <br />
+
+       </div>
+
+   
+       <div class="buttons">
+
+               <?php
+            echo "<input type='hidden' name='custOptCount' id='custOptCount' value='".$optCount."' />";
+            echo "<input type='hidden' name='courseId' id='courseId' value='".$this->row['course_id']."' />";
+               ?>
+
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel');?>" />
+       </div>
+    </fieldset>
+</div>
+
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/courses/default_mods.tmpl.php b/docs/themes/mobile/admin/courses/default_mods.tmpl.php
new file mode 100644 (file)
index 0000000..13bd804
--- /dev/null
@@ -0,0 +1,67 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<table class="data static" summary="Table of default course tools">
+<thead>
+<tr>
+       <th scope="cols"><?php echo _AT('section'); ?></th>
+       <th><?php echo _AT('location'); ?></th>
+       <th><?php echo _AT('order'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="3" >               
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s"  />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />     
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php 
+
+
+foreach ($this->current_modules as $tool) :
+       $count++; 
+?>
+       <tr>
+               <td><?php 
+               if (isset($this->pages[$tool]['title'])) {
+                       echo $this->pages[$tool]['title'];
+               } else {
+                       echo _AT($this->pages[$tool]['title_var']);
+               } ?></td>
+               <td align="center">
+                       <?php if (in_array($tool, $this->main_defaults)): ?>
+                               <input type="checkbox" name="main[]" value="<?php echo $tool; ?>" id="m<?php echo $tool; ?>" checked="checked" /><label for="m<?php echo $tool; ?>"><?php echo _AT('main_navigation'); ?></label>
+                       <?php else: ?>
+                               <input type="checkbox" name="main[]" value="<?php echo $tool; ?>" id="m<?php echo $tool; ?>" /><label for="m<?php echo $tool; ?>"><?php echo _AT('main_navigation'); ?></label>
+                       <?php endif; ?>
+
+                       <?php if (in_array($tool, $this->home_defaults)): ?>
+                               <input type="checkbox" name="home[]" value="<?php echo $tool; ?>" id="h<?php echo $tool; ?>" checked="checked" /><label for="h<?php echo $tool; ?>"><?php echo _AT('home'); ?></label>
+                       <?php else: ?>
+                               <input type="checkbox" name="home[]" value="<?php echo $tool; ?>" id="h<?php echo $tool; ?>" /><label for="h<?php echo $tool; ?>"><?php echo _AT('home'); ?></label>
+                       <?php endif; ?>
+               </td>
+               <td align="right">
+                       <?php if (!in_array($tool, $this->home_defaults) && !in_array($tool, $this->main_defaults)): ?>
+                               &nbsp;
+                       <?php else: ?>
+                               <?php if (($count != $this->num_main+1) && ($count > 1)): ?>
+                                       <input type="submit" name="up[<?php echo $tool; ?>]" value="<?php echo _AT('move_up'); ?>" title="<?php echo _AT('move_up'); ?>" style="background-color: white; border: 1px solid; padding: 0px;" />
+                               <?php else: ?>
+                                       <img src="images/clr.gif" alt="" width="12" />
+                               <?php endif; ?>
+                               <?php if (($count != $this->num_main) && ($count < $this->num_modules)): ?>
+                                       <input type="submit" name="down[<?php echo $tool; ?>]" value="<?php echo _AT('move_down'); ?>" title="<?php echo _AT('move_down'); ?>" style="background-color: white; border: 1px solid; padding: 0px;"/>
+                               <?php else: ?>
+                                       <img src="images/clr.gif" alt="" width="12" />
+                               <?php endif; ?>
+                       <?php endif; ?>
+               </td>
+       </tr>
+<?php 
+endforeach; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/courses/edit_course.tmpl.php b/docs/themes/mobile/admin/courses/edit_course.tmpl.php
new file mode 100644 (file)
index 0000000..32285bb
--- /dev/null
@@ -0,0 +1,449 @@
+
+<?php 
+global $languageManager,  $_config, $MaxCourseSize, $MaxFileSize;
+
+?>
+<?php //echo _AT('available_immediately'); ?>
+<form method="post" action="<?php echo $_SERVER['PHP_SELF'];  ?>" name="course_form" enctype="multipart/form-data">
+       <input type="hidden" name="form_course" value="true" />
+       <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_config['prof_pic_max_file_size']; ?>" />
+       <input type="hidden" name="course" value="<?php echo $this->course; ?>" />
+       <input type="hidden" name="old_access" value="<?php echo $this->row['access']; ?>" />
+       <input type="hidden" name="created_date" value="<?php echo $this->row['created_date']; ?>" />
+       <input type="hidden" name="show_courses" value="<?php echo $_GET['show_courses']; ?>" />
+       <input type="hidden" name="current_cat" value="<?php echo $_GET['current_cat']; ?>" />
+       <input type="submit" name="submit" style="display:none;"/>
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('properties'); ?></legend>
+<?php if ($this->isadmin): ?>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="inst"><?php echo  _AT('instructor'); ?></label><br />
+                       <?php 
+                       
+                       
+                       if ($instructor_row = mysql_fetch_assoc($this->result)) {
+                               echo '<select name="instructor" id="inst">';
+                               do {
+                                       if ($instructor_row['member_id'] == $this->row['member_id']) {
+                                               echo '<option value="'.$instructor_row['member_id'].'" selected="selected">'.$instructor_row['login'].'</option>';
+                                       } else {
+                                               echo '<option value="'.$instructor_row['member_id'].'">'.$instructor_row['login'].'</option>';
+                                       }
+                               } while($instructor_row = mysql_fetch_assoc($this->result));
+                               echo '</select>';
+                       } else {
+                               echo '<span id="inst">'._AT('none_found').'</span>';
+                       }
+                       ?>
+       </div>
+<?php endif; ?>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" id="title" name="title" size="40" value="<?php echo htmlspecialchars($this->row['title']); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="pri_lang"><?php  echo _AT('primary_language'); ?></label><br />
+               <?php $languageManager->printDropdown($this->row['primary_language'], 'pri_lang', 'pri_lang'); ?>
+       </div>
+
+       <div class="row">
+               <label for="description"><?php echo _AT('description'); ?></label><br />
+               <textarea id="description" cols="40" rows="2" name="description"><?php echo $this->row['description']; ?></textarea>
+       </div>
+       <?php if ($_config['course_dir_name']): ?>
+       <div class="row">
+               <label for="course_dir_name"><?php echo _AT('course_dir_name'); ?></label><br />
+               <input type="text" id="course_dir_name" name="course_dir_name" size="40" value="<?php echo htmlspecialchars($this->row['course_dir_name']); ?>" />
+       </div>
+       <?php endif; ?>
+
+       <?php $categories = get_categories(); ?>
+       <?php if (is_array($categories)): ?>
+               <div class="row">
+               <label for="cat"><?php echo _AT('category'); ?></label><br />
+                       <select name="category_parent" id="cat">
+                               <option value="0">&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;<?php echo _AT('cats_uncategorized'); ?>&nbsp;&nbsp;]&nbsp;&nbsp;&nbsp;</option>
+                               <?php select_categories($categories, 0, $this->row['cat_id'], false); ?>
+
+                       </select>
+               </div>
+       <?php endif; ?>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php  echo _AT('export_content'); ?></legend>
+               <?php
+                       switch ($this->row['content_packaging']) {
+                               case 'none':
+                                               $none = ' checked="checked"';
+                                               break;
+
+                               case 'top':
+                                               $top     = ' checked="checked"';
+                                               break;
+
+                               case 'all':
+                                               $all    = ' checked="checked"';
+                                               break;
+                       }
+                       ?>
+               <label for="none" ><input type="radio" name="content_packaging" value="none" id="none" <?php echo $none; ?> /><?php echo _AT('content_packaging_none'); ?></label><br />
+               <label for="ctop"><input type="radio" name="content_packaging" value="top" id="ctop"  <?php echo $top; ?> /><?php  echo _AT('content_packaging_top'); ?></label><br />
+               <label for="all"><input type="radio" name="content_packaging" value="all" id="all" <?php echo $all; ?> /><?php  echo _AT('content_packaging_all'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('syndicate_announcements'); ?></legend>
+               <?php
+                               $rss_no = $rss_yes = '';
+
+                               if ($this->row['rss']) {
+                                       $rss_yes = ' checked="checked"';
+                               } else {
+                                       $rss_no = ' checked="checked"';
+                               }
+               ?>
+               <label for="rss_y"><input type="radio" name="rss" value="1" id="rss_y" <?php echo $rss_yes; ?> /><?php echo _AT('enable_syndicate'); ?></label><br />
+               <label for="rss_n"><input type="radio" name="rss" value="0" id="rss_n"  <?php echo $rss_no; ?> /><?php  echo _AT('disable_syndicate'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('access'); ?></legend>
+               <?php
+                               switch ($this->row['access']) {
+                                       case 'public':
+                                                       $pub = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'protected':
+                                                       $prot    = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'private':
+                                                       $priv   = ' checked="checked"';
+                                                       break;
+                               }
+
+                               if ($this->row['notify']) {
+                                       $notify = ' checked="checked"';
+                               }
+
+                               if ($this->row['hide']) {
+                                       $hide = ' checked="checked"';
+                               }
+               ?>
+               <input type="radio" name="access" value="public" id="pub" onclick="disableNotify();" <?php echo $pub; ?> /><label for="pub"><strong> <?php echo  _AT('public'); ?>: </strong></label><?php echo  _AT('about_public'); ?><br /><br />
+
+               <input type="radio" name="access" value="protected" id="prot" onclick="disableNotify();" <?php echo $prot; ?> /><label for="prot"><strong><?php echo  _AT('protected'); ?>:</strong></label> <?php echo _AT('about_protected'); ?><br /><br />
+
+               <input type="radio" name="access" value="private" id="priv" onclick="enableNotify();" <?php echo $priv; ?> /><label for="priv"><strong><?php echo  _AT('private'); ?>:</strong></label> <?php echo  _AT('about_private'); ?><br />
+               <input type="checkbox" name="notify" id="notify" value="1" <?php
+                       echo $disable;
+                       echo $notify; ?> /><label for="notify"><?php echo  _AT('email_approvals'); ?></label>
+               <br />
+               <input type="checkbox" name="hide" id="hide" value="1" <?php
+               echo $disable;
+               echo $hide; ?> /><label for="hide"><?php echo  _AT('hide_course'); ?></label>.
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('release_date'); ?></legend>
+               <?php
+                       $rel_no = $rel_yes = '';
+
+                       if (intval($this->row['release_date'])) {
+                               $rel_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['release_date'], 8, 2);
+                               $today_mon   = substr($this->row['release_date'], 5, 2);
+                               $today_year  = substr($this->row['release_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['release_date'], 11, 2);
+                               $today_min   = substr($this->row['release_date'], 14, 2);
+                       } else {
+                               $rel_no = ' checked="checked"'; 
+                               $today_year  = date('Y');
+                       }
+
+               ?>
+
+               <input type="radio" name="release_date" value="0" id="release_now" <?php echo $rel_no; ?> /> <label for="release_now"><?php echo _AT('available_immediately'); ?></label><br />
+
+
+               <input type="radio" name="release_date" value="1" id="release_later" <?php echo $rel_yes; ?> /> <label for="release_later"><?php echo _AT('release_on'); ?></label> 
+               <?php
+                       $name = '_release';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+       </fieldset>     
+       </div>
+
+       <div class="row">
+       <fieldset><legend>
+               <?php echo _AT('end_date'); ?></legend>
+               <?php
+                       $end_no = $end_yes = '';
+
+                       if (intval($this->row['end_date'])) {
+                               $end_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['end_date'], 8, 2);
+                               $today_mon   = substr($this->row['end_date'], 5, 2);
+                               $today_year  = substr($this->row['end_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['end_date'], 11, 2);
+                               $today_min   = substr($this->row['end_date'], 14, 2);
+                       } else {
+                               $end_no = ' checked="checked"'; 
+                               $today_year  = date('Y')+1;
+                       }
+
+               ?>
+
+               <input type="radio" name="end_date" value="0" id="end_now" <?php echo $end_no; ?> /> <label for="end_now"><?php echo _AT('no_end_date'); ?></label><br />
+
+               <input type="radio" name="end_date" value="1" id="end_later" <?php echo $end_yes; ?> /> <label for="end_later"><?php echo _AT('end_on'); ?></label> 
+               <?php
+                       $name = '_end';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+               </fieldset>
+       </div>
+
+       <div class="row">
+               <?php
+                       if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
+                               echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
+                               echo '<input type="submit" name="settext" value="'._AT('switch_text').'"  class="button"/>';
+                       } else {
+                               echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'" class="button"/>';
+                       }
+               ?>
+       </div>
+       <div class="row">
+
+               <label for="banner"><?php echo _AT('banner'); ?></label><br />
+               <textarea id="banner" cols="40" rows="15" name="banner"><?php echo $this->row['banner']; ?></textarea>
+       </div>
+<!-- FIX  -->
+<?php if (!$this->course) : ?>
+       <div class="row">
+               <label for="initial_content"><?php echo _AT('initial_content'); ?></label><br />
+               <select name="initial_content" id="initial_content" size="5">
+                       <option value="0"><?php echo _AT('empty'); ?></option>
+                       <option value="1" selected="selected"><?php echo _AT('create_basic'); ?></option>
+                       <?php 
+                       
+                       if ($course_row = mysql_fetch_assoc($result)) {
+                               do {
+                                       $Backup->setCourseID($course_row['course_id']);
+                                       $list = $Backup->getAvailableList();
+
+                                       if (!empty($list)) { 
+                                               echo '<optgroup label="'. _AT('restore').': '.$course_row['title'].'">';
+                                               foreach ($list as $list_item) {
+                                                       echo '<option value="'.$list_item['backup_id'].'_'.$list_item['course_id'].'">'.$list_item['file_name'].' - '.get_human_size($list_item['file_size']).'</option>';
+                                               }
+                                               echo '</optgroup>';
+                                       }
+                               } while ($course_row = mysql_fetch_assoc($result));
+                       }
+                       ?>
+                       </select>
+       </div>
+<?php endif; // !$course_id ?>
+
+<?php if ($this->isadmin) : ?>
+       <div class="row">
+               <?php  echo _AT('course_quota'); ?><br />
+               <?php 
+                       if ($this->row['max_quota'] == AT_COURSESIZE_UNLIMITED) { 
+                               $c_unlim = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_quota'] == AT_COURSESIZE_DEFAULT) {
+                               $c_def = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $c_oth = ' checked="checked" ';
+                               $c_oth2 = '';
+                       }
+
+                       if ($this->course > 0) {
+                               $course_size = dirsize(AT_CONTENT_DIR . $this->course.'/');
+                       } else {
+                               $course_size = 0;
+                       }
+
+                       if ($this->course) {
+                               echo _AT('current_course_size') .': '.get_human_size($course_size).'<br />'; 
+                       }
+               ?>
+
+               <input type="radio" id="c_default" name="quota" value="<?php echo AT_COURSESIZE_DEFAULT; ?>" onclick="disableOther();" <?php echo $c_def;?> /><label for="c_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxCourseSize).')'; ?></label> <br />
+               <input type="radio" id="c_unlim" name="quota" value="<?php echo AT_COURSESIZE_UNLIMITED; ?>" onclick="disableOther();" <?php echo $c_unlim;?>/><label for="c_unlim"> <?php echo _AT('unlimited'); ?></label> <br />
+               <input type="radio" id="c_other" name="quota" value="2" onclick="enableOther();" <?php echo $c_oth;?>/><label for="c_other"> <?php echo _AT('other'); ?> </label> - 
+               <label for="quota_entered">Quota Entered</label>
+               <input type="text" id="quota_entered" name="quota_entered" <?php echo $c_oth2?> value="<?php if ($this->row['max_quota']!=AT_COURSESIZE_UNLIMITED && $this->row['max_quota']!=AT_COURSESIZE_DEFAULT) { echo bytes_to_megabytes($this->row['max_quota']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+       <div class="row">
+               <?php  echo _AT('max_file_size'); ?><br />
+               <?php 
+                       $max_allowed = megabytes_to_bytes(substr(ini_get('upload_max_filesize'), 0, -1));
+
+                       if ($this->row['max_file_size'] == AT_FILESIZE_DEFAULT) { 
+                               $f_def = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_file_size'] == AT_FILESIZE_SYSTEM_MAX) {
+                               $f_max = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $f_oth = ' checked="checked" ';
+                               $f_oth2 = '';
+                       }
+               ?>
+               <input type="radio" id="f_default" name="filesize" value="<?php echo AT_FILESIZE_DEFAULT; ?>" onclick="disableOther2();" <?php echo $f_def;?> /><label for="f_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxFileSize).')'; ?></label> <br />
+               <input type="radio" id="f_maxallowed" name="filesize" value="<?php echo AT_FILESIZE_SYSTEM_MAX; ?>" onclick="disableOther2();" <?php echo $f_max;?>/><label for="f_maxallowed"> <?php echo _AT('max_file_size_system') . ' ('.get_human_size($max_allowed).')'; ?></label> <br />
+               <input type="radio" id="f_other" name="filesize" value="2" onclick="enableOther2();" <?php echo $f_oth;?>/><label for="f_other"> <?php echo _AT('other'); ?> </label> - 
+               <label for="filesize_entered">Filesize entered</label>
+               <input type="text" id="filesize_entered" name="filesize_entered" <?php echo $f_oth2?> value="<?php if ($this->row['max_file_size']!=AT_FILESIZE_DEFAULT && $this->row['max_file_size']!=AT_FILESIZE_SYSTEM_MAX) { echo bytes_to_megabytes($this->row['max_file_size']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+<?php else: ?>
+       <input type="hidden" name="quota" value="<?php echo $this->row['max_quota']; ?>" />
+       <input type="hidden" name="filesize" value="<?php echo $this->row['max_file_size']; ?>" />
+       <input type="hidden" name="tracking" value="<?php echo $this->row['tracking']; ?>" />
+<?php endif; ?>
+
+       <div class="row">
+               <label for="copyright"><?php echo _AT('course_copyright'); ?></label><br />
+               <textarea name="copyright" rows="2" cols="40" id="copyright"><?php echo $this->row['copyright']; ?></textarea>
+       </div>
+       <div class="row">
+               <?php 
+            if ($this->row['icon'] != ''): 
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                if (file_exists($path.$this->row['icon'])) {
+                    if (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) {
+                        $custom_icon_path = 'get_course_icon.php/?id='.$this->row['course_id'];
+                    } else {
+                        $_base_href = 'content/' . $this->row['course_id'] . '/';
+                    }
+                } else {
+                    $_base_href = "images/courses/";   //$_base_href = 'get_course_icon.php/?id='.$row['course_id'];
+                }
+
+            $force_get = (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) ? true : false;
+            echo "<input type='hidden' name='boolForce' id='boolForce' value='$force_get' />";
+        
+       //include(AT_INCLUDE_PATH.'html/course_icon.inc.php');        
+        ?>
+               <img id="i0" src="<?php echo ($custom_icon_path=='')?$_base_href.$this->row['icon']:$custom_icon_path; ?>" alt="<?php echo $this->row['icon']; ?>" border="1" height="79" width="79"  />
+
+               <?php else: ?>
+                       <img id="i0" src="images/clr.gif" alt="" border="1" height="79" width="79"  />
+                       <input type='hidden' name='boolForce' id='boolForce' value='' />
+               <?php endif; ?>
+               <div>
+               <label for="icons"><?php echo _AT('icon'); ?></label><br />
+               <select name="icon" id="icons" onchange="SelectImg()">
+                       <option value=""><?php echo _AT('no_icon'); ?></option>
+            <?php // ------------- custom course icons
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                $boolCustom = false;
+                $optCount = 0;
+
+                if (is_dir($path)) {
+                    $boolCustom = true;  // true if custom icons are uploaded, otherwise false
+                    
+                    /*$files = scandir($path);  //SCANDIR STOPS ATUTOR WHEN RUN AS INSTRUCTOR, BUT NOT AS ADMIN. WHY? -Gorzan */
+                    
+                    /* PHP 4 REPLACEMENT FOR SCANDIR */
+                                       $dh  = opendir($path);
+                                       while (false !== ($filename = readdir($dh))) {
+                                               $files[] = $filename;
+                                       }
+
+                                       /*END PHP 4 REPLACEMENT FOR SCANDIR*/
+                    echo "<optgroup label='"._AT('custom_icons')."'>";
+                    foreach($files as $val) {
+                                               $file_ext = substr(strtolower($val), -3);
+                        if ($file_ext == "jpg" || $file_ext == "png" || $file_ext == "gif") {
+                            $optCount++;
+                            echo "<option value='".$val."'";
+                            if ($val == $this->row['icon']) {
+                                echo 'selected="selected"';
+                            }
+                            echo ">".$val."</option>";
+                        }
+                    }
+                    echo "</optgroup>";
+                }
+                
+            ?>
+                       <?php // ------------- other icons
+
+                               $course_imgs = array();
+                               if ($dir = opendir(AT_INCLUDE_PATH.'../images/courses/')) {
+                                       while (false !== ($file = readdir($dir)) ) {
+                                               if( ($file == '.') || ($file == '..')) { 
+                                                       continue;
+                                               }
+                                               $course_imgs[] = $file;
+                                       }               
+                                       closedir($dir); 
+                               }
+                               sort($course_imgs);
+                if ($boolCustom == true) {
+                    echo "<optgroup label='"._AT('builtin_icons')."'>";
+                }
+                               foreach ($course_imgs as $file) {
+                                       echo '<option value="' . $file . '" ';
+                                       if ($file == $this->row['icon']) { 
+                                               echo 'selected="selected"'; 
+                                       }
+                                       echo ' >' . $file . '</option>';        
+                               }
+                if ($boolCustom == true) {
+                    echo "</optgroup>";
+                }
+                       ?>
+               </select><?php echo "&nbsp;&nbsp;&nbsp; "._AT('or'); echo "<br />"?>
+       </div>
+    
+            <?php echo _AT('upload_icon'); ?><br />
+               <label for="customicon"><input type="file" name="customicon" title="custom icon" id="customicon" value="<?php echo $_POST['customicon']; ?>"/></label><br />
+                <small><?php echo _AT('upload_icon_text'); ?></small>
+       
+        <?php  //require_once(AT_INCLUDE_PATH.'../mods/_core/courses/html/course_icon.inc.php'); ?>
+
+        <br />
+
+       </div>
+
+   
+       <div class="buttons">
+
+               <?php
+            echo "<input type='hidden' name='custOptCount' id='custOptCount' value='".$optCount."' />";
+            echo "<input type='hidden' name='courseId' id='courseId' value='".$this->row['course_id']."' />";
+               ?>
+
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel');?>" />
+       </div>
+    </fieldset>
+</div>
+
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/courses/enrollment.tmpl.php b/docs/themes/mobile/admin/courses/enrollment.tmpl.php
new file mode 100644 (file)
index 0000000..8773135
--- /dev/null
@@ -0,0 +1,140 @@
+
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <input type="hidden" name="tab" value="<?php echo $this->current_tab; ?>"/>
+       <input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
+       <div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('search'); ?></legend>
+               <?php if (admin_authenticate(AT_ADMIN_PRIV_ENROLLMENT, TRUE)): ?>
+                       <div class="row">
+                               <label for="course"><?php echo _AT('course'); ?></label><br/>
+                               <select name="course_id" id="course">
+                               <?php
+                               
+                               while ($courses_row = mysql_fetch_assoc($this->result)) {
+                                       if ($courses_row['course_id'] == $this->course_id) {
+                                               echo '<option value="'.$courses_row['course_id'].'" selected="selected">'.validate_length($courses_row['title'], 45,VALIDATE_LENGTH_FOR_DISPLAY).'</option>';
+                                       } else {
+                                               echo '<option value="'.$courses_row['course_id'].'">'.validate_length($courses_row['title'],45,VALIDATE_LENGTH_FOR_DISPLAY).'</option>';
+                                       }
+                               }
+                               ?></select>
+                       </div>
+               <?php endif; ?>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('login_name').', '._AT('first_name').', '._AT('second_name').', '._AT('last_name') .', '._AT('email'); ?>)</label><br />
+                       <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+                       <br/>
+                       <?php echo _AT('search_match'); ?>:
+                       <input type="radio" name="match" value="all" id="match_all" <?php echo $this->checked_match_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> <input type="radio" name="match" value="one" id="match_one" <?php echo $this->checked_match_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </fieldset>
+       </div>
+</form>
+
+<?php print_paginator($this->page, $this->tab_counts[$this->current_tab], $this->page_string_w_tab . SEP . $this->order .'='. $this->col, $this->results_per_page); ?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="selectform">
+<input type="hidden" name="tab" value="<?php echo $this->current_tab; ?>" />
+<input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
+
+<ul id="subnavlist">
+       <?php for ($i = 0; $i< $this->num_tabs; $i++): ?>
+               <?php if ($this->current_tab == $i): ?>
+                       <li class="active"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?tab=<?php echo $i.$this->page_string; ?>" class="active"><strong><?php echo _AT($this->tabs[$i]); ?> - <?php echo $this->tab_counts[$i]; ?></strong></a></li>
+               <?php else: ?>
+                       <li><a href="<?php echo $_SERVER['PHP_SELF']; ?>?tab=<?php echo $i.$this->page_string; ?>"><?php echo _AT($this->tabs[$i]); ?> - <?php echo $this->tab_counts[$i]; ?></a></li>
+               <?php endif; ?>
+       <?php endfor; ?>
+</ul>
+
+
+<table class="data" style="width:95%;" summary="" rules="cols" >
+<colgroup>
+       <?php if ($this->col == 'login'): ?>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($this->col == 'first_name'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="3" />
+       <?php //elseif($this->col == 'second_name'): ?>
+               <!--  REMOVED FOR MOBILE <col span="3" />
+               <col class="sort" />
+               <col span="2" />-->
+       <?php elseif($this->col == 'last_name'): ?>
+               <col span="4" />
+               <col class="sort" />
+               <col />
+       <?php //elseif($this->col == 'email'): ?>
+               <!-- REMOVED FOR MOBILE <col span="5" />
+               <col class="sort" /> -->
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col" align="left"><input type="checkbox" value="<?php echo _AT('select_all'); ?>" id="all" title="<?php echo _AT('select_all'); ?>" name="selectall" onclick="CheckAll();" /></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=login<?php echo $this->page_string_w_tab;?>"><?php echo _AT('login_name'); ?></a></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=first_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('first_name'); ?></a></th>
+
+<!--   <th scope="col"><a href="<?php //echo $_SERVER['PHP_SELF']; ?>?<?php //echo $this->orders[$this->order]; ?>=second_name<?php // echo $this->page_string_w_tab;?>"><?php //echo _AT('second_name'); ?></a></th> -->
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=last_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('last_name'); ?></a></th>
+
+<!--   <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=email<?php echo $this->page_string_w_tab;?>"><?php echo _AT('email'); ?></a></th> -->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+               <?php if ($this->current_tab == 0): ?>
+                       <input type="submit" name="role"     value="<?php echo _AT('privileges');  ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove');    ?>" /> 
+                       <input type="submit" name="alumni"   value="<?php echo _AT('mark_alumni'); ?>" />
+               <?php elseif ($this->current_tab == 1): ?>
+                       <input type="submit" name="role" value="<?php echo _AT('privileges'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" /> 
+
+               <?php elseif ($this->current_tab == 2): ?>
+                       <input type="submit" name="enroll"   value="<?php echo _AT('enroll'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" />
+               
+               <?php elseif ($this->current_tab == 3): ?>
+                       <input type="submit" name="enroll" value="<?php echo _AT('enroll'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" />
+
+               <?php elseif ($this->current_tab == 4): ?>
+                       <input type="submit" name="enroll"   value="<?php echo _AT('enroll'); ?>" /> 
+
+               <?php endif; ?></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($this->tab_counts[$this->current_tab]): ?>
+       <?php while ($row = mysql_fetch_assoc($this->enrollment_result)): ?>
+               <tr onmousedown="document.selectform['m<?php echo $row['member_id']; ?>'].checked = !document.selectform['m<?php echo $row['member_id']; ?>'].checked; togglerowhighlight(this, 'm<?php echo $row['member_id']; ?>');" id="rm<?php echo $row['member_id']; ?>">
+                       <td><input type="checkbox" name="id[]" value="<?php echo $row['member_id']; ?>" id="m<?php echo $row['member_id']; ?>" onmouseup="this.checked=!this.checked" title="<?php echo AT_print($row['login'], 'members.login'); ?>" /></td>
+                       <td><?php echo AT_print($row['login'], 'members.login'); ?></td>
+                       <td><?php echo AT_print($row['first_name'], 'members.name'); ?></td>
+                       <!-- REMOVED FOR MOBILE <td><?php // echo AT_print($row['second_name'], 'members.name'); ?></td> -->
+                       <td><?php echo AT_print($row['last_name'], 'members.name'); ?></td>
+                       <!-- REMOVED FOR MOBILE<td><?php // echo AT_print($row['email'], 'members.email'); ?></td> -->
+               </tr>
+       <?php endwhile; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/courses/forum_add.tmpl.php b/docs/themes/mobile/admin/courses/forum_add.tmpl.php
new file mode 100644 (file)
index 0000000..0fccc48
--- /dev/null
@@ -0,0 +1,39 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="add_forum" value="true" />
+
+<div class="input-form">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" name="title" size="40" id="title" value="<?php echo $_POST['title']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="body"><?php echo _AT('description'); ?></label><br />
+               <textarea name="description" cols="45" rows="2" id="body" ><?php echo $_POST['description']; ?></textarea>
+       </div>
+
+       <div class="row">
+               <label for="edit"><?php echo _AT('allow_editing'); ?></label><br />
+               <input type="text" name="edit" size="3" id="edit" value="<?php echo intval($row['mins_to_edit']); ?>" /> <?php echo _AT('in_minutes'); ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="courses"><?php echo _AT('courses'); ?></label><br />
+               <?php if ($this->system_courses): ?>
+                       <select name="courses[]" id="courses" multiple="multiple" size="5"><?php
+                               while ($row = mysql_fetch_assoc($this->result)) {
+                                       echo '<option value="'.$row['course_id'].'">'.$row['title'].'</option>';                
+                               }
+                               ?>
+                       </select>
+               <?php else: ?>
+                       <span id="courses"><?php echo _AT('no_courses_found'); ?></span>
+               <?php endif; ?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/courses/forums.tmpl.php b/docs/themes/mobile/admin/courses/forums.tmpl.php
new file mode 100644 (file)
index 0000000..8f45ac9
--- /dev/null
@@ -0,0 +1,61 @@
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="Course forums" >
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('title');       ?></th>
+       <!-- REMOVED FOR MOBILE<th scope="col"><?php// echo _AT('description'); ?></th> -->
+       <th scope="col"><?php echo _AT('courses');  
+          ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="4"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+
+</tfoot>
+<tbody>
+
+<tr>
+       <th colspan="4"><?php echo _AT('shared_forums'); ?></th>
+</tr>
+<?php 
+foreach ($this->shared_forums as $forum) {
+
+?>
+<!--     <tr onmousedown="document.form[\'f'.$forum['forum_id'].'\'].checked = true; rowselect(this);"  id="r_'.$forum['forum_id'].'"></tr> -->      
+    <tr onkeydown="document.form['f<?php echo $forum['id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['f<?php echo $forum['id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $forum['id']; ?>">
+    <td><input type="radio" name="id" value= "<?php echo $forum['id']; ?>" id="f<?php echo $forum['id']; ?>"</td>
+       <td><label for="f<?php echo $forum['id']; ?>"> <?php echo       AT_print($forum['title'], 'forums.title'); ?>  </label></td>
+       <!-- REMOVED FOR MOBILE<td><?php // echo AT_print($forum['desc'], 'forums.description'); ?></td> -->
+       <td> <?php foreach ($forum["courses"] as $course) {echo $course. "  ";} ?>
+       </td>
+       </tr>
+<?php }?>
+
+</tbody>
+<tbody>
+       <tr>
+               <th colspan="4"><?php echo _AT('unshared_forums'); ?></th>
+       </tr>
+<?php if ($this->num_nonshared) : ?>
+       <?php foreach ($this->all_forums['nonshared'] as $forum) : ?>
+               <tr onkeydown="document.form['f<?php echo $forum['forum_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['f<?php echo $forum['forum_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $forum['forum_id']; ?>">
+                       <td><input type="radio" name="id" value="<?php echo $forum['forum_id']; ?>" id="f<?php echo $forum['forum_id']; ?>" /></td>
+                       <td><label for="f<?php echo $forum['forum_id']; ?>"><?php echo AT_print($forum['title'], 'forums.title'); ?></label></td>
+                       <!-- REMOVED FOR MOBILE <td><?php // echo AT_print($forum['description'], 'forums.description'); ?></td> -->
+                       <td><?php echo $this->system_courses[$forum['course_id']]['title']; ?></td>
+               </tr>
+       <?php endforeach; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><strong><?php echo _AT('no_forums'); ?></strong></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/courses/scaffolds.tmpl.php b/docs/themes/mobile/admin/courses/scaffolds.tmpl.php
new file mode 100644 (file)
index 0000000..ded75fd
--- /dev/null
@@ -0,0 +1,25 @@
+<?php global $_config;?>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="scaffolds">
+<div class="input-form">
+ <fieldset class="group_form"> <legend class="group_form"><strong><?php echo _AT("support_tools"); ?></strong>  </legend>  
+       <div class="row">
+               <p><?php echo _AT('scaffold_text'); ?></p>
+       </div>
+       <div class="row">
+
+               <label for="encyclopedia"><?php echo _AT('encyclopedia'); ?></label><br /><input type="text" id="encyclopedia"  name="encyclopedia" value="<?php echo $_config['encyclopedia']; ?>"  size="40"/><br />
+               <label for="dictionary"><?php echo _AT('dictionary'); ?></label><br /><input type="text" id="dictionary"  name="dictionary" value="<?php echo $_config['dictionary']; ?>"  size="40"/><br />
+               <label for="thesaurus"><?php echo _AT('thesaurus'); ?></label><br /><input type="text" id="thesaurus"  name="thesaurus" value="<?php echo $_config['thesaurus']; ?>" size="40"/><br />
+               <label for="atlas"><?php echo _AT('atlas'); ?></label><br /><input type="text" id="atlas"  name="atlas" value="<?php echo $_config['atlas']; ?>"  size="40"/><br />
+               <label for="calculator"><?php echo _AT('calculator'); ?></label><br /><input type="text" id="calculator"  name="calculator" value="<?php echo $_config['calculator']; ?>"  size="40"/><br />
+               <label for="note_taking"><?php echo _AT('note_taking'); ?></label><br /><input type="text" id="note_taking"  name="note_taking" value="<?php echo $_config['note_taking']; ?>"  size="40"/>     <br />
+               <label for="abacas"><?php echo _AT('abacus'); ?></label><br /><input type="text" id="abacas"  name="abacas" value="<?php echo $_config['abacas']; ?>"  size="40"/><br />
+       </div>
+       <div class="buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />
+       </div>
+</fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/index.tmpl.php b/docs/themes/mobile/admin/index.tmpl.php
new file mode 100644 (file)
index 0000000..d22cf5c
--- /dev/null
@@ -0,0 +1,152 @@
+<?php global $_config; $_config_defaults;?>
+
+<div class="admin_container"> 
+
+       <?php /*
+       $this->path_length = strlen($this->base_path);
+
+       echo '<ul class="fl-list-menu ">';
+       foreach ($this->top_level_pages as $page_info) {
+               echo '<li><a href="' . $page_info['url'] . '">' . $page_info['title'] . '</a>  ';
+
+               $page_info['url'] = substr($page_info['url'], $this->path_length);
+
+               if ($this->pages[$page_info['url']]['children']) {
+       
+                       foreach ($this->pages[$page_info['url']]['children'] as $child) {
+                               // check whether the page is set to be available for mobile themes. @see include/lib/menu_pages.php
+                               if (page_available($child)) {
+                                       echo ' <li  ><a href="'.$child.'">'._AT($this->pages[$child]['title_var']).'</a></li>';
+                               }
+                       }
+                       
+               }
+               echo '</li>'; //end top-tool
+       }
+       echo '</ul>';*/
+       
+?>
+
+
+<div class="" style="">
+       <div class="input-form" >
+               
+                               <h3><?php echo _AT('social_switch'); ?></h3>
+                               <p><?php echo _AT('social_switch_text'); ?></p>
+               
+                       <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+                       <fieldset>
+                       <legend id="social_networking"><?php echo _AT('social_switch'); ?></legend>(<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['just_social'] ? _AT('just_social') : _AT('social_and_lms')); ?>)
+                       <div class="row">
+                       <input type="radio" name="just_social" value="1" id="social_y" <?php if($_config['just_social']) { echo 'checked="checked"'; }?>  /><label for="social_y"><?php echo _AT('just_social'); ?></label> <br /><input type="radio" name="just_social" value="0" id="social_n" <?php if(!$_config['just_social']) { echo 'checked="checked"'; }?>  /><label for="social_n"><?php echo _AT('social_and_lms'); ?></label>
+                       </div>
+
+                       <div class="row buttons">
+                               <input type="submit" name="social_submit" value="<?php echo _AT('save'); ?>" />
+                       </div>
+                       </fieldset>
+                       </form>
+
+       </div>
+       <div class="input-form" >
+               
+                               <h3><?php echo _AT('donate'); ?></h3>
+                               <p><?php echo _AT('donate_text'); ?></p>
+                       
+
+                       <div >
+                               <a href="http://www.atutor.ca/payment/index.php?project=ATutor-Donation"><img src="<?php echo $this->base_href; ?>/images/donate.gif" height="28" width="136" border="0" alt="<?php echo _AT('donate'); ?>" /></a><br /><br />
+                       </div>
+       </div>
+       
+               
+       <div class="input-form">
+               <form method="get" action="mods/_core/users/instructor_requests.php">
+                       
+                       <h3><?php echo _AT('instructor_requests'); ?></h3>
+                               
+                               <?php foreach($this->row_instructor as $key => $value): ?>
+                               
+                               <p><?php echo _AT('instructor_requests_text', $value['cnt']); ?></p>
+                               <?php endforeach;?>
+                       
+
+                       <div class="row buttons">
+                               <input type="submit" name="submit" value="<?php echo _AT('view'); ?>" />
+                       </div>
+               </form>
+       </div>
+       
+       
+       <div class="input-form">
+               <form method="get" action="mods/_standard/patcher/index_admin.php">
+                       
+                               <h3><?php echo _AT('available_patches'); ?></h3>
+                               <p><?php echo _AT('available_patches_text', $this->cnt); ?></p>
+               
+
+                       <div class="row buttons">
+                               <input type="submit" name="submit" value="<?php echo _AT('view'); ?>" />
+                       </div>
+               </form>
+       </div>
+       <div class="input-form" >
+               
+                       <h3><?php echo _AT('statistics_information'); ?></h3>
+
+                       <dl class="col-list">
+                               <?php if ($this->db_size): ?>
+                                       <dt><?php echo _AT('database'); ?>:</dt>
+                                       <dd><?php echo number_format($this->db_size/AT_KBYTE_SIZE/AT_KBYTE_SIZE,2); ?> <acronym title="<?php echo _AT('megabytes'); ?>"><?php echo _AT('mb'); ?></acronym></dd>
+                               <?php endif; ?>
+
+                               <?php if ($this->du_size): ?>
+                                       <dt><?php echo _AT('disk_usage'); ?>:</dt>
+                                       <dd><?php echo number_format($this->du_size/AT_KBYTE_SIZE,2); ?> <acronym title="<?php echo _AT('megabytes'); ?>"><?php echo _AT('mb'); ?></acronym></dd>
+                               <?php endif; ?>
+
+                               <dt><?php echo _AT('courses'); ?>:</dt>
+                               <dd><?php echo $this->num_courses; ?></dd>
+
+                               <dt><?php echo _AT('users'); ?>:</dt>
+                               <dd><?php echo $this->num_users; ?></dd>
+
+                               <dt><?php echo _AT('atutor_version'); ?>:</dt>
+                <?php
+                    require('../svn.php');
+                    if (!empty($svn_data)) {
+                        $svn_data   = explode("\n", $svn_data);
+                        if (substr($svn_data[1], 0, 1) == 'r') {
+                            $svn_data = $svn_data[1];
+                        } else if (substr($svn_data[2], 0, 1) == 'r') {
+                            $svn_data = $svn_data[2];
+                        }
+
+                        if (count($svn_data) > 1) {
+                            $build = 'unknown';
+                            $build_date = date('Y-m-d H:i:s');
+                        } else {
+                            $svn_data   = explode(' ', $svn_data);
+
+                            $build      = $svn_data[0];
+                            $build_date = $svn_data[4] .' '. $svn_data[5];
+                        }
+                        $build_str = '(' . $build . ' - '.$build_date . ')';
+                    }
+                ?>
+                               <dd><?php echo _AT('atutor_version_text', VERSION . $build_str, urlencode(VERSION)); ?></dd>
+
+                               <dt><?php echo _AT('php_version'); ?>:</dt>
+                               <dd><?php echo PHP_VERSION; ?></dd>
+
+                               <dt><?php echo _AT('mysql_version'); ?>:</dt>
+                               <dd><?php echo $mysql_version; ?></dd>
+
+                               <dt><?php echo _AT('os'); ?>:</dt>
+                               <dd><?php echo @php_uname('s') . ' ' . @php_uname('r'); ?></dd>
+                       </dl>
+               </div>
+       </div>
+
+</div> 
+
diff --git a/docs/themes/mobile/admin/modules/details.tmpl.php b/docs/themes/mobile/admin/modules/details.tmpl.php
new file mode 100644 (file)
index 0000000..3f5cbec
--- /dev/null
@@ -0,0 +1,85 @@
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="mod" value="<?php echo $_GET['mod']; ?>" />
+<input type="hidden" name="new" value="<?php echo $_GET['new']; ?>" />
+
+<input type="hidden" name="enabled" value="<?php echo (int) isset($_GET['enabled']); ?>" />
+<input type="hidden" name="disabled" value="<?php echo (int) isset($_GET['disabled']); ?>" />
+<input type="hidden" name="core" value="<?php echo (int) isset($_GET['core']); ?>" />
+<input type="hidden" name="standard" value="<?php echo (int) isset($_GET['standard']); ?>" />
+<input type="hidden" name="extra" value="<?php echo (int) isset($_GET['extra']); ?>" />
+<input type="hidden" name="missing" value="<?php echo (int) isset($_GET['missing']); ?>" />
+
+<div class="input-form">
+       <div class="row">
+               <h3><?php echo $this->module->getName(); ?></h3>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('description'); ?><br />
+               <?php echo nl2br($this->module->getDescription($_SESSION['lang'])); ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('maintainers'); ?><br />
+                       <ul class="horizontal">
+                               <?php foreach ($this->properties['maintainers'] as $maintainer): ?>
+                                       <li><?php echo $maintainer['name'] .' &lt;'.$maintainer['email'].'&gt;'; ?></li>
+                               <?php endforeach; ?>
+                       </ul>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('url'); ?><br />
+               <?php echo $this->properties['url']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('version'); ?><br />
+               <?php echo $this->properties['version']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('date'); ?><br />
+               <?php echo $this->properties['date']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('license'); ?><br />
+               <?php echo $this->properties['license']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('state'); ?><br />
+               <?php echo $this->properties['state']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('notes'); ?><br />
+               <?php echo nl2br($this->properties['notes']); ?>
+       </div>
+
+       <?php if (is_array($this->module->_pages)): ?>
+               <div class="row">
+                       <?php if (!isset($_GET['files'])): ?>
+                               <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES).SEP; ?>files#files"><?php echo _AT('files'); ?></a><br />
+                       <?php else: ?>
+                               <?php $module_pages = array_keys($this->module->_pages); ?>
+                               <?php natsort($module_pages); ?>
+                               <a name="files"></a><?php echo _AT('files'); ?><br />
+                               <ul class="">
+                                       <?php foreach ($module_pages as $key): ?>
+                                               <?php if (defined($key)) : continue; endif; ?>
+                                               <li><kbd><?php echo $key; ?></kbd></li>
+                                       <?php endforeach; ?>
+                               </ul>
+                       <?php endif; ?>
+               </div>
+       <?php endif; ?>
+
+<?php if (!isset($_REQUEST['new'])): ?>
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('back'); ?>" />
+       </div>
+<?php endif; ?>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/modules/index.tmpl.php b/docs/themes/mobile/admin/modules/index.tmpl.php
new file mode 100644 (file)
index 0000000..87b34a9
--- /dev/null
@@ -0,0 +1,127 @@
+
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               
+                       <h3><?php echo _AT('results_found', count($this->keys)); ?></h3>
+                       <a id="results-hide-show-link" href="javascript:void(0);" tabindex="1">Refine Results</a>
+               
+       
+               
+       <div id="results-hide-show" role="search"  aria-live="assertive">
+       <div id="results-display">
+
+               <div class="row">
+                       <?php echo _AT('type'); ?><br />
+                       <input type="checkbox" name="core" value="1" id="t0" <?php if ($_GET['core']) { echo 'checked="checked"'; } ?> /><label for="t0"><?php echo _AT('core'); ?></label>
+
+                       <input type="checkbox" name="standard" value="1" id="t1" <?php if ($_GET['standard']) { echo 'checked="checked"'; } ?> /><label for="t1"><?php echo _AT('standard'); ?></label> 
+
+                       <input type="checkbox" name="extra" value="1" id="t2" <?php if ($_GET['extra']) { echo 'checked="checked"'; } ?> /><label for="t2"><?php echo _AT('extra'); ?></label> 
+               </div>
+
+
+               <div class="row">
+                       <?php echo _AT('status'); ?><br />
+                       <input type="checkbox" name="enabled" value="1" id="s0" <?php if ($_GET['enabled']) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('enabled'); ?></label> 
+
+                       <input type="checkbox" name="disabled" value="1" id="s1" <?php if ($_GET['disabled']) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('disabled'); ?></label> 
+
+                       <input type="checkbox" name="missing" value="1" id="s2" <?php if ($_GET['missing']) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('missing'); ?></label> 
+
+                       <input type="checkbox" name="partially_uninstalled" value="1" id="s3" <?php if ($_GET['partially_uninstalled']) { echo 'checked="checked"'; } ?> /><label for="s3"><?php echo _AT('partially_uninstalled'); ?></label> 
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+       </div> <!-- end #results-display -->
+       </div> <!-- end #results-hide-show -->
+</form>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
+
+<input type="hidden" name="enabled" value="<?php echo (int) $_GET['enabled']; ?>" />
+<input type="hidden" name="disabled" value="<?php echo (int) $_GET['disabled']; ?>" />
+<input type="hidden" name="core" value="<?php echo (int) $_GET['core']; ?>" />
+<input type="hidden" name="standard" value="<?php echo (int) $_GET['standard']; ?>" />
+<input type="hidden" name="extra" value="<?php echo (int) $_GET['extra']; ?>" />
+<input type="hidden" name="missing" value="<?php echo (int) $_GET['missing']; ?>" />
+<input type="hidden" name="partially_uninstalled" value="<?php echo (int) $_GET['partially_uninstalled']; ?>" />
+<div class="table-surround">
+<table class="data" summary="List of modules" >
+<colgroup>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('module_name'); ?></th>
+       <!-- REMOVED FOR MOBILE <th scope="col"><?php echo _AT('type'); ?></th>-->
+       <th scope="col"><?php echo _AT('status'); ?></th>
+       <!-- REMOVED FOR MOBILE <th scope="col"><?php echo _AT('cron'); ?></th> -->
+       <!-- REMOVED FOR MOBILE <th scope="col"><?php echo _AT('directory_name'); ?></th>-->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+               <input type="submit" name="details" value="<?php echo _AT('details'); ?>" />
+               <input type="submit" name="enable"  value="<?php echo _AT('enable'); ?>" />
+               <input type="submit" name="disable" value="<?php echo _AT('disable'); ?>" />
+               <input type="submit" name="uninstall" value="<?php echo _AT('uninstall'); ?>" />
+               <input type="submit" name="export" value="<?php echo _AT('export'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+
+
+
+<?php foreach($this->keys as $dir_name) : $module =& $this->module_list[$dir_name]; $i++; $readme = get_readme(AT_INCLUDE_PATH.'../mods/'.$dir_name);?>
+
+       <tr onkeydown="document.form['t_<?php echo $i; ?>'].checked = true; rowselect(this);" onmousedown="document.form['t_<?php echo $i; ?>'].checked = true; rowselect(this);" id="r_<?php echo $i; ?>">
+               <td valign="top"><input type="radio" id="t_<?php echo $i; ?>" name="mod_dir" value="<?php echo $dir_name; ?>" /></td>
+               <td nowrap="nowrap" valign="top"><label for="t_<?php echo $i; ?>"><?php echo $module->getName(); if ($readme <> '') echo '&nbsp;<a href="#" onclick="ATutor.poptastic(\''.AT_BASE_HREF.'mods/'.$dir_name.'/'.$readme.'\');return false;">'._AT('view_readme').'</a>'; ?></label></td>
+               <!-- REMOVED FOR MOBILE><td valign="top"><?php
+                       /*if ($module->isCore()) {
+                               echo '<strong>'._AT('core').'</strong>';
+                       } else if ($module->isStandard()) {
+                               echo _AT('standard');
+                       } else {
+                               echo _AT('extra');
+                       }*/
+                       ?></td> -->
+               <td valign="top"><?php
+                       if ($module->isEnabled()) {
+                               echo _AT('enabled');
+                       } else if ($module->isMissing()) {
+                               echo '<strong>'._AT('missing').'</strong>';
+                       } else if ($module->isPartiallyUninstalled()) {
+                               echo _AT('partially_uninstalled');
+                       } else {
+                               echo '<strong>'._AT('disabled').'</strong>';
+                       }
+                       ?></td>
+               <!-- REMOVED FOR MOBILE <td valign="top" align="center">
+                       <?php // if ($module->getCronInterval()): ?>
+                               <?php //echo _AT('minutes', $module->getCronInterval()); ?>
+                       <?php //else: ?>
+                               
+                       <?php // endif; ?>
+               </td>
+               <td valign="top"><code><?php //echo $dir_name; ?>/</code></td> -->
+       </tr>
+<?php endforeach; ?>
+<?php if (!$this->keys): ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
diff --git a/docs/themes/mobile/admin/modules/install_modules.tmpl.php b/docs/themes/mobile/admin/modules/install_modules.tmpl.php
new file mode 100644 (file)
index 0000000..f5e0bc5
--- /dev/null
@@ -0,0 +1,142 @@
+
+<form name="frm_upload" enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" >
+       
+<div class="input-form">
+               <div class="row"><?php echo _AT("upload_module"); ?></div>
+
+               <div class="row">
+                       <input type="hidden" name="MAX_FILE_SIZE" value="52428800" />
+                       <input type="file" name="modulefile"  size="50" />
+               </div>
+               
+               <div class="row buttons">
+                       <input type="submit" name="install_upload" value="<?php echo _AT('install'); ?>" onclick="javascript: return validate_filename(); " class="submit" />
+                       <input type="hidden" name="uploading" value="1" />
+               </div>
+</div>
+
+</form>
+
+<?php 
+if (count($this->keys) > 0)
+{
+?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="installform">
+<table class="data" summary="" rules="cols">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('module_name'); ?></th>
+       <th scope="col"><?php echo _AT('directory_name'); ?></th>
+       <th scope="col"><?php echo _AT('description'); ?></th>
+</tr>
+</thead>
+
+<tfoot>
+<tr>
+       <td colspan="4">
+               <input type="submit" name="install_manually"  value="<?php echo _AT('install'); ?>" />
+       </td>
+</tr>
+</tfoot>
+
+<tbody>
+<?php if (!empty($this->keys)): ?>
+       <?php foreach($this->keys as $dir_name) : $module =& $this->module_list[$dir_name]; ?>
+               <tr onmousedown="document.installform['m_<?php echo $dir_name; ?>'].checked = true; rowselect(this);" id="r_<?php echo $dir_name; ?>">
+                       <td valign="top"><input type="radio" id="m_<?php echo $dir_name; ?>" name="mod" value="<?php echo $dir_name; ?>" /></td>
+                       <td valign="top"><label for="m_<?php echo $row['dir_name']; ?>"><?php echo $module->getName(); ?></label></td>
+                       <td valign="top"><code><?php echo $dir_name; ?>/</code></td>
+                       <td valign="top"><?php echo $module->getDescription($_SESSION['lang']); ?></td>
+               </tr>
+       <?php endforeach; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
+<br />
+<?php 
+}
+?>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<?php 
+?>
+<table class="data" summary="" rules="cols">
+<thead>
+       <tr>
+               <th scope="col">&nbsp;</th>
+               <th scope="col"><?php echo _AT('module_name');?></th>
+               <th scope="col"><?php echo _AT('description');?></th>
+               <th scope="col"><?php echo _AT('version');?></th>
+               <th scope="col"><?php echo _AT('atutor_version_tested_with');?></th>
+               <th scope="col"><?php echo _AT('maintainers');?></th>
+               <th scope="col"><?php echo _AT('installed').'?';?></th>
+       </tr>
+</thead>
+       
+<tfoot>
+<tr>
+       <td colspan="7">
+               <input type="submit" name="install" value="<?php echo _AT('install'); ?>" />
+               <input type="submit" name="download" value="<?php echo _AT('download'); ?>" />
+               <input type="submit" name="version_history" value="<?php echo _AT('version_history'); ?>" />
+       </td>
+</tr>
+</tfoot>
+
+<tbody>
+<?php 
+$num_of_modules = count($this->module_list_array);
+
+if ($num_of_modules == 0)
+{
+?>
+
+<tr>
+       <td colspan="7"><?php echo _AT('none_found'); ?></td>
+</tr>
+
+<?php 
+}
+else
+{
+       // display modules
+       if(is_array($this->module_list_array))
+       {
+               for ($i=0; $i < $num_of_modules; $i++)
+               {
+                       // check if the module has been installed
+                       //$sql = "SELECT * FROM ".TABLE_PREFIX."modules WHERE dir_name = '" . $this->module_list_array[$i]["history"][0]["install_folder"] . "'";
+                       //$result = mysql_query($sql, $db) or die(mysql_error());
+
+                       if (mysql_num_rows($this->result) == 0) $installed = false;
+                       else $installed = true;
+
+?>
+       <tr onmousedown="document.form['m<?php echo $i; ?>'].checked = true; rowselect(this);"  id="r_<?php echo $i; ?>">
+               <td><input type="radio" name="id" value="<?php echo $i; ?>" id="m<?php echo $i; ?>" <?php if ($installed) echo 'disabled="disabled"'; ?> /></td>
+               <td><label for="m<?php echo $i; ?>"><?php echo $this->module_list_array[$i]["name"]; ?></label></td>
+               <td><?php echo $this->module_list_array[$i]["description"]; ?></td>
+               <td><?php echo $this->module_list_array[$i]["history"][0]["version"]; ?></td>
+               <td><?php echo $this->module_list_array[$i]["atutor_version"]; ?></td>
+               <td><?php echo $this->module_list_array[$i]["history"][0]["maintainer"]; ?></td>
+               <td><?php if ($installed) echo _AT("installed"); else echo _AT("not_installed"); ?></td>
+       </tr>
+
+<?php 
+               }
+       }
+
+?>
+</tbody>
+
+<?php 
+}
+?>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/modules/version_history.tmpl.php b/docs/themes/mobile/admin/modules/version_history.tmpl.php
new file mode 100644 (file)
index 0000000..af2cc21
--- /dev/null
@@ -0,0 +1,76 @@
+<?php 
+//$this->module_list_array[$id]['history']
+?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<div class="input-form">
+<input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+<table class="data" summary="" style="width: 100%" rules="cols">
+<thead>
+       <tr>
+               <th scope="col">&nbsp;</th>
+               <th scope="col"><?php echo _AT('version');?></th>
+               <th scope="col"><?php echo _AT('publish_date');?></th>
+               <th scope="col"><?php echo _AT('state');?></th>
+               <th scope="col"><?php echo _AT('maintainers');?></th>
+               <th scope="col"><?php echo _AT('notes');?></th>
+       </tr>
+</thead>
+
+<tfoot>
+<tr>
+       <td colspan="6">
+               <input type="submit" name="download" value="<?php echo _AT('download'); ?>" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </td>
+</tr>
+</tfoot>
+
+<tbody>
+<?php 
+$num_of_versions = count($this->module_list_array[$this->id]['history']);
+
+if ($num_of_versions == 0)
+{
+?>
+
+<tr>
+       <td colspan="7">
+<?php 
+       echo _AT('none_found'); 
+?>
+       </td>
+</tr>
+
+<?php 
+}
+else
+{
+       // display version list
+       if(is_array($this->module_list_array[$this->id]['history']))
+       {
+               for ($i=0; $i < $num_of_versions; $i++)
+               {
+?>
+       <tr onmousedown="document.form['m<?php echo $i; ?>'].checked = true; rowselect(this);"  id="r_<?php echo $i; ?>">
+               <td><input type="radio" name="vid" value="<?php echo $i; ?>" id="m<?php echo $i; ?>" /></td>
+               <td><label for="m<?php echo $i; ?>"><?php echo $this->module_list_array[$this->id]["name"] . ' ' .$this->module_list_array[$this->id]['history'][$i]["version"]; ?></label></td>
+               <td><?php echo $this->module_list_array[$this->id]['history'][$i]["date"]; ?></td>
+               <td><?php echo $this->module_list_array[$this->id]['history'][$i]["state"]; ?></td>
+               <td><?php echo $this->module_list_array[$this->id]['history'][$i]["maintainer"]; ?></td>
+               <td><?php echo $this->module_list_array[$this->id]['history'][$i]["notes"]; ?></td>
+       </tr>
+
+<?php 
+               }
+       }
+
+?>
+</tbody>
+
+<?php 
+}
+?>
+</table>
+
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/my_edit.tmpl.php b/docs/themes/mobile/admin/my_edit.tmpl.php
new file mode 100644 (file)
index 0000000..829bb05
--- /dev/null
@@ -0,0 +1,18 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="input-form">
+       <div class="row">
+               <label for="real_name"><?php echo _AT('real_name'); ?></label><br />
+               <input type="text" name="real_name" id="real_name" size="40" value="<?php echo htmlspecialchars($_POST['real_name']); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />
+               <input type="text" name="email" id="email" size="40" value="<?php echo htmlspecialchars($_POST['email']); ?>" />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
diff --git a/docs/themes/mobile/admin/patcher/index_admin.tmpl.php b/docs/themes/mobile/admin/patcher/index_admin.tmpl.php
new file mode 100644 (file)
index 0000000..6ba0562
--- /dev/null
@@ -0,0 +1,116 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<div class="input-form">
+
+<table class="data" summary="" style="width: 100%" rules="cols">
+<thead>
+       <tr>
+               <th scope="col">&nbsp;</th>
+               <th scope="col"><?php echo _AT('atutor_patch_id');?></th>
+               <th scope="col"><?php echo _AT('description');?></th>
+               <th scope="col"><?php echo _AT('status');?></th>
+               <th scope="col"><?php echo _AT('available_to');?></th>
+               <th scope="col"><?php echo _AT('author');?></th>
+               <th scope="col"><?php echo _AT('installed_date');?></th>
+               <th scope="col"><?php echo _AT('view_message');?></th>
+       </tr>
+</thead>
+       
+<tbody>
+<?php 
+if ($this->num_of_patches == 0)
+{
+?>
+
+<tr>
+       <td colspan="8">
+<?php 
+       echo _AT('none_found');
+?>
+       </td>
+</tr>
+
+<?php 
+}
+else
+{
+       while ($row = mysql_fetch_assoc($this->result))
+       {
+                       print_patch_row($row, $row['patches_id'], false);
+       }
+       
+       $array_id = 0;
+       // display un-installed patches
+       if(is_array($this->patch_list_array))
+       {
+               foreach ($this->patch_list_array as $row_num => $new_patch)
+               {
+                       if (!is_patch_installed($new_patch['atutor_patch_id']))
+                       {
+                               $dependent_patches_installed = true;
+                               $dependent_patches = "";
+                               
+                               // check if the dependent patches are installed
+                               if (is_array($new_patch["dependent_patches"]))
+                               {
+                                       
+                                       foreach ($new_patch["dependent_patches"] as $num => $dependent_patch)
+                                       {
+                                               if (!is_patch_installed($dependent_patch))
+                                               {
+                                                       $dependent_patches_installed = false;
+                                                       $dependent_patches .= $dependent_patch. ", ";
+                                               }
+                                       }
+                                       
+                                       // remove the last comma in the string
+                                       if ($dependent_patches <> "") $dependent_patches = substr($dependent_patches, 0, -2);
+                               }
+       
+                               // display patch row
+                               if ($dependent_patches_installed)
+                                       print_patch_row($new_patch, $array_id++, true);
+                               else
+                               {
+                                       print_patch_row($new_patch, $array_id++, false);
+                                       $dependent_patches_installed = true;
+                               }
+                       }
+                       else
+                               $array_id++;
+               }
+       }
+?>
+</tbody>
+<tfoot>
+<tr>
+       <td colspan="8">
+               <input type="submit" name="install" value="<?php echo _AT('install'); ?>" />
+       </td>
+</tr>
+</tfoot>
+
+<?php 
+}
+?>
+</table>
+
+</div>
+</form>
+
+<form name="frm_upload" enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" >
+       
+<div class="input-form">
+               <div class="row"><?php echo _AT("upload_patch"); ?></div>
+
+               <div class="row">
+                       <input type="hidden" name="MAX_FILE_SIZE" value="52428800" />
+                       <input type="file" name="patchfile"  size="50" />
+               </div>
+               
+               <div class="row buttons">
+                       <input type="submit" name="install_upload" value="Install" onclick="javascript: return validate_filename(); " class="submit" />
+                       <input type="hidden" name="uploading" value="1" />
+               </div>
+</div>
+
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/system_preferences/add_feed.tmpl.php b/docs/themes/mobile/admin/system_preferences/add_feed.tmpl.php
new file mode 100644 (file)
index 0000000..5ce873a
--- /dev/null
@@ -0,0 +1,51 @@
+<?php
+global $stripslashes;
+
+if (!isset($_POST['confirm'])) {
+?>
+       <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+               <input type="hidden" name="confirm" value="1" />
+
+               <div class="input-form" style="width: 95%x">
+                       <div class="row">
+                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+                               <input id="title" name="title" type="text" size="40" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_POST['title'])); ?>" /><br />
+                       </div>
+
+                       <div class="row">
+                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="url"><?php echo _AT('url'); ?></label><br />
+                               <input id="url" name="url" type="text" size="40" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_POST['url'])); ?>" /><br />
+                       </div>
+
+                       <div class="row buttons">
+                               <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" />
+                               <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
+                       </div>
+               </div>
+       </form>
+<?php 
+} else { ?>
+
+       <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <input type="hidden" name="new" value="<?php echo $_POST['new']; ?>" />
+
+       <div class="input-form">
+               <div class="row">
+                       <h3><?php if (file_exists($this->title_file)) { 
+                                       readfile($this->title_file); 
+                               } else {
+                                       echo $_POST['title'];
+                               }?>
+                       </h3>
+               </div>
+
+               <div class="row">
+                       <?php echo $this->output; ?>
+               </div>
+       </div>
+       </form>
+
+       <?php
+               $this->msg->printConfirm();
+}
+?>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/system_preferences/config_edit.tmpl.php b/docs/themes/mobile/admin/system_preferences/config_edit.tmpl.php
new file mode 100644 (file)
index 0000000..e0febae
--- /dev/null
@@ -0,0 +1,322 @@
+<?php global $_config, $languageManager, $_config_defaults, $stripslashes;?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<div class="input-form">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="sitename"><?php echo _AT('site_name'); ?></label><br />
+               <input type="text" name="site_name" size="40" maxlength="60" id="sitename" value="<?php if (!empty($_POST['site_name'])) { echo $stripslashes(htmlspecialchars($_POST['site_name'])); } else { echo $_config['site_name']; } ?>" />
+       </div>
+
+       <div class="row">
+               <label for="home_url"><?php echo _AT('home_url'); ?></label><br />
+
+               <input type="text" name="home_url" size="50" maxlength="60" id="home_url" value="<?php if (!empty($_POST['home_url'])) { echo $stripslashes(htmlspecialchars($_POST['home_url'])); } else { echo $_config['home_url']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="default_lang"><?php echo _AT('default_language'); ?></label><br />
+
+               <?php if (!empty($_POST['default_language'])) { 
+                               $select_lang = $_POST['default_language']; 
+                       } else { 
+                               $select_lang = $_config['default_language'];
+                       } ?>
+               <?php if ($disabled): ?>
+                       <select name="default_language" id="default_lang" disabled="disabled"><option><?php echo $select_lang; ?></option></select>
+               <?php else: ?>
+                       <?php $languageManager->printDropdown($select_lang, 'default_language', 'default_lang'); ?>
+               <?php endif; ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="cemail"><?php echo _AT('contact_email'); ?></label><br />
+               <input type="text" name="contact_email" id="cemail" size="40" value="<?php if (!empty($_POST['email'])) { echo $stripslashes(htmlspecialchars($_POST['email'])); } else { echo $_config['contact_email']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="time_zone"><?php echo _AT('time_zone'); ?></label><br />
+
+               <?php
+
+
+               // Replace this hack to use the PHP timezone functions when the PHP requirement is raised to 5.3
+               global $utc_timezones; // set in include/lib/constants.inc.php
+               $local_offset = ((date(Z)/3600));
+               echo '<select name="time_zone" id="time_zone">';        
+                       echo '<option value="0">'._AT('none').'</option>';
+               foreach ($utc_timezones as $zone => $offset){
+                       if(($offset[1]) == $_config['time_zone']){
+                       echo '<option value="'.($offset[1]).'" selected="selected">'.$offset[1].'</option>';
+                       }else{
+                       echo '<option value="'.($offset[1]).'">'.$offset[1].'</option>';
+
+                       }
+               }
+               echo "</select>";
+
+
+               //echo '<input type="text" name="time_zone" value="'.$_config['time_zone'].'" size="5" maxlength="5"/> ';
+
+               // If PHP 5+ generate a list of timezones
+/*
+               if(phpversion() >= 5){
+                       $timezone_names = timezone_identifiers_list();
+               }else{
+               // if less than PHP version 5, read a text file to generate the menu
+                       $timezone_names = file("timezones.txt");
+               }
+
+               echo '<select name="time_zone">';
+               foreach($timezone_names as $timezone_name){
+                       if($timezone_name == $_config{'time_zone'}){
+                               $selected = ' selected="selected"';
+                       }
+                       echo '<option'.$selected.'>'.$timezone_name.'</option>';
+                       $selected = '';
+               }
+               echo '</select>';
+*/
+echo AT_date(_AT('server_date_format'), '', AT_DATE_MYSQL_DATETIME);
+?>
+       </div>
+
+       <div class="row">
+               <label for="maxfile"><?php echo _AT('maximum_file_size'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_file_size']; ?>)<br />
+               <input type="text" size="10" name="max_file_size" id="maxfile" value="<?php if (!empty($_POST['max_file_size'])) { echo $stripslashes(htmlspecialchars($_POST['max_file_size'])); } else { echo $_config['max_file_size']; } ?>"  /> <?php echo _AT('bytes'); ?>
+       </div>
+
+       <div class="row">
+               <label for="maxcourse"><?php echo _AT('maximum_course_size'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_course_size']; ?>)<br />
+               <input type="text" size="10" name="max_course_size" id="maxcourse" value="<?php if (!empty($_POST['max_course_size'])) { echo $stripslashes(htmlspecialchars($_POST['max_course_size'])); } else { echo $_config['max_course_size']; } ?>"  /> <?php echo _AT('bytes'); ?>
+       </div>
+
+       <div class="row">
+               <label for="float"><?php echo _AT('maximum_course_float'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_course_float']; ?>)<br />
+               <input type="text" size="10" name="max_course_float" id="float" value="<?php if (!empty($_POST['max_course_float'])) { echo $stripslashes(htmlspecialchars($_POST['max_course_float'])); } else { echo $_config['max_course_float']; } ?>"  /> <?php echo _AT('bytes'); ?>
+       </div>
+
+       <div class="row">
+               <label for="maximum_login_attempt"><?php echo _AT('maximum_login_attempt'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_login']; ?>)<br />
+               <input type="text" size="10" name="max_login" id="maximum_login_attempt" value="<?php if (!empty($_POST['max_login'])) { echo $stripslashes(htmlspecialchars($_POST['max_login'])); } else { echo $_config['max_login']; } ?>"  /> <?php echo _AT('times'); ?>
+       </div>
+       
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('display_name_format'); ?> </legend>
+               (<?php echo _AT('default'); ?>: <?php echo _AT($this->display_name_formats[$_config_defaults['display_name_format']], _AT('login_name'), _AT('first_name'), _AT('second_name'), _AT('last_name')); ?>)<br />
+               <?php foreach ($this->display_name_formats as $key => $value): ?>
+                       <input type="radio" name="display_name_format" value="<?php echo $key; ?>" id="dnf<?php echo $key; ?>" <?php if ($_config['display_name_format'] == $key) { echo 'checked="checked"'; }?> /><label for="dnf<?php echo $key; ?>"><?php echo _AT($value, _AT('login_name'), _AT('first_name'), _AT('second_name'), _AT('last_name')); ?></label><br />
+               <?php endforeach; ?>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('master_list_authentication'); ?></legend>
+                (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['master_list'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="master_list" value="1" id="ml_y" <?php if ($_config['master_list']) { echo 'checked="checked"'; }?>  /><label for="ml_y"><?php echo _AT('enable'); ?></label> 
+
+               <input type="radio" name="master_list" value="0" id="ml_n" <?php if(!$_config['master_list']) { echo 'checked="checked"'; }?>  /><label for="ml_n"><?php echo  _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+       
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('allow_registration'); ?></legend> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_registration'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_registration" value="1" id="reg_y" <?php if($_config['allow_registration']) { echo 'checked="checked"'; }?>  /><label for="reg_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_registration" value="0" id="reg_n" <?php if(!$_config['allow_registration']) { echo 'checked="checked"'; }?>  /><label for="reg_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+       
+       <div class="row">
+       <fieldset><legend>      <?php echo _AT('allow_browse'); ?> </legend>
+       (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_browse'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_browse" value="1" id="browse_y" <?php if($_config['allow_browse']) { echo 'checked="checked"'; }?>  /><label for="browse_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_browse" value="0" id="browse_n" <?php if(!$_config['allow_browse']) { echo 'checked="checked"'; }?>  /><label for="browse_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('allow_instructor_registration'); ?> </legend>
+       (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_instructor_registration'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_instructor_registration" value="1" id="enrollreg_y" <?php if($_config['allow_instructor_registration']) { echo 'checked="checked"'; }?>  /><label for="enrollreg_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_instructor_registration" value="0" id="enrollreg_n" <?php if(!$_config['allow_instructor_registration']) { echo 'checked="checked"'; }?>  /><label for="enrollreg_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+       
+       <div class="row">               
+       <fieldset><legend><?php echo _AT('use_captcha'); ?> </legend>(<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['use_captcha'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <?php if (extension_loaded('gd')): ?>
+               <input type="radio" name="use_captcha" value="1" id="use_captcha_y" <?php if($_config['use_captcha']) { echo 'checked="checked"'; }?>  /><label for="use_captcha_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="use_captcha" value="0" id="use_captcha_n" <?php if(!$_config['use_captcha']) { echo 'checked="checked"'; }?>  /><label for="use_captcha_n"><?php echo _AT('disable'); ?></label>
+               <?php else: ?>
+               <input type="radio" name="use_captcha" value="1" id="use_captcha_y" disabled="disabled" /><label for="use_captcha_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="use_captcha" value="0" id="use_captcha_n" checked="checked" /><label for="use_captcha_n"><?php echo _AT('disable'); ?></label>
+               <?php endif; ?>
+               </fieldset>
+       </div>
+       
+       <div class="row">
+       <fieldset><legend><?php echo _AT('allow_unenroll'); ?></legend>
+                (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_unenroll'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_unenroll" value="1" id="ene_y" <?php if($_config['allow_unenroll']) { echo 'checked="checked"'; }?>  /><label for="ene_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_unenroll" value="0" id="ene_n" <?php if(!$_config['allow_unenroll']) { echo 'checked="checked"'; }?>  /><label for="ene_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('require_email_confirmation'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['email_confirmation'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="email_confirmation" value="1" id="ec_y" <?php if ($_config['email_confirmation']) { echo 'checked="checked"'; }?>  /><label for="ec_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="email_confirmation" value="0" id="ec_n" <?php if(!$_config['email_confirmation']) { echo 'checked="checked"'; }?>  /><label for="ec_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+               
+       <div class="row">
+       <fieldset><legend><?php echo _AT('allow_instructor_requests'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_instructor_requests'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_instructor_requests" value="1" id="air_y" <?php if($_config['allow_instructor_requests']) { echo 'checked="checked"'; }?>  /><label for="air_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_instructor_requests" value="0" id="air_n" <?php if(!$_config['allow_instructor_requests']) { echo 'checked="checked"'; }?>  /><label for="air_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('instructor_request_email_notification'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['email_notification'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="email_notification" value="1" id="en_y" <?php if ($_config['email_notification']) { echo 'checked="checked"'; }?>  /><label for="en_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="email_notification" value="0" id="en_n" <?php if(!$_config['email_notification']) { echo 'checked="checked"'; }?>  /><label for="en_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('auto_approve_instructors'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['auto_approve_instructors'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="auto_approve_instructors" value="1" id="aai_y" <?php if($_config['auto_approve_instructors']) { echo 'checked="checked"'; }?>  /><label for="aai_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="auto_approve_instructors" value="0" id="aai_n" <?php if(!$_config['auto_approve_instructors']) { echo 'checked="checked"'; }?>  /><label for="aai_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('theme_specific_categories'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['theme_categories'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="theme_categories" value="1" id="tc_y" <?php if($_config['theme_categories']) { echo 'checked="checked"'; }?>  /><label for="tc_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="theme_categories" value="0" id="tc_n" <?php if(!$_config['theme_categories']) { echo 'checked="checked"'; }?>  /><label for="tc_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('user_contributed_notes'); ?> </legend>
+       (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['user_notes'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="user_notes" value="1" id="un_y" <?php if($_config['user_notes']) { echo 'checked="checked"'; }?>  /><label for="un_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="user_notes" value="0" id="un_n" <?php if(!$_config['user_notes']) { echo 'checked="checked"'; }?>  /><label for="un_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+               <label for="ext"><?php echo _AT('illegal_file_extensions'); ?></label><br />
+               <textarea name="illegal_extentions" cols="24" id="ext" rows="2" class="formfield" ><?php if ($_config['illegal_extentions']) { echo str_replace('|',' ',$_config['illegal_extentions']); }?></textarea>
+       </div>
+
+       <div class="row">
+               <label for="cache"><?php echo _AT('cache_directory'); ?></label><br />
+               <input type="text" name="cache_dir" id="cache" size="40" value="<?php if (!empty($_POST['cache_dir'])) { echo $stripslashes(htmlspecialchars($_POST['cache_dir'])); } else { echo $_config['cache_dir']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="latex_server"><?php echo _AT('latex_server'); ?></label><br />
+               <input type="text" name="latex_server" id="latex_server" size="40" value="<?php if (!empty($_POST['latex_server'])) { echo $stripslashes(htmlspecialchars($_POST['latex_server'])); } else { echo $_config['latex_server']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="course_backups"><?php echo _AT('course_backups'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['course_backups']; ?>)<br />
+               <input type="text" size="2" name="course_backups" id="course_backups" value="<?php if (!empty($_POST['course_backups'])) { echo $stripslashes(htmlspecialchars($_POST['course_backups'])); } else { echo $_config['course_backups']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="sent_msgs_ttl"><?php echo _AT('sent_msgs_ttl_text'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['sent_msgs_ttl']; ?>)<br />
+               <input type="text" size="3" name="sent_msgs_ttl" id="sent_msgs_ttl" value="<?php if (!empty($_POST['sent_msgs_ttl'])) { echo intval($_POST['sent_msgs_ttl']); } else { echo $_config['sent_msgs_ttl']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <fieldset>
+               <legend><?php echo _AT('auto_check_new_version'); ?></legend>
+                (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['check_version'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="check_version" value="1" id="cv_y" <?php if($_config['check_version']) { echo 'checked="checked"'; }?>  /><label for="cv_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="check_version" value="0" id="cv_n" <?php if(!$_config['check_version']) { echo 'checked="checked"'; }?>  /><label for="cv_n"><?php echo _AT('disable'); ?></label>
+               </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('file_storage_version_control'); ?> </legend>
+       (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['fs_versioning'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="fs_versioning" value="1" id="cf_y" <?php if($_config['fs_versioning']) { echo 'checked="checked"'; }?>  /><label for="cf_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="fs_versioning" value="0" id="cf_n" <?php if(!$_config['fs_versioning']) { echo 'checked="checked"'; }?>  /><label for="cf_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <input type="hidden" name="old_enable_mail_queue" value="<?php echo $_config['enable_mail_queue']; ?>" />
+               <legend><?php echo _AT('enable_mail_queue'); ?></legend>
+                (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['enable_mail_queue'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <?php echo _AT('mail_queue_cron'); ?><br />
+               <?php if (!$_config['last_cron'] || (time() - (int) $_config['last_cron'] > 2 * 60 * 60)): ?>
+                       
+                       <input type="radio" name="enable_mail_queue" id="mq_y" value="1" disabled="disabled" /><?php echo _AT('enable'); ?> 
+                       <label for="mq_y"><?php echo _AT('enable'); ?></label> 
+                       <input type="radio" name="enable_mail_queue" value="0" id="mq_n" checked="checked" />
+                       <label for="mq_n"><?php echo _AT('disable'); ?></label>
+               <?php else: ?>
+       
+                       <input type="radio" name="enable_mail_queue" value="1" id="mq_y" <?php if($_config['enable_mail_queue']) { echo 'checked="checked"'; }?>  />
+                       <label for="mq_y"><?php echo _AT('enable'); ?></label> 
+                       <input type="radio" name="enable_mail_queue" value="0" id="mq_n" <?php if(!$_config['enable_mail_queue']) { echo 'checked="checked"'; }?>  />
+                       <label for="mq_n"><?php echo _AT('disable'); ?></label>
+               <?php endif; ?>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('auto_install_languages'); ?> </legend>
+               (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['auto_install_languages'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <?php echo _AT('auto_install_languages_cron'); ?><br />
+               <?php if (!$_config['last_cron'] || (time() - (int) $_config['last_cron'] > 2 * 60 * 60)): ?>
+                       <input type="radio" name="auto_install_languages" id="ai_y" value="1" disabled="disabled" />
+                       <label for="ai_y"><?php echo _AT('enable'); ?> </label>
+                       <input type="radio" name="auto_install_languages" value="0" id="ai_n" checked="checked" />
+                       <label for="ai_n"><?php echo _AT('disable'); ?></label>
+               <?php else: ?>
+                       <input type="radio" name="auto_install_languages" value="1" id="ai_y" <?php if($_config['auto_install_languages']) { echo 'checked="checked"'; }?>  /><label for="ai_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="auto_install_languages" value="0" id="ai_n" <?php if(!$_config['auto_install_languages']) { echo 'checked="checked"'; }?>  /><label for="ai_n"><?php echo _AT('disable'); ?></label>
+               <?php endif; ?>
+               </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('pretty_url'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['pretty_url'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="pretty_url" value="1" id="pu_y" <?php if($_config['pretty_url']) { echo 'checked="checked"'; }?> onclick="apache_mod_rewrite_toggler(true);"/><label for="pu_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="pretty_url" value="0" id="pu_n" <?php if(!$_config['pretty_url']) { echo 'checked="checked"'; }?> onclick="apache_mod_rewrite_toggler(false);"/><label for="pu_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('course_dir_name'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['course_dir_name'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="course_dir_name" value="1" id="cdn_y" <?php if($_config['course_dir_name']) { echo 'checked="checked"'; }?> /><label for="cdn_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="course_dir_name" value="0" id="cdn_n" <?php if(!$_config['course_dir_name']) { echo 'checked="checked"'; }?>  /><label for="cdn_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('apache_mod_rewrite'); ?></legend>
+               <?php if (function_exists('apache_get_modules') && in_array('mod_rewrite', apache_get_modules())): ?>
+                       <?php echo _AT('mod_rewrite'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['apache_mod_rewrite'] ? _AT('enable') : _AT('disable')); ?>)<br />
+                       <input type="radio" name="apache_mod_rewrite" value="1" id="mr_y" <?php if($_config['apache_mod_rewrite']) { echo 'checked="checked"'; }?> /><label for="mr_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="apache_mod_rewrite" value="0" id="mr_n" <?php if(!$_config['apache_mod_rewrite']) { echo 'checked="checked"'; }?>  /><label for="mr_n"><?php echo _AT('disable'); ?></label>
+               <?php else: ?>
+                       <?php echo _AT('mod_rewrite'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['apache_mod_rewrite'] ? _AT('enable') : _AT('disable')); ?>)<br />
+                       <input type="radio" name="apache_mod_rewrite" value="1" id="mr_y" disabled="disabled" /><label for="mr_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="apache_mod_rewrite" value="0" id="mr_n" checked="checked" /><label for="mr_n"><?php echo _AT('disable'); ?></label>
+               <?php endif; ?>
+       </fieldset>
+       </div>
+
+       <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s"  />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/system_preferences/cron_config.tmpl.php b/docs/themes/mobile/admin/system_preferences/cron_config.tmpl.php
new file mode 100644 (file)
index 0000000..827c3c1
--- /dev/null
@@ -0,0 +1,12 @@
+<?php global $_config; ?>
+<div class="input-form">
+       <div class="row">
+               <p><?php echo _AT('cron_url_usage'); ?></p>
+       <p>
+               <?php echo _AT('cron_url'); ?><br />
+               <code><wbr><?php echo AT_BASE_HREF; ?>admin/cron.php?k=<?php echo $_config['cron_key']; ?></wbr></code>
+       </p>
+       </div>
+       
+       
+</div>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/system_preferences/edit_feed.tmpl.php b/docs/themes/mobile/admin/system_preferences/edit_feed.tmpl.php
new file mode 100644 (file)
index 0000000..f17f299
--- /dev/null
@@ -0,0 +1,20 @@
+<?php global $stripslashes;?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
+       <input type="hidden" name="fid" value="<?php echo $this->feed_id; ?>" />
+       <div class="input-form" style="width:95%">
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+                       <input id="title" name="title" type="text" size="40" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_GET['title'])); ?>" /><br />
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="url"><?php echo _AT('url'); ?></label><br />
+                       <input id="url" name="url" type="text" size="40" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_GET['url'])); ?>" /><br />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" />
+                       <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
+               </div>
+       </div>
+</form>
diff --git a/docs/themes/mobile/admin/system_preferences/index.tmpl.php b/docs/themes/mobile/admin/system_preferences/index.tmpl.php
new file mode 100644 (file)
index 0000000..b5f1638
--- /dev/null
@@ -0,0 +1,45 @@
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
+<div class="table-surround">
+<table class="data" summary="Title and URL of News Feeds">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('title'); ?></th>
+       <th scope="col"><?php echo _AT('url'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="3">
+               <input type="submit" name="preview" value="<?php echo _AT('preview'); ?>" />
+               <input type="submit" name="edit"    value="<?php echo _AT('edit'); ?>" />
+               <input type="submit" name="delete"  value="<?php echo _AT('delete'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php 
+
+
+if (!($row = mysql_fetch_assoc($this->result))) { 
+?>
+
+       <tr>
+               <td colspan="3"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php } else { ?>
+       <?php do { 
+               $title_file = AT_CONTENT_DIR.'feeds/'.$row['feed_id'].'_rss_title.cache'; ?>
+               <tr onkeydown="document.form['f_<?php echo $row['feed_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['f_<?php echo $row['feed_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['feed_id']; ?>">
+                       <td valign="top"><input type="radio" id="f_<?php echo $row['feed_id']; ?>" name="fid" value="<?php echo $row['feed_id']; ?>" /></td>
+                       <td><label for="f_<?php echo $row['feed_id']; ?>"><?php if (file_exists($title_file)) { readfile($title_file); } ?></label></td>
+                       <td><?php echo $row['url']; ?></td>
+               </tr>
+       <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+
+<?php } ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/system_preferences/index_admin.tmpl.php b/docs/themes/mobile/admin/system_preferences/index_admin.tmpl.php
new file mode 100644 (file)
index 0000000..1ce8248
--- /dev/null
@@ -0,0 +1,15 @@
+<?php global $_config; ?>
+
+<div style="width:95%;margin-left:auto;margin-right:auto;">
+       <div class="headingbox"><h3><?php echo _AT('admin_social'); ?></h3></div>
+       <div class="contentbox">
+       <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
+               <p><?php echo _AT('shindig_blurb'); ?></p>
+
+                               <label for="shindig"><?php echo _AT('shindig_url'); ?></label>
+                               <input type="text" id="shindig" name="shindig_url" size="40" value="<?php echo $_config['shindig_url']; ?>" />
+
+               <input type="submit" name="save" value="<?php echo _AT('save'); ?>" />
+       </form>
+       </div>
+</div>
diff --git a/docs/themes/mobile/admin/system_preferences/language.tmpl.php b/docs/themes/mobile/admin/system_preferences/language.tmpl.php
new file mode 100644 (file)
index 0000000..d4bb833
--- /dev/null
@@ -0,0 +1,48 @@
+<?php global $languageManager;?>
+<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table summary="ATutor langauge names in English and translated" class="data">
+<colgroup>
+       <col />
+       <col class="sort" />
+       <col span="3" />
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('name_in_language'); ?></th>
+       <th scope="col"><?php echo _AT('name_in_english'); ?></th>
+       <!-- REMOVED FOR MOBILE <th scope="col"><?php //echo _AT('lang_code'); ?></th> -->
+       <!--  <th scope="col"><?php echo _AT('charset'); ?></th> -->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="5">
+               <?php if (defined('AT_DEVEL_TRANSLATE') && AT_DEVEL_TRANSLATE): ?>
+                       <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />  
+                       <input type="submit" name="export" value="<?php echo _AT('export'); ?>"  /> 
+                       <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /> 
+                       <?php echo _AT('or'); ?> <a href="mods/_core/languages/language_add.php"><?php echo _AT('add_a_new_language'); ?></a>
+               <?php else: ?>
+                       <input type="submit" name="export" value="<?php echo _AT('export'); ?>" /> 
+                       <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
+               <?php endif; ?>
+       </td>
+</tr>
+</tfoot>
+<tbody>
+       <?php foreach ($languageManager->getAvailableLanguages() as $codes): ?>
+               <?php $language = current($codes); ?>
+               <tr onmousedown="document.form['m<?php echo $language->getCode(); ?>'].checked = true; rowselect(this);" id="r_<?php echo $language->getCode(); ?>">
+                       <td><input type="radio" name="id" value="<?php echo $language->getCode(); ?>" id="m<?php echo $language->getCode(); ?>" /></td>
+                       <td><label for="m<?php echo $language->getCode(); ?>"><?php echo $language->getNativeName(); ?></label></td>
+                       <td><?php echo $language->getEnglishName(); ?></td>
+               <!-- REMOVED FOR MOBILE         <td><?php //echo strtolower($language->getCode()); ?></td>-->
+               <!--    <td><?php //echo strtolower($language->getCharacterSet()); ?></td> -->
+               </tr>
+       <?php endforeach; ?>
+</tbody>
+</table>
+</div>
+</form>
diff --git a/docs/themes/mobile/admin/system_preferences/language_add.tmpl.php b/docs/themes/mobile/admin/system_preferences/language_add.tmpl.php
new file mode 100644 (file)
index 0000000..3d058e1
--- /dev/null
@@ -0,0 +1,53 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="import" value="1" />
+<div class="input-form" style="width:95%">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="code"><?php echo _AT('lang_code'); ?></label><br />
+               <input id="code" name="code" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['code']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="locale"><?php echo _AT('locale'); ?></label><br />
+               <input id="locale" name="locale" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['locale']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="charset"><?php echo _AT('charset'); ?></label><br />
+               <input id="charset" name="charset" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['charset']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="ltr"><?php echo _AT('direction'); ?></label><br />
+               <?php 
+                       if ($_POST['direction'] == 'rtl') { 
+                               $rtl = 'checked="checked"';  
+                               $ltr='';  
+                       } else { 
+                               $rtl = '';  
+                               $ltr='checked="checked"'; 
+                       }
+               ?>
+               <input id="ltr" name="direction" type="radio" value="ltr" <?php echo $ltr; ?> /><label for="ltr"><?php echo _AT('ltr'); ?></label>, <input id="rtl" name="direction" type="radio" value="rtl" <?php echo $rtl; ?> /><label for="rtl"><?php echo _AT('rtl'); ?></label>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="reg_exp"><?php echo _AT('reg_exp'); ?></label><br />
+               <input id="reg_exp" name="reg_exp" type="text" size="31" class="formfield" value="<?php echo $_POST['reg_exp']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="nname"><?php echo _AT('name_in_language'); ?></label><br />
+               <input id="nname" name="native_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['native_name']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ename"><?php echo _AT('name_in_english'); ?></label><br />
+               <input id="ename" name="english_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['english_name'];?>" />
+       </div>
+
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" /> <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />           
+       </div>
+</div>
+</form>
diff --git a/docs/themes/mobile/admin/system_preferences/language_edit.tmpl.php b/docs/themes/mobile/admin/system_preferences/language_edit.tmpl.php
new file mode 100644 (file)
index 0000000..db8725d
--- /dev/null
@@ -0,0 +1,56 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF'] . '?lang_code=' . $_GET['lang_code']; ?>">
+
+<input type="hidden" name="old_code" value="<?php echo $this->lang->getCode(); ?>" />
+
+<div class="input-form" style="width:95%">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="code"><?php echo _AT('lang_code'); ?></label><br />
+               <input id="code" name="code" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['code']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="locale"><?php echo _AT('locale'); ?></label><br />
+               <input id="locale" name="locale" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['locale']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="charset"><?php echo _AT('charset'); ?></label><br />
+               <input id="charset" name="charset" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['charset']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="ltr"><?php echo _AT('direction'); ?></label><br />
+               <?php 
+                       if ($_POST['direction'] == 'rtl') { 
+                               $rtl = 'checked="checked"';  
+                               $ltr='';  
+                       } else { 
+                               $rtl = '';  
+                               $ltr='checked="checked"'; 
+                       }
+               ?>
+               <input id="ltr" name="direction" type="radio" value="ltr" <?php echo $ltr; ?> /><label for="ltr"><?php echo _AT('ltr'); ?></label>, <input id="rtl" name="direction" type="radio" value="rtl" <?php echo $rtl; ?> /><label for="rtl"><?php echo _AT('rtl'); ?></label>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="reg_exp"><?php echo _AT('reg_exp'); ?></label><br />
+               <input id="reg_exp" name="reg_exp" type="text" size="31" class="formfield" value="<?php echo $_POST['reg_exp']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="nname"><?php echo _AT('name_in_language'); ?></label><br />
+               <input id="nname" name="native_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['native_name']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ename"><?php echo _AT('name_in_english'); ?></label><br />
+               <input id="ename" name="english_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['english_name'];?>" />
+       </div>
+
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" /> <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />           
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/system_preferences/language_editor.tmpl.php b/docs/themes/mobile/admin/system_preferences/language_editor.tmpl.php
new file mode 100644 (file)
index 0000000..bf01427
--- /dev/null
@@ -0,0 +1,60 @@
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               <div class="row">
+                       <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+               </div>
+
+               <div class="row">
+                       <?php echo _AT('type'); ?><br />
+                       <input type="radio" name="type" value="template" id="tyte" <?php if ($_GET['type'] == 'template') { echo 'checked="checked"'; } ?> /><label for="tyte"><?php echo _AT('template'); ?></label>
+                       <input type="radio" name="type" value="feedback" id="tyfe" <?php if ($_GET['type'] == 'feedback') { echo 'checked="checked"'; } ?> /><label for="tyfe"><?php echo _AT('feedback'); ?></label>
+               </div>
+
+               <div class="row">
+                       <input type="checkbox" name="custom" value="1" id="cus" <?php if (isset($_GET['custom'])) { echo 'checked="checked"'; } ?> /><label for="cus"><?php echo _AT('only_show_edited_terms'); ?></label>
+               </div>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?></label><br />
+                       <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+</form>
+<form name="form" method="post">
+<div class="input-form">
+       <table cellspacing="0" cellpadding="0">
+       <tr>
+       <td valign="top">
+               <?php if ($this->num_results): ?>
+                       <select size="<?php echo min(max($this->num_results,2), 25); ?>" name="terms" id="terms" onchange="javascript:showtext(this);">
+                               <?php
+                                       while ($row = mysql_fetch_assoc($result)): 
+                                               if ($strlen($row['text']) > 30) {
+                                                       $row['text'] = $substr($row['text'], 0, 28) . '...';
+                                               }
+                                       ?>
+                                               <option value="<?php echo $row['term']; ?>"><?php echo htmlspecialchars($row['text']); ?></option>
+                                       <?php endwhile; ?>
+                       </select>
+               <?php else: ?>
+                       <p><?php echo _AT('none_found'); ?></p>
+               <?php endif; ?>
+       </td>
+
+       <td valign="top">
+               <div class="row">
+                       <iframe src="mods/_core/languages/language_term.php" frameborder="0" height="430" width="450" marginheight="0" marginwidth="0" name="tran" id="tran"></iframe>
+               </div>
+       </td>
+       </tr>
+       </table>
+</div>
+</form>
+
+                       
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/system_preferences/language_import.tmpl.php b/docs/themes/mobile/admin/system_preferences/language_import.tmpl.php
new file mode 100644 (file)
index 0000000..16572e9
--- /dev/null
@@ -0,0 +1,53 @@
+<?php global $languageManager;?>
+<form name="form1" method="post" action="mods/_core/languages/language_import.php" enctype="multipart/form-data" onsubmit="openWindow('<?php echo AT_BASE_HREF; ?>tools/prog.php');">
+<div class="input-form">
+       <div class="row">
+               <p><?php echo _AT('import_lang_howto'); ?></p>
+       </div>
+       
+       <div class="row">
+               <label for="file"><?php echo _AT('import_a_new_lang'); ?></label><br />
+               <input type="file" name="file" id="file" />
+       </div>
+       
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('import'); ?>" />
+       </div>
+</div>
+</form>
+<form name="form1" method="post" action="mods/_core/languages/language_import.php">
+<div class="input-form">
+       <div class="row">
+               <?php echo _AT('import_remote_language'); ?>
+       </div>
+
+       <div class="row">
+               <?php
+                       
+                       $remoteLanguageManager = new RemoteLanguageManager();
+                       if ($remoteLanguageManager->getNumLanguages()) {
+                               $found = false;
+                               foreach ($remoteLanguageManager->getAvailableLanguages() as $codes){
+                                       $language = current($codes);
+                                       if (!$languageManager->exists($language->getCode()) && ($language->getStatus() == AT_LANG_STATUS_PUBLISHED)) {
+                                               if (!$found) {
+                                                       echo '<select name="language" title="language">';
+                                                       $found = true;
+                                               }
+                                               echo '<option value="'.$language->getCode().'">'.$language->getEnglishName().' - '.$language->getNativeName().'</option>';
+                                       }
+                               }
+                               if ($found) {
+                                       echo '</select></div>';
+                                       echo '<div class="row buttons"><input type="submit" name="submit_import" value="' . _AT('import') . '" class="button" /></div>';
+                               } else {
+                                       echo _AT('none_found');
+                                       echo '</div>';
+                               }
+                       } else {
+                               echo _AT('cannot_find_remote_languages');
+                               echo '</div>';
+                       }
+               ?>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/system_preferences/language_translate.tmpl.php b/docs/themes/mobile/admin/system_preferences/language_translate.tmpl.php
new file mode 100644 (file)
index 0000000..1cb9869
--- /dev/null
@@ -0,0 +1,37 @@
+<?php debug($_REQUEST); ?>
+<form method="get">
+<div class="input-form">
+       <div class="row">
+               <h3><?php echo _AT('translate'); ?></h3>
+       </div>
+
+       <div class="row">
+               <p><?php echo _AT('translate_lang_howto'); ?></p>
+       </div>
+
+       <div class="row buttons">
+               <input type="button" onclick="javascript:window.open('<?php echo AT_BASE_HREF; ?>mods/_core/languages/translate_atutor.php', 'newWin1', 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=1, copyhistory=0, width=640, height=480')" value="<?php echo _AT('translate'); ?>" <?php echo $this->button_state; ?> />
+       </div>
+</div>
+</form>
+
+<?php if (defined('AT_DEVEL_TRANSLATE') && AT_DEVEL_TRANSLATE): ?>
+       <form name="form1" method="post" action="mods/_core/languages/language_translate.php">
+               <div class="input-form">
+                       <div class="row">
+                               Import partial language from the <strong>live ATutor language database</strong> to your local installation for translating.
+                       </div>
+                       <div class="row">
+                               <?php
+                                       require_once(AT_INCLUDE_PATH.'../mods/_core/languages/classes/RemoteLanguageManager.class.php');
+                                       $remoteLanguageManager = new RemoteLanguageManager();
+                                       $remoteLanguageManager->printDropdown($_SESSION['lang'], 'import_lang', 'import_lang');
+                               ?>
+                       </div>
+
+                       <div class="row buttons">
+                               <input type="submit" name="svn_submit" value="<?php echo _AT('import'); ?>" />
+                       </div>
+               </div>
+       </form>
+<?php endif; ?>
diff --git a/docs/themes/mobile/admin/system_preferences/module_prefs.tmpl.php b/docs/themes/mobile/admin/system_preferences/module_prefs.tmpl.php
new file mode 100644 (file)
index 0000000..5785865
--- /dev/null
@@ -0,0 +1,36 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
+       <div class="input-form" style="max-width: 95%">
+               <div class="row">
+                       <fieldset>
+                       <legend><?php echo _AT("google_search_type_txt"); ?></legend>
+                       <?php
+                               if ($this->googleType==GOOGLE_TYPE_SOAP){
+                                       $type1=' checked="checked"'; 
+                               } elseif ($this->googleType==GOOGLE_TYPE_AJAX){
+                                       $type2=' checked="checked"'; 
+                               }
+                       ?>
+               
+                       <input type="radio" name="gtype" id="googleTypeSoap" value="<?php echo GOOGLE_TYPE_SOAP?>" <?php echo $type1 ?>/>
+                       <label for="googleTypeSoap"><?php echo _AT("google_search_soap"); ?></label><br/>
+
+                       <input type="radio" name="gtype" id="googleTypeAjax" value="<?php echo GOOGLE_TYPE_AJAX?>" <?php echo $type2 ?>/>
+                       <label for="googleTypeAjax"><?php echo _AT("google_search_ajax"); ?></label><br/>
+               </fieldset>
+               </div>
+               
+               <div class="row">
+                       <?php echo _AT('google_search_attn'); ?><br/><br/>
+                       <?php echo _AT('google_key_txt'); ?>
+               </div>
+               <div class="row">
+                       <label for="key">Key</label>
+                       <input type="text" name="key" id="key" size="40" value="<?php echo $key; ?>" style="min-width: 90%;" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               </div>
+       </div>
+
+</form>
diff --git a/docs/themes/mobile/admin/system_preferences/module_setup.tmpl.php b/docs/themes/mobile/admin/system_preferences/module_setup.tmpl.php
new file mode 100644 (file)
index 0000000..82f2353
--- /dev/null
@@ -0,0 +1,20 @@
+<?php global $_config; ?>
+<form action="<?php  $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+    <div class="input-form">
+        <div class="row">
+               <p><label for="uri"><?php echo _AT('transformable_uri'); ?></label></p>
+               <input type="text" name="transformable_uri" value="<?php echo $_config['transformable_uri']; ?>" id="uri" size="40" style="min-width: 95%;" />
+            
+                   <p><label for="key"><?php echo _AT('web_service_id'); ?></label></p>
+                   <input type="text" name="transformable_web_service_id" value="<?php echo $_config['transformable_web_service_id']; ?>" id="key" size="40" style="min-width: 95%;" />
+
+                   <p><label for="key"><?php echo _AT('oauth_expire'); ?></label></p>
+                   <input type="text" name="transformable_oauth_expire" value="<?php echo $_config['transformable_oauth_expire']; ?>" id="key" size="20" />&nbsp;<?php echo _AT('seconds'); ?><br />
+                      <small>&middot; <?php echo _AT('oauth_expire_note'); ?><br /></small>
+        </div>
+
+        <div class="row buttons">
+            <input type="submit" name="submit" value="<?php echo _AT('save'); ?>"  />
+        </div>
+    </div>
+</form> 
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/system_preferences/preview.tmpl.php b/docs/themes/mobile/admin/system_preferences/preview.tmpl.php
new file mode 100644 (file)
index 0000000..e4a7c3e
--- /dev/null
@@ -0,0 +1,22 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+
+<div class="input-form">
+       <div class="row">
+               <h3><?php if (file_exists($this->title_file)) { readfile($this->title_file); } ?></h3>
+       </div>
+
+       <div class="row">
+               <?php if (file_exists($this->cache_file) && filesize($this->cache_file) > 0) { 
+                       readfile($this->cache_file); 
+                       echo '<p><br /><small>'._AT('new_window').'</small></p>';
+               } else {
+                       echo _AT('no_content_avail');
+               }?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="back" value="<?php echo _AT('back'); ?>" />
+       </div>
+</div>
+</form>
diff --git a/docs/themes/mobile/admin/users/admin_email.tmpl.php b/docs/themes/mobile/admin/users/admin_email.tmpl.php
new file mode 100644 (file)
index 0000000..9978e51
--- /dev/null
@@ -0,0 +1,30 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<input type="hidden" name="admin" value="admin" />
+
+<div class="input-form">
+       <div class="row">
+       <fieldset>
+<legend><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo  _AT('to'); ?></legend>
+               <input type="radio" name="to" value="3" checked="checked" id="all" /><label for="all"><?php echo _AT('all_users'); ?></label>  
+         <input type="radio" name="to" value="1" id="inst" <?php if ($_POST['to'] == AT_STATUS_INSTRUCTOR) { echo 'checked="checked"'; } ?> /><label for="inst"><?php echo  _AT('instructors'); ?></label>
+         <input type="radio" name="to" value="2" id="stud" <?php if ($_POST['to'] == AT_STATUS_STUDENT) { echo 'checked="checked"'; } ?> /><label for="stud"><?php echo  _AT('students'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="subject"><?php echo _AT('subject'); ?></label><br />
+               <input type="text" name="subject" size="45" id="subject" value="<?php echo $_POST['subject']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('body'); ?></label><br />
+               <textarea cols="45" rows="18" name="body" id="body"><?php echo $_POST['body']; ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('send'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/users/create.tmpl.php b/docs/themes/mobile/admin/users/create.tmpl.php
new file mode 100644 (file)
index 0000000..ffcb469
--- /dev/null
@@ -0,0 +1,49 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<input type="hidden" name="form_password_hidden" value="" />
+<input type="hidden" name="password_error" value="" />
+
+<div class="input-form">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="login"><?php echo _AT('login_name'); ?></label><br />
+               <input type="text" name="login" id="login" size="25" value="<?php echo htmlspecialchars($_POST['login']); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password"><?php echo _AT('password'); ?></label><br />
+               <input type="password" name="password" id="password" size="25" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password2"><?php echo _AT('confirm_password'); ?></label><br />
+               <input type="password" name="confirm_password" id="password2" size="25" />
+       </div>
+
+       <div class="row">
+               <label for="real_name"><?php echo _AT('real_name'); ?></label><br />
+               <input type="text" name="real_name" id="real_name" size="30" value="<?php echo htmlspecialchars($_POST['real_name']); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />
+               <input type="text" name="email" id="email" size="25" value="<?php echo htmlspecialchars($_POST['email']); ?>" />
+       </div>
+
+       <div class="row">
+               <?php echo _AT('privileges'); ?><br />
+               <input type="checkbox" name="priv_admin" value="1" id="priv_admin" <?php if ($_POST['priv_admin']) { echo 'checked="checked"'; } ?> /><label for="priv_admin"><?php echo _AT('priv_admin_super'); ?></label><br /><br />
+
+       
+               <?php foreach ($this->keys as $module_name): ?>
+                       <?php $module =& $this->module_list[$module_name]; ?>
+                       <?php if (!($module->getAdminPrivilege() > 1)) { continue; } ?>
+                               <input type="checkbox" name="privs[]" value="<?php echo $module->getAdminPrivilege(); ?>" id="priv_<?php echo $module->getAdminPrivilege(); ?>" <?php if (query_bit($_POST['privs'], $module->getAdminPrivilege())) { echo 'checked="checked"'; }  ?> /><label for="priv_<?php echo $module->getAdminPrivilege(); ?>"><?php echo $module->getName() ?></label><br />
+               <?php endforeach; ?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" onclick="return encrypt_password();" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/users/index.tmpl.php b/docs/themes/mobile/admin/users/index.tmpl.php
new file mode 100644 (file)
index 0000000..c428215
--- /dev/null
@@ -0,0 +1,79 @@
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table summary="List of administrators' login name, real name, and account status" class="data" >
+<colgroup>
+       <?php if ($col == 'login'): ?>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($col == 'real_name'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="3" />
+       <?php elseif($col == 'email'): ?>
+               <col span="3" />
+               <col class="sort" />
+               <col span="2" />
+       <?php elseif($col == 'last_login'): ?>
+               <col span="4" />
+               <col class="sort" />
+               <col />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('login_name');        ?></a></th>
+       <th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=real_name<?php echo $page_string; ?>"><?php echo _AT('real_name');   ?></a></th>
+       <!-- REMOVED FOR MOBILE THEME -->
+       <!-- <th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=email<?php echo $page_string; ?>"><?php echo _AT('email');           ?></a></th> -->
+       <!--<th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=last_login<?php echo $page_string; ?>"><?php echo _AT('last_login'); ?></a></th> -->
+       <th scope="col"><?php echo _AT('account_status'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />
+               <input type="submit" name="view_log" value="<?php echo _AT('view_log'); ?>" />
+               <input type="submit" name="password" value="<?php echo _AT('password'); ?>" />
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php if (mysql_num_rows($this->result) == 0) { ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('no_admins_found'); ?></td>
+       </tr>
+<?php } else {
+               while ($row = mysql_fetch_assoc($this->result)): ?>
+                       <tr onkeydown="document.form['m<?php echo $row['login']; ?>'].checked = true;rowselect(this);" onmousedown="document.form['m<?php echo $row['login']; ?>'].checked = true;rowselect(this);" id="r_<?php echo $row['login']; ?>">
+                               <td><input type="radio" name="login" value="<?php echo $row['login']; ?>" id="m<?php echo $row['login']; ?>" /></td>
+                               <td><label for="m<?php echo $row['login']; ?>"><?php echo $row['login'];      ?></label></td>
+                               <td><?php echo $row['real_name'];  ?></td>
+                               <!--  REMOVED FOR MOBILE THEME
+                               <td><?php echo $row['email'];      ?></td>
+                               <td><?php 
+                                       if ($row['last_login'] == '0000-00-00 00:00:00') {
+                                               echo _AT('never');
+                                       } else {
+                                               echo $row['last_login'];
+                                       } ?></td> -->
+                               <td><?php 
+                                       if ($row['privileges'] == 1) { 
+                                               echo _AT('priv_admin_super');
+                                       } else if ($row['privileges'] > 0) {
+                                               echo _AT('active_admin');
+                                       } else {
+                                               echo _AT('inactive_admin');
+                                       }
+                                ?> </td>
+                       </tr>
+               <?php endwhile; ?>
+       <?php } ?>
+</tbody>
+</table>
+</div>
+</form>
diff --git a/docs/themes/mobile/admin/users/instructor_requests.tmpl.php b/docs/themes/mobile/admin/users/instructor_requests.tmpl.php
new file mode 100644 (file)
index 0000000..83ca4f8
--- /dev/null
@@ -0,0 +1,45 @@
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="Table listing instructor requets" >
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('login_name');     ?></th>
+       <!-- REMOVED FOR MOBILE <th scope="col"><?php echo _AT('first_name');   ?></th>-->
+       <!-- <th scope="col"><?php echo _AT('last_name');    ?></th>  -->
+       <!--  <th scope="col"><?php echo _AT('email');        ?></th> -->
+       <th scope="col"><?php echo _AT('notes');        ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+       <input type="submit" name="deny" value="<?php echo _AT('deny'); ?>" /> 
+       <input type="submit" name="approve" value="<?php echo _AT('approve'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+<?php
+       if ($row = mysql_fetch_assoc($this->result)) {
+               do {
+                       echo '<tr onkeydown ="document.form[\'i'.$row['member_id'].'\'].checked = true;rowselect(this);" onmousedown="document.form[\'i'.$row['member_id'].'\'].checked = true;rowselect(this);" id="r_'.$row['member_id'].'">';
+                       echo '<td><input type="radio" name="id" value="'.$row['member_id'].'" id="i'.$row['member_id'].'" /></td>';
+                       echo '<td><label for="i'.$row['member_id'].'">'.AT_print($row['login'], 'members.login').'</label></td>';
+                       // REMOVED FOR MOBILE
+                       // echo '<td>'.AT_print($row['first_name'], 'members.first_name').'</td>';
+                   // echo '<td>'.AT_print($row['last_name'], 'members.last_name').'</td>';
+                       // echo '<td>'.AT_print($row['email'], 'members.email').'</td>';
+                       
+                       echo '<td>'.AT_print($row['notes'], 'instructor_approvals.notes').'</td>';
+
+                       echo '</tr>';
+               } while ($row = mysql_fetch_assoc($this->result));
+       } else {
+               echo '<tr><td colspan="6">'._AT('none_found').'</td></tr>';
+       }
+?>
+</tbody>
+</table>
+</div>
+</form>
diff --git a/docs/themes/mobile/admin/users/log.tmpl.php b/docs/themes/mobile/admin/users/log.tmpl.php
new file mode 100644 (file)
index 0000000..8ae881d
--- /dev/null
@@ -0,0 +1,30 @@
+<div class="table-surround">
+<table summary="Date and login name associated with an action in a database table" class="data" >
+
+<thead>
+<tr>
+       <th scope="col"><?php echo _AT('date');           ?></th>
+<!--   <th scope="col"><?php echo _AT('login_name');     ?></th> -->
+<!--   <th scope="col"><?php echo _AT('action');         ?></th> -->
+       <th scope="col"><?php echo _AT('database_table'); ?></th>
+</tr>
+</thead>
+<tbody>
+<?php if (mysql_num_rows($this->result) > 0) : ?>
+       <?php while ($row = mysql_fetch_assoc($this->result)): ?>
+               <?php $offset++; ?>
+               <tr onkeydown="document.location='<?php echo AT_BASE_HREF; ?>mods/_core/users/admins/detail_log.php?offset=<?php echo $offset.SEP.'p='.$page.SEP.'login='.$_GET['login']; ?>'" onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_core/users/admins/detail_log.php?offset=<?php echo $offset.SEP.'p='.$page.SEP.'login='.$_GET['login']; ?>'" title="<?php echo _AT('view_details'); ?>">
+                       <td><a href="<?php echo AT_BASE_HREF; ?>mods/_core/users/admins/detail_log.php?offset=<?php echo $offset.SEP.'p='.$page.SEP.'login='.$_GET['login']; ?>"><?php echo $row['time']; ?></a></td>
+                       <!-- <td><?php echo $row['login']; ?></td> -->
+                       <!--  <td><?php echo $this->operations[$row['operation']]; ?></td>-->
+                       <td><?php echo $row['table']; ?></td>
+               </tr>
+       <?php endwhile; ?>
+<?php else: ?>
+<tr>
+       <td colspan="4"><?php echo _AT('none_found'); ?></td>
+</tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/users/master_list.tmpl.php b/docs/themes/mobile/admin/users/master_list.tmpl.php
new file mode 100644 (file)
index 0000000..431b0e3
--- /dev/null
@@ -0,0 +1,129 @@
+
+<form name="importForm" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data">
+<div class="input-form">
+       <div class="row">
+               <h3><?php echo _AT('update_list'); ?></h3>
+               <label for="file"><?php echo _AT('file'); ?></label><br />
+               <input type="file" name="file" size="40" id="file" />
+       </div>
+       
+       <div class="row">
+               <fieldset>
+               <legend><?php echo _AT('master_not_in_list'); ?></legend>
+               <input type="radio" name="override" id="o0" value="0" checked="checked" /><label for="o0"><?php echo _AT('leave_unchanged'); ?></label>
+               <input type="radio" name="override" id="o1" value="1" /><label for="o1"><?php echo _AT('disable');     ?></label>
+               </fieldset>
+       </div>
+
+       <div class="row buttons">
+               <input type= "submit" name="submit" value="<?php echo _AT('upload'); ?>" />
+       </div>
+</div>
+</form>
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               
+                       <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+                       <a id="results-hide-show-link" href="javascript:void(0);" tabindex="1">Refine Results</a>
+               
+       
+               
+       <div id="results-hide-show" role="search"  aria-live="assertive">
+       <div id="results-display">
+               <div class="row">
+                       <fieldset>
+                       <legend><?php echo _AT('account_status'); ?></legend>
+                       <input type="radio" name="status" value="1" id="s0" <?php if ($_GET['status'] == 1) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('not_created'); ?></label> 
+
+                       <input type="radio" name="status" value="2" id="s1" <?php if ($_GET['status'] == 2) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('created'); ?></label> 
+
+                       <input type="radio" name="status" value="" id="s" <?php if ($_GET['status'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label> 
+                       </fieldset>
+               </div>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('student_id'); ?>)</label><br />
+                       <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+       </div> <!-- end #results-display -->
+       </div> <!-- end #results-hide-show -->
+</form>
+
+<div class="paging">
+       <ul>
+       <?php for ($i=1; $i<=$this->num_pages; $i++): ?>
+               <li>
+                       <?php if ($i == $page) : ?>
+                               <a class="current" href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$page_string; ?>"><strong><?php echo $i; ?></strong></a>
+                       <?php else: ?>
+                               <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$page_string; ?>"><?php echo $i; ?></a>
+                       <?php endif; ?>
+               </li>
+       <?php endfor; ?>
+       </ul>
+</div>
+
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="status" value="<?php echo $_GET['status']; ?>" />
+<div class="table-surround">
+<table summary="Table lists results by Student ID, Login Name, First Name, Second Name, and Last Name." class="data"  >
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('student_id'); ?></th>
+       <th scope="col"><?php echo _AT('login_name'); ?></th>
+       <th scope="col"><?php echo _AT('last_name'); ?></th>
+</tr>
+</thead>
+<?php if ($this->num_results > 0): ?>
+<tfoot>
+<tr>
+       <td colspan="6"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+       <?php while($row = mysql_fetch_assoc($this->result)): ?>
+               <tr onmousedown="document.form['m<?php echo $row['public_field']; ?>'].checked = true;rowselect(this);" onkeydown="document.form['m<?php echo $row['public_field']; ?>'].checked = true;rowselect(this);" id="r_<?php echo $row['public_field']; ?>">
+                       <td><input type="radio" name="id" value="<?php 
+                               if ($row['member_id']) {
+                                       echo $row['member_id'];
+                               } else {
+                                       echo '-'.$row['public_field'];
+                               }
+                               ?>" id="m<?php echo $row['public_field']; ?>" /></td>
+                       <td><label for="m<?php echo $row['public_field']; ?>"><?php echo $row['public_field']; ?></label></td>
+                       <td><?php
+                               if ($row['member_id']) {
+                                       echo $row['login'];
+                               } else {
+                                       echo '-';
+                               }
+                               ?></td>
+
+                       <td><?php
+                               if ($row['member_id']) {
+                                       echo $row['last_name'];
+                               } else {
+                                       echo '-';
+                               }
+                               ?></td>
+               </tr>
+       <?php endwhile; ?>
+</tbody>
+<?php else: ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/users/user_enrollment.tmpl.php b/docs/themes/mobile/admin/users/user_enrollment.tmpl.php
new file mode 100644 (file)
index 0000000..463eb24
--- /dev/null
@@ -0,0 +1,85 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>?id=<?php echo $this->id; ?>">
+<input type="hidden" name="id" value="<?php echo $this->id; ?>"/>
+<div class="input-form">
+       <div class="row">
+       <h3><?php echo _AT('instructor'); ?></h3>
+               <?php if ($this->instruct): ?>
+                       <ul>
+                       <?php foreach ($this->instruct as $cid): ?>
+                               <li><?php echo $this->system_courses[$cid]['title']; ?></li>
+                       <?php endforeach; ?>
+                       </ul>
+               <?php else: ?>
+                       <?php echo _AT('none'); ?>
+               <?php endif; ?>
+       </div>
+       <div class="row buttons">
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
+       </div>
+</div>
+
+<div class="input-form">
+       <div class="row">
+       <h3><?php echo _AT('enrolled'); ?></h3>
+               <?php if ($this->enrolled): ?>
+                       <ul>
+                       <?php foreach ($this->enrolled as $cid): ?>
+                               <li><input type="checkbox" name="enrolled[]" value="<?php echo $cid; ?>" id="c<?php echo $cid; ?>"/><label for="c<?php echo $cid; ?>"><?php echo $this->system_courses[$cid]['title']; ?></label></li>
+                       <?php endforeach; ?>
+                       </ul>
+               <?php else: ?>
+                       <?php echo _AT('none'); ?>
+               <?php endif; ?>
+       </div>
+       <div class="row buttons">
+       <?php if ($this->enrolled): ?>
+               <input type="submit" name="enrolled_unenroll" value="<?php echo _AT('unenroll'); ?>"/>
+       <?php endif; ?>
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
+       </div>
+
+</div>
+
+<div class="input-form">
+       <div class="row">
+       <h3><?php echo _AT('pending_enrollment'); ?></h3>
+               <?php if ($this->pending): ?>
+                       <ul>
+                       <?php foreach ($this->pending as $cid): ?>
+                               <li><input type="checkbox" name="pending[]" value="<?php echo $cid; ?>" id="c<?php echo $cid; ?>"/><label for="c<?php echo $cid; ?>"><?php echo $this->system_courses[$cid]['title']; ?></label></li>
+                       <?php endforeach; ?>
+                       </ul>
+               <?php else: ?>
+                       <?php echo _AT('none'); ?>
+               <?php endif; ?>
+       </div>
+       <div class="row buttons">
+       <?php if ($this->pending): ?>
+               <input type="submit" name="pending_remove" value="<?php echo _AT('remove'); ?>"/>
+               <input type="submit" name="pending_enroll" value="<?php echo _AT('enroll'); ?>"/>
+       <?php endif; ?>
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
+       </div>  
+</div>
+
+<div class="input-form">
+       <div class="row">
+               <h3><?php echo _AT('not_enrolled');?></h3>
+                       <?php if ($this->not_enrolled): ?>
+                               <ul>
+                               <?php foreach ($this->not_enrolled as $cid): ?>
+                                       <li><input type="checkbox" name="not_enrolled[]" value="<?php echo $cid; ?>" id="c<?php echo $cid; ?>"/><label for="c<?php echo $cid; ?>"><?php echo $this->system_courses[$cid]['title']; ?></label></li>
+                               <?php endforeach; ?>
+                               </ul>
+                       <?php else: ?>
+                               <?php echo _AT('none'); ?>
+                       <?php endif; ?>
+       </div>
+       <div class="row buttons">
+       <?php if ($this->not_enrolled): ?>
+               <input type="submit" name="not_enrolled_enroll" value="<?php echo _AT('enroll'); ?>"/>
+       <?php endif; ?>
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/admin/users/users.tmpl.php b/docs/themes/mobile/admin/users/users.tmpl.php
new file mode 100644 (file)
index 0000000..5a48c0a
--- /dev/null
@@ -0,0 +1,176 @@
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+       <div class="input-form">
+       <div id="results-hide-show-simple-content" class="hide-show-container-surround ">       
+                       
+                       <a id="results-hide-show-link"  class="content-expand" href="javascript:void(0);" tabindex="1">Refine Results</a>
+       </div>
+               
+       <div id="results-hide-show" role="search"  aria-live="assertive">
+       <div id="results-display">
+       
+               
+               <div class="row">
+               <fieldset>
+                       <legend><?php echo _AT('account_status'); ?></legend>
+                       <input type="radio" name="status" value="0" id="s0" <?php if ($_GET['status'] == 0) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('disabled'); ?></label> 
+
+                       <input type="radio" name="status" value="1" id="s1" <?php if ($_GET['status'] == 1) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('unconfirmed'); ?></label> 
+
+                       <input type="radio" name="status" value="2" id="s2" <?php if ($_GET['status'] == 2) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('student'); ?></label>
+
+                       <input type="radio" name="status" value="3" id="s3" <?php if ($_GET['status'] == 3) { echo 'checked="checked"'; } ?> /><label for="s3"><?php echo _AT('instructor'); ?></label>
+
+                       <input type="radio" name="status" value="" id="s" <?php if ($_GET['status'] === '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
+               </fieldset>
+               </div>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('login_name').', '._AT('first_name').', '._AT('second_name').', '._AT('last_name') .', '._AT('email'); ?>)</label><br />
+                       <fieldset><legend><?php echo _AT('search_match'); ?>:</legend>
+                       <input type="radio" name="include" value="all" id="match_all" <?php echo $checked_include_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> 
+                       <input type="radio" name="include" value="one" id="match_one" <?php echo $checked_include_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
+                       </fieldset>
+                       <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+                       <br/>
+               
+               </div>
+
+               <?php if (defined('AT_MASTER_LIST') && AT_MASTER_LIST): ?>
+                       <div class="row">
+                               <label for="searchid"><?php echo _AT('search'); ?> (<?php echo _AT('student_id'); ?>)</label><br />
+                               <input type="text" name="searchid" id="searchid" size="20" value="<?php echo htmlspecialchars($_GET['searchid']); ?>" />
+                       </div>
+               <?php endif; ?>
+
+               <div class="row">
+                       <label for="last_login_have"><?php echo _AT('last_login'); ?></label><br />                                     
+                       <select name="last_login_have" id="last_login_have">
+                               <option value="-1">- <?php echo _AT('select'); ?> -</option>
+                               <option value="1" <?php if($_GET['last_login_have']=='1') { echo 'selected="selected"';}?>><?php echo _AT('have'); ?></option>
+                               <option value="0" <?php if(isset($_GET['last_login_have']) && $_GET['last_login_have']=='0') { echo 'selected="selected"';}?>><?php echo _AT('have_not'); ?></option>
+                       </select> 
+                       
+               <label for="last_login_days"><?php echo _AT('logged_in_within'); ?>:</label> <input type="text" id="last_login_days" name="last_login_days" size="3" value="<?php echo htmlspecialchars($_GET['last_login_days']); ?>" /> <?php echo _AT('days'); ?> <br />
+                       
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+       </div> <!-- end #results-display -->
+       </div> <!-- end #results-hide-show -->
+       
+</form>
+
+
+<?php print_paginator($this->page, $this->num_results, $this->page_string . SEP . $this->order .'='. $col, $this->results_per_page); ?>
+<?php echo "<br>";?>
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="status" value="<?php echo $_GET['status']; ?>" />
+<input type="hidden" name="search" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+<input type="hidden" name="include" value="<?php echo htmlspecialchars($_GET['include']); ?>" />
+
+<?php if (defined('AT_MASTER_LIST') && AT_MASTER_LIST) {  $col_counts = 1; } else { $col_counts = 0; } ?>
+<div class="table-surround">
+<table summary="" class="data" >
+<colgroup>
+       <?php if ($col == 'login'): ?>
+               <col />
+               <col class="sort" />
+               <col span="<?php echo 5 + $col_counts; ?>" />
+       <?php elseif($col == 'public_field'): ?>
+               <col span="<?php echo 1 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="6" />
+       <?php elseif($col == 'first_name'): ?>
+               <col span="<?php echo 2 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="5" />
+       <?php elseif($col == 'second_name'): ?>
+               <col span="<?php echo 3 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($col == 'last_name'): ?>
+               <col span="<?php echo 4 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="3" />
+       <?php elseif($col == 'email'): ?>
+               <col span="<?php echo 5 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="2" />
+       <?php elseif($col == 'status'): ?>
+               <col span="<?php echo 6 + $col_counts; ?>" />
+               <col class="sort" />
+               <col />
+       <?php elseif($col == 'last_login'): ?>
+               <col span="<?php echo 7 + $col_counts; ?>" />
+               <col class="sort" />
+       <?php elseif($col == 'creation_date'): ?>
+               <col span="<?php echo 8 + $col_counts; ?>" />
+               <col class="sort" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col" align="left"><input type="checkbox" value="<?php echo _AT('select_all'); ?>" id="all" title="<?php echo _AT('select_all'); ?>" name="selectall" onclick="CheckAll();" /></th>
+
+       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('login_name');      ?></a></th>
+       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=last_name<?php echo $page_string; ?>"><?php echo _AT('last_name');   ?></a></th>
+       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=status<?php echo $page_string; ?>"><?php echo _AT('account_status'); ?></a></th>
+       
+</tr>
+
+</thead>
+<?php if ($this->num_results > 0): ?>
+       <tfoot>
+       <tr>
+               <td colspan="<?php echo 9 + $col_counts; ?>">
+                       <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+                       <input type="submit" name="password" value="<?php echo _AT('password'); ?>" />
+                       <?php if (admin_authenticate(AT_ADMIN_PRIV_ENROLLMENT, true)): ?>
+                               <input type="submit" name="enrollment" value="<?php echo _AT('enrollment'); ?>" />
+                       <?php endif; ?> 
+                       <label for="change_status"><?php echo _AT('more_options'); ?></label>
+                       <select name="change_status" id="change_status">
+                       <!-- REMOVED FOR MOBILE <option value="-2"><?php echo _AT('more_options'); ?></option> -->
+                               <optgroup label="<?php echo _AT('status'); ?>">
+                                       <option value="<?php echo AT_STATUS_STUDENT; ?>"><?php echo _AT('student'); ?></option>
+                                       <option value="<?php echo AT_STATUS_INSTRUCTOR; ?>"><?php echo _AT('instructor'); ?></option>   
+                                       <?php if ($_config['email_confirmation']): ?>
+                                               <option value="<?php echo AT_STATUS_UNCONFIRMED; ?>"><?php echo _AT('unconfirmed'); ?></option>
+                                       <?php endif; ?>
+                                       <option value="<?php echo AT_STATUS_DISABLED; ?>"><?php echo _AT('disable'); ?></option>                                
+                               </optgroup>
+                               <option value="-2" disabled="disabled">- - - - - - - - -</option>       
+                               <option value="-1"><?php echo _AT('delete'); ?></option>                                
+                       </select>
+                       <input type="submit" name="apply" value="<?php echo _AT('apply'); ?>" />
+                       <input type="submit" name="apply_all" value="<?php echo _AT('apply_to_all_results'); ?>" />
+               </td>
+       </tr>
+       </tfoot>
+       <tbody>
+               <?php while($row = mysql_fetch_assoc($this->result)): ?>
+                       <tr onmousedown="document.form['m<?php echo $row['member_id']; ?>'].checked = !document.form['m<?php echo $row['member_id']; ?>'].checked; togglerowhighlight(this, 'm<?php echo $row['member_id']; ?>');" id="rm<?php echo $row['member_id']; ?>">
+                               <td><input type="checkbox" name="id[]" value="<?php echo $row['member_id']; ?>" id="m<?php echo $row['member_id']; ?>" onmouseup="this.checked=!this.checked" /></td>
+                               <td><?php echo $row['login']; ?></td>
+                               
+                               <?php $startend_date_longs_format=_AT('startend_date_longs_format'); ?>
+                               <td><?php echo AT_print($row['last_name'], 'members.last_name'); ?></td>
+                               <td><?php echo get_status_name($row['status']); ?></td>
+                               
+                       </tr>
+               <?php endwhile; ?>
+       </tbody>
+<?php else: ?>
+       <tr>
+               <td colspan="<?php echo 9 + $col_counts; ?>"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</table>
+</div>
+</form>
index ae21f22..4ae88b9 100644 (file)
@@ -1,16 +1,14 @@
-/* Style is optimized for Android 2.2, tested on an HTC Dream device. 
-Note that -webkit properties create errors in the CSS validator. 
+/* Style is optimized for iphone. Note that -webkit properties 
+create errors in the CSS validator. 
 Classes beginning with ".fl-" are overriding Mobile FSS, 
 see the API @ http://wiki.fluidproject.org/display/fluid/Mobile+FSS+API 
 for more details. 
 */
-
 html, body{
        height: 100%;
 }
 #main{
-       padding-bottom: 
-       2.3em;
+       padding-bottom: 2.3em;
        overflow: auto;
 }
 
@@ -30,6 +28,7 @@ body,ul,li {
        padding:0;
        font-size:1.063em;
 }
+
 #header-section-title {
        text-align: center;
        background-image: -webkit-gradient(linear, left top, left bottom,
@@ -39,16 +38,13 @@ body,ul,li {
     color-stop(0.5, #6d8cb3),
     to(#4b6b90)
     ); 
-       
-       
 }
+
 .fl-theme-iphone .fl-navbar{
        border: none;
        border-top: none;
 }
-.fl-tabs{
 
-}
 .fl-navbar a{
        font-size: 0.969em;
        background-image: -webkit-gradient(linear, left top, left bottom,
@@ -59,6 +55,7 @@ body,ul,li {
     to(#4b6b90)
     ); 
 }
+
 .fl-navbar .fl-tabs {
        padding-top: .3em;
        padding-bottom: .3em;
@@ -73,12 +70,14 @@ body,ul,li {
        background-color: #4b6b90;
        height: 2.5em; 
 }
+
 #navigation-bar{
        height: 2.5em; 
     border-bottom: .5px solid black;
-    padding-bottom: .3em;
+   /* padding-bottom: .3em;*/
      
 }
+
 #wrapper{
        width:100%;
        overflow:hidden;
@@ -93,7 +92,8 @@ body,ul,li {
        color: #4C566C;
        color: white;
 }
-/*this CSS creates a button that looks exactlty like a Mobile FSS tab.*/
+
+/*this CSS creates a button that looks exactly like a Mobile FSS tab.*/
 .navigation-bar-button{
     border-width:5px;
     -webkit-border-radius: 5px;
@@ -103,7 +103,7 @@ body,ul,li {
        position: relative;
        top: .69em; 
        left: 0.188em; 
-    /* Default mobile fss color scheme for tabs not AA compliant. Here is a compliant bg image: */
+    /* default mobile fss color scheme for tabs not AA compliant. Here is a compliant bg image: */
     background-image: -webkit-gradient(linear, left top, left bottom,
        from(#3b5371),
         color-stop(0.5, #374e6b),
@@ -114,7 +114,7 @@ body,ul,li {
     -webkit-border-left-image: none;
     -webkit-background-origin: border;
     -webkit-background-clip: border;
-    /* To mimick the mobile FSS scolor scheme (iphone) uncomment these lines 
+    /* to mimick the mobile FSS scolor scheme (iphone) uncomment these lines 
        background-image: -webkit-gradient(linear, left top, left bottom,
        from(#9aafca),
         color-stop(0.5, #6d8cb3),
@@ -133,14 +133,27 @@ body,ul,li {
     ); 
 }
 
-div#content-link-container{
+div#content-link-container{/*REMOVE
        background-color:#F5F5F5;
        padding:.375em;
        border: #A9ADB0 solid 1px;
        -webkit-border-radius: 2px;
+       
+       border: #A9ADB0 solid 1px;
+       -webkit-border-radius: 2px;
+       padding: 1em;
+       padding-left: 0.313em;
+       text-decoration: none;*/
+       border: #A9ADB0 solid 1px;
 }
+
 #content_link{
        display: block;
+       text-decoration: none;
+       padding-bottom: 12px;
+       padding-left: 8px;
+    padding-top: 12px;
 }
 #home-guide{
        position: absolute;
@@ -151,6 +164,7 @@ div#content-link-container{
        display: inline;
 
 }
+
 /* main body attributes */
 p {
     text-align: left;
@@ -216,12 +230,10 @@ h5 {
 }
 
 
-
 /* Preferences tabs */
 .etabbed-list-container        {
        padding:0;
        margin: 0;
-       font-size:inherit;
        width:70%;
        clear: left;
        height: 3em;
@@ -230,23 +242,17 @@ h5 {
 .prefs_buttontab {
        padding:0;
        margin: 0;
-       color: #4C566C;
        white-space: nowrap;
-       background-color: #ffffff;
-       margin-bottom: .5px;
-       border:0;
-       font-weight:500; 
-       text-decoration: underline;
 }
 .prefs_tab{
-       padding:0.7em 0 0;
+       padding:0.5em 0.3em 0;
        margin: 0;
        white-space: nowrap;
     display: inline;
 }
 
 .prefs_tab_selected{  
-       padding:0.9em 0 0;
+       padding:0.7em 0.3em 0;
        margin: 0;
        margin: 0px;
        font-weight:bold;
@@ -256,6 +262,7 @@ h5 {
 }
 
 
+
 /*  Table of content attributes*/
 p.toc{
        font-family: Verdana, Helevetica, Arial, sans-serif;
@@ -270,10 +277,11 @@ p.toc{
 
 
 /* link attributes */
-a:link, a:visited  {
+a:link, /*a:visited*/ a:focus  {
        color: #4C566C;
        text-decoration: underline;
 }
+
 a:hover {
        color: #4C566C;
        text-decoration: underline;
@@ -436,7 +444,8 @@ td.selected{
 }
 
 .tab a:link, .etab a:visited {
-       color: black;
+       /* color: black;*/
+       color: #4C566C;
        background-color: white;
 
 }
@@ -465,9 +474,7 @@ td.selected{
 }
 
 
-
 /* the side menu */
-/* the side menu heading */
 td.dropdown-heading {
        background-color: #DBFDD4;
        color: #595241;
@@ -497,7 +504,8 @@ td.dropdown {
        font-weight: normal;
 }
 td.dropdown a, td.dropdown a:visited  {
-       color: #595241;
+       /* color: #595241; */
+       color: #4C566C;
        text-decoration: none;
 }
 td.dropdown a:hover {
@@ -543,11 +551,8 @@ p.search-description {
        padding: 0.125em;
 }
 
-/* preferences */
+/*preferences*/
 
-.input-form{
-       width: 100%;
-}
 .input-form 
 table.tabbed-table {
        width: 100%;
@@ -602,9 +607,12 @@ table.tabbed-table th.selected {
 }
 
 table.tabbed-table a, table.tabbed-table a:visited, table.tabbed-table a:hover {
-       color: black;
+       /* color: black;*/
+       color: #4C566C;
        text-decoration: none;
 }
+
+
 .preference-buttons-container{
        background-color: red;
        height: 2.5em;
@@ -617,6 +625,14 @@ div.preference-buttons-container li{
        float: right;
 }
 
+.prefs_tab_selected{
+       font-style: italic;
+       width: 10%;
+}
+.prefs_tab{
+       width: 10%;
+}
+
 .etabbed-table{
        margin: 0 auto;
 }
@@ -640,7 +656,7 @@ div.preference-buttons-container li{
 }
 #display-settings-preview{
        width:90%;
-       height:20em;
+       height:20em; 
        margin: 0 auto;
 }
 #feedback{
@@ -748,10 +764,6 @@ div#top-links {
 div#top-links a:link, div#top-links a:visited {
        text-decoration:none;
 }
-div#top-links a:focus{
-       /*color:black;
-       background-color:#F6EAD6;*/
-}
 
 #jumpmenu:focus{
        background-color:#F6EAD6;
@@ -789,15 +801,23 @@ a#editor-link.on {
 
 
 /* for data tables */
+.table-surround {
+       border: #A9ADB0 1px solid;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
+       
+}
+
 table.data {
-       width: 95%; 
-       margin: 0 auto;
+       margin:0;
+       width:100%;
        padding: 0;
        color: black;
+       font-size: .8em;
        text-align: left;
-       -webkit-border-radius:5px;
-       border: #6D7B8D 1px solid;
-
+       background-color: transparent;
 } 
 /* contains the headings */
 table.data th {
@@ -813,8 +833,10 @@ table.data th a {
 }
 
 table.data tbody {
+/*
        border-top: 1px solid #B8AE9C;
        border-bottom: 1px solid #B8AE9C;
+       */
 }
 /*headings text*/
 table.data tbody th {
@@ -829,7 +851,8 @@ table.data td {
        font-style: normal;
 }
 table.data td a:link, a:visited{
-       color: black;
+       /*color: black;*/
+       color: #4C566C
 }
 table.data tbody tr:hover {
        background-color: #efefef;
@@ -839,6 +862,7 @@ table.data tbody tr:hover {
 table.data tbody tr.selected {
        background-color: #E9F4F3;
        cursor: auto;
+       border: 5px solid #E9F4F3;
 }
 
 table.data tfoot {
@@ -853,7 +877,7 @@ table.data tfoot tr:first-child td {
 }
 
 table.data.static tfoot td, table.data.static tfoot tr:first-child td {
-       border-top: 1px solid #B8AE9C;
+       /*border-top: 1px solid #B8AE9C;*/
        padding: 0.313em;
        background-image: none;
        padding-left: 0;
@@ -877,11 +901,11 @@ table.data.static tfoot td, table.data.static tfoot tr:first-child td {
 table.data tfoot input {
        background-color: #efefef;
        font-weight: normal;
-       border:  #AAA  solid 1px;
+       /*border:  #AAA  solid 1px;*/
 }
 table.data tfoot input:focus {
        background-color: #FFDAB9;
-       border:  #AAA  solid 1px;
+       /*border:  #AAA  solid 1px;*/
 }
 
 
@@ -954,8 +978,8 @@ div#feedback, div#info {
        margin-left: auto;
        margin-right: auto;
        margin-top: 0.313em;
-       padding-left: 0.313em;
-       padding-right: 0.313em;
+       margin-bottom: 0.313em;
+       padding: 0.313em;
        font-family: Helvetica, Arial, sans-serif;
        -webkit-border-radius:5px;
        border: 1px solid #17B506;
@@ -980,19 +1004,7 @@ div#help {
        background-color: #E9F4F3;
        color: #024C41;
 }
-/*
-div#info {
-       width: 50%;
-       margin-left: auto;
-       margin-right: auto;
-       margin-top:  0.938em;
-       margin-bottom:  0.938em;
-       border: 1px solid #B8AE9C;
-       padding: 0.313em;
-       background-color: #EFE6FF;
-       color: #595241;
-       font-weight: bold;
-} */
+
 
 div#warning {
        width: 95%;
@@ -1017,10 +1029,13 @@ div.news p {
 div.news span.date {
        font-family:Helevetica, Arial, sans-serif;
        color: #4C566C; 
+       font-size: .5em;
 }
 
 .news{
        padding: 0;
+       margin-bottom: 1em;
+       margin-top: 1em;
 }
 /* home page links */
 div.home-link {
@@ -1050,10 +1065,7 @@ div.home-link img {
 
 /* sequence links */
 div#sequence-links {
-       
-       margin-top: 0.625em;
-       padding-right: 0.313em;
-       padding-top:0.438em;
+
 }
 div#sequence-links a {
        text-decoration: none;
@@ -1098,12 +1110,19 @@ div.required {
 div#content_text {
        margin-left: 0.313em;
 }
-/*needs to be set to display: none so drawer can open */
+
 #content{
-       display: none;
+/*
        padding-top:.5em;
        margin-top: .5em;
        background-color: #F5F5F5;
+       
+       border: #A9ADB0 1px solid;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       -webkit-border-bottom-right-radius: 5px;
+       -webkit-border-bottom-left-radius: 5px;*/
+       padding-top: .313em;
 }
 form {
        display:inline;
@@ -1117,7 +1136,8 @@ optgroup {
 
 /* paging*/
 div.paging {
-
+       margin-top: 1em;
+       text-align: center;
 }
 div.paging ul {
     list-style: none;
@@ -1127,7 +1147,6 @@ div.paging ul {
        margin-bottom: 1em;
 }
 div.paging li { 
-       float: left;
        display: inline; 
        padding-left: 0.125em; 
        padding-right: 0.125em;
@@ -1145,10 +1164,9 @@ div.paging li a {
 }
 
 div.paging li a:hover, div.paging li a.current {
-   background-color: #5B8E88;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
-   color: white;
+   color: black;
 }
 
 #tl_corner{
@@ -1158,16 +1176,9 @@ div.paging li a:hover, div.paging li a.current {
        background-repeat: no-repeat;
        padding:0;
 }
-div.top {
-    /* Top space
-    background-color: #595241;
-       color: #FFF;
-    margin: 0;
-    padding: 0;
-       padding-top:0.563em; */
-}
+
 div.tabs {
-       /* Navigational Plone Tabs */
+       /* Navigational Plone Tabs(tm), implemented by customizing the a tag - they are surprisingly elegant. The power of CSS runs strong in these :) */
     background-color: transparent;
        border-collapse: collapse;
        border-bottom: 1px solid #B8AE9C;
@@ -1204,7 +1215,9 @@ div.tabs a:hover, div.tabs a.active {
 
 .headingbox a{
        color: #4C566C;
-       text-decoration:underline;
+}
+.headingbox a:link, .headingbox a:visited{
+       text-decoration: none;
 }
 div.box {
 }
@@ -1369,6 +1382,7 @@ fieldset {
        width:95%;
        margin:0 auto;
        border:thin #6D7B8D solid;
+       border:thin #A9ADB0 solid;
        margin-bottom: 1em;
 }
 #shortcuts legend {
@@ -1688,7 +1702,6 @@ span.forum-paginator-active{font-weight:700;text-decoration:underline; height:2e
        border: solid 1px #A9ADB0;
        -webkit-border-radius:5px;
 }
-
 li.top-tool a {  font-weight: bold; } /* ol#tools>li>a */ 
 
 li.child-tool a { 
@@ -1707,7 +1720,6 @@ ul.child-top-tool:before {
        content: " : ";
 }
 
-/* ol#tools>li>ul>li, */ 
 li.child-tool {
        display: inline;
        margin-right: 0.313em;
@@ -1763,11 +1775,8 @@ dl.browse-course dd {
 
 /*  form fields grouping for WCAG 2.0 conformance*/
 
-.group_form{
-
-}
 fieldset.group_form{
-       
+       width:95%;
        margin:0 auto;
        margin-bottom: 1em;
        border: 1px #6D7B8D solid;
@@ -1794,9 +1803,16 @@ legend.group_form{
 
 
 /* highlight active links for WCAG 2.0 conformance */
-a:active,a:hover,a:focus{
+a:active, a:hover,a:focus{
        background-color:#F6EAD6;
        color:#000000;
+       
+       background-color: #e6e6e6;      
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+  
+}
 }
 
 
@@ -1839,8 +1855,6 @@ h2.alternatives_to{
        margin-top: 0.75em;
        font-size: 90%;
        color: #A50707;
-
-/*     position: relative;*/
 }
 
 div.alternative_box{
@@ -1850,7 +1864,6 @@ div.alternative_box{
        padding: 0.313em;
        min-width: 9.375em;
        background-color: #fff;
-/*     position: relative;*/
 }
 
 div.alternative_box legend {
@@ -1917,7 +1930,6 @@ div.home_box {
        height:9.8em;
 }
 
-
 .inside_box{
        width:100%;
        margin:auto;
@@ -1996,7 +2008,8 @@ ul.folder{
        padding:0em;
 }
 
-/*     Top navlist */
+
+/*     hiding/showing top navigation and results-display */
 
 #topnavlist-link {
        color: white;
@@ -2012,6 +2025,10 @@ ul#topnavlist {
        background-color: white;
 }
 
+div#results-display{
+       display: none;
+}
+
 ul#topnavlist li {
        padding: 0;
        margin: 0;
@@ -2020,8 +2037,19 @@ ul#topnavlist li a.active {
        color: black;
        font-style: italic;
        }
+       
 ul#topnavlist li a:hover, ul#topnavlist li a:focus {
-       color: black;
+       /*Replicates mobile FSS list highlighting, currently there's a bug:
+               see:    http://issues.fluidproject.org/browse/FLUID-4313
+       /*border: 1px solid #e0e0e0;*/
+       background-color: #e6e6e6;
+       color: black;   
+       
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+    -webkit-tap-highlight-color:url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
 }
 
 ul#topnavlist li a  {
@@ -2030,14 +2058,12 @@ ul#topnavlist li a  {
 }
 
 
-/*     Sub naviaation list */
-
 div.toolcontainer{
-       width:90%;
-       margin:auto;
-       border:thin solid #e8e8e8;
-       padding-top:1em;
-       padding-bottom:1em;
+       border: #A9ADB0 1px solid;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
 }
 
 ul#subnavlist {
@@ -2055,13 +2081,17 @@ ul#subnavlist li {
 ul#subnavlist li#test{
        display: none;
 }
+ul#subnavlist li a:hover, ul#subnavlist li a:focus, ul#subnavlist li a.active{ /*
+       color: black;
+       text-decoration:none;*/
+}
 
 ul#subnavlist li a, ul#subnavlist li a:visited {
        color: #4C566C;
 }
 
 
-/* List attributes */
+/* list attributes */
 ul {
        list-style: none;
 }
@@ -2069,18 +2099,25 @@ li {
        color: black;
        list-style: none;
 }
+
 ol#tools>li:hover, ol#tools>li:hover a {
-       border: 1px solid #e0e0e0;
+       /*border: 1px solid #e0e0e0;*/
        background-color: #e6e6e6;
        color: black;   
-}
-#subnavigation, #subnavigation a:link, #subnavigation a:visited{
+       
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+       
 }
 
-#contentwrapper{
-       background-color: white;
-       overflow:auto;
-       padding-bottom: 1em;
+
+#content-contentwrapper{
+       height:100%;
+    position:relative; 
+       z-index:1000;                   
+       width:100%;
+       overflow:hidden;
 }
 
 #leftcolumn{
@@ -2093,13 +2130,12 @@ ol#tools>li:hover, ol#tools>li:hover a {
 #copyright{
        font-size: 0.5em;
 }
-
 #gototop{
        text-align: center;
        color: #4B6B90;
 }
 
- #tools{
+#tools{
        margin: 0 auto;
        padding: 0.375em;
 }
@@ -2168,9 +2204,9 @@ div .divider {
        font-size:.8em;
 }
 
-
 div.contentbox, input-form{
 
+       padding:.5em;
        background-color: #ffffff;
     overflow:hidden;
     border: #A9ADB0 solid 1px;
@@ -2197,6 +2233,7 @@ div.social-wrapper{
        width: 100%;
 }
 
+
 .contentbox-a{
     width: 100%;
 }
@@ -2209,3 +2246,5 @@ float:left;
 clear:right;
 margin-left:2em;}
 
+
+
index 9d8903d..8bf3b88 100644 (file)
@@ -1,6 +1,4 @@
-/* Style is optimized for iphone. Note that -webkit properties 
-create errors in the CSS validator. 
-Classes beginning with ".fl-" are overriding Mobile FSS, 
+/* Style is optimized for blackberry devices. Classes beginning with ".fl-" are overriding Mobile FSS, 
 see the API @ http://wiki.fluidproject.org/display/fluid/Mobile+FSS+API 
 for more details. 
 */
diff --git a/docs/themes/mobile/confirm.tmpl.php b/docs/themes/mobile/confirm.tmpl.php
new file mode 100644 (file)
index 0000000..62c5d5f
--- /dev/null
@@ -0,0 +1,19 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+
+<div class="input-form" style="max-width: 400px">
+       <div class="row">
+               <p><?php echo _AT('send_confirmation'); ?></p>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />
+               <input type="text" name="email" id="email" size="40" />
+               <input type="hidden" name="en_id" id="en_id" value="<?php echo $_REQUEST['en_id']; ?>" size="50" />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('send'); ?>" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/editor/edit_content_folder.tmpl.php b/docs/themes/mobile/editor/edit_content_folder.tmpl.php
new file mode 100644 (file)
index 0000000..6591038
--- /dev/null
@@ -0,0 +1,110 @@
+<?php\r
+/************************************************************************/\r
+/* ATutor                                                                                                                              */\r
+/************************************************************************/\r
+/* Copyright (c) 2002-2010                                              */\r
+/* Inclusive Design Institute                                           */\r
+/* http://atutor.ca                                                                                                            */\r
+/*                                                                                                                                             */\r
+/* This program is free software. You can redistribute it and/or        */\r
+/* modify it under the terms of the GNU General Public License          */\r
+/* as published by the Free Software Foundation.                        */\r
+/************************************************************************/\r
+if (!defined('AT_INCLUDE_PATH')) { exit; } \r
+\r
+global $onload;\r
+$onload = 'document.form.title.focus();';\r
+?>\r
+<form action="<?php echo $_SERVER['PHP_SELF']; if ($this->cid > 0) echo '?cid='.$this->cid; else if ($this->pid > 0) echo '?pid='.$this->pid;?>" method="post" name="form"> \r
+<div class="input-form" >\r
+<!-- <?php\r
+if ($this->shortcuts): \r
+?>\r
+ <fieldset id="shortcuts" style="margin-top:1em;float:right;clear:right;"><legend><?php echo _AT('shortcuts'); ?></legend>\r
+       <ul>\r
+               <?php foreach ($this->shortcuts as $link): ?>\r
+                       <li><a href="<?php echo $link['url']; ?>"><?php echo $link['title']; ?></a></li>\r
+               <?php endforeach; ?>\r
+       </ul>\r
+</fieldset>\r
+<?php endif; ?> -->\r
+       <div class="row">\r
+               <div style="font-weight:bold;"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ftitle"><?php echo _AT('content_folder_title');  ?></label></div>\r
+               <input type="text" name="title" id="ftitle" size="40" class="formfield" value="<?php echo ContentManager::cleanOutput($this->ftitle); ?>" />\r
+       </div>\r
+       \r
+       <div class="row">\r
+               <div style="font-weight:bold;"><?php echo _AT('release_date');  ?></div>\r
+               <?php if ($_POST['day']) { ?>\r
+                       <?php\r
+                               $today_day   = $_POST['day'];\r
+                               $today_mon   = $_POST['month'];\r
+                               $today_year  = $_POST['year'];\r
+\r
+                               $today_hour  = $_POST['hour'];\r
+                               $today_min   = $_POST['min'];           \r
+               }?>\r
+               <?php require(AT_INCLUDE_PATH.'html/release_date.inc.php');     ?>\r
+       </div>\r
+\r
+       <?php if (isset($this->pretests)) {?>\r
+       <div class="row">\r
+               <div style="font-weight:bold;"><?php echo _AT('define_pretest'); ?></div>\r
+               <p><?php echo _AT('about_pretest'); ?></p>\r
+       </div>\r
+\r
+       <div class="row">\r
+       <div class="table-surround">\r
+       <table class="data" summary="Title, status, release results, and pass score of available tests">\r
+       <thead>\r
+       <tr>\r
+               <th scope="col">&nbsp;</th>\r
+               <th scope="col"><?php echo _AT('title');          ?></th>\r
+               <th scope="col"><?php echo _AT('status');         ?></th>\r
+               <th scope="col"><?php echo _AT('result_release'); ?></th>\r
+               <th scope="col"><?php echo _AT('pass_score');     ?></th>\r
+               <!-- REMOVED FOR MOBILE <th scope="col"><?php// echo _AT('assigned_to');          ?></th>-->\r
+       </tr>\r
+       </thead>\r
+       <tbody>\r
+       <?php foreach ($this->pretests as $row) { ?>\r
+       <?php\r
+               $checkMe = '';\r
+               if (is_array($_POST['pre_tid']) && in_array($row['test_id'], $_POST['pre_tid'])){\r
+                       $checkMe = ' checked="checked"';\r
+               } \r
+       ?>\r
+       <tr onmousedown="toggleTestSelect('r_<?php echo $row['test_id']; ?>');rowselect(this);" id="r_<?php echo $row['test_id']; ?>">\r
+               <td><input type="checkbox" name="tid[]" value="<?php echo $row['test_id']; ?>" id="t<?php echo $row['test_id']; ?>" <?php echo $checkMe; ?> onmouseup="this.checked=!this.checked" /></td>\r
+               <td><?php echo $row['title']; ?></td>\r
+               <td><?php echo $row['status']; ?></td>\r
+               <!-- <td><?php echo $row['availability']; ?></td> -->\r
+               <td><?php echo $row['result_release']; ?></td>\r
+               <td><?php echo $row['pass_score']; ?></td>\r
+               <!-- REMOVED FOR MOBILE <td><?php echo $row['assign_to']; ?></td>-->\r
+       </tr>\r
+       <?php } ?>\r
+       </tbody>\r
+       </table>\r
+       </div>\r
+       </div>\r
+<?php }?>\r
+\r
+       <div class="row buttons">\r
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" title="<?php echo _AT('save_changes'); ?> alt-s" accesskey="s" />\r
+       </div>\r
+</div>\r
+</form>\r
+\r
+<script language="javascript" type="text/javascript">\r
+       function toggleTestSelect(r_id){\r
+               var row = document.getElementById(r_id);\r
+               var checkBox = row.cells[0].firstChild;\r
+\r
+               if (checkBox.checked == true){\r
+                       checkBox.checked = false;\r
+               } else {\r
+                       checkBox.checked = true;\r
+               }\r
+       }\r
+</script>
\ No newline at end of file
diff --git a/docs/themes/mobile/editor/page_student_stats.tmpl.php b/docs/themes/mobile/editor/page_student_stats.tmpl.php
new file mode 100644 (file)
index 0000000..f9a650f
--- /dev/null
@@ -0,0 +1,26 @@
+<table class="data" summary="">
+<thead>
+<tr>
+       <th scope="col"><?php echo _AT('login_name'); ?></th>
+       <th scope="col"><?php echo _AT('visits'); ?></th>
+       <th scope="col"><?php echo _AT('avg_duration'); ?></th>
+       <th scope="col"><?php echo _AT('duration'); ?></th>
+</tr>
+</thead>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)) : ?>
+       <?php do { ?>
+       <tr onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/student_usage.php?id=<?php echo $row['member_id']; ?>'" title="<?php echo _AT('member_stats'); ?>">
+               <td><a href="<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/student_usage.php?id=<?php echo $row['member_id']; ?>"><?php echo get_display_name($row['member_id']); ?></a></td>
+               <td><?php echo $row['counter']; ?></td>
+               <td><?php echo $row['average']; ?></td>
+               <td><?php echo $row['total']; ?></td>
+       </tr>
+       <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
diff --git a/docs/themes/mobile/images/arrow-up-black.png b/docs/themes/mobile/images/arrow-up-black.png
new file mode 100644 (file)
index 0000000..8e0ed50
Binary files /dev/null and b/docs/themes/mobile/images/arrow-up-black.png differ
diff --git a/docs/themes/mobile/images/clr.gif b/docs/themes/mobile/images/clr.gif
new file mode 100644 (file)
index 0000000..4146548
Binary files /dev/null and b/docs/themes/mobile/images/clr.gif differ
diff --git a/docs/themes/mobile/images/down.png b/docs/themes/mobile/images/down.png
new file mode 100644 (file)
index 0000000..f12a7b6
Binary files /dev/null and b/docs/themes/mobile/images/down.png differ
diff --git a/docs/themes/mobile/images/idi_background.png b/docs/themes/mobile/images/idi_background.png
new file mode 100644 (file)
index 0000000..0878553
Binary files /dev/null and b/docs/themes/mobile/images/idi_background.png differ
diff --git a/docs/themes/mobile/images/minus.png b/docs/themes/mobile/images/minus.png
new file mode 100644 (file)
index 0000000..08338fa
Binary files /dev/null and b/docs/themes/mobile/images/minus.png differ
diff --git a/docs/themes/mobile/images/navbar_back_button_insetShadow_right.png b/docs/themes/mobile/images/navbar_back_button_insetShadow_right.png
new file mode 100644 (file)
index 0000000..bcedbcd
Binary files /dev/null and b/docs/themes/mobile/images/navbar_back_button_insetShadow_right.png differ
index 305ea1b..ed445cb 100644 (file)
Binary files a/docs/themes/mobile/images/navbar_normal_button_insetShadow.png and b/docs/themes/mobile/images/navbar_normal_button_insetShadow.png differ
diff --git a/docs/themes/mobile/images/plus.png b/docs/themes/mobile/images/plus.png
new file mode 100644 (file)
index 0000000..3757fb1
Binary files /dev/null and b/docs/themes/mobile/images/plus.png differ
diff --git a/docs/themes/mobile/images/up.png b/docs/themes/mobile/images/up.png
new file mode 100644 (file)
index 0000000..8175898
Binary files /dev/null and b/docs/themes/mobile/images/up.png differ
diff --git a/docs/themes/mobile/images/white_listmenu_arrow.png b/docs/themes/mobile/images/white_listmenu_arrow.png
new file mode 100644 (file)
index 0000000..8c39032
Binary files /dev/null and b/docs/themes/mobile/images/white_listmenu_arrow.png differ
diff --git a/docs/themes/mobile/inbox/inbox.tmpl.php b/docs/themes/mobile/inbox/inbox.tmpl.php
new file mode 100644 (file)
index 0000000..f4a82f6
--- /dev/null
@@ -0,0 +1,100 @@
+
+<?php 
+       if ($row = mysql_fetch_assoc($this->result_messages)) {
+?>
+       <ul id="inbox-msg">
+       <li>
+               <div class="forum-post-author">
+                       <a href="profile.php?id=<?php echo $row['from_member_id']; ?>" class="title"><?php echo get_display_name($row['from_member_id']); ?></a><br />
+                       <?php print_profile_img($row['from_member_id']); ?>
+               </div>
+
+               <div class="forum-post-content">
+                       <h3><?php echo AT_print($row['subject'], 'messages.subject'); ?></h3>
+                       <div>
+                               <div class="forum-post-ctrl">
+                                       <a href="inbox/send_message.php?reply=<?php echo $_GET['view']; ?>"><?php echo _AT('reply'); ?></a> | <a href="<?php echo $_SERVER['PHP_SELF']; ?>?delete=<?php echo $_GET['view']; ?>"><?php echo _AT('delete'); ?></a>
+                               </div>
+                               <p class="date"><?php echo AT_date(_AT('forum_date_format'), $row['date_sent'], AT_DATE_MYSQL_DATETIME); ?></p>
+                       </div>
+
+                       <div class="body">
+                               <p><?php echo AT_print($row['body'], 'messages.body'); ?></p>
+                       </div>
+               </div>
+
+       </li>
+       </ul><br /><br />
+       <?php
+       }
+?>
+       
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form" >
+<div class="table-surround">
+<table class="data" summary="" >
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col">&nbsp;</th>
+       <th scope="col" ><?php echo _AT('from');   ?></th>
+       <th scope="col" ><?php echo _AT('subject');?></th>
+       <th scope="col" ><?php echo _AT('date');   ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="5"><input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"/></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)): ?>
+       <?php do { ?>
+               <?php if ($row['message_id'] == $_GET['view']): ?>
+                       <tr class="selected">
+               <?php else: ?>
+                       <tr onmousedown="document.form['m<?php echo $row['message_id']; ?>'].checked = !document.form['m<?php echo $row['message_id']; ?>'].checked; rowselectbox(this, document.form['m<?php echo $row['message_id']; ?>'].checked, '');" id="r_<?php echo $row['message_id']; ?>_1">
+               <?php endif; ?>
+               <td><input type="checkbox" name="id[]" value="<?php echo $row['message_id']; ?>" id="m<?php echo $row['message_id']; ?>" <?php if (isset($_POST['id']) && in_array($row['message_id'], $_POST['id'])) { echo 'checked="checked"'; } ?> title="<?php echo _AT('delete').': '.AT_print($row['subject'], 'messages.subject');?>" onmouseup="this.checked=!this.checked" /></td>
+               <td valign="middle">
+               <?php
+               if ($row['new'] == 1)   {
+                       echo _AT('new');
+               } else if ($row['replied'] == 1) {
+                       echo _AT('replied');
+               }
+               echo '</td>';
+
+               $name = get_display_name($row['from_member_id']);
+
+               echo '<td align="left" valign="middle">';
+
+               if ($_GET['view'] != $row['message_id']) {
+                       echo $name;
+               } else {
+                       echo '<strong>'.$name.'</strong>';
+               }
+               echo '</td>';
+
+               echo '<td><label for="m'.$row['message_id'].'">';
+               if ($_GET['view'] != $row['message_id']) {
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?view='.$row['message_id'].'">'.AT_print($row['subject'], 'messages.subject').'</a>';
+               } else {
+                       echo '<strong>'.AT_print($row['subject'], 'messages.subject').'</strong>';
+               }
+               echo '</label></td>';
+       
+               echo '<td valign="middle" align="left" nowrap="nowrap">';
+               echo AT_date(_AT('forum_date_format'),  $row['date_sent'], AT_DATE_MYSQL_DATETIME);
+               //echo AT_date(_AT('%D',  $row['date_sent'], AT_DATE_MYSQL_DATETIME);
+               echo '</td>';
+               echo '</tr>';
+       } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="5"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/inbox/sent_messages.tmpl.php b/docs/themes/mobile/inbox/sent_messages.tmpl.php
new file mode 100644 (file)
index 0000000..f92a648
--- /dev/null
@@ -0,0 +1,94 @@
+
+<?php 
+       if ($row = mysql_fetch_assoc($this->result_messages)) {
+?>
+       <ul id="inbox-msg">
+       <li>
+               <div class="forum-post-author">
+                       <a href="profile.php?id=<?php echo $row['to_member_id']; ?>" class="title"><?php echo get_display_name($row['to_member_id']); ?></a><br />
+                       <?php print_profile_img($row['to_member_id']); ?>
+               </div>
+
+               <div class="forum-post-content">
+                       <h3><?php echo AT_print($row['subject'], 'messages.subject'); ?></h3>
+                       <div>
+                               <div class="forum-post-ctrl">
+                                       <a href="inbox/send_message.php?forward=<?php echo $_GET['view']; ?>"><?php echo _AT('forward'); ?></a> | <a href="<?php echo $_SERVER['PHP_SELF']; ?>?delete=<?php echo $_GET['view']; ?>"><?php echo _AT('delete'); ?></a>
+                               </div>
+                               <p class="date"><?php echo AT_date(_AT('forum_date_format'), $row['date_sent'], AT_DATE_MYSQL_DATETIME); ?></p>
+                       </div>
+
+                       <div class="body">
+                               <p><?php echo AT_print($row['body'], 'messages.body'); ?></p>
+                       </div>
+                       <div style="clear: both; font-size:0.1em"></div>
+               </div>
+       </li>
+       </ul>
+       <?php
+       }
+?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<div class="table-surround">
+<table class="data" >
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col" ><?php echo _AT('to');   ?></th>
+       <th scope="col" ><?php echo _AT('subject');?></th>
+       <th scope="col" ><?php echo _AT('date');   ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="4">
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"/>
+               <input type="submit" name="move" value="<?php echo _AT('move_to_inbox'); ?>"/>
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)): ?>
+       <?php do { ?>
+               <?php if ($row['message_id'] == $_GET['view']): ?>
+                       <tr class="selected">
+               <?php else: ?>
+                       <tr onmousedown="document.form['m<?php echo $row['message_id']; ?>'].checked = !document.form['m<?php echo $row['message_id']; ?>'].checked; rowselectbox(this, document.form['m<?php echo $row['message_id']; ?>'].checked, '');" id="r_<?php echo $row['message_id']; ?>_1">
+               <?php endif; ?>
+               <td><input type="checkbox" name="id[]" value="<?php echo $row['message_id']; ?>" id="m<?php echo $row['message_id']; ?>" <?php if (isset($_POST['id']) && in_array($row['message_id'], $_POST['id'])) { echo 'checked="checked"'; } ?> title="<?php echo _AT('delete').': '.AT_print($row['subject'], 'messages.subject');?>" onmouseup="this.checked=!this.checked" /></td>
+               <?php
+
+               $name = get_display_name($row['to_member_id']);
+
+               echo '<td align="left" valign="middle">';
+
+               if ($_GET['view'] != $row['message_id']) {
+                       echo $name;
+               } else {
+                       echo '<strong>'.$name.'</strong>';
+               }
+               echo '</td>';
+
+               echo '<td><label for="m'.$row['message_id'].'">';
+               if ($_GET['view'] != $row['message_id']) {
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?view='.$row['message_id'].'">'.AT_print($row['subject'], 'messages.subject').'</a>';
+               } else {
+                       echo '<strong>'.AT_print($row['subject'], 'messages.subject').'</strong>';
+               }
+               echo '</label></td>';
+       
+               echo '<td valign="middle" align="left" nowrap="nowrap">';
+               echo AT_date(_AT('forum_date_format'),  $row['date_sent'], AT_DATE_MYSQL_DATETIME);
+               echo '</td>';
+               echo '</tr>';
+       } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
index a83aec5..45b9c2d 100644 (file)
@@ -1,55 +1,90 @@
 <?php if (!defined('AT_INCLUDE_PATH')) { exit; } ?>
-       <?php if (isset($_SESSION['course_id']) && $_SESSION['course_id'] > 0): ?>
-                       <div id="gototop">              
-                               <br />
-                               <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#navigation-contentwrapper" title="<?php echo _AT('goto_content'); ?> Alt-c" ><?php echo _AT('goto_top'); ?>
-                               <img src="<?php echo $this->base_path; ?>themes/mobile/images/arrow-up.png" alt="<?php echo _AT('goto_top'); ?> Alt-c" border="0"/> 
-                               
-                               </a>
-                       </div>  
-               <?php endif; ?> 
+<?php if ($this->mobile_device_type != IPAD_DEVICE): ?><!-- begin footer template for iphone, android, and blackberry -->
+
+
 </div> <!-- end innner-contentwrapper -->      
-</div> <!-- end contentcolumn? -->
+</div> <!-- end contentcolumn -->
 </div> <!-- end contentwrapper -->
 </div> <!-- end main -->
 </div> <!-- end wrapper -->
 
-
 <div id="footer" class="fl-navbar fl-table">
-<div id="top-links"> <!-- top help/search/login links -->
-       <ul class="fl-tabs flc-themer">  
+<div id="footer-links"> <!-- top help/search/login links -->
+       <ul class="footer-links-tabs fl-tabs flc-themer" role="menu">  
                <?php if (isset($_SESSION['member_id']) && $_SESSION['member_id'] > 0): ?>
                        <?php if(!$this->just_social): ?>                                       
                                <?php if ($_SESSION['is_super_admin']): ?>
-                               <li>    <a  href="<?php echo $this->base_path; ?>bounce.php?admin"><?php echo _AT('return_to_admin_area'); ?></a> </li>
+                               <li role="menuitem">    <a  href="<?php echo $this->base_path; ?>bounce.php?admin"><?php echo _AT('back'); ?></a> </li>
                                <?php endif; ?>
        
                                <?php if ($this->course_id > -1): ?>
                                        <?php if (get_num_new_messages()): ?>
-                               <li>            <a  href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?> (<?php echo get_num_new_messages(); ?>)</a> </li>
+                               <li role="menuitem">            <a  href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?> (<?php echo get_num_new_messages(); ?>)</a> </li>
                                        <?php else: ?>
-                               <li>            <a href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?></a></li>
+                               <li role="menuitem">            <a href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?></a></li>
                                        <?php endif; ?>
                                <?php endif; ?>
                        <?php endif; ?>
                <?php endif; ?>
-
+               <!--  SEARCH MOVED TO #topnavlist 
                <?php if(!$this->just_social): ?>
                        <li><a href="<?php echo $this->base_path; ?>search.php"><?php echo _AT('search'); ?></a> </li>
-               <?php endif; ?> 
-               <li><a href="<?php echo $this->base_path; ?>help/index.php"><?php echo _AT('help'); ?></a></li>
+               <?php endif; ?> -->
+               <li role="menuitem"><a href="<?php echo $this->base_path; ?>help/index.php"><?php echo _AT('help'); ?></a></li>
 
                <?php if (isset($_SESSION['valid_user']) && $_SESSION['valid_user']): ?>                                         
-                       <li><a href="<?php echo $this->base_path; ?>logout.php"><?php echo _AT('logout'); ?></a></li>
+                       <li role="menuitem"><a href="<?php echo $this->base_path; ?>logout.php"><?php echo _AT('logout'); ?></a></li>
                <?php else: ?>
                        <!-- <li><a href="<?php echo $this->base_path; ?>login.php?course=<?php echo $this->course_id; ?>"><?php echo _AT('login'); ?></a></li> -->
                <?php endif; ?>
+</ul>                  
+ </div>                        
+</div>
+
+       <script language="javascript" type="text/javascript">
+//<!--
+    <?php require_once(AT_INCLUDE_PATH.'../jscripts/ATutor_js.php'); ?>
+//-->
+</script>
+</body>
+<?php endif;?><!--  end footer template for iphone, android and blackberry -->
+<?php if ($this->mobile_device_type == IPAD_DEVICE): ?> <!-- start footer template for ipad/talets -->
 
+</div> <!-- end main -->
+</div> <!-- end innner-contentwrapper -->      
+</div> <!-- end contentcolumn -->
 
+<div id="footer" class="fl-navbar fl-table">
+<div id="footer-links"> <!-- top help/search/login links -->
+       <ul class="footer-links-tabs fl-tabs flc-themer" role="menu">  
+               <?php if (isset($_SESSION['member_id']) && $_SESSION['member_id'] > 0): ?>
+                       <?php if(!$this->just_social): ?>                                       
+                               <?php if ($_SESSION['is_super_admin']): ?>
+                               <li role="menuitem">    <a  href="<?php echo $this->base_path; ?>bounce.php?admin"><?php echo _AT('back'); ?></a> </li>
+                               <?php endif; ?>
+       
+                               <?php if ($this->course_id > -1): ?>
+                                       <?php if (get_num_new_messages()): ?>
+                               <li role="menuitem">            <a  href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?> (<?php echo get_num_new_messages(); ?>)</a> </li>
+                                       <?php else: ?>
+                               <li role="menuitem">            <a href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?></a></li>
+                                       <?php endif; ?>
+                               <?php endif; ?>
+                       <?php endif; ?>
+               <?php endif; ?>
                
+               <?php if(!$this->just_social): ?>
+                       <li role="menuitem"><a href="<?php echo $this->base_path; ?>search.php"><?php echo _AT('search'); ?></a> </li>
+               <?php endif; ?> 
+               <li role="menuitem"><a href="<?php echo $this->base_path; ?>help/index.php"><?php echo _AT('help'); ?></a></li>
 
+               <?php if (isset($_SESSION['valid_user']) && $_SESSION['valid_user']): ?>                                         
+                       <li role="menuitem"><a href="<?php echo $this->base_path; ?>logout.php"><?php echo _AT('logout'); ?></a></li>
+               <?php else: ?>
+                       <!-- <li><a href="<?php echo $this->base_path; ?>login.php?course=<?php echo $this->course_id; ?>"><?php echo _AT('login'); ?></a></li> -->
+               <?php endif; ?>
 </ul>                  
-</div>                 
+ </div>                        
 </div>
        <script language="javascript" type="text/javascript">
 //<!--
@@ -57,4 +92,5 @@
 //-->
 </script>
 </body>
+<?php endif; ?><!--  end footer template for ipad/tablets -->
 </html>
\ No newline at end of file
index f8d05fd..e1c60f7 100644 (file)
@@ -48,6 +48,7 @@ if (!defined('AT_INCLUDE_PATH')) { exit; }
  * is_mobile_device          true or false                    the request is from a mobile device or a desktop device
  * mobile_device_type        One of the constants: IPOD_DEVICE, BLACKBERRY_DEVICE, ANDROID_DEVICE, UNKNOWN_DEVICE (@see include/lib/constants.inc.php)
  */
 
 // will have to be moved to the header.inc.php
 global $system_courses, $_custom_css, $db, $_base_path, $contentManager;
@@ -66,25 +67,115 @@ $wurflObj->getCapabilitiesFromAgent(null, $capabilities, $data_format);
 $this->onload .= "
 jQuery('#content_link').click(function(e) {
   e.stopPropagation();
-  jQuery('#content').slideToggle();";
+  
+  jQuery('#content').slideToggle(0);
+  jQuery('#content_link').toggleClass('content_link_tablet_highlight');
+  jQuery('#content_link').toggleClass('triangle-isosceles'); 
+  jQuery('#content_link').toggleClass('top'); 
+  jQuery('#content_link').toggleClass('right');    
+  ";
 $this->onload .= "});
 ";
 
-// open/close navigational menu 
+//open/close subnavlist in smartphones    
+
+$this->onload .= "
+jQuery('#subnavlist-link').click(function(e) {
+  e.stopPropagation();
+  
+  jQuery('#subnavlist').slideToggle();
+  jQuery('#subnavlist-link').toggleClass('content-closed');
+  jQuery('#subnavlist-link').toggleClass('subnavcontain-active');
+  jQuery('.subnavcontain').toggleClass('subnavcontain3');     
+  ";
+$this->onload .= "});
+";
+// open/close content menu - smartphones 
+$this->onload .= "
+jQuery('#content_link_phone').click(function(e) {
+  e.stopPropagation();
+  
+  jQuery('#content').slideToggle();
+  jQuery('#content_link_phone').toggleClass('topnavlist-link-highlight');
+  jQuery('#content_link_phone').toggleClass('content-closed'); 
+  jQuery('.subnavcontain').toggleClass('subnavcontain3'); 
+  ";
+$this->onload .= "});
+";
+
+// open/close header navigational menu for smartphones
+// jQuery('#topnavlist-link').toggleClass('topnavlist-link-highlight');
 $this->onload .= "
 jQuery(document).click(function () {
-jQuery('#topnavlist').hide();}); 
-jQuery('#topnavlist-link').click(function(e) {
+jQuery('#topnavlist').slideUp(600);}); 
+jQuery('.topnavlist-link').click(function(e) {
   e.stopPropagation();
   jQuery('#topnavlist').slideToggle();
+ jQuery('#topnavlist-link').toggleClass('.topnavlist-link-highlight');
+});
+";
+
+// open/close header navigational menu for tablets
+
+$this->onload .= "
+jQuery(document).click(function () {
+jQuery('#navigation-column').slideUp(200);}); 
+jQuery('.topnavlist-link').click(function(e) {
+  e.stopPropagation();
+  jQuery('#navigation-column').slideToggle(0);
+    jQuery('#topnavlist-link').toggleClass('topnavlist-link-highlight');
+    jQuery('#topnavlist-link').toggleClass('triangle-isosceles');
+    jQuery('#topnavlist-link').toggleClass('top');
+});
+";
+
+//jQuery for Gmail dock-style "more" button that makes the subnavlist expand for more options
+$this->onload .= "
+
+jQuery('.more-button').toggle(function(e) {
+  jQuery('.subnavlist-more').show();
+  jQuery('#switch').attr('src','images/hidemenu.gif' );
+  jQuery('#switch').attr('title', 'less menu items'); 
+  jQuery('#switch').attr('alt', 'less menu items');
+},function(){
+  jQuery('.subnavlist-more').hide(); 
+  jQuery('#switch').attr('src', 'images/showmenu.gif' );
+  jQuery('#switch').attr('title', 'more menu items'); 
+  jQuery('#switch').attr('alt', 'more menu items');
 });
 ";
 
+//hide and show results        on Browse Courses page
+
+$this->onload .= "
+jQuery('#results-hide-show-link').click(function(e) {
+  e.stopPropagation();
+    jQuery('#results-display').slideToggle();
+    jQuery(this).toggleClass('content-closed');
+    jQuery(this).preventDefault();
+  ";
+$this->onload .= "});
+";
+
+//hide and show results        elsewhere (uses classes) 
+$this->onload .= "
+jQuery('.results-hide-show-link').click(function(e) {
+  e.stopPropagation();
+       jQuery(this).parent().next('.results-display').slideToggle(); 
+         jQuery(this).toggleClass('content-closed');
+  ";
+$this->onload .= "});
+";
+       
+
 // Hide the addressbar
 $this->onload .= "
 setTimeout(function() { window.scrollTo(0, 1) }, 100);
 ";
 
+
+
 ?>
 
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -95,45 +186,46 @@ setTimeout(function() { window.scrollTo(0, 1) }, 100);
        <title><?php echo SITE_NAME; ?> : <?php echo $this->page_title; ?></title>
        <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->lang_charset; ?>" />
        <meta name="Generator" content="ATutor - Copyright 2005 by http://atutor.ca" />
-       <meta name="viewport" content="user-scalable=no, width=device-width" />
        <base href="<?php echo $this->content_base_href; ?>" />
        <link rel="shortcut icon" href="<?php echo $this->base_path; ?>favicon.ico" type="image/x-icon" /> 
        <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/print.css" type="text/css" media="print" />
-       <!-- mobile FSS -->
+       <!-- mobile fss -->     
        <link rel="stylesheet" href="<?php echo $this->base_path; ?>jscripts/infusion/framework/fss/css/fss-mobile-layout.css" type="text/css"/>
        <link rel="stylesheet" href="<?php echo $this->base_path; ?>jscripts/infusion/framework/fss/css/fss-mobile-theme-iphone.css" type="text/css"/>  
        
-
-
 <?php if ($this->is_mobile_device == true): ?>
        <?php if ($this->mobile_device_type == ANDROID_DEVICE): ?>
-       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/android.css" type="text/css"/>
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/mobile.css" type="text/css"/>
+       <meta name="viewport" content="user-scalable=no, width=device-width" />
        <?php endif; ?>
        <?php if ($this->mobile_device_type == IPOD_DEVICE || $this->mobile_device_type == IPHONE_DEVICE): ?>
-       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/iphone.css" type="text/css"/>
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/mobile.css" type="text/css"/>
+       <meta name="viewport" content="user-scalable=no, width=device-width" />
        <?php endif; ?>
        <!-- Armin 25.08.2010: Detect BLACKBERRY_DEVICE and use blackberry.css-->
        <?php if ($this->mobile_device_type == BLACKBERRY_DEVICE): ?>
        <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/blackberry.css" type="text/css"/>
+       <meta name="viewport" content="user-scalable=no, width=device-width" />
+       <?php endif; ?>
+       <?php if ($this->mobile_device_type == IPAD_DEVICE): ?>
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/tablet.css" type="text/css"/>
+       <meta name="viewport" content="width=768px, minimum-scale=1.0, maximum-scale=1.0" />
        <?php endif; ?>
 <?php endif; ?>
 
-       <!--[if IE]>
-         <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/ie_styles.css" type="text/css" />
-       <![endif]-->
        <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/forms.css" type="text/css" />
-               
-
+       <!-- Fluid Infusion mobile fss extension... Remove when it is committed to Mobile FSS.  
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/moz.css" type="text/css" />-->      
+       <!-- Fluid Infusion -->
        <script src="<?php echo $this->base_path; ?>jscripts/infusion/InfusionAll.js" type="text/javascript"></script>
        <script language="javascript" type="text/javascript">
+
        //<!--
        jQuery.noConflict();
        //-->
        </script>
        <script src="<?php echo $this->base_path; ?>jscripts/ATutor.js" type="text/javascript"></script>   
-<?php if (($wurflObj->getDeviceCapability("mobile_browser")=="Safari")): ?>    
 
-<?php endif; ?>
        
 <?php echo $this->rtl_css; ?>
 <?php if (isset($this->course_id) && $system_courses[$this->course_id]['rss']): ?>
@@ -144,143 +236,426 @@ setTimeout(function() { window.scrollTo(0, 1) }, 100);
 
 <?php echo $this->custom_css; ?>
 </head>
-<body onload="<?php echo $this->onload; ?>" class="fl-theme-iphone">
+
+
+<?php if ($this->mobile_device_type != IPAD_DEVICE): ?><!--  smartphone theme only -->
+
+<body onload="<?php echo $this->onload; ?>" class="fl-theme-iphone ui-mobile-viewport">
 
 <div id="wrapper">
 <div id="main">
-<div id="header">
+       <div id="header">
 
-       <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#content">
-       <img src="<?php echo $this->base_path; ?>images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AT('goto_content'); ?> ALT+c" /></a>          
+               <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#content">
+               <img src="<?php echo $this->base_path; ?>images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AT('goto_content'); ?> ALT+c" /></a>          
 
-       <div id="header-section-title">
-               <!-- <?php if (isset($_SESSION['valid_user']) && $_SESSION['valid_user']): 
-                               echo '<div id="site-name">'.stripslashes(SITE_NAME).'</div>'; 
-                       endif; ?> --> 
+               <div id="header-section-title">
+                       <!-- <?php if (isset($_SESSION['valid_user']) && $_SESSION['valid_user']): 
+                                       echo '<div id="site-name">'.stripslashes(SITE_NAME).'</div>'; 
+                               endif; ?> --> 
                        <h1 id="section-title"><?php echo $this->section_title; ?>
-                       <?php if ((isset($this->course_id) && $this->course_id > 0) && ($_SESSION['enroll'] == AT_ENROLL_NO)) : ?> 
+                               <?php if ((isset($this->course_id) && $this->course_id > 0) && ($_SESSION['enroll'] == AT_ENROLL_NO)) : ?> 
                                <!-- <small><a href="<?php echo $this->base_path; ?>enroll.php?course=<?php echo $this->course_id; ?>"><?php echo _AT('enroll_me'); ?></a></small>-->
-                       <?php endif; ?>
-                       </h1>
-       </div>
-</div> <!--  END HEADER -->
-
+                               <?php endif; ?>
+                               </h1>
+               </div>
+       </div> <!--  END HEADER -->
 
-<div id="contentwrapper">
 
-<!--  Note: ARIA roles cause XHTML validation errors because the XHTML DTD does not yet support ARIA. Use ARIA anyway -->
-<div id="navigation-contentwrapper">
+       <div id="contentwrapper">
+       <div id="navigation-contentwrapper">
        <div id="navigation-bar">
-       <!--  this should be a button on its own  -->
-               <?php if ($this->current_sub_level_page): ?>
-               <div id="topnavlistcontainer" role="navigation" aria-live="assertive" >
-               <a class="navigation-bar-button" id="topnavlist-link" href="javascript:void(0);" tabindex="1"><?php echo _AT('navigation'); ?></a>
-                       <ul id="topnavlist"  class="fl-list-menu">
-                               <?php $accesscounter = 0; //initialize ?>
-                               <?php foreach ($this->top_level_pages as $page): ?>
-                                       <?php ++$accesscounter; $accesscounter = ($accesscounter == 10 ? 0 : $accesscounter); ?>
-                                       <?php $accesskey_text = ($accesscounter < 10 ? 'accesskey="'.$accesscounter.'"' : ''); ?>
-                                       <?php $accesskey_title = ($accesscounter < 10 ? ' Alt+'.$accesscounter : ''); ?>
-                                       <?php if ($page['url'] == $this->current_top_level_page): ?>
-                                               <li role="menuitem"><a  href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title'];?>" class="flc-screenNavigator-backButton"><?php echo $page['title']; ?></a>  </li>
-                                       <?php else: ?>
-                                               <li role="menuitem"><a  href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title']; ?>" class="flc-screenNavigator-backButton"><?php echo $page['title']; ?></a></li>
-                                       <?php endif; ?>
+
+                       <?php if ($this->current_sub_level_page): ?>
+                       <div id="topnavlistcontainer" role="menu" aria-live="assertive" class="topnavlistcontainer" >
+                       <a class="navigation-bar-button topnavlist-link" id="topnavlist-link" href="javascript:void(0);" tabindex="1"><?php echo _AT('navigation'); ?></a>
+                               <ul id="topnavlist"  class="fl-list-menu" role="menu">
+                                       <?php $accesscounter = 0; //initialize ?>
+                                       <?php foreach ($this->top_level_pages as $page): ?>
+                                               <?php ++$accesscounter; $accesscounter = ($accesscounter == 10 ? 0 : $accesscounter); ?>
+                                               <?php $accesskey_text = ($accesscounter < 10 ? 'accesskey="'.$accesscounter.'"' : ''); ?>
+                                               <?php $accesskey_title = ($accesscounter < 10 ? ' Alt+'.$accesscounter : ''); ?>
+                                               <?php if ($page['url'] == $this->current_top_level_page): ?>
+                                                       <li role="menuitem"><span class="arrow-highlight"><a  href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title'];?>"><?php echo $page['title']; ?></a></span></li>
+                                               <?php else: ?>
+                                                       <li role="menuitem"><span class="arrow-highlight"><a  href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title']; ?>"><?php echo $page['title']; ?></a></span></li>
+                                               <?php endif; ?>
                                
-                                       <?php $accesscounter = ($accesscounter == 0 ? 11 : $accesscounter); ?>
-                               <?php endforeach; ?>
-                       </ul>
+                                               <?php $accesscounter = ($accesscounter == 0 ? 11 : $accesscounter); ?>
+                                       
+                                       <?php endforeach; ?>
+                                       <?php if(!$this->just_social): ?>
+                                       <li role="menuitem"><span class="arrow-highlight"><a href="<?php echo $this->base_path; ?>search.php"><?php echo _AT('search'); ?></a></span></li>
+                                       <?php endif; ?> 
+                               </ul>
+                       </div>
+                       <?php endif; ?>
                </div>
-               <?php endif; ?>
-       </div>
 
+                               
 
-       <ul class="fl-tabs" id="home-guide">
 
-               <li><a href="<?php echo $this->base_path; ?>users/index.php"><?php echo _AT("home"); ?></a></li>
-               <?php if (isset($this->guide) && isset($_SESSION["course_id"]) && $this->guide && ($_SESSION["prefs"]["PREF_SHOW_GUIDE"] || $_SESSION["course_id"] == "-1")) : ?>
-               <li>
-               <div id="guide_box">
-                               <!--    <a href="<?php echo $this->guide; ?>" id="guide" onclick="ATutor.poptastic('<?php echo $this->guide; ?>'); return false;" target="_new"><img src="<?php echo $this->img; ?>guide-icon.png" width="30" height="30" title="guide: <?php echo $this->page_title; ?>"alt="guide: <?php echo $this->page_title; ?>"></img></a> -->
+       <ul class="home-guide fl-tabs" id="home-guide" role="menu">
+       <!--  CHECK TO SEE IF USER IS A STUDENT -->
+       <?php if($_SESSION['is_admin'] == 0 && $_SESSION['privileges'] == 0 ):?>
+               <li role="menuitem"><a  href="<?php echo $this->base_path; ?>users/index.php"><?php echo _AT("home"); ?></a></li> 
+       <?php endif;?>          
+       <!--  CHECK TO SEE IF USER IS AN ADMINISTRATOR -->
+       <?php //if($_SESSION['is_admin'] == 0 && $_SESSION['privileges'] == 1):
+               if($_SESSION['is_admin'] == 0 && $_SESSION['privileges'] == AT_ADMIN_PRIV_ADMIN):?>
+               <li role="menuitem"><a href="<?php echo $this->base_path; ?>admin/index.php"><?php echo _AT("home"); ?></a></li> 
+       <?php endif;?>
+       <!--  CHECK TO SEE IF USER IS AN INSTRUCTOR -->
+       <?php if($_SESSION['is_admin'] == 1): ?>
+               <li role="menuitem"><a href="<?php echo $this->base_path; ?>users/index.php"><?php echo _AT("home"); ?></a></li> 
+       <?php endif;?>
+       
+       <?php if (isset($this->guide) && isset($_SESSION["course_id"]) && $this->guide && ($_SESSION["prefs"]["PREF_SHOW_GUIDE"] || $_SESSION["course_id"] == "-1")) : ?>
+                       <li role="menuitem">
+                       <div id="guide_box">
+                                       <!--    <a href="<?php echo $this->guide; ?>" id="guide" onclick="ATutor.poptastic('<?php echo $this->guide; ?>'); return false;" target="_new"><img src="<?php echo $this->img; ?>guide-icon.png" width="30" height="30" title="guide: <?php echo $this->page_title; ?>"alt="guide: <?php echo $this->page_title; ?>"></img></a> -->
                
-                         <a href="<?php echo $this->guide; ?>" id="guide" onclick="ATutor.poptastic('<?php echo $this->guide; ?>'); return false;" target="_new"><?php echo _AT("guide"); ?></a> 
-               </div>
-               </li>
-               <?php endif; ?>
-       </ul>
-</div><!--  END navigation-contentwrapper -->
-
-<div id="inner-contentwrapper" class="fl-container">
-       <!-- ENSURE "content_link" DOESN'T APPEAR IF NOT LOGGED IN -->
+                                 <a href="<?php echo $this->guide; ?>" id="guide" onclick="ATutor.poptastic('<?php echo $this->guide; ?>'); return false;" target="_new"><?php echo _AT("guide"); ?></a> 
+                       </div>
+                       </li>
+                       <?php endif; ?>
+               </ul>
+       </div><!--  END navigation-contentwrapper -->
        
+
+               <div id="inner-contentwrapper" class="fl-container" >
+
        
-       <?php if(isset($_SESSION['course_id']) && $_SESSION['course_id'] > 0): ?> 
-               <div id="content-link-container" role="navigation" aria-live="assertive">
-               <a id="content_link" href="javascript:void(0);"><?php echo _AT("content_navigation"); ?></a>
-               <div id="content" style=" display: none; position: relative; z-index: 1;">
-               <?php $contentManager->printMainMenu(); ?>
-                               <script language="javascript" type="text/javascript">
                        
-                               </script>
-               </div>
-               </div>
-       <?php endif; ?>
-       
-
+               <!-- the sub navigation -->
+               <div id="subnavbacktopage">
+               <?php if (count($this->sub_level_pages) > 0): ?>
+                       
+                       <div id="subnavlistcontainer">
+                               
+                               <!-- id="subnavlist" -->
+                       <div class="subnavcontain-contain" role="menu" aria-live="assertive">   
+                               <div class="subnavcontain">
+                                       <div class="rectangle">
+                                               <?php $num_pages = count($this->sub_level_pages); ?>    
+                                                               <?php for ($i=0; $i<$num_pages; $i++): ?>       
+                                                                       <?php if($i==0): ?>
+                               
+                                                                       <a id="subnavlist-link" class="content-expand" href="javascript:void(0);"> Topics in <?php echo $this->sub_level_pages[$i]['title']; ?></a>
+                                                                       <?php endif; ?>
+                                                               <?php endfor;?>
+                                       </div>
+                               </div>
+                                       <ul id="subnavlist" class="fl-list-menu">
+                                       <?php $num_pages = count($this->sub_level_pages); ?>    
+                                       <?php for ($i=0; $i<$num_pages; $i++): ?>                               
+                                               <?php if ($this->sub_level_pages[$i]['url'] == $this->current_sub_level_page): ?>
+                                                       <li><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li> 
+                                               <?php else: ?>
+                                                       <li><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                               <?php endif; ?>
+                                       <?php if ($i < $num_pages-1): 
+                                               echo " ";?>
+                                       <?php endif; ?>
+                                       <?php endfor; ?>
+                                       </ul>
+                               </div>
+                       </div>  
+               <?php endif; ?>
+       </div> <!--end subnavbacktopage-->      
 
        <div id="contentcolumn">        
-               <?php if ((isset($this->course_id) && $this->course_id <= 0)): ?>
-                       <!-- style="margin-left:0.5em;width:99%;" -->
-               <?php endif; ?>
-               <?php if (isset($this->course_id) && $this->course_id > 0): ?>
-               <div class="sequence-links">
-               <?php if ($_SESSION["prefs"]["PREF_SHOW_NEXT_PREVIOUS_BUTTONS"]) { ?>
-                       <?php if ($this->sequence_links['resume']): ?>
-                                       <a href="<?php echo $this->sequence_links['resume']['url']; ?>" class="previous-next" title="<?php echo _AT('resume').': '.$this->sequence_links['resume']['title']; ?>"><?php echo $this->sequence_links['resume']['title']; ?></a>
-                       <?php else:
-                               if ($this->sequence_links['previous']): ?>
-                                       <a href="<?php echo $this->sequence_links['previous']['url']; ?>" class="previous-next" title="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?>"> <?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> </a>
-                               <?php endif;
-                               if ($this->sequence_links['next']): ?>
-                                       <a href="<?php echo $this->sequence_links['next']['url']; ?>" class="previous-next"  title="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?>"> <?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?></a>
-                               <?php endif; ?>
-                       <?php endif; ?>
-               <?php } ?>
-                       &nbsp;
-               </div> <!-- end sequence-links -->
-               <?php endif; ?>
+               
 
-       <!-- the page title -->
-       <a name="content" title="<?php echo _AT('content'); ?>"></a>
-       <h2 class="page-title"><?php echo $this->page_title; ?></h2>
-       
-       <?php global $msg; $msg->printAll(); $_base_href;?>
-       
-       <!-- the sub navigation -->
-       <?php if (count($this->sub_level_pages) > 0): ?>
-                       <div id="subnavlistcontainer">
-                               <div id="subnavbacktopage">
+               <!--the page title-->
+               <div id="page-title-back-to-page">
+               <a name="content" title="<?php echo _AT('content'); ?>"></a>
+               <h2 class="page-title"><?php echo $this->page_title; ?></h2>
+                       <div id="back-to-page">
                                <?php if (isset($this->back_to_page)): ?>
                                        <a href="<?php echo $this->back_to_page['url']; ?>">
                                        <img border="0" width="10" height="11" alt="<?php echo _AT('back_to').' '.$this->back_to_page['title']; ?>" src="<?php echo $this->base_href; ?>images/arrowicon.gif" style="float:left;"/></a>&nbsp;
                                <?php endif; ?>
+               </div>          
+               </div><!--  end page-title-back-to-page -->
+       
+               <?php global $msg; $msg->printAll(); $_base_href;?>
+                       <div id="content-sequence-links">
+                       <!-- ENSURE "content_link" DOESN'T APPEAR IF NOT LOGGED IN -->
+               <?php if (isset($this->course_id) && $this->course_id > 0): ?>
+       
+               <?php endif; ?>
+       
+       
+       <?php if(isset($_SESSION['course_id']) && $_SESSION['course_id'] > 0): ?> 
+               
+               <div class="subnavcontain-contain" role="menu" aria-live="assertive">   
+                       <div class="subnavcontain">
+                               <div class="rectangle">
+                               <a id="content_link_phone"  class="content-expand" href="javascript:void(0);" >View Course Content</a> 
+                               <!-- <a href="#">content</a> -->
                                </div>
+                       </div>
+                                       
+               <div id="content">
+                       <?php $contentManager->printMainMenu(); ?>
+                               <script language="javascript" type="text/javascript"></script>
+               </div>
+
+       </div>
 
-                               <ul id="subnavlist">
-                               <?php $num_pages = count($this->sub_level_pages); ?>
-                               <?php for ($i=0; $i<$num_pages; $i++): ?>                               
-                                       <?php if ($this->sub_level_pages[$i]['url'] == $this->current_sub_level_page): ?>
-                                               <li id="test" ><?php echo $this->sub_level_pages[$i]['title']; ?></li>
-                                       <?php else: ?>
-                                               <li><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+
+               
+                       <?php if (isset($this->course_id) && $this->course_id > 0): ?>
+                       
+                       <div class="subnavcontain2">
+                       <ul class="sequence-links">
+                               <?php if ($_SESSION["prefs"]["PREF_SHOW_NEXT_PREVIOUS_BUTTONS"]) { ?>
+                                       <?php if ($this->sequence_links['resume']): ?>
+                                               
+                                               <li class="rectangle2">
+                                                       <a href="<?php echo $this->sequence_links['resume']['url']; ?>" class="previous-next resume" title="<?php echo _AT('resume').': '.$this->sequence_links['resume']['title']; ?>"><?php echo _AT('resume'); ?></a>
+                                               </li>
+                                               
+                                       <?php else:
+                                               if ($this->sequence_links['previous']): ?>
+                                       
+                                               <li class="rectangle2 arrow back">
+                                                       <a  href="<?php echo $this->sequence_links['previous']['url']; ?>" class="arrow back" title="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?>"> <?php echo "Previous"; ?> </a>
+                                               </li>
+                                               
+                                       <?php endif;
+                                               if ($this->sequence_links['next']): ?>
+                                               
+                                               <li class=" rectangle2 arrow forward">
+                                                       <a  href="<?php echo $this->sequence_links['next']['url']; ?>" class=""  title="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?>"> <?php echo "Next"; ?></a>
+                                               </li>
+                                               
                                        <?php endif; ?>
-                               <?php if ($i < $num_pages-1): 
-                                       echo " ";?>
                                <?php endif; ?>
-                               <?php endfor; ?>
+                       <?php } ?>
+                               &nbsp;
+                               </div>
+                       </ul>  
+               <?php endif; ?>
+                       
+                       
+       </div>
+       <?php endif; ?> 
+
+
+       
+               <!-- the sub navigation -->
+<?php endif; ?>
+
+
+
+<!--  end header template for iphone, android, blackberry -->
+<?php if ($this->mobile_device_type == IPAD_DEVICE): ?><!-- start header template for ipad/tablets -->
+<body onload="<?php echo $this->onload; ?>" class="fl-theme-iphone ui-mobile-viewport">
+
+<div id="wrapper">
+<div id="main">
+       
+       <div id="header" role="header">
+       
+       <div class="bypass">
+               <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#page-title" accesskey="c">
+               <img src="<?php echo $this->base_path; ?>images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AT('goto_content'); ?> ALT+c" /></a>          
+</div> 
+       
+       
+       <div id="header-section-title">
+                       <h1 id="section-title"><?php echo $this->section_title; ?></h1>
+               </div>
+
+       
+       <div id="navigation-contentwrapper" role="menubar" >
+       
+                       <?php if ($this->current_sub_level_page): ?>
+                       <div id="topnavlistcontainer" role="navigation" aria-live="assertive" class="topnavlistcontainer fl-container" >
+                       <a class="navigation-bar-button topnavlist-link" id="topnavlist-link" href="javascript:void(0);" tabindex="1"><?php echo _AT('navigation'); ?></a>
+                       
+                               <div id="navigation-column">
+                               <?php if ($this->current_sub_level_page): ?>
+                               <ul id="topnavlist-tablet"  class="fl-list-menu" role="menu">
+                                       <?php $accesscounter = 0; //initialize ?>
+                                       <?php foreach ($this->top_level_pages as $page): ?>
+                                               <?php ++$accesscounter; $accesscounter = ($accesscounter == 10 ? 0 : $accesscounter); ?>
+                                               <?php $accesskey_text = ($accesscounter < 10 ? 'accesskey="'.$accesscounter.'"' : ''); ?>
+                                               <?php $accesskey_title = ($accesscounter < 10 ? ' Alt+'.$accesscounter : ''); ?>
+                                               <?php if ($page['url'] == $this->current_top_level_page): ?>
+                                                       <!-- note bug http://issues.fluidproject.org/browse/FLUID-4313 makes class "flc-screenNavigator-backButton fl-link-hilight" not work -->
+                                                       <li role="menuitem"><a  href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> class="flc-screenNavigator-backButton fl-link-hilight" title="<?php echo $page['title'];?>"><?php echo $page['title']; ?></a>  </li>
+                                               <?php else: ?>
+                                                       <li role="menuitem"><a  href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title']; ?>"><?php echo $page['title']; ?></a></li>
+                                               <?php endif; ?>
+                               
+                                               <?php $accesscounter = ($accesscounter == 0 ? 11 : $accesscounter); ?>
+                                       
+                                       <?php endforeach; ?>
+                                        
                                </ul>
+                               <?php endif; ?>
                        </div>
-       <?php endif; ?>
+                       </div>
+                       <?php endif; ?> 
+               
+       <ul class="home-guide fl-tabs" id="home-guide" role="menu">
+       <!--  CHECK TO SEE IF USER IS A STUDENT -->
+       <?php if($_SESSION['is_admin'] == 0 && $_SESSION['privileges'] == 0 ):?>
+               <li role="menuitem"><a href="<?php echo $this->base_path; ?>users/index.php"><?php echo _AT("home"); ?></a></li> 
+       <?php endif;?>          
+       <!--  CHECK TO SEE IF USER IS AN ADMINISTRATOR -->
+       <?php //if($_SESSION['is_admin'] == 0 && $_SESSION['privileges'] == 1):
+               if($_SESSION['is_admin'] == 0 && $_SESSION['privileges'] == AT_ADMIN_PRIV_ADMIN):?>
+               <li role="menuitem"><a href="<?php echo $this->base_path; ?>admin/index.php"><?php echo _AT("home"); ?></a></li> 
+       <?php endif;?>
+       <!--  CHECK TO SEE IF USER IS AN INSTRUCTOR -->
+       <?php if($_SESSION['is_admin'] == 1): ?>
+               <li role="menuitem"><a href="<?php echo $this->base_path; ?>users/index.php"><?php echo _AT("home"); ?></a></li> 
+       <?php endif;?>
+       
+       <?php if (isset($this->guide) && isset($_SESSION["course_id"]) && $this->guide && ($_SESSION["prefs"]["PREF_SHOW_GUIDE"] || $_SESSION["course_id"] == "-1")) : ?>
+                       <li>
+                       <div id="guide_box">
+                                       <!--    <a href="<?php echo $this->guide; ?>" id="guide" onclick="ATutor.poptastic('<?php echo $this->guide; ?>'); return false;" target="_new"><img src="<?php echo $this->img; ?>guide-icon.png" width="30" height="30" title="guide: <?php echo $this->page_title; ?>"alt="guide: <?php echo $this->page_title; ?>"></img></a> -->
+               
+                                 <a href="<?php echo $this->guide; ?>" id="guide" onclick="ATutor.poptastic('<?php echo $this->guide; ?>'); return false;" target="_new"><?php echo _AT("guide"); ?></a> 
+                       </div>
+                       </li>
+                       <?php endif; ?>
+               </ul>
+       
+       <?php if (isset($this->course_id) && $this->course_id > 0): ?>
+                       
+<div id="sequence-links-course-navigation">    
+               <ul class="sequence-links fl-tabs" id="sequence-links" >
+                       <?php if ($_SESSION["prefs"]["PREF_SHOW_NEXT_PREVIOUS_BUTTONS"]) { ?>
+                               <?php if ($this->sequence_links['resume']): ?>
+                                               <li >
+                                               <a href="<?php echo $this->sequence_links['resume']['url']; ?>" class="previous-next" title="<?php echo _AT('resume').': '.$this->sequence_links['resume']['title']; ?>"><?php echo _AT('resume'); ?></a>
+                                               </li>
+                               <?php else:
+                                       if ($this->sequence_links['previous']): ?>
+                                               <li  class="arrow back"><a  href="<?php echo $this->sequence_links['previous']['url']; ?>" class="arrow back" title="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?>"> <?php echo "Previous"; ?> </a>
+                                               </li>
+                                       <?php endif;
+                                       if ($this->sequence_links['next']): ?>
+                                               <li class="arrow forward">
+                                               <a href="<?php echo $this->sequence_links['next']['url']; ?>" class=""  title="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?>"> <?php echo "Next"; ?></a>
+                                               </li>
+                                       <?php endif; ?>
+                               <?php endif; ?>
+                       <?php } ?>
+                               &nbsp;
+                       </ul> <!-- end sequence-links -->
+               <?php endif; ?>
+               
+               <?php if(isset($_SESSION['course_id']) && $_SESSION['course_id'] > 0): ?>       
+               <div id="course-level-navigation">
+               
+       
+                       
+                       <div id="content-link-container" role="navigation" aria-live="assertive" class="flc-screenNavigator-navbar ">
+                               <a id="content_link" class="content_link_tablet content_link"  href="javascript:void(0);"><?php echo "Content";//_AT("content_navigation"); ?></a>      
+                       </div>  
+                       </div><!-- course-level navigation -->                          
+                               <div id="content">
+                                       <?php $contentManager->printMainMenu(); ?>
+                                       <script language="javascript" type="text/javascript"></script>
+                               </div>
+               
+               </div> <!-- end sequence-links-course-navigation -->
+               <?php endif;?>
+       
+       
+               
 
+       
 
+       
+       </div>
+       </div> <!--  END HEADER -->
 
+<?php if (count($this->sub_level_pages) > 0): ?>
+                               <div id="subnavlistcontainer" role="menu" aria-live="assertive" > 
+                               
+                                       <!-- Markup for a subnavlist styled like a Gmail dock. Clean up this code for redundancy but it works for now. -->
+                                       <!-- background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#B6C0C6), to(#F8FAFB));  -->
+                                       <ul id="subnavlist" style="text-decoration: none; text-align: center; border-bottom: 1px #B6C0C6 solid; background: #B6C0C6; ">
+                                       <?php $num_pages = count($this->sub_level_pages); ?>
+                                               <?php for ($i=0; $i<$num_pages; $i++): ?>       
+                                                       
+                                                       <?php if($num_pages <= 5): ?>
+                                                               <?php if($this->sub_level_pages[$i][url] == $this->current_sub_level_page): ?>
+                                                               <li role="menuitem" class="selected" style="font-size: 14px; padding-left: .313em; padding-right: .313em;"><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                                               <?php else: ?> 
+                                                               <li role="menuitem" style="font-size: 14px; padding-left: .313em; padding-right: .313em"><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                                               <?php endif; ?> 
+                                                       <?php endif; ?>
+                                                       <?php if($num_pages > 5): ?>
+                                                               <?php if($i <= 5):?>
+                                                                       <?php if($this->sub_level_pages[$i][url] == $this->current_sub_level_page): ?>
+                                                                               <li role="menuitem" class="selected" style="font-size: 14px; padding-left: .313em; padding-right: .313em;"><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                                                       <?php else: ?> 
+                                                                               <li role="menuitem" style="font-size: 14px; padding-left: .313em; padding-right: .313em"><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                                                       <?php endif; ?> 
+                                                               <?php endif;?>
+                                                               <?php if($i== 6): ?>
+                                                                       <li role="menuitem" class="more-button-surround" style="font-size: 14px; padding-left: .313em; padding-right: .313em; position: relative; top: .313em;"><a class="more-button" href="javascript:void(0);" tabindex="1"><img id="switch" border="" width="20" height="20" alt="More menu items" title="More menu items" src="<?php echo $this->base_href; ?>images/showmenu.gif"/></a></li>
+                                                                       <li role="menuitem">
+                                                                       <ul class="subnavlist-more">
+                                                                       <li role="menuitem" class="more-item" style="font-size: 14px; list-style-type: bullet"><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                                                       
+                                                               <?php endif;?>
+                                                               <?php if($i > 6 && $i < $num_pages): ?>
+                                                                       <li role="menuitem" style="font-size: 14px; list-style-type: bullet"><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                                               <?php endif;?>
+                                                               <?php if($i==$num_pages): ?>
+                                                                       <li role="menuitem" style="font-size: 14px; list-style-type: bullet"><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                                                       </ul>
+                                                                       </li>
+                                                               <?php endif; ?>
+                                                       <?php endif; ?>
+                                               
+                                               
+                                                       
+                                       <?php if ($i < $num_pages-1): 
+                                               echo " ";?>
+                                       <?php endif; ?>
+                                       <?php endfor; ?>
+                                       </ul>
+
+                               </div> <!--  end subnavlistcontainer -->                                
+               <?php endif; ?> 
+       
+       <?php global $msg; $msg->printAll(); $_base_href;?>
+       
+       
+       <!-- </div>end #main -->
+               <div id="contentwrapper" class="fl-container" >
+               <a name="page-title" id="page-title"></a>
+               <h2 class="page-title" ><?php echo $this->page_title; ?></h2>
+               <div id="subnavbacktopage" >
+                                       <?php if (isset($this->back_to_page)): ?>
+                                               <a href="<?php echo $this->back_to_page['url']; ?>">
+                                               <img border="0" width="10" height="11" alt="<?php echo _AT('back_to').' '.$this->back_to_page['title']; ?>" src="<?php echo $this->base_href; ?>images/arrowicon.gif" style="float:left;"/></a>&nbsp;
+                                       <?php endif; ?>
+                               </div>
+       
+       <!--  check if a user is logged-into a course and if so display breadcrumbs.  -->       
+               <?php if(isset($_SESSION['course_id']) && $_SESSION['course_id'] > 0): ?>               
+               <?php if (isset($_SESSION["prefs"]["PREF_SHOW_BREAD_CRUMBS"]) && $_SESSION["prefs"]["PREF_SHOW_BREAD_CRUMBS"]) { ?>
+                
+                       <div class="crumbcontainer">
+                         <div id="breadcrumbs">
+                         <?php foreach ($this->path as $page): ?>
+                                 <a href="<?php echo $page['url']; ?>"><?php echo htmlspecialchars($page['title'], ENT_COMPAT, "UTF-8"); ?></a> > 
+                         <?php endforeach; ?> <?php echo $this->page_title; ?>
+                         </div>
+                       </div>
+         <?php } ?>
+        <?php endif; ?> 
+                               
+<?php endif; ?><!--  end header template for ipad/tablets -->
index 69a70fc..8a8954d 100644 (file)
 if (!defined('AT_INCLUDE_PATH')) { exit; }
 global $_base_path;
 
-if ($this->banner): ?><?php echo $this->banner; ?><br /><?php endif;
+if ($this->banner): ?>
 
+<?php echo $this->banner; ?><br /><?php endif;
+/** Icon View removed for mobile.
 // positioning switch of home ONLY FOR INSTRUCTORS. two icons will be used for identification to distinguish the two different views of the home.
 if(authenticate(AT_PRIV_ADMIN,AT_PRIV_RETURN) && count($this->home_links) > 0){
        if($this->view_mode==0)
@@ -23,6 +25,7 @@ if(authenticate(AT_PRIV_ADMIN,AT_PRIV_RETURN) && count($this->home_links) > 0){
                echo '<a href ="'.AT_BASE_HREF.'switch_view.php?swid='.$this->view_mode.'" ><img src="'.AT_BASE_HREF.'images/icon_view.png"  title ="'._AT('icon_view').'" alt ="'._AT('icon_view').'" /></a><br        />';
 }      
 
+
 // Icon View, $this->view_mode = 0. course will be made changes to the icons to restore the classic icons.
 if($this->view_mode==0){
 ?>
@@ -60,13 +63,15 @@ if($this->view_mode==0){
        </div> 
 <?php
 } // end of if
+*/
 
 if ($this->announcements): ?>
 <h2 class="page-title"><?php echo _AT('announcements'); ?></h2>
        <?php foreach ($this->announcements as $item): ?>
                <div class="news">
                        <h3><?php echo $item['title']; ?></h3>
-                       <p><span class="date"><?php echo $item['date'] .' '. _AT('by').' ' . $item['author']; ?></span></p> <?php echo $item['body']; ?>
+                       <span class="date"><?php echo $item['date'] .' '. _AT('by').' ' . $item['author']; ?></span></p> <?php echo $item['body']; ?></span>
+                       
                </div>
        <?php endforeach; ?>
 
diff --git a/docs/themes/mobile/instructor/announcements/add_news.tmpl.php b/docs/themes/mobile/instructor/announcements/add_news.tmpl.php
new file mode 100644 (file)
index 0000000..c682aa5
--- /dev/null
@@ -0,0 +1,42 @@
+       <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+       <input type="hidden" name="add_news" value="true" />
+       <input type="submit" name="submit" style="display:none;"/>
+       <div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_announcement'); ?></legend>
+               <div class="row">
+                       <label for="title"><?php echo _AT('title'); ?></label><br />
+                       <input type="text" name="title" size="40" id="title" value="<?php echo $_POST['title']; ?>" />
+               </div>
+
+               <div class="row">
+                       <?php echo _AT('formatting'); ?><br />
+                       <input type="radio" name="formatting" value="0" id="text" <?php if ($_POST['formatting'] == 0) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=true;" <?php if ($_POST['setvisual'] && !$_POST['settext']) { echo 'disabled="disabled"'; } ?> />
+
+                       <label for="text"><?php echo _AT('plain_text'); ?></label>
+                       <input type="radio" name="formatting" value="1" id="html" <?php if ($_POST['formatting'] == 1 || $_POST['setvisual']) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=false;"/>
+
+                       <label for="html"><?php echo _AT('html'); ?></label>
+                       <?php   //Button for enabling/disabling visual editor
+                               if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
+                                       echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
+                                       echo '<input type="submit" name="settext" value="'._AT('switch_text').'" class="button"/>';
+                               } else {
+                                       echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'"  ';
+                                       if ($_POST['formatting']==0) { echo 'disabled="disabled"'; }
+                                       echo ' class="button" />';
+                               }
+                       ?>
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body_text"><?php echo _AT('body'); ?></label><br />
+                       <textarea name="body_text" cols="40" rows="15" id="body_text"><?php echo $_POST['body_text']; ?></textarea>
+               </div>
+               
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s"  class="button"/>
+                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> "  class="button"/>
+               </div>
+       </fieldset>
+       </div>
+       </form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/announcements/edit_news.tmpl.php b/docs/themes/mobile/instructor/announcements/edit_news.tmpl.php
new file mode 100644 (file)
index 0000000..40f777f
--- /dev/null
@@ -0,0 +1,41 @@
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="edit_news" value="true">
+<input type="hidden" name="aid" value="<?php echo $this->row['news_id']; ?>">
+<input type="submit" name="submit" style="display:none;"/>
+<div class="input-form">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" name="title" id="title" value="<?php echo AT_print($this->row['title'], 'input.text'); ?>" size="40">
+       </div>
+
+       <div class="row">
+               <?php echo _AT('formatting'); ?><br />
+               <input type="radio" name="formatting" value="0" id="text" <?php if ($_POST['formatting'] === 0) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=true;" <?php if ($_POST['setvisual'] && !$_POST['settext']) { echo 'disabled="disabled"'; } ?> /><label for="text"><?php echo _AT('plain_text'); ?></label>,
+
+               <input type="radio" name="formatting" value="1" id="html" <?php if ($_POST['formatting'] == 1 || $_POST['setvisual']) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=false;"  /> <label for="html"><?php echo _AT('html'); ?></label>
+               <?php
+                       if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
+                               echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
+                               echo '<input type="submit" name="settext"   value="'._AT('switch_text').'" />';
+                       } else {
+                               echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'" ';
+                               if ($_POST['formatting']==0) { echo 'disabled="disabled"'; }
+                               echo '/>';
+                       } 
+               ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body_text"><?php echo _AT('body'); ?></label><br />
+               <textarea name="body_text" cols="40" rows="15" id="body_text" wrap="wrap"><?php echo AT_print($this->row['body'], 'input.text'); ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
+       </div>
+
+
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/announcements/index.tmpl.php b/docs/themes/mobile/instructor/announcements/index.tmpl.php
new file mode 100644 (file)
index 0000000..277da3f
--- /dev/null
@@ -0,0 +1,45 @@
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="Title and date of instructor announcements" >
+<colgroup>
+       <?php if ($this->col == 'title'): ?>
+               <col />
+               <col class="sort" />
+               <col />
+       <?php elseif($this->col == 'date'): ?>
+               <col span="2" />
+               <col class="sort" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><a href="mods/_standard/announcements/index.php?<?php echo $this->orders[$this->order]; ?>=title"><?php echo _AT('title'); ?></a></th>
+       <th scope="col"><a href="mods/_standard/announcements/index.php?<?php echo $this->orders[$this->order]; ?>=date"><?php echo _AT('date'); ?></a></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="3"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" class="button"/> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"  class="button"/></td>
+</tr>
+</tfoot>
+<tbody>
+       <?php if ($row = mysql_fetch_assoc($this->result)): ?>
+               <?php do { ?>
+                       <tr onkeydown="document.form['n<?php echo $row['news_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['n<?php echo $row['news_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['news_id']; ?>">
+                       
+                               <td><input type="radio" name="aid" value="<?php echo $row['news_id']; ?>" id="n<?php echo $row['news_id']; ?>" /></td>
+                               
+                               <td><label for="n<?php echo $row['news_id']; ?>"><?php echo AT_print($row['title'], 'news.title'); ?></label></td>
+                               <td><?php echo AT_date(_AT('announcement_date_format'), $row['date'], AT_DATE_MYSQL_DATETIME); ?></td>
+                       </tr>
+               <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+       <?php else: ?>
+               <tr>
+                       <td colspan="3"><?php echo _AT('none_found'); ?></td>
+               </tr>
+       <?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/assignments/index_instructor.tmpl.php b/docs/themes/mobile/instructor/assignments/index_instructor.tmpl.php
new file mode 100644 (file)
index 0000000..1f14003
--- /dev/null
@@ -0,0 +1,79 @@
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<div class="table-surround">
+<table class="data">
+<colgroup>
+       <?php if ($this->sort == 'title'): ?>
+               <col />
+               <col class="sort" />
+               <col span="5" />
+       <?php elseif($this->sort == 'assign_to'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($this->sort == 'date_due'): ?>
+               <col span="3" />
+               <col class="sort" />
+               <col span="3" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th>&nbsp;</th>
+       <th scope="col"><a href="mods/_standard/assignments/index_instructor.php?sort=title<?php echo SEP; ?>order=<?php echo $orders[$order]; ?>"><?php echo _AT('title'); ?></a></th>
+       <th scope="col"><?php echo _AT('assigned_to'); ?></th>
+       <th scope="col"><a href="mods/_standard/assignments/index_instructor.php?sort=date_due<?php echo SEP; ?>order=<?php echo $orders[$order]; ?>"><?php echo _AT('due_date'); ?></a></th>
+</tr>
+</thead>
+<?php if (($this->result != 0) && ($row = mysql_fetch_assoc($this->result))) : ?>
+<tfoot>
+<tr>
+       <td colspan="4">
+               <input type="submit" name="submissions" value="<?php echo _AT('submissions'); ?>" class="button"/> 
+               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>"  class="button"/> 
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" class="button" />
+                                       
+       </td>
+</tr>
+</tfoot>
+<tbody>
+       <?php do { ?>
+               <tr onkeydown="document.form['a<?php echo $row['assignment_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['a<?php echo $row['assignment_id']; ?>'].checked = true; rowselect(this);" id="a_<?php echo $row['assignment_id']; ?>_0">
+               
+               <td><input type="radio" id="a<?php echo $row['assignment_id']; ?>" name="assignment" value="<?php echo $row['assignment_id']; ?>" 
+
+               <?php // set first item as checked if nothing selected
+               if (isset($_GET['assignment_id'])){
+                       if ($_GET['assignment_id'] == $row['assignment_id']){ 
+                               echo ' checked="checked"'; 
+                       } 
+               }
+               else {
+                       echo ' checked="checked"';
+                       $_GET['assignment_id'] = $row['assignment_id'];
+               }
+               ?>/></td>
+
+               <td><label for="a<?php echo $row['assignment_id']; ?>"><?php echo AT_print($row['title'], 'assignment.title'); ?></label></td>
+
+               <td><?php if($row['assign_to'] == '0'){echo _AT('all_students'); } else {
+                               
+                                       $type_row = mysql_fetch_assoc($this->type_result);
+                                       echo $type_row['title']; } ?></td>
+
+               <td><?php  if ($row['date_due'] == '0000-00-00 00:00:00'){
+                       echo _AT('none');
+               }else {
+                       echo AT_Date(_AT('forum_date_format'), $row['date_due'], AT_DATE_MYSQL_DATETIME);
+               }?></td>
+               </tr>
+       <?php } while($row = mysql_fetch_assoc($this->result)); ?>
+</tbody>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><strong><?php echo _AT('none_found'); ?></strong></td>
+       </tr>
+<?php endif; ?>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/backups/edit.tmpl.php b/docs/themes/mobile/instructor/backups/edit.tmpl.php
new file mode 100644 (file)
index 0000000..87dcf9b
--- /dev/null
@@ -0,0 +1,16 @@
+<form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="backup_id" value="<?php echo $_GET['backup_id']; ?>" />
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit'); ?></legend>
+       <div class="row">
+               <label for="description"><?php echo _AT('optional_description'); ?></label>
+               <textarea cols="40" rows="2" id="description" name="new_description"><?php echo AT_print($this->row['description'], 'backups.description'); ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="edit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
diff --git a/docs/themes/mobile/instructor/backups/index.tmpl.php b/docs/themes/mobile/instructor/backups/index.tmpl.php
new file mode 100644 (file)
index 0000000..e768db5
--- /dev/null
@@ -0,0 +1,45 @@
+
+<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="List of backups available" >
+<thead>
+<tr>
+       <th><?php echo _AT('file_name');    ?></th>
+       <th><?php echo _AT('date_created'); ?></th>
+       <th><?php echo _AT('file_size');    ?></th>
+       <!-- REMOVED FOR MOBILE<th><?php //echo _AT('description');  ?></th> -->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6"><input type="submit" name="restore" value="<?php echo _AT('restore'); ?>"  class="button"/> 
+                                 <input type="submit" name="download" value="<?php echo _AT('download'); ?>"  class="button"/> 
+                                 <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"  class="button"/> 
+                                 <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>"  class="button"/></td>
+</tr>
+</tfoot>
+<tbody>
+<?php
+
+       if (!$this->list) {
+               ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+       <?php
+       } else {
+               foreach ($this->list as $row) {
+                       echo '<tr onmousedown="document.form[\'b'.$row['backup_id'].'\'].checked = true; rowselect(this);" id="r_'.$row['backup_id'].'">';
+                       echo '<td class="row1"><label><input type="radio" value="'.$row['backup_id'].'" name="backup_id" id="b'.$row['backup_id'].'" />';
+                       echo $row['file_name'].'</label></td>';
+                       echo '<td>'.AT_date(_AT('filemanager_date_format'), $row['date'], AT_DATE_MYSQL_DATETIME).'</td>';
+                       echo '<td align="right">'.get_human_size($row['file_size']).'</td>';
+               // REMOVED FOR MOBILE   echo '<td>'.AT_print($row['description'], 'backups.description').'</td>';
+                       echo '</tr>';
+               }
+?>
+       <?php } ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/chat/index.tmpl.php b/docs/themes/mobile/instructor/chat/index.tmpl.php
new file mode 100644 (file)
index 0000000..c75c33d
--- /dev/null
@@ -0,0 +1,70 @@
+<?php if (count($this->tran_files) == 0) {
+       echo '<div style="width:90%;" class="input-form"><p>'._AT('chat_none_found').'</p></div>';
+} else {?>
+       
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+       <table class="data" summary="List of transcripts for chat">
+       <colgroup>
+               <?php if ($this->col == 'name'): ?>
+                       <col />
+                       <col class="sort" />
+                       <col span="2" />
+               <?php elseif($this->col == 'date'): ?>
+                       <col span="3" />
+                       <col class="sort" />
+               <?php endif; ?>
+       </colgroup>
+       <thead>
+       <tr>
+               <th scope="col">&nbsp;</th>
+               <th scope="col"><a href="mods/_standard/chat/index.php?<?php echo $this->orders[$this->order]; ?>=name"><?php echo _AT('chat_transcript');?></a></th>
+               <th scope="col"><?php echo _AT('status'); ?></th>
+               <th scope="col"><a href="mods/_standard/chat/index.php?<?php echo $this->orders[$this->order]; ?>=date"><?php echo _AT('date'); ?></a></th> 
+               </th> 
+       </tr>
+       </thead>
+       <?php
+
+       if (($this->col == 'date') && ($this->order == 'asc')) {
+               asort($this->tran_files);
+       } else if (($this->col == 'date') && ($this->order == 'desc')) {
+               arsort($this->tran_files);
+       } else if (($this->col == 'name') && ($this->order == 'asc')) {
+               ksort($this->tran_files);
+       } else if (($this->col == 'name') && ($this->order == 'desc')) {
+               krsort($this->tran_files);
+       }
+       reset ($this->tran_files);
+       ?>
+
+       <tbody>
+       <?php foreach ($this->tran_files as $file => $date) { ?>
+               <tr onkeydown="document.form['<?php echo $file; ?>'].checked = true; rowselect(this);" onmousedown="document.form['<?php echo $file; ?>'].checked = true; rowselect(this);" id="r_<?php echo $file; ?>">
+                       <td><input type="radio" name="file" value="<?php echo $file; ?>" id="<?php echo $file; ?>" /></td>
+
+                       <td><label for="<?php echo $file; ?>"><?php echo $file; ?></label></td>
+                       <td>
+                               <?php if (($file.'.html' == $this->admin['tranFile']) && ($this->admin['produceTran'])) { 
+                                       echo _AT('chat_currently_active');
+                               } else {
+                                       echo _AT('chat_inactive');
+                               }?>
+                       </td>
+       
+                       <td><?php echo AT_DATE(_AT('server_date_format'), $date); ?></td>
+               </tr>
+       <?php } ?>
+       </tbody>
+
+       <tfoot>
+       <tr>
+               <td colspan="4"><input type="submit" name="view" value="<?php echo _AT('view'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+       </tr>
+       </tfoot>
+
+       </table>
+</div> 
+</form>
+<?php
+}?>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/content/index.tmpl.php b/docs/themes/mobile/instructor/content/index.tmpl.php
new file mode 100644 (file)
index 0000000..449309b
--- /dev/null
@@ -0,0 +1,62 @@
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="input-form">
+       <div class="row">
+               <h3><label for="ctid"><?php echo _AT('select_parent_topic'); ?></label></h3>
+       </div>
+
+       <div class="row">
+               <select name="ctid" id="ctid">
+                       <option value="0"><?php echo _AT('top_level'); ?></option>
+                       <?php
+                               print_select(0, 1);
+                       ?>
+               </select>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="sub_content" value="<?php echo _AT('view_sub_topics'); ?>" />
+       </div>
+</div>
+</form>
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="Parent topics and subtopics">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col">#</th>
+       <th scope="col"><?php echo _AT('title'); ?></th>
+       <th scope="col"><?php echo _AT('num_pages'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="5">
+               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+               <input type="submit" name="view" value="<?php echo _AT('view'); ?>" />
+               <input type="submit" name="usage" value="<?php echo _AT('usage'); ?>" />
+               <input type="submit" name="sub_content" value="<?php echo _AT('sub_topics'); ?>" />
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+       <?php if (!empty($this->content)): ?>
+               <?php foreach ($this->content as $row): ?>
+                       <tr onkeydown="document.form['c<?php echo $row['content_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['c<?php echo $row['content_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['content_id']; ?>">
+                               <td><input type="radio" name="ctid" value="<?php echo $row['content_id']; ?>" id="c<?php echo $row['content_id']; ?>" /></td>
+                               <td><?php echo $row['ordering']; ?></td>
+                               <td><label for="c<?php echo $row['content_id']; ?>"><?php echo AT_print($row['title'], 'content.title'); ?></label></td>
+                               <td><?php echo count($this->all_content[$row['content_id']]); ?></td>
+                       </tr>
+               <?php endforeach; ?>
+       <?php else: ?>
+               <tr>
+                       <td colspan="5"><?php echo _AT('none_found'); ?></td>
+               </tr>
+       <?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/content/page_student_stats.tmpl.php b/docs/themes/mobile/instructor/content/page_student_stats.tmpl.php
new file mode 100644 (file)
index 0000000..ea7031f
--- /dev/null
@@ -0,0 +1,28 @@
+<div class="table-surround">
+<table class="data" summary="Student usage statistics by login name">
+<thead>
+<tr>
+       <th scope="col"><?php echo _AT('login_name'); ?></th>
+       <th scope="col"><?php echo _AT('visits'); ?></th>
+       <th scope="col"><?php echo _AT('avg_duration'); ?></th>
+       <th scope="col"><?php echo _AT('duration'); ?></th>
+</tr>
+</thead>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)) : ?>
+       <?php do { ?>
+       <tr onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/student_usage.php?id=<?php echo $row['member_id']; ?>'" title="<?php echo _AT('member_stats'); ?>">
+               <td><a href="<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/student_usage.php?id=<?php echo $row['member_id']; ?>"><?php echo get_display_name($row['member_id']); ?></a></td>
+               <td><?php echo $row['counter']; ?></td>
+               <td><?php echo $row['average']; ?></td>
+               <td><?php echo $row['total']; ?></td>
+       </tr>
+       <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
diff --git a/docs/themes/mobile/instructor/content/tracker/index.tmpl.php b/docs/themes/mobile/instructor/content/tracker/index.tmpl.php
new file mode 100644 (file)
index 0000000..18563d5
--- /dev/null
@@ -0,0 +1,66 @@
+<?php global $contentManager;?>
+<div class="toolcontainer">
+<div class="paging">
+       <ul>
+       <?php for ($i=1; $i<=$this->num_pages; $i++): ?>
+               <li>
+                       <?php if ($i == $this->page) : ?>
+                               <a class="current" href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$this->page_string; ?>"><strong><?php echo $i; ?></strong></a>
+                       <?php else: ?>
+                               <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$this->page_string; ?>"><?php echo $i; ?></a>
+                       <?php endif; ?>
+               </li>
+       <?php endfor; ?>
+       </ul>
+</div>
+<table class="data" summary="Lists usage of content pages.">
+<colgroup>
+       <?php if ($this->col == 'total_hits'): ?>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($this->col == 'unique_hits'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="3" />
+       <?php // REMOVED FOR MOBILE elseif($this->col == 'average_duration'): ?>
+       <!--  <col span="3" />
+               <col class="sort" />
+               <col span="2" />-->     
+       <?php // REMOVED FOR MOBILE elseif($this->col == 'total_duration'): ?>
+               <!--  <col span="4" />
+               <col class="sort" />
+               <col /> -->
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col"><?php echo _AT('page'); ?></th>
+       <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=total_hits"><?php echo _AT('visits');             ?></a></th>
+       <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=unique_hits"><?php echo _AT('unique_visits');     ?></a></th>
+       <!-- REMOVED FOR MOBILE <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=average_duration"><?php echo _AT('avg_duration'); ?></a></th>-->
+       <!-- REMOVED FOR MOBILE <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=total_duration"><?php echo _AT('duration');       ?></a></th>-->
+       <th scope="col"><?php echo _AT('details');       ?></th>
+</tr>
+</thead>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)): ?>
+       <?php do { ?>
+               <tr onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/page_student_stats.php?content_id=<?php echo $row['content_id']; ?>'" title="<?php echo _AT('details'); ?>">
+                       <td><?php echo $contentManager->_menu_info[$row['content_id']]['title']; ?></td>
+                       <td><?php echo $row['total_hits'];       ?></td>
+                       <td><?php echo $row['unique_hits'];      ?></td>
+                       <!-- REMOVED FOR MOBILE <td><?php //echo $row['average_duration']; ?></td>-->
+                       <!-- REMOVED FOR MOBILE<td><?php echo $row['total_duration'];   ?></td> -->
+                       <td><a href="mods/_standard/tracker/tools/page_student_stats.php?content_id=<?php echo $row['content_id']; ?>"><?php echo _AT('details'); ?></a></td>
+               </tr>
+       <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+
+</div>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/content/tracker/student_usage.tmpl.php b/docs/themes/mobile/instructor/content/tracker/student_usage.tmpl.php
new file mode 100644 (file)
index 0000000..f9d07d1
--- /dev/null
@@ -0,0 +1,53 @@
+<?php global $contentManager;?>
+<form name="form" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
+<div class="input-form">
+       <div class="row">
+               <label for="id"><?php echo _AT('select_member'); ?></label><br />
+               <select name="id" id="id">
+                       <?php
+                               while ($row = mysql_fetch_assoc($this->result)) {
+                                       $sender = get_display_name($row['member_id']);
+                                       echo '<option value="'.$row['member_id'].'"';
+                                       if ($row['member_id'] == $_GET['id']) {
+                                               echo ' selected="selected"';
+                                       }
+                                       echo '>'.$sender.'</option>';
+                               }
+                       ?>
+               </select>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('view'); ?>" />
+       </div>
+</div>
+</form>
+
+<?php if ($_GET['id']) : ?>
+<div class="table-surround">
+       <table class="data" summary="View the usage of a specific student">
+       <thead>
+       <tr>
+               <th scope="col"><?php echo _AT('page'); ?></th>
+               <th scope="col"><?php echo _AT('visits'); ?></th>
+               <th scope="col"><?php echo _AT('duration'); ?></th>
+       </tr>
+       </thead>
+       <tbody>
+       <?php if ($row = mysql_fetch_assoc($this->result_list)): ?>
+               <?php do { ?>
+                       <tr>
+                               <td><?php echo $contentManager->_menu_info[$row['content_id']]['title']; ?></td>
+                               <td><?php echo $row['counter']; ?></td>
+                               <td><?php echo $row['total']; ?></td>
+                       </tr>
+               <?php } while ($row = mysql_fetch_assoc($this->result_list)); ?>
+       <?php else: ?>
+               <tr>
+                       <td colspan="3"><?php echo _AT('none_found'); ?></td>
+               </tr>
+       <?php endif; ?>
+</tbody>
+</table>
+</div>
+<?php endif; ?>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/course_email/course_email.tmpl.php b/docs/themes/mobile/instructor/course_email/course_email.tmpl.php
new file mode 100644 (file)
index 0000000..88054d4
--- /dev/null
@@ -0,0 +1,45 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="course" value="<?php echo $course; ?>" />
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('course_email'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
+               <?php echo  _AT('to'); ?><br />
+               <input type="checkbox" name="to_assistants" value="1" id="assistants" <?php if ($_POST['to_assistants']=='1') { echo 'checked="checked"'; } ?> /><label for="assistants"><?php echo  _AT('assistants'); ?></label>
+               <input type="checkbox" name="to_enrolled" value="1" id="enrolled" <?php if ($_POST['to_enrolled']=='1') { echo 'checked="checked"'; } else { echo 'checked="checked"'; } ?> /><label for="enrolled"><?php echo  _AT('enrolled'); ?></label>
+               <input type="checkbox" name="to_unenrolled" value="1" id="unenrolled" <?php if ($_POST['to_unenrolled']=='1') { echo 'checked="checked"'; } ?> /><label for="unenrolled"><?php echo  _AT('unenrolled'); ?></label>
+               <input type="checkbox" name="to_alumni" value="1" id="alumni" <?php if ($_POST['to_alumni']=='1') { echo 'checked="checked"'; } ?> /><label for="alumni"><?php echo  _AT('alumni'); ?></label>
+
+               <?php if (!empty($this->group_type_rows)): ?>
+                       <br /><br />
+                       <?php echo _AT('or_groups'); ?>:<br />
+                       <select name="groups[]" multiple="multiple" size="10" style="padding-right: 5px">
+                               <?php foreach ($this->group_type_rows as $type_id => $row): ?>
+                                       <optgroup label="<?php echo $row['title']; ?>">
+                                               <?php foreach ($row['group_type_row'] as $group_row): ?>
+                                                       <option value="<?php echo $group_row['group_id']; ?>"><?php echo $group_row['title']; ?></option>
+                                               <?php endforeach; ?>
+                                       </optgroup>
+                               <?php endforeach; ?>
+                       </select>
+               <?php endif; ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="subject"><?php echo _AT('subject'); ?></label><br />
+               <input type="text" name="subject" size="40" id="subject" value="<?php echo $_POST['subject']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('body'); ?></label><br />
+               <textarea cols="40" rows="18" name="body" id="body"><?php echo $_POST['body']; ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('send'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
diff --git a/docs/themes/mobile/instructor/enrolment/index.tmpl.php b/docs/themes/mobile/instructor/enrolment/index.tmpl.php
new file mode 100644 (file)
index 0000000..1ce87e4
--- /dev/null
@@ -0,0 +1,141 @@
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <input type="hidden" name="tab" value="<?php echo $this->current_tab; ?>"/>
+       <input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
+       <div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('search'); ?></legend>
+               <?php if (admin_authenticate(AT_ADMIN_PRIV_ENROLLMENT, TRUE)): ?>
+                       <div class="row">
+                               <label for="course"><?php echo _AT('course'); ?></label><br/>
+                               <select name="course_id" id="course">
+                               <?php
+                               
+                               while ($courses_row = mysql_fetch_assoc($this->result)) {
+                                       if ($courses_row['course_id'] == $this->course_id) {
+                                               echo '<option value="'.$courses_row['course_id'].'" selected="selected">'.validate_length($courses_row['title'], 45,VALIDATE_LENGTH_FOR_DISPLAY).'</option>';
+                                       } else {
+                                               echo '<option value="'.$courses_row['course_id'].'">'.validate_length($courses_row['title'],45,VALIDATE_LENGTH_FOR_DISPLAY).'</option>';
+                                       }
+                               }
+                               ?></select>
+                       </div>
+               <?php endif; ?>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('login_name').', '._AT('first_name').', '._AT('second_name').', '._AT('last_name') .', '._AT('email'); ?>)</label><br />
+                       <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+                       <fieldset>
+                       <legend><?php echo _AT('search_match'); ?>:</legend>
+                       <input type="radio" name="match" value="all" id="match_all" <?php echo $this->checked_match_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> <input type="radio" name="match" value="one" id="match_one" <?php echo $this->checked_match_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
+                       </fieldset>
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </fieldset>
+       </div>
+</form>
+
+<?php print_paginator($this->page, $this->tab_counts[$this->current_tab], $this->page_string_w_tab . SEP . $this->order .'='. $this->col, $this->results_per_page); ?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="selectform">
+<input type="hidden" name="tab" value="<?php echo $this->current_tab; ?>" />
+<input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
+
+<ul id="subnavlist">
+       <?php for ($i = 0; $i< $this->num_tabs; $i++): ?>
+               <?php if ($this->current_tab == $i): ?>
+                       <li class="active"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?tab=<?php echo $i.$this->page_string; ?>" class="active"><strong><?php echo _AT($this->tabs[$i]); ?> - <?php echo $this->tab_counts[$i]; ?></strong></a></li>
+               <?php else: ?>
+                       <li><a href="<?php echo $_SERVER['PHP_SELF']; ?>?tab=<?php echo $i.$this->page_string; ?>"><?php echo _AT($this->tabs[$i]); ?> - <?php echo $this->tab_counts[$i]; ?></a></li>
+               <?php endif; ?>
+       <?php endfor; ?>
+</ul>
+
+<div class="table-surround">
+<table class="data" summary="Student enrolment by login name, first name and last name"  >
+<colgroup>
+       <?php if ($this->col == 'login'): ?>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($this->col == 'first_name'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="3" />
+       <?php // REMOVED FOR MOBILE elseif($this->col == 'second_name'): ?>
+               <!-- <col span="3" />
+               <col class="sort" />
+               <col span="2" /> -->
+       <?php elseif($this->col == 'last_name'): ?>
+               <col span="4" />
+               <col class="sort" />
+               <col />
+       <?php // REMOVED FOR MOBILE elseif($this->col == 'email'): ?>
+               <!-- <col span="5" />
+               <col class="sort" /> -->
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col" align="left"><input type="checkbox" value="<?php echo _AT('select_all'); ?>" id="all" title="<?php echo _AT('select_all'); ?>" name="selectall" onclick="CheckAll();" /></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=login<?php echo $this->page_string_w_tab;?>"><?php echo _AT('login_name'); ?></a></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=first_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('first_name'); ?></a></th>
+
+       <!-- REMOVED FOR MOBILE <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=second_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('second_name'); ?></a></th>-->
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=last_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('last_name'); ?></a></th>
+
+       <!-- REMOVED FOR MOBILE <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=email<?php echo $this->page_string_w_tab;?>"><?php echo _AT('email'); ?></a></th>-->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+               <?php if ($this->current_tab == 0): ?>
+                       <input type="submit" name="role"     value="<?php echo _AT('privileges');  ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove');    ?>" /> 
+                       <input type="submit" name="alumni"   value="<?php echo _AT('mark_alumni'); ?>" />
+               <?php elseif ($this->current_tab == 1): ?>
+                       <input type="submit" name="role" value="<?php echo _AT('privileges'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" /> 
+
+               <?php elseif ($this->current_tab == 2): ?>
+                       <input type="submit" name="enroll"   value="<?php echo _AT('enroll'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" />
+               
+               <?php elseif ($this->current_tab == 3): ?>
+                       <input type="submit" name="enroll" value="<?php echo _AT('enroll'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" />
+
+               <?php elseif ($this->current_tab == 4): ?>
+                       <input type="submit" name="enroll"   value="<?php echo _AT('enroll'); ?>" /> 
+
+               <?php endif; ?></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($this->tab_counts[$this->current_tab]): ?>
+       <?php while ($row = mysql_fetch_assoc($this->enrollment_result)): ?>
+               <tr onmousedown="document.selectform['m<?php echo $row['member_id']; ?>'].checked = !document.selectform['m<?php echo $row['member_id']; ?>'].checked; togglerowhighlight(this, 'm<?php echo $row['member_id']; ?>');" id="rm<?php echo $row['member_id']; ?>">
+                       <td><input type="checkbox" name="id[]" value="<?php echo $row['member_id']; ?>" id="m<?php echo $row['member_id']; ?>" onmouseup="this.checked=!this.checked" title="<?php echo AT_print($row['login'], 'members.login'); ?>" /></td>
+                       <td><?php echo AT_print($row['login'], 'members.login'); ?></td>
+                       <td><?php echo AT_print($row['first_name'], 'members.name'); ?></td>
+               <!-- REMOVED FOR MOBILE <td><?php // echo AT_print($row['second_name'], 'members.name'); ?></td> -->
+                       <td><?php echo AT_print($row['last_name'], 'members.name'); ?></td>
+               <!-- REMOVED FOR MOBILE <td><?php // echo AT_print($row['email'], 'members.email'); ?></td>-->
+               </tr>
+       <?php endwhile; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/faq/add_question.tmpl.php b/docs/themes/mobile/instructor/faq/add_question.tmpl.php
new file mode 100644 (file)
index 0000000..f009212
--- /dev/null
@@ -0,0 +1,32 @@
+<?php global $stripslashes;?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_question'); ?></legend>
+       <div class="row">
+
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="topic"><?php  echo _AT('topic'); ?></label><br />
+               <select name="topic_id" id="topic">
+                       <?php while ($row = mysql_fetch_assoc($this->result)): ?>
+                               <option value="<?php echo $row['topic_id']; ?>"<?php if (isset($_POST['topic_id']) && ($row['topic_id'] == $_POST['topic_id'])) { echo ' selected="selected"'; } ?>><?php echo AT_print($row['name'], 'input.text'); ?></option>
+                       <?php endwhile; ?>
+               </select>
+       </div>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php  echo _AT('question'); ?></label><br />
+               <input type="text" name="question" size="40" id="question" value="<?php if (isset($_POST['question'])) echo AT_print($stripslashes($_POST['question']), 'input.text');  ?>" />
+
+       </div>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="answer"><?php  echo _AT('answer'); ?></label><br />
+               <textarea name="answer" cols="40" rows="3" id="answer" style="width:90%;"><?php if (isset ($_POST['answer'])) echo AT_print($stripslashes($_POST['answer']), 'text.input');  ?></textarea>
+       </div>
+
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/faq/add_topic.tmpl.php b/docs/themes/mobile/instructor/faq/add_topic.tmpl.php
new file mode 100644 (file)
index 0000000..3492243
--- /dev/null
@@ -0,0 +1,17 @@
+<?php global $stripslashes;?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+
+<div class="input-form">       
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_topic'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="name"><?php  echo _AT('name'); ?></label><br />
+               <input type="text" name="name" size="40" id="name" value="<?php if (isset($_POST['name'])) echo $stripslashes($_POST['name']);  ?>" />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/faq/edit_question.tmpl.php b/docs/themes/mobile/instructor/faq/edit_question.tmpl.php
new file mode 100644 (file)
index 0000000..1019fdd
--- /dev/null
@@ -0,0 +1,37 @@
+<?php global $stripslashes;
+?>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="id" value="<?php echo $this->row['entry_id']; ?>" />
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('create_new_file'); ?></legend>
+       <div class="row">
+               
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="topic"><?php  echo _AT('topic'); ?></label><br />
+               <select name="topic_id" id="topic">
+               <?php if(!empty($this->faq_topics)):?>
+                       <?php foreach($this->faq_topics as $topic_row):?>
+                               <option value="<?php echo $topic_row['topic_id']; ?>"<?php if ($topic_row['topic_id'] == $row['topic_id']) { echo ' selected="selected"'; } ?>><?php echo AT_print($topic_row['name'], 'input.text'); ?></option>                       
+                       <?php endforeach;?>             
+               <?php endif;?>
+               </select>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php echo _AT('question'); ?>:</label><br />
+               <input type="text" name="question" size="40" id="question" value="<?php if (isset ($_POST['question'])) { echo AT_print($stripslashes($_POST['question']), 'input.text'); } else { echo AT_print($this->row['question'], 'input.text'); } ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="answer"><?php  echo _AT('answer'); ?></label><br />
+               <textarea name="answer" cols="45" rows="3" id="answer" style="width:90%;"><?php if (isset ($_POST['answer'])) { echo AT_print($stripslashes($_POST['answer']), 'input.text'); } else { echo AT_print($this->row['answer'], 'input.text'); } ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
+       </div>
+       </fieldset>
+</div>
+</form>
diff --git a/docs/themes/mobile/instructor/faq/edit_topic.tmpl.php b/docs/themes/mobile/instructor/faq/edit_topic.tmpl.php
new file mode 100644 (file)
index 0000000..4308b56
--- /dev/null
@@ -0,0 +1,18 @@
+<?php global $stripslashes;?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="name"><?php  echo _AT('name'); ?></label><br />
+               <input type="text" name="name" size="40" id="name" value="<?php if (isset($_POST['name'])) echo AT_print($stripslashes($_POST['name']), 'input.text');  ?>" />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/faq/index_instructor.tmpl.php b/docs/themes/mobile/instructor/faq/index_instructor.tmpl.php
new file mode 100644 (file)
index 0000000..c7af3d2
--- /dev/null
@@ -0,0 +1,51 @@
+
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<div class="table-surround">
+<table class="data" summary="View and edit frequently asked questions for the course">
+<thead>
+<tr>
+       <th>&nbsp;</th>
+       <th><?php echo _AT('name'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="2"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+                                   <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<?php if (!empty($this->faq_topics)): ?>
+               <?php foreach ($this->faq_topics as $topic_id => $row): ?>
+                                       <tr onmousedown="document.form['t<?php echo $row['topic_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['topic_id']; ?>_0">
+                                       <th style="border-top:1pt solid #e0e0e0;"><input type="radio" name="item" id="t<?php echo $row['topic_id']; ?>" value="<?php echo $row['topic_id']; ?>" /></th>
+                                       <th style="border-top:1pt solid #e0e0e0;"><?php echo AT_print($row['name'], 'faqs.topic'); ?></th>
+                                       </tr>
+       
+                       <?php if (!empty($row['entry_rows'])): ?>
+                               <?php foreach($row['entry_rows'] as $question_row): ?>
+                               <tr onmousedown="document.form['q<?php echo $question_row['entry_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['topic_id']; ?>_<?php echo $question_row['entry_id']; ?>">
+                                       <td><input type="radio" name="item" id="q<?php echo $question_row['entry_id']; ?>" value="<?php echo $question_row['entry_id']; ?>q" /></td>
+                                       <td><?php echo AT_print($question_row['question'], 'faqs.question'); ?></td>
+                               </tr>
+                               <?php endforeach;?>
+                       
+                       <?php else:?>
+                       <tr>
+                                       <td>&nbsp;</td>
+                                       <td><?php echo _AT('no_questions'); ?></td>
+                               </tr>
+                       <?php endif;?>
+               <?php endforeach; ?>
+       <tbody>
+       
+               
+       </tbody>
+<?php else: ?>
+       <tr>
+               <td colspan="2"><strong><?php echo _AT('none_found'); ?></strong></td>
+       </tr>
+<?php endif; ?>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/forums/add_forum.tmpl.php b/docs/themes/mobile/instructor/forums/add_forum.tmpl.php
new file mode 100644 (file)
index 0000000..8952dc4
--- /dev/null
@@ -0,0 +1,24 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="add_forum" value="true">
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('create_forum'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" name="title" size="40" id="title" />
+       </div>
+       <div class="row">
+               <label for="body"><?php echo _AT('description'); ?></label><br />
+               <textarea name="body" cols="40" rows="2" id="body" wrap="wrap"></textarea>
+       </div>
+       <div class="row">
+               <label for="edit"><?php echo _AT('allow_editing'); ?></label><br />
+               <input type="text" name="edit" size="3" id="edit" value="<?php echo intval($row['mins_to_edit']); ?>" /> <?php echo _AT('in_minutes'); ?>
+       </div>
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/forums/edit_forum.tmpl.php b/docs/themes/mobile/instructor/forums/edit_forum.tmpl.php
new file mode 100644 (file)
index 0000000..1114aaa
--- /dev/null
@@ -0,0 +1,28 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="edit_forum" value="true">
+<input type="hidden" name="fid" value="<?php echo $this->fid; ?>">
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit_forum'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" name="title" size="40" id="title" value="<?php echo htmlspecialchars(stripslashes($this->row['title'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="body"><?php echo _AT('description'); ?></label><br />
+               <textarea name="body" cols="40" rows="2" id="body" wrap="wrap"><?php echo AT_print($this->row['description'], 'input.text'); ?></textarea>
+       </div>
+
+       <div class="row">
+               <label for="edit"><?php echo _AT('allow_editing'); ?></label><br />
+               <input type="text" name="edit" size="3" id="edit" value="<?php echo intval($this->row['mins_to_edit']); ?>" /> <?php echo _AT('in_minutes'); ?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/forums/index.tmpl.php b/docs/themes/mobile/instructor/forums/index.tmpl.php
new file mode 100644 (file)
index 0000000..8cdc0c3
--- /dev/null
@@ -0,0 +1,41 @@
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="List of course forums">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('title'); ?></th>
+       <th scope="col"><?php echo _AT('description'); ?></th>
+       <!--  REMOVED FOR MOBILE <th scope="col"><?php echo _AT('allow_editing'); ?></th>-->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="4"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($this->all_forums['nonshared']): ?>
+       <?php foreach($this->all_forums['nonshared'] as $row): ?>
+               <tr onmousedown="document.form['f<?php echo $row['forum_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['forum_id']; ?>">
+                       <td width="10"><input type="radio" name="id" value="<?php echo $row['forum_id']; ?>" id="f<?php echo $row['forum_id']; ?>" /></td>
+                       <td><label for="f<?php echo $row['forum_id']; ?>"><?php echo AT_print($row['title'], 'forums.title'); ?></label></td>
+                       <td><?php echo AT_print($row['description'], 'forums.description'); ?></td>
+                       <!-- REMOVED FOR MOBILE <td>
+                               <?php if (!$row['mins_to_edit']): ?>
+                                       <?php echo _AT('no'); ?>
+                               <?php else: ?>
+                                       <?php echo  _AT('minutes', $row['mins_to_edit']); ?>
+                               <?php endif; ?>
+                       </td>-->
+               </tr>
+       <?php endforeach; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/glossary/add.tmpl.php b/docs/themes/mobile/instructor/glossary/add.tmpl.php
new file mode 100644 (file)
index 0000000..27bd08d
--- /dev/null
@@ -0,0 +1,61 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="num_terms" value="<?php echo $this->num_terms; ?>" />
+<?php
+for ($i=0;$i<$this->num_terms;$i++) {
+       if ($glossary[$word[$i]] != '') {
+               echo '<input type="hidden" name="ignore['.$i.']" value="1" />';
+               continue;
+       }
+       
+       for ($j=0;$j<$i;$j++) {
+               if ($word[$j] == $word[$i]) {
+                       echo '<input type="hidden" name="ignore['.$i.']" value="1" />';
+                       continue 2;
+               }
+       }
+
+       if ($word[$i] == '') {
+               $word[$i] = ContentManager::cleanOutput($_POST['word'][$i]);
+       }
+?>
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_glossary'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title<?php echo $i; ?>"><?php echo _AT('glossary_term');  ?></label><br />
+               <input type="text" name="word[<?php echo $i; ?>]" size="30" value="<?php echo trim($word[$i]); ?>" id="title<?php echo $i; ?>" /><?php                  
+               if ($_GET['pcid'] != '') { 
+                       echo '<input type="checkbox" name="ignore['.$i.']" value="1" id="ig'.$i.'" /><label for="ig'.$i.'">Ignore this term</label>.';  
+               }
+               ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body<?php echo $i; ?>"><?php echo _AT('glossary_definition');  ?></label><br />
+               <textarea name="definition[<?php echo $i; ?>]" class="formfield" cols="55" rows="7" id="body<?php echo $i; ?>" style="width:90%;"><?php echo ContentManager::cleanOutput($_POST['definition'][$i]); ?></textarea>
+       </div>
+
+       <div class="row">
+       <?php echo _AT('glossary_related');  ?><br />
+       <?php
+                       
+                       if ($row_g = mysql_fetch_assoc($this->result_glossary)) {
+                               echo '<select name="related_term['.$i.']">';
+                               echo '<option value="0"></option>';
+                               do {
+                                       echo '<option value="'.$row_g['word_id'].'">'.$row_g['word'].'</option>';
+                               } while ($row_g = mysql_fetch_assoc($this->result_glossary));
+                               echo '</select>';
+                       } else {
+                               echo _AT('none_available');
+                       }
+               } // endfor
+       ?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/polls/add.tmpl.php b/docs/themes/mobile/instructor/polls/add.tmpl.php
new file mode 100644 (file)
index 0000000..c0f586d
--- /dev/null
@@ -0,0 +1,27 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="add_poll" value="true" />
+
+<div class="input-form">       
+<fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_poll'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php  echo _AT('question'); ?></label><br />
+               <textarea name="question" cols="40" rows="3" id="question" ><?php if (isset ($_POST['question'])) echo htmlspecialchars($_POST['question']);  ?></textarea>
+       </div>
+
+<?php for ($i=1; $i<= AT_NUM_POLL_CHOICES; $i++): ?>
+       <div class="row">
+               <?php if (($i==1) || ($i==2)) { ?>
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
+               <?php } ?>
+               <label for="c<?php echo $i; ?>"><?php echo _AT('choice'); ?> <?php echo $i; ?></label><br />
+               <input type="text" name="c<?php echo $i; ?>" value="<?php if (isset($_POST['c' . $i])) echo htmlspecialchars($_POST['c' . $i]);  ?>" size="40" id="c<?php echo $i; ?>" />
+       </div>
+<?php endfor; ?>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/polls/edit.tmpl.php b/docs/themes/mobile/instructor/polls/edit.tmpl.php
new file mode 100644 (file)
index 0000000..047a1e8
--- /dev/null
@@ -0,0 +1,30 @@
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="edit_poll" value="true" />
+<input type="hidden" name="poll_id" value="<?php echo $this->row['poll_id']; ?>" />
+
+<div class="input-form">
+<fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit_poll'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php echo _AT('question'); ?>:</label><br />
+               <textarea name="question" cols="40" rows="3" id="question"><?php if (isset ($_POST['question'])) { echo AT_print($_POST['question'], 'input.text'); } else { echo AT_print($this->row['question'], 'input.text'); } ?></textarea>
+       </div>
+
+<?php
+       for ($i=1; $i<= AT_NUM_POLL_CHOICES; $i++): ?>
+               <div class="row">
+                       <?php if (($i==1) || ($i==2)) { ?>
+                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
+                       <?php } ?>
+                       <label for="c<?php echo $i; ?>"><?php echo _AT('choice'); ?> <?php echo $i; ?>:</label><br />
+                       <input type="text" name="c<?php echo $i; ?>" id="c<?php echo $i; ?>" value="<?php if (isset ($_POST['c' . $i])) { echo AT_print($_POST['c' . $i], 'input.text'); } else { echo AT_print($this->row['choice' . $i], 'input.text'); }?>" size="40" />
+               </div>
+
+<?php endfor; ?>
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/polls/index.tmpl.php b/docs/themes/mobile/instructor/polls/index.tmpl.php
new file mode 100644 (file)
index 0000000..36d9eac
--- /dev/null
@@ -0,0 +1,52 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<div class="table-surround">
+<table class="data" summary="Course polls listed by question, creation date and votes" >
+<colgroup>
+       <?php if ($this->col == 'question'): ?>
+               <col />
+               <col class="sort" />
+               <col span="2" />
+       <?php elseif($this->col == 'created_date'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col />
+       <?php elseif($this->col == 'total'): ?>
+               <col span="3" />
+               <col class="sort" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $this->orders[$this->order]; ?>=question"><?php echo _AT('question'); ?></a></th>
+       <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $this->orders[$this->order]; ?>=created_date"><?php echo _AT('created'); ?></a></th>
+       <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $this->orders[$this->order]; ?>=total"><?php echo _AT('total_votes'); ?></a></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="4">
+               <input type="submit" name="edit"   value="<?php echo _AT('edit'); ?>" />
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)) : ?>
+       <?php do { ?>
+               <tr onmousedown="document.form['p_<?php echo $row['poll_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['poll_id']; ?>">
+                       <td><input type="radio" id="p_<?php echo $row['poll_id']; ?>" name="poll" value="<?php echo $row['poll_id']; ?>" /></td>
+                       <td><label for="p_<?php echo $row['poll_id']; ?>"><?php echo AT_print($row['question'], 'polls.question'); ?></label></td>
+                       <td><?php echo AT_DATE(_AT("server_date_format"), $row['created_date']); ?></td>
+                       <td><?php echo $row['total']; ?></td>
+               </tr>
+       <?php } while($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
diff --git a/docs/themes/mobile/instructor/properties/course_properties.tmpl.php b/docs/themes/mobile/instructor/properties/course_properties.tmpl.php
new file mode 100644 (file)
index 0000000..6f833b5
--- /dev/null
@@ -0,0 +1,441 @@
+<?php 
+global $languageManager,  $_config, $MaxCourseSize, $MaxFileSize;
+
+?>
+<?php echo _AT('available_immediately'); ?>
+<form method="post" action="<?php echo $_SERVER['PHP_SELF'];  ?>" name="course_form" enctype="multipart/form-data">
+       <input type="hidden" name="form_course" value="true" />
+       <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_config['prof_pic_max_file_size']; ?>" />
+       <input type="hidden" name="course" value="<?php echo $this->course; ?>" />
+       <input type="hidden" name="old_access" value="<?php echo $this->row['access']; ?>" />
+       <input type="hidden" name="created_date" value="<?php echo $this->row['created_date']; ?>" />
+       <input type="hidden" name="show_courses" value="<?php echo $_GET['show_courses']; ?>" />
+       <input type="hidden" name="current_cat" value="<?php echo $_GET['current_cat']; ?>" />
+       <input type="submit" name="submit" style="display:none;"/>
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('properties'); ?></legend>
+<?php if ($this->isadmin): ?>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="inst"><?php echo  _AT('instructor'); ?></label><br />
+                       <?php 
+                       
+                       
+                       if ($instructor_row = mysql_fetch_assoc($this->result)) {
+                               echo '<select name="instructor" id="inst">';
+                               do {
+                                       if ($instructor_row['member_id'] == $this->row['member_id']) {
+                                               echo '<option value="'.$instructor_row['member_id'].'" selected="selected">'.$instructor_row['login'].'</option>';
+                                       } else {
+                                               echo '<option value="'.$instructor_row['member_id'].'">'.$instructor_row['login'].'</option>';
+                                       }
+                               } while($instructor_row = mysql_fetch_assoc($this->result));
+                               echo '</select>';
+                       } else {
+                               echo '<span id="inst">'._AT('none_found').'</span>';
+                       }
+                       ?>
+       </div>
+<?php endif; ?>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" id="title" name="title" size="40" value="<?php echo htmlspecialchars($this->row['title']); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="pri_lang"><?php  echo _AT('primary_language'); ?></label><br />
+               <?php $languageManager->printDropdown($this->row['primary_language'], 'pri_lang', 'pri_lang'); ?>
+       </div>
+
+       <div class="row">
+               <label for="description"><?php echo _AT('description'); ?></label><br />
+               <textarea id="description" cols="45" rows="2" name="description"><?php echo $this->row['description']; ?></textarea>
+       </div>
+       <?php if ($_config['course_dir_name']): ?>
+       <div class="row">
+               <label for="course_dir_name"><?php echo _AT('course_dir_name'); ?></label><br />
+               <input type="text" id="course_dir_name" name="course_dir_name" size="40" value="<?php echo htmlspecialchars($this->row['course_dir_name']); ?>" />
+       </div>
+       <?php endif; ?>
+
+       <?php $categories = get_categories(); ?>
+       <?php if (is_array($categories)): ?>
+               <div class="row">
+               <label for="cat"><?php echo _AT('category'); ?></label><br />
+                       <select name="category_parent" id="cat">
+                               <option value="0">&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;<?php echo _AT('cats_uncategorized'); ?>&nbsp;&nbsp;]&nbsp;&nbsp;&nbsp;</option>
+                               <?php select_categories($categories, 0, $this->row['cat_id'], false); ?>
+
+                       </select>
+               </div>
+       <?php endif; ?>
+
+       <div class="row">
+               <?php  echo _AT('export_content'); ?><br />
+               <?php
+                       switch ($this->row['content_packaging']) {
+                               case 'none':
+                                               $none = ' checked="checked"';
+                                               break;
+
+                               case 'top':
+                                               $top     = ' checked="checked"';
+                                               break;
+
+                               case 'all':
+                                               $all    = ' checked="checked"';
+                                               break;
+                       }
+                       ?>
+               <label for="none" ><input type="radio" name="content_packaging" value="none" id="none" <?php echo $none; ?> /><?php echo _AT('content_packaging_none'); ?></label><br />
+               <label for="ctop"><input type="radio" name="content_packaging" value="top" id="ctop"  <?php echo $top; ?> /><?php  echo _AT('content_packaging_top'); ?></label><br />
+               <label for="all"><input type="radio" name="content_packaging" value="all" id="all" <?php echo $all; ?> /><?php  echo _AT('content_packaging_all'); ?></label>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('syndicate_announcements'); ?><br />
+               <?php
+                               $rss_no = $rss_yes = '';
+
+                               if ($this->row['rss']) {
+                                       $rss_yes = ' checked="checked"';
+                               } else {
+                                       $rss_no = ' checked="checked"';
+                               }
+               ?>
+               <label for="rss_y"><input type="radio" name="rss" value="1" id="rss_y" <?php echo $rss_yes; ?> /><?php echo _AT('enable_syndicate'); ?></label><br />
+               <label for="rss_n"><input type="radio" name="rss" value="0" id="rss_n"  <?php echo $rss_no; ?> /><?php  echo _AT('disable_syndicate'); ?></label>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('access'); ?><br />
+               <?php
+                               switch ($this->row['access']) {
+                                       case 'public':
+                                                       $pub = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'protected':
+                                                       $prot    = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'private':
+                                                       $priv   = ' checked="checked"';
+                                                       break;
+                               }
+
+                               if ($this->row['notify']) {
+                                       $notify = ' checked="checked"';
+                               }
+
+                               if ($this->row['hide']) {
+                                       $hide = ' checked="checked"';
+                               }
+               ?>
+               <input type="radio" name="access" value="public" id="pub" onclick="disableNotify();" <?php echo $pub; ?> /><label for="pub"><strong> <?php echo  _AT('public'); ?>: </strong></label><?php echo  _AT('about_public'); ?><br /><br />
+
+               <input type="radio" name="access" value="protected" id="prot" onclick="disableNotify();" <?php echo $prot; ?> /><label for="prot"><strong><?php echo  _AT('protected'); ?>:</strong></label> <?php echo _AT('about_protected'); ?><br /><br />
+
+               <input type="radio" name="access" value="private" id="priv" onclick="enableNotify();" <?php echo $priv; ?> /><label for="priv"><strong><?php echo  _AT('private'); ?>:</strong></label> <?php echo  _AT('about_private'); ?><br />
+               <input type="checkbox" name="notify" id="notify" value="1" <?php
+                       echo $disable;
+                       echo $notify; ?> /><label for="notify"><?php echo  _AT('email_approvals'); ?></label>
+               <br />
+               <input type="checkbox" name="hide" id="hide" value="1" <?php
+               echo $disable;
+               echo $hide; ?> /><label for="hide"><?php echo  _AT('hide_course'); ?></label>.
+       </div>
+
+       <div class="row">
+               <?php echo _AT('release_date'); ?><br />
+               <?php
+                       $rel_no = $rel_yes = '';
+
+                       if (intval($this->row['release_date'])) {
+                               $rel_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['release_date'], 8, 2);
+                               $today_mon   = substr($this->row['release_date'], 5, 2);
+                               $today_year  = substr($this->row['release_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['release_date'], 11, 2);
+                               $today_min   = substr($this->row['release_date'], 14, 2);
+                       } else {
+                               $rel_no = ' checked="checked"'; 
+                               $today_year  = date('Y');
+                       }
+
+               ?>
+
+               <input type="radio" name="release_date" value="0" id="release_now" <?php echo $rel_no; ?> /> <label for="release_now"><?php echo _AT('available_immediately'); ?></label><br />
+
+
+               <input type="radio" name="release_date" value="1" id="release_later" <?php echo $rel_yes; ?> /> <label for="release_later"><?php echo _AT('release_on'); ?></label> 
+               <?php
+                       $name = '_release';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('end_date'); ?><br />
+               <?php
+                       $end_no = $end_yes = '';
+
+                       if (intval($this->row['end_date'])) {
+                               $end_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['end_date'], 8, 2);
+                               $today_mon   = substr($this->row['end_date'], 5, 2);
+                               $today_year  = substr($this->row['end_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['end_date'], 11, 2);
+                               $today_min   = substr($this->row['end_date'], 14, 2);
+                       } else {
+                               $end_no = ' checked="checked"'; 
+                               $today_year  = date('Y')+1;
+                       }
+
+               ?>
+
+               <input type="radio" name="end_date" value="0" id="end_now" <?php echo $end_no; ?> /> <label for="end_now"><?php echo _AT('no_end_date'); ?></label><br />
+
+               <input type="radio" name="end_date" value="1" id="end_later" <?php echo $end_yes; ?> /> <label for="end_later"><?php echo _AT('end_on'); ?></label> 
+               <?php
+                       $name = '_end';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+       </div>
+
+       <div class="row">
+               <?php
+                       if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
+                               echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
+                               echo '<input type="submit" name="settext" value="'._AT('switch_text').'"  class="button"/>';
+                       } else {
+                               echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'" class="button"/>';
+                       }
+               ?>
+       </div>
+       <div class="row">
+
+               <label for="banner"><?php echo _AT('banner'); ?></label><br />
+               <textarea id="banner" cols="45" rows="15" name="banner"><?php echo $this->row['banner']; ?></textarea>
+       </div>
+<!-- FIX  -->
+<?php if (!$this->course) : ?>
+       <div class="row">
+               <label for="initial_content"><?php echo _AT('initial_content'); ?></label><br />
+               <select name="initial_content" id="initial_content" size="5">
+                       <option value="0"><?php echo _AT('empty'); ?></option>
+                       <option value="1" selected="selected"><?php echo _AT('create_basic'); ?></option>
+                       <?php 
+                       
+                       if ($course_row = mysql_fetch_assoc($result)) {
+                               do {
+                                       $Backup->setCourseID($course_row['course_id']);
+                                       $list = $Backup->getAvailableList();
+
+                                       if (!empty($list)) { 
+                                               echo '<optgroup label="'. _AT('restore').': '.$course_row['title'].'">';
+                                               foreach ($list as $list_item) {
+                                                       echo '<option value="'.$list_item['backup_id'].'_'.$list_item['course_id'].'">'.$list_item['file_name'].' - '.get_human_size($list_item['file_size']).'</option>';
+                                               }
+                                               echo '</optgroup>';
+                                       }
+                               } while ($course_row = mysql_fetch_assoc($result));
+                       }
+                       ?>
+                       </select>
+       </div>
+<?php endif; // !$course_id ?>
+
+<?php if ($this->isadmin) : ?>
+       <div class="row">
+               <?php  echo _AT('course_quota'); ?><br />
+               <?php 
+                       if ($this->row['max_quota'] == AT_COURSESIZE_UNLIMITED) { 
+                               $c_unlim = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_quota'] == AT_COURSESIZE_DEFAULT) {
+                               $c_def = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $c_oth = ' checked="checked" ';
+                               $c_oth2 = '';
+                       }
+
+                       if ($this->course > 0) {
+                               $course_size = dirsize(AT_CONTENT_DIR . $this->course.'/');
+                       } else {
+                               $course_size = 0;
+                       }
+
+                       if ($this->course) {
+                               echo _AT('current_course_size') .': '.get_human_size($course_size).'<br />'; 
+                       }
+               ?>
+
+               <input type="radio" id="c_default" name="quota" value="<?php echo AT_COURSESIZE_DEFAULT; ?>" onclick="disableOther();" <?php echo $c_def;?> /><label for="c_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxCourseSize).')'; ?></label> <br />
+               <input type="radio" id="c_unlim" name="quota" value="<?php echo AT_COURSESIZE_UNLIMITED; ?>" onclick="disableOther();" <?php echo $c_unlim;?>/><label for="c_unlim"> <?php echo _AT('unlimited'); ?></label> <br />
+               <input type="radio" id="c_other" name="quota" value="2" onclick="enableOther();" <?php echo $c_oth;?>/><label for="c_other"> <?php echo _AT('other'); ?> </label> - 
+               <label for="quota_entered">Quota Entered</label>
+               <input type="text" id="quota_entered" name="quota_entered" <?php echo $c_oth2?> value="<?php if ($this->row['max_quota']!=AT_COURSESIZE_UNLIMITED && $this->row['max_quota']!=AT_COURSESIZE_DEFAULT) { echo bytes_to_megabytes($this->row['max_quota']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+       <div class="row">
+               <?php  echo _AT('max_file_size'); ?><br />
+               <?php 
+                       $max_allowed = megabytes_to_bytes(substr(ini_get('upload_max_filesize'), 0, -1));
+
+                       if ($this->row['max_file_size'] == AT_FILESIZE_DEFAULT) { 
+                               $f_def = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_file_size'] == AT_FILESIZE_SYSTEM_MAX) {
+                               $f_max = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $f_oth = ' checked="checked" ';
+                               $f_oth2 = '';
+                       }
+               ?>
+               <input type="radio" id="f_default" name="filesize" value="<?php echo AT_FILESIZE_DEFAULT; ?>" onclick="disableOther2();" <?php echo $f_def;?> /><label for="f_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxFileSize).')'; ?></label> <br />
+               <input type="radio" id="f_maxallowed" name="filesize" value="<?php echo AT_FILESIZE_SYSTEM_MAX; ?>" onclick="disableOther2();" <?php echo $f_max;?>/><label for="f_maxallowed"> <?php echo _AT('max_file_size_system') . ' ('.get_human_size($max_allowed).')'; ?></label> <br />
+               <input type="radio" id="f_other" name="filesize" value="2" onclick="enableOther2();" <?php echo $f_oth;?>/><label for="f_other"> <?php echo _AT('other'); ?> </label> - 
+               <label for="filesize_entered">Filesize entered</label>
+               <input type="text" id="filesize_entered" name="filesize_entered" <?php echo $f_oth2?> value="<?php if ($this->row['max_file_size']!=AT_FILESIZE_DEFAULT && $this->row['max_file_size']!=AT_FILESIZE_SYSTEM_MAX) { echo bytes_to_megabytes($this->row['max_file_size']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+<?php else: ?>
+       <input type="hidden" name="quota" value="<?php echo $this->row['max_quota']; ?>" />
+       <input type="hidden" name="filesize" value="<?php echo $this->row['max_file_size']; ?>" />
+       <input type="hidden" name="tracking" value="<?php echo $this->row['tracking']; ?>" />
+<?php endif; ?>
+
+       <div class="row">
+               <label for="copyright"><?php echo _AT('course_copyright'); ?></label><br />
+               <textarea name="copyright" rows="2" cols="65" id="copyright"><?php echo $this->row['copyright']; ?></textarea>
+       </div>
+       <div class="row">
+               <?php 
+            if ($this->row['icon'] != ''): 
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                if (file_exists($path.$this->row['icon'])) {
+                    if (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) {
+                        $custom_icon_path = 'get_course_icon.php/?id='.$this->row['course_id'];
+                    } else {
+                        $_base_href = 'content/' . $this->row['course_id'] . '/';
+                    }
+                } else {
+                    $_base_href = "images/courses/";   //$_base_href = 'get_course_icon.php/?id='.$row['course_id'];
+                }
+
+            $force_get = (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) ? true : false;
+            echo "<input type='hidden' name='boolForce' id='boolForce' value='$force_get' />";
+        
+       //include(AT_INCLUDE_PATH.'html/course_icon.inc.php');        
+        ?>
+               <img id="i0" src="<?php echo ($custom_icon_path=='')?$_base_href.$this->row['icon']:$custom_icon_path; ?>" alt="<?php echo $this->row['icon']; ?>" border="1" height="79" width="79"  style="float: left; margin: 2px;" />
+
+               <?php else: ?>
+                       <img id="i0" src="images/clr.gif" alt="" style="float: left; margin: 2px;" border="1" height="79" width="79"  />
+                       <input type='hidden' name='boolForce' id='boolForce' value='' />
+               <?php endif; ?>
+               <div style="width:40%; float:left;">
+               <label for="icons"><?php echo _AT('icon'); ?></label><br />
+               <select name="icon" id="icons" onchange="SelectImg()">
+                       <option value=""><?php echo _AT('no_icon'); ?></option>
+            <?php // ------------- custom course icons
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                $boolCustom = false;
+                $optCount = 0;
+
+                if (is_dir($path)) {
+                    $boolCustom = true;  // true if custom icons are uploaded, otherwise false
+                    
+                    /*$files = scandir($path);  //SCANDIR STOPS ATUTOR WHEN RUN AS INSTRUCTOR, BUT NOT AS ADMIN. WHY? -Gorzan */
+                    
+                    /* PHP 4 REPLACEMENT FOR SCANDIR */
+                                       $dh  = opendir($path);
+                                       while (false !== ($filename = readdir($dh))) {
+                                               $files[] = $filename;
+                                       }
+
+                                       /*END PHP 4 REPLACEMENT FOR SCANDIR*/
+                    echo "<optgroup label='"._AT('custom_icons')."'>";
+                    foreach($files as $val) {
+                                               $file_ext = substr(strtolower($val), -3);
+                        if ($file_ext == "jpg" || $file_ext == "png" || $file_ext == "gif") {
+                            $optCount++;
+                            echo "<option value='".$val."'";
+                            if ($val == $this->row['icon']) {
+                                echo 'selected="selected"';
+                            }
+                            echo ">".$val."</option>";
+                        }
+                    }
+                    echo "</optgroup>";
+                }
+                
+            ?>
+                       <?php // ------------- other icons
+
+                               $course_imgs = array();
+                               if ($dir = opendir(AT_INCLUDE_PATH.'../images/courses/')) {
+                                       while (false !== ($file = readdir($dir)) ) {
+                                               if( ($file == '.') || ($file == '..')) { 
+                                                       continue;
+                                               }
+                                               $course_imgs[] = $file;
+                                       }               
+                                       closedir($dir); 
+                               }
+                               sort($course_imgs);
+                if ($boolCustom == true) {
+                    echo "<optgroup label='"._AT('builtin_icons')."'>";
+                }
+                               foreach ($course_imgs as $file) {
+                                       echo '<option value="' . $file . '" ';
+                                       if ($file == $this->row['icon']) { 
+                                               echo 'selected="selected"'; 
+                                       }
+                                       echo ' >' . $file . '</option>';        
+                               }
+                if ($boolCustom == true) {
+                    echo "</optgroup>";
+                }
+                       ?>
+               </select><?php echo "&nbsp;&nbsp;&nbsp; "._AT('or'); ?>
+       </div>
+            <!-- div class="row" style="float:right;width:40%;">
+            <?php echo _AT('upload_icon'); ?><br />
+               <label for="customicon"><input type="file" name="customicon" title="custom icon" id="customicon" value="<?php echo $_POST['customicon']; ?>"/></label><br />
+                <small><?php echo _AT('upload_icon_text'); ?></small>
+            </div -->
+
+        <?php  require_once(AT_INCLUDE_PATH.'../mods/_core/courses/html/course_icon.inc.php'); ?>
+
+        <br style="clear: left;" />
+
+       </div>
+
+    <div style="clear: both;"></div>
+
+    
+
+       <div class="buttons">
+               <?php
+            echo "<input type='hidden' name='custOptCount' id='custOptCount' value='".$optCount."' />";
+            echo "<input type='hidden' name='courseId' id='courseId' value='".$this->row['course_id']."' />";
+               ?>
+
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel');?>" />
+       </div>
+    </fieldset>
+</div>
+
+</form>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/statistics/course_stats.tmpl.php b/docs/themes/mobile/instructor/statistics/course_stats.tmpl.php
new file mode 100644 (file)
index 0000000..dac7f60
--- /dev/null
@@ -0,0 +1,179 @@
+<?php if ($this->mobile_device_type == IPAD_DEVICE): ?>
+<table cellspacing="1" cellpadding="1" border="0" class="bodyline" summary="course statistics" align="center">
+       <tr>
+               <th colspan="2" class="cyan"><small class="bigspacer"><?php
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.($this->last_month).SEP.'year='.$this->last_year.'">';
+                       echo ' '.AT_date('%F', $this->last_month, AT_DATE_INDEX_VALUE ); ?></a> |</small>
+                       <?php echo AT_date('%F', $this->month, AT_DATE_INDEX_VALUE ); ?> <small class="bigspacer">| <?php
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.$this->next_month.SEP.'year='.$this->next_year.'">';
+                       echo AT_date('%F', $this->next_month, AT_DATE_INDEX_VALUE); ?> </a></small></th>
+       </tr>
+<?php
+               if (($this->num_days == 0) || ($this->empty)) {
+                       echo '<tr>';
+                       echo '<td class="row1" colspan="2">'._AT('no_month_data').'</td>';
+                       echo '</tr>';
+                       echo '</table>';
+                       require(AT_INCLUDE_PATH.'footer.inc.php');
+                       exit;
+               }
+?>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('total'); ?>:</strong></td>
+               <td class="row1"><?php echo $this->total_logins; ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('maximum'); ?>:</strong></td>
+               <td class="row1"><?php echo $this->max_total_logins; ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('minimum'); ?>:</strong></td>
+               <td class="row1"><?php
+               if ($this->min_total_logins < 99999999) {
+                       echo $this->min_total_logins; 
+               } else {
+                       echo '0';
+               } ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php   echo _AT('average'); ?>:</strong></td>
+               <td class="row1"><?php echo number_format($this->avg_total_logins, 1); ?> <?php   echo _AT('per_day'); ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+
+       <tr>
+               <td class="row1" valign="top" align="right" <strong><?php   echo _AT('graph'); ?>:</strong></td>
+               <td class="row1">
+                       <table border="0" cellspacing="0" cellpadding="0">
+                       <tr>
+                               <td valign="top" class="graph1"><small><?php echo $this->max_total_logins; ?></small></td>
+
+<?php
+                       foreach ($this->days as $day => $logins) {
+                       $dd++;
+                               echo '<td valign="bottom" class="graph"><img src="images/clr.gif" height="'.(($this->max_total_logins*$this->multiplyer_height) % $this->block_height + $this->block_height).'" width="10" alt="" /><br /><img src="images/blue.gif" height="'.($logins[0]*$this->multiplyer_height).'" width="9" alt="'.$logins[0].' '._AT('guests').' ('.($logins[0]+$logins[1]).' '._AT('total').')" /><br /><img src="images/red.gif" height="'.($logins[1]*$this->multiplyer_height).'" width="9" alt="'.$logins[1].' '._AT('members').' ('.($logins[1]+$logins[0]).' '._AT('total').')" /><br /><small>'.$dd.'&nbsp;</small></td>';
+
+                       } while ($row = mysql_fetch_array($this->result));
+?>
+
+                       </tr>
+                       <tr>
+                               <td valign="top"><small>0</small></td>
+                       </tr>
+                       </table>
+
+                       <small><?php  echo _AT('legend'); ?>: <img src="images/red.gif" height="10" width="10" alt="<?php echo _AT('red_members'); ?>" /> <?php   echo _AT('members'); ?>,
+                               <img src="images/blue.gif" height="10" width="10" alt="<?php echo _AT('blue_guests'); ?>" /> <?php echo _AT('guests'); ?>.</small>
+               </td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('raw_data'); ?>:</strong></td>
+               <td class="row1" align="center">
+       
+               <table class="data static" summary="" rules="cols">
+               <thead>
+               <tr>
+                       <th scope="col"><?php echo _AT('date');    ?></th>
+                       <th scope="col"><?php echo _AT('guests');  ?></th>
+                       <th scope="col"><?php echo _AT('members'); ?></th>
+               </tr>
+               </thead>
+               <tbody>
+               <?php $short_name = $month_name_con['en'][$month-1]; ?>
+               <?php foreach ($this->days as $day => $logins):?>
+                       <tr>
+                               <td><?php echo $short_name.' '.$day; ?></td>
+                               <td><?php echo $logins[0]; ?></td>
+                               <td><?php echo $logins[1]; ?></td>
+                       </tr>
+               <?php endforeach; ?>
+               <tbody>
+               </table>
+
+               </td>
+       </tr>
+       </table>
+<?php endif;?>
+<?php if ($this->mobile_device_type != IPAD_DEVICE): ?>
+
+<table style="width: 100%" cellspacing="1" cellpadding="1" border="0" class="bodyline" summary="course statistics" align="center" frame="box" >
+       <tr>
+               <th colspan="2" class="cyan"><small class="bigspacer"><?php
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.($this->last_month).SEP.'year='.$this->last_year.'">';
+                       echo ' '.AT_date('%F', $this->last_month, AT_DATE_INDEX_VALUE ); ?></a> |</small>
+                       <?php echo AT_date('%F', $this->month, AT_DATE_INDEX_VALUE ); ?> <small class="bigspacer">| <?php
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.$this->next_month.SEP.'year='.$this->next_year.'">';
+                       echo AT_date('%F', $this->next_month, AT_DATE_INDEX_VALUE); ?> </a></small></th>
+       </tr>
+<?php
+               if (($this->num_days == 0) || ($this->empty)) {
+                       echo '<tr>';
+                       echo '<td class="row1" colspan="2">'._AT('no_month_data').'</td>';
+                       echo '</tr>';
+                       echo '</table>';
+                       require(AT_INCLUDE_PATH.'footer.inc.php');
+                       exit;
+               }
+?>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('total'); ?>:</strong></td>
+               <td class="row1"><?php echo $this->total_logins; ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('maximum'); ?>:</strong></td>
+               <td class="row1"><?php echo $this->max_total_logins; ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('minimum'); ?>:</strong></td>
+               <td class="row1"><?php
+               if ($this->min_total_logins < 99999999) {
+                       echo $this->min_total_logins; 
+               } else {
+                       echo '0';
+               } ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php   echo _AT('average'); ?>:</strong></td>
+               <td class="row1"><?php echo number_format($this->avg_total_logins, 1); ?> <?php   echo _AT('per_day'); ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+
+
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('raw_data'); ?>:</strong></td>
+               <td class="row1" align="center">
+       
+               <table class="data static" summary="" rules="cols" frame="box">
+               <thead>
+               <tr>
+                       <th scope="col"><?php echo _AT('date');    ?></th>
+                       <th scope="col"><?php echo _AT('guests');  ?></th>
+                       <th scope="col"><?php echo _AT('members'); ?></th>
+               </tr>
+               </thead>
+               <tbody>
+               <?php $short_name = $month_name_con['en'][$month-1]; ?>
+               <?php foreach ($this->days as $day => $logins):?>
+                       <tr>
+                               <td><?php echo $short_name.' '.$day; ?></td>
+                               <td><?php echo $logins[0]; ?></td>
+                               <td><?php echo $logins[1]; ?></td>
+                       </tr>
+               <?php endforeach; ?>
+               <tbody>
+               </table>
+
+               </td>
+       </tr>
+       </table>
+<?php endif;?>
\ No newline at end of file
diff --git a/docs/themes/mobile/instructor/statistics/tracker/my_stats.tmpl.php b/docs/themes/mobile/instructor/statistics/tracker/my_stats.tmpl.php
new file mode 100644 (file)
index 0000000..b5e6d36
--- /dev/null
@@ -0,0 +1,44 @@
+<?php global $contentManager;?>
+<div class="table-surround">
+<table class="data static" summary="">
+<thead>
+<tr>
+       <th scope="col"><?php echo _AT('page'); ?></th>
+       <th scope="col"><?php echo _AT('visits'); ?></th>
+       <th scope="col"><?php echo _AT('duration'); ?></th>
+       <th scope="col"><?php echo _AT('last_accessed'); ?></th>
+</tr>
+</thead>
+<tbody>
+<?php
+       
+
+       if (mysql_num_rows($this->result) > 0) {
+               while ($row = mysql_fetch_assoc($this->result)) {
+                       if ($row['total'] == '') {
+                               $row['total'] = _AT('na');
+                       }
+
+                       echo '<tr>';
+                       echo '<td><a href='.AT_BASE_HREF.url_rewrite('content.php?cid='.$row['content_id']). '>' . $contentManager->_menu_info[$row['content_id']]['title'] . '</a></td>';
+                       echo '<td>' . $row['total_hits'] . '</td>';
+                       echo '<td>' . $row['total_duration'] . '</td>';
+                       if ($row['last_accessed'] == '') {
+                               echo '<td>' . _AT('na') . '</td>';
+                       } else {
+                               echo '<td>' . AT_date(_AT('forum_date_format'), $row['last_accessed'], AT_DATE_MYSQL_DATETIME) . '</td>';
+                       }
+                       echo '</tr>';
+               } //end while
+
+               echo '</tbody>';
+
+       } else {
+               echo '<tr><td colspan="4">' . _AT('none_found') . '</td></tr>';
+               echo '</tbody>';
+       }
+       ?>
+</tbody>
+</table>
+</div>
+
index a2204a6..d7466ac 100644 (file)
@@ -1,8 +1,6 @@
-/* Style is optimized for iphone. Note that -webkit properties 
-create errors in the CSS validator. 
-Classes beginning with ".fl-" are overriding Mobile FSS, 
-see the API @ http://wiki.fluidproject.org/display/fluid/Mobile+FSS+API 
-for more details. 
+/* Style is optimized for iphone. Note that -webkit properties create errors in the CSS validator. Relative units 
+for sizes are used unless it is a border. Classes beginning with ".fl-" override Mobile FSS, 
+see the API @ http://wiki.fluidproject.org/display/fluid/Mobile+FSS+API for more details. 
 */
 html, body{
        height: 100%;
@@ -23,7 +21,7 @@ body,ul,li {
 
 #header{
        width:100%;
-       height:1.063em;
+       height:1.2em;
        line-height:2.813em;
        padding:0;
        font-size:1.063em;
@@ -32,12 +30,14 @@ body,ul,li {
 #header-section-title {
        text-align: center;
        background-image: -webkit-gradient(linear, left top, left bottom,
-       from(#4b6b90),
+       from(#6d8cb3),
     color-stop(0.5, #6d8cb3),
     color-stop(0.50, #4b6b90),
     color-stop(0.5, #6d8cb3),
     to(#4b6b90)
     ); 
+  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#6d8cb3), to(#4b6b90));
+
 }
 
 .fl-theme-iphone .fl-navbar{
@@ -74,7 +74,7 @@ body,ul,li {
 #navigation-bar{
        height: 2.5em; 
     border-bottom: .5px solid black;
-    padding-bottom: .3em;
+   /*padding-bottom: .3em;*/
      
 }
 
@@ -91,9 +91,13 @@ body,ul,li {
        font-size: 90%;
        color: #4C566C;
        color: white;
+       margin-bottom: 1em;
+       
 }
 
-/*this CSS creates a button that looks exactly like a Mobile FSS tab.*/
+/************************************************************************************************/
+/* "Navigation" button, also this CSS creates a button that looks exactly like a Mobile FSS tab.*/
+/************************************************************************************************/
 .navigation-bar-button{
     border-width:5px;
     -webkit-border-radius: 5px;
@@ -114,13 +118,10 @@ body,ul,li {
     -webkit-border-left-image: none;
     -webkit-background-origin: border;
     -webkit-background-clip: border;
-    /* to mimick the mobile FSS scolor scheme (iphone) uncomment these lines 
-       background-image: -webkit-gradient(linear, left top, left bottom,
-       from(#9aafca),
-        color-stop(0.5, #6d8cb3),
-        color-stop(0.50, #4b6b90),
-        to(#4b6b90)
-    );*/
+}
+
+.navigation-bar-button a:hover, .navigation-bar-button a:active, .navigation-bar-button a:focus{
+       background-color: white;
 }
 
 .fl-theme-iphone .fl-tabs li{
@@ -132,16 +133,74 @@ body,ul,li {
         to(#354d68)
     ); 
 }
+.fl-theme-iphone .topnavlistcontainer .topnavlist-link {/*makes the navigation button link white*/
+       color: white;
+       text-decoration: none;
+       font-weight: bold;
+}
 
-div#content-link-container{
-       background-color:#F5F5F5;
-       padding:.375em;
-       border: #A9ADB0 solid 1px;
-       -webkit-border-radius: 2px;
+#content_link_phone.topnavlist-link-highlight, fl-theme-iphone .topnavlistcontainer .topnavlist-link-highlight{/*makes the navigation button link highlight*/
+       color: #4c96f4;
+       text-decoration: none;
+       font-weight: bold;
 }
-#content_link{
+
+
+
+#topnavlist-link {
+
+}
+
+ul#topnavlist {
+       display: none;
+       position: relative;
+       top: 1.2em;
+       z-index: 1000;
+       /*background-color: white;*/
+}
+
+div#content-link-container.flc-screenNavigator-navbar {
+  
+/*
+  border-width:5px;
+    -webkit-border-radius: 5px;
+       font-size: 18px; keep this in px
+       color: white;
+       
+    /* default mobile fss color scheme for tabs not AA compliant. Here is a compliant bg image: 
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+       -webkit-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -webkit-border-left-image: none;
+    -webkit-background-origin: border;
+    -webkit-background-clip: border;
+float: left;
+font-weight: bold;*/
+       color: #005689;
+}
+
+.content-link-surround a:active, .content-link-surround a:focus, .content-link-surround a:hover{
+       background: none;
+       
+}
+ #content_link_phone {
+       
        display: block;
+       text-decoration: none;
+       
+    color: white;
+    font-style: bold;
+    color: #005689;
+}
+.resume{
+       font-size: 1em;
 }
+
+
 #home-guide{
        position: absolute;
        top: .45em;
@@ -149,7 +208,13 @@ div#content-link-container{
        font-size: 17px;/*keep this in px*/
        white-space:nowrap;
        display: inline;
+}
 
+ul.home-guide li a:hover, ul.home-guide li a:focus, ul.home-guide li a:active,
+ul.home-guide li.back a:hover, ul.home-guide li.back a:focus, ul.home-guide li.back a:active,
+ul.home-guide li.forward a:hover, ul.home-guide li.forward a:focus, ul.home-guide li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
 }
 
 /* main body attributes */
@@ -177,26 +242,26 @@ p a:active {
 h1, h2, h3, h4, h5, h6 {
     color: #4C566C;
     clear: right;
-    font: 100% Verdana, Helvetica, Arial, sans-serif;
+    font: 100% Helvetica, Arial, sans-serif;
        font-weight: bold;
     margin: 0;
        padding: 0;
 }
-
+h2, h3, h4, h5, h6{
+       padding-top: .5em;
+}
 h1 {
     font-size: 160%;
        color: #FFF;
 }
 
+
 h2 {
     font-size: 150%;
 }
-h2.sidebox{
-    font-size: 110%;
-}
-h3 {
-    font-size: 130%;
-       padding: 0;
+
+h3.input-form {
+       padding-top: .875em;
 }
 h3.browse-courses{
        font-size: 90%;
@@ -204,20 +269,15 @@ h3.browse-courses{
        clear: none;
        display: inline;
 }
-h3 a {
-    font-size: 100%;
-}
-h4 {
-    font-size: 120%;
-}
-
 
-h5 {
+h3 a {
     font-size: 100%;
 }
 
 
+/************************************************************************************************/
 /* Preferences tabs */
+/************************************************************************************************/
 .etabbed-list-container        {
        padding:0;
        margin: 0;
@@ -241,62 +301,27 @@ h5 {
 .prefs_tab_selected{  
        padding:0.7em 0.3em 0;
        margin: 0;
-       margin: 0px;
+       margin: 0;
        font-weight:bold;
        text-align:center;
        white-space: nowrap;
     display: inline;
 }
 
-
-
-/*  Table of content attributes*/
-p.toc{
-       font-family: Verdana, Helevetica, Arial, sans-serif;
-       background-color: #E9F4F3;
-       padding: .6em;
-       margin-bottom: .6em;
-       margin-top: 0em;
-       margin-left: 1em;
-       margin-right: 3em;
-       border: 1px #ACCFCC solid;
-} 
-
-
+/************************************************************************************************/
 /* link attributes */
-a:link, a:visited  {
-       color: #4C566C;
-       text-decoration: underline;
-}
-a:hover {
+/************************************************************************************************/
+a:link, /*a:visited*/ a:focus  {
        color: #4C566C;
-       text-decoration: underline;
-}
-a:active {
-       color: #ffffff;
-       text-decoration: underline;
-}
-/* align text to the left */
-.left {
-       text-align: left;
-}
-
-a.dropdown-title {
-       color: white;
-       font-weight: normal;
-       text-decoration: none;
-}
-
-
-/* table border */
-.tableborder {
-       border: 1px #595241 solid;
+       
 }
+.top-tool a:link, .top-tool a:focus{
+       text-decoration: none;  
+}      
 
 /* main submit button */
 .button {
        background-color: #808080;
-       font-weight: normal;
        color: black;
        text-align: center;
        -webkit-border-radius:3px;
@@ -310,7 +335,7 @@ a.dropdown-title {
 }
 /* small submit button at top */
 .button2 {
-       font-family: Verdana, Helevetica, Arial, sans-serif;
+       font-family: Helvetica,sans-serif;
        background-color: #E9F4F3;
 
 }
@@ -319,38 +344,9 @@ a.dropdown-title {
        border:  #ACCFCC  solid 1px;
 }
 
-/* date attributes */
-small.date {
-       font-family: Verdana, Helevetica, Arial, sans-serif;
-       color: #595241; 
-       margin-bottom: 0; 
-       margin-top: 0;
-       margin-left: 0.313em;
-       margin-right: 0;
-       font-size:1em;
-}
-
-/* page breakline */
-hr {
-       color: #ACCFCC;
-       background-color: white;
-       height: .063em;
-}
-
-/* message box styles */
-
-/* Editor box small */
-.editorsmallbox {
-       font-family: Verdana, Helevetica, Arial, sans-serif;
-       background-color: #E9F4F3;
-       padding: 0.125em;
-       padding-right: .188em;
-       border: 1px #ACCFCC solid;
-}
-
 /* Editor box large */
 .editorlargebox {
-       font-family: Verdana, Helevetica, Arial, sans-serif;
+       font-family: Helvetica,sans-serif;
        background-color: #E9F4F3;
        margin-left:1em;
        padding-left: .2em;
@@ -360,26 +356,6 @@ hr {
        border: 1px #ACCFCC solid;
 }
 
-
-select.dropdown {
-       font-family: Verdana, Helevetica, Arial, sans-serif;
-}
-
-.highlight, a.highlight {
-       background-color: #5B8E88;
-       color: white;
-}
-
-a .highlight{
-       background-color: #5B8E88;
-       color: white;
-}
-
-.center {
-       text-align: center;
-}
-
-
 /* edit content tabs */
 .buttontab {
        background-color: #E6E6E6;
@@ -423,42 +399,12 @@ td.selected{
        border-left: 1px #B8AE9C solid;
        border-right: 1px #B8AE9C solid;
 }
-.econtainer{
-       background-color: #fffaf0;
-       border:1px #6F7172 solid;
-       margin-left:.5em;
-}
 
 .tab a:link, .etab a:visited {
-       color: black;
-       background-color: white;
-
-}
-.tab a:hover {
-       color: black;
+       color: #4C566C;
        background-color: white;
 }
 
-.etabself {
-       background-color: #6F7172;
-
-       text-align: center;
-       font-weight: bold;
-       padding: 0.125em;
-}
-
-
-.unsaved {
-       color: red;
-       background-color: #FFFDE0;
-       font-weight: bold;
-}
-.saved {
-       background-color: #FFFDE0;
-       margin: 0.625em;
-}
-
-
 /* the side menu */
 td.dropdown-heading {
        background-color: #DBFDD4;
@@ -466,16 +412,6 @@ td.dropdown-heading {
        border-left: 1px solid #ECFEEA;
        border-right: 1px solid #ECFEEA;
        border-top: 1px solid #ECFEEA;
-       font-weight: bold;
-       padding: 0.125em;
-}
-
-td.dropdown-heading a, td.dropdown-heading a:hover, td.dropdown-heading a:visited {
-       text-decoration: none;
-}
-
-td.dropdown-heading.closed {
-       border-bottom: 1px solid #ECFEEA;
 }
 
 /* the side menu content */
@@ -489,19 +425,13 @@ td.dropdown {
        font-weight: normal;
 }
 td.dropdown a, td.dropdown a:visited  {
-       color: #595241;
+       color: #4C566C;
        text-decoration: none;
 }
 td.dropdown a:hover {
        color: #595241;
        text-decoration: underline;
 }
-td.dropdown.cell {
-       border-bottom: 0;
-}
-td.dropdown strong {
-       color: #2A6C28;
-}
 
 /* added for 1.4.2: */
 .results {
@@ -516,15 +446,6 @@ h5.search-results {
        margin-left: 0.313em;
 }
 
-small.search-info {
-       color: #595241;
-}
-
-p.search-description {
-       background-color: #FFFCE5;
-       color: #595241;
-}
-
 .test-box {
        background-color: #F7F3ED;
        color: #595241;
@@ -591,7 +512,8 @@ table.tabbed-table th.selected {
 }
 
 table.tabbed-table a, table.tabbed-table a:visited, table.tabbed-table a:hover {
-       color: black;
+       /* color: black;*/
+       color: #4C566C;
        text-decoration: none;
 }
 
@@ -668,8 +590,8 @@ a#back-to {
 .breadcrumbs, .previous-next /*a#guide*/{
     /* The path bar, including breadcrumbs and add to favorites */
        clear:both;
-    font-size: 0.85em;
-       padding:0 0.375em;
+    font-size: 1em;
+       padding:0;
        color: #4C566C;
        background-color: white;
 
@@ -681,10 +603,14 @@ a#back-to {
 .breadcrumbs{
        display:none;
 }
-h2.page-title {
-       padding-top: .5em;
-       margin-top: .5em;
+h2.page-title  {
+       
+       
+}
+#subnavlistbacktopage{
+       float: left;
 }
+
 h1 {
        margin-bottom: 0.313em;
        
@@ -728,8 +654,10 @@ div#toctoggle {
 h1#section-title {
        font-size: 90%;
 }
-
-div#top-links {
+/**********************************************************************/
+/*FOOTER*/
+/**********************************************************************/
+div#footer-links {
        margin: 0 auto;
        font-size: .938em;
 /* moved inside of #footer for mobile theme */
@@ -744,6 +672,12 @@ div#top-links {
        
 }
 
+ul.footer-links-tabs li a:hover, ul.footer-links-tabs li a:focus, ul.footer-links-tabs li a:active,
+ul.footer-links-tabs li.back a:hover, ul.footer-links-tabs li.back a:focus, ul.footer-links-tabs li.back a:active,
+ul.footer-links-tabs li.forward a:hover, ul.footer-links-tabs li.forward a:focus, ul.footer-links-tabs li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
 div#top-links a:link, div#top-links a:visited {
        text-decoration:none;
 }
@@ -784,15 +718,23 @@ a#editor-link.on {
 
 
 /* for data tables */
+.table-surround {
+       border: #A9ADB0 1px solid;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
+       
+}
+
 table.data {
-       width: 95%; 
-       margin: 0 auto;
+       margin:0;
+       width:100%;
        padding: 0;
-       color: black;
+       color: #4C566C;
+       font-size: .8em;
        text-align: left;
-       -webkit-border-radius:5px;
-       border: #6D7B8D 1px solid;
-
+       background-color: transparent;
 } 
 /* contains the headings */
 table.data th {
@@ -808,8 +750,10 @@ table.data th a {
 }
 
 table.data tbody {
+/*
        border-top: 1px solid #B8AE9C;
        border-bottom: 1px solid #B8AE9C;
+       */
 }
 /*headings text*/
 table.data tbody th {
@@ -824,8 +768,12 @@ table.data td {
        font-style: normal;
 }
 table.data td a:link, a:visited{
-       color: black;
+       /*color: black;*/
+       color: #4C566C
 }
+
+/*should table.data tbody tr:hover  and table.data tbody tr.selected  highlighting
+be improved to sync with Mobile FSS highlighting */
 table.data tbody tr:hover {
        background-color: #efefef;
        cursor: pointer;
@@ -834,6 +782,7 @@ table.data tbody tr:hover {
 table.data tbody tr.selected {
        background-color: #E9F4F3;
        cursor: auto;
+       border: 5px solid #E9F4F3;
 }
 
 table.data tfoot {
@@ -848,7 +797,7 @@ table.data tfoot tr:first-child td {
 }
 
 table.data.static tfoot td, table.data.static tfoot tr:first-child td {
-       border-top: 1px solid #B8AE9C;
+       /*border-top: 1px solid #B8AE9C;*/
        padding: 0.313em;
        background-image: none;
        padding-left: 0;
@@ -857,7 +806,7 @@ table.data.static tfoot td, table.data.static tfoot tr:first-child td {
 /* add borders to row in Required Information, Personal Information*/
 .row{
        padding:.375em 0;
-       border-bottom: 1px #cccccc solid;
+       /*border-bottom: 1px #cccccc solid;*/
        font-size: 0.938em;
 }
 #last-row, .row-buttons, #last-row1, .row-blurb{
@@ -872,11 +821,11 @@ table.data.static tfoot td, table.data.static tfoot tr:first-child td {
 table.data tfoot input {
        background-color: #efefef;
        font-weight: normal;
-       border:  #AAA  solid 1px;
+       /*border:  #AAA  solid 1px;*/
 }
 table.data tfoot input:focus {
        background-color: #FFDAB9;
-       border:  #AAA  solid 1px;
+       /*border:  #AAA  solid 1px;*/
 }
 
 
@@ -949,8 +898,8 @@ div#feedback, div#info {
        margin-left: auto;
        margin-right: auto;
        margin-top: 0.313em;
-       padding-left: 0.313em;
-       padding-right: 0.313em;
+       margin-bottom: 0.313em;
+       padding: 0.313em;
        font-family: Helvetica, Arial, sans-serif;
        -webkit-border-radius:5px;
        border: 1px solid #17B506;
@@ -1000,10 +949,13 @@ div.news p {
 div.news span.date {
        font-family:Helevetica, Arial, sans-serif;
        color: #4C566C; 
+       font-size: .5em;
 }
 
 .news{
        padding: 0;
+       margin-bottom: 1em;
+       margin-top: 1em;
 }
 /* home page links */
 div.home-link {
@@ -1034,9 +986,6 @@ div.home-link img {
 /* sequence links */
 div#sequence-links {
        
-       margin-top: 0.625em;
-       padding-right: 0.313em;
-       padding-top:0.438em;
 }
 div#sequence-links a {
        text-decoration: none;
@@ -1081,12 +1030,21 @@ div.required {
 div#content_text {
        margin-left: 0.313em;
 }
-/*needs to be set to display: none so drawer can open */
-#content{
 
+#content{
+/*
        padding-top:.5em;
        margin-top: .5em;
        background-color: #F5F5F5;
+       
+       border: #A9ADB0 1px solid;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       -webkit-border-bottom-right-radius: 5px;
+       -webkit-border-bottom-left-radius: 5px;*/
+       padding-top: .313em;
+       background-color: white;
+       z-index: 1000;
 }
 form {
        display:inline;
@@ -1100,7 +1058,8 @@ optgroup {
 
 /* paging*/
 div.paging {
-
+       margin-top: 1em;
+       text-align: center;
 }
 div.paging ul {
     list-style: none;
@@ -1110,7 +1069,6 @@ div.paging ul {
        margin-bottom: 1em;
 }
 div.paging li { 
-       float: left;
        display: inline; 
        padding-left: 0.125em; 
        padding-right: 0.125em;
@@ -1128,10 +1086,9 @@ div.paging li a {
 }
 
 div.paging li a:hover, div.paging li a.current {
-   background-color: #5B8E88;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
-   color: white;
+   color: black;
 }
 
 #tl_corner{
@@ -1180,7 +1137,9 @@ div.tabs a:hover, div.tabs a.active {
 
 .headingbox a{
        color: #4C566C;
-       text-decoration:underline;
+}
+.headingbox a:link, .headingbox a:visited{
+       text-decoration: none;
 }
 div.box {
 }
@@ -1194,16 +1153,7 @@ h4.box a {
        background-color: #F5F5F5;
        text-decoration: none;
 }
-.content-expand {
-       background-image:url("images/content-arrow-down.png");
-       background-position: top right;
-       background-repeat: no-repeat;
-}
-.content-closed{
-       background-image:url("images/content-arrow-up.png");
-       background-position: center right;
-       background-repeat: no-repeat;
-}
+
 
 div.box {
        padding: 0.313em;
@@ -1345,6 +1295,7 @@ fieldset {
        width:95%;
        margin:0 auto;
        border:thin #6D7B8D solid;
+       border:thin #A9ADB0 solid;
        margin-bottom: 1em;
 }
 #shortcuts legend {
@@ -1369,14 +1320,6 @@ fieldset {
 #guide a:hover{
        
 }
-div#content-text {
-       padding-right: 5pt;
-       line-height:150%;
-}
-
-div#content-text li {
-       margin-left: 15pt;
-}
 
 div#content-test, div.content-from-module {    
        float: left;
@@ -1385,26 +1328,6 @@ div#content-test, div.content-from-module {
        padding-right: 5pt;
        width: 80%;
 }
-div#content-test ol{   
-       margin-right: 5pt;;     
-}
-
-div#content-test ol ul li{
-       list-style: none;
-       padding: 0 0.125em 0  0.938em;
-       margin-bottom: 0.063em; 
-       line-height: 200%; 
-       background-color: #fdfdfd; 
-       border-bottom: 1px solid #efefef; 
-       border: 1px solid #eeeeff;
-}
-
-div#content-info {
-       margin: 5pt;
-       font-size: small;
-       color: #b8ae9c;
-       clear: both;
-}
 
 div#container {
        text-align: left;
@@ -1414,68 +1337,10 @@ div#container {
        width: 95%;
 }
 
-div#menutoggle{
-       text-align: right; 
-       padding-bottom: 0.625em; 
-       padding-right: 0.625em; 
-       float: left; 
-       margin-top: 0.625em; 
-       padding-right: 0.313em; 
-       font-size:0.95em;
-}
-
-
-/* login page */
-div.column {
-       float: left;
-       width: 45%;
-       margin: 0.313em;
-       min-width: 10.625em;
-}
-
-div.column h3 {
-       background-color: #F6EAD6;
-       border-bottom: .05em solid #6F7172;
-       font-size: small;
-       display:block;
-       color:black;
-       font-weight:600;        
-       padding-left:0.5em;
-}
-
-div.insidecol {
-   min-height: 10.625em;
-   height: 10.625em;
-   padding:0.313em;
-}
-
-
 /* index page */
 ul#home-links, ul#home-detail-links {
        list-style: none;
 }
-ul#home-links li {
-       
-       display: inline;
-       float: left;
-       padding: 0.8em;
-       text-align: center;
-       margin: 0.1em;
-       width: 8.5em;
-       height: 7.0em;
-       padding-left:0;
-
-}
-ul#home-links li a {
-       text-decoration: none;
-       border: 1px transparent;
-       font-weight: bold;
-}
-ul#home-links li a img {
-       border: 0;
-       display: block;
-       padding-left:1.563em;
-}
 
 /*my start page */
 #my_courses_container{
@@ -1488,10 +1353,13 @@ ul#home-links li a img {
 }
 .my-courses-list{
        border: solid 1px #A9ADB0;
-       -webkit-border-radius:5px;
+       -webkit-border-radius:8px;
+       -moz-border-radius:8px;
+       border-radius:8px;
        padding: .375em;
        color: #4C566C;
-       margin: .375em;
+       margin-bottom: .375em; 
+       margin-top: .375em;
        padding: .375em;
 }
 .my-courses-list-ul{
@@ -1511,39 +1379,37 @@ ul#home-links li a img {
        padding-bottom: 0.875em;
        display: inline;
 }
-.fl-list-menu li a {
-}
-.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a {
-}
+
 .fl-theme-iphone [class*="fl-list"] > li .fl-link-summary{
        color: #4C566C;
 }
 .current_head{
        padding-top: .5em;
 }
-.fl-list-menu {
-
-}
 
 .current_box{
        max-width: 100%;
 }
 .current_list{
        width: 95%;
-       padding: 0 0.375em;
+       padding: 0.375em;
 }
 .current_list li{
        list-style-type: none;
-       padding:0;
+       font-style: bold;
+       padding-bottom: .5em;
+       padding-left: .5em;
        margin:0;
-
+}
+.current_list_date_time{
+       font-size: 65%;
 }
 .current_list img{
-
 }
 
-#show-all{
+#show-all, #show-pages{
        text-align: center;
+       
 }
 /* enrollment tabs */
 #navlist {
@@ -1587,15 +1453,6 @@ ul#home-links li a img {
 }
 /* profile page */
 
-dl#public-profile {
-       width: 100%;
-       
-}
-
-dl#public-profile {
-       width: 100%;
-       
-}
 dl#public-profile dt {
        float: left;
        width: 90%;
@@ -1632,7 +1489,6 @@ dd{
     margin: 0;
 }
 
-
 /** forum stuff **/
 #forum-thread li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; float:left; width: 97%; list-style: none; }
 #forum-thread li.even { background-color: #F7F3ED; border-top: none; }
@@ -1664,8 +1520,7 @@ span.forum-paginator-active{font-weight:700;text-decoration:underline; height:2e
        border: solid 1px #A9ADB0;
        -webkit-border-radius:5px;
 }
-li.top-tool a {  font-weight: bold; } /* ol#tools>li>a */ 
-
+       
 li.child-tool a { 
        font-size: x-small;
        font-weight: normal; 
@@ -1678,9 +1533,6 @@ ul.child-top-tool {
        margin-left: 0;
        display: inline;
 }
-ul.child-top-tool:before {
-       content: " : ";
-}
 
 li.child-tool {
        display: inline;
@@ -1688,29 +1540,16 @@ li.child-tool {
        font-size: x-small;
 }
 
-.img-size-home {
-       height:3.85em;
-       width:3.9em;
-}
 
 /* browse courses */
 div.browse-course {
-       width: 28em;
        padding-bottom: 0.625em;
-       background-color: #fffaf0;
-       border:1px #6F7172 solid;
-       font-size:9pt;
-       min-height:18em;
-       margin:auto;
-       margin-left:1em;
-       margin-top:1em;
 }
 
 dl.browse-course {
        width: 90%;
        padding-bottom: 0.625em;
        background-color: #fffaf0;
-
        margin:auto;
        margin-left:1em;
 }
@@ -1743,6 +1582,9 @@ fieldset.group_form{
        margin-bottom: 1em;
        border: 1px #6D7B8D solid;
        -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+       margin-top: .5em;
 }
 
 legend.group_form{
@@ -1753,21 +1595,28 @@ legend.group_form{
        border: 1px #6D7B8D solid;
        -webkit-border-radius:5px;
 }
-/* file storage */
 
-#fsfloat1{
-       float:right;
-}
-#fsfloat2{
-       float:right;
-       width:48%;
-}
+/* highlight active links for WCAG 2.0 conformance */
 
+a:active:not(.subnavcontain a), 
+a:hover:not(.subnavcontain a),
+a:focus:not(.subnavcontain a),
+.buttontab-hover{
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+}
 
-/* highlight active links for WCAG 2.0 conformance */
-a:active,a:hover,a:focus{
-       background-color:#F6EAD6;
-       color:#000000;
+/*Overrides above a:active, a:hover, a:focus so the "Navigation" button itself isn't highlighted when activated.
+Ensure styling matches that in fl-tabs.*/
+.topnavlistcontainer a:hover, .topnavlistcontainer a:active, .topnavlistcontainer a:focus{
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
 }
 
 
@@ -1945,7 +1794,7 @@ div.menuedit{
 }
 li.folders {
        list-style: disc url(../../images/folder.gif) outside;
-       font-family: Verdana, Helevetica, Arial, sans-serif;
+       font-family: Helvetica,sans-serif;
        margin-bottom: 0;
        margin-top: 0;
        margin-right: 0;
@@ -1964,32 +1813,27 @@ ul.folder{
 }
 
 
-/*     top navigation */
+/*     hiding/showing  results-display */
 
-#topnavlist-link {
-       color: white;
-       text-decoration: none;
-       font-weight: bold;
-}
 
-ul#topnavlist {
+div#results-display{
        display: none;
-       position: relative;
-       top: 1.2em;
-       z-index: 1;
-       background-color: white;
 }
 
 ul#topnavlist li {
        padding: 0;
        margin: 0;
 }
-ul#topnavlist li a.active {
-       color: black;
-       font-style: italic;
-       }
-ul#topnavlist li a:hover, ul#topnavlist li a:focus {
-       color: black;
+       
+ul#topnavlist>li:hover,
+ul#topnavlist>li:hover a, 
+ul#topnavlist>li:active,
+ul#topnavlist>li:active a,
+ul#topnavlist>li:focus, 
+ul#topnavlist>li:focus a {
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
 }
 
 ul#topnavlist li a  {
@@ -1999,33 +1843,20 @@ ul#topnavlist li a  {
 
 
 div.toolcontainer{
-       width:90%;
-       margin:auto;
-       border:thin solid #e8e8e8;
-       padding-top:1em;
-       padding-bottom:1em;
-}
-
-ul#subnavlist {
-       padding: 0;
-       padding-bottom: 0.313em;
-       margin: 0;
-       font-size: 90%;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
 }
 
 
-ul#subnavlist li {
-       display: inline;
-}
-
-ul#subnavlist li#test{
-       display: none;
-}
 ul#subnavlist li a:hover, ul#subnavlist li a:focus, ul#subnavlist li a.active{ /*
        color: black;
        text-decoration:none;*/
 }
-
+#subnavlist{
+       display: none;
+}
 ul#subnavlist li a, ul#subnavlist li a:visited {
        color: #4C566C;
 }
@@ -2040,13 +1871,23 @@ li {
        list-style: none;
 }
 
-ol#tools>li:hover, ol#tools>li:hover a {
-       border: 1px solid #e0e0e0;
+ol#tools>li:hover {
+       /*border: 1px solid #e0e0e0;*/
        background-color: #e6e6e6;
        color: black;   
+       
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+       
+}
+ol#tools>li:hover a{
+       color: white;
 }
 
-
+#contentwrapper{
+       
+}
 #content-contentwrapper{
        height:100%;
     position:relative; 
@@ -2070,9 +1911,9 @@ ol#tools>li:hover, ol#tools>li:hover a {
        color: #4B6B90;
 }
 
- #tools{
+#tools{
        margin: 0 auto;
-       padding: 0.375em;
+       padding: 0;
 }
 
 
@@ -2168,18 +2009,304 @@ div.social-wrapper{
        width: 100%;
 }
 
-
-.contentbox-a{
-    width: 100%;
-}
-.contentbox-b{
-    padding-bottom:0.2em;
-}
 div.logo{
 float:left;
 clear:right;
 margin-left:2em;}
 
+/*mobile FSS overrides */
+.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a:hover, 
+.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a:focus,
+.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a:active {
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+  
+}
+ul#subnavlist li a:focus, ul#subnavlist li a:active, ul#subnavlist li a:hover{
+       color: white;
+}
+/* isolates fl tabs 
+.fl-theme-iphone .fl-tabs li a, .fl-theme-iphone .fl-tabs .fl-tabs-active {
+       background-color: white;
+} */
+
+
+/************************************************************************************************/
+/*Adds arrows to Fluid Tabs. Here is a good guide for creating triangles with CSS: 
+http://jonrohan.me/guide/css/creating-triangles-in-css/ */
+/************************************************************************************************/
+ul.sequence-links {
+}
+
+ul.sequence-links li {
+    position:relative;
+    overflow:hidden;
+    list-style:none;
+   /* padding:0;
+    margin:0 0 0 0 ;*/
+}
+
+ul.sequence-links li.back a:link, 
+ul.sequence-links li.back a:visited {
+    display:block;
+   /* border :0;*/
+    padding-left:0.438em;
+       color: #005689;
+}
+
+ul.sequence-links li.forward a:link, 
+ul.sequence-links li.forward a:visited {
+    display:block;
+   /* border :0;*/
+    padding-right:0.313em;
+       color: #005689;
+}
+/*WCAG*/
+ul.sequence-links li a:hover, ul.sequence-links li a:focus, ul.sequence-links li a:active,
+ul.sequence-links li.back a:hover, ul.sequence-links li.back a:focus, ul.sequence-links li.back a:active,
+ul.sequence-links li.forward a:hover, ul.sequence-links li.forward a:focus, ul.sequence-links li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+
+
+ul.sequence-links li:before, 
+ul.sequence-links li:after,
+ul.sequence-links li a:before, 
+ul.sequence-links li a:after {
+    content:"";
+    position:absolute;
+    top:50%;
+   /* left:0;*/
+}
+
+ul.sequence-links li a:before, 
+ul.sequence-links li a:after {
+    margin:-0.5em 0 0;
+  }
+
+ul.sequence-links li a:hover:before, 
+ul.sequence-links li a:focus:before, 
+ul.sequence-links li a:active:before {
+}
+/*arrow that points to the left, beside the "Previous" text */
+.arrow.back a:after {/*arrow pointing to the left*/
+     background: none repeat scroll 0% 0% transparent;
+     border-color: transparent #005689;
+   
+     border-style: solid;
+     border-width: 5px 0pt 5px 6px;
+     left: 0.5em;
+     margin-top: -0.39em;
+}
+
+/*left and right triangle icons change color*/
+.arrow a:hover:after, .arrow a:focus:after, .arrow a:active:after, 
+.arrow.forward a:hover:after, .arrow.forward a:focus:after, .arrow.forward a:active:after{
+       border-color: transparent #4c96f4;
+}
+
+.arrow.back a:after {
+     border-width: 6px 6px 6px 0pt;    
+     left: 0.188em;
+     top: 1.25em;
+}
+
+.arrow.back:before {
+     
+}
+.arrow.forward:before {
+     
+}
+.arrow:before {
+
+}
+/*arrow that points to the right, beside the "Next" text */
+.arrow.forward a:after {
+     background: none repeat scroll 0% 0% transparent;
+     border-color: transparent #FFFFFF;
+     border-style: solid;
+     margin-top: -0.425em;
+     margin-top: -0.313em;
+   
+}
+.arrow.forward a:after {
+     /*top: 11px;*/
+       background: none repeat scroll 0% 0% transparent;
+     border-color: transparent transparent transparent    #005689;
+        border-width: 6px;
+        border-style: solid;
+        width:0;
+        height:0;
+        right: -0.313em;
+        top: 1.19em;
+}
+
+
+#content-sequence-links{/*
+       width: 98%;
+       padding: .313em;
+       background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#999), to(black));
+       background: #B6C0C6;
+       float: left;
+       margin: 0 auto;
+       margin-bottom: .313em;*/
+}
+
+
+#sequence-links{
+       float: left;
+}
+       
+
+#content{
+       text-align: left;
+       width: 93.5%;
+       width: 99%;
+       border-left: #A9ADB0 1px solid;
+       border-right: #A9ADB0 1px solid;
+       border-bottom: #A9ADB0 1px solid;
+       -webkit-border-radius: 5px; 
+       -moz-border-radius: 5px; 
+       border-radius: 5px;
+       display: none;
+       position: relative;
+       top: 0em; 
+       clear: left;
+       clear: right;
+       z-index: 1;
+}
+
+/*hiding and showing content */
 
+#results-hide-show-simple-content{
+       -webkit-border-radius:5px;
+       border: 1px #A9ADB0 solid;
+       /*margin-top: 0.875em;
+       margin-bottom: 0.875em;
+       padding: 0.875em;
+       padding-right: .2em;*/
+       padding-top: .6em;
+       padding-bottom: .6em;
+       padding-right: .2em;
+       padding-left: .6em;
+       margin-bottom: 0.875em;
+       margin-top: 0.875em;
+       color: #005689;
+/*     background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#999), to(black));*/
+       background-color: none;
+}
+#results-hide-show-link{
+       color: white;
+       color: #005689;
+       text-decoration: none;  
+       display: block;
+       font-weight: bold;
+}
 
+
+.content-expand{
+       background-image:url("images/plus.png");
+       background-position: 100% 100%;
+       background-repeat: no-repeat;
+}
+
+.content-closed{
+       background-image:url("images/minus.png");
+       background-position: 100% 100%;
+       background-repeat: no-repeat;   
+}
+#results-display{
+       background-color: #F7F3ED; 
+       -webkit-border-radius:8px;
+       border: 1px #A9ADB0 solid;
+       padding: .313em;
+       
+}
+.hide-show-container-surround a:active, .hide-show-container-surround a:focus, .hide-show-container-surround a:hover{
+       background-color: transparent;
+       
+}
+.subnavcontain2, .subnavcontain{
+       margin: .313em 0; 
+       
+       border: #A9ADB0 1px solid; 
+       -webkit-border-radius:8px;
+       width: 100%;
+
+}
+
+.fl-theme-iphone .subnavcontain a, .fl-theme-iphone .subnavcontain a:hover, .fl-theme-iphone .subnavcontain a:active, .fl-theme-iphone .subnavcontain a:focus {
+       text-decoration: none;
+       font-weight: bold; 
+       color: #005689;
+       background-repeat: no-repeat;
+       
+}
+#subnavlist-link{
+       display: block;
+}
+#page-title-back-to-page{
+    display: inline-block;
+    width: 100%;
+}
+
+.page-title, #back-to-page{
+    float: left;
+}
+
+.fl-theme-iphone #subnavlist-link  a:active, 
+.fl-theme-iphone #subnavlist-link  a:hover, 
+.fl-theme-iphone #subnavlist-link a:focus{
+       background-color: none;
+}
+.fl-theme-iphone .subnavcontain{
+       margin-top: 1em;
+       background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+       -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+}
+.rectangle2{
+       display: inline-block; 
+       color: #005689;
+       font-weight: bold; 
+       padding: .6em;
+       margin: -.1em;
+       border-right: #A9ADB0 1px solid; 
+}
+
+.rectangle2:last-child{
+       border: none;
+}
+.rectangle2 a{
+       color: #005689;
+       text-decoration: none;
+       font-weight: bold;
+}
+.rectangle{
+       display: block;
+       color: #005689;
+       font-weight: bold; 
+       padding: .313em;
+       margin: .313em 0;
+           
+}
+#content_link_phone a:active, #content_link_phone a:focus, #content_link_phone a:hover{
+       color: #005689;
+       background-color: white;
+}
+/* style for "last modified" information of course content*/
+#content-info{
+       padding-top: 1em;
+       font-size: 80%;
+}      
+ul.my-courses-list-ul > li:hover{
+background-color: #e6e6e6;
+       color: black;   
+       
+       color: #fff;
+}
+ul.my-courses-list-ul > li:hover a{
+       color: white;
+}
\ No newline at end of file
index f59fb97..01c448a 100644 (file)
@@ -1,8 +1,62 @@
-<?php require(AT_INCLUDE_PATH.'header.inc.php'); 
+<?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
+<?php if ($this->mobile_device_type != IPAD_DEVICE): ?>
+<script language="JavaScript" src="sha-1factory.js" type="text/javascript"></script>
+
+<script type="text/javascript">
+/* 
+ * Encrypt login password with sha1
+ */
+function encrypt_password() {
+       document.form.form_password_hidden.value = hex_sha1(hex_sha1(document.form.form_password.value) + "<?php echo $_SESSION['token']; ?>");
+       document.form.form_password.value = "";
+       return true;
+}
 
+</script>
+<div class="container">
+       <div class="column-login">
+               <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+               <input type="hidden" name="form_login_action" value="true" />
+               <input type="hidden" name="form_course_id" value="<?php echo $this->course_id; ?>" />
+               <input type="hidden" name="form_password_hidden" value="" />
+               <div class="input-form">
+                       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('login') ;?></legend>
+                       
+                               <?php if ($_GET['course']): ?>
+                                       <div class="row">
+                                               <h3><?php echo _AT('login'). ' ' . $this->title; ?></h3>
+                                       </div>
+                               <?php endif;?>
 
-?>
+                               <label for="login"><?php echo _AT('login_name_or_email'); ?></label><br />
+                               <input type="text" name="form_login" size="50" style="max-width: 80%; width: 80%;" id="login" /><br />
 
+                               <label for="pass"><?php echo _AT('password'); ?></label><br />
+                               <input type="password" class="formfield" name="form_password" style="max-width: 80%; width: 80%;" id="pass" />
+                               <br /><br />
+                               <input type="submit" name="submit" value="<?php echo _AT('login'); ?>" class="button" onclick="return encrypt_password();" /> 
+                               <br /><br />
+                       </form>
+                       <?php
+                       if($_config['allow_registration'] ==1){
+                       ?>
+                       Don't have an account? 
+                       <form action="registration.php" method="get">
+                       <?php if (defined('AT_EMAIL_CONFIRMATION') && AT_EMAIL_CONFIRMATION): ?>
+                               <p><?php echo _AT('confirm_account_text'); ?></p>
+                       <?php endif; ?>
+                       <input type="submit" name="register" value="<?php echo _AT('register'); ?>" class="button" />
+                       <br /><br />
+                       </form>
+                       <?php } ?>
+                       
+                       </fieldset>                     
+               </div>
+               
+       </div>
+</div>
+<?php endif; ?>
+<?php if ($this->mobile_device_type == IPAD_DEVICE): ?>
 <script language="JavaScript" src="sha-1factory.js" type="text/javascript"></script>
 
 <script type="text/javascript">
@@ -39,6 +93,8 @@ function encrypt_password() {
                                <br /><br />
                                <input type="submit" name="submit" value="<?php echo _AT('login'); ?>" class="button" onclick="return encrypt_password();" /> 
                                <br /><br />
+                       </fieldset>     
+                       </div>
                        </form>
                        <?php
                        if($_config['allow_registration'] ==1){
@@ -51,12 +107,13 @@ function encrypt_password() {
                        <input type="submit" name="register" value="<?php echo _AT('register'); ?>" class="button" />
                        <br /><br />
                        </form>
+                       
                        <?php } ?>
                        
-                       </fieldset>                     
+                       
                </div>
                
        </div>
 </div>
-
+<?php endif; ?>
 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
diff --git a/docs/themes/mobile/mobile.css b/docs/themes/mobile/mobile.css
new file mode 100644 (file)
index 0000000..5e5dce0
--- /dev/null
@@ -0,0 +1,2289 @@
+/* Style is optimized for iphone and android. Note that -webkit properties create errors in the CSS validator. Relative units 
+for sizes are used unless it is a border. Classes beginning with ".fl-" override Mobile FSS, 
+see the API @ http://wiki.fluidproject.org/display/fluid/Mobile+FSS+API for more details. 
+*/
+html, body{
+       height: 100%;
+}
+#main{
+       padding-bottom: 2.3em;
+       overflow: auto;
+}
+
+body,ul,li {
+       padding:0;
+       margin:0;
+}
+
+.fl-theme-iphone{
+       background: white;      
+}
+
+#header{
+       width:100%;
+       height:1.2em;
+       line-height:2.813em;
+       padding:0;
+       font-size:1.063em;
+       background-color: #4B6B90;
+       /*firefox*/
+       background-image: -moz-linear-gradient(
+        center top,
+        #9aafca,
+        #4b6b90,
+        #6d8cb3 10%,
+        #4b6b90 90%        
+    );        
+}
+
+#header-section-title {
+       text-align: center;
+       
+       background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#6d8cb3),
+    color-stop(0.5, #6d8cb3),
+    color-stop(0.50, #4b6b90),
+    color-stop(0.5, #6d8cb3),
+    to(#4b6b90)
+    ); 
+  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#6d8cb3), to(#4b6b90));
+
+}
+
+.fl-theme-iphone .fl-navbar{
+       border: none;
+       border-top: none;
+}
+
+.fl-navbar a{
+       font-size: 0.969em;
+}
+
+.fl-navbar .fl-tabs {
+       padding-top: .3em;
+       padding-bottom: .3em;
+       border-top: 1px solid black;
+       border-bottom: .5px solid black;
+       background-color: #4b6b90; 
+    height: 2em;   
+}
+
+#navigation-contentwrapper{
+       position: relative;
+       background-color: #4b6b90;
+       height: 2.5em; 
+}
+
+#navigation-bar{
+       height: 2.5em; 
+    border-bottom: .5px solid black;
+   /*padding-bottom: .3em;*/
+     
+}
+
+#wrapper{
+       width:100%;
+       overflow:hidden;
+       overflow: auto;
+       min-height: 100%;
+       background-color:white;
+}
+
+#site-name, h1#section-title{
+       display: inline;
+       text-shadow: none;
+       font-size: 90%;
+       color: #4C566C;
+       color: white;
+       margin-bottom: 1em;     
+}
+
+/************************************************************************************************/
+/* "Navigation" button, also this CSS creates a button that looks exactly like a Mobile FSS tab.*/
+/************************************************************************************************/
+.navigation-bar-button{
+    border-width:5px;
+    -webkit-border-radius: 5px;
+    -moz-border-radius:5px;
+       border-radius: 5px;
+       font-size: 18px;/*keep this in px*/
+       padding: 0 .3em;
+       color: white;
+       position: relative;
+       top: .69em; 
+       left: 0.188em; 
+    /* default mobile fss color scheme for tabs not AA compliant. Here is a compliant bg image: */
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+       -webkit-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -webkit-border-left-image: none;
+    -webkit-background-origin: border;
+    -webkit-background-clip: border;
+
+}
+
+.navigation-bar-button a:hover, .navigation-bar-button a:active, .navigation-bar-button a:focus{
+       background-color: white;
+}
+
+.fl-theme-iphone .fl-tabs li{
+    /* default mobile fss color scheme for tabs not AA compliant against a white foreground text.therefore its backgroud-image must be overrided */
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    ); 
+}
+.fl-theme-iphone .topnavlistcontainer .topnavlist-link {/*makes the navigation button link white*/
+       color: white;
+       text-decoration: none;
+       font-weight: bold;
+       /*firefox*/
+        -moz-border-image: url("images/navbar_normal_button_insetShadow.png") 5 5 5 5 stretch;
+    background-color: #354D68;
+}
+
+#content_link_phone.topnavlist-link-highlight {/*makes the content link highlight*/
+       color: white;
+       text-decoration: none;
+       font-weight: bold;
+}
+.fl-theme-iphone .topnavlistcontainer .topnavlist-link-highlight{/*makes the navigation button link highlight*/
+       color: #4c96f4;
+       text-decoration: none;
+       font-weight: bold;
+}
+
+ul#topnavlist {
+       display: none;
+       position: relative;
+       top: 1.2em;
+       z-index: 1000;
+       /*background-color: white;*/
+}
+
+div#content-link-container.flc-screenNavigator-navbar {
+       color: #005689;
+}
+
+.content-link-surround a:active, .content-link-surround a:focus, .content-link-surround a:hover{
+       background: none;
+       
+}
+ #content_link_phone {
+       
+       display: block;
+       text-decoration: none;
+       
+    color: white;
+    font-style: bold;
+    color: #005689;
+}
+.resume{
+       font-size: 1em;
+}
+
+
+#home-guide{
+       position: absolute;
+       top: .45em;
+       right: 0.188em; 
+       font-size: 17px;/*keep this in px*/
+       white-space:nowrap;
+       display: inline;
+}
+
+ul.home-guide li a:hover, ul.home-guide li a:focus, ul.home-guide li a:active, ul.home-guide li.back a:hover, ul.home-guide li.back a:focus, ul.home-guide li.back a:active,
+ul.home-guide li.forward a:hover, ul.home-guide li.forward a:focus, ul.home-guide li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+
+/* main body attributes */
+p {
+    text-align: left;
+    line-height: 150%;
+       font-size: 1em;
+       padding:.75em 0;
+       margin: 0 auto;
+}
+
+p a {
+    text-decoration: underline;
+}
+
+p a:visited {
+       color: #3F2670;
+    background-color: transparent;
+}
+p a:active {
+       color: #A50707;
+    background-color: transparent;
+}
+
+h1, h2, h3, h4, h5, h6 {
+    color: #4C566C;
+    clear: right;
+    font: 100% Helvetica, Arial, sans-serif;
+       font-weight: bold;
+    margin: 0;
+       padding: 0;
+}
+h2, h3, h4, h5, h6{
+       padding-top: .5em;
+}
+h1 {
+    font-size: 160%;
+       color: #FFF;
+}
+
+
+h2 {
+    font-size: 150%;
+}
+
+h3.input-form {
+       padding-top: .875em;
+}
+h3.browse-courses{
+       font-size: 90%;
+       text-decoration: none;
+       clear: none;
+       display: inline;
+}
+
+h3 a {
+    font-size: 100%;
+}
+
+a:hover, a:visited, a:focus {
+       color: #4C96F4;
+       text-decoration: underline;
+
+}
+/************************************************************************************************/
+/* Preferences tabs */
+/************************************************************************************************/
+.etabbed-list-container        {
+       padding:0;
+       margin: 0;
+       width:70%;
+       clear: left;
+       height: 3em;
+}
+
+.prefs_buttontab {
+       padding:0;
+       margin: 0;
+       white-space: nowrap;
+}
+.prefs_tab{
+       padding:0.5em 0.3em 0;
+       margin: 0;
+       white-space: nowrap;
+    display: inline;
+}
+
+.prefs_tab_selected{  
+       padding:0.7em 0.3em 0;
+       margin: 0;
+       margin: 0;
+       font-weight:bold;
+       text-align:center;
+       white-space: nowrap;
+    display: inline;
+}
+
+/************************************************************************************************/
+/* link attributes */
+/************************************************************************************************/
+a:link, /*a:visited*/ a:focus  {
+       color: #4C566C;
+       
+}
+.top-tool a:link, .top-tool a:focus{
+       text-decoration: none;  
+}      
+
+/* main submit button */
+.button {
+       background-color: #808080;
+       color: black;
+       text-align: center;
+       -webkit-border-radius:3px;
+       -moz-border-radius:3px;
+       border-radius: 3px;
+       padding-top: 0.313em;
+       padding-bottom: 0.313em;
+
+}
+.button:focus {
+       border:1px solid #A50707;
+       background-color:  #FFDAB9;     
+}
+/* small submit button at top */
+.button2 {
+       font-family: Helvetica,sans-serif;
+       background-color: #E9F4F3;
+
+}
+.button2:focus {
+       background-color: #E9F4F3;
+       border:  #ACCFCC  solid 1px;
+}
+
+/* Editor box large */
+.editorlargebox {
+       font-family: Helvetica,sans-serif;
+       background-color: #E9F4F3;
+       margin-left:1em;
+       padding-left: .2em;
+       padding-right: .5em;
+       padding-top: .5em;
+       padding-bottom: .4em;
+       border: 1px #ACCFCC solid;
+}
+
+/* edit content tabs */
+.buttontab {
+       background-color: #E6E6E6;
+       font-weight: 500;
+       border:0;
+       padding-left: .188em;
+       padding-right: .188em;
+       padding-top: .188em;
+
+}
+
+.tab {
+       color: black;
+       background-color: #E6E6E6;
+       border-top: 1px #B8AE9C solid;
+       border-left: 1px #B8AE9C solid;
+       border-right: 1px #B8AE9C solid;
+       text-decoration: none;
+       text-align: center;
+       font-weight: bold;
+
+       
+}
+.buttontab selected {
+       font-family: Helvetica, Arial, Helvetica, sans-serif;
+       background-color: #6F7172;
+       font-weight: 600;
+       border:0;
+       padding-left: .188em;
+       padding-right: .188em;
+       padding-top: .188em;
+
+}
+td.selected{
+       font-family: Helvetica, Arial, Helvetica, sans-serif;
+       font-weight: 600;
+       text-decoration: none;
+       text-align: center;
+       background-color: white;
+       border-top: 1px #B8AE9C solid;
+       border-left: 1px #B8AE9C solid;
+       border-right: 1px #B8AE9C solid;
+}
+
+.tab a:link, .etab a:visited {
+       color: #4C566C;
+       background-color: white;
+}
+
+/* the side menu */
+td.dropdown-heading {
+       background-color: #DBFDD4;
+       color: #595241;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-top: 1px solid #ECFEEA;
+}
+
+/* the side menu content */
+td.dropdown {
+       padding: 0.125em;
+       background-color: white;
+       color: black;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-bottom: 1px solid #ECFEEA;
+       font-weight: normal;
+}
+td.dropdown a, td.dropdown a:visited  {
+       color: #4C566C;
+       text-decoration: none;
+}
+td.dropdown a:hover {
+       color: #595241;
+       text-decoration: underline;
+}
+
+/* added for 1.4.2: */
+.results {
+       padding-left: 1.25em;
+}
+
+h5.search-results {
+       padding: 0.063em;
+       margin-bottom: 0.313em;
+       margin-top: 1em;
+       padding-top: 3em;
+       margin-left: 0.313em;
+}
+
+.test-box {
+       background-color: #F7F3ED;
+       color: #595241;
+       border-left: 1px solid #595241;
+       border-right: 1px solid #595241;
+       border-top: 1px solid #595241;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+/*preferences*/
+
+.input-form 
+table.tabbed-table {
+       width: 100%;
+       border:thin black solid;
+}
+table.tabbed-table th#left-empty-tab {
+       background-color: transparent;
+       width: 0.938em;
+       border-bottom: 1px solid #B8AE9C;
+}
+table.tabbed-table th#right-empty-tab {
+       text-align: right;
+       background-color: transparent;
+       border-bottom: 1px solid #B8AE9C;
+       width: 25em;
+       padding-right: 0.313em;
+}
+table.tabbed-table th#right-empty-tab a {
+       text-decoration: underline;
+}
+table.tabbed-table th.tab-spacer {
+       background-color: transparent;
+       width: 0.313em;
+       border-bottom: 1px solid #B8AE9C;
+}
+
+table.tabbed-table th.tab {
+       padding-top: 0.125em;
+       padding-bottom: 0.125em;
+       width: 6.875em;
+       background-color: #E9F4F3;
+       border-bottom: 1px solid #B8AE9C;
+       border-left: 1px solid #B8AE9C;
+       border-top: 1px solid #B8AE9C;
+       border-right: 1px solid #B8AE9C;
+}
+table.tabbed-table th.tab:hover {
+       background-color: #ACCFCC;
+}
+
+table.tabbed-table th.tab a:focus {
+       color: white;
+}
+table.tabbed-table th.selected {
+       padding-top: 0.125em;
+       padding-bottom: 0.125em;
+       width: 6.875em;
+       background-color: #ACCFCC;
+       border-left: 1px solid #B8AE9C;
+       border-top: 1px solid #B8AE9C;
+       border-right: 1px solid #B8AE9C;
+}
+
+table.tabbed-table a, table.tabbed-table a:visited, table.tabbed-table a:hover {
+       color: #4C566C;
+       text-decoration: none;
+}
+
+
+.preference-buttons-container{
+       background-color: red;
+       height: 2.5em;
+       width: 100%;
+       text-align: center;
+}
+
+div.preference-buttons-container li{
+       display: inline; 
+       float: right;
+}
+
+.prefs_tab_selected{
+       font-style: italic;
+       width: 10%;
+}
+.prefs_tab{
+       width: 10%;
+}
+
+.etabbed-table{
+       margin: 0 auto;
+}
+#previewText{
+       font-family: monospace;
+       border: 2px solid rgb(0, 0, 0); 
+       padding: 2em;
+       width: 80%; 
+       color: rgb(255, 255, 255);
+       background-color: rgb(0, 0, 0);
+}
+#previewArea{;
+       padding: 0em;
+       border-bottom-width: 0; 
+       margin-left: auto; 
+       margin-right: auto; 
+       font-weight: normal; 
+       width: 70%;
+       float:left;
+       clear:right;
+}
+#display-settings-preview{
+       width:90%;
+       height:20em; 
+       margin: 0 auto;
+}
+#feedback{
+       width: 90%;
+}
+#defaultfontsize-wrapper{
+       width:90%; 
+}
+
+a#my-start-page {
+       padding: 0.125em;
+       padding-left:  0.938em;
+       background-repeat: no-repeat;
+       background-position: 0.125em 0.313em;
+}
+
+a#back-to {
+       padding-left: 1.25em;
+       background-image: url(images/back.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0;
+}
+
+.breadcrumbs, .previous-next /*a#guide*/{
+    /* The path bar, including breadcrumbs and add to favorites */
+       clear:both;
+    font-size: 1em;
+       padding:0;
+       color: #4C566C;
+       background-color: white;
+
+}
+#breadcrumbs-container{
+       background-color: #4d4d4d;
+       position: relative;
+}
+.breadcrumbs{
+       display:none;
+}
+h2.page-title  {
+       
+       
+}
+#subnavlistbacktopage{
+       float: left;
+}
+
+h1 {
+       margin-bottom: 0.313em;
+       
+}
+
+
+div#help {
+       border-left: 1px solid black;
+       border-right: 1px solid black;
+       border-bottom: 1px solid black;
+       padding-left: 0.313em;
+       padding-right: 0.313em;
+       padding-bottom: 0.313em;
+       background-color: #F7F3ED;
+       margin-left: 0.313em;
+       margin-right: 0.313em;
+       font-size: small;
+}
+
+h3#help-title {
+       margin-left: 0.313em;
+       margin-right: 0.313em;
+       border-left: 1px solid black;
+       border-right: 1px solid black;
+       padding: 0.063em;
+       background-color: #F7F3ED;
+}
+.line {
+       border-bottom: 1px solid black;
+}
+div#help p {
+       padding: 0;
+       margin: 0;
+}
+
+div#toctoggle {
+       float: left;
+       padding-left: 0.625em;
+}
+
+
+/**********************************************************************/
+/*FOOTER*/
+/**********************************************************************/
+div#footer-links {
+       margin: 0 auto;
+       font-size: .938em;
+}
+#footer{
+       height:2.3em;
+       background-color: #4b6b90;
+       margin-top: -2.3em;
+       position: relative;
+       clear: both;
+       
+}
+
+ul.footer-links-tabs li a:hover, ul.footer-links-tabs li a:focus, ul.footer-links-tabs li a:active,
+ul.footer-links-tabs li.back a:hover, ul.footer-links-tabs li.back a:focus, ul.footer-links-tabs li.back a:active,
+ul.footer-links-tabs li.forward a:hover, ul.footer-links-tabs li.forward a:focus, ul.footer-links-tabs li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+div#top-links a:link, div#top-links a:visited {
+       text-decoration:none;
+}
+
+#jumpmenu:focus{
+       background-color:#F6EAD6;
+}
+#jumpmenu{
+       margin: 0 auto;
+}
+
+a#editor-link {
+       background-color: #F7F3ED;
+       padding-top: 0.063em;
+       padding-bottom: 0.063em;
+       padding-left:  0.938em;
+       padding-right: 0.5em;
+       border: 1px solid #cccccc;
+       font-weight: normal;
+       text-decoration: none;
+}
+
+a#editor-link:hover {
+       background-color: #F7F3ED;
+       border: 1px solid #B8AE9C;
+}
+
+a#editor-link.off {
+       background-image: url(images/pen.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0.125em;
+}
+a#editor-link.on {
+       background-image: url(images/pen2.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0.125em;
+}
+
+
+/* for data tables */
+.table-surround {
+       border: #A9ADB0 1px solid;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
+       
+}
+
+table.data {
+       margin:0;
+       width:100%;
+       padding: 0;
+       color: #4C566C;
+       font-size: .8em;
+       text-align: left;
+       background-color: transparent;
+} 
+/* contains the headings */
+table.data th {
+
+       padding: 0.188em;
+}
+
+table.data th a {
+       color: #595241;
+       background-image: url('../default/images/sort.gif');
+       background-repeat: no-repeat;
+       background-position: right;
+}
+
+
+/*headings text*/
+table.data tbody th {
+       text-align: left;
+
+}
+
+table.data td {
+       padding: 0.188em;
+       color: black;
+       font-size: .875em;
+       font-style: normal;
+}
+table.data td a:link, a:visited{
+       /*color: black;*/
+       color: #4C566C
+}
+
+/*should table.data tbody tr:hover  and table.data tbody tr.selected  highlighting 
+be improved to sync with Mobile FSS highlighting */
+table.data tbody tr:hover {
+       background-color: #efefef;
+       cursor: pointer;
+}
+
+table.data tbody tr.selected {
+       background-color: #E9F4F3;
+       cursor: auto;
+       border: 5px solid #E9F4F3;
+}
+
+table.data tfoot {
+       background-color: #F7F3ED;
+}
+
+table.data tfoot tr:first-child td {
+       padding: 0.313em;
+       background-image: url('images/arrow_ltr.gif');
+       background-repeat: no-repeat;
+       background-position: .25em 0.313em;
+}
+
+table.data.static tfoot td, table.data.static tfoot tr:first-child td {
+       padding: 0.313em;
+       background-image: none;
+       padding-left: 0;
+
+}
+/* add borders to row in Required Information, Personal Information*/
+.row{
+       padding:.375em 0;
+       font-size: 0.938em;
+}
+#last-row, .row-buttons, #last-row1, .row-blurb{
+       border: none;
+}
+#browse-courses-table{
+       font-size: .875em;
+}
+
+
+/*buttons*/
+table.data tfoot input {
+       background-color: #efefef;
+       font-weight: normal;
+}
+table.data tfoot input:focus {
+       background-color: #FFDAB9;
+}
+
+
+/* used for static tables with no form elements: */
+table.data.static tbody tr:hover {
+       background-color: transparent;
+       cursor: auto;
+}
+
+
+
+/* course browser: */
+
+div#browse {
+       margin-left: auto; 
+       margin-right: auto; 
+       width: 80%;
+}
+
+div.browse-selected {
+       background-image: url('images/side_arrow.gif'); 
+       background-repeat: no-repeat; 
+       padding-left: 0.563em; 
+       background-position: center left;
+}
+
+div.browse-unselected {
+       padding-left: 0.563em; 
+}
+
+ul.browse-list {
+       list-style: none;
+       padding:0;
+}
+
+/* feedback /errors */
+div#error {
+       width: 89%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #DD0000;
+       padding: 0.313em;
+       background-color: #F4DCDC;
+       color: #A50707;
+       background-color: #F4DCDC;
+       padding-left: 1.563em;
+       font-weight: bold;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+}
+div#error h4 {
+       color: black;
+       margin-left: 0;
+}
+
+div#error ul, div#feedback ul, div#help ul {
+       position: relative;
+       list-style: none;
+       margin-left: 0;
+       padding-left: 0;
+}
+
+div#error ul li{
+       margin-top: 0.313em;
+}
+
+div#feedback, div#info {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top: 0.313em;
+       margin-bottom: 0.313em;
+       padding: 0.313em;
+       font-family: Helvetica, Arial, sans-serif;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+       border: 1px solid #17B506;
+       background-color: #E7EFD0;
+       color: #3f4559;
+       font-size: 90%;
+       z-index: -1;
+}
+div#feedback li, div#info li, div#error li{
+       color: #4C566C;
+       z-index: -1;
+}
+
+div#help {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #ACCFCC;
+       padding: 0.313em;
+       background-color: #E9F4F3;
+       color: #024C41;
+}
+
+
+div#warning {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #FF8400;
+       padding: 0.313em;
+       background-color: #FFF6ED;
+       color: #D95900;
+       font-weight: bold;
+}
+acronym {
+       cursor: help;
+}
+
+div.news p {
+       margin: 0;
+       padding:0;
+}
+div.news span.date {
+       font-family:Helevetica, Arial, sans-serif;
+       color: #4C566C; 
+       font-size: .5em;
+}
+
+.news{
+       padding: 0;
+       margin-bottom: 1em;
+       margin-top: 1em;
+}
+/* home page links */
+div.home-link {
+       padding: 0.125em;
+       float: left;
+       text-align: center;
+       margin: 0.125em;
+       width: 7.5em;
+       height: 5.625em;
+}
+div.home-link:hover {
+       padding: 0.063em;
+       background-color: #F7F3ED;
+       border: 1px solid #afafaf;
+       float: left;
+       text-align: center;
+       margin: 0.125em;
+}
+div.home-link a {
+       text-decoration: none;
+       font-weight: bold;
+}
+
+div.home-link img {
+       border: 0;
+}
+
+/* sequence links */
+div#sequence-links {
+       
+}
+div#sequence-links a {
+       text-decoration: none;
+       display: block;
+}
+
+.previous-next{
+       display: block;
+}
+div.dropdown {
+       width: 12.5em;
+       padding: 0.125em;
+       background-color: white;
+       color: black;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-bottom: 1px solid #ECFEEA;
+       font-weight: normal;
+}
+
+div.dropdown-heading {
+       background-color: #ACCFCC;
+       color: #595241;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-top: 1px solid #ECFEEA;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+div.required {
+       font-weight: bold;
+       color: red;
+       font-size: large;
+       float: left;
+       position: relative;
+       margin-top: -0.313em;
+       height:  0.938em;
+       padding-right: 0.125em;
+}
+
+div#content_text {
+       margin-left: 0.313em;
+}
+
+#content{
+       padding-top: .313em;
+       background-color: white;
+       z-index: 1000;
+}
+form {
+       display:inline;
+       max-width: 100%;
+}
+
+
+/* paging*/
+div.paging {
+       margin-top: 1em;
+       text-align: center;
+}
+div.paging ul {
+    list-style: none;
+    display: inline;
+    padding: 0;
+       max-width: 10%;
+       margin-bottom: 1em;
+}
+div.paging li { 
+       display: inline; 
+       padding-left: 0.125em; 
+       padding-right: 0.125em;
+       padding-top: 0;
+       padding-bottom: 0;
+       width: 10%;
+}
+
+div.paging li a {
+       text-decoration: none;
+       padding-left: 0.25em;
+       padding-right: 0.25em;
+       border-left: 1px solid white;
+       border-right: 1px solid white;
+}
+
+
+div.paging li a:hover, div.paging li a.current {
+   border: 1px solid #4c96f4;
+   color: white;
+   background-color: #4c96f4;
+   -webkit-border-radius: 3px;
+   -moz-border-radius: 3px;
+   border-radius: 3px;
+}
+
+#tl_corner{
+
+       background-image:url(images/tl_corner.gif);
+       background-position: top left;
+       background-repeat: no-repeat;
+       padding:0;
+}
+
+div.tabs {
+       /* Navigational Plone Tabs(tm), implemented by customizing the a tag - they are surprisingly elegant. The power of CSS runs strong in these :) */
+    background-color: transparent;
+       border-collapse: collapse;
+       border-bottom: 1px solid #B8AE9C;
+       padding: 0.5em 0em 0em 2em;
+       white-space: nowrap;
+}
+
+div.tabs a {
+    /* The normal, unselected tabs. They are all links */
+    background-color: transparent;
+    border-color: #B8AE9C;
+    border-width: 1px; 
+    border-style: solid solid none solid;
+    color: #595241;
+    height: 1.2em;
+    margin-right: 0.5em;
+    padding: 0em 2em 0em;
+    
+}
+
+div.tabs a.selected {
+    /* The selected tab. There's only one of this */
+    background-color: white;
+    border-bottom: #B8AE9C 1px solid;
+    color: #595241;
+    font-weight: normal;
+}
+
+div.tabs a:hover, div.tabs a.active {
+    background-color: #B8AE9C;
+    border-bottom: 1px solid #B8AE9C;
+    color: white;
+}
+
+.headingbox a{
+       color: #4C566C;
+}
+.headingbox a:link, .headingbox a:visited{
+       text-decoration: none;
+}
+div.box {
+}
+h4.box {
+       background-color: #F5F5F5;
+       padding: .313em; 
+}
+h4.box a {
+       display: block;
+       color: #4C566C;
+       background-color: #F5F5F5;
+       text-decoration: none;
+}
+
+
+div.box {
+       padding: 0.313em;
+       background-color: #F5F5F5;
+       color: black;
+       border: 1px solid #B8AE9C;
+       font-size:0.85em;
+       font-weight: normal;
+       padding:0.125em;
+}
+
+h5.box { 
+    background-color: #6F7172;
+    border: 1px solid #B8AE9C;
+    border-style: solid solid none solid;
+    color: Black;
+    padding: 0em 1em 0em 1em;
+    display: inline;
+       font-size:  1em;
+    height: 1em;
+}
+
+div.box a:link {
+       text-decoration: none;
+}
+
+div.box a:visited {
+       color: #2A6C28;
+       text-decoration: none;
+}
+
+div.box a:hover {
+       text-decoration: underline;
+}
+
+.boxDetails {
+    text-align: right;
+}
+
+div.box .content {
+    padding: 1em;
+       font-size:  1em;
+}
+
+div.box a.close {
+    float: right;
+    text-transform: none;
+    border-left: 1pt solid #B8AE9C;
+    padding: 0em 0.2em;
+}
+
+div.box h1, 
+div.box h2, 
+div.box h3, 
+div.box h4 {
+    margin: 0;
+    padding: 0;
+}
+
+div.box .even {
+    background-color: #F7F3ED;
+}
+
+div.box .odd {
+    background-color: transparent;
+}
+
+
+/* users/index.php */
+
+div.course {
+       position: relative;
+       width: 12.5em;
+       height: 10.5em;
+       border: rgb(204, 204, 204) 1px solid;
+       background-color: #F7F7F7;
+       float: left;
+       margin: 0.188em;
+       padding: 0.313em;
+}
+
+div.course.break {
+       clear: left;
+}
+
+div.course h2 {
+       border: 0;
+       font-weight: normal;
+       font-size: large;
+
+}
+
+div.course:hover {
+       background-color:#FBF4E9;
+       border: #B8AE9C 1px solid;
+}
+
+
+table.data .odd img.headicon{
+       width: 2.469em;
+       height: 2.469em; 
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+}
+
+.icon{
+       -webkit-border-radius:10px;
+       -moz-border-radius:10px;
+       border-radius: 10px;
+       border-color: white;
+       width: 2.5em;
+       height: 2.5em;
+       float: left;
+}
+div.course div.shortcuts {
+       text-align: right;
+       clear: left;
+       vertical-align: middle;
+       width: 12.5em;
+}
+
+fieldset#shortcuts {
+       float: right;
+       background-color: #FEFDEF;
+       border: 1pt solid #B8AE9C;
+       margin: -5pt 5pt 5pt 5pt;
+       padding-right: 10pt;
+       padding-bottom: 5pt;
+       padding-left: 10pt;
+}
+
+fieldset {
+       margin-bottom: 10pt;
+       -webkit-border-radius:5px;
+       moz-border-radius:5px;
+       border-radius:5px;
+       padding: 0 0.375em;
+       width: 90%;
+       margin: 0 auto; 
+       width:95%;
+       margin:0 auto;
+       border:thin #6D7B8D solid;
+       border:thin #A9ADB0 solid;
+       margin-bottom: 1em;
+}
+#shortcuts ul {
+       position: relative;
+       margin-top: 0pt;
+       margin-bottom: 0pt;
+       margin-left: 0pt;
+       list-style-type:  none;
+       padding-left: 0pt; 
+}
+
+/*a#guide,*/ a#my-courses-link {
+       background-color: #6D84A2;
+}
+
+#guide img{
+       border:none;
+}
+
+#guide a:hover{
+       
+}
+
+div#content-test, div.content-from-module {    
+       float: left;
+       margin-top: 2em;
+       margin-bottom: 2em;
+       padding-right: 5pt;
+       width: 80%;
+}
+
+div#container {
+       text-align: left;
+       margin: 0 auto;
+       padding: 0;
+       border:0;
+       width: 95%;
+}
+
+/* index page */
+ul#home-links, ul#home-detail-links {
+       list-style: none;
+}
+
+/*my start page */
+#my_courses_container{
+       text-align: left;
+       margin: 0 auto;
+       border:0;       
+       min-width: 100%;
+}
+.my-courses-list{
+       border: solid 1px #A9ADB0;
+       -webkit-border-radius:8px;
+       -moz-border-radius:8px;
+       border-radius:8px;
+       padding: .375em;
+       color: #4C566C;
+       margin-bottom: .375em; 
+       margin-top: .375em;
+       padding: .375em;
+}
+.my-courses-list-ul{
+       margin: 0 auto;
+       padding-left: 0;
+       width: 100%;
+}
+.my-courses-links{
+       font-size: 80%;
+       padding-top: .75em;
+}
+.my-courses-resume{
+       float: right;
+}
+.fl-link-summary{
+       padding-left: 0.875em;
+       padding-bottom: 0.875em;
+       display: inline;
+}
+
+.fl-theme-iphone [class*="fl-list"] > li .fl-link-summary{
+       color: #4C566C;
+}
+.current_head{
+       padding-top: .5em;
+}
+
+.current_box{
+       max-width: 100%;
+}
+.current_list{
+       width: 95%;
+       padding: 0.375em;
+}
+.current_list li{
+       list-style-type: none;
+       font-style: bold;
+       padding-bottom: .5em;
+       padding-left: .5em;
+       margin:0;
+}
+.current_list_date_time{
+       font-size: 65%;
+}
+#show-all, #show-pages{
+       text-align: center;
+       
+}
+/* enrollment tabs */
+#navlist {
+       padding: 0;
+       margin-left: 0;
+       margin-right: auto;
+       margin-left: auto;
+       margin-bottom: .25em;
+       margin-top: 0.938em;
+       white-space: nowrap;
+}
+
+#navlist li {
+       list-style: none;
+       display: inline;
+       margin: 0;
+}
+
+#navlist li a {
+       padding: 0.188em 0.563em;
+       border: 1px solid #F7F3ED;
+       border-bottom: none;
+       background-color: #F7F3ED;
+       text-decoration: none;
+       margin-left: .25em;
+       white-space: nowrap;
+}
+
+#navlist li a:hover, #navlist li a:active {
+       color: #000;
+       background-color: #fff;
+}
+
+/* tree */
+.img-size-tree {
+       vertical-align: middle;
+       margin-top: 0;
+    padding:0;
+       height:1.45em;
+       width:1.5em;
+}
+/* profile page */
+dl#public-profile dt {
+       float: left;
+       width: 90%;
+       border-right: 1px solid #F7F3ED;
+       padding: 0.313em 0.313em 0.313em 0;
+
+       margin-right: 0.313em;
+}
+dl#public-profile dd {
+       margin: 0;
+}
+
+div.social-right{
+       margin-left:.5em;
+       margin-top: 1em;
+}
+div.social-left{
+       margin-left:.5em;
+}
+h4.profile{
+       float: left;
+}
+.social-wrapper h3{  
+       padding-top: .5em;
+}
+.my-contacts h3{
+       padding-bottom: .375em;
+}
+img#profile{
+       border: 1px #cccccc solid;
+       margin-left: 1em;
+}
+dd{
+    margin: 0;
+}
+
+/** forum stuff **/
+#forum-thread li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; float:left; width: 97%; list-style: none; }
+#forum-thread li.even { background-color: #F7F3ED; border-top: none; }
+#forum-thread li.odd { background-color: #fff; }
+div.forum-post-author { float:left; width:19.375em; padding:0.5em 0.625em; }
+div.forum-post-author a.title {font-size: 1.1em; line-height: 1.2em; font-weight: bold; text-decoration:none; }        
+div.forum-post-author img.profile-picture { border: 2px solid #F7F3ED; text-align:right;}
+div.forum-post-content { margin-left: 19.375em; padding: 0.313em 0 1.125em 1.125em;}
+div.forum-post-content h3 { font-weight: 500; float:left;clear:right; }
+div.forum-post-ctrl { float: right; padding-right: 0.313em; color: #a1a1a1;}
+div.forum-post-ctrl a { text-decoration: none; }
+div.forum-post-ctrl span { color: black; background-color: #fefdc2; padding: 0.188em; }
+div.forum-post-content p.date { color: #a1a1a1; border-bottom: 1px solid #F7F3ED; }
+div.forum-post-content div.body p { margin-bottom:1em; }
+div.forum-paginator{border:thin #cccccc solid; padding:.3em; width:95%;margin:auto;background-color:#F7F3ED;}
+span.forum-paginator-active{font-weight:700;text-decoration:underline; height:2em;}
+
+
+
+/** inbox stuff - reuses some of the forum layout **/
+#inbox-msg li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; width: 95%; list-style: none; min-height: 11em;}
+       
+/*  tool list on admin home and manage screens  */
+ li.top-tool { 
+       list-style: none;
+       padding: 0.125em 0.125em 0.125em  0.938em;
+       margin-bottom: 0.313em; 
+       line-height: 200%; 
+       border: solid 1px #A9ADB0;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius:5px;
+}
+       
+li.child-tool a { 
+       font-size: x-small;
+       font-weight: normal; 
+}
+
+ul.child-top-tool {
+       margin-top: -0.313em;
+       padding-left: 0;
+       margin-left: 0;
+       display: inline;
+}
+
+li.child-tool {
+       display: inline;
+       margin-right: 0.313em;
+       font-size: x-small;
+}
+
+
+/* browse courses */
+div.browse-course {
+       padding-bottom: 0.625em;
+}
+
+dl.browse-course {
+       width: 90%;
+       padding-bottom: 0.625em;
+       background-color: #fffaf0;
+       margin:auto;
+       margin-left:1em;
+}
+dl.browse-course dt {
+       float: left;
+       font-weight: bold;
+       width: 25%;
+       text-align: right;
+       clear: left;
+       padding: 0.313em 0.625em 0.313em 0;
+       vertical-align: middle;
+
+}
+dl.browse-course dd {
+       margin-bottom: 0.313em;
+       clear: right;
+       padding: 0.313em 0 0.313em 0.625em;
+       margin-left: 26%;
+
+}
+.row .buttons{
+       border: none;
+}
+
+/*  form fields grouping for WCAG 2.0 conformance*/
+fieldset.group_form{
+       width:95%;
+       margin:0 auto;
+       margin-bottom: 1em;
+       border: 1px #6D7B8D solid;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+       margin-top: .5em;
+}
+
+legend.group_form{
+       background-color:white;
+       font-weight: 600;
+       color: #4c566c;
+       padding:.5em;
+       border: 1px #6D7B8D solid;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+}
+
+/* highlight active links for WCAG 2.0 conformance */
+a:active:not(.subnavcontain a), 
+a:hover:not(.subnavcontain a),
+a:focus:not(.subnavcontain a),
+.buttontab-hover{
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+}
+
+/*Overrides above a:active, a:hover, a:focus so the "Navigation" button itself isn't highlighted when activated.
+Ensure styling matches that in fl-tabs.*/
+.topnavlistcontainer a:hover, .topnavlistcontainer a:active, .topnavlistcontainer a:focus{
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+
+}
+
+
+/*Added by Silvia */
+div.column_primary {
+       float: left;
+       width: 42%;
+       margin: 0.313em;
+       padding: 0;
+       min-width: 10.625em;
+}
+
+div.column_equivalent{
+       float: left;
+       width: 52%;
+       margin-left:  0.938em;
+       margin-top: 0.313em;
+       margin-right: 0.313em;
+       margin-bottom: 0.313em;
+       min-width: 10.625em;
+       padding: 0.313em;
+       border: 1px solid #EEE;
+       background-color: #FFF;
+}
+
+div.resource_box{
+       border: 1px solid #aaa;
+       width: 95%;
+       margin: 0.313em;
+       padding: 0.313em;
+       min-width: 9.375em;
+       background-color: #eee;
+}
+
+h2.alternatives_to{
+       margin-top: 0.75em;
+       font-size: 90%;
+       color: #A50707;
+}
+
+div.alternative_box{
+       border: 1px solid #ddd;
+       /*width: 90%;*/
+       margin: 0.313em;
+       padding: 0.313em;
+       min-width: 9.375em;
+       background-color: #fff;
+}
+
+div.alternative_box legend {
+       color: #000;
+}
+
+div.resource_box legend {
+       color: #000;
+}
+
+label.primary a{
+       color: #A50707;
+       font-weight: bolder;
+       background-color: white;
+}
+
+/* format of "table of contents" on content page */
+#toc a                 { display:block; margin:0.188em; }
+#toc .h2, #toc .h3, #toc .h4, #toc .h5, #toc .h6{ 
+       padding:0 0 0 0;
+}
+
+
+fieldset#toc {
+       background-color: #FEFDEF;
+       border: 1pt solid #B8AE9C;
+       width:89%;
+}
+
+#side-menu{
+       overflow:hidden;
+}
+
+/* cleans up glossary question mark line spacing*/
+sup{
+       border: 1pt solid #B8AE9C;
+       vertical-align:bottom;
+       margin-top: 1em;
+}
+
+/* jQuery tooltip styles */
+#tooltip{
+       position:absolute;
+       z-index:3000;
+       border:3px solid #111;
+       background-color:#eeeeee;
+       padding:0.313em;
+}
+#tooltip h3,#tooltip div{
+       margin:0;
+}
+
+/* style for home page modules "detail view" */
+div.home_box {
+       padding: .75em 0;
+       margin: 0 auto;
+}
+
+.outside_box{
+       background:#e0e0e0;
+       width: 17em;
+       margin: .375em;
+       padding: 0;
+       height:9.8em;
+}
+
+.inside_box{
+       width:100%;
+       margin:auto;
+       height:52%;
+       margin-bottom:.2em;
+       background:#eeeeee;
+
+}
+.details_or{
+       width:28.8em;
+       height:9.8em;
+       margin:0;
+       background-image:url(images/details_r.png);
+       background-position: top right;
+       background-repeat:no-repeat;
+}
+.details_ol{
+       height:9.8em;
+       margin:0;
+       width:.45em;
+       background-image:url(images/details_l.png);
+       background-position: top left;
+       background-repeat:no-repeat;
+}
+.details_ir{
+       width:.5em;
+       height:100%;
+       float:right;
+       background-image:url(images/details_ir.png);
+       background-position: top right;
+       background-repeat:no-repeat;
+}
+.details_il{
+       height:100%;
+       float:left;
+       background-image:url(images/details_il.png);
+       background-position: top left;
+       background-repeat:no-repeat;
+}
+.home-title{
+       font-size:12pt;
+}
+.buttonbox{
+       float:right;
+}
+.details_text{
+       margin-left:1em;
+}
+.draggable_selected {
+       background-color: lightgrey;
+       cursor: move;
+}
+
+div.menuedit{
+       float:right;
+       margin-top:-1.2em; 
+       border:1px solid #cccccc;
+}
+li.folders {
+       list-style: disc url(../../images/folder.gif) outside;
+       font-family: Helvetica,sans-serif;
+       margin-bottom: 0;
+       margin-top: 0;
+       margin-right: 0;
+}
+
+li.folders .disabled {
+       color: #B8AE9C;
+}
+
+ul.folder{
+       list-style-image:none;
+       list-style-position:outside;
+       list-style-type:none;
+       margin:0em;
+       padding:0em;
+}
+
+
+/*     hiding/showing  results-display */
+
+
+div#results-display{
+       display: none;
+}
+
+ul#topnavlist li {
+       padding: 0;
+       margin: 0;
+}
+       
+ul#topnavlist>li:hover, ul#topnavlist>li:hover a,  ul#topnavlist>li:active, ul#topnavlist>li:active a, ul#topnavlist>li:focus, 
+ul#topnavlist>li:focus a {
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+}
+
+ul#topnavlist li a  {
+       color: #4C566C;
+       text-decoration: none;
+}
+
+
+div.toolcontainer{
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
+}
+
+ul#subnavlist li a:hover, ul#subnavlist li a:focus, ul#subnavlist li a.active{
+}
+#subnavlist{
+       display: none;
+}
+ul#subnavlist li a, ul#subnavlist li a:visited {
+       color: #4C566C;
+}
+
+
+/* list attributes */
+ul {
+       list-style: none;
+}
+li {
+       color: black;
+       list-style: none;
+}
+
+ol#tools>li:hover {
+       /*border: 1px solid #e0e0e0;*/
+       background-color: #e6e6e6;
+       color: black;   
+       
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+       
+}
+ol#tools>li:hover a{
+       color: white;
+}
+
+#contentwrapper{
+       
+}
+#content-contentwrapper{
+       height:100%;
+    position:relative; 
+       z-index:1000;                   
+       width:100%;
+       overflow:hidden;
+}
+
+#leftcolumn{
+       float: left;
+       width: 17em;
+       margin-left: 0.313em;
+       margin-top:-0.625em;
+}
+
+#copyright{
+       font-size: 0.5em;
+}
+#gototop{
+       text-align: center;
+       color: #4B6B90;
+}
+
+#tools{
+       margin: 0 auto;
+       padding: 0;
+}
+
+
+/* ATutor Social Styles */
+
+div .profile_container {
+       background-color:#eee; 
+       border: 1px solid #8e8e8e; 
+       width:80%; 
+       padding:0.5em; 
+       margin-bottom: 0.5em;
+}
+
+div .profile_container .top_right {
+       float: right;
+}
+
+dl.public-profile dd{
+       margin-left:0;
+}
+dl.public-profile dt {
+       float: left;
+       font-weight: bold;
+       min-width:12em;
+}
+
+/* Search form */
+div .search_form {
+       margin-bottom: 1em;
+}
+
+div .search_form .row{
+       background-color: #DEDEC0;
+       padding: 0.5em;
+}
+div .button {
+       background-color: #eee;
+       border: 1px solid #aaa;
+}
+div .button:hover{
+       background-color: #cccccc;
+       color: #ffffff;
+}
+
+/* Side menu */
+
+
+ul.social_side_menu {
+       padding-left: 2em;
+}
+ul.social_side_menu li {
+       padding-bottom: 0.2em;
+       list-style: circle;
+}
+
+div .divider {
+       border-bottom:1px solid #C1C157; 
+       padding-bottom:0.5em; 
+       margin-bottom:0.5em;
+}
+
+.activity{
+       line-height:18pt;
+       font-size:.8em;
+}
+
+div.contentbox, input-form{
+
+       padding:.5em;
+       background-color: #ffffff;
+    overflow:hidden;
+    border: #A9ADB0 solid 1px;
+       -webkit-border-radius: 5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+}
+
+div.suggestions{
+       border:1px solid #a50707;
+       margin-left:0.625em; 
+       width:50%;
+}
+li.inlinelist{
+       display: inline; 
+       padding-right: 1em;
+}
+ul.social_inline_menu{
+       background-color: #eeeeee;
+       border:thin #cccccc solid;
+       padding:.5em;
+       width:90%;
+       margin:auto;
+}
+div.social-wrapper{ 
+       width: 100%;
+}
+
+div.logo{
+float:left;
+clear:right;
+margin-left:2em;}
+
+/*mobile FSS override */
+.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a:hover, 
+.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a:focus,
+.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a:active {
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+  
+}
+ul#subnavlist li a:focus, ul#subnavlist li a:active, ul#subnavlist li a:hover{
+       color: white;
+}
+
+
+
+/************************************************************************************************/
+/*Adds arrows to Fluid Tabs. Here is a good guide for creating triangles with CSS: 
+http://jonrohan.me/guide/css/creating-triangles-in-css/ */
+/************************************************************************************************/
+ul.sequence-links {
+}
+
+ul.sequence-links li {
+    position:relative;
+    overflow:hidden;
+    list-style:none;
+}
+
+ul.sequence-links li.back a:link, ul.sequence-links li.back a:visited {
+    display:block;
+    padding-left:0.438em;
+       color: #005689;
+}
+
+ul.sequence-links li.forward a:link, ul.sequence-links li.forward a:visited {
+    display:block;
+    padding-right:0.313em;
+       color: #005689;
+}
+/*WCAG*/
+ul.sequence-links li a:hover, ul.sequence-links li a:focus, ul.sequence-links li a:active,
+ul.sequence-links li.back a:hover, ul.sequence-links li.back a:focus, ul.sequence-links li.back a:active,
+ul.sequence-links li.forward a:hover, ul.sequence-links li.forward a:focus, ul.sequence-links li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+
+
+ul.sequence-links li:before, ul.sequence-links li:after, ul.sequence-links li a:before, ul.sequence-links li a:after {
+    content:"";
+    position:absolute;
+    top:50%;
+   /* left:0;*/
+}
+
+ul.sequence-links li a:before, ul.sequence-links li a:after {
+    margin:-0.5em 0 0;
+  }
+
+ul.sequence-links li a:hover:before, ul.sequence-links li a:focus:before, ul.sequence-links li a:active:before {
+}
+/*arrow that points to the left, beside the "Previous" text */
+.arrow.back a:after {/*arrow pointing to the left*/
+     background: none repeat scroll 0% 0% transparent;
+     border-color: transparent #005689;
+   
+     border-style: solid;
+     border-width: 5px 0pt 5px 6px;
+     left: 0.5em;
+     margin-top: -0.39em;
+}
+
+/*left and right triangle icons change color*/
+.arrow a:hover:after, .arrow a:focus:after, .arrow a:active:after, .arrow.forward a:hover:after, .arrow.forward a:focus:after, .arrow.forward a:active:after{
+       border-color: transparent #4c96f4;
+}
+
+.arrow.back a:after {
+     border-width: 6px 6px 6px 0pt;    
+     left: 0.188em;
+     top: 1.25em;
+}
+
+
+/*arrow that points to the right, beside the "Next" text */
+.arrow.forward a:after {
+     background: none repeat scroll 0% 0% transparent;
+     border-color: transparent #FFFFFF;
+     border-style: solid;
+     margin-top: -0.425em;
+     margin-top: -0.313em;
+   
+}
+.arrow.forward a:after {
+     /*top: 11px;*/
+       background: none repeat scroll 0% 0% transparent;
+     border-color: transparent transparent transparent    #005689;
+        border-width: 6px;
+        border-style: solid;
+        width:0;
+        height:0;
+        right: -0.313em;
+        top: 1.19em;
+}
+
+#sequence-links{
+       float: left;
+}
+       
+
+#content{
+       text-align: left;
+       width: 93.5%;
+       width: 99%;
+       border-left: #A9ADB0 1px solid;
+       border-right: #A9ADB0 1px solid;
+       border-bottom: #A9ADB0 1px solid;
+       -webkit-border-radius: 5px; 
+       -moz-border-radius: 5px; 
+       border-radius: 5px;
+       display: none;
+       position: relative;
+       top: 0em; 
+       clear: left;
+       clear: right;
+       z-index: 1;
+}
+
+/*hiding and showing content */
+
+#results-hide-show-simple-content{
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+       border: 1px #A9ADB0 solid;
+       padding-top: .6em;
+       padding-bottom: .6em;
+       padding-right: .2em;
+       padding-left: .6em;
+       margin-bottom: 0.875em;
+       margin-top: 0.875em;
+       color: #005689;
+       background-color: none;
+}
+#results-hide-show-link{
+       color: white;
+       color: #005689;
+       text-decoration: none;  
+       display: block;
+       font-weight: bold;
+}
+
+
+.content-expand{
+       background-image:url("images/up.png");
+       background-position: 100% 100%;
+       background-repeat: no-repeat;
+}
+
+.content-closed{
+       background-image:url("images/down.png");
+       background-position: 100% 100%;
+       background-repeat: no-repeat;   
+}
+#results-display{
+       background-color: #F7F3ED; 
+       -webkit-border-radius:8px;
+       -moz-border-radius:8px;
+       border-radius: 8px;
+       border: 1px #A9ADB0 solid;
+       padding: .313em;
+       
+}
+.hide-show-container-surround a:active, .hide-show-container-surround a:focus, .hide-show-container-surround a:hover{
+       background-color: transparent;
+       
+}
+.subnavcontain2, .subnavcontain{
+       margin: .313em 0; 
+       background-color: white;
+       border: #A9ADB0 1px solid; 
+       -webkit-border-radius:8px;
+       -moz-border-radius:8px;
+       border-radius: 8px;
+       width: 100%;
+
+}
+/* .fl-theme-iphone .subnavcontain a:hover, .fl-theme-iphone .subnavcontain a:active, .fl-theme-iphone .subnavcontain a:focus*/
+.fl-theme-iphone .subnavcontain a {
+       text-decoration: none;
+
+}
+.fl-theme-iphone .subnavcontain-active{
+       color: white;
+       text-decoration: none;
+} 
+.subnavcontain3{
+       margin: .313em 0; 
+       background-color: #4c96f4;
+       background-image:       -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+       border: #A9ADB0 1px solid; 
+       -webkit-border-radius:8px;
+       -moz-border-radius:8px;
+       border-radius: 8px;
+       width: 100%;
+} 
+#subnavlist-link{
+       display: block;
+       
+}
+#page-title-back-to-page{
+    display: inline-block;
+    width: 100%;
+}
+
+.page-title, #back-to-page{
+    float: left;
+}
+
+.fl-theme-iphone #subnavlist-link  a:active, 
+.fl-theme-iphone #subnavlist-link  a:hover, 
+.fl-theme-iphone #subnavlist-link a:focus{
+       background-color: none;
+}
+.fl-theme-iphone .subnavcontain{
+       margin-top: 1em;
+       
+}
+.rectangle2{
+       display: inline-block; 
+       color: #005689;
+       font-weight: bold; 
+       padding: .6em;
+       margin: -.1em;
+       border-right: #A9ADB0 1px solid; 
+}
+
+.rectangle2:last-child{
+       border: none;
+}
+.rectangle2 a{
+       color: #005689;
+       text-decoration: none;
+       font-weight: bold;
+}
+.rectangle{
+       display: block;
+       color: #005689;
+       font-weight: bold; 
+       padding: .313em;
+       margin: .313em 0;
+           
+}
+#content_link_phone a:active, #content_link_phone a:focus, #content_link_phone a:hover{
+       color: #005689;
+       background-color: white;
+}
+/* style for "last modified" information of course content*/
+#content-info{
+       padding-top: 1em;
+       font-size: 80%;
+}      
+ul.my-courses-list-ul > li:hover{
+       background-color: #4c96f4;
+       color: black;   
+       color: #fff;
+}
+ul.my-courses-list-ul > li:hover a{
+       color: white;
+       text-decoration: none;
+}
+
+/* to be created as a separate desktop theme file. The classes below should be removed when 
+Mark McLaren's port of mobile fss to firefox is committed to infusion: 
+https://github.com/fluid-project/infusion/blob/25ad6755ef78347b414d60bd4037a0f197f9d09d/infusion-branch/src/webapp/framework/fss/css/fss-mobile-theme-firefox.css */ 
+.fl-tabs li:first-child {
+    border-bottom-left-radius: 5px;
+    border-top-left-radius: 5px;
+}
+
+.fl-theme-iphone .fl-tabs li {
+    -moz-border-image: url("images/navbar_normal_button_insetShadow.png") 5 5 5 5 stretch;
+    background-color: #354D68;
+}
+[class*="fl-container"] [class*="fl-list"] > li:first-child, [class*="fl-container"] [class*="fl-list"] > li:first-child a {
+    border-top-left-radius: 8px;
+    border-top-right-radius: 8px;
+}
+[class*="fl-container"] [class*="fl-list"] > li:last-child, [class*="fl-container"] [class*="fl-list"] > li:last-child a {
+    border-bottom-left-radius: 8px;
+    border-bottom-right-radius: 8px;
+}
+
+.fl-theme-iphone .fl-tabs .fl-tabs-active {
+    background-image: -moz-linear-gradient(
+        center top,
+        rgba(149, 184, 239,1),
+        rgba(35,109,229,1),
+        rgba(149, 184, 239,1)  50%,
+        rgba(75,148,244,1) 50%
+    );
+}
+
+/* A simulation for a:active on the device, requires JS */
+/* since .fl-list is for mixed material lists, dont include them in these effects */
+.fl-theme-iphone [class*=fl-list]:not(.fl-list):not(.fl-grid) a:active,
+.fl-theme-iphone [class*=fl-list]:not(.fl-list):not(.fl-grid) a.fl-link-hilight {
+    background: url(../images/themes/iphone/listmenu_arrow.png) no-repeat right -25px,
+                -moz-linear-gradient(#4a94f4, #236de5);
+}
diff --git a/docs/themes/mobile/moz.css b/docs/themes/mobile/moz.css
new file mode 100644 (file)
index 0000000..03531d6
--- /dev/null
@@ -0,0 +1,464 @@
+/*
+ * Contributed by Mark McLaren on the Infusion Users List
+ * http://fluidproject.org/pipermail/infusion-users/2010-April/000186.html
+ This should be deleted from mobile/when it is committed to mobile FSS. 
+ */
+
+.fl-icon {
+    -moz-border-radius: 5px;
+}
+
+/*****************************************/
+/*                                      */
+/*                                      */
+/*         fl-theme-android              */
+/*                                      */
+/*                                      */
+/*****************************************/
+
+.fl-theme-android h1,
+.fl-theme-android h2,
+.fl-theme-android h3 {
+    background: #999 -moz-linear-gradient(
+       center top,
+       #ccc, 
+       #999) no-repeat top left;
+}
+
+/***************************************/
+/* Navigation Bar */
+
+.fl-theme-android .fl-navbar {
+    background-image: -moz-linear-gradient(
+       center top,
+        #666,
+        #333 50%,
+        #000 50%,
+        #000
+    );
+    -moz-box-shadow: 0px 0px 5px rgba(0,0,0,0.5);
+}
+
+.fl-theme-android .fl-navbar .fl-button {
+    -moz-border-image:none;
+    background-image: -moz-linear-gradient(
+       center top,    
+        #444,
+        #666 50%,
+        #333 50%,
+        #000
+    );
+}
+.fl-theme-android .fl-navbar [class*=fl-button]:active {
+    background-image: -moz-linear-gradient(
+       center top,   
+        #ffb347,
+        #ff702f
+    );
+}
+
+.fl-theme-android .fl-navbar .fl-backButton {
+    -moz-border-image: url(../images/themes/android/navbar_back_button_insetShadow.png) 0 15 stretch;
+}
+
+.fl-theme-android .fl-navbar .fl-button-inner {
+    -moz-border-image: url(../images/themes/android/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+}
+
+/***************************************/
+/* general purpose gel buttons */
+/* effect is applied anywhere but the navbar, which has its own button look */
+
+.fl-theme-android .fl-button {
+    -moz-border-image: url(../images/themes/android/button_bg_insetShadow.png) 10 stretch;
+    -moz-background-origin: border;
+    -moz-background-clip: border;    
+}
+.fl-theme-android .fl-button-white {
+    background-image: -moz-linear-gradient(
+       center top,   
+       rgba(240,240,240,0.25),
+        rgba(220,220,220,0.75),
+        rgba(240,240,240,1) 50%,
+        rgba(200,200,200,0.8) 50%
+    );
+}
+.fl-theme-android .fl-button-black {
+    background-image: -moz-linear-gradient(
+       center top,   
+        rgba(106,106,106,0.25),
+        rgba(00,00,00,0.75),
+        rgba(130,130,130,1)  50%,
+        rgba(75,75,75,0.8) 50%
+    );
+}
+.fl-theme-android .fl-button-green {
+    background-image: -moz-linear-gradient(
+       center top,   
+        rgba(120,190,130,0.2),
+        rgba(50,170,60,0.75),
+        rgba(120,190,130,1) 50%,
+        rgba(0,150,10,0.8) 50%
+    );
+}
+.fl-theme-android .fl-button-blue {
+    background-image: -moz-linear-gradient(
+       center top,   
+        rgba(149, 184, 239,0.2),
+        rgba(35,109,229,0.75),
+        rgba(149, 184, 239,1)  50%,
+        rgba(75,148,244,0.8) 50%
+    );
+}
+/***************************************/
+/* tabs 1: small general purpose content dividers */
+.fl-theme-android .fl-tabs li {
+    background-image: -moz-linear-gradient(
+       center top,   
+        #666,
+        #666 50%,
+        #000 50%,
+        #000
+    );
+    -moz-border-image: url(../images/themes/android/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -moz-border-left-image: none;
+    -moz-background-origin: border;
+    -moz-background-clip: border;
+}
+
+.fl-theme-android .fl-tabs .fl-tabs-active {
+    background-image: -moz-linear-gradient(
+       center top,   
+        #ff702f,
+        #ffb347
+    );
+}
+
+/*************************************************/
+/* Ordered lists, Unordererd lists, Thumbnail lists, Icon lists, Definition lists */
+/*************************************************/
+/* Default list system setup */
+
+.fl-theme-android [class*=fl-list] > li {
+    background: transparent -moz-radial-gradient(center 45deg, circle farthest-side, 
+       #FFF 0%, 
+       #000 100%) no-repeat bottom center;;
+    -moz-background-size: 100% 1px; 
+}
+
+/* A simulation for a:active on the device, requires JS */
+.fl-theme-android [class*=fl-list]:not(.fl-list):not(.fl-grid) a:active,
+.fl-theme-android [class*=fl-list]:not(.fl-list):not(.fl-grid) a.fl-link-hilight {
+    background: -moz-linear-gradient(
+       center top,   
+       #ffb347, 
+       #ff702f);
+}
+
+.fl-theme-android [class*=fl-list]:not(.fl-list) a.fl-link-loading {
+    background: url(../images/themes/android/listmenu_loader.gif) no-repeat 97% center,
+                       -moz-linear-gradient(
+       center top,   
+       #ffb347, 
+       #ff702f);
+}
+
+/***************************************/
+/* Grid overrides, removes nav coloring */
+
+.fl-theme-android .fl-grid li a:active,
+.fl-theme-android .fl-grid .fl-link-hilight {
+    background: -moz-linear-gradient(
+       center top,   
+       #ffb347, #ff702f);
+}
+
+/****************************/
+/* Collapsing and expanding panels */
+
+.fl-theme-android .fl-container-autoHeading > *:first-child {
+    background: -moz-linear-gradient(
+       center top,   
+       #CCC, #999);
+}
+.fl-theme-android .fl-container-autoHeading > *:first-child:focus {
+    background: -moz-linear-gradient(
+       center top,   
+       #FFF, 
+       #CCC);
+}
+.fl-theme-android .fl-container-autoHeading > :last-child {
+        background: transparent 
+        -moz-radial-gradient(50% 0, circle, rgba(100,100,100,1) 0%, rgba(0,0,0,0) 100%);
+    );
+}
+
+/*****************************************/
+/*                                      */
+/*                                      */
+/*         fl-theme-iphone               */
+/*                                      */
+/*                                      */
+/*****************************************/
+
+.fl-theme-iphone {
+    background: -moz-repeating-linear-gradient(top left 0deg, #c5ccd3, #c5ccd3 1px, #cfd5dd 10px, #c5ccd3 10px);
+}
+
+
+/***************************************/
+/* Navigation Bar */
+
+.fl-theme-iphone .fl-navbar {
+    background-image: -moz-linear-gradient(
+        center top,
+        #B0BCCD,
+        #889BB3 50%,
+        #6D84A2 50%,
+        #6D84A2
+    )
+}
+
+.fl-theme-iphone .fl-navbar .fl-button {
+    -moz-border-image:none;
+    background-image: -moz-linear-gradient(
+        center top,
+        #9aafca,
+        #6d8cb3 50%,
+        #4b6b90 50%,
+        #4b6b90
+    );
+}
+
+.fl-theme-iphone .fl-navbar [class*=fl-button]:active {
+    background-image: -moz-linear-gradient(
+        center top,
+        rgba(149, 184, 239,1),
+        rgba(35,109,229,1),
+        rgba(149, 184, 239,1) 35%,
+        rgba(75,148,244,1) 50%
+    );
+}
+
+.fl-theme-iphone .fl-navbar .fl-backButton {
+    /* See mobile layout for details */
+    -moz-border-image: url(../images/themes/iphone/navbar_back_button_insetShadow.png) 0 15 stretch;
+}
+
+.fl-theme-iphone .fl-navbar .fl-button-inner {
+    -moz-border-image: url(../images/themes/iphone/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+}
+
+
+/***************************************/
+/* general purpose gel buttons */
+/* effect is applied anywhere but the navbar, which has its own button look */
+
+.fl-theme-iphone .fl-button {
+    -moz-border-image: url(../images/themes/iphone/button_bg_insetShadow.png) 10 stretch stretch;
+    -moz-background-origin: border;
+    -moz-background-clip: border;
+}
+.fl-theme-iphone .fl-button-white {
+    background-image: -moz-linear-gradient(center top,
+        rgba(240,240,240,0.25),
+        rgba(220,220,220,0.75),
+        rgba(240,240,240,1),
+        rgba(200,200,200,0.8)
+    );
+}
+.fl-theme-iphone .fl-button-black {
+    background-image: -moz-linear-gradient(center top,
+        rgba(106,106,106,0.25),
+        rgba(00,00,00,0.75),
+        rgba(130,130,130,1),
+        rgba(75,75,75,0.8)
+    );
+}
+.fl-theme-iphone .fl-button-green {
+    background-image: -moz-linear-gradient(center top,
+        rgba(120,190,130,0.2),
+        rgba(50,170,60,0.75),
+        rgba(120,190,130,1),
+        rgba(0,150,10,0.8)
+    );
+}
+.fl-theme-iphone .fl-button-blue {
+    background-image: -moz-linear-gradient(center top,
+        rgba(149, 184, 239,0.2),
+        rgba(35,109,229,0.75),
+        rgba(149, 184, 239,1),
+        rgba(75,148,244,0.8)
+    );
+}
+
+/***************************************/
+/* tabs 1: small general purpose content dividers */
+
+.fl-theme-iphone .fl-tabs li {
+    background-image: -moz-linear-gradient(
+        center top,
+        #9aafca,
+        #4b6b90,
+        #6d8cb3 50%,
+        #4b6b90 50%        
+    );                    
+    -moz-border-image: url(../images/themes/iphone/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -moz-background-origin: border;
+    -moz-background-clip: border;
+}
+
+.fl-theme-iphone .fl-tabs .fl-tabs-active {
+    background-image: -moz-linear-gradient(
+        center top,
+        rgba(149, 184, 239,1),
+        rgba(35,109,229,1),
+        rgba(149, 184, 239,1)  50%,
+        rgba(75,148,244,1) 50%
+    );
+}
+
+/* A simulation for a:active on the device, requires JS */
+/* since .fl-list is for mixed material lists, dont include them in these effects */
+.fl-theme-iphone [class*=fl-list]:not(.fl-list):not(.fl-grid) a:active,
+.fl-theme-iphone [class*=fl-list]:not(.fl-list):not(.fl-grid) a.fl-link-hilight {
+    background: url(../images/themes/iphone/listmenu_arrow.png) no-repeat right -25px,
+                -moz-linear-gradient(#4a94f4, #236de5);
+}
+
+.fl-theme-iphone [class*=fl-list]:not(.fl-list) a.fl-link-loading {
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+                -moz-linear-gradient(center top, #4a94f4, #236de5);
+}
+
+/****************************/
+/* Collapsing and expanding panels */
+.fl-theme-iphone .fl-container-autoHeading > *:first-child {
+    background: -moz-linear-gradient(center top, #999, #000);
+}
+.fl-theme-iphone .fl-container-autoHeading > *:first-child:focus {
+    background: -moz-linear-gradient(center top, #FFF, #CCC);
+}
+
+
+
+/*****************************************/
+/*                                      */
+/*                                      */
+/* Originates from fss-mobile-layout.css */
+/*                                      */
+/*                                      */
+/*****************************************/
+
+
+
+/***************************************/
+/**
+ * Basic overrides for fss layout
+ */
+
+.fl-icon {
+    -moz-border-radius: 5px;
+}
+
+/***************************************/
+/* iPhone general purpose gel buttons */
+/* effect is applied anywhere but the navbar, which has its own button look */
+
+.fl-button {
+    -moz-border-radius: 10px;
+}
+
+.fl-navbar .fl-button-inner {
+    -moz-background-origin: border;
+    -moz-background-clip: border;
+}
+
+
+/*************************************************/
+/* Navigation Bar
+ */
+.fl-navbar [class*=fl-button] {
+    -moz-border-radius: 5px;
+}
+
+.fl-navbar .fl-backButton {
+    -moz-border-radius: 0 5px 5px 0;  
+    -moz-background-origin: border;
+    -moz-background-clip: border;  
+}
+
+
+
+/*************************************************/
+/* iPhone tabs: general purpose dividers, or fixed to the bottom of the screen
+ */
+/*************************************************/
+
+.fl-tabs li:first-child {
+    -moz-border-radius-topleft:5px;
+    -moz-border-radius-bottomleft:5px;
+}
+.fl-tabs li:last-child {
+    -moz-border-radius-topright:5px;
+    -moz-border-radius-bottomright:5px;
+}
+
+/*************************************************/
+/* Glossy icons (and thumbnails?) */
+
+/* Glossiness for 30x30 icons */
+.fl-list-glossy > li a::before {
+    -moz-border-radius: 3px;    
+}
+
+/*************************************************/
+/* Content Panels */
+/*************************************************/
+[class*=fl-container] [class*=fl-list] > li:first-child,
+[class*=fl-container] [class*=fl-list] > li:first-child a {
+    -moz-border-radius-topleft: 8px;
+    -moz-border-radius-topright: 8px;    
+}
+
+[class*=fl-container] [class*=fl-list] > li:last-child,
+[class*=fl-container] [class*=fl-list] > li:last-child a {
+    -moz-border-radius-bottomleft:8px;
+    -moz-border-radius-bottomright:8px;    
+}
+
+[class*=fl-container] [class*=fl-list]:not(.fl-thumbnails-expanded) > li a .fl-icon {
+    -moz-border-radius-bottomleft:8px;
+    -moz-border-radius-topleft:8px;    
+}
+
+[class*=fl-container] .fl-list-thumbnails:not(.fl-thumbnails-expanded) > li,
+[class*=fl-container] .fl-list-thumbnails:not(.fl-thumbnails-expanded) > li a {
+    -moz-border-radius: 8px;
+}
+/* Panel Auto Headings */
+/* The first element found becomes the "heading" */
+.fl-container-autoHeading > *:first-child {
+       -moz-border-radius-topleft: 8px;
+       -moz-border-radius-topright: 8px;
+}
+/* The last element found becomes the "content" - list or otherwise */
+.fl-container-autoHeading > *:last-child {
+       -moz-border-radius:0px;
+       -moz-border-radius-bottomleft:8px;
+       -moz-border-radius-bottomright:8px;
+}
+.fl-container-autoHeading [class*=fl-list] > li:first-child,
+.fl-container-autoHeading [class*=fl-list] > li:first-child a {
+       -moz-border-radius:0;
+}
+.fl-container-autoHeading [class*=fl-list] > li:first-child:last-child,
+.fl-container-autoHeading [class*=fl-list] > li:first-child:last-child a {
+       -moz-border-radius-bottomleft:8px;
+       -moz-border-radius-bottomright:8px;
+}
+
+/* Collapsing and expanding panels */
+.fl-container-collapsable {
+       -moz-border-radius:8px;
+}
diff --git a/docs/themes/mobile/password_reminder.tmpl.php b/docs/themes/mobile/password_reminder.tmpl.php
new file mode 100644 (file)
index 0000000..9979edb
--- /dev/null
@@ -0,0 +1,28 @@
+<?php 
+global $onload;
+$onload = 'document.form.form_email.focus();';
+
+require(AT_INCLUDE_PATH.'header.inc.php'); 
+?>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+       <input type="hidden" name="form_password_reminder" value="true" />
+       <div class="input-form" style="width: 90%;">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('password_reminder'); ?></legend>
+               <div class="row">
+                       <?php echo _AT('password_blurb'); ?>
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email_address'); ?></label><br />
+                       <input type="text" name="form_email" id="email" size="40" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" /> <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
+               </div>
+       </fieldset>
+       </div>
+</form>
+
+<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index ce930cc..fac655a 100644 (file)
@@ -1,9 +1,343 @@
-\r
-Theme:         1.6.4 Mobile Theme\r
-Date:          December 2009\r
-\r
-\r
-Installing:     See section "Installing a New Theme" in the themes_readme.txt file located in the themes/ top directory.\r
-\r
-Licence:       Falls under the GPL agreement.  See http://www.gnu.org/copyleft/gpl.html.\r
-       
\ No newline at end of file
+******************************************************************************************
+Theme:         1.6.4 Mobile Theme
+Date:          August 2011
+******************************************************************************************
+
+
+Installing:     See section "Installing a New Theme" in the themes_readme.txt file located in the themes/ top directory.
+Licence:       Falls under the GPL agreement.  See http://www.gnu.org/copyleft/gpl.html.
+
+==============================================================================
+What's new: 
+==============================================================================
+
+/mobile.css 
+* style for android, iphone, & ipod rolled into one stylesheet
+* improved subnavigation and in-course navigation
+
+/tablet.css 
+* new style for tablet devices, beginning with -webkit browsers
+* generic CSS used to broaden browser support
+
+include/header.tmpl.php
+* accessibility: increased support for ARIA roles that Safari recognizes. Note: ARIA roles create HTML validation errors.
+
+==================================================================================
+Known Issues / More work needed
+==================================================================================
+
+why isn't simplified-desktop in svn? 
+
+Outstanding templates to be created: 
+* see "TEMPLATES - CREATED & OUTSTANDING" for a list of my progress &  "Omitted from mobile/" for a list of work that needs to be done. 
+Towards a simplified desktop theme: 
+* develop a desktop theme based on tablet.css (harder) 
+* develop a desktop theme based on mobile.css (easier) & do a final update to ensure generic CSS is used
+** update to -moz rules
+* erase commented out styles from mobile.css and tablet.css and re-order where necessary
+
+Simplify or remove this rule in mobile.css and tablet.css
+* navigation-bar-button-content
+
+Tablet bug? 
+In Firefox, the "Home" and "Previous/Next" buttons are the wrong height. Test on the tablet
+then see if it can be reproduced there before fixing. 
+
+Aesthetic improvements, mobile: 
+* Resume, Previous, Next on mobile should highlight as a block (outstanding)
+* on activation should highlight as a block (done-AUG27) 
+* the Subnavigation div should highlight as a block (done-AUG27)
+* Instructor user: (done-AUG27) /docs/mods/_standard/statistics/course_stats.php - (template now includes graph)
+
+
+* "0004796: Student user's Preferences template won't display"
+** see: http://atutor.ca/atutor/mantis/view.php?id=4796
+** see: http://atutor.ca/atutor/mantis/view.php?id=4679
+
+
+Mobile FSS 
+* "Activation hightlighting is visible on the desktop but not the on the mobile device"
+** see: http://issues.fluidproject.org/browse/FLUID-4313
+** both arrows and background color don't highlight.
+** affects .fl-lists, including:
+*** the "Navigation" menus on mobiles and tablets after a link is highlighted 
+*** docs/users/browse.php in mobile and tablets
+
+Mark McLaren's moz.css
+https://github.com/fluid-project/infusion/commit/25ad6755ef78347b414d60bd4037a0f197f9d09d#diff-7
+==================================================================================
+Omitted from mobile/
+==================================================================================
+Administrator user: 
+*Patcher 
+*/docs/mods/_core/cats_categories/admin/course_categories.php
+*/docs/mods/_core/enrolment/admin/privileges.php 
+*/docs/mods/_core/modules/install_modules.php
+*/docs/mods/_core/languages/language_editor.php
+
+Instructor user: 
+*/docs/mods/_standard/assignments/add_assignment.php
+*Course Tools
+*/docs/mods/_core/enrolment/create_course_list.php
+*/docs/mods/_core/enrolment/privileges.php
+*mods/_core/file_manager/index.php
+*file manager -- removed for mobile 
+*reading list
+*groups
+*gradebook
+*glossary
+** /docs/mods/_core/glossary/tools/index.php ** NOT DONE
+** docs/mods/_core/glossary/tools/add.php ** DONE - August 31st
+*patcher
+*student tools
+
+===================================================================================================
+Accessibility notes, features, & validation issues 
+===================================================================================================
+*Newer versions of iPods, iPads, & iPhones have limited support for WAI-ARIA. I deployed the roles that were supported. 
+VoiceOver users can enable or disable speaking, for example, of various WAI-ARIA roles. Here is Apple's documentation:
+ http://developer.apple.com/library/safari/#documentation/appleapplications/reference/SafariHTMLRef/Articles/AccessibilityRoles.html
+
+WCAG AA
+I primarily used WCAG to guide the evolution of content generated from the header and footer. 
+Below are Success Criteria that apply to my work, and I have listed criteria that don't pass
+ or that may need more attention. Further Success Criteria apply to the LMS but would depend on, 
+for example, course content used.  I checked for WCAG as a part of my AChecker workflow 
+(to WCAG AA) along with validating markup, and manually on the following capstone pages: 
+**
+
+Applicable Success Criteria 
+1.1.1 Non-text Content***
+1.3.1 Info and Relationships 
+       Note: should fieldset/legends and onkeydown be added to these pages?
+       /docs/mods/_core/users/users.php 
+       /docs/mods/_core/users/instructor_requests.php
+       /docs/mods/_core/users/master_list.php 
+       /docs/mods/_core/users/admins/index.php 
+       /docs/mods/_core/users/admins/log.php 
+       /docs/mods/_core/courses/admin/courses.php 
+       /docs/mods/_standard/forums/admin/forums.php 
+       /docs/mods/_core/courses/admin/default_mods.php 
+       /docs/mods/_core/modules/index.php 
+       /docs/mods/_standard/rss_feeds/index.php 
+       /docs/mods/_standard/announcements/index.php
+       /docs/mods/_standard/assignments/index_instructor.php
+       /docs/mods/_core/backups/index.php
+       /docs/mods/_standard/chat/manage/index.php
+       /docs/mods/_core/content/index.php 
+       /docs/mods/_standard/tracker/tools/page_student_stats.php
+       /docs/mods/_standard/forums/index.php
+       /docs/mods/_standard/faq/index_instructor.php
+       /docs/mods/_standard/polls/tools/index.php
+
+1.3.2 Meaningful Sequence
+Mobile - passes, but Tablet - fails. Logged into a course as a student user, the DOM order should match the visual order.
+I have listed this as an issue.  
+
+1.3.3 Sensory Characteristics
+1.4.3 Contrast (Minimum)
+1.4.4 Resize text
+-- Applies but unsure how to test using the zoom feature (i.e. to what proportion it magnifies to). 
+-- Increasing text size with finger gestures is disabled, but using Apple's zoom feature, text appears readable.
+
+2.1.1 Keyboard
+**Mobile - passes, but Tablet - fails (Navigation button). I have listed this as an issue. 
+2.1.2 No Keyboard Trap
+2.4.1 Bypass Blocks
+**Note: This passes for both mobile & tablet because heading groupings are used at the beginning of content. 
+**Also, skip-links are working with VoiceOver now on tablet.
+2.4.3 Focus Order
+2.4.4 Link Purpose (In Context)
+2.4.5 Multiple Ways
+2.4.6 Headings and Labels
+2.4.7 Focus Visible
+3.1.1 Language of Page
+3.2.1 On Focus
+**Is this violated by the pop-up "guide" button in the mobile and tablet devices? 
+
+3.2.3 Consistent Navigation
+3.2.4 Consistent Identification
+3.3.2 Labels or Instructions
+3.3.3 Error Suggestion - already handled 
+4.1.1 Parsing, 4.1.2 Name, Role, Value
+
+==============================================================================
+TEMPLATES - CREATED & OUTSTANDING
+==============================================================================
+ADMINISTRATORS: MOBILE -------------------------------------------------------
+
+NOTE there are 4 errors in HTML validator due to using an ARIA role. 
+
+[ADMIN-HOME] 
+1. /docs/admin/index.php -  ****  DONE / WCAG AA / Valid HTML
+2. /docs/mods/_core/users/admins/my_edit.php  ****  DONE / WCAG AA / Valid HTML
+3. /docs/mods/_core/users/admins/my_password.php  ****  DONE / WCAG AA / Valid HTML
+
+[USERS]
+1.  /docs/mods/_core/users/user_enrollment.php **** DONE / WCAG AA / Valid HTML
+2.  /docs/mods/_core/users/password_user.php **** DONE / WCAG AA / Valid HTML
+3.  /docs/mods/_core/users/create_user.php **** DONE / WCAG AA / Valid HTML
+4.  /docs/mods/_core/users/users.php **** DONE / WCAG AA / Valid HTML
+5.  /docs/mods/_core/users/instructor_requests.php **** DONE / WCAG AA / Valid HTML
+6.  /docs/mods/_core/users/master_list.php **** DONE / WCAG AA / Valid HTML (note: lacks fieldset, added onkeydown)
+7.  /docs/mods/_core/users/admin_email.php **** DONE / WCAG AA / Valid HTML  
+8.  /docs/mods/_core/users/admins/index.php **** DONE / WCAG AA / Valid HTML  (note: lacks fieldset, added onkeydown)
+9.  /docs/mods/_core/users/admins/edit.php **** DONE / WCAG AA / Valid HTML  
+10. /docs/mods/_core/users/admins/password.php **** DONE / WCAG AA / Valid HTML 
+11. /docs/mods/_core/users/admins/create.php **** DONE / WCAG AA / Valid HTML
+12. /docs/mods/_core/users/admins/log.php **** DONE / WCAG AA / Valid HTML
+13. /docs/mods/_core/users/admins/reset_log.php  **** DONE / WCAG AA / Valid HTML  
+14. /docs/mods/_core/users/edit_user.php?id=4 **** DONE / WCAG AA / Valid HTML
+
+[COURSES]
+1.  /docs/mods/_core/courses/admin/courses.php **** DONE / WCAG AA / Valid HTML (note: lacks fieldset, added onkeydown)
+2.  /docs/mods/_core/properties/admin/edit_course.php *** DONE (Linearizes)
+3.  /docs/mods/_standard/forums/admin/forums.php ****DONE HTML (note: lacks fieldset, added onkeydown)
+4.  /docs/mods/_standard/forums/admin/forum_add.php **** DONE / WCAG AA / Valid HTML
+5.  /docs/mods/_standard/forums/admin/forum_edit.php **** DONE / WCAG AA / Valid HTML
+6.  /docs/mods/_core/courses/admin/create_course.php *** DONE (Linearizes)
+7.  /docs/mods/_core/enrolment/admin/index.php3 ****  DONE / WCAG AA / Valid HTML
+8.  /docs/mods/_core/enrolment/admin/privileges.php  **** NOT DONE NEEDS TEMPLATING 
+9.  /docs/mods/_core/courses/admin/default_mods.php *** DONE / WCAG AA / Valid HTML - should not be a part of mobile.
+10. /docs/mods/_core/courses/admin/default_side.php **** DONE / HELP WCAG / Valid HTML
+11. /docs/mods/_standard/support_tools/scaffolds.php **** DONE / WCAG AA / Valid HTML
+12. /docs/mods/_core/cats_categories/admin/create_category.php  **** DONE /WCAG AA / Valid HTML
+13. /docs/mods/_core/cats_categories/admin/course_categories.php **** NOT DONE NEEDS TEMPLATING  (subcategories must display)
+
+[PATCHER] 
+DON'T INCLUDE IN MOBILE THEME. 
+http://localhost/GSoC2011/docs/mods/_standard/patcher/index_admin.php
+
+
+[PHOTOS] 
+1.  /docs/mods/_standard/photos/index_admin.php **** DONE / WCAG AA / Valid HTML 
+2.  /docs/mods/_standard/photos/admin/preferences.php  **** DONE / WCAG AA / Valid HTML 
+
+[MODULES] 
+1.  /docs/mods/_core/modules/index.php **** DONE / WCAG AA / Valid HTML (note: lacks fieldset, added onkeydown) -  ?
+2.  /docs/mods/_core/modules/install_modules.php  **** INSTALL MODULES SHOULD BE ENABLED FOR IPAD.CSS and NOT MOBILE -- TOO COMPLICATED 
+3.  /docs/mods/_core/modules/details.php **** DONE / WCAG AA / Valid HTML *** won't text wrap. 
+
+[SYSTEM PREFERENCES]
+1.  /docs/admin/config_edit.php  **** DONE / WCAG AA / Valid HTML 
+2.  /docs/mods/_core/languages/language_translate.php -- **** DONE, VALID WCAG, Valid HTML
+3.  /docs/mods/_core/languages/language_import.php  -- **** DONE, WCAG AA, VALID HTML 
+4.  /docs/mods/_core/languages/language.php -- **** DONE, VALID WCAG, HELP on HTML (CHANNEL BUG)  *** valid HTML except for fieldset
+5.  /docs/mods/_core/languages/language_editor.php -  **** NOT DONE NEEDS TEMPLATING 
+6.  /docs/mods/_standard/rss_feeds/preview.php
+7.  /docs/mods/_standard/rss_feeds/edit_feed.php **** DONE / WCAG AA / Valid HTML
+8.  /docs/mods/_standard/rss_feeds/index.php **** DONE / WCAG AA / Valid HTML (note: lacks fieldset, added onkeydown)
+9. /docs/mods/_standard/rss_feeds/add_feed.php **** DONE / WCAG AA / Valid HTML
+10. /docs/mods/_standard/tile_search/admin/module_setup.php **** DONE / HELP WCAG / HELP HTML (CHANNEL BUG)
+11. /docs/mods/_standard/google_search/admin/module_prefs.php **** DONE, VALID WCAG, HTML good (except for legacy <b> tag)
+12. /docs/mods/_standard/social/admin/delete_applications.php ==  already templated
+13. /docs/mods/_standard/social/index_admin.php **** DONE / WCAG AA / Valid HTML
+14. /docs/admin/cron_config.php **** DONE / WCAG AA / Valid HTML -- wrap bug. 
+15. /docs/admin/error_logging.php
+
+INSTRUCTORS: MOBILE ---------------------------------------------------------------------------------- 
+       --- course home ***DONE 
+       --- networking ***DONE 
+       --- glossary ***DONE 
+       --- mytracker ***DONE 
+       --- index ***DONE
+
+[INBOX]
+/docs/inbox/index.php **** DONE
+/docs/inbox/sent_messages.php **** DONE
+/docs/inbox/send_message.php **** DONE
+/docs/inbox/export.php **** DONE
+
+[ANNOUNCEMENTS] 
+/docs/mods/_standard/announcements/index.php **** DONE 
+/docs/mods/_standard/announcements/add_news.php **** DONE
+/docs/mods/_standard/announcements/edit_news.php **** DONE 
+
+[ASSIGNMENTS]
+/docs/mods/_standard/assignments/index_instructor.php **** DONE
+NOT DONE: /docs/mods/_standard/assignments/add_assignment.php **** NOT DONE, remove for mobile? 
+
+[BACKUPS]
+/docs/mods/_core/backups/index.php  **** DONE 
+/docs/mods/_core/backups/create.php **** DONE 
+/docs/mods/_core/backups/edit.php **** DONE 
+/docs/mods/_core/backups/upload.php **** DONE
+/docs/mods/_core/backups/delete.php **** DONE 
+
+[CHAT] 
+/docs/mods/_standard/chat/manage/index.php **** DONE 
+/docs/mods/_standard/chat/manage/start_transcript.php **** 
+
+[CONTENT]
+/docs/mods/_core/content/index.php  **** DONE 
+/docs/mods/_core/editor/edit_content_folder.php?cid=240 **** DONE 
+/docs/mods/_standard/tracker/tools/page_student_stats.php **** DONE 
+/docs/mods/_standard/tracker/tools/index.php  **** DONE 
+/docs/mods/_standard/tracker/tools/student_usage.php **** DONE 
+/docs/mods/_standard/tracker/tools/reset.php ***** DONE 
+/docs/mods/_core/editor/add_content.php **** NOT DONE, remove for mobile? 
+/docs/mods/_core/editor/edit_content.php? **** NOT DONE, remove for mobile? (link from /index.php should be removed)
+
+[COURSE EMAIL] 
+http://localhost/GSoC2011/docs/mods/_standard/course_email/course_email.php **** DONE 
+
+[ENROLLMENT]
+/docs/mods/_core/enrolment/export_course_list.php **** DONE 
+/docs/mods/_core/enrolment/import_course_list.php **** DONE 
+/docs/mods/_core/enrolment/create_course_list.php *** Remove for mobile
+/docs/mods/_core/enrolment/index.php **** DONE 
+/docs/mods/_core/enrolment/privileges.php   **** NOT DONE
+
+
+[FORUMS]
+/docs/mods/_standard/forums/edit_forum.php  *** DONE
+/docs/mods/_standard/forums/index.php  *** DONE
+/docs/mods/_standard/forums/add_forum.php  *** DONE
+/docs/mods/_standard/farchive/index_instructor.php  *** DONE
+
+
+[FAQ] 
+/docs/mods/_standard/faq/add_question.php  *** DONE
+/docs/mods/_standard/faq/index_instructor.php  *** DONE
+/docs/mods/_standard/faq/add_topic.php *** DONE  *** DONE
+/docs/mods/_standard/faq/edit_topic.php *** DONE  *** DONE
+/docs/mods/_standard/faq/edit_question.php  *** DONE
+
+
+[GLOSSARY]
+/docs/mods/_core/glossary/tools/add.php
+NOT DONE
+
+[GRADEBOOK]
+NOT DONE
+
+[GROUPS]
+/docs/mods/_core/groups/create.php
+/docs/mods/_core/groups/create_automatic.php
+/docs/mods/_core/groups/create_manual.php
+NOT DONE: - /docs/mods/_core/groups/index.php
+
+
+[POLLS] 
+/docs/mods/_standard/polls/tools/index.php  *** DONE
+/docs/mods/_standard/polls/tools/edit.php  *** DONE
+/docs/mods/_standard/polls/tools/add.php  *** DONE
+
+[PROPERTIES] 
+http://localhost/GSoC2011/docs/mods/_core/properties/course_properties.php  *** DONE
+
+[STUDENT TOOLS]
+NOT DONE: /docs/mods/_standard/student_tools/instructor_index.php 
+
+----------------------------------------------------------------------------------------
+TABLET TEMPLATE: STUDENT 
+*Note: there are 4 ARIA-errors! 
+
+/docs/login.php - WCAG AA / Valid HTML
+/docs/browse.php - WCAG AA / Valid HTML - 6 errors - ARIA-related
+/docs/users/profile.php  - WCAG AA / Valid HTML
+/docs/users/preferences.php - WCAG AA / Valid HTML
+/docs/users/index.php - WCAG AA / Problem with HTML validation, likely to do with the "Things Current" list
+/docs/registration.php
diff --git a/docs/themes/mobile/registration.tmpl.php b/docs/themes/mobile/registration.tmpl.php
new file mode 100644 (file)
index 0000000..1768060
--- /dev/null
@@ -0,0 +1,239 @@
+<?php 
+require(AT_INCLUDE_PATH.'header.inc.php'); 
+?>
+
+<script language="JavaScript" src="sha-1factory.js" type="text/javascript"></script>
+
+<script type="text/javascript">
+function encrypt_password()
+{
+       document.form.password_error.value = "";
+
+       err = verify_password(document.form.form_password1.value, document.form.form_password2.value);
+       
+       if (err.length > 0)
+       {
+               document.form.password_error.value = err;
+       }
+       else
+       {
+               document.form.form_password_hidden.value = hex_sha1(document.form.form_password1.value);
+               document.form.form_password1.value = "";
+               document.form.form_password2.value = "";
+       }
+}
+</script>
+
+<form method="post" action="<?php if (isset($_REQUEST["en_id"]) && $_REQUEST["en_id"] <> "") $getvars = '?en_id='. $_REQUEST["en_id"]; echo $_SERVER['PHP_SELF'] . $getvars; ?>" name="form">
+<?php global $languageManager, $_config, $moduleFactory; ?>
+<input name="ml" type="hidden" value="<?php echo $this->ml; ?>" />
+<input name="password_error" type="hidden" />
+<input type="hidden" name="form_password_hidden" value="" />
+<input type="hidden" name="registration_token" value="<?php echo sha1($_SESSION['token']); ?>" />
+
+<div class="input-form">
+<fieldset class="group_form"><legend class="group_form"><?php echo _AT('required_information'); ?></legend>
+
+<p><span class="required">*</span><?php echo _AT('required_field'); ?></p>
+       <?php if (!$_POST['member_id'] && defined('AT_MASTER_LIST') && AT_MASTER_LIST && !admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE)): ?>
+               <div class="row">
+                       <h3><?php echo _AT('account_authorization'); ?></h3>
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="student_id"><?php echo _AT('student_id'); ?></label><br />
+                       <input id="student_id" name="student_id" type="text" size="15" maxlength="15" value="<?php echo stripslashes(htmlspecialchars($_POST['student_id'])); ?>" /><br />
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="student_pin"><?php echo _AT('student_pin'); ?></label><br />
+                       <input id="student_pin" name="student_pin" type="password" size="15" maxlength="15" value="<?php echo stripslashes(htmlspecialchars($_POST['student_pin'])); ?>" /><br />
+               </div>
+       <?php endif; ?>
+
+       <?php 
+               $table_title="
+               <div class=\"row\">
+                       <h3>" . _AT('course_to_auto_enroll'). "</h3>
+                       <small>&middot; " ._AT('auto_enroll_msg')."</small>
+               </div>";
+               
+               require(AT_INCLUDE_PATH.'html/auto_enroll_list_courses.inc.php'); 
+       ?>
+       
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="login"><?php echo _AT('login_name'); ?></label><br />
+               <?php if ($_POST['member_id']) : ?>
+                               <span id="login"><?php echo stripslashes(htmlspecialchars($_POST['login'])); ?></span>
+                               <input name="member_id" type="hidden" value="<?php echo intval($_POST['member_id']); ?>" />
+                               <input name="login" type="hidden" value="<?php echo stripslashes(htmlspecialchars($_POST['login'])); ?>" />
+               <?php else: ?>
+                       <input id="login" name="login" type="text" maxlength="20" size="30" value="<?php echo stripslashes(htmlspecialchars($_POST['login'])); ?>" title="<?php echo _AT('login_name').':'._AT('contain_only'); ?>"/><br />
+                       <small>&middot; <?php echo _AT('contain_only'); ?><br />
+                                  &middot; <?php echo _AT('20_max_chars'); ?></small>
+               <?php endif; ?>
+       </div>
+
+       <?php if (!admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE) || !$_POST['member_id']): ?>
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="form_password1"><?php echo _AT('password'); ?></label><br />
+                       <input id="form_password1" name="form_password1" type="password" size="15" maxlength="15" title="<?php echo _AT('password').':'._AT('combination'); ?>"/><br />
+                       <small>&middot; <?php echo _AT('combination'); ?><br />
+                                  &middot; <?php echo _AT('15_max_chars'); ?></small>
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="form_password2"><?php echo _AT('password_again'); ?></label><br />
+                       <input id="form_password2" name="form_password2" type="password" size="15" maxlength="15" />
+               </div>
+       <?php endif; ?>
+
+       <?php if (isset($_config['use_captcha']) && $_config['use_captcha']==1 && !$this->no_captcha): ?>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
+               <label for="secret"><img src="<?php echo AT_INCLUDE_PATH; ?>securimage/securimage_show.php?sid=<?php echo md5(uniqid(time())); ?>" id="simage" align="left" /></label>
+               <a href="<?php echo AT_INCLUDE_PATH; ?>securimage/securimage_play.php" title="<?php echo _AT('audible_captcha'); ?>"><img src="<?php echo AT_INCLUDE_PATH; ?>securimage/images/audio_icon.gif" alt="<?php echo _AT('audible_captcha'); ?>" onclick="this.blur()" align="top" border="0"></a><br>
+               <a href="#" title="<?php echo _AT('refresh_image'); ?>" onclick="document.getElementById('simage').src = '<?php echo AT_INCLUDE_PATH; ?>securimage/securimage_show.php?sid=' + Math.random(); return false"><img src="<?php echo AT_INCLUDE_PATH; ?>securimage/images/refresh.gif" alt="<?php echo _AT('refresh_image'); ?>" onclick="this.blur()" align="bottom" border="0"></a>
+
+               <br /><br />
+               <label for="secret"><?php echo _AT('image_validation_text'); ?></label>
+               <input id="secret" name="secret" type="text" size="6" maxlength="6" value="" />
+               <br />
+               <small><?php echo _AT('image_validation_text2'); ?><br /></small>
+       </div>
+       <?php endif; ?>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email_address'); ?></label><br />
+               <input id="email" name="email" type="text" size="30" maxlength="50" value="<?php echo stripslashes(htmlspecialchars($_POST['email'])); ?>" />
+               <input type="checkbox" id="priv" name="private_email" value="1" <?php if ($_POST['private_email'] || !isset($_POST['submit'])) { echo 'checked="checked"'; } ?> /><label for="priv"><?php echo _AT('keep_email_private');?></label>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email2"><?php echo _AT('email_again'); ?></label><br />
+               <input id="email2" name="email2" type="text" size="30" maxlength="60" value="<?php echo stripslashes(htmlspecialchars($_POST['email2'])); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="first_name"><?php echo _AT('first_name'); ?></label><br />
+               <input id="first_name" name="first_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['first_name'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="second_name"><?php echo _AT('second_name'); ?></label><br />
+               <input id="second_name" name="second_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['second_name'])); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="last_name"><?php echo _AT('last_name'); ?></label><br />
+               <input id="last_name" name="last_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['last_name'])); ?>" />
+       </div>
+       
+       <?php if (admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE)): 
+                       if ($_POST['status'] == AT_STATUS_INSTRUCTOR) {
+                               $inst = ' checked="checked"';
+                       } else if ($_POST['status'] == AT_STATUS_STUDENT) {
+                               $stud = ' checked="checked"';
+                       }  else if ($_POST['status'] == AT_STATUS_DISABLED) {
+                               $disa = ' checked="checked"';
+                       } else {
+                               $uncon = ' checked="checked"';
+                       }?>
+                       <input type="hidden" name="id" value="<?php echo $_POST['member_id']; ?>" />
+                       <div class="row">
+                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('account_status'); ?><br />
+
+                               <input type="radio" name="status" value="0" id="disa" <?php echo $disa; ?> /><label for="disa"><?php echo _AT('disabled'); ?></label>
+                               <?php if (defined('AT_EMAIL_CONFIRMATION') && AT_EMAIL_CONFIRMATION): ?>
+                                       <input type="radio" name="status" value="1" id="uncon" <?php echo $uncon; ?> /><label for="uncon"><?php echo _AT('unconfirmed'); ?></label>
+                               <?php endif; ?>
+
+                               <input type="radio" name="status" value="2" id="stud" <?php echo $stud; ?> /><label for="stud"><?php echo _AT('student'); ?></label>
+
+                               <input type="radio" name="status" value="3" id="inst" <?php echo $inst; ?> /><label for="inst"><?php echo _AT('instructor'); ?></label>
+
+                               <input type="hidden" name="old_status" value="<?php echo $_POST['old_status']; ?>" />
+                       </div>
+       <?php endif; ?>
+</fieldset>
+<fieldset class="group_form"><legend class="group_form"><?php echo _AT('personal_information').' ('._AT('optional').')'; ?></legend>
+       <?php 
+       $mod = $moduleFactory->getModule('_standard/profile_pictures');
+       if (admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE) && $_POST['member_id'] && $mod->isEnabled() === TRUE): ?>
+               <div class="row">
+                       <?php echo _AT('picture'); ?><br/>
+                       <?php if (profile_image_exists($_POST['member_id'])): ?>
+                               <a href="get_profile_img.php?id=<?php echo $_POST['member_id'].SEP.'size=o'; ?>"><?php print_profile_img($_POST['member_id']); ?></a>
+                               <input type="checkbox" name="profile_pic_delete" value="1" id="profile_pic_delete" /><label for="profile_pic_delete"><?php echo _AT('delete'); ?></label>
+                       <?php else: ?>
+                               <?php echo _AT('none'); ?> <a href="mods/_standard/profile_pictures/admin/profile_picture.php?member_id=<?php echo $_POST['member_id']; ?>"><?php echo _AT('add'); ?></a>
+                       <?php endif; ?>
+               </div>
+       <?php endif; ?>
+
+       <?php if (admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE) && defined('AT_MASTER_LIST') && AT_MASTER_LIST): ?>
+               <input type="hidden" name="old_student_id" value="<?php echo $_POST['old_student_id']; ?>" />
+               <div class="row">
+                       <label for="student_id" value="student id"><?php echo _AT('student_id'); ?></label><br />
+                               <input type="text" id="student_id" name="student_id" value="<?php echo $_POST['student_id']; ?>" size="20" /><br />
+               </div>
+               <div class="row">
+                       <input type="checkbox" id="overwrite" name="overwrite" value="1" <?php if ($_POST['overwrite']) { echo 'checked="checked"'; } ?> /><label for="overwrite"><?php echo _AT('overwrite_master');?></label>
+               </div>
+
+       <?php endif; ?>
+
+       <div class="row">
+               <?php echo _AT('date_of_birth'); ?><br />
+               <label for="year"><?php echo _AT('year'); ?>: </label><input id="year" class="formfield" name="year" type="text" size="4" maxlength="4" value="<?php echo $_POST['year']; ?>" />  <label for="month"><?php echo _AT('month'); ?>: </label><input id="month" class="formfield" name="month" type="text" size="2" maxlength="2" value="<?php echo $_POST['month']; ?>" /> <label for="day"><?php echo _AT('day'); ?>: </label><input id="day" class="formfield" name="day" type="text" size="2" maxlength="2" value="<?php echo $_POST['day']; ?>" />
+       </div>
+
+       <div class="row">
+               <?php echo _AT('gender'); ?><br />
+               <input type="radio" name="gender" id="m" value="m" <?php if ($_POST['gender'] == 'm') { echo 'checked="checked"'; } ?> /><label for="m"><?php echo _AT('male'); ?></label> <input type="radio" value="f" name="gender" id="f" <?php if ($_POST['gender'] == 'f') { echo 'checked="checked"'; } ?> /><label for="f"><?php echo _AT('female'); ?></label>  <input type="radio" value="n" name="gender" id="ns" <?php if (($_POST['gender'] == 'n') || ($_POST['gender'] == '')) { echo 'checked="checked"'; } ?> /><label for="ns"><?php echo _AT('not_specified'); ?></label>
+       </div>
+
+       <div class="row">
+               <label for="address"><?php echo _AT('street_address'); ?></label><br />
+               <input id="address" name="address" size="40" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['address'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="postal"><?php echo _AT('postal_code'); ?></label><br />
+               <input id="postal" name="postal" size="7" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['postal'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="city"><?php echo _AT('city'); ?></label><br />
+               <input id="city" name="city" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['city'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="province"><?php echo _AT('province'); ?></label><br />
+               <input id="province" name="province" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['province'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="country"><?php echo _AT('country'); ?></label><br />
+               <input id="country" name="country" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['country'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="phone"><?php echo _AT('phone'); ?></label><br />
+               <input size="11" name="phone" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['phone'])); ?>" id="phone" />
+       </div>
+
+       <div class="row">
+               <label for="website"><?php echo _AT('web_site'); ?></label><br />
+               <input id="website" name="website" size="40" type="text" value="<?php if ($_POST['website'] == '') { echo 'http://'; } else { echo stripslashes(htmlspecialchars($_POST['website'])); } ?>" />
+       </div>
+</fieldset>
+       <div class="row buttons">
+               <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" onclick="encrypt_password()" class="button"/>
+               <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> "  class="button" />
+       </div>
+</div>
+</form>
+
+<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index a492d79..da3172d 100644 (file)
 ?>
 <?php print_paginator($this->page, $this->num_pages, 'search_friends='.$this->search_field, 1);  ?>
 
-<div class="input-form" style="float:right; width:34%;padding:1em;min-height:4.5em;">
+<div class="input-form">
        <div class="contentrow">
                <h3><?php echo _AT('search_for_friends'); ?></h3>
                <form action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'index_public.php');?>" method="POST" id="search_friends_form">
                        <label for="searchFriends" style="display:none;"><?php echo _AT('search'); ?></label>
-                       <input type="text" size="60" name="search_friends_<?php echo $rand;?>" id="search_friends" value="<?php echo $last_search; ?>" onkeyup="showResults(this.value, 'livesearch', '<?php echo AT_SOCIAL_BASENAME; ?>index_public.php')"/>
+                       <input type="text" size="40" name="search_friends_<?php echo $rand;?>" id="search_friends" value="<?php echo $last_search; ?>" onkeyup="showResults(this.value, 'livesearch', '<?php echo AT_SOCIAL_BASENAME; ?>index_public.php')"/>
                        <input type="submit" name="search" value="<?php echo _AT('search'); ?>">
                        <input type="hidden" name="rand_key" value="<?php echo $rand; ?>" />
                        
@@ -24,7 +24,7 @@
                </form>
        </div>
 </div>
-<div class="" style="float:left; width:59%">
+<div>
        <div class="headingbox"><h3><?php echo _AT('search_results'); ?></h3></div>
        <div class="contentbox">
        <?php 
@@ -43,8 +43,8 @@
        ?>
        <div class="contact_mini" >
                <div>
-                       <div style="float:left;"><?php echo printSocialProfileImg($id); ?></div>
-                       <div style="padding-left:0.5em; float:left;">
+                       <div ><?php echo printSocialProfileImg($id); ?></div>
+                       <div>
                                <?php 
                                        $member_obj = new Member($id);
                                        $profile = $member_obj->getAddress();
@@ -68,6 +68,6 @@
        </div>
        -->
 </div>
-
+</div>
 <div style="clear:both;"></div>
 <?php print_paginator($this->page, $this->num_pages, 'search_friends='.$this->search_field, 1);  ?>
diff --git a/docs/themes/mobile/tablet.css b/docs/themes/mobile/tablet.css
new file mode 100644 (file)
index 0000000..8366716
--- /dev/null
@@ -0,0 +1,2463 @@
+
+/************************************************************************************************/
+/* Style is optimized for tablets. Note that -webkit  and -moz properties create errors in the CSS validator. 
+Relative units for sizes are used unless it is a border. Classes beginning with ".fl-" override Mobile FSS,
+see the API @ http://wiki.fluidproject.org/display/fluid/Mobile+FSS+API  */
+/************************************************************************************************/
+
+
+html, body{
+       height: 100%;
+}
+               
+#main{
+       overflow-x: visible;
+}
+
+body,ul,li {
+       padding:0;
+       margin:0;
+       font-size: 18px;/*fix*/
+}
+
+
+#header{
+       width:100%;
+       line-height:1em;
+       padding-top: 158;
+       font-size:1.063em;
+       height: 3.2em;
+       background: #999; /*fallback*/
+       background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#999), to(black));
+       background: -moz-linear-gradient(#999, black);
+}
+
+
+.fl-theme-iphone .fl-navbar{
+       border: none;
+       border-top: none;
+       
+}
+
+.fl-navbar a{
+       font-size: 0.969em;
+}
+.fl-navbar .fl-tabs{
+       padding-top: .3em;
+       padding-bottom: .3em;
+       border-top: 1px solid black;
+       border-bottom: .5px solid black;
+       background-color: #4b6b90; 
+    height: 2em;   
+    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#999), to(black));
+    background: -moz-linear-gradient(#999, black);
+}
+
+#navigation-contentwrapper{
+       position: relative;
+       height: 2.5em; /*requires a height, do not remove */    
+       top: 1em;
+       
+}
+
+#contentwrapper{
+       margin-bottom: 3em;
+       padding: .313em;
+}
+#wrapper{
+       width:100%;
+       overflow: auto;
+       min-height: 100%;
+       background-image: url(images/idi_background.png);
+
+
+       
+}
+#header-section-title {
+       width: 100%;
+       position: relative;
+       color: white;
+       font-size: 0.938em;
+       height: .3em;
+       
+}
+
+#site-name, h1#section-title{
+       width: 100%;
+       color: white;
+       text-shadow: none;
+       
+}
+
+/************************************************************************************************/
+/* "Navigation" button, also this CSS creates a button that looks exactly like a Mobile FSS tab.*/
+/************************************************************************************************/
+
+
+.navigation-bar-button-content{
+       border-width:5px;
+    -webkit-border-radius: 5px;
+    -moz-border-radius: 5px;
+       border-radius: 5px;
+       font-size: 18px;/*keep this in px*/
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+       -webkit-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+       -moz-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -webkit-border-left-image: none;
+    -moz-border-left-image: none;
+    -webkit-background-origin: border;
+    -moz-background-origin: border;
+    -webkit-background-clip: border;
+       -moz-background-clip: border;
+}
+
+.fl-theme-iphone .topnavlistcontainer .topnavlist-link {/*makes the navigation button link white*/
+       color: white;
+       text-decoration: none;
+       font-weight: bold;
+}
+
+.fl-theme-iphone .topnavlistcontainer .topnavlist-link-highlight{/*makes the navigation button link highlight*/
+       color: #4c96f4;
+       text-decoration: none;
+       font-weight: bold;
+}
+
+.fl-theme-iphone .fl-tabs li{
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    ); 
+}
+/************************************************************************************************/
+/*fl-tabs for the "home" and "guide" and sequence links*/
+/************************************************************************************************/
+#home-guide{
+       padding-top: 0;
+       margin-top: 0;
+       padding-right: .313em;
+       position: relative;
+       left: 0em;
+       float: left;    
+       top: 0;
+}
+
+
+ul.home-guide li a:hover, ul.home-guide li a:focus, ul.home-guide li a:active,
+ul.home-guide li.back a:hover, ul.home-guide li.back a:focus, ul.home-guide li.back a:active,
+ul.home-guide li.forward a:hover, ul.home-guide li.forward a:focus, ul.home-guide li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+/************************************************************************************************/
+/* main body attributes */
+/************************************************************************************************/
+p {
+    text-align: left;
+    line-height: 150%;
+       font-size: 1em;
+       padding:.75em 0;
+       margin: 0 auto;
+}
+
+p a {
+    text-decoration: underline;
+}
+
+p a:visited {
+       color: #005689;
+       color: #4c96f4;
+    background-color: transparent;
+}
+p a:active {
+       color: #005689;
+       color: #4c96f4;
+    background-color: transparent;
+}
+
+
+h1, h2, h3, h4, h5, h6 {
+    color: #4C566C;
+    clear: right;
+    font: 100% Helvetica, Arial, sans-serif;
+       font-weight: bold;
+    margin: 0;
+       padding: 0;
+}
+
+h1 {
+  font-size: 160%;
+       color: #FFF;
+}
+h2 {
+    font-size: 150%;
+}
+h2.page-title{
+       padding-top: .313em;
+}
+
+
+#subnavbacktopage{
+       padding: .313em;
+       float: left;
+       
+}
+
+h3 {
+       padding: 0;
+}
+h3.browse-courses{
+       font-size: 90%;
+       text-decoration: none;
+       clear: none;
+       display: inline;
+}
+
+
+h3 a {
+    font-size: 100%;
+}
+/************************************************************************************************/
+/* Highlighting outside of the header and footer */
+/************************************************************************************************/
+link highlighting -- add when the header and footer is done 
+.fl-theme-iphone a:not(.fl-tabs){
+        color: #4c96f4;
+}
+
+/************************************************************************************************/
+/* Preferences tabs */
+/************************************************************************************************/
+.etabbed-list-container        {
+       padding:0;
+       margin: 0;
+       width:70%;
+       clear: left;
+       height: 3em;
+}
+
+.prefs_buttontab {
+       padding:0;
+       margin: 0;
+       white-space: nowrap;
+}
+.prefs_tab{
+       padding:0.5em 0.3em 0;
+       margin: 0;
+       white-space: nowrap;
+    display: inline;
+}
+
+.prefs_tab_selected{  
+       padding:0.7em 0.3em 0;
+       margin: 0;
+       margin: 0;
+       font-weight:bold;
+       text-align:center;
+       white-space: nowrap;
+    display: inline;
+}
+
+/************************************************************************************************/
+/* link attributes */
+/************************************************************************************************/
+
+/* link attributes */
+a:link {
+       color: #4C96F4;
+       color: #005689;
+       text-decoration: underline;
+}
+a:hover, a:visited, a:focus {
+       color: #4C96F4;
+       text-decoration: underline;
+}
+.fl-list-menu a, .fl-list-menu a:visited{ /*may need to be removed when FLUID-4313 is fixed*/
+       color: black;
+}
+
+/* main submit button */
+.button {
+       background-color: #808080;
+       color: black;
+       text-align: center;
+       -webkit-border-radius:3px;
+       -moz-border-radius:3px;
+       border-radius: 3px;
+       padding-top: 0.313em;
+       padding-bottom: 0.313em;
+}
+
+
+
+.button:focus {
+       border:1px solid #A50707;
+       background-color:  #FFDAB9;     
+}
+/* small submit button at top */
+.button2 {
+       font-family: Helvetica,sans-serif;
+       background-color: #E9F4F3;
+
+}
+.button2:focus {
+       background-color: #E9F4F3;
+       border:  #ACCFCC  solid 1px;
+}
+
+/* Editor box large */
+.editorlargebox {
+       font-family: Helvetica,sans-serif;
+       background-color: #E9F4F3;
+       margin-left:1em;
+       padding-left: .2em;
+       padding-right: .5em;
+       padding-top: .5em;
+       padding-bottom: .4em;
+       border: 1px #ACCFCC solid;
+}
+
+/* edit content tabs */
+.buttontab {
+       background-color: #E6E6E6;
+       font-weight: 500;
+       border:0;
+       padding-left: .188em;
+       padding-right: .188em;
+       padding-top: .188em;
+
+}
+
+.tab {
+       color: black;
+       background-color: #E6E6E6;
+       border-top: 1px #B8AE9C solid;
+       border-left: 1px #B8AE9C solid;
+       border-right: 1px #B8AE9C solid;
+       text-decoration: none;
+       text-align: center;
+       font-weight: bold;
+
+       
+}
+.buttontab selected {
+       font-family: Helvetica, Arial, Helvetica, sans-serif;
+       background-color: #6F7172;
+       font-weight: 600;
+       border:0;
+       padding-left: .188em;
+       padding-right: .188em;
+       padding-top: .188em;
+
+}
+td.selected{
+       font-family: Helvetica, Arial, Helvetica, sans-serif;
+       font-weight: 600;
+       text-decoration: none;
+       text-align: center;
+       background-color: white;
+       border-top: 1px #B8AE9C solid;
+       border-left: 1px #B8AE9C solid;
+       border-right: 1px #B8AE9C solid;
+}
+
+.tab a:link, .etab a:visited {
+       color: #4C566C;
+       background-color: white;
+}
+
+/* the side menu */
+td.dropdown-heading {
+       background-color: #DBFDD4;
+       color: #595241;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-top: 1px solid #ECFEEA;
+}
+
+/* the side menu content */
+td.dropdown {
+       padding: 0.125em;
+       background-color: white;
+       color: black;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-bottom: 1px solid #ECFEEA;
+       font-weight: normal;
+}
+td.dropdown a, td.dropdown a:visited  {
+       color: #4C566C;
+       text-decoration: none;
+}
+td.dropdown a:hover {
+       color: #595241;
+       text-decoration: underline;
+}
+
+/* added for 1.4.2: */
+.results {
+       padding-left: 1.25em;
+}
+
+h5.search-results {
+       padding: 0.063em;
+       margin-bottom: 0.313em;
+       margin-top: 1em;
+       padding-top: 3em;
+       margin-left: 0.313em;
+}
+
+.test-box {
+       background-color: #F7F3ED;
+       color: #595241;
+       border-left: 1px solid #595241;
+       border-right: 1px solid #595241;
+       border-top: 1px solid #595241;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+/*preferences*/
+
+.input-form table.tabbed-table {
+       width: 100%;
+       border:thin black solid;
+}
+table.tabbed-table th#left-empty-tab {
+       background-color: transparent;
+       width: 0.938em;
+       border-bottom: 1px solid #B8AE9C;
+}
+table.tabbed-table th#right-empty-tab {
+       text-align: right;
+       background-color: transparent;
+       border-bottom: 1px solid #B8AE9C;
+       width: 25em;
+       padding-right: 0.313em;
+}
+table.tabbed-table th#right-empty-tab a {
+       text-decoration: underline;
+}
+table.tabbed-table th.tab-spacer {
+       background-color: transparent;
+       width: 0.313em;
+       border-bottom: 1px solid #B8AE9C;
+}
+
+table.tabbed-table th.tab {
+       padding-top: 0.125em;
+       padding-bottom: 0.125em;
+       width: 6.875em;
+       background-color: #E9F4F3;
+       border-bottom: 1px solid #B8AE9C;
+       border-left: 1px solid #B8AE9C;
+       border-top: 1px solid #B8AE9C;
+       border-right: 1px solid #B8AE9C;
+}
+table.tabbed-table th.tab:hover {
+       background-color: #ACCFCC;
+}
+
+table.tabbed-table th.tab a:focus {
+       color: white;
+}
+table.tabbed-table th.selected {
+       padding-top: 0.125em;
+       padding-bottom: 0.125em;
+       width: 6.875em;
+       background-color: #ACCFCC;
+       border-left: 1px solid #B8AE9C;
+       border-top: 1px solid #B8AE9C;
+       border-right: 1px solid #B8AE9C;
+}
+
+table.tabbed-table a, table.tabbed-table a:visited, table.tabbed-table a:hover {
+       /* color: black;*/
+       color: #4C566C;
+       text-decoration: none;
+}
+
+
+.preference-buttons-container{
+       background-color: red;
+       height: 2.5em;
+       width: 100%;
+       text-align: center;
+}
+
+div.preference-buttons-container li{
+       display: inline; 
+       float: right;
+}
+
+.prefs_tab_selected{
+       font-style: italic;
+       width: 10%;
+}
+.prefs_tab{
+       width: 10%;
+}
+
+.etabbed-table{
+       margin: 0 auto;
+}
+#previewText{
+       font-family: monospace;
+       border: 2px solid rgb(0, 0, 0); 
+       padding: 2em;
+       width: 80%; 
+       color: rgb(255, 255, 255);
+       background-color: rgb(0, 0, 0);
+}
+#previewArea{;
+       padding: 0em;
+       border-bottom-width: 0; 
+       margin-left: auto; 
+       margin-right: auto; 
+       font-weight: normal; 
+       width: 70%;
+       float:left;
+       clear:right;
+}
+#display-settings-preview{
+       width:90%;
+       height:20em; 
+       margin: 0 auto;
+}
+#feedback{
+       width: 90%;
+}
+#defaultfontsize-wrapper{
+       width:90%; 
+}
+
+/* end of preferences */
+
+a#my-start-page {
+       padding: 0.125em;
+       padding-left:  0.938em;
+       background-repeat: no-repeat;
+       background-position: 0.125em 0.313em;
+}
+
+a#back-to {
+       padding-left: 1.25em;
+       background-image: url(images/back.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0;
+}
+
+
+#breadcrumbs-container{
+       background-color: #4d4d4d;
+       position: relative;
+}
+
+#breadcrumbs{
+font-size: 80%;
+    margin-top: .7em;
+text-align: left;
+}
+h1 {
+       margin-bottom: 0.313em; 
+}
+
+
+div#help {
+       border-left: 1px solid black;
+       border-right: 1px solid black;
+       border-bottom: 1px solid black;
+       padding-left: 0.313em;
+       padding-right: 0.313em;
+       padding-bottom: 0.313em;
+       background-color: #F7F3ED;
+       margin-left: 0.313em;
+       margin-right: 0.313em;
+       font-size: small;
+}
+
+h3#help-title {
+       margin-left: 0.313em;
+       margin-right: 0.313em;
+       border-left: 1px solid black;
+       border-right: 1px solid black;
+       padding: 0.063em;
+       background-color: #F7F3ED;
+}
+.line {
+       border-bottom: 1px solid black;
+}
+div#help p {
+       padding: 0;
+       margin: 0;
+}
+
+div#toctoggle {
+       float: left;
+       padding-left: 0.625em;
+}
+
+h1#section-title {
+       font-size: 100%;
+       position: absolute;
+       top: 0em;
+       text-align: center;
+       white-space:nowrap;
+       display: inline;
+       
+}
+
+/**********************************************************************/
+/*FOOTER*/
+/**********************************************************************/
+
+#footer{
+       background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#999), to(black));
+       background: -moz-linear-gradient(#999, black);
+       height:2.3em;
+       margin-top: -2.3em;
+       position: relative;
+       clear: both;
+       
+}
+div#footer-links{
+       margin: 0 auto;
+       font-size: .938em;
+}
+
+ul.footer-links-tabs li a:hover, ul.footer-links-tabs li a:focus, ul.footer-links-tabs li a:active,
+ul.footer-links-tabs li.back a:hover, ul.footer-links-tabs li.back a:focus, ul.footer-links-tabs li.back a:active,
+ul.footer-links-tabs li.forward a:hover, ul.footer-links-tabs li.forward a:focus, ul.footer-links-tabs li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+
+div#footer-links a:link, div#footer-links a:visited {
+       text-decoration:none;
+}
+
+#jumpmenu:focus{
+       background-color:#F6EAD6;
+}
+#jumpmenu{
+       margin: 0 auto;
+}
+
+a#editor-link {
+       background-color: #F7F3ED;
+       padding-top: 0.063em;
+       padding-bottom: 0.063em;
+       padding-left:  0.938em;
+       padding-right: 0.5em;
+       border: 1px solid #cccccc;
+       font-weight: normal;
+       text-decoration: none;
+}
+
+a#editor-link:hover {
+       background-color: #F7F3ED;
+       border: 1px solid #B8AE9C;
+}
+
+a#editor-link.off {
+       background-image: url(images/pen.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0.125em;
+}
+a#editor-link.on {
+       background-image: url(images/pen2.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0.125em;
+}
+
+
+/* for data tables */
+.table-surround {
+       border: #A9ADB0 1px solid;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
+       
+}
+
+table.data {
+       margin:0;
+       width:100%;
+       padding: 0;
+       color: #4C566C;
+       font-size: .8em;
+       text-align: left;
+       background-color: transparent;
+} 
+/* contains the headings */
+table.data th {
+
+       padding: 0.188em;
+}
+
+table.data th a {
+       color: #595241;
+       background-image: url('../default/images/sort.gif');
+       background-repeat: no-repeat;
+       background-position: right;
+}
+
+/*headings text*/
+table.data tbody th {
+       text-align: left;
+
+}
+
+table.data td {
+       padding: 0.188em;
+       color: black;
+       font-size: .875em;
+       font-style: normal;
+}
+table.data td a:link, a:visited{
+       /*color: black;*/
+       color: #4C566C
+}
+
+/*should table.data tbody tr:hover  and table.data tbody tr.selected  highlighting
+be improved to sync with Mobile FSS highlighting */
+table.data tbody tr:hover {
+       background-color: #efefef;
+       cursor: pointer;
+}
+
+table.data tbody tr.selected {
+       background-color: #E9F4F3;
+       cursor: auto;
+       border: 5px solid #E9F4F3;
+}
+
+table.data tfoot {
+       background-color: #F7F3ED;
+}
+
+table.data tfoot tr:first-child td {
+       padding: 0.313em;
+       background-image: url('images/arrow_ltr.gif');
+       background-repeat: no-repeat;
+       background-position: .25em 0.313em;
+}
+
+table.data.static tfoot td, table.data.static tfoot tr:first-child td {
+       padding: 0.313em;
+       background-image: none;
+       padding-left: 0;
+
+}
+/* add borders to row in Required Information, Personal Information*/
+.row{
+       padding:.375em 0;
+       font-size: 0.938em;
+}
+#last-row, .row-buttons, #last-row1, .row-blurb{
+       border: none;
+}
+#browse-courses-table{
+       font-size: .875em;
+}
+
+
+/*buttons*/
+table.data tfoot input {
+       background-color: #efefef;
+       font-weight: normal;
+}
+table.data tfoot input:focus {
+       background-color: #FFDAB9;
+}
+
+
+/* used for static tables with no form elements: */
+table.data.static tbody tr:hover {
+       background-color: transparent;
+       cursor: auto;
+}
+
+/* course browser: */
+div#browse {
+       margin-left: auto; 
+       margin-right: auto; 
+       width: 80%;
+}
+
+div.browse-selected {
+       background-image: url('images/side_arrow.gif'); 
+       background-repeat: no-repeat; 
+       padding-left: 0.563em; 
+       background-position: center left;
+}
+
+div.browse-unselected {
+       padding-left: 0.563em; 
+}
+
+ul.browse-list {
+       list-style: none;
+       padding:0;
+}
+
+/* feedback /errors */
+div#error {
+       width: 89%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #DD0000;
+       padding: 0.313em;
+       background-color: #F4DCDC;
+       color: #A50707;
+       background-color: #F4DCDC;
+       padding-left: 1.563em;
+       font-weight: bold;
+       -webkit-border-radius:5px;
+       -moz-border-radius: 5px;
+       -border-radius: 5px;
+}
+div#error h4 {
+       color: black;
+       margin-left: 0;
+}
+
+div#error ul, div#feedback ul, div#help ul {
+       position: relative;
+       list-style: none;
+       margin-left: 0;
+       padding-left: 0;
+}
+
+div#error ul li{
+       margin-top: 0.313em;
+}
+
+div#feedback, div#info {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top: 0.313em;
+       margin-bottom: 0.313em;
+       padding: 0.313em;
+       font-family: Helvetica, Arial, sans-serif;
+       -webkit-border-radius:5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+       border: 1px solid #17B506;
+       background-color: #E7EFD0;
+       color: #3f4559;
+       font-size: 90%;
+       z-index: -1;
+}
+div#feedback li, div#info li, div#error li{
+       color: #4C566C;
+}
+
+div#help {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #ACCFCC;
+       padding: 0.313em;
+       background-color: #E9F4F3;
+       color: #024C41;
+}
+
+div#warning {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #FF8400;
+       padding: 0.313em;
+       background-color: #FFF6ED;
+       color: #D95900;
+       font-weight: bold;
+}
+acronym {
+       cursor: help;
+}
+
+div.news p {
+       margin: 0;
+       padding:0;
+}
+div.news span.date {
+       font-family:Helevetica, Arial, sans-serif;
+       color: #4C566C; 
+       font-size: .5em;
+}
+
+.news{
+       padding: 0;
+       margin-bottom: 1em;
+       margin-top: 1em;
+}
+/* home page links */
+div.home-link {
+       padding: 0.125em;
+       float: left;
+       text-align: center;
+       margin: 0.125em;
+       width: 7.5em;
+       height: 5.625em;
+}
+div.home-link:hover {
+       padding: 0.063em;
+       background-color: #F7F3ED;
+       border: 1px solid #afafaf;
+       float: left;
+       text-align: center;
+       margin: 0.125em;
+}
+div.home-link a {
+       text-decoration: none;
+       font-weight: bold;
+}
+
+div.home-link img {
+       border: 0;
+}
+
+div.dropdown {
+       width: 12.5em;
+       padding: 0.125em;
+       background-color: white;
+       color: black;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-bottom: 1px solid #ECFEEA;
+       font-weight: normal;
+}
+
+div.dropdown-heading {
+       background-color: #ACCFCC;
+       color: #595241;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-top: 1px solid #ECFEEA;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+div.required {
+       font-weight: bold;
+       color: red;
+       font-size: large;
+       float: left;
+       position: relative;
+       margin-top: -0.313em;
+       height:  0.938em;
+       padding-right: 0.125em;
+}
+
+div#content_text {
+       margin-left: 0.313em;
+}
+
+#content, #content-tablet{
+       padding-top: .313em;
+       z-index: 1000;
+       background-color: white;
+}
+form {
+       display:inline;
+       max-width: 100%;
+}
+
+/* paging*/
+div.paging {
+       margin-top: 1em;
+       text-align: center;
+
+
+}
+div.paging ul {
+    list-style: none;
+    display: inline;
+    padding: 0;
+       max-width: 10%;
+       margin-bottom: 1em;
+}
+div.paging li { 
+       display: inline; 
+       padding-left: 0.125em; 
+       padding-right: 0.125em;
+       padding-top: 0;
+       padding-bottom: 0;
+       width: 10%;
+}
+
+div.paging li a {
+       text-decoration: none;
+       padding-left: 0.25em;
+       padding-right: 0.25em;
+       color: black;
+}
+
+div.paging li a:hover, div.paging li a.current, #show-all a:active, #show-all a:focus, #show-all a:hover,
+#show-pages a:active, #show-pages a:focus, #show-pages a:hover   {
+   border: 1px solid #4c96f4;
+   color: white;
+   background-color: #4c96f4;
+   -webkit-border-radius: 3px;
+   -moz-border-radius: 3px;
+   border-radius: 3px;
+}
+#show-pages:active, #show-pages:focus, #show-pages:hover, #show-all:active, #show-all:focus, #show-all:hover{
+       background-color: #4c96f4;
+} 
+
+#tl_corner{
+
+       background-image:url(images/tl_corner.gif);
+       background-position: top left;
+       background-repeat: no-repeat;
+       padding:0;
+}
+
+div.tabs {
+       /* Navigational Plone Tabs(tm), implemented by customizing the a tag - they are surprisingly elegant. The power of CSS runs strong in these :) */
+    background-color: transparent;
+       border-collapse: collapse;
+       border-bottom: 1px solid #B8AE9C;
+       padding: 0.5em 0em 0em 2em;
+       white-space: nowrap;
+}
+
+div.tabs a {
+    /* The normal, unselected tabs. They are all links */
+    background-color: transparent;
+    border-color: #B8AE9C;
+    border-width: 1px; 
+    border-style: solid solid none solid;
+    color: #595241;
+    height: 1.2em;
+    margin-right: 0.5em;
+    padding: 0em 2em 0em;
+    
+}
+
+div.tabs a.selected {
+    /* The selected tab. There's only one of this */
+    background-color: white;
+    border-bottom: #B8AE9C 1px solid;
+    color: #595241;
+    font-weight: normal;
+}
+
+div.tabs a:hover, div.tabs a.active {
+    background-color: #B8AE9C;
+    border-bottom: 1px solid #B8AE9C;
+    color: white;
+}
+
+.headingbox a{
+       color: #4C566C;
+}
+.headingbox a:link, .headingbox a:visited{
+       text-decoration: none;
+}
+div.box {
+}
+h4.box {
+       background-color: #F5F5F5;
+       padding: .313em; 
+}
+h4.box a {
+       display: block;
+       color: #4C566C;
+       background-color: #F5F5F5;
+       text-decoration: none;
+}
+div.box {
+       padding: 0.313em;
+       background-color: #F5F5F5;
+       color: black;
+       border: 1px solid #B8AE9C;
+       font-size:0.85em;
+       font-weight: normal;
+       padding:0.125em;
+}
+
+h5.box { 
+    background-color: #6F7172;
+    border: 1px solid #B8AE9C;
+    border-style: solid solid none solid;
+    color: Black;
+    padding: 0em 1em 0em 1em;
+    display: inline;
+       font-size:  1em;
+    height: 1em;
+}
+
+div.box a:link {
+       text-decoration: none;
+}
+
+div.box a:visited {
+       color: #2A6C28;
+       text-decoration: none;
+}
+
+div.box a:hover {
+       text-decoration: underline;
+}
+
+.boxDetails {
+    text-align: right;
+}
+
+div.box .content {
+    padding: 1em;
+       font-size:  1em;
+}
+
+div.box a.close {
+    float: right;
+    text-transform: none;
+    border-left: 1pt solid #B8AE9C;
+    padding: 0em 0.2em;
+}
+
+div.box h1, div.box h2, div.box h3, div.box h4 {
+    margin: 0;
+    padding: 0;
+}
+
+div.box .even {
+    background-color: #F7F3ED;
+}
+
+div.box .odd {
+    background-color: transparent;
+}
+
+
+/* users/index.php */
+div.course {
+       position: relative;
+       width: 12.5em;
+       height: 10.5em;
+       border: rgb(204, 204, 204) 1px solid;
+       background-color: #F7F7F7;
+       float: left;
+       margin: 0.188em;
+       padding: 0.313em;
+}
+
+div.course.break {
+       clear: left;
+}
+
+div.course h2 {
+       border: 0;
+       font-weight: normal;
+       font-size: large;
+
+}
+
+div.course:hover {
+       background-color:#FBF4E9;
+       border: #B8AE9C 1px solid;
+}
+
+
+table.data .odd img.headicon{
+       width: 2.469em;
+       height: 2.469em; 
+       -webkit-border-radius:5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+}
+
+.icon{
+       -webkit-border-radius:10px;
+       -moz-border-radius: 10px;
+       border-radius: 10px;
+       border-color: white;
+       width: 2.5em;
+       height: 2.5em;
+       float: left;
+}
+div.course div.shortcuts {
+       text-align: right;
+       clear: left;
+       vertical-align: middle;
+       width: 12.5em;
+}
+
+fieldset#shortcuts {
+       float: right;
+       background-color: #FEFDEF;
+       border: 1pt solid #B8AE9C;
+       margin: -5pt 5pt 5pt 5pt;
+       padding-right: 10pt;
+       padding-bottom: 5pt;
+       padding-left: 10pt;
+}
+
+fieldset {
+       margin-bottom: 10pt;
+       -webkit-border-radius:5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+       padding: 0 0.375em;
+       width: 90%;
+       margin: 0 auto; 
+       width:95%;
+       margin:0 auto;
+       border:thin #A9ADB0 solid;
+       margin-bottom: 1em;
+
+}
+#shortcuts legend {
+}
+#shortcuts ul {
+       position: relative;
+       margin-top: 0pt;
+       margin-bottom: 0pt;
+       margin-left: 0pt;
+       list-style-type:  none;
+       padding-left: 0pt; 
+}
+
+/*a#guide,*/ a#my-courses-link {
+       background-color: #6D84A2;
+}
+
+#guide img{
+       border:none;
+}
+
+div#content-test, div.content-from-module {    
+       float: left;
+       margin-top: 2em;
+       margin-bottom: 2em;
+       padding-right: 5pt;
+       width: 80%;
+}
+
+div#container {
+       text-align: left;
+       margin: 0 auto;
+       padding: 0;
+       border:0;
+       width: 95%;
+}
+
+/* index page */
+ul#home-links, ul#home-detail-links {
+       list-style: none;
+}
+
+/*my start page */
+#my_courses_container{
+       text-align: left;
+       margin: 0 auto;
+       border:0;       
+       min-width: 100%;        
+}
+
+.my-courses-list{
+       border: solid 1px #A9ADB0;
+       -webkit-border-radius:5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+       padding: .313em;
+       margin: .313em;
+       padding: .313em;
+       background-color: white;
+}
+.my-courses-list a{
+       color: black;
+       text-decoration: none;
+
+}
+
+.my-courses-list-ul{
+       margin: 0 auto;
+       padding-left: 0;
+       width: 100%;
+}
+.my-courses-links{
+       font-size: 80%;
+       padding-top: .75em;
+}
+.my-courses-resume{
+       float: right;
+}
+.fl-link-summary{
+       padding-left: 0.875em;
+       padding-bottom: 0.875em;
+       display: inline;
+}
+
+.fl-theme-iphone [class*="fl-list"] > li .fl-link-summary{
+       color: #4C566C;
+}
+.current_head{
+       padding-top: .5em;
+}
+.current_box{
+       max-width: 100%;
+}
+.current_list{
+       width: 95%;
+       padding: 0.375em;
+}
+.current_list li{
+       list-style-type: none;
+       font-style: bold;
+       padding-bottom: .5em;
+       padding-left: .5em;
+       margin:0;
+}
+.current_list li a:active, .current_list li a:focus, .current_list li a:hover{
+       color: white; 
+       background-color: #4C96F4;
+}
+
+.current_list_date_time{
+       font-size: 65%;
+}
+#show-all, #show-pages{
+       -webkit-border-radius: 8px; 
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+       padding: .5em;
+       border: solid 1px #A9ADB0;
+       background-color: white;
+       
+       
+}
+#show-all{
+       
+}
+#show-all a, #show-pages a{
+    color: black;
+    padding-left: 0.25em;
+    padding-right: 0.25em;
+    text-decoration: none;
+    display: block;
+}
+
+/* enrollment tabs */
+#navlist {
+       padding: 0;
+       margin-left: 0;
+       margin-right: auto;
+       margin-left: auto;
+       margin-bottom: .25em;
+       margin-top: 0.938em;
+       white-space: nowrap;
+}
+
+#navlist li {
+       list-style: none;
+       display: inline;
+       margin: 0;
+}
+
+#navlist li a {
+       padding: 0.188em 0.563em;
+       border: 1px solid #F7F3ED;
+       border-bottom: none;
+       background-color: #F7F3ED;
+       text-decoration: none;
+       margin-left: .25em;
+       white-space: nowrap;
+}
+
+#navlist li a:hover, #navlist li a:active {
+       color: #000;
+       background-color: #fff;
+}
+
+/* tree */
+.img-size-tree {
+       vertical-align: middle;
+       margin-top: 0;
+    padding:0;
+       height:1.45em;
+       width:1.5em;
+}
+/* profile page */
+dl#public-profile dt {
+       float: left;
+       width: 90%;
+       border-right: 1px solid #F7F3ED;
+       padding: 0.313em 0.313em 0.313em 0;
+
+       margin-right: 0.313em;
+}
+dl#public-profile dd {
+       margin: 0;
+}
+
+div.social-right{
+       margin-left:.5em;
+       margin-top: 1em;
+}
+div.social-left{
+       margin-left:.5em;
+}
+h4.profile{
+       float: left;
+}
+.social-wrapper h3{  
+       padding-top: .5em;
+}
+.my-contacts h3{
+       padding-bottom: .375em;
+}
+img#profile{
+       border: 1px #cccccc solid;
+       margin-left: 1em;
+}
+dd{
+    margin: 0;
+}
+
+/** forum stuff **/
+#forum-thread li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; float:left; width: 97%; list-style: none; }
+#forum-thread li.even { background-color: #F7F3ED; border-top: none; }
+#forum-thread li.odd { background-color: #fff; }
+div.forum-post-author { float:left; width:19.375em; padding:0.5em 0.625em; }
+div.forum-post-author a.title {font-size: 1.1em; line-height: 1.2em; font-weight: bold; text-decoration:none; }        
+div.forum-post-author img.profile-picture { border: 2px solid #F7F3ED; text-align:right;}
+div.forum-post-content { margin-left: 19.375em; padding: 0.313em 0 1.125em 1.125em;}
+div.forum-post-content h3 { font-weight: 500; float:left;clear:right; }
+div.forum-post-ctrl { float: right; padding-right: 0.313em; color: #a1a1a1;}
+div.forum-post-ctrl a { text-decoration: none; }
+div.forum-post-ctrl span { color: black; background-color: #fefdc2; padding: 0.188em; }
+div.forum-post-content p.date { color: #a1a1a1; border-bottom: 1px solid #F7F3ED; }
+div.forum-post-content div.body p { margin-bottom:1em; }
+div.forum-paginator{border:thin #cccccc solid; padding:.3em; width:95%;margin:auto;background-color:#F7F3ED;}
+span.forum-paginator-active{font-weight:700;text-decoration:underline; height:2em;}
+
+
+
+/** inbox stuff - reuses some of the forum layout **/
+#inbox-msg li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; width: 95%; list-style: none; min-height: 11em;}
+       
+/*  tool list on admin home and manage screens  */
+ li.top-tool { 
+       list-style: none;
+       padding: 0.125em 0.125em 0.125em  0.938em;
+       margin-bottom: 0.313em; 
+       line-height: 200%; 
+       border: solid 1px #A9ADB0;
+       -webkit-border-radius:8px;
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+       background: white;
+}
+       
+li.child-tool a { 
+       font-size: x-small;
+       font-weight: normal; 
+}
+
+ul.child-top-tool {
+       margin-top: -0.313em;
+       padding-left: 0;
+       margin-left: 0;
+       display: inline;
+}
+
+li.child-tool {
+       display: inline;
+       margin-right: 0.313em;
+       font-size: x-small;
+}
+
+
+/* browse courses */
+div.browse-course {
+       padding-bottom: 0.625em;
+}
+
+dl.browse-course {
+       width: 90%;
+       padding-bottom: 0.625em;
+       background-color: #fffaf0;
+       margin:auto;
+       margin-left:1em;
+}
+dl.browse-course dt {
+       float: left;
+       font-weight: bold;
+       width: 25%;
+       text-align: right;
+       clear: left;
+       padding: 0.313em 0.625em 0.313em 0;
+       vertical-align: middle;
+
+}
+dl.browse-course dd {
+       margin-bottom: 0.313em;
+       clear: right;
+       padding: 0.313em 0 0.313em 0.625em;
+       margin-left: 26%;
+
+}
+.row .buttons{
+       border: none;
+}
+
+/*  form fields grouping for WCAG 2.0 conformance*/
+fieldset.group_form{
+       width:98%;
+       margin:0 auto;
+       color: #4C566C; 
+       padding:.313em;
+       margin: .313em;
+       border: 1px #A9ADB0 solid;
+       background-color: white;
+}
+
+legend.group_form{
+       background-color:white;
+       font-weight: 600;
+       color: #4C566C;
+       padding:.313em;
+       margin: .313em;
+       border: 1px #4C566C solid;
+       -webkit-border-radius: 8px;
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+}
+
+/*Overrides above a:active, a:hover, a:focus so the "Navigation" button itself isn't highlighted when activated.
+Ensure styling matches that in fl-tabs.*/
+.topnavlistcontainer a:hover, .topnavlistcontainer a:active, .topnavlistcontainer a:focus{
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+}
+
+/*Added by Silvia */
+div.column_primary {
+       float: left;
+       width: 42%;
+       margin: 0.313em;
+       padding: 0;
+       min-width: 10.625em;
+}
+
+div.column_equivalent{
+       float: left;
+       width: 52%;
+       margin-left:  0.938em;
+       margin-top: 0.313em;
+       margin-right: 0.313em;
+       margin-bottom: 0.313em;
+       min-width: 10.625em;
+       padding: 0.313em;
+       border: 1px solid #EEE;
+       background-color: #FFF;
+}
+
+div.resource_box{
+       border: 1px solid #aaa;
+       width: 95%;
+       margin: 0.313em;
+       padding: 0.313em;
+       min-width: 9.375em;
+       background-color: #eee;
+}
+
+h2.alternatives_to{
+       margin-top: 0.75em;
+       font-size: 90%;
+       color: #A50707;
+}
+
+div.alternative_box{
+       border: 1px solid #ddd;
+       margin: 0.313em;
+       padding: 0.313em;
+       min-width: 9.375em;
+       background-color: #fff;
+}
+
+div.alternative_box legend {
+       color: #000;
+}
+
+div.resource_box legend {
+       color: #000;
+}
+
+label.primary a{
+       color: #A50707;
+       font-weight: bolder;
+       background-color: white;
+}
+
+/* format of "table of contents" on content page */
+#toc a { 
+       display:block; 
+       margin:0.188em; 
+}
+#toc .h2, #toc .h3, #toc .h4, #toc .h5, #toc .h6{ 
+       padding:0 0 0 0;
+}
+
+
+fieldset#toc {
+       background-color: #FEFDEF;
+       border: 1pt solid #B8AE9C;
+       width:89%;
+}
+
+#side-menu{
+       overflow:hidden;
+}
+
+/* cleans up glossary question mark line spacing*/
+sup{
+       border: 1pt solid #B8AE9C;
+       vertical-align:bottom;
+       margin-top: 1em;
+}
+
+/* jQuery tooltip styles */
+#tooltip{
+       position:absolute;
+       z-index:3000;
+       border:3px solid #111;
+       background-color:#eeeeee;
+       padding:0.313em;
+}
+#tooltip h3,#tooltip div{
+       margin:0;
+}
+
+/* style for home page modules "detail view" */
+div.home_box {
+       padding: .75em 0;
+       margin: 0 auto;
+}
+
+.outside_box{
+       background:#e0e0e0;
+       width: 17em;
+       margin: .375em;
+       padding: 0;
+       height:9.8em;
+}
+
+.inside_box{
+       width:100%;
+       margin:auto;
+       height:52%;
+       margin-bottom:.2em;
+       background:#eeeeee;
+
+}
+.details_or{
+       width:28.8em;
+       height:9.8em;
+       margin:0;
+       background-image:url(images/details_r.png);
+       background-position: top right;
+       background-repeat:no-repeat;
+}
+.details_ol{
+       height:9.8em;
+       margin:0;
+       width:.45em;
+       background-image:url(images/details_l.png);
+       background-position: top left;
+       background-repeat:no-repeat;
+}
+.details_ir{
+       width:.5em;
+       height:100%;
+       float:right;
+       background-image:url(images/details_ir.png);
+       background-position: top right;
+       background-repeat:no-repeat;
+}
+.details_il{
+       height:100%;
+       float:left;
+       background-image:url(images/details_il.png);
+       background-position: top left;
+       background-repeat:no-repeat;
+}
+.home-title{
+       font-size:12pt;
+}
+.buttonbox{
+       float:right;
+}
+.details_text{
+       margin-left:1em;
+}
+.draggable_selected {
+       background-color: lightgrey;
+       cursor: move;
+}
+
+div.menuedit{
+       float:right;
+       margin-top:-1.2em; 
+       border:1px solid #cccccc;
+}
+li.folders {
+       list-style: disc url(../../images/folder.gif) outside;
+       font-family: Helvetica,sans-serif;
+       margin-bottom: 0;
+       margin-top: 0;
+       margin-right: 0;
+}
+
+li.folders .disabled {
+       color: #B8AE9C;
+}
+
+ul.folder{
+       list-style-image:none;
+       list-style-position:outside;
+       list-style-type:none;
+       margin:0em;
+       padding:0em;
+}
+
+#topnavlist-tablet{
+       -webkit-border-radius: 8px;
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+       border: black;
+       background: black; 
+       z-index: 1000;
+       padding-bottom: 0; 
+       margin-bottom: 0;       
+}
+
+ul#topnavlist-tablet li {
+       color: white;
+}
+       
+ul#topnavlist-tablet>li:hover, ul#topnavlist-tablet>li:hover a,  ul#topnavlist-tablet>li:active,
+ul#topnavlist-tablet>li:active a, ul#topnavlist-tablet>li:focus, ul#topnavlist-tablet>li:focus a {
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center, -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+       background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center, -moz-linear-gradient(#4a94f4, #236de5);
+}
+
+ul#topnavlist-tablet li a  {
+       text-decoration: none;
+}
+
+.flc-screenNavigator-backButton .fl-link-hilight{
+       display: none;
+}
+
+div.toolcontainer{
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
+}
+
+
+
+
+
+/* list attributes */
+ul {
+       list-style: none;
+}
+li {
+       color: black;
+       list-style: none;
+}
+
+ol#tools>li:hover, ol#tools>li:hover a {
+       /*border: 1px solid #e0e0e0;*/
+       background-color: #e6e6e6;
+       color: black;   
+       
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -moz-linear-gradient(#4a94f4, #236de5);     
+}
+
+[class*="fl-container"]:not(.fl-navbar){
+       margin: 0;
+       margin-left: .313em;
+       margin-right: .313em;
+       padding: 0;     
+}      
+div#navigation-column{
+       
+       width: 50%;
+       -webkit-border-radius: 8px;
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+       z-index: 1000;
+       position: absolute; 
+       top: 2em;
+       background: black;
+       padding-right: .2em;
+       padding-left: .2em;
+       padding-top: .2em;
+       padding-bottom: .2em;
+       display: none;
+}
+div#contentcolumn{
+       padding-top: .313em;
+       margin-top: .313em;
+       padding: .313em;
+       margin-bottom: 1em;
+       position: absolute; 
+       top: .7em;
+       top: 1.2em;
+       top: 2em;
+}
+#content-text{
+       position: relative;
+       top: .7em;
+}
+
+       
+
+
+#content-contentwrapper{
+       height:100%;
+    position:relative; 
+       z-index:1000;                   
+       width:100%;
+       overflow:hidden;
+       
+}
+
+#leftcolumn{
+       float: left;
+       width: 17em;
+       margin-left: 0.313em;
+       margin-top:-0.625em;
+}
+
+#copyright{
+       font-size: 0.5em;
+}
+#gototop{
+       text-align: center;
+       color: #4B6B90;
+}
+
+#tools{
+       margin: 0 auto;
+       padding: 0.313em;
+       
+}
+
+
+/* ATutor Social Styles */
+div .profile_container {
+       background-color:#eee; 
+       border: 1px solid #8e8e8e; 
+       width:80%; 
+       padding:0.5em; 
+       margin-bottom: 0.5em;
+}
+
+div .profile_container .top_right {
+       float: right;
+}
+
+dl.public-profile dd{
+       margin-left:0;
+}
+dl.public-profile dt {
+       float: left;
+       font-weight: bold;
+       min-width:12em;
+}
+
+/* Search form */
+div .search_form {
+       margin-bottom: 1em;
+}
+
+div .search_form .row{
+       background-color: #DEDEC0;
+       padding: 0.5em;
+}
+div .button {
+       background-color: #eee;
+       border: 1px solid #aaa;
+}
+div .button:hover{
+       background-color: #cccccc;
+       color: #ffffff;
+}
+
+/* Side menu */
+ul.social_side_menu {
+       padding-left: 2em;
+}
+ul.social_side_menu li {
+       padding-bottom: 0.2em;
+       list-style: circle;
+}
+
+div .divider {
+       border-bottom:1px solid #C1C157; 
+       padding-bottom:0.5em; 
+       margin-bottom:0.5em;
+}
+
+.activity{
+       line-height:18pt;
+       font-size:.8em;
+}
+
+div.contentbox, input-form{
+       padding:.5em;
+       background-color: #ffffff;
+    overflow:hidden;
+    border: #A9ADB0 solid 1px;
+       -webkit-border-radius: 5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+}
+
+div.suggestions{
+       border:1px solid #a50707;
+       margin-left:0.625em; 
+       width:50%;
+}
+li.inlinelist{
+       display: inline; 
+       padding-right: 1em;
+}
+ul.social_inline_menu{
+       background-color: #eeeeee;
+       border:thin #cccccc solid;
+       padding:.5em;
+       width:90%;
+       margin:auto;
+}
+.results-hide-show-link-container{
+       border: #A9ADB0 solid 1px;
+       -webkit-border-radius: 5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+}
+#results-hide-show-link{
+       height: 100%;
+}
+
+#hide-show-container{
+       -webkit-border-radius:8px;
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+       margin-top: 0.875em;
+       margin-bottom: 0.875em;
+       padding: 0.875em;
+       padding-right: .2em;
+       background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#999), to(black));
+       background: -moz-linear-gradient(#999, black);
+}
+
+.hide-show-container h4{
+       border: #A9ADB0 solid 1px;
+       -webkit-border-radius:8px;
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+       margin-top: 0.875em;
+       margin-bottom: 0.875em;
+       padding: 0.875em;
+       padding-right: .2em;
+       background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#F8FAFB), to(#B6C0C6));
+       background: -moz-linear-gradient(#F8FAFB, #B6C0C6);
+       background: white; 
+}
+
+#hide-show-container a:link,
+#hide-show-container a:focus,
+#hide-show-container a:hover{
+       color: white;
+       text-decoration: none;
+       text-shadow: none;
+       display: block; 
+}
+
+.hide-show-container a:link:not(.fl-list-menu):not(.fl-list-brief),  
+.hide-show-container a:focus:not(.fl-list-menu):not(.fl-list-brief), 
+.hide-show-container a:hover:not(.fl-list-menu):not(.fl-list-brief),
+.hide-show-container a:active:not(.fl-list-menu):not(.fl-list-brief),
+#hide-show-container a:active{
+       color: white;
+       color: #4C566C;
+       text-decoration: none;
+       text-shadow: none;
+       display: block; 
+}
+
+.hide-show-container a>h4, .fl-theme-iphone a .results-hide-show-link{
+       color: white;
+}
+/* REBUILDING THE TOP NAVIGATION MENU */
+
+#navigation-bar{
+       height: 2; 
+    border-bottom: .5px solid black;    
+}
+
+/*Overrides above a:active, a:hover, a:focus so the "Navigation" button itself isn't highlighted when activated.
+Ensure styling matches that in fl-tabs.*/
+.topnavlistcontainer a:hover, .topnavlistcontainer a:active, .topnavlistcontainer a:focus{
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+}
+
+
+
+/*this CSS creates a button that looks exactly like a Mobile FSS tab.*/
+.navigation-bar-button{
+    border-width:5px;
+    -webkit-border-radius: 5px;
+    -moz-border-radius: 5px;
+       border-radius: 5px;
+       font-size: 18px;/*keep this in px*/
+       padding-left: .3em;
+       padding-right: .3em;
+       padding-top: .1em;
+       color: white;
+       position: relative;
+       top: .4em; 
+
+       
+    /* default mobile fss color scheme for tabs not AA compliant. Here is a compliant bg image: */
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+       background-color: #354D68;
+       -moz-border-image: url("images/navbar_normal_button_insetShadow.png") 5 5 5 5 stretch;
+       -webkit-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+       -moz-border-image:url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -webkit-border-left-image: none;
+    -moz-border-left-image: none;
+    -webkit-background-origin: border;
+    -moz-background-origin: border;
+    -webkit-background-clip: border;
+       -moz-background-clip: border;
+       margin-top: .3em;
+       margin-bottom: -1em;
+}
+
+
+/* hiding/showing course content */
+
+div#content-link-container{
+       list-style: none; 
+       padding-top: .316em;
+       float: right;
+}
+
+.content_link_tablet {
+       border-width:5px;
+    -webkit-border-radius: 5px;
+    -moz-border-radius: 5px;
+       border-radius: 5px;
+       font-size: 0.875em;/*keep this in px*/
+       font-size: 18px;
+       /*padding: .1em;*/
+       padding-left: .3em;
+       padding-right: .3em;
+       padding-top: .1em;
+       padding-bottom: .1em;
+       margin-right: .313em;
+
+       
+    /* default mobile fss color scheme for tabs not AA compliant. Here is a compliant bg image: */
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+       -webkit-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -moz-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -webkit-border-left-image: none;
+    -moz-border-left-image: none;
+    -webkit-background-origin: border;
+    -moz-background-origin: border;
+    -webkit-background-clip: border;
+    -moz-background-clip: border;
+    margin-bottom: -0.25em;
+
+
+}
+.flc-screenNavigator-navbar .content_link{
+       color: white;
+       text-decoration: none;
+       font-weight: bold;
+       background-color: #354D68;
+}
+.fl-theme-iphone .content_link_tablet_highlight{
+        color: #4c96f4;
+        font-weight: bold;
+       
+}
+
+#content{
+       position: absolute;
+       top: 2em; 
+       right: 0.313em;
+       width: 50%;
+       float: right;
+       -webkit-border-radius: 8px;
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+       border: 4px solid black;
+       z-index: 1000;
+       display: none;
+}
+
+/*     hiding/showing top navigation and results-display */
+ul#topnavlist {
+       display: none;
+       position: relative;
+       top: 1.2em;
+       z-index: 1;
+}
+
+div#results-display, .results-display{
+       display: none;
+}
+
+ul#topnavlist li {
+       padding: 0;
+       margin: 0;
+}
+       
+ul#topnavlist>li:hover, ul#topnavlist>li:hover a,  ul#topnavlist>li:active, ul#topnavlist>li:active a,
+ul#topnavlist>li:focus, ul#topnavlist>li:focus a {
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -moz-linear-gradient(#4a94f4, #236de5);
+}
+
+ul#topnavlist li a  {
+       color: #4C566C;
+       text-decoration: none;
+}
+.content-expand {
+       background-image:url("images/plus.png");
+       background-position: 100% 100%;
+       background-repeat: no-repeat;
+}
+.content-closed{
+       background-image:url("images/minus.png");
+       background-position: 100% 100%;
+       background-repeat: no-repeat;   
+}
+
+/* SUBNAVLIST HIGHLIGHTING and Gmail-STYLE "more" button */
+ul#subnavlist li a{
+       color: black;
+}
+
+ul#subnavlist li a:active, ul#subnavlist li a:focus, ul#subnavlist li  a:hover {
+       color: red;     
+       border-bottom: #4C566C 2px solid;
+       text-decoration: none;
+}
+ul#subnavlist{
+       color: black;
+       padding: 0;
+       padding-bottom: 0.313em;
+       margin: 0;
+       font-size: 90%;
+       text-align: center;  
+}
+.selected{
+       color: red;
+       font-size: 0.875em;
+       border-bottom: #4C566C 2px solid;
+}
+#subnavlist-more .more-item{
+       font-size: 0.875em; list-style-type: bullet;
+       
+}
+.more-icon {
+       background-image:url('images/hidemenu.gif');
+       background-position: 100% 100%;
+       background-repeat: no-repeat;
+}
+.more-button{
+}
+.more-button-surround{
+}
+.subnavlist-more{
+       
+       display: block;
+       display: none;
+}
+ul#subnavlist li:not(#subnavlist-more){
+       display: inline;
+}
+
+ul#subnavlist li a, ul#subnavlist li a:visited {
+       color: black;
+}
+ul#subnavlist li a{
+       text-decoration: none;
+}
+
+ /*creates a little up-facing arrow to help mimick an ipad-style popover.  
+ See http://nicolasgallagher.com/pure-css-speech-bubbles/demo/ */
+.triangle-isosceles {
+     position: relative;
+}
+
+.triangle-isosceles:after {
+     border-style: solid;
+     content: "";
+     display: block;
+     position: absolute;
+}
+
+.triangle-isosceles.top:after {
+     border-color: black transparent;
+     border-width: 0pt 15px 15px;
+     bottom: auto;
+     left: auto;
+     left: 20%;
+     top: 95%;
+     z-index: 1000;
+}
+
+.triangle-isosceles.top.right:after {
+     border-color: black transparent;
+     border-width: 0pt 15px 15px;
+     bottom: auto;
+     left: auto;
+     right: 30%;
+     top: 98%;
+     z-index: 1000;
+}
+
+/*'Previous' and 'Next' buttons */
+.previous{
+       margin-left:3.125em;
+}
+
+.triangle-isosceles.previous:after {
+       top:1em; /* controls vertical position */
+       left:-3.125em; /* value = - border-left-width - border-right-width */
+       bottom:auto;
+       border-width:15px 50px 10px 0;
+       border-color:transparent #f3961c;
+       border-color: transparent #F3961C;
+    border-width: 10px 10px 10px 0pt;
+    bottom: auto;
+    left: -0.75em;
+    top: 0;
+}
+
+/* sequence links */
+#sequence-links{
+       float: left;
+       padding-right:0;
+       position: relative; 
+       right: -.313em;
+}
+
+#course-level-navigation, #sequence-links-course-navigation{   
+               float: right;
+}
+
+/************************************************************************************************/
+/*Adds arrows to Fluid Tabs. Here is a good guide for creating triangles with CSS: 
+http://jonrohan.me/guide/css/creating-triangles-in-css/ */
+/************************************************************************************************/
+
+ul.sequence-links li {
+    position:relative;
+    z-index:1;
+    overflow:hidden;
+    list-style:none;
+}
+
+ul.sequence-links li.back a:link, 
+ul.sequence-links li.back a:visited {
+    display:block;
+    padding-left:12px;
+    color:white;
+}
+
+ul.sequence-links li.forward a:link, 
+ul.sequence-links li.forward a:visited {
+    display:block;
+    padding-right:0.75em;
+    color:white;
+}
+/*WCAG*/
+ul.sequence-links li a:hover, ul.sequence-links li a:focus, ul.sequence-links li a:active,
+ul.sequence-links li.back a:hover, ul.sequence-links li.back a:focus, ul.sequence-links li.back a:active,
+ul.sequence-links li.forward a:hover, ul.sequence-links li.forward a:focus, ul.sequence-links li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+
+
+ul.sequence-links li:before, 
+ul.sequence-links li:after,
+ul.sequence-links li a:before, 
+ul.sequence-links li a:after {
+    content:"";
+    position:absolute;
+    top:50%;
+   /* left:0;*/
+}
+
+ul.sequence-links li a:before, 
+ul.sequence-links li a:after {
+    margin:-0.5em 0 0;
+  }
+
+/*arrow that points to the left, beside the "Previous" text */
+.arrow.back a:after {/*arrow pointing to the left*/
+     background: none repeat scroll 0% 0% transparent;
+     border-color: transparent #FFFFFF;
+     border-style: solid;
+     border-width: 5px 0pt 5px 6px;
+     left: .5em;
+     margin-top: -0.438em;
+}
+
+/*left and right triangle icons change color*/
+.arrow a:hover:after, .arrow a:focus:after, .arrow a:active:after, 
+.arrow.forward a:hover:after, .arrow.forward a:focus:after, .arrow.forward a:active:after{
+       border-color: transparent #4c96f4;
+}
+
+.arrow.back a:after {
+     border-width: 6px 6px 6px 0pt;    
+     left: 0.188em;
+     
+     top: .75em;
+}
+
+}
+/*arrow that points to the right, beside the "Next" text */
+.arrow.forward a:after {
+     background: none repeat scroll 0% 0% transparent;
+     border-color: transparent #FFFFFF;
+     border-style: solid;
+     margin-top: -0.425em;
+   
+}
+.arrow.forward a:after {
+  
+      background: none repeat scroll 0% 0% transparent;
+     border-color: transparent transparent transparent white;
+        border-width: 6px;
+        border-style: solid;
+        width:0;
+        height:0;
+        right: -0.313em;
+        top: 0.85em;
+}
+/* style for "last modified" information of course content*/
+#content-info{
+       padding-top: 2em;
+       font-size: 80%;
+}
+
+ul.my-courses-list-ul > li:hover{
+       background-color: #4c96f4;
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+    -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+    -moz-linear-gradient(#4a94f4, #236de5);
+} 
+ul.my-courses-list-ul > li:hover a{
+       color: white;
+}
+#topnavlistcontainer {
+    float: left;
+}
+
+/* to be created as a separate desktop theme file. The classes below should be removed when 
+Mark McLaren's port of mobile fss to firefox is committed to infusion: 
+https://github.com/fluid-project/infusion/blob/25ad6755ef78347b414d60bd4037a0f197f9d09d/infusion-branch/src/webapp/framework/fss/css/fss-mobile-theme-firefox.css */ 
+.fl-tabs li:first-child {
+    border-bottom-left-radius: 5px;
+    border-top-left-radius: 5px;
+}
+
+.fl-theme-iphone .fl-tabs li {
+    -moz-border-image: url("images/navbar_normal_button_insetShadow.png") 5 5 5 5 stretch;
+    background-color: #354D68;
+}
+[class*="fl-container"] [class*="fl-list"] > li:first-child, [class*="fl-container"] [class*="fl-list"] > li:first-child a {
+    border-top-left-radius: 8px;
+    border-top-right-radius: 8px;
+}
+[class*="fl-container"] [class*="fl-list"] > li:last-child, [class*="fl-container"] [class*="fl-list"] > li:last-child a {
+    border-bottom-left-radius: 8px;
+    border-bottom-right-radius: 8px;
+}
+
+.fl-theme-iphone .fl-tabs .fl-tabs-active {
+    background-image: -moz-linear-gradient(
+        center top,
+        rgba(149, 184, 239,1),
+        rgba(35,109,229,1),
+        rgba(149, 184, 239,1)  50%,
+        rgba(75,148,244,1) 50%
+    );
+}
+
+/* A simulation for a:active on the device, requires JS */
+/* since .fl-list is for mixed material lists, dont include them in these effects */
+.fl-theme-iphone [class*=fl-list]:not(.fl-list):not(.fl-grid) a:active,
+.fl-theme-iphone [class*=fl-list]:not(.fl-list):not(.fl-grid) a.fl-link-hilight {
+    background: url(../images/themes/iphone/listmenu_arrow.png) no-repeat right -25px,
+                -moz-linear-gradient(#4a94f4, #236de5);
+}
index 6e740e9..f46e947 100644 (file)
@@ -1,4 +1,90 @@
 <?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
+<?php if ($this->mobile_device_type == IPAD_DEVICE): ?><!--  smartphone theme only -->
+<div class="column-login">
+<div class="input-form">
+
+
+
+<div id="hide-show-container" >
+       <h3><a id="results-hide-show-link" class="content-expand" href="javascript:void(0);" role="search"  aria-live="assertive"       tabindex="1" ><?php echo $this->num_results; echo " courses found."?></a></h3>
+</div>
+<div id="results-display">
+
+<fieldset class="group_form"><legend class="group_form"><?php echo "Filter by:"; ?></legend>
+               <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+                               <div class="row">
+                                       
+                                       <fieldset><legend><?php echo _AT('access'); ?></legend>
+                                       <input type="radio" name="access" value="private" id="s1" <?php if ($_GET['access'] == 'private') { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('private'); ?></label> 
+       
+                                       <input type="radio" name="access" value="protected" id="s2" <?php if ($_GET['access'] == 'protected') { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('protected'); ?></label>
+
+                                       <input type="radio" name="access" value="public" id="s3" <?php if ($_GET['access'] == 'public') { echo 'checked="checked"'; } ?> /><label for="s3"><?php echo _AT('public'); ?></label>
+
+                                       <input type="radio" name="access" value="" id="s" <?php if ($_GET['access'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
+                                       </fieldset>
+                               </div>
+
+                       <?php if ($this->has_categories): ?>
+                               <div class="row">
+                                       <label for="category"><?php echo _AT('category'); ?></label><br/>
+                                       <select name="category" id="category">
+                                               <option value="-1">- - - <?php echo _AT('cats_all'); ?> - - -</option>
+                                               <option value="0" <?php if ($_GET['category'] == 0) { echo 'selected="selected"'; } ?>>- - - <?php echo _AT('cats_uncategorized'); ?> - - -</option>
+                                               <?php echo $this->categories_select; ?>
+                                       </select>
+                               </div>
+                       <?php endif; ?>
+
+                       <div class="row">
+                               <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('title').', '._AT('description'); ?>)</label><br />
+
+                               <input type="text" name="search" id="search" size="30" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+                               <br/>
+                               
+                               <fieldset><legend><?php echo _AT('search_match'); ?>:</legend>
+                               <input type="radio" name="include" value="all" id="match_all" <?php echo $this->checked_include_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> 
+                               <input type="radio" name="include" value="one" id="match_one" <?php echo $this->checked_include_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
+                               </fieldset>
+                       </div>
+
+                       <div class="row buttons">
+                               <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>"/>
+                               <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>"/>
+                       </div>
+               
+               </form>
+
+</fieldset>
+</div>
+</div>
+</div>
+<div>
+<?php if (is_array($this->courses_rows)){ ?>
+       <?php foreach ($this->courses_rows as $row){ ?>
+           <?php  $counter++; ?>
+               <ul class="fl-list-menu fl-list-thumbnails">
+                <li>
+                               <h3 class="browse-courses"><a href="<?php echo url_rewrite('bounce.php?course='.$row['course_id'], true); ?>"><?php echo htmlentities($row['title'], ENT_QUOTES, 'UTF-8'); ?></a></h3>      
+                    
+                     <?php if ($row['description']): ?>
+                               <span class="fl-link-summary" title="<?php echo htmlentities($row['description']);?>"><?php echo substr(nl2br(htmlentities($row['description'], ENT_QUOTES, 'UTF-8')),0,150); 
+                               if(strlen($row['description']) > 150){
+                               echo "...";
+                               }
+                               ?>&nbsp;</span>
+                       <?php else: ?>
+                               <span class="fl-link-summary" title="<?php echo htmlentities($row['description']);?>">&nbsp;</span>
+                       <?php endif; ?>
+               
+               </li>
+       
+       </ul>         
+       <?php } // end foreach ?>
+<?php } // end if ?>
+</div>
+<?php endif; ?>
+<?php if ($this->mobile_device_type != IPAD_DEVICE): ?><!--  smartphone theme only -->
 <div class="column-login">
 <div class="input-form">
 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('filter'); ?></legend>
 <?php } // end if ?>
 </div>
 
+<?php endif; ?>
 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
index 27bf7d5..2f41cda 100644 (file)
@@ -1,7 +1,7 @@
 <?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
 
 <div id="my_courses_container">
-<ul class="my-courses-list-ul" style="padding:0">
+<ul class="my-courses-list-ul" >
 
 <?php foreach ($this->courses as $row):
        static $counter;
              if(isset($this->all_news[$i]['thumb'])){
                    echo '<li><img src="'.$this->all_news[$i]['thumb'].'" alt="'.$this->all_news[$i]['alt'].'" title="'.$this->all_news[$i]['alt'].'"/> ' . $this->all_news[$i]['link'] .' <br />';
                    if($this->all_news[$i]['object']['course_id']){
-                   echo '<small>(<a href="bounce.php?course='.$this->all_news[$i]['object']['course_id'].'">'.$this->all_news[$i]['course'].'</a>)|';
+                   echo '<span class="current_list_date_time">'.'Posted in&nbsp;'.'<a href="bounce.php?course='.$this->all_news[$i]['object']['course_id'].'">'.$this->all_news[$i]['course'].'</a>';
                    }
-                   echo '('.AT_DATE('%F %j, %g:%i',$this->all_news[$i]['time']).')</small><hr></hr></li>';
+                   echo '&nbsp;on&nbsp;'.AT_DATE('%F %j, %g:%i',$this->all_news[$i]['time']).'</span></li>';
                }
            echo '</ul>';
        }
     }
     if($perpage == count($this->all_news)){ ?>
-       <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=1"><?php echo _AT('show_pages'); ?></a>
+       <div id="show-pages"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=1"><?php echo _AT('show_pages'); ?></a></div>
     <?php }else{ ?>
-       <div id="show-all"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=all"><?php echo _AT('show_all'); ?></a></div>
+       <div id="show-all"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=all"><?php echo "Show All"; ?></a></div>
     <?php } ?>
 <br /><br />
 </div>  
-
 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/TeraWurflRemoteClient.php b/docs/themes/simplified-desktop/TeraWurflRemoteClient.php
new file mode 100644 (file)
index 0000000..92204c3
--- /dev/null
@@ -0,0 +1,245 @@
+<?php\r
+/**\r
+ * Tera_WURFL - PHP MySQL driven WURFL\r
+ * \r
+ * Tera-WURFL was written by Steve Kamerman, and is based on the\r
+ * Java WURFL Evolution package by Luca Passani and WURFL PHP Tools by Andrea Trassati.\r
+ * This version uses a MySQL database to store the entire WURFL file, multiple patch\r
+ * files, and a persistent caching mechanism to provide extreme performance increases.\r
+ * \r
+ * @package TeraWurflRemoteClient\r
+ * @author Steve Kamerman <stevekamerman AT gmail.com>\r
+ * @version Stable 2.1.2 $Date: 2010/05/14 15:53:02\r
+ * @license http://www.mozilla.org/MPL/ MPL Vesion 1.1\r
+ */\r
+/**\r
+ * Tera-WURFL remote webservice client for PHP\r
+ * @package TeraWurflRemoteClient\r
+ */\r
+class TeraWurflRemoteClient {\r
+       \r
+       /**\r
+        * XML Data Format - this should only be used to communicate with Tera-WURFL 2.1.1 and older\r
+        * @var String\r
+        */\r
+       public static $FORMAT_XML = 'xml';\r
+       /**\r
+        * The JSON Data Format is the default transport for Tera-WURFL 2.1.2 and newer due to it's smaller size\r
+        * and better performance with the builtin PHP functions \r
+        * @var String\r
+        */\r
+       public static $FORMAT_JSON = 'json';\r
+       /**\r
+        * If you try to use a capability that has not been retrieved yet and this is set to true,\r
+        * it will generate another request to the webservice and retrieve this capability automatically.\r
+        * @var Bool\r
+        */\r
+       public $autolookup = true;\r
+       /**\r
+        * Flattened version of Tera-WURFL's capabilities array, containing only capability names and values.\r
+        * Since it is 'Flattened', there a no groups in this array, just individual capabilities.\r
+        * @var Array\r
+        */\r
+       public $capabilities;\r
+       /**\r
+        * Array of errors that were encountered while processing the request and/or response.\r
+        * @var Array\r
+        */\r
+       public $errors;\r
+       /**\r
+        * The HTTP Headers that Tera-WURFL will look through to find the best User Agent, if one is not specified\r
+        * @var Array\r
+        */\r
+       public static $userAgentHeaders = array(\r
+               'HTTP_X_DEVICE_USER_AGENT',\r
+               'HTTP_X_ORIGINAL_USER_AGENT',\r
+               'HTTP_X_OPERAMINI_PHONE_UA',\r
+               'HTTP_X_SKYFIRE_PHONE',\r
+               'HTTP_X_BOLT_PHONE_UA',\r
+               'HTTP_USER_AGENT'\r
+       );\r
+       protected $format;\r
+       protected $userAgent;\r
+       protected $webserviceUrl;\r
+       protected $xml;\r
+       protected $json;\r
+       protected $clientVersion = '2.1.2';\r
+       protected $apiVersion;\r
+       \r
+       /**\r
+        * Creates a TeraWurflRemoteClient object.  NOTE: in Tera-WURFL 2.1.2 the default data format is JSON.\r
+        * This format is not supported in Tera-WURFL 2.1.1 or earlier, so if you must use this client with \r
+        * an earlier version of the server, set the second parameter to TeraWurflRemoteClient::$FORMAT_XML\r
+        * @param String URL to the master Tera-WURFL Server's webservice.php\r
+        * @param String TeraWurflRemoteClient::$FORMAT_JSON or TeraWurflRemoteClient::$FORMAT_XML\r
+        */\r
+       public function __construct($TeraWurflWebserviceURL,$data_format='json'){\r
+               $this->format = $data_format;\r
+               if(!self::validURL($TeraWurflWebserviceURL)){\r
+                       throw new Exception("TeraWurflRemoteClient Error: the specified webservice URL is invalid.  Please make sure you pass the full url to Tera-WURFL's webservice.php.");\r
+                       exit(1);\r
+               }\r
+               $this->capabilities = array();\r
+               $this->errors = array();\r
+               $this->webserviceUrl = $TeraWurflWebserviceURL;\r
+       }\r
+       /**\r
+        * Get the requested capabilities from Tera-WURFL for the given user agent\r
+        * @param String HTTP User Agent of the device being detected\r
+        * @param Array Array of capabilities that you would like to retrieve\r
+        * @return bool Success\r
+        */\r
+       public function getCapabilitiesFromAgent($userAgent, Array $capabilities){\r
+               $this->userAgent = (is_null($userAgent))? self::getUserAgent(): $userAgent;\r
+               // build request string\r
+               $uri = $this->webserviceUrl . (strpos($this->webserviceUrl,'?')===false?'?':'&') \r
+               . 'ua=' . urlencode($this->userAgent)\r
+               . '&format=' . $this->format\r
+               . '&search=' . implode('|',$capabilities);\r
+               $this->callTeraWurfl($uri);\r
+               $this->loadCapabilities();\r
+               $this->loadErrors();\r
+               return true;\r
+       }\r
+       /**\r
+        * Returns the value of the requested capability\r
+        * @param String The WURFL capability you are looking for (e.g. "is_wireless_device")\r
+        * @return Mixed String, Numeric, Bool\r
+        */\r
+       public function getDeviceCapability($capability){\r
+               $capability = strtolower($capability);\r
+               if(!array_key_exists($capability, $this->capabilities)){\r
+                       if($this->autolookup){\r
+                               $this->getCapabilitiesFromAgent($this->userAgent, array($capability), array());\r
+                       }\r
+                       return $this->capabilities[$capability];\r
+               }\r
+               return $this->capabilities[$capability];\r
+       }\r
+       /**\r
+        * Get the version of the Tera-WURFL Remote Client (this file)\r
+        * @return String\r
+        */\r
+       public function getClientVersion(){\r
+               return $this->clientVersion;\r
+       }\r
+       /**\r
+        * Get the version of the Tera-WURFL Webservice (webservice.php on server).  This is only available\r
+        * after a query has been made since it is returned in the XML response.\r
+        * @return String\r
+        */\r
+       public function getAPIVersion(){\r
+               return $this->apiVersion;\r
+       }\r
+       /**\r
+        * Make the webservice call to the server using the GET method and load the XML response into $this->xml \r
+        * @param String The URI of the master server\r
+        * @return void\r
+        */\r
+       protected function callTeraWurfl($uri){\r
+               try{\r
+                       switch($this->format){\r
+                               case self::$FORMAT_JSON:\r
+                                       $data = file_get_contents($uri);\r
+                                       $this->json = json_decode($data,true);\r
+                                       if(is_null($this->json)){\r
+                                               // Trigger the catch block\r
+                                               throw new Exception("foo");\r
+                                       }\r
+                                       unset($data);\r
+                                       break;\r
+                               default:\r
+                               case self::$FORMAT_XML:\r
+                                       if(!$this->xml = simplexml_load_file($uri)){\r
+                                               throw new Exception("foo");\r
+                                       }\r
+                                       break;\r
+                       }\r
+               }catch(Exception $ex){\r
+                       // Can't use builtin logging here through Tera-WURFL since it is on the client, not the server\r
+                       throw new Exception("TeraWurflRemoteClient Error: Could not query Tera-WURFL master server.");\r
+                       exit(1);\r
+               }\r
+       }\r
+       /**\r
+        * Parse the response into the capabilities array\r
+        * @return void\r
+        */\r
+       protected function loadCapabilities(){\r
+               switch($this->format){\r
+                       case self::$FORMAT_JSON:\r
+                               $this->apiVersion = $this->json['apiVersion'];\r
+                               $this->capabilities = $this->json['capabilities'];\r
+                               break;\r
+                       default:\r
+                       case self::$FORMAT_XML:\r
+                               $this->apiVersion = $this->xml->device['apiVersion'];\r
+                               foreach($this->xml->device->capability as $cap){\r
+                                       $this->capabilities[(string)$cap['name']] = self::niceCast((string)$cap['value']);\r
+                               }\r
+                               break;\r
+               }\r
+       }\r
+       /**\r
+        * Parse the response's errors into the errors array\r
+        * @return void\r
+        */\r
+       protected function loadErrors(){\r
+               switch($this->format){\r
+                       case self::$FORMAT_JSON:\r
+                               $this->errors &= $this->json['errors'];\r
+                               break;\r
+                       default:\r
+                       case self::$FORMAT_XML:\r
+                               foreach($this->xml->errors->error as $error){\r
+                                       $this->errors[(string)$error['name']]=(string)$error['description'];\r
+                               }\r
+                               break;\r
+               }\r
+       }\r
+       /**\r
+        * Cast strings into proper variable types, i.e. 'true' into true\r
+        * @param $value\r
+        * @return Mixed String, Bool, Float\r
+        */\r
+       protected static function niceCast($value){\r
+               // Clean Boolean values\r
+               if($value === 'true')$value=true;\r
+               if($value === 'false')$value=false;\r
+               if(!is_bool($value)){\r
+                       // Clean Numeric values by loosely comparing the (float) to the (string)\r
+                       $numval = (float)$value;\r
+                       if(strcmp($value,$numval)==0)$value=$numval;\r
+               }\r
+               return $value;\r
+       }\r
+       /**\r
+        * Is the given URL valid\r
+        * @param $url\r
+        * @return Bool\r
+        */\r
+       protected static function validURL($url){\r
+               if(preg_match('/^(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/',$url)) return true;\r
+               return false;\r
+       }       \r
+       /**\r
+        * Return the requesting client's User Agent\r
+        * @param $source\r
+        * @return String\r
+        */\r
+       public static function getUserAgent($source=null){\r
+               if(is_null($source) || !is_array($source))$source = $_SERVER;\r
+               $userAgent = '';\r
+               if(isset($_GET['UA'])){\r
+                       $userAgent = $_GET['UA'];\r
+               }else{\r
+                       foreach(self::$userAgentHeaders as $header){\r
+                               if(array_key_exists($header,$source) && $source[$header]){\r
+                                       $userAgent = $source[$header];\r
+                                       break;\r
+                               }\r
+                       }\r
+               }\r
+               return $userAgent;\r
+       }\r
+}
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/about.tmpl.php b/docs/themes/simplified-desktop/about.tmpl.php
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/themes/simplified-desktop/admin/courses/courses.tmpl.php b/docs/themes/simplified-desktop/admin/courses/courses.tmpl.php
new file mode 100644 (file)
index 0000000..2a69e48
--- /dev/null
@@ -0,0 +1,227 @@
+<?php if ($this->mobile_device_type != IPAD_DEVICE): ?>
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               
+                       <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+               <div id="results-hide-show-simple-content" class="hide-show-container-surround">                
+                       <a id="results-hide-show-link" class="content-expand" href="javascript:void(0);" tabindex="1">Refine Results</a>
+               </div>
+       
+               
+       <div id="results-hide-show" role="search"  aria-live="assertive">
+       <div id="results-display">
+       
+               <div class="row">
+               <fieldset>
+                       <legend><?php echo _AT('access'); ?></legend>
+
+                       <input type="radio" name="access" value="0" id="s0" <?php if ($_GET['access'] == 0) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('public'); ?></label> 
+
+                       <input type="radio" name="access" value="1" id="s1" <?php if ($_GET['access'] == 1) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('protected'); ?></label> 
+
+                       <input type="radio" name="access" value="2" id="s2" <?php if ($_GET['access'] == 2) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('private'); ?></label>
+
+                       <input type="radio" name="access" value="" id="s" <?php if ($_GET['access'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
+               </fieldset>
+               </div>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('title').', '._AT('description'); ?>)</label><br />
+                       <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+       </div> <!-- end #results-display -->
+       </div> <!-- end #results-hide-show -->
+</form>
+
+<?php print_paginator($this->page, $this->num_results, $this->page_string . SEP . $this->order .'='. $col, $this->results_per_page); ?>
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="Course title, instructor, and enrollment." >
+<colgroup>
+       <?php if ($col == 'title'): ?>
+               <col />
+               <col class="sort" />
+               <col span="6" />
+       <?php elseif($col == 'login'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="5" />
+       <?php// elseif($col == 'access'): ?>
+               <!-- REMOVED FOR MOBILE <col span="3" />
+               <col class="sort" />
+               <col span="4" /> -->
+       <?php //elseif($col == 'created_date'): ?>
+               <!-- REMOVED FOR MOBILE<col span="4" />
+               <col class="sort" />
+               <col span="3" />-->
+       <?php //elseif($col == 'cat_name'): ?> 
+               <!-- REMOVED FOR MOBILE<col span="5" />
+               <col class="sort" />
+               <col span="2" /> -->
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=title<?php echo $page_string; ?>"><?php echo _AT('title');               ?></a></th>
+       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('Instructor');          ?></a></th>
+<!-- REMOVEED FOR MOBILE       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php // echo $this->orders[$this->order]; ?>=access<?php echo $page_string; ?>"><?php echo _AT('access');             ?></a></th> -->
+<!--   <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php //echo $this->orders[$this->order]; ?>=created_date<?php //echo $page_string; ?>"><?php // echo _AT('created_date'); ?></a></th> -->
+<!--   <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php //echo $this->orders[$this->order]; ?>=cat_name<?php //echo $page_string; ?>"><?php //echo _AT('category'); ?></a></th> -->
+       <th scope="col"><?php echo _AT('enrolled'); ?></th>
+<!--   <th scope="col"><?php //echo _AT('alumni'); ?></th> -->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="8"><input type="submit" name="view" value="<?php echo _AT('view'); ?>" /> 
+                                       <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+                                       <input type="submit" name="backups" value="<?php echo _AT('backups'); ?>" /> 
+                                       <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($this->num_rows): ?>
+       <?php while ($row = mysql_fetch_assoc($this->result)): ?>
+               <tr onkeydown="document.form['m<?php echo $row['course_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['m<?php echo $row['course_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['course_id']; ?>">
+                       <td><input type="radio" name="id" value="<?php echo $row['course_id']; ?>" id="m<?php echo $row['course_id']; ?>" /></td>
+                       <td><label for="m<?php echo $row['course_id']; ?>"><?php echo AT_print($row['title'], 'courses.title'); ?></label></td>
+                       <td><?php echo AT_print($row['login'],'members.login'); ?></td>
+               <!-- REMOVED FOR MOBILE <td><?php //echo _AT($row['access']); ?></td> -->
+               <!--    <td><?php //echo AT_date($startend_date_long_format, $row['created_date'], AT_DATE_UNIX_TIMESTAMP); ?></td> -->
+               <!--    <td><?php //echo ($row['cat_name'] ? $row['cat_name'] : '-')?></td>-->
+                       <td><?php echo ($this->enrolled[$row['course_id']]['y'] ? $this->enrolled[$row['course_id']]['y'] : 0); ?></td>
+               <!--    <td><?php //echo ($this->enrolled[$row['course_id']]['a'] ? $this->enrolled[$row['course_id']]['a'] : 0); ?></td> -->
+               </tr>
+       <?php endwhile; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="8"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
+<?php endif; ?> <!--  end template for smartphone -->
+<?php if ($this->mobile_device_type == IPAD_DEVICE): ?> 
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               
+                       <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+               <div id="hide-show-container">          
+                       <a id="results-hide-show-link" class="content-expand" href="javascript:void(0);" tabindex="1">Refine Results</a>
+               </div>
+       
+               
+       <div id="results-hide-show" role="search"  aria-live="assertive">
+       <div id="results-display">
+       
+               <div class="row">
+               <fieldset>
+                       <legend><?php echo _AT('access'); ?></legend>
+
+                       <input type="radio" name="access" value="0" id="s0" <?php if ($_GET['access'] == 0) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('public'); ?></label> 
+
+                       <input type="radio" name="access" value="1" id="s1" <?php if ($_GET['access'] == 1) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('protected'); ?></label> 
+
+                       <input type="radio" name="access" value="2" id="s2" <?php if ($_GET['access'] == 2) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('private'); ?></label>
+
+                       <input type="radio" name="access" value="" id="s" <?php if ($_GET['access'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
+               </fieldset>
+               </div>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('title').', '._AT('description'); ?>)</label><br />
+                       <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+       </div> <!-- end #results-display -->
+       </div> <!-- end #results-hide-show -->
+</form>
+
+<?php print_paginator($this->page, $this->num_results, $this->page_string . SEP . $this->order .'='. $col, $this->results_per_page); ?>
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="Course title, instructor, and enrollment." >
+<colgroup>
+       <?php if ($col == 'title'): ?>
+               <col />
+               <col class="sort" />
+               <col span="6" />
+       <?php elseif($col == 'login'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="5" />
+       <?php// elseif($col == 'access'): ?>
+               <!-- REMOVED FOR MOBILE <col span="3" />
+               <col class="sort" />
+               <col span="4" /> -->
+       <?php //elseif($col == 'created_date'): ?>
+               <!-- REMOVED FOR MOBILE<col span="4" />
+               <col class="sort" />
+               <col span="3" />-->
+       <?php //elseif($col == 'cat_name'): ?> 
+               <!-- REMOVED FOR MOBILE<col span="5" />
+               <col class="sort" />
+               <col span="2" /> -->
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=title<?php echo $page_string; ?>"><?php echo _AT('title');               ?></a></th>
+       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php echo $this->orders[$this->order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('Instructor');          ?></a></th>
+<!-- REMOVEED FOR MOBILE       <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php // echo $this->orders[$this->order]; ?>=access<?php echo $page_string; ?>"><?php echo _AT('access');             ?></a></th> -->
+<!--   <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php //echo $this->orders[$this->order]; ?>=created_date<?php //echo $page_string; ?>"><?php // echo _AT('created_date'); ?></a></th> -->
+<!--   <th scope="col"><a href="mods/_core/courses/admin/courses.php?<?php //echo $this->orders[$this->order]; ?>=cat_name<?php //echo $page_string; ?>"><?php //echo _AT('category'); ?></a></th> -->
+       <th scope="col"><?php echo _AT('enrolled'); ?></th>
+<!--   <th scope="col"><?php //echo _AT('alumni'); ?></th> -->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="8"><input type="submit" name="view" value="<?php echo _AT('view'); ?>" /> 
+                                       <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+                                       <input type="submit" name="backups" value="<?php echo _AT('backups'); ?>" /> 
+                                       <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($this->num_rows): ?>
+       <?php while ($row = mysql_fetch_assoc($this->result)): ?>
+               <tr onkeydown="document.form['m<?php echo $row['course_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['m<?php echo $row['course_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['course_id']; ?>">
+                       <td><input type="radio" name="id" value="<?php echo $row['course_id']; ?>" id="m<?php echo $row['course_id']; ?>" /></td>
+                       <td><label for="m<?php echo $row['course_id']; ?>"><?php echo AT_print($row['title'], 'courses.title'); ?></label></td>
+                       <td><?php echo AT_print($row['login'],'members.login'); ?></td>
+               <!-- REMOVED FOR MOBILE <td><?php //echo _AT($row['access']); ?></td> -->
+               <!--    <td><?php //echo AT_date($startend_date_long_format, $row['created_date'], AT_DATE_UNIX_TIMESTAMP); ?></td> -->
+               <!--    <td><?php //echo ($row['cat_name'] ? $row['cat_name'] : '-')?></td>-->
+                       <td><?php echo ($this->enrolled[$row['course_id']]['y'] ? $this->enrolled[$row['course_id']]['y'] : 0); ?></td>
+               <!--    <td><?php //echo ($this->enrolled[$row['course_id']]['a'] ? $this->enrolled[$row['course_id']]['a'] : 0); ?></td> -->
+               </tr>
+       <?php endwhile; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="8"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
+<?php endif; ?> <!--  end template for tablet -->
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/courses/create_course.tmpl.php b/docs/themes/simplified-desktop/admin/courses/create_course.tmpl.php
new file mode 100644 (file)
index 0000000..32285bb
--- /dev/null
@@ -0,0 +1,449 @@
+
+<?php 
+global $languageManager,  $_config, $MaxCourseSize, $MaxFileSize;
+
+?>
+<?php //echo _AT('available_immediately'); ?>
+<form method="post" action="<?php echo $_SERVER['PHP_SELF'];  ?>" name="course_form" enctype="multipart/form-data">
+       <input type="hidden" name="form_course" value="true" />
+       <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_config['prof_pic_max_file_size']; ?>" />
+       <input type="hidden" name="course" value="<?php echo $this->course; ?>" />
+       <input type="hidden" name="old_access" value="<?php echo $this->row['access']; ?>" />
+       <input type="hidden" name="created_date" value="<?php echo $this->row['created_date']; ?>" />
+       <input type="hidden" name="show_courses" value="<?php echo $_GET['show_courses']; ?>" />
+       <input type="hidden" name="current_cat" value="<?php echo $_GET['current_cat']; ?>" />
+       <input type="submit" name="submit" style="display:none;"/>
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('properties'); ?></legend>
+<?php if ($this->isadmin): ?>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="inst"><?php echo  _AT('instructor'); ?></label><br />
+                       <?php 
+                       
+                       
+                       if ($instructor_row = mysql_fetch_assoc($this->result)) {
+                               echo '<select name="instructor" id="inst">';
+                               do {
+                                       if ($instructor_row['member_id'] == $this->row['member_id']) {
+                                               echo '<option value="'.$instructor_row['member_id'].'" selected="selected">'.$instructor_row['login'].'</option>';
+                                       } else {
+                                               echo '<option value="'.$instructor_row['member_id'].'">'.$instructor_row['login'].'</option>';
+                                       }
+                               } while($instructor_row = mysql_fetch_assoc($this->result));
+                               echo '</select>';
+                       } else {
+                               echo '<span id="inst">'._AT('none_found').'</span>';
+                       }
+                       ?>
+       </div>
+<?php endif; ?>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" id="title" name="title" size="40" value="<?php echo htmlspecialchars($this->row['title']); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="pri_lang"><?php  echo _AT('primary_language'); ?></label><br />
+               <?php $languageManager->printDropdown($this->row['primary_language'], 'pri_lang', 'pri_lang'); ?>
+       </div>
+
+       <div class="row">
+               <label for="description"><?php echo _AT('description'); ?></label><br />
+               <textarea id="description" cols="40" rows="2" name="description"><?php echo $this->row['description']; ?></textarea>
+       </div>
+       <?php if ($_config['course_dir_name']): ?>
+       <div class="row">
+               <label for="course_dir_name"><?php echo _AT('course_dir_name'); ?></label><br />
+               <input type="text" id="course_dir_name" name="course_dir_name" size="40" value="<?php echo htmlspecialchars($this->row['course_dir_name']); ?>" />
+       </div>
+       <?php endif; ?>
+
+       <?php $categories = get_categories(); ?>
+       <?php if (is_array($categories)): ?>
+               <div class="row">
+               <label for="cat"><?php echo _AT('category'); ?></label><br />
+                       <select name="category_parent" id="cat">
+                               <option value="0">&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;<?php echo _AT('cats_uncategorized'); ?>&nbsp;&nbsp;]&nbsp;&nbsp;&nbsp;</option>
+                               <?php select_categories($categories, 0, $this->row['cat_id'], false); ?>
+
+                       </select>
+               </div>
+       <?php endif; ?>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php  echo _AT('export_content'); ?></legend>
+               <?php
+                       switch ($this->row['content_packaging']) {
+                               case 'none':
+                                               $none = ' checked="checked"';
+                                               break;
+
+                               case 'top':
+                                               $top     = ' checked="checked"';
+                                               break;
+
+                               case 'all':
+                                               $all    = ' checked="checked"';
+                                               break;
+                       }
+                       ?>
+               <label for="none" ><input type="radio" name="content_packaging" value="none" id="none" <?php echo $none; ?> /><?php echo _AT('content_packaging_none'); ?></label><br />
+               <label for="ctop"><input type="radio" name="content_packaging" value="top" id="ctop"  <?php echo $top; ?> /><?php  echo _AT('content_packaging_top'); ?></label><br />
+               <label for="all"><input type="radio" name="content_packaging" value="all" id="all" <?php echo $all; ?> /><?php  echo _AT('content_packaging_all'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('syndicate_announcements'); ?></legend>
+               <?php
+                               $rss_no = $rss_yes = '';
+
+                               if ($this->row['rss']) {
+                                       $rss_yes = ' checked="checked"';
+                               } else {
+                                       $rss_no = ' checked="checked"';
+                               }
+               ?>
+               <label for="rss_y"><input type="radio" name="rss" value="1" id="rss_y" <?php echo $rss_yes; ?> /><?php echo _AT('enable_syndicate'); ?></label><br />
+               <label for="rss_n"><input type="radio" name="rss" value="0" id="rss_n"  <?php echo $rss_no; ?> /><?php  echo _AT('disable_syndicate'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('access'); ?></legend>
+               <?php
+                               switch ($this->row['access']) {
+                                       case 'public':
+                                                       $pub = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'protected':
+                                                       $prot    = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'private':
+                                                       $priv   = ' checked="checked"';
+                                                       break;
+                               }
+
+                               if ($this->row['notify']) {
+                                       $notify = ' checked="checked"';
+                               }
+
+                               if ($this->row['hide']) {
+                                       $hide = ' checked="checked"';
+                               }
+               ?>
+               <input type="radio" name="access" value="public" id="pub" onclick="disableNotify();" <?php echo $pub; ?> /><label for="pub"><strong> <?php echo  _AT('public'); ?>: </strong></label><?php echo  _AT('about_public'); ?><br /><br />
+
+               <input type="radio" name="access" value="protected" id="prot" onclick="disableNotify();" <?php echo $prot; ?> /><label for="prot"><strong><?php echo  _AT('protected'); ?>:</strong></label> <?php echo _AT('about_protected'); ?><br /><br />
+
+               <input type="radio" name="access" value="private" id="priv" onclick="enableNotify();" <?php echo $priv; ?> /><label for="priv"><strong><?php echo  _AT('private'); ?>:</strong></label> <?php echo  _AT('about_private'); ?><br />
+               <input type="checkbox" name="notify" id="notify" value="1" <?php
+                       echo $disable;
+                       echo $notify; ?> /><label for="notify"><?php echo  _AT('email_approvals'); ?></label>
+               <br />
+               <input type="checkbox" name="hide" id="hide" value="1" <?php
+               echo $disable;
+               echo $hide; ?> /><label for="hide"><?php echo  _AT('hide_course'); ?></label>.
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('release_date'); ?></legend>
+               <?php
+                       $rel_no = $rel_yes = '';
+
+                       if (intval($this->row['release_date'])) {
+                               $rel_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['release_date'], 8, 2);
+                               $today_mon   = substr($this->row['release_date'], 5, 2);
+                               $today_year  = substr($this->row['release_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['release_date'], 11, 2);
+                               $today_min   = substr($this->row['release_date'], 14, 2);
+                       } else {
+                               $rel_no = ' checked="checked"'; 
+                               $today_year  = date('Y');
+                       }
+
+               ?>
+
+               <input type="radio" name="release_date" value="0" id="release_now" <?php echo $rel_no; ?> /> <label for="release_now"><?php echo _AT('available_immediately'); ?></label><br />
+
+
+               <input type="radio" name="release_date" value="1" id="release_later" <?php echo $rel_yes; ?> /> <label for="release_later"><?php echo _AT('release_on'); ?></label> 
+               <?php
+                       $name = '_release';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+       </fieldset>     
+       </div>
+
+       <div class="row">
+       <fieldset><legend>
+               <?php echo _AT('end_date'); ?></legend>
+               <?php
+                       $end_no = $end_yes = '';
+
+                       if (intval($this->row['end_date'])) {
+                               $end_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['end_date'], 8, 2);
+                               $today_mon   = substr($this->row['end_date'], 5, 2);
+                               $today_year  = substr($this->row['end_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['end_date'], 11, 2);
+                               $today_min   = substr($this->row['end_date'], 14, 2);
+                       } else {
+                               $end_no = ' checked="checked"'; 
+                               $today_year  = date('Y')+1;
+                       }
+
+               ?>
+
+               <input type="radio" name="end_date" value="0" id="end_now" <?php echo $end_no; ?> /> <label for="end_now"><?php echo _AT('no_end_date'); ?></label><br />
+
+               <input type="radio" name="end_date" value="1" id="end_later" <?php echo $end_yes; ?> /> <label for="end_later"><?php echo _AT('end_on'); ?></label> 
+               <?php
+                       $name = '_end';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+               </fieldset>
+       </div>
+
+       <div class="row">
+               <?php
+                       if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
+                               echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
+                               echo '<input type="submit" name="settext" value="'._AT('switch_text').'"  class="button"/>';
+                       } else {
+                               echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'" class="button"/>';
+                       }
+               ?>
+       </div>
+       <div class="row">
+
+               <label for="banner"><?php echo _AT('banner'); ?></label><br />
+               <textarea id="banner" cols="40" rows="15" name="banner"><?php echo $this->row['banner']; ?></textarea>
+       </div>
+<!-- FIX  -->
+<?php if (!$this->course) : ?>
+       <div class="row">
+               <label for="initial_content"><?php echo _AT('initial_content'); ?></label><br />
+               <select name="initial_content" id="initial_content" size="5">
+                       <option value="0"><?php echo _AT('empty'); ?></option>
+                       <option value="1" selected="selected"><?php echo _AT('create_basic'); ?></option>
+                       <?php 
+                       
+                       if ($course_row = mysql_fetch_assoc($result)) {
+                               do {
+                                       $Backup->setCourseID($course_row['course_id']);
+                                       $list = $Backup->getAvailableList();
+
+                                       if (!empty($list)) { 
+                                               echo '<optgroup label="'. _AT('restore').': '.$course_row['title'].'">';
+                                               foreach ($list as $list_item) {
+                                                       echo '<option value="'.$list_item['backup_id'].'_'.$list_item['course_id'].'">'.$list_item['file_name'].' - '.get_human_size($list_item['file_size']).'</option>';
+                                               }
+                                               echo '</optgroup>';
+                                       }
+                               } while ($course_row = mysql_fetch_assoc($result));
+                       }
+                       ?>
+                       </select>
+       </div>
+<?php endif; // !$course_id ?>
+
+<?php if ($this->isadmin) : ?>
+       <div class="row">
+               <?php  echo _AT('course_quota'); ?><br />
+               <?php 
+                       if ($this->row['max_quota'] == AT_COURSESIZE_UNLIMITED) { 
+                               $c_unlim = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_quota'] == AT_COURSESIZE_DEFAULT) {
+                               $c_def = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $c_oth = ' checked="checked" ';
+                               $c_oth2 = '';
+                       }
+
+                       if ($this->course > 0) {
+                               $course_size = dirsize(AT_CONTENT_DIR . $this->course.'/');
+                       } else {
+                               $course_size = 0;
+                       }
+
+                       if ($this->course) {
+                               echo _AT('current_course_size') .': '.get_human_size($course_size).'<br />'; 
+                       }
+               ?>
+
+               <input type="radio" id="c_default" name="quota" value="<?php echo AT_COURSESIZE_DEFAULT; ?>" onclick="disableOther();" <?php echo $c_def;?> /><label for="c_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxCourseSize).')'; ?></label> <br />
+               <input type="radio" id="c_unlim" name="quota" value="<?php echo AT_COURSESIZE_UNLIMITED; ?>" onclick="disableOther();" <?php echo $c_unlim;?>/><label for="c_unlim"> <?php echo _AT('unlimited'); ?></label> <br />
+               <input type="radio" id="c_other" name="quota" value="2" onclick="enableOther();" <?php echo $c_oth;?>/><label for="c_other"> <?php echo _AT('other'); ?> </label> - 
+               <label for="quota_entered">Quota Entered</label>
+               <input type="text" id="quota_entered" name="quota_entered" <?php echo $c_oth2?> value="<?php if ($this->row['max_quota']!=AT_COURSESIZE_UNLIMITED && $this->row['max_quota']!=AT_COURSESIZE_DEFAULT) { echo bytes_to_megabytes($this->row['max_quota']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+       <div class="row">
+               <?php  echo _AT('max_file_size'); ?><br />
+               <?php 
+                       $max_allowed = megabytes_to_bytes(substr(ini_get('upload_max_filesize'), 0, -1));
+
+                       if ($this->row['max_file_size'] == AT_FILESIZE_DEFAULT) { 
+                               $f_def = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_file_size'] == AT_FILESIZE_SYSTEM_MAX) {
+                               $f_max = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $f_oth = ' checked="checked" ';
+                               $f_oth2 = '';
+                       }
+               ?>
+               <input type="radio" id="f_default" name="filesize" value="<?php echo AT_FILESIZE_DEFAULT; ?>" onclick="disableOther2();" <?php echo $f_def;?> /><label for="f_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxFileSize).')'; ?></label> <br />
+               <input type="radio" id="f_maxallowed" name="filesize" value="<?php echo AT_FILESIZE_SYSTEM_MAX; ?>" onclick="disableOther2();" <?php echo $f_max;?>/><label for="f_maxallowed"> <?php echo _AT('max_file_size_system') . ' ('.get_human_size($max_allowed).')'; ?></label> <br />
+               <input type="radio" id="f_other" name="filesize" value="2" onclick="enableOther2();" <?php echo $f_oth;?>/><label for="f_other"> <?php echo _AT('other'); ?> </label> - 
+               <label for="filesize_entered">Filesize entered</label>
+               <input type="text" id="filesize_entered" name="filesize_entered" <?php echo $f_oth2?> value="<?php if ($this->row['max_file_size']!=AT_FILESIZE_DEFAULT && $this->row['max_file_size']!=AT_FILESIZE_SYSTEM_MAX) { echo bytes_to_megabytes($this->row['max_file_size']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+<?php else: ?>
+       <input type="hidden" name="quota" value="<?php echo $this->row['max_quota']; ?>" />
+       <input type="hidden" name="filesize" value="<?php echo $this->row['max_file_size']; ?>" />
+       <input type="hidden" name="tracking" value="<?php echo $this->row['tracking']; ?>" />
+<?php endif; ?>
+
+       <div class="row">
+               <label for="copyright"><?php echo _AT('course_copyright'); ?></label><br />
+               <textarea name="copyright" rows="2" cols="40" id="copyright"><?php echo $this->row['copyright']; ?></textarea>
+       </div>
+       <div class="row">
+               <?php 
+            if ($this->row['icon'] != ''): 
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                if (file_exists($path.$this->row['icon'])) {
+                    if (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) {
+                        $custom_icon_path = 'get_course_icon.php/?id='.$this->row['course_id'];
+                    } else {
+                        $_base_href = 'content/' . $this->row['course_id'] . '/';
+                    }
+                } else {
+                    $_base_href = "images/courses/";   //$_base_href = 'get_course_icon.php/?id='.$row['course_id'];
+                }
+
+            $force_get = (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) ? true : false;
+            echo "<input type='hidden' name='boolForce' id='boolForce' value='$force_get' />";
+        
+       //include(AT_INCLUDE_PATH.'html/course_icon.inc.php');        
+        ?>
+               <img id="i0" src="<?php echo ($custom_icon_path=='')?$_base_href.$this->row['icon']:$custom_icon_path; ?>" alt="<?php echo $this->row['icon']; ?>" border="1" height="79" width="79"  />
+
+               <?php else: ?>
+                       <img id="i0" src="images/clr.gif" alt="" border="1" height="79" width="79"  />
+                       <input type='hidden' name='boolForce' id='boolForce' value='' />
+               <?php endif; ?>
+               <div>
+               <label for="icons"><?php echo _AT('icon'); ?></label><br />
+               <select name="icon" id="icons" onchange="SelectImg()">
+                       <option value=""><?php echo _AT('no_icon'); ?></option>
+            <?php // ------------- custom course icons
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                $boolCustom = false;
+                $optCount = 0;
+
+                if (is_dir($path)) {
+                    $boolCustom = true;  // true if custom icons are uploaded, otherwise false
+                    
+                    /*$files = scandir($path);  //SCANDIR STOPS ATUTOR WHEN RUN AS INSTRUCTOR, BUT NOT AS ADMIN. WHY? -Gorzan */
+                    
+                    /* PHP 4 REPLACEMENT FOR SCANDIR */
+                                       $dh  = opendir($path);
+                                       while (false !== ($filename = readdir($dh))) {
+                                               $files[] = $filename;
+                                       }
+
+                                       /*END PHP 4 REPLACEMENT FOR SCANDIR*/
+                    echo "<optgroup label='"._AT('custom_icons')."'>";
+                    foreach($files as $val) {
+                                               $file_ext = substr(strtolower($val), -3);
+                        if ($file_ext == "jpg" || $file_ext == "png" || $file_ext == "gif") {
+                            $optCount++;
+                            echo "<option value='".$val."'";
+                            if ($val == $this->row['icon']) {
+                                echo 'selected="selected"';
+                            }
+                            echo ">".$val."</option>";
+                        }
+                    }
+                    echo "</optgroup>";
+                }
+                
+            ?>
+                       <?php // ------------- other icons
+
+                               $course_imgs = array();
+                               if ($dir = opendir(AT_INCLUDE_PATH.'../images/courses/')) {
+                                       while (false !== ($file = readdir($dir)) ) {
+                                               if( ($file == '.') || ($file == '..')) { 
+                                                       continue;
+                                               }
+                                               $course_imgs[] = $file;
+                                       }               
+                                       closedir($dir); 
+                               }
+                               sort($course_imgs);
+                if ($boolCustom == true) {
+                    echo "<optgroup label='"._AT('builtin_icons')."'>";
+                }
+                               foreach ($course_imgs as $file) {
+                                       echo '<option value="' . $file . '" ';
+                                       if ($file == $this->row['icon']) { 
+                                               echo 'selected="selected"'; 
+                                       }
+                                       echo ' >' . $file . '</option>';        
+                               }
+                if ($boolCustom == true) {
+                    echo "</optgroup>";
+                }
+                       ?>
+               </select><?php echo "&nbsp;&nbsp;&nbsp; "._AT('or'); echo "<br />"?>
+       </div>
+    
+            <?php echo _AT('upload_icon'); ?><br />
+               <label for="customicon"><input type="file" name="customicon" title="custom icon" id="customicon" value="<?php echo $_POST['customicon']; ?>"/></label><br />
+                <small><?php echo _AT('upload_icon_text'); ?></small>
+       
+        <?php  //require_once(AT_INCLUDE_PATH.'../mods/_core/courses/html/course_icon.inc.php'); ?>
+
+        <br />
+
+       </div>
+
+   
+       <div class="buttons">
+
+               <?php
+            echo "<input type='hidden' name='custOptCount' id='custOptCount' value='".$optCount."' />";
+            echo "<input type='hidden' name='courseId' id='courseId' value='".$this->row['course_id']."' />";
+               ?>
+
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel');?>" />
+       </div>
+    </fieldset>
+</div>
+
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/courses/default_mods.tmpl.php b/docs/themes/simplified-desktop/admin/courses/default_mods.tmpl.php
new file mode 100644 (file)
index 0000000..13bd804
--- /dev/null
@@ -0,0 +1,67 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<table class="data static" summary="Table of default course tools">
+<thead>
+<tr>
+       <th scope="cols"><?php echo _AT('section'); ?></th>
+       <th><?php echo _AT('location'); ?></th>
+       <th><?php echo _AT('order'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="3" >               
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s"  />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />     
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php 
+
+
+foreach ($this->current_modules as $tool) :
+       $count++; 
+?>
+       <tr>
+               <td><?php 
+               if (isset($this->pages[$tool]['title'])) {
+                       echo $this->pages[$tool]['title'];
+               } else {
+                       echo _AT($this->pages[$tool]['title_var']);
+               } ?></td>
+               <td align="center">
+                       <?php if (in_array($tool, $this->main_defaults)): ?>
+                               <input type="checkbox" name="main[]" value="<?php echo $tool; ?>" id="m<?php echo $tool; ?>" checked="checked" /><label for="m<?php echo $tool; ?>"><?php echo _AT('main_navigation'); ?></label>
+                       <?php else: ?>
+                               <input type="checkbox" name="main[]" value="<?php echo $tool; ?>" id="m<?php echo $tool; ?>" /><label for="m<?php echo $tool; ?>"><?php echo _AT('main_navigation'); ?></label>
+                       <?php endif; ?>
+
+                       <?php if (in_array($tool, $this->home_defaults)): ?>
+                               <input type="checkbox" name="home[]" value="<?php echo $tool; ?>" id="h<?php echo $tool; ?>" checked="checked" /><label for="h<?php echo $tool; ?>"><?php echo _AT('home'); ?></label>
+                       <?php else: ?>
+                               <input type="checkbox" name="home[]" value="<?php echo $tool; ?>" id="h<?php echo $tool; ?>" /><label for="h<?php echo $tool; ?>"><?php echo _AT('home'); ?></label>
+                       <?php endif; ?>
+               </td>
+               <td align="right">
+                       <?php if (!in_array($tool, $this->home_defaults) && !in_array($tool, $this->main_defaults)): ?>
+                               &nbsp;
+                       <?php else: ?>
+                               <?php if (($count != $this->num_main+1) && ($count > 1)): ?>
+                                       <input type="submit" name="up[<?php echo $tool; ?>]" value="<?php echo _AT('move_up'); ?>" title="<?php echo _AT('move_up'); ?>" style="background-color: white; border: 1px solid; padding: 0px;" />
+                               <?php else: ?>
+                                       <img src="images/clr.gif" alt="" width="12" />
+                               <?php endif; ?>
+                               <?php if (($count != $this->num_main) && ($count < $this->num_modules)): ?>
+                                       <input type="submit" name="down[<?php echo $tool; ?>]" value="<?php echo _AT('move_down'); ?>" title="<?php echo _AT('move_down'); ?>" style="background-color: white; border: 1px solid; padding: 0px;"/>
+                               <?php else: ?>
+                                       <img src="images/clr.gif" alt="" width="12" />
+                               <?php endif; ?>
+                       <?php endif; ?>
+               </td>
+       </tr>
+<?php 
+endforeach; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/courses/edit_course.tmpl.php b/docs/themes/simplified-desktop/admin/courses/edit_course.tmpl.php
new file mode 100644 (file)
index 0000000..32285bb
--- /dev/null
@@ -0,0 +1,449 @@
+
+<?php 
+global $languageManager,  $_config, $MaxCourseSize, $MaxFileSize;
+
+?>
+<?php //echo _AT('available_immediately'); ?>
+<form method="post" action="<?php echo $_SERVER['PHP_SELF'];  ?>" name="course_form" enctype="multipart/form-data">
+       <input type="hidden" name="form_course" value="true" />
+       <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_config['prof_pic_max_file_size']; ?>" />
+       <input type="hidden" name="course" value="<?php echo $this->course; ?>" />
+       <input type="hidden" name="old_access" value="<?php echo $this->row['access']; ?>" />
+       <input type="hidden" name="created_date" value="<?php echo $this->row['created_date']; ?>" />
+       <input type="hidden" name="show_courses" value="<?php echo $_GET['show_courses']; ?>" />
+       <input type="hidden" name="current_cat" value="<?php echo $_GET['current_cat']; ?>" />
+       <input type="submit" name="submit" style="display:none;"/>
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('properties'); ?></legend>
+<?php if ($this->isadmin): ?>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="inst"><?php echo  _AT('instructor'); ?></label><br />
+                       <?php 
+                       
+                       
+                       if ($instructor_row = mysql_fetch_assoc($this->result)) {
+                               echo '<select name="instructor" id="inst">';
+                               do {
+                                       if ($instructor_row['member_id'] == $this->row['member_id']) {
+                                               echo '<option value="'.$instructor_row['member_id'].'" selected="selected">'.$instructor_row['login'].'</option>';
+                                       } else {
+                                               echo '<option value="'.$instructor_row['member_id'].'">'.$instructor_row['login'].'</option>';
+                                       }
+                               } while($instructor_row = mysql_fetch_assoc($this->result));
+                               echo '</select>';
+                       } else {
+                               echo '<span id="inst">'._AT('none_found').'</span>';
+                       }
+                       ?>
+       </div>
+<?php endif; ?>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" id="title" name="title" size="40" value="<?php echo htmlspecialchars($this->row['title']); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="pri_lang"><?php  echo _AT('primary_language'); ?></label><br />
+               <?php $languageManager->printDropdown($this->row['primary_language'], 'pri_lang', 'pri_lang'); ?>
+       </div>
+
+       <div class="row">
+               <label for="description"><?php echo _AT('description'); ?></label><br />
+               <textarea id="description" cols="40" rows="2" name="description"><?php echo $this->row['description']; ?></textarea>
+       </div>
+       <?php if ($_config['course_dir_name']): ?>
+       <div class="row">
+               <label for="course_dir_name"><?php echo _AT('course_dir_name'); ?></label><br />
+               <input type="text" id="course_dir_name" name="course_dir_name" size="40" value="<?php echo htmlspecialchars($this->row['course_dir_name']); ?>" />
+       </div>
+       <?php endif; ?>
+
+       <?php $categories = get_categories(); ?>
+       <?php if (is_array($categories)): ?>
+               <div class="row">
+               <label for="cat"><?php echo _AT('category'); ?></label><br />
+                       <select name="category_parent" id="cat">
+                               <option value="0">&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;<?php echo _AT('cats_uncategorized'); ?>&nbsp;&nbsp;]&nbsp;&nbsp;&nbsp;</option>
+                               <?php select_categories($categories, 0, $this->row['cat_id'], false); ?>
+
+                       </select>
+               </div>
+       <?php endif; ?>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php  echo _AT('export_content'); ?></legend>
+               <?php
+                       switch ($this->row['content_packaging']) {
+                               case 'none':
+                                               $none = ' checked="checked"';
+                                               break;
+
+                               case 'top':
+                                               $top     = ' checked="checked"';
+                                               break;
+
+                               case 'all':
+                                               $all    = ' checked="checked"';
+                                               break;
+                       }
+                       ?>
+               <label for="none" ><input type="radio" name="content_packaging" value="none" id="none" <?php echo $none; ?> /><?php echo _AT('content_packaging_none'); ?></label><br />
+               <label for="ctop"><input type="radio" name="content_packaging" value="top" id="ctop"  <?php echo $top; ?> /><?php  echo _AT('content_packaging_top'); ?></label><br />
+               <label for="all"><input type="radio" name="content_packaging" value="all" id="all" <?php echo $all; ?> /><?php  echo _AT('content_packaging_all'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('syndicate_announcements'); ?></legend>
+               <?php
+                               $rss_no = $rss_yes = '';
+
+                               if ($this->row['rss']) {
+                                       $rss_yes = ' checked="checked"';
+                               } else {
+                                       $rss_no = ' checked="checked"';
+                               }
+               ?>
+               <label for="rss_y"><input type="radio" name="rss" value="1" id="rss_y" <?php echo $rss_yes; ?> /><?php echo _AT('enable_syndicate'); ?></label><br />
+               <label for="rss_n"><input type="radio" name="rss" value="0" id="rss_n"  <?php echo $rss_no; ?> /><?php  echo _AT('disable_syndicate'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('access'); ?></legend>
+               <?php
+                               switch ($this->row['access']) {
+                                       case 'public':
+                                                       $pub = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'protected':
+                                                       $prot    = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'private':
+                                                       $priv   = ' checked="checked"';
+                                                       break;
+                               }
+
+                               if ($this->row['notify']) {
+                                       $notify = ' checked="checked"';
+                               }
+
+                               if ($this->row['hide']) {
+                                       $hide = ' checked="checked"';
+                               }
+               ?>
+               <input type="radio" name="access" value="public" id="pub" onclick="disableNotify();" <?php echo $pub; ?> /><label for="pub"><strong> <?php echo  _AT('public'); ?>: </strong></label><?php echo  _AT('about_public'); ?><br /><br />
+
+               <input type="radio" name="access" value="protected" id="prot" onclick="disableNotify();" <?php echo $prot; ?> /><label for="prot"><strong><?php echo  _AT('protected'); ?>:</strong></label> <?php echo _AT('about_protected'); ?><br /><br />
+
+               <input type="radio" name="access" value="private" id="priv" onclick="enableNotify();" <?php echo $priv; ?> /><label for="priv"><strong><?php echo  _AT('private'); ?>:</strong></label> <?php echo  _AT('about_private'); ?><br />
+               <input type="checkbox" name="notify" id="notify" value="1" <?php
+                       echo $disable;
+                       echo $notify; ?> /><label for="notify"><?php echo  _AT('email_approvals'); ?></label>
+               <br />
+               <input type="checkbox" name="hide" id="hide" value="1" <?php
+               echo $disable;
+               echo $hide; ?> /><label for="hide"><?php echo  _AT('hide_course'); ?></label>.
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('release_date'); ?></legend>
+               <?php
+                       $rel_no = $rel_yes = '';
+
+                       if (intval($this->row['release_date'])) {
+                               $rel_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['release_date'], 8, 2);
+                               $today_mon   = substr($this->row['release_date'], 5, 2);
+                               $today_year  = substr($this->row['release_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['release_date'], 11, 2);
+                               $today_min   = substr($this->row['release_date'], 14, 2);
+                       } else {
+                               $rel_no = ' checked="checked"'; 
+                               $today_year  = date('Y');
+                       }
+
+               ?>
+
+               <input type="radio" name="release_date" value="0" id="release_now" <?php echo $rel_no; ?> /> <label for="release_now"><?php echo _AT('available_immediately'); ?></label><br />
+
+
+               <input type="radio" name="release_date" value="1" id="release_later" <?php echo $rel_yes; ?> /> <label for="release_later"><?php echo _AT('release_on'); ?></label> 
+               <?php
+                       $name = '_release';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+       </fieldset>     
+       </div>
+
+       <div class="row">
+       <fieldset><legend>
+               <?php echo _AT('end_date'); ?></legend>
+               <?php
+                       $end_no = $end_yes = '';
+
+                       if (intval($this->row['end_date'])) {
+                               $end_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['end_date'], 8, 2);
+                               $today_mon   = substr($this->row['end_date'], 5, 2);
+                               $today_year  = substr($this->row['end_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['end_date'], 11, 2);
+                               $today_min   = substr($this->row['end_date'], 14, 2);
+                       } else {
+                               $end_no = ' checked="checked"'; 
+                               $today_year  = date('Y')+1;
+                       }
+
+               ?>
+
+               <input type="radio" name="end_date" value="0" id="end_now" <?php echo $end_no; ?> /> <label for="end_now"><?php echo _AT('no_end_date'); ?></label><br />
+
+               <input type="radio" name="end_date" value="1" id="end_later" <?php echo $end_yes; ?> /> <label for="end_later"><?php echo _AT('end_on'); ?></label> 
+               <?php
+                       $name = '_end';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+               </fieldset>
+       </div>
+
+       <div class="row">
+               <?php
+                       if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
+                               echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
+                               echo '<input type="submit" name="settext" value="'._AT('switch_text').'"  class="button"/>';
+                       } else {
+                               echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'" class="button"/>';
+                       }
+               ?>
+       </div>
+       <div class="row">
+
+               <label for="banner"><?php echo _AT('banner'); ?></label><br />
+               <textarea id="banner" cols="40" rows="15" name="banner"><?php echo $this->row['banner']; ?></textarea>
+       </div>
+<!-- FIX  -->
+<?php if (!$this->course) : ?>
+       <div class="row">
+               <label for="initial_content"><?php echo _AT('initial_content'); ?></label><br />
+               <select name="initial_content" id="initial_content" size="5">
+                       <option value="0"><?php echo _AT('empty'); ?></option>
+                       <option value="1" selected="selected"><?php echo _AT('create_basic'); ?></option>
+                       <?php 
+                       
+                       if ($course_row = mysql_fetch_assoc($result)) {
+                               do {
+                                       $Backup->setCourseID($course_row['course_id']);
+                                       $list = $Backup->getAvailableList();
+
+                                       if (!empty($list)) { 
+                                               echo '<optgroup label="'. _AT('restore').': '.$course_row['title'].'">';
+                                               foreach ($list as $list_item) {
+                                                       echo '<option value="'.$list_item['backup_id'].'_'.$list_item['course_id'].'">'.$list_item['file_name'].' - '.get_human_size($list_item['file_size']).'</option>';
+                                               }
+                                               echo '</optgroup>';
+                                       }
+                               } while ($course_row = mysql_fetch_assoc($result));
+                       }
+                       ?>
+                       </select>
+       </div>
+<?php endif; // !$course_id ?>
+
+<?php if ($this->isadmin) : ?>
+       <div class="row">
+               <?php  echo _AT('course_quota'); ?><br />
+               <?php 
+                       if ($this->row['max_quota'] == AT_COURSESIZE_UNLIMITED) { 
+                               $c_unlim = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_quota'] == AT_COURSESIZE_DEFAULT) {
+                               $c_def = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $c_oth = ' checked="checked" ';
+                               $c_oth2 = '';
+                       }
+
+                       if ($this->course > 0) {
+                               $course_size = dirsize(AT_CONTENT_DIR . $this->course.'/');
+                       } else {
+                               $course_size = 0;
+                       }
+
+                       if ($this->course) {
+                               echo _AT('current_course_size') .': '.get_human_size($course_size).'<br />'; 
+                       }
+               ?>
+
+               <input type="radio" id="c_default" name="quota" value="<?php echo AT_COURSESIZE_DEFAULT; ?>" onclick="disableOther();" <?php echo $c_def;?> /><label for="c_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxCourseSize).')'; ?></label> <br />
+               <input type="radio" id="c_unlim" name="quota" value="<?php echo AT_COURSESIZE_UNLIMITED; ?>" onclick="disableOther();" <?php echo $c_unlim;?>/><label for="c_unlim"> <?php echo _AT('unlimited'); ?></label> <br />
+               <input type="radio" id="c_other" name="quota" value="2" onclick="enableOther();" <?php echo $c_oth;?>/><label for="c_other"> <?php echo _AT('other'); ?> </label> - 
+               <label for="quota_entered">Quota Entered</label>
+               <input type="text" id="quota_entered" name="quota_entered" <?php echo $c_oth2?> value="<?php if ($this->row['max_quota']!=AT_COURSESIZE_UNLIMITED && $this->row['max_quota']!=AT_COURSESIZE_DEFAULT) { echo bytes_to_megabytes($this->row['max_quota']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+       <div class="row">
+               <?php  echo _AT('max_file_size'); ?><br />
+               <?php 
+                       $max_allowed = megabytes_to_bytes(substr(ini_get('upload_max_filesize'), 0, -1));
+
+                       if ($this->row['max_file_size'] == AT_FILESIZE_DEFAULT) { 
+                               $f_def = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_file_size'] == AT_FILESIZE_SYSTEM_MAX) {
+                               $f_max = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $f_oth = ' checked="checked" ';
+                               $f_oth2 = '';
+                       }
+               ?>
+               <input type="radio" id="f_default" name="filesize" value="<?php echo AT_FILESIZE_DEFAULT; ?>" onclick="disableOther2();" <?php echo $f_def;?> /><label for="f_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxFileSize).')'; ?></label> <br />
+               <input type="radio" id="f_maxallowed" name="filesize" value="<?php echo AT_FILESIZE_SYSTEM_MAX; ?>" onclick="disableOther2();" <?php echo $f_max;?>/><label for="f_maxallowed"> <?php echo _AT('max_file_size_system') . ' ('.get_human_size($max_allowed).')'; ?></label> <br />
+               <input type="radio" id="f_other" name="filesize" value="2" onclick="enableOther2();" <?php echo $f_oth;?>/><label for="f_other"> <?php echo _AT('other'); ?> </label> - 
+               <label for="filesize_entered">Filesize entered</label>
+               <input type="text" id="filesize_entered" name="filesize_entered" <?php echo $f_oth2?> value="<?php if ($this->row['max_file_size']!=AT_FILESIZE_DEFAULT && $this->row['max_file_size']!=AT_FILESIZE_SYSTEM_MAX) { echo bytes_to_megabytes($this->row['max_file_size']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+<?php else: ?>
+       <input type="hidden" name="quota" value="<?php echo $this->row['max_quota']; ?>" />
+       <input type="hidden" name="filesize" value="<?php echo $this->row['max_file_size']; ?>" />
+       <input type="hidden" name="tracking" value="<?php echo $this->row['tracking']; ?>" />
+<?php endif; ?>
+
+       <div class="row">
+               <label for="copyright"><?php echo _AT('course_copyright'); ?></label><br />
+               <textarea name="copyright" rows="2" cols="40" id="copyright"><?php echo $this->row['copyright']; ?></textarea>
+       </div>
+       <div class="row">
+               <?php 
+            if ($this->row['icon'] != ''): 
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                if (file_exists($path.$this->row['icon'])) {
+                    if (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) {
+                        $custom_icon_path = 'get_course_icon.php/?id='.$this->row['course_id'];
+                    } else {
+                        $_base_href = 'content/' . $this->row['course_id'] . '/';
+                    }
+                } else {
+                    $_base_href = "images/courses/";   //$_base_href = 'get_course_icon.php/?id='.$row['course_id'];
+                }
+
+            $force_get = (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) ? true : false;
+            echo "<input type='hidden' name='boolForce' id='boolForce' value='$force_get' />";
+        
+       //include(AT_INCLUDE_PATH.'html/course_icon.inc.php');        
+        ?>
+               <img id="i0" src="<?php echo ($custom_icon_path=='')?$_base_href.$this->row['icon']:$custom_icon_path; ?>" alt="<?php echo $this->row['icon']; ?>" border="1" height="79" width="79"  />
+
+               <?php else: ?>
+                       <img id="i0" src="images/clr.gif" alt="" border="1" height="79" width="79"  />
+                       <input type='hidden' name='boolForce' id='boolForce' value='' />
+               <?php endif; ?>
+               <div>
+               <label for="icons"><?php echo _AT('icon'); ?></label><br />
+               <select name="icon" id="icons" onchange="SelectImg()">
+                       <option value=""><?php echo _AT('no_icon'); ?></option>
+            <?php // ------------- custom course icons
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                $boolCustom = false;
+                $optCount = 0;
+
+                if (is_dir($path)) {
+                    $boolCustom = true;  // true if custom icons are uploaded, otherwise false
+                    
+                    /*$files = scandir($path);  //SCANDIR STOPS ATUTOR WHEN RUN AS INSTRUCTOR, BUT NOT AS ADMIN. WHY? -Gorzan */
+                    
+                    /* PHP 4 REPLACEMENT FOR SCANDIR */
+                                       $dh  = opendir($path);
+                                       while (false !== ($filename = readdir($dh))) {
+                                               $files[] = $filename;
+                                       }
+
+                                       /*END PHP 4 REPLACEMENT FOR SCANDIR*/
+                    echo "<optgroup label='"._AT('custom_icons')."'>";
+                    foreach($files as $val) {
+                                               $file_ext = substr(strtolower($val), -3);
+                        if ($file_ext == "jpg" || $file_ext == "png" || $file_ext == "gif") {
+                            $optCount++;
+                            echo "<option value='".$val."'";
+                            if ($val == $this->row['icon']) {
+                                echo 'selected="selected"';
+                            }
+                            echo ">".$val."</option>";
+                        }
+                    }
+                    echo "</optgroup>";
+                }
+                
+            ?>
+                       <?php // ------------- other icons
+
+                               $course_imgs = array();
+                               if ($dir = opendir(AT_INCLUDE_PATH.'../images/courses/')) {
+                                       while (false !== ($file = readdir($dir)) ) {
+                                               if( ($file == '.') || ($file == '..')) { 
+                                                       continue;
+                                               }
+                                               $course_imgs[] = $file;
+                                       }               
+                                       closedir($dir); 
+                               }
+                               sort($course_imgs);
+                if ($boolCustom == true) {
+                    echo "<optgroup label='"._AT('builtin_icons')."'>";
+                }
+                               foreach ($course_imgs as $file) {
+                                       echo '<option value="' . $file . '" ';
+                                       if ($file == $this->row['icon']) { 
+                                               echo 'selected="selected"'; 
+                                       }
+                                       echo ' >' . $file . '</option>';        
+                               }
+                if ($boolCustom == true) {
+                    echo "</optgroup>";
+                }
+                       ?>
+               </select><?php echo "&nbsp;&nbsp;&nbsp; "._AT('or'); echo "<br />"?>
+       </div>
+    
+            <?php echo _AT('upload_icon'); ?><br />
+               <label for="customicon"><input type="file" name="customicon" title="custom icon" id="customicon" value="<?php echo $_POST['customicon']; ?>"/></label><br />
+                <small><?php echo _AT('upload_icon_text'); ?></small>
+       
+        <?php  //require_once(AT_INCLUDE_PATH.'../mods/_core/courses/html/course_icon.inc.php'); ?>
+
+        <br />
+
+       </div>
+
+   
+       <div class="buttons">
+
+               <?php
+            echo "<input type='hidden' name='custOptCount' id='custOptCount' value='".$optCount."' />";
+            echo "<input type='hidden' name='courseId' id='courseId' value='".$this->row['course_id']."' />";
+               ?>
+
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel');?>" />
+       </div>
+    </fieldset>
+</div>
+
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/courses/enrollment.tmpl.php b/docs/themes/simplified-desktop/admin/courses/enrollment.tmpl.php
new file mode 100644 (file)
index 0000000..8773135
--- /dev/null
@@ -0,0 +1,140 @@
+
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <input type="hidden" name="tab" value="<?php echo $this->current_tab; ?>"/>
+       <input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
+       <div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('search'); ?></legend>
+               <?php if (admin_authenticate(AT_ADMIN_PRIV_ENROLLMENT, TRUE)): ?>
+                       <div class="row">
+                               <label for="course"><?php echo _AT('course'); ?></label><br/>
+                               <select name="course_id" id="course">
+                               <?php
+                               
+                               while ($courses_row = mysql_fetch_assoc($this->result)) {
+                                       if ($courses_row['course_id'] == $this->course_id) {
+                                               echo '<option value="'.$courses_row['course_id'].'" selected="selected">'.validate_length($courses_row['title'], 45,VALIDATE_LENGTH_FOR_DISPLAY).'</option>';
+                                       } else {
+                                               echo '<option value="'.$courses_row['course_id'].'">'.validate_length($courses_row['title'],45,VALIDATE_LENGTH_FOR_DISPLAY).'</option>';
+                                       }
+                               }
+                               ?></select>
+                       </div>
+               <?php endif; ?>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('login_name').', '._AT('first_name').', '._AT('second_name').', '._AT('last_name') .', '._AT('email'); ?>)</label><br />
+                       <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+                       <br/>
+                       <?php echo _AT('search_match'); ?>:
+                       <input type="radio" name="match" value="all" id="match_all" <?php echo $this->checked_match_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> <input type="radio" name="match" value="one" id="match_one" <?php echo $this->checked_match_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </fieldset>
+       </div>
+</form>
+
+<?php print_paginator($this->page, $this->tab_counts[$this->current_tab], $this->page_string_w_tab . SEP . $this->order .'='. $this->col, $this->results_per_page); ?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="selectform">
+<input type="hidden" name="tab" value="<?php echo $this->current_tab; ?>" />
+<input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
+
+<ul id="subnavlist">
+       <?php for ($i = 0; $i< $this->num_tabs; $i++): ?>
+               <?php if ($this->current_tab == $i): ?>
+                       <li class="active"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?tab=<?php echo $i.$this->page_string; ?>" class="active"><strong><?php echo _AT($this->tabs[$i]); ?> - <?php echo $this->tab_counts[$i]; ?></strong></a></li>
+               <?php else: ?>
+                       <li><a href="<?php echo $_SERVER['PHP_SELF']; ?>?tab=<?php echo $i.$this->page_string; ?>"><?php echo _AT($this->tabs[$i]); ?> - <?php echo $this->tab_counts[$i]; ?></a></li>
+               <?php endif; ?>
+       <?php endfor; ?>
+</ul>
+
+
+<table class="data" style="width:95%;" summary="" rules="cols" >
+<colgroup>
+       <?php if ($this->col == 'login'): ?>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($this->col == 'first_name'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="3" />
+       <?php //elseif($this->col == 'second_name'): ?>
+               <!--  REMOVED FOR MOBILE <col span="3" />
+               <col class="sort" />
+               <col span="2" />-->
+       <?php elseif($this->col == 'last_name'): ?>
+               <col span="4" />
+               <col class="sort" />
+               <col />
+       <?php //elseif($this->col == 'email'): ?>
+               <!-- REMOVED FOR MOBILE <col span="5" />
+               <col class="sort" /> -->
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col" align="left"><input type="checkbox" value="<?php echo _AT('select_all'); ?>" id="all" title="<?php echo _AT('select_all'); ?>" name="selectall" onclick="CheckAll();" /></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=login<?php echo $this->page_string_w_tab;?>"><?php echo _AT('login_name'); ?></a></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=first_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('first_name'); ?></a></th>
+
+<!--   <th scope="col"><a href="<?php //echo $_SERVER['PHP_SELF']; ?>?<?php //echo $this->orders[$this->order]; ?>=second_name<?php // echo $this->page_string_w_tab;?>"><?php //echo _AT('second_name'); ?></a></th> -->
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=last_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('last_name'); ?></a></th>
+
+<!--   <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=email<?php echo $this->page_string_w_tab;?>"><?php echo _AT('email'); ?></a></th> -->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+               <?php if ($this->current_tab == 0): ?>
+                       <input type="submit" name="role"     value="<?php echo _AT('privileges');  ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove');    ?>" /> 
+                       <input type="submit" name="alumni"   value="<?php echo _AT('mark_alumni'); ?>" />
+               <?php elseif ($this->current_tab == 1): ?>
+                       <input type="submit" name="role" value="<?php echo _AT('privileges'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" /> 
+
+               <?php elseif ($this->current_tab == 2): ?>
+                       <input type="submit" name="enroll"   value="<?php echo _AT('enroll'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" />
+               
+               <?php elseif ($this->current_tab == 3): ?>
+                       <input type="submit" name="enroll" value="<?php echo _AT('enroll'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" />
+
+               <?php elseif ($this->current_tab == 4): ?>
+                       <input type="submit" name="enroll"   value="<?php echo _AT('enroll'); ?>" /> 
+
+               <?php endif; ?></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($this->tab_counts[$this->current_tab]): ?>
+       <?php while ($row = mysql_fetch_assoc($this->enrollment_result)): ?>
+               <tr onmousedown="document.selectform['m<?php echo $row['member_id']; ?>'].checked = !document.selectform['m<?php echo $row['member_id']; ?>'].checked; togglerowhighlight(this, 'm<?php echo $row['member_id']; ?>');" id="rm<?php echo $row['member_id']; ?>">
+                       <td><input type="checkbox" name="id[]" value="<?php echo $row['member_id']; ?>" id="m<?php echo $row['member_id']; ?>" onmouseup="this.checked=!this.checked" title="<?php echo AT_print($row['login'], 'members.login'); ?>" /></td>
+                       <td><?php echo AT_print($row['login'], 'members.login'); ?></td>
+                       <td><?php echo AT_print($row['first_name'], 'members.name'); ?></td>
+                       <!-- REMOVED FOR MOBILE <td><?php // echo AT_print($row['second_name'], 'members.name'); ?></td> -->
+                       <td><?php echo AT_print($row['last_name'], 'members.name'); ?></td>
+                       <!-- REMOVED FOR MOBILE<td><?php // echo AT_print($row['email'], 'members.email'); ?></td> -->
+               </tr>
+       <?php endwhile; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/courses/forum_add.tmpl.php b/docs/themes/simplified-desktop/admin/courses/forum_add.tmpl.php
new file mode 100644 (file)
index 0000000..0fccc48
--- /dev/null
@@ -0,0 +1,39 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="add_forum" value="true" />
+
+<div class="input-form">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" name="title" size="40" id="title" value="<?php echo $_POST['title']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="body"><?php echo _AT('description'); ?></label><br />
+               <textarea name="description" cols="45" rows="2" id="body" ><?php echo $_POST['description']; ?></textarea>
+       </div>
+
+       <div class="row">
+               <label for="edit"><?php echo _AT('allow_editing'); ?></label><br />
+               <input type="text" name="edit" size="3" id="edit" value="<?php echo intval($row['mins_to_edit']); ?>" /> <?php echo _AT('in_minutes'); ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="courses"><?php echo _AT('courses'); ?></label><br />
+               <?php if ($this->system_courses): ?>
+                       <select name="courses[]" id="courses" multiple="multiple" size="5"><?php
+                               while ($row = mysql_fetch_assoc($this->result)) {
+                                       echo '<option value="'.$row['course_id'].'">'.$row['title'].'</option>';                
+                               }
+                               ?>
+                       </select>
+               <?php else: ?>
+                       <span id="courses"><?php echo _AT('no_courses_found'); ?></span>
+               <?php endif; ?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/courses/forums.tmpl.php b/docs/themes/simplified-desktop/admin/courses/forums.tmpl.php
new file mode 100644 (file)
index 0000000..8f45ac9
--- /dev/null
@@ -0,0 +1,61 @@
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="Course forums" >
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('title');       ?></th>
+       <!-- REMOVED FOR MOBILE<th scope="col"><?php// echo _AT('description'); ?></th> -->
+       <th scope="col"><?php echo _AT('courses');  
+          ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="4"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+
+</tfoot>
+<tbody>
+
+<tr>
+       <th colspan="4"><?php echo _AT('shared_forums'); ?></th>
+</tr>
+<?php 
+foreach ($this->shared_forums as $forum) {
+
+?>
+<!--     <tr onmousedown="document.form[\'f'.$forum['forum_id'].'\'].checked = true; rowselect(this);"  id="r_'.$forum['forum_id'].'"></tr> -->      
+    <tr onkeydown="document.form['f<?php echo $forum['id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['f<?php echo $forum['id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $forum['id']; ?>">
+    <td><input type="radio" name="id" value= "<?php echo $forum['id']; ?>" id="f<?php echo $forum['id']; ?>"</td>
+       <td><label for="f<?php echo $forum['id']; ?>"> <?php echo       AT_print($forum['title'], 'forums.title'); ?>  </label></td>
+       <!-- REMOVED FOR MOBILE<td><?php // echo AT_print($forum['desc'], 'forums.description'); ?></td> -->
+       <td> <?php foreach ($forum["courses"] as $course) {echo $course. "  ";} ?>
+       </td>
+       </tr>
+<?php }?>
+
+</tbody>
+<tbody>
+       <tr>
+               <th colspan="4"><?php echo _AT('unshared_forums'); ?></th>
+       </tr>
+<?php if ($this->num_nonshared) : ?>
+       <?php foreach ($this->all_forums['nonshared'] as $forum) : ?>
+               <tr onkeydown="document.form['f<?php echo $forum['forum_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['f<?php echo $forum['forum_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $forum['forum_id']; ?>">
+                       <td><input type="radio" name="id" value="<?php echo $forum['forum_id']; ?>" id="f<?php echo $forum['forum_id']; ?>" /></td>
+                       <td><label for="f<?php echo $forum['forum_id']; ?>"><?php echo AT_print($forum['title'], 'forums.title'); ?></label></td>
+                       <!-- REMOVED FOR MOBILE <td><?php // echo AT_print($forum['description'], 'forums.description'); ?></td> -->
+                       <td><?php echo $this->system_courses[$forum['course_id']]['title']; ?></td>
+               </tr>
+       <?php endforeach; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><strong><?php echo _AT('no_forums'); ?></strong></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/courses/scaffolds.tmpl.php b/docs/themes/simplified-desktop/admin/courses/scaffolds.tmpl.php
new file mode 100644 (file)
index 0000000..ded75fd
--- /dev/null
@@ -0,0 +1,25 @@
+<?php global $_config;?>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="scaffolds">
+<div class="input-form">
+ <fieldset class="group_form"> <legend class="group_form"><strong><?php echo _AT("support_tools"); ?></strong>  </legend>  
+       <div class="row">
+               <p><?php echo _AT('scaffold_text'); ?></p>
+       </div>
+       <div class="row">
+
+               <label for="encyclopedia"><?php echo _AT('encyclopedia'); ?></label><br /><input type="text" id="encyclopedia"  name="encyclopedia" value="<?php echo $_config['encyclopedia']; ?>"  size="40"/><br />
+               <label for="dictionary"><?php echo _AT('dictionary'); ?></label><br /><input type="text" id="dictionary"  name="dictionary" value="<?php echo $_config['dictionary']; ?>"  size="40"/><br />
+               <label for="thesaurus"><?php echo _AT('thesaurus'); ?></label><br /><input type="text" id="thesaurus"  name="thesaurus" value="<?php echo $_config['thesaurus']; ?>" size="40"/><br />
+               <label for="atlas"><?php echo _AT('atlas'); ?></label><br /><input type="text" id="atlas"  name="atlas" value="<?php echo $_config['atlas']; ?>"  size="40"/><br />
+               <label for="calculator"><?php echo _AT('calculator'); ?></label><br /><input type="text" id="calculator"  name="calculator" value="<?php echo $_config['calculator']; ?>"  size="40"/><br />
+               <label for="note_taking"><?php echo _AT('note_taking'); ?></label><br /><input type="text" id="note_taking"  name="note_taking" value="<?php echo $_config['note_taking']; ?>"  size="40"/>     <br />
+               <label for="abacas"><?php echo _AT('abacus'); ?></label><br /><input type="text" id="abacas"  name="abacas" value="<?php echo $_config['abacas']; ?>"  size="40"/><br />
+       </div>
+       <div class="buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />
+       </div>
+</fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/index.tmpl.php b/docs/themes/simplified-desktop/admin/index.tmpl.php
new file mode 100644 (file)
index 0000000..d22cf5c
--- /dev/null
@@ -0,0 +1,152 @@
+<?php global $_config; $_config_defaults;?>
+
+<div class="admin_container"> 
+
+       <?php /*
+       $this->path_length = strlen($this->base_path);
+
+       echo '<ul class="fl-list-menu ">';
+       foreach ($this->top_level_pages as $page_info) {
+               echo '<li><a href="' . $page_info['url'] . '">' . $page_info['title'] . '</a>  ';
+
+               $page_info['url'] = substr($page_info['url'], $this->path_length);
+
+               if ($this->pages[$page_info['url']]['children']) {
+       
+                       foreach ($this->pages[$page_info['url']]['children'] as $child) {
+                               // check whether the page is set to be available for mobile themes. @see include/lib/menu_pages.php
+                               if (page_available($child)) {
+                                       echo ' <li  ><a href="'.$child.'">'._AT($this->pages[$child]['title_var']).'</a></li>';
+                               }
+                       }
+                       
+               }
+               echo '</li>'; //end top-tool
+       }
+       echo '</ul>';*/
+       
+?>
+
+
+<div class="" style="">
+       <div class="input-form" >
+               
+                               <h3><?php echo _AT('social_switch'); ?></h3>
+                               <p><?php echo _AT('social_switch_text'); ?></p>
+               
+                       <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+                       <fieldset>
+                       <legend id="social_networking"><?php echo _AT('social_switch'); ?></legend>(<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['just_social'] ? _AT('just_social') : _AT('social_and_lms')); ?>)
+                       <div class="row">
+                       <input type="radio" name="just_social" value="1" id="social_y" <?php if($_config['just_social']) { echo 'checked="checked"'; }?>  /><label for="social_y"><?php echo _AT('just_social'); ?></label> <br /><input type="radio" name="just_social" value="0" id="social_n" <?php if(!$_config['just_social']) { echo 'checked="checked"'; }?>  /><label for="social_n"><?php echo _AT('social_and_lms'); ?></label>
+                       </div>
+
+                       <div class="row buttons">
+                               <input type="submit" name="social_submit" value="<?php echo _AT('save'); ?>" />
+                       </div>
+                       </fieldset>
+                       </form>
+
+       </div>
+       <div class="input-form" >
+               
+                               <h3><?php echo _AT('donate'); ?></h3>
+                               <p><?php echo _AT('donate_text'); ?></p>
+                       
+
+                       <div >
+                               <a href="http://www.atutor.ca/payment/index.php?project=ATutor-Donation"><img src="<?php echo $this->base_href; ?>/images/donate.gif" height="28" width="136" border="0" alt="<?php echo _AT('donate'); ?>" /></a><br /><br />
+                       </div>
+       </div>
+       
+               
+       <div class="input-form">
+               <form method="get" action="mods/_core/users/instructor_requests.php">
+                       
+                       <h3><?php echo _AT('instructor_requests'); ?></h3>
+                               
+                               <?php foreach($this->row_instructor as $key => $value): ?>
+                               
+                               <p><?php echo _AT('instructor_requests_text', $value['cnt']); ?></p>
+                               <?php endforeach;?>
+                       
+
+                       <div class="row buttons">
+                               <input type="submit" name="submit" value="<?php echo _AT('view'); ?>" />
+                       </div>
+               </form>
+       </div>
+       
+       
+       <div class="input-form">
+               <form method="get" action="mods/_standard/patcher/index_admin.php">
+                       
+                               <h3><?php echo _AT('available_patches'); ?></h3>
+                               <p><?php echo _AT('available_patches_text', $this->cnt); ?></p>
+               
+
+                       <div class="row buttons">
+                               <input type="submit" name="submit" value="<?php echo _AT('view'); ?>" />
+                       </div>
+               </form>
+       </div>
+       <div class="input-form" >
+               
+                       <h3><?php echo _AT('statistics_information'); ?></h3>
+
+                       <dl class="col-list">
+                               <?php if ($this->db_size): ?>
+                                       <dt><?php echo _AT('database'); ?>:</dt>
+                                       <dd><?php echo number_format($this->db_size/AT_KBYTE_SIZE/AT_KBYTE_SIZE,2); ?> <acronym title="<?php echo _AT('megabytes'); ?>"><?php echo _AT('mb'); ?></acronym></dd>
+                               <?php endif; ?>
+
+                               <?php if ($this->du_size): ?>
+                                       <dt><?php echo _AT('disk_usage'); ?>:</dt>
+                                       <dd><?php echo number_format($this->du_size/AT_KBYTE_SIZE,2); ?> <acronym title="<?php echo _AT('megabytes'); ?>"><?php echo _AT('mb'); ?></acronym></dd>
+                               <?php endif; ?>
+
+                               <dt><?php echo _AT('courses'); ?>:</dt>
+                               <dd><?php echo $this->num_courses; ?></dd>
+
+                               <dt><?php echo _AT('users'); ?>:</dt>
+                               <dd><?php echo $this->num_users; ?></dd>
+
+                               <dt><?php echo _AT('atutor_version'); ?>:</dt>
+                <?php
+                    require('../svn.php');
+                    if (!empty($svn_data)) {
+                        $svn_data   = explode("\n", $svn_data);
+                        if (substr($svn_data[1], 0, 1) == 'r') {
+                            $svn_data = $svn_data[1];
+                        } else if (substr($svn_data[2], 0, 1) == 'r') {
+                            $svn_data = $svn_data[2];
+                        }
+
+                        if (count($svn_data) > 1) {
+                            $build = 'unknown';
+                            $build_date = date('Y-m-d H:i:s');
+                        } else {
+                            $svn_data   = explode(' ', $svn_data);
+
+                            $build      = $svn_data[0];
+                            $build_date = $svn_data[4] .' '. $svn_data[5];
+                        }
+                        $build_str = '(' . $build . ' - '.$build_date . ')';
+                    }
+                ?>
+                               <dd><?php echo _AT('atutor_version_text', VERSION . $build_str, urlencode(VERSION)); ?></dd>
+
+                               <dt><?php echo _AT('php_version'); ?>:</dt>
+                               <dd><?php echo PHP_VERSION; ?></dd>
+
+                               <dt><?php echo _AT('mysql_version'); ?>:</dt>
+                               <dd><?php echo $mysql_version; ?></dd>
+
+                               <dt><?php echo _AT('os'); ?>:</dt>
+                               <dd><?php echo @php_uname('s') . ' ' . @php_uname('r'); ?></dd>
+                       </dl>
+               </div>
+       </div>
+
+</div> 
+
diff --git a/docs/themes/simplified-desktop/admin/modules/details.tmpl.php b/docs/themes/simplified-desktop/admin/modules/details.tmpl.php
new file mode 100644 (file)
index 0000000..3f5cbec
--- /dev/null
@@ -0,0 +1,85 @@
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="mod" value="<?php echo $_GET['mod']; ?>" />
+<input type="hidden" name="new" value="<?php echo $_GET['new']; ?>" />
+
+<input type="hidden" name="enabled" value="<?php echo (int) isset($_GET['enabled']); ?>" />
+<input type="hidden" name="disabled" value="<?php echo (int) isset($_GET['disabled']); ?>" />
+<input type="hidden" name="core" value="<?php echo (int) isset($_GET['core']); ?>" />
+<input type="hidden" name="standard" value="<?php echo (int) isset($_GET['standard']); ?>" />
+<input type="hidden" name="extra" value="<?php echo (int) isset($_GET['extra']); ?>" />
+<input type="hidden" name="missing" value="<?php echo (int) isset($_GET['missing']); ?>" />
+
+<div class="input-form">
+       <div class="row">
+               <h3><?php echo $this->module->getName(); ?></h3>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('description'); ?><br />
+               <?php echo nl2br($this->module->getDescription($_SESSION['lang'])); ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('maintainers'); ?><br />
+                       <ul class="horizontal">
+                               <?php foreach ($this->properties['maintainers'] as $maintainer): ?>
+                                       <li><?php echo $maintainer['name'] .' &lt;'.$maintainer['email'].'&gt;'; ?></li>
+                               <?php endforeach; ?>
+                       </ul>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('url'); ?><br />
+               <?php echo $this->properties['url']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('version'); ?><br />
+               <?php echo $this->properties['version']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('date'); ?><br />
+               <?php echo $this->properties['date']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('license'); ?><br />
+               <?php echo $this->properties['license']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('state'); ?><br />
+               <?php echo $this->properties['state']; ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('notes'); ?><br />
+               <?php echo nl2br($this->properties['notes']); ?>
+       </div>
+
+       <?php if (is_array($this->module->_pages)): ?>
+               <div class="row">
+                       <?php if (!isset($_GET['files'])): ?>
+                               <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES).SEP; ?>files#files"><?php echo _AT('files'); ?></a><br />
+                       <?php else: ?>
+                               <?php $module_pages = array_keys($this->module->_pages); ?>
+                               <?php natsort($module_pages); ?>
+                               <a name="files"></a><?php echo _AT('files'); ?><br />
+                               <ul class="">
+                                       <?php foreach ($module_pages as $key): ?>
+                                               <?php if (defined($key)) : continue; endif; ?>
+                                               <li><kbd><?php echo $key; ?></kbd></li>
+                                       <?php endforeach; ?>
+                               </ul>
+                       <?php endif; ?>
+               </div>
+       <?php endif; ?>
+
+<?php if (!isset($_REQUEST['new'])): ?>
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('back'); ?>" />
+       </div>
+<?php endif; ?>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/modules/index.tmpl.php b/docs/themes/simplified-desktop/admin/modules/index.tmpl.php
new file mode 100644 (file)
index 0000000..87b34a9
--- /dev/null
@@ -0,0 +1,127 @@
+
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               
+                       <h3><?php echo _AT('results_found', count($this->keys)); ?></h3>
+                       <a id="results-hide-show-link" href="javascript:void(0);" tabindex="1">Refine Results</a>
+               
+       
+               
+       <div id="results-hide-show" role="search"  aria-live="assertive">
+       <div id="results-display">
+
+               <div class="row">
+                       <?php echo _AT('type'); ?><br />
+                       <input type="checkbox" name="core" value="1" id="t0" <?php if ($_GET['core']) { echo 'checked="checked"'; } ?> /><label for="t0"><?php echo _AT('core'); ?></label>
+
+                       <input type="checkbox" name="standard" value="1" id="t1" <?php if ($_GET['standard']) { echo 'checked="checked"'; } ?> /><label for="t1"><?php echo _AT('standard'); ?></label> 
+
+                       <input type="checkbox" name="extra" value="1" id="t2" <?php if ($_GET['extra']) { echo 'checked="checked"'; } ?> /><label for="t2"><?php echo _AT('extra'); ?></label> 
+               </div>
+
+
+               <div class="row">
+                       <?php echo _AT('status'); ?><br />
+                       <input type="checkbox" name="enabled" value="1" id="s0" <?php if ($_GET['enabled']) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('enabled'); ?></label> 
+
+                       <input type="checkbox" name="disabled" value="1" id="s1" <?php if ($_GET['disabled']) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('disabled'); ?></label> 
+
+                       <input type="checkbox" name="missing" value="1" id="s2" <?php if ($_GET['missing']) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('missing'); ?></label> 
+
+                       <input type="checkbox" name="partially_uninstalled" value="1" id="s3" <?php if ($_GET['partially_uninstalled']) { echo 'checked="checked"'; } ?> /><label for="s3"><?php echo _AT('partially_uninstalled'); ?></label> 
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+       </div> <!-- end #results-display -->
+       </div> <!-- end #results-hide-show -->
+</form>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
+
+<input type="hidden" name="enabled" value="<?php echo (int) $_GET['enabled']; ?>" />
+<input type="hidden" name="disabled" value="<?php echo (int) $_GET['disabled']; ?>" />
+<input type="hidden" name="core" value="<?php echo (int) $_GET['core']; ?>" />
+<input type="hidden" name="standard" value="<?php echo (int) $_GET['standard']; ?>" />
+<input type="hidden" name="extra" value="<?php echo (int) $_GET['extra']; ?>" />
+<input type="hidden" name="missing" value="<?php echo (int) $_GET['missing']; ?>" />
+<input type="hidden" name="partially_uninstalled" value="<?php echo (int) $_GET['partially_uninstalled']; ?>" />
+<div class="table-surround">
+<table class="data" summary="List of modules" >
+<colgroup>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('module_name'); ?></th>
+       <!-- REMOVED FOR MOBILE <th scope="col"><?php echo _AT('type'); ?></th>-->
+       <th scope="col"><?php echo _AT('status'); ?></th>
+       <!-- REMOVED FOR MOBILE <th scope="col"><?php echo _AT('cron'); ?></th> -->
+       <!-- REMOVED FOR MOBILE <th scope="col"><?php echo _AT('directory_name'); ?></th>-->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+               <input type="submit" name="details" value="<?php echo _AT('details'); ?>" />
+               <input type="submit" name="enable"  value="<?php echo _AT('enable'); ?>" />
+               <input type="submit" name="disable" value="<?php echo _AT('disable'); ?>" />
+               <input type="submit" name="uninstall" value="<?php echo _AT('uninstall'); ?>" />
+               <input type="submit" name="export" value="<?php echo _AT('export'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+
+
+
+<?php foreach($this->keys as $dir_name) : $module =& $this->module_list[$dir_name]; $i++; $readme = get_readme(AT_INCLUDE_PATH.'../mods/'.$dir_name);?>
+
+       <tr onkeydown="document.form['t_<?php echo $i; ?>'].checked = true; rowselect(this);" onmousedown="document.form['t_<?php echo $i; ?>'].checked = true; rowselect(this);" id="r_<?php echo $i; ?>">
+               <td valign="top"><input type="radio" id="t_<?php echo $i; ?>" name="mod_dir" value="<?php echo $dir_name; ?>" /></td>
+               <td nowrap="nowrap" valign="top"><label for="t_<?php echo $i; ?>"><?php echo $module->getName(); if ($readme <> '') echo '&nbsp;<a href="#" onclick="ATutor.poptastic(\''.AT_BASE_HREF.'mods/'.$dir_name.'/'.$readme.'\');return false;">'._AT('view_readme').'</a>'; ?></label></td>
+               <!-- REMOVED FOR MOBILE><td valign="top"><?php
+                       /*if ($module->isCore()) {
+                               echo '<strong>'._AT('core').'</strong>';
+                       } else if ($module->isStandard()) {
+                               echo _AT('standard');
+                       } else {
+                               echo _AT('extra');
+                       }*/
+                       ?></td> -->
+               <td valign="top"><?php
+                       if ($module->isEnabled()) {
+                               echo _AT('enabled');
+                       } else if ($module->isMissing()) {
+                               echo '<strong>'._AT('missing').'</strong>';
+                       } else if ($module->isPartiallyUninstalled()) {
+                               echo _AT('partially_uninstalled');
+                       } else {
+                               echo '<strong>'._AT('disabled').'</strong>';
+                       }
+                       ?></td>
+               <!-- REMOVED FOR MOBILE <td valign="top" align="center">
+                       <?php // if ($module->getCronInterval()): ?>
+                               <?php //echo _AT('minutes', $module->getCronInterval()); ?>
+                       <?php //else: ?>
+                               
+                       <?php // endif; ?>
+               </td>
+               <td valign="top"><code><?php //echo $dir_name; ?>/</code></td> -->
+       </tr>
+<?php endforeach; ?>
+<?php if (!$this->keys): ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
diff --git a/docs/themes/simplified-desktop/admin/modules/install_modules.tmpl.php b/docs/themes/simplified-desktop/admin/modules/install_modules.tmpl.php
new file mode 100644 (file)
index 0000000..f5e0bc5
--- /dev/null
@@ -0,0 +1,142 @@
+
+<form name="frm_upload" enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" >
+       
+<div class="input-form">
+               <div class="row"><?php echo _AT("upload_module"); ?></div>
+
+               <div class="row">
+                       <input type="hidden" name="MAX_FILE_SIZE" value="52428800" />
+                       <input type="file" name="modulefile"  size="50" />
+               </div>
+               
+               <div class="row buttons">
+                       <input type="submit" name="install_upload" value="<?php echo _AT('install'); ?>" onclick="javascript: return validate_filename(); " class="submit" />
+                       <input type="hidden" name="uploading" value="1" />
+               </div>
+</div>
+
+</form>
+
+<?php 
+if (count($this->keys) > 0)
+{
+?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="installform">
+<table class="data" summary="" rules="cols">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('module_name'); ?></th>
+       <th scope="col"><?php echo _AT('directory_name'); ?></th>
+       <th scope="col"><?php echo _AT('description'); ?></th>
+</tr>
+</thead>
+
+<tfoot>
+<tr>
+       <td colspan="4">
+               <input type="submit" name="install_manually"  value="<?php echo _AT('install'); ?>" />
+       </td>
+</tr>
+</tfoot>
+
+<tbody>
+<?php if (!empty($this->keys)): ?>
+       <?php foreach($this->keys as $dir_name) : $module =& $this->module_list[$dir_name]; ?>
+               <tr onmousedown="document.installform['m_<?php echo $dir_name; ?>'].checked = true; rowselect(this);" id="r_<?php echo $dir_name; ?>">
+                       <td valign="top"><input type="radio" id="m_<?php echo $dir_name; ?>" name="mod" value="<?php echo $dir_name; ?>" /></td>
+                       <td valign="top"><label for="m_<?php echo $row['dir_name']; ?>"><?php echo $module->getName(); ?></label></td>
+                       <td valign="top"><code><?php echo $dir_name; ?>/</code></td>
+                       <td valign="top"><?php echo $module->getDescription($_SESSION['lang']); ?></td>
+               </tr>
+       <?php endforeach; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</form>
+<br />
+<?php 
+}
+?>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<?php 
+?>
+<table class="data" summary="" rules="cols">
+<thead>
+       <tr>
+               <th scope="col">&nbsp;</th>
+               <th scope="col"><?php echo _AT('module_name');?></th>
+               <th scope="col"><?php echo _AT('description');?></th>
+               <th scope="col"><?php echo _AT('version');?></th>
+               <th scope="col"><?php echo _AT('atutor_version_tested_with');?></th>
+               <th scope="col"><?php echo _AT('maintainers');?></th>
+               <th scope="col"><?php echo _AT('installed').'?';?></th>
+       </tr>
+</thead>
+       
+<tfoot>
+<tr>
+       <td colspan="7">
+               <input type="submit" name="install" value="<?php echo _AT('install'); ?>" />
+               <input type="submit" name="download" value="<?php echo _AT('download'); ?>" />
+               <input type="submit" name="version_history" value="<?php echo _AT('version_history'); ?>" />
+       </td>
+</tr>
+</tfoot>
+
+<tbody>
+<?php 
+$num_of_modules = count($this->module_list_array);
+
+if ($num_of_modules == 0)
+{
+?>
+
+<tr>
+       <td colspan="7"><?php echo _AT('none_found'); ?></td>
+</tr>
+
+<?php 
+}
+else
+{
+       // display modules
+       if(is_array($this->module_list_array))
+       {
+               for ($i=0; $i < $num_of_modules; $i++)
+               {
+                       // check if the module has been installed
+                       //$sql = "SELECT * FROM ".TABLE_PREFIX."modules WHERE dir_name = '" . $this->module_list_array[$i]["history"][0]["install_folder"] . "'";
+                       //$result = mysql_query($sql, $db) or die(mysql_error());
+
+                       if (mysql_num_rows($this->result) == 0) $installed = false;
+                       else $installed = true;
+
+?>
+       <tr onmousedown="document.form['m<?php echo $i; ?>'].checked = true; rowselect(this);"  id="r_<?php echo $i; ?>">
+               <td><input type="radio" name="id" value="<?php echo $i; ?>" id="m<?php echo $i; ?>" <?php if ($installed) echo 'disabled="disabled"'; ?> /></td>
+               <td><label for="m<?php echo $i; ?>"><?php echo $this->module_list_array[$i]["name"]; ?></label></td>
+               <td><?php echo $this->module_list_array[$i]["description"]; ?></td>
+               <td><?php echo $this->module_list_array[$i]["history"][0]["version"]; ?></td>
+               <td><?php echo $this->module_list_array[$i]["atutor_version"]; ?></td>
+               <td><?php echo $this->module_list_array[$i]["history"][0]["maintainer"]; ?></td>
+               <td><?php if ($installed) echo _AT("installed"); else echo _AT("not_installed"); ?></td>
+       </tr>
+
+<?php 
+               }
+       }
+
+?>
+</tbody>
+
+<?php 
+}
+?>
+</table>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/modules/version_history.tmpl.php b/docs/themes/simplified-desktop/admin/modules/version_history.tmpl.php
new file mode 100644 (file)
index 0000000..af2cc21
--- /dev/null
@@ -0,0 +1,76 @@
+<?php 
+//$this->module_list_array[$id]['history']
+?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<div class="input-form">
+<input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+<table class="data" summary="" style="width: 100%" rules="cols">
+<thead>
+       <tr>
+               <th scope="col">&nbsp;</th>
+               <th scope="col"><?php echo _AT('version');?></th>
+               <th scope="col"><?php echo _AT('publish_date');?></th>
+               <th scope="col"><?php echo _AT('state');?></th>
+               <th scope="col"><?php echo _AT('maintainers');?></th>
+               <th scope="col"><?php echo _AT('notes');?></th>
+       </tr>
+</thead>
+
+<tfoot>
+<tr>
+       <td colspan="6">
+               <input type="submit" name="download" value="<?php echo _AT('download'); ?>" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </td>
+</tr>
+</tfoot>
+
+<tbody>
+<?php 
+$num_of_versions = count($this->module_list_array[$this->id]['history']);
+
+if ($num_of_versions == 0)
+{
+?>
+
+<tr>
+       <td colspan="7">
+<?php 
+       echo _AT('none_found'); 
+?>
+       </td>
+</tr>
+
+<?php 
+}
+else
+{
+       // display version list
+       if(is_array($this->module_list_array[$this->id]['history']))
+       {
+               for ($i=0; $i < $num_of_versions; $i++)
+               {
+?>
+       <tr onmousedown="document.form['m<?php echo $i; ?>'].checked = true; rowselect(this);"  id="r_<?php echo $i; ?>">
+               <td><input type="radio" name="vid" value="<?php echo $i; ?>" id="m<?php echo $i; ?>" /></td>
+               <td><label for="m<?php echo $i; ?>"><?php echo $this->module_list_array[$this->id]["name"] . ' ' .$this->module_list_array[$this->id]['history'][$i]["version"]; ?></label></td>
+               <td><?php echo $this->module_list_array[$this->id]['history'][$i]["date"]; ?></td>
+               <td><?php echo $this->module_list_array[$this->id]['history'][$i]["state"]; ?></td>
+               <td><?php echo $this->module_list_array[$this->id]['history'][$i]["maintainer"]; ?></td>
+               <td><?php echo $this->module_list_array[$this->id]['history'][$i]["notes"]; ?></td>
+       </tr>
+
+<?php 
+               }
+       }
+
+?>
+</tbody>
+
+<?php 
+}
+?>
+</table>
+
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/my_edit.tmpl.php b/docs/themes/simplified-desktop/admin/my_edit.tmpl.php
new file mode 100644 (file)
index 0000000..829bb05
--- /dev/null
@@ -0,0 +1,18 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="input-form">
+       <div class="row">
+               <label for="real_name"><?php echo _AT('real_name'); ?></label><br />
+               <input type="text" name="real_name" id="real_name" size="40" value="<?php echo htmlspecialchars($_POST['real_name']); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />
+               <input type="text" name="email" id="email" size="40" value="<?php echo htmlspecialchars($_POST['email']); ?>" />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
diff --git a/docs/themes/simplified-desktop/admin/patcher/index_admin.tmpl.php b/docs/themes/simplified-desktop/admin/patcher/index_admin.tmpl.php
new file mode 100644 (file)
index 0000000..6ba0562
--- /dev/null
@@ -0,0 +1,116 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<div class="input-form">
+
+<table class="data" summary="" style="width: 100%" rules="cols">
+<thead>
+       <tr>
+               <th scope="col">&nbsp;</th>
+               <th scope="col"><?php echo _AT('atutor_patch_id');?></th>
+               <th scope="col"><?php echo _AT('description');?></th>
+               <th scope="col"><?php echo _AT('status');?></th>
+               <th scope="col"><?php echo _AT('available_to');?></th>
+               <th scope="col"><?php echo _AT('author');?></th>
+               <th scope="col"><?php echo _AT('installed_date');?></th>
+               <th scope="col"><?php echo _AT('view_message');?></th>
+       </tr>
+</thead>
+       
+<tbody>
+<?php 
+if ($this->num_of_patches == 0)
+{
+?>
+
+<tr>
+       <td colspan="8">
+<?php 
+       echo _AT('none_found');
+?>
+       </td>
+</tr>
+
+<?php 
+}
+else
+{
+       while ($row = mysql_fetch_assoc($this->result))
+       {
+                       print_patch_row($row, $row['patches_id'], false);
+       }
+       
+       $array_id = 0;
+       // display un-installed patches
+       if(is_array($this->patch_list_array))
+       {
+               foreach ($this->patch_list_array as $row_num => $new_patch)
+               {
+                       if (!is_patch_installed($new_patch['atutor_patch_id']))
+                       {
+                               $dependent_patches_installed = true;
+                               $dependent_patches = "";
+                               
+                               // check if the dependent patches are installed
+                               if (is_array($new_patch["dependent_patches"]))
+                               {
+                                       
+                                       foreach ($new_patch["dependent_patches"] as $num => $dependent_patch)
+                                       {
+                                               if (!is_patch_installed($dependent_patch))
+                                               {
+                                                       $dependent_patches_installed = false;
+                                                       $dependent_patches .= $dependent_patch. ", ";
+                                               }
+                                       }
+                                       
+                                       // remove the last comma in the string
+                                       if ($dependent_patches <> "") $dependent_patches = substr($dependent_patches, 0, -2);
+                               }
+       
+                               // display patch row
+                               if ($dependent_patches_installed)
+                                       print_patch_row($new_patch, $array_id++, true);
+                               else
+                               {
+                                       print_patch_row($new_patch, $array_id++, false);
+                                       $dependent_patches_installed = true;
+                               }
+                       }
+                       else
+                               $array_id++;
+               }
+       }
+?>
+</tbody>
+<tfoot>
+<tr>
+       <td colspan="8">
+               <input type="submit" name="install" value="<?php echo _AT('install'); ?>" />
+       </td>
+</tr>
+</tfoot>
+
+<?php 
+}
+?>
+</table>
+
+</div>
+</form>
+
+<form name="frm_upload" enctype="multipart/form-data" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" >
+       
+<div class="input-form">
+               <div class="row"><?php echo _AT("upload_patch"); ?></div>
+
+               <div class="row">
+                       <input type="hidden" name="MAX_FILE_SIZE" value="52428800" />
+                       <input type="file" name="patchfile"  size="50" />
+               </div>
+               
+               <div class="row buttons">
+                       <input type="submit" name="install_upload" value="Install" onclick="javascript: return validate_filename(); " class="submit" />
+                       <input type="hidden" name="uploading" value="1" />
+               </div>
+</div>
+
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/add_feed.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/add_feed.tmpl.php
new file mode 100644 (file)
index 0000000..5ce873a
--- /dev/null
@@ -0,0 +1,51 @@
+<?php
+global $stripslashes;
+
+if (!isset($_POST['confirm'])) {
+?>
+       <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+               <input type="hidden" name="confirm" value="1" />
+
+               <div class="input-form" style="width: 95%x">
+                       <div class="row">
+                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+                               <input id="title" name="title" type="text" size="40" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_POST['title'])); ?>" /><br />
+                       </div>
+
+                       <div class="row">
+                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="url"><?php echo _AT('url'); ?></label><br />
+                               <input id="url" name="url" type="text" size="40" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_POST['url'])); ?>" /><br />
+                       </div>
+
+                       <div class="row buttons">
+                               <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" />
+                               <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
+                       </div>
+               </div>
+       </form>
+<?php 
+} else { ?>
+
+       <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <input type="hidden" name="new" value="<?php echo $_POST['new']; ?>" />
+
+       <div class="input-form">
+               <div class="row">
+                       <h3><?php if (file_exists($this->title_file)) { 
+                                       readfile($this->title_file); 
+                               } else {
+                                       echo $_POST['title'];
+                               }?>
+                       </h3>
+               </div>
+
+               <div class="row">
+                       <?php echo $this->output; ?>
+               </div>
+       </div>
+       </form>
+
+       <?php
+               $this->msg->printConfirm();
+}
+?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/config_edit.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/config_edit.tmpl.php
new file mode 100644 (file)
index 0000000..e0febae
--- /dev/null
@@ -0,0 +1,322 @@
+<?php global $_config, $languageManager, $_config_defaults, $stripslashes;?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<div class="input-form">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="sitename"><?php echo _AT('site_name'); ?></label><br />
+               <input type="text" name="site_name" size="40" maxlength="60" id="sitename" value="<?php if (!empty($_POST['site_name'])) { echo $stripslashes(htmlspecialchars($_POST['site_name'])); } else { echo $_config['site_name']; } ?>" />
+       </div>
+
+       <div class="row">
+               <label for="home_url"><?php echo _AT('home_url'); ?></label><br />
+
+               <input type="text" name="home_url" size="50" maxlength="60" id="home_url" value="<?php if (!empty($_POST['home_url'])) { echo $stripslashes(htmlspecialchars($_POST['home_url'])); } else { echo $_config['home_url']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="default_lang"><?php echo _AT('default_language'); ?></label><br />
+
+               <?php if (!empty($_POST['default_language'])) { 
+                               $select_lang = $_POST['default_language']; 
+                       } else { 
+                               $select_lang = $_config['default_language'];
+                       } ?>
+               <?php if ($disabled): ?>
+                       <select name="default_language" id="default_lang" disabled="disabled"><option><?php echo $select_lang; ?></option></select>
+               <?php else: ?>
+                       <?php $languageManager->printDropdown($select_lang, 'default_language', 'default_lang'); ?>
+               <?php endif; ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="cemail"><?php echo _AT('contact_email'); ?></label><br />
+               <input type="text" name="contact_email" id="cemail" size="40" value="<?php if (!empty($_POST['email'])) { echo $stripslashes(htmlspecialchars($_POST['email'])); } else { echo $_config['contact_email']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="time_zone"><?php echo _AT('time_zone'); ?></label><br />
+
+               <?php
+
+
+               // Replace this hack to use the PHP timezone functions when the PHP requirement is raised to 5.3
+               global $utc_timezones; // set in include/lib/constants.inc.php
+               $local_offset = ((date(Z)/3600));
+               echo '<select name="time_zone" id="time_zone">';        
+                       echo '<option value="0">'._AT('none').'</option>';
+               foreach ($utc_timezones as $zone => $offset){
+                       if(($offset[1]) == $_config['time_zone']){
+                       echo '<option value="'.($offset[1]).'" selected="selected">'.$offset[1].'</option>';
+                       }else{
+                       echo '<option value="'.($offset[1]).'">'.$offset[1].'</option>';
+
+                       }
+               }
+               echo "</select>";
+
+
+               //echo '<input type="text" name="time_zone" value="'.$_config['time_zone'].'" size="5" maxlength="5"/> ';
+
+               // If PHP 5+ generate a list of timezones
+/*
+               if(phpversion() >= 5){
+                       $timezone_names = timezone_identifiers_list();
+               }else{
+               // if less than PHP version 5, read a text file to generate the menu
+                       $timezone_names = file("timezones.txt");
+               }
+
+               echo '<select name="time_zone">';
+               foreach($timezone_names as $timezone_name){
+                       if($timezone_name == $_config{'time_zone'}){
+                               $selected = ' selected="selected"';
+                       }
+                       echo '<option'.$selected.'>'.$timezone_name.'</option>';
+                       $selected = '';
+               }
+               echo '</select>';
+*/
+echo AT_date(_AT('server_date_format'), '', AT_DATE_MYSQL_DATETIME);
+?>
+       </div>
+
+       <div class="row">
+               <label for="maxfile"><?php echo _AT('maximum_file_size'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_file_size']; ?>)<br />
+               <input type="text" size="10" name="max_file_size" id="maxfile" value="<?php if (!empty($_POST['max_file_size'])) { echo $stripslashes(htmlspecialchars($_POST['max_file_size'])); } else { echo $_config['max_file_size']; } ?>"  /> <?php echo _AT('bytes'); ?>
+       </div>
+
+       <div class="row">
+               <label for="maxcourse"><?php echo _AT('maximum_course_size'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_course_size']; ?>)<br />
+               <input type="text" size="10" name="max_course_size" id="maxcourse" value="<?php if (!empty($_POST['max_course_size'])) { echo $stripslashes(htmlspecialchars($_POST['max_course_size'])); } else { echo $_config['max_course_size']; } ?>"  /> <?php echo _AT('bytes'); ?>
+       </div>
+
+       <div class="row">
+               <label for="float"><?php echo _AT('maximum_course_float'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_course_float']; ?>)<br />
+               <input type="text" size="10" name="max_course_float" id="float" value="<?php if (!empty($_POST['max_course_float'])) { echo $stripslashes(htmlspecialchars($_POST['max_course_float'])); } else { echo $_config['max_course_float']; } ?>"  /> <?php echo _AT('bytes'); ?>
+       </div>
+
+       <div class="row">
+               <label for="maximum_login_attempt"><?php echo _AT('maximum_login_attempt'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['max_login']; ?>)<br />
+               <input type="text" size="10" name="max_login" id="maximum_login_attempt" value="<?php if (!empty($_POST['max_login'])) { echo $stripslashes(htmlspecialchars($_POST['max_login'])); } else { echo $_config['max_login']; } ?>"  /> <?php echo _AT('times'); ?>
+       </div>
+       
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('display_name_format'); ?> </legend>
+               (<?php echo _AT('default'); ?>: <?php echo _AT($this->display_name_formats[$_config_defaults['display_name_format']], _AT('login_name'), _AT('first_name'), _AT('second_name'), _AT('last_name')); ?>)<br />
+               <?php foreach ($this->display_name_formats as $key => $value): ?>
+                       <input type="radio" name="display_name_format" value="<?php echo $key; ?>" id="dnf<?php echo $key; ?>" <?php if ($_config['display_name_format'] == $key) { echo 'checked="checked"'; }?> /><label for="dnf<?php echo $key; ?>"><?php echo _AT($value, _AT('login_name'), _AT('first_name'), _AT('second_name'), _AT('last_name')); ?></label><br />
+               <?php endforeach; ?>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('master_list_authentication'); ?></legend>
+                (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['master_list'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="master_list" value="1" id="ml_y" <?php if ($_config['master_list']) { echo 'checked="checked"'; }?>  /><label for="ml_y"><?php echo _AT('enable'); ?></label> 
+
+               <input type="radio" name="master_list" value="0" id="ml_n" <?php if(!$_config['master_list']) { echo 'checked="checked"'; }?>  /><label for="ml_n"><?php echo  _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+       
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('allow_registration'); ?></legend> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_registration'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_registration" value="1" id="reg_y" <?php if($_config['allow_registration']) { echo 'checked="checked"'; }?>  /><label for="reg_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_registration" value="0" id="reg_n" <?php if(!$_config['allow_registration']) { echo 'checked="checked"'; }?>  /><label for="reg_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+       
+       <div class="row">
+       <fieldset><legend>      <?php echo _AT('allow_browse'); ?> </legend>
+       (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_browse'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_browse" value="1" id="browse_y" <?php if($_config['allow_browse']) { echo 'checked="checked"'; }?>  /><label for="browse_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_browse" value="0" id="browse_n" <?php if(!$_config['allow_browse']) { echo 'checked="checked"'; }?>  /><label for="browse_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('allow_instructor_registration'); ?> </legend>
+       (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_instructor_registration'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_instructor_registration" value="1" id="enrollreg_y" <?php if($_config['allow_instructor_registration']) { echo 'checked="checked"'; }?>  /><label for="enrollreg_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_instructor_registration" value="0" id="enrollreg_n" <?php if(!$_config['allow_instructor_registration']) { echo 'checked="checked"'; }?>  /><label for="enrollreg_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+       
+       <div class="row">               
+       <fieldset><legend><?php echo _AT('use_captcha'); ?> </legend>(<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['use_captcha'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <?php if (extension_loaded('gd')): ?>
+               <input type="radio" name="use_captcha" value="1" id="use_captcha_y" <?php if($_config['use_captcha']) { echo 'checked="checked"'; }?>  /><label for="use_captcha_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="use_captcha" value="0" id="use_captcha_n" <?php if(!$_config['use_captcha']) { echo 'checked="checked"'; }?>  /><label for="use_captcha_n"><?php echo _AT('disable'); ?></label>
+               <?php else: ?>
+               <input type="radio" name="use_captcha" value="1" id="use_captcha_y" disabled="disabled" /><label for="use_captcha_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="use_captcha" value="0" id="use_captcha_n" checked="checked" /><label for="use_captcha_n"><?php echo _AT('disable'); ?></label>
+               <?php endif; ?>
+               </fieldset>
+       </div>
+       
+       <div class="row">
+       <fieldset><legend><?php echo _AT('allow_unenroll'); ?></legend>
+                (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_unenroll'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_unenroll" value="1" id="ene_y" <?php if($_config['allow_unenroll']) { echo 'checked="checked"'; }?>  /><label for="ene_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_unenroll" value="0" id="ene_n" <?php if(!$_config['allow_unenroll']) { echo 'checked="checked"'; }?>  /><label for="ene_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('require_email_confirmation'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['email_confirmation'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="email_confirmation" value="1" id="ec_y" <?php if ($_config['email_confirmation']) { echo 'checked="checked"'; }?>  /><label for="ec_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="email_confirmation" value="0" id="ec_n" <?php if(!$_config['email_confirmation']) { echo 'checked="checked"'; }?>  /><label for="ec_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+               
+       <div class="row">
+       <fieldset><legend><?php echo _AT('allow_instructor_requests'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['allow_instructor_requests'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="allow_instructor_requests" value="1" id="air_y" <?php if($_config['allow_instructor_requests']) { echo 'checked="checked"'; }?>  /><label for="air_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="allow_instructor_requests" value="0" id="air_n" <?php if(!$_config['allow_instructor_requests']) { echo 'checked="checked"'; }?>  /><label for="air_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('instructor_request_email_notification'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['email_notification'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="email_notification" value="1" id="en_y" <?php if ($_config['email_notification']) { echo 'checked="checked"'; }?>  /><label for="en_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="email_notification" value="0" id="en_n" <?php if(!$_config['email_notification']) { echo 'checked="checked"'; }?>  /><label for="en_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('auto_approve_instructors'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['auto_approve_instructors'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="auto_approve_instructors" value="1" id="aai_y" <?php if($_config['auto_approve_instructors']) { echo 'checked="checked"'; }?>  /><label for="aai_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="auto_approve_instructors" value="0" id="aai_n" <?php if(!$_config['auto_approve_instructors']) { echo 'checked="checked"'; }?>  /><label for="aai_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('theme_specific_categories'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['theme_categories'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="theme_categories" value="1" id="tc_y" <?php if($_config['theme_categories']) { echo 'checked="checked"'; }?>  /><label for="tc_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="theme_categories" value="0" id="tc_n" <?php if(!$_config['theme_categories']) { echo 'checked="checked"'; }?>  /><label for="tc_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('user_contributed_notes'); ?> </legend>
+       (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['user_notes'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="user_notes" value="1" id="un_y" <?php if($_config['user_notes']) { echo 'checked="checked"'; }?>  /><label for="un_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="user_notes" value="0" id="un_n" <?php if(!$_config['user_notes']) { echo 'checked="checked"'; }?>  /><label for="un_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+               <label for="ext"><?php echo _AT('illegal_file_extensions'); ?></label><br />
+               <textarea name="illegal_extentions" cols="24" id="ext" rows="2" class="formfield" ><?php if ($_config['illegal_extentions']) { echo str_replace('|',' ',$_config['illegal_extentions']); }?></textarea>
+       </div>
+
+       <div class="row">
+               <label for="cache"><?php echo _AT('cache_directory'); ?></label><br />
+               <input type="text" name="cache_dir" id="cache" size="40" value="<?php if (!empty($_POST['cache_dir'])) { echo $stripslashes(htmlspecialchars($_POST['cache_dir'])); } else { echo $_config['cache_dir']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="latex_server"><?php echo _AT('latex_server'); ?></label><br />
+               <input type="text" name="latex_server" id="latex_server" size="40" value="<?php if (!empty($_POST['latex_server'])) { echo $stripslashes(htmlspecialchars($_POST['latex_server'])); } else { echo $_config['latex_server']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="course_backups"><?php echo _AT('course_backups'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['course_backups']; ?>)<br />
+               <input type="text" size="2" name="course_backups" id="course_backups" value="<?php if (!empty($_POST['course_backups'])) { echo $stripslashes(htmlspecialchars($_POST['course_backups'])); } else { echo $_config['course_backups']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <label for="sent_msgs_ttl"><?php echo _AT('sent_msgs_ttl_text'); ?></label> (<?php echo _AT('default'); ?>: <?php echo $_config_defaults['sent_msgs_ttl']; ?>)<br />
+               <input type="text" size="3" name="sent_msgs_ttl" id="sent_msgs_ttl" value="<?php if (!empty($_POST['sent_msgs_ttl'])) { echo intval($_POST['sent_msgs_ttl']); } else { echo $_config['sent_msgs_ttl']; } ?>"  />
+       </div>
+
+       <div class="row">
+               <fieldset>
+               <legend><?php echo _AT('auto_check_new_version'); ?></legend>
+                (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['check_version'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="check_version" value="1" id="cv_y" <?php if($_config['check_version']) { echo 'checked="checked"'; }?>  /><label for="cv_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="check_version" value="0" id="cv_n" <?php if(!$_config['check_version']) { echo 'checked="checked"'; }?>  /><label for="cv_n"><?php echo _AT('disable'); ?></label>
+               </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('file_storage_version_control'); ?> </legend>
+       (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['fs_versioning'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="fs_versioning" value="1" id="cf_y" <?php if($_config['fs_versioning']) { echo 'checked="checked"'; }?>  /><label for="cf_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="fs_versioning" value="0" id="cf_n" <?php if(!$_config['fs_versioning']) { echo 'checked="checked"'; }?>  /><label for="cf_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <input type="hidden" name="old_enable_mail_queue" value="<?php echo $_config['enable_mail_queue']; ?>" />
+               <legend><?php echo _AT('enable_mail_queue'); ?></legend>
+                (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['enable_mail_queue'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <?php echo _AT('mail_queue_cron'); ?><br />
+               <?php if (!$_config['last_cron'] || (time() - (int) $_config['last_cron'] > 2 * 60 * 60)): ?>
+                       
+                       <input type="radio" name="enable_mail_queue" id="mq_y" value="1" disabled="disabled" /><?php echo _AT('enable'); ?> 
+                       <label for="mq_y"><?php echo _AT('enable'); ?></label> 
+                       <input type="radio" name="enable_mail_queue" value="0" id="mq_n" checked="checked" />
+                       <label for="mq_n"><?php echo _AT('disable'); ?></label>
+               <?php else: ?>
+       
+                       <input type="radio" name="enable_mail_queue" value="1" id="mq_y" <?php if($_config['enable_mail_queue']) { echo 'checked="checked"'; }?>  />
+                       <label for="mq_y"><?php echo _AT('enable'); ?></label> 
+                       <input type="radio" name="enable_mail_queue" value="0" id="mq_n" <?php if(!$_config['enable_mail_queue']) { echo 'checked="checked"'; }?>  />
+                       <label for="mq_n"><?php echo _AT('disable'); ?></label>
+               <?php endif; ?>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+               <legend><?php echo _AT('auto_install_languages'); ?> </legend>
+               (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['auto_install_languages'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <?php echo _AT('auto_install_languages_cron'); ?><br />
+               <?php if (!$_config['last_cron'] || (time() - (int) $_config['last_cron'] > 2 * 60 * 60)): ?>
+                       <input type="radio" name="auto_install_languages" id="ai_y" value="1" disabled="disabled" />
+                       <label for="ai_y"><?php echo _AT('enable'); ?> </label>
+                       <input type="radio" name="auto_install_languages" value="0" id="ai_n" checked="checked" />
+                       <label for="ai_n"><?php echo _AT('disable'); ?></label>
+               <?php else: ?>
+                       <input type="radio" name="auto_install_languages" value="1" id="ai_y" <?php if($_config['auto_install_languages']) { echo 'checked="checked"'; }?>  /><label for="ai_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="auto_install_languages" value="0" id="ai_n" <?php if(!$_config['auto_install_languages']) { echo 'checked="checked"'; }?>  /><label for="ai_n"><?php echo _AT('disable'); ?></label>
+               <?php endif; ?>
+               </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('pretty_url'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['pretty_url'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="pretty_url" value="1" id="pu_y" <?php if($_config['pretty_url']) { echo 'checked="checked"'; }?> onclick="apache_mod_rewrite_toggler(true);"/><label for="pu_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="pretty_url" value="0" id="pu_n" <?php if(!$_config['pretty_url']) { echo 'checked="checked"'; }?> onclick="apache_mod_rewrite_toggler(false);"/><label for="pu_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('course_dir_name'); ?></legend>
+        (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['course_dir_name'] ? _AT('enable') : _AT('disable')); ?>)<br />
+               <input type="radio" name="course_dir_name" value="1" id="cdn_y" <?php if($_config['course_dir_name']) { echo 'checked="checked"'; }?> /><label for="cdn_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="course_dir_name" value="0" id="cdn_n" <?php if(!$_config['course_dir_name']) { echo 'checked="checked"'; }?>  /><label for="cdn_n"><?php echo _AT('disable'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+       <fieldset>
+       <legend><?php echo _AT('apache_mod_rewrite'); ?></legend>
+               <?php if (function_exists('apache_get_modules') && in_array('mod_rewrite', apache_get_modules())): ?>
+                       <?php echo _AT('mod_rewrite'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['apache_mod_rewrite'] ? _AT('enable') : _AT('disable')); ?>)<br />
+                       <input type="radio" name="apache_mod_rewrite" value="1" id="mr_y" <?php if($_config['apache_mod_rewrite']) { echo 'checked="checked"'; }?> /><label for="mr_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="apache_mod_rewrite" value="0" id="mr_n" <?php if(!$_config['apache_mod_rewrite']) { echo 'checked="checked"'; }?>  /><label for="mr_n"><?php echo _AT('disable'); ?></label>
+               <?php else: ?>
+                       <?php echo _AT('mod_rewrite'); ?> (<?php echo _AT('default'); ?>: <?php echo ($_config_defaults['apache_mod_rewrite'] ? _AT('enable') : _AT('disable')); ?>)<br />
+                       <input type="radio" name="apache_mod_rewrite" value="1" id="mr_y" disabled="disabled" /><label for="mr_y"><?php echo _AT('enable'); ?></label> <input type="radio" name="apache_mod_rewrite" value="0" id="mr_n" checked="checked" /><label for="mr_n"><?php echo _AT('disable'); ?></label>
+               <?php endif; ?>
+       </fieldset>
+       </div>
+
+       <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s"  />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"  />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/cron_config.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/cron_config.tmpl.php
new file mode 100644 (file)
index 0000000..827c3c1
--- /dev/null
@@ -0,0 +1,12 @@
+<?php global $_config; ?>
+<div class="input-form">
+       <div class="row">
+               <p><?php echo _AT('cron_url_usage'); ?></p>
+       <p>
+               <?php echo _AT('cron_url'); ?><br />
+               <code><wbr><?php echo AT_BASE_HREF; ?>admin/cron.php?k=<?php echo $_config['cron_key']; ?></wbr></code>
+       </p>
+       </div>
+       
+       
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/edit_feed.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/edit_feed.tmpl.php
new file mode 100644 (file)
index 0000000..f17f299
--- /dev/null
@@ -0,0 +1,20 @@
+<?php global $stripslashes;?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
+       <input type="hidden" name="fid" value="<?php echo $this->feed_id; ?>" />
+       <div class="input-form" style="width:95%">
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+                       <input id="title" name="title" type="text" size="40" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_GET['title'])); ?>" /><br />
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="url"><?php echo _AT('url'); ?></label><br />
+                       <input id="url" name="url" type="text" size="40" maxlength="255" value="<?php echo $stripslashes(htmlspecialchars($_GET['url'])); ?>" /><br />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" />
+                       <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
+               </div>
+       </div>
+</form>
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/index.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/index.tmpl.php
new file mode 100644 (file)
index 0000000..b5f1638
--- /dev/null
@@ -0,0 +1,45 @@
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get" name="form">
+<div class="table-surround">
+<table class="data" summary="Title and URL of News Feeds">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('title'); ?></th>
+       <th scope="col"><?php echo _AT('url'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="3">
+               <input type="submit" name="preview" value="<?php echo _AT('preview'); ?>" />
+               <input type="submit" name="edit"    value="<?php echo _AT('edit'); ?>" />
+               <input type="submit" name="delete"  value="<?php echo _AT('delete'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php 
+
+
+if (!($row = mysql_fetch_assoc($this->result))) { 
+?>
+
+       <tr>
+               <td colspan="3"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php } else { ?>
+       <?php do { 
+               $title_file = AT_CONTENT_DIR.'feeds/'.$row['feed_id'].'_rss_title.cache'; ?>
+               <tr onkeydown="document.form['f_<?php echo $row['feed_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['f_<?php echo $row['feed_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['feed_id']; ?>">
+                       <td valign="top"><input type="radio" id="f_<?php echo $row['feed_id']; ?>" name="fid" value="<?php echo $row['feed_id']; ?>" /></td>
+                       <td><label for="f_<?php echo $row['feed_id']; ?>"><?php if (file_exists($title_file)) { readfile($title_file); } ?></label></td>
+                       <td><?php echo $row['url']; ?></td>
+               </tr>
+       <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+
+<?php } ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/index_admin.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/index_admin.tmpl.php
new file mode 100644 (file)
index 0000000..1ce8248
--- /dev/null
@@ -0,0 +1,15 @@
+<?php global $_config; ?>
+
+<div style="width:95%;margin-left:auto;margin-right:auto;">
+       <div class="headingbox"><h3><?php echo _AT('admin_social'); ?></h3></div>
+       <div class="contentbox">
+       <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
+               <p><?php echo _AT('shindig_blurb'); ?></p>
+
+                               <label for="shindig"><?php echo _AT('shindig_url'); ?></label>
+                               <input type="text" id="shindig" name="shindig_url" size="40" value="<?php echo $_config['shindig_url']; ?>" />
+
+               <input type="submit" name="save" value="<?php echo _AT('save'); ?>" />
+       </form>
+       </div>
+</div>
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/language.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/language.tmpl.php
new file mode 100644 (file)
index 0000000..d4bb833
--- /dev/null
@@ -0,0 +1,48 @@
+<?php global $languageManager;?>
+<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table summary="ATutor langauge names in English and translated" class="data">
+<colgroup>
+       <col />
+       <col class="sort" />
+       <col span="3" />
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('name_in_language'); ?></th>
+       <th scope="col"><?php echo _AT('name_in_english'); ?></th>
+       <!-- REMOVED FOR MOBILE <th scope="col"><?php //echo _AT('lang_code'); ?></th> -->
+       <!--  <th scope="col"><?php echo _AT('charset'); ?></th> -->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="5">
+               <?php if (defined('AT_DEVEL_TRANSLATE') && AT_DEVEL_TRANSLATE): ?>
+                       <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />  
+                       <input type="submit" name="export" value="<?php echo _AT('export'); ?>"  /> 
+                       <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /> 
+                       <?php echo _AT('or'); ?> <a href="mods/_core/languages/language_add.php"><?php echo _AT('add_a_new_language'); ?></a>
+               <?php else: ?>
+                       <input type="submit" name="export" value="<?php echo _AT('export'); ?>" /> 
+                       <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
+               <?php endif; ?>
+       </td>
+</tr>
+</tfoot>
+<tbody>
+       <?php foreach ($languageManager->getAvailableLanguages() as $codes): ?>
+               <?php $language = current($codes); ?>
+               <tr onmousedown="document.form['m<?php echo $language->getCode(); ?>'].checked = true; rowselect(this);" id="r_<?php echo $language->getCode(); ?>">
+                       <td><input type="radio" name="id" value="<?php echo $language->getCode(); ?>" id="m<?php echo $language->getCode(); ?>" /></td>
+                       <td><label for="m<?php echo $language->getCode(); ?>"><?php echo $language->getNativeName(); ?></label></td>
+                       <td><?php echo $language->getEnglishName(); ?></td>
+               <!-- REMOVED FOR MOBILE         <td><?php //echo strtolower($language->getCode()); ?></td>-->
+               <!--    <td><?php //echo strtolower($language->getCharacterSet()); ?></td> -->
+               </tr>
+       <?php endforeach; ?>
+</tbody>
+</table>
+</div>
+</form>
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/language_add.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/language_add.tmpl.php
new file mode 100644 (file)
index 0000000..3d058e1
--- /dev/null
@@ -0,0 +1,53 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="import" value="1" />
+<div class="input-form" style="width:95%">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="code"><?php echo _AT('lang_code'); ?></label><br />
+               <input id="code" name="code" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['code']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="locale"><?php echo _AT('locale'); ?></label><br />
+               <input id="locale" name="locale" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['locale']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="charset"><?php echo _AT('charset'); ?></label><br />
+               <input id="charset" name="charset" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['charset']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="ltr"><?php echo _AT('direction'); ?></label><br />
+               <?php 
+                       if ($_POST['direction'] == 'rtl') { 
+                               $rtl = 'checked="checked"';  
+                               $ltr='';  
+                       } else { 
+                               $rtl = '';  
+                               $ltr='checked="checked"'; 
+                       }
+               ?>
+               <input id="ltr" name="direction" type="radio" value="ltr" <?php echo $ltr; ?> /><label for="ltr"><?php echo _AT('ltr'); ?></label>, <input id="rtl" name="direction" type="radio" value="rtl" <?php echo $rtl; ?> /><label for="rtl"><?php echo _AT('rtl'); ?></label>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="reg_exp"><?php echo _AT('reg_exp'); ?></label><br />
+               <input id="reg_exp" name="reg_exp" type="text" size="31" class="formfield" value="<?php echo $_POST['reg_exp']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="nname"><?php echo _AT('name_in_language'); ?></label><br />
+               <input id="nname" name="native_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['native_name']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ename"><?php echo _AT('name_in_english'); ?></label><br />
+               <input id="ename" name="english_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['english_name'];?>" />
+       </div>
+
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" /> <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />           
+       </div>
+</div>
+</form>
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/language_edit.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/language_edit.tmpl.php
new file mode 100644 (file)
index 0000000..db8725d
--- /dev/null
@@ -0,0 +1,56 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF'] . '?lang_code=' . $_GET['lang_code']; ?>">
+
+<input type="hidden" name="old_code" value="<?php echo $this->lang->getCode(); ?>" />
+
+<div class="input-form" style="width:95%">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="code"><?php echo _AT('lang_code'); ?></label><br />
+               <input id="code" name="code" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['code']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="locale"><?php echo _AT('locale'); ?></label><br />
+               <input id="locale" name="locale" type="text" size="2" maxlength="2" class="formfield" value="<?php echo $_POST['locale']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="charset"><?php echo _AT('charset'); ?></label><br />
+               <input id="charset" name="charset" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['charset']; ?>" />
+       </div>
+
+       <div class="row">
+               <label for="ltr"><?php echo _AT('direction'); ?></label><br />
+               <?php 
+                       if ($_POST['direction'] == 'rtl') { 
+                               $rtl = 'checked="checked"';  
+                               $ltr='';  
+                       } else { 
+                               $rtl = '';  
+                               $ltr='checked="checked"'; 
+                       }
+               ?>
+               <input id="ltr" name="direction" type="radio" value="ltr" <?php echo $ltr; ?> /><label for="ltr"><?php echo _AT('ltr'); ?></label>, <input id="rtl" name="direction" type="radio" value="rtl" <?php echo $rtl; ?> /><label for="rtl"><?php echo _AT('rtl'); ?></label>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="reg_exp"><?php echo _AT('reg_exp'); ?></label><br />
+               <input id="reg_exp" name="reg_exp" type="text" size="31" class="formfield" value="<?php echo $_POST['reg_exp']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="nname"><?php echo _AT('name_in_language'); ?></label><br />
+               <input id="nname" name="native_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['native_name']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ename"><?php echo _AT('name_in_english'); ?></label><br />
+               <input id="ename" name="english_name" type="text" size="31" maxlength="20" class="formfield" value="<?php echo $_POST['english_name'];?>" />
+       </div>
+
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" /> <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />           
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/language_editor.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/language_editor.tmpl.php
new file mode 100644 (file)
index 0000000..bf01427
--- /dev/null
@@ -0,0 +1,60 @@
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               <div class="row">
+                       <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+               </div>
+
+               <div class="row">
+                       <?php echo _AT('type'); ?><br />
+                       <input type="radio" name="type" value="template" id="tyte" <?php if ($_GET['type'] == 'template') { echo 'checked="checked"'; } ?> /><label for="tyte"><?php echo _AT('template'); ?></label>
+                       <input type="radio" name="type" value="feedback" id="tyfe" <?php if ($_GET['type'] == 'feedback') { echo 'checked="checked"'; } ?> /><label for="tyfe"><?php echo _AT('feedback'); ?></label>
+               </div>
+
+               <div class="row">
+                       <input type="checkbox" name="custom" value="1" id="cus" <?php if (isset($_GET['custom'])) { echo 'checked="checked"'; } ?> /><label for="cus"><?php echo _AT('only_show_edited_terms'); ?></label>
+               </div>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?></label><br />
+                       <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+</form>
+<form name="form" method="post">
+<div class="input-form">
+       <table cellspacing="0" cellpadding="0">
+       <tr>
+       <td valign="top">
+               <?php if ($this->num_results): ?>
+                       <select size="<?php echo min(max($this->num_results,2), 25); ?>" name="terms" id="terms" onchange="javascript:showtext(this);">
+                               <?php
+                                       while ($row = mysql_fetch_assoc($result)): 
+                                               if ($strlen($row['text']) > 30) {
+                                                       $row['text'] = $substr($row['text'], 0, 28) . '...';
+                                               }
+                                       ?>
+                                               <option value="<?php echo $row['term']; ?>"><?php echo htmlspecialchars($row['text']); ?></option>
+                                       <?php endwhile; ?>
+                       </select>
+               <?php else: ?>
+                       <p><?php echo _AT('none_found'); ?></p>
+               <?php endif; ?>
+       </td>
+
+       <td valign="top">
+               <div class="row">
+                       <iframe src="mods/_core/languages/language_term.php" frameborder="0" height="430" width="450" marginheight="0" marginwidth="0" name="tran" id="tran"></iframe>
+               </div>
+       </td>
+       </tr>
+       </table>
+</div>
+</form>
+
+                       
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/language_import.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/language_import.tmpl.php
new file mode 100644 (file)
index 0000000..16572e9
--- /dev/null
@@ -0,0 +1,53 @@
+<?php global $languageManager;?>
+<form name="form1" method="post" action="mods/_core/languages/language_import.php" enctype="multipart/form-data" onsubmit="openWindow('<?php echo AT_BASE_HREF; ?>tools/prog.php');">
+<div class="input-form">
+       <div class="row">
+               <p><?php echo _AT('import_lang_howto'); ?></p>
+       </div>
+       
+       <div class="row">
+               <label for="file"><?php echo _AT('import_a_new_lang'); ?></label><br />
+               <input type="file" name="file" id="file" />
+       </div>
+       
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('import'); ?>" />
+       </div>
+</div>
+</form>
+<form name="form1" method="post" action="mods/_core/languages/language_import.php">
+<div class="input-form">
+       <div class="row">
+               <?php echo _AT('import_remote_language'); ?>
+       </div>
+
+       <div class="row">
+               <?php
+                       
+                       $remoteLanguageManager = new RemoteLanguageManager();
+                       if ($remoteLanguageManager->getNumLanguages()) {
+                               $found = false;
+                               foreach ($remoteLanguageManager->getAvailableLanguages() as $codes){
+                                       $language = current($codes);
+                                       if (!$languageManager->exists($language->getCode()) && ($language->getStatus() == AT_LANG_STATUS_PUBLISHED)) {
+                                               if (!$found) {
+                                                       echo '<select name="language" title="language">';
+                                                       $found = true;
+                                               }
+                                               echo '<option value="'.$language->getCode().'">'.$language->getEnglishName().' - '.$language->getNativeName().'</option>';
+                                       }
+                               }
+                               if ($found) {
+                                       echo '</select></div>';
+                                       echo '<div class="row buttons"><input type="submit" name="submit_import" value="' . _AT('import') . '" class="button" /></div>';
+                               } else {
+                                       echo _AT('none_found');
+                                       echo '</div>';
+                               }
+                       } else {
+                               echo _AT('cannot_find_remote_languages');
+                               echo '</div>';
+                       }
+               ?>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/language_translate.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/language_translate.tmpl.php
new file mode 100644 (file)
index 0000000..1cb9869
--- /dev/null
@@ -0,0 +1,37 @@
+<?php debug($_REQUEST); ?>
+<form method="get">
+<div class="input-form">
+       <div class="row">
+               <h3><?php echo _AT('translate'); ?></h3>
+       </div>
+
+       <div class="row">
+               <p><?php echo _AT('translate_lang_howto'); ?></p>
+       </div>
+
+       <div class="row buttons">
+               <input type="button" onclick="javascript:window.open('<?php echo AT_BASE_HREF; ?>mods/_core/languages/translate_atutor.php', 'newWin1', 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=1, copyhistory=0, width=640, height=480')" value="<?php echo _AT('translate'); ?>" <?php echo $this->button_state; ?> />
+       </div>
+</div>
+</form>
+
+<?php if (defined('AT_DEVEL_TRANSLATE') && AT_DEVEL_TRANSLATE): ?>
+       <form name="form1" method="post" action="mods/_core/languages/language_translate.php">
+               <div class="input-form">
+                       <div class="row">
+                               Import partial language from the <strong>live ATutor language database</strong> to your local installation for translating.
+                       </div>
+                       <div class="row">
+                               <?php
+                                       require_once(AT_INCLUDE_PATH.'../mods/_core/languages/classes/RemoteLanguageManager.class.php');
+                                       $remoteLanguageManager = new RemoteLanguageManager();
+                                       $remoteLanguageManager->printDropdown($_SESSION['lang'], 'import_lang', 'import_lang');
+                               ?>
+                       </div>
+
+                       <div class="row buttons">
+                               <input type="submit" name="svn_submit" value="<?php echo _AT('import'); ?>" />
+                       </div>
+               </div>
+       </form>
+<?php endif; ?>
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/module_prefs.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/module_prefs.tmpl.php
new file mode 100644 (file)
index 0000000..5785865
--- /dev/null
@@ -0,0 +1,36 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
+       <div class="input-form" style="max-width: 95%">
+               <div class="row">
+                       <fieldset>
+                       <legend><?php echo _AT("google_search_type_txt"); ?></legend>
+                       <?php
+                               if ($this->googleType==GOOGLE_TYPE_SOAP){
+                                       $type1=' checked="checked"'; 
+                               } elseif ($this->googleType==GOOGLE_TYPE_AJAX){
+                                       $type2=' checked="checked"'; 
+                               }
+                       ?>
+               
+                       <input type="radio" name="gtype" id="googleTypeSoap" value="<?php echo GOOGLE_TYPE_SOAP?>" <?php echo $type1 ?>/>
+                       <label for="googleTypeSoap"><?php echo _AT("google_search_soap"); ?></label><br/>
+
+                       <input type="radio" name="gtype" id="googleTypeAjax" value="<?php echo GOOGLE_TYPE_AJAX?>" <?php echo $type2 ?>/>
+                       <label for="googleTypeAjax"><?php echo _AT("google_search_ajax"); ?></label><br/>
+               </fieldset>
+               </div>
+               
+               <div class="row">
+                       <?php echo _AT('google_search_attn'); ?><br/><br/>
+                       <?php echo _AT('google_key_txt'); ?>
+               </div>
+               <div class="row">
+                       <label for="key">Key</label>
+                       <input type="text" name="key" id="key" size="40" value="<?php echo $key; ?>" style="min-width: 90%;" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               </div>
+       </div>
+
+</form>
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/module_setup.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/module_setup.tmpl.php
new file mode 100644 (file)
index 0000000..82f2353
--- /dev/null
@@ -0,0 +1,20 @@
+<?php global $_config; ?>
+<form action="<?php  $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+    <div class="input-form">
+        <div class="row">
+               <p><label for="uri"><?php echo _AT('transformable_uri'); ?></label></p>
+               <input type="text" name="transformable_uri" value="<?php echo $_config['transformable_uri']; ?>" id="uri" size="40" style="min-width: 95%;" />
+            
+                   <p><label for="key"><?php echo _AT('web_service_id'); ?></label></p>
+                   <input type="text" name="transformable_web_service_id" value="<?php echo $_config['transformable_web_service_id']; ?>" id="key" size="40" style="min-width: 95%;" />
+
+                   <p><label for="key"><?php echo _AT('oauth_expire'); ?></label></p>
+                   <input type="text" name="transformable_oauth_expire" value="<?php echo $_config['transformable_oauth_expire']; ?>" id="key" size="20" />&nbsp;<?php echo _AT('seconds'); ?><br />
+                      <small>&middot; <?php echo _AT('oauth_expire_note'); ?><br /></small>
+        </div>
+
+        <div class="row buttons">
+            <input type="submit" name="submit" value="<?php echo _AT('save'); ?>"  />
+        </div>
+    </div>
+</form> 
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/system_preferences/preview.tmpl.php b/docs/themes/simplified-desktop/admin/system_preferences/preview.tmpl.php
new file mode 100644 (file)
index 0000000..e4a7c3e
--- /dev/null
@@ -0,0 +1,22 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+
+<div class="input-form">
+       <div class="row">
+               <h3><?php if (file_exists($this->title_file)) { readfile($this->title_file); } ?></h3>
+       </div>
+
+       <div class="row">
+               <?php if (file_exists($this->cache_file) && filesize($this->cache_file) > 0) { 
+                       readfile($this->cache_file); 
+                       echo '<p><br /><small>'._AT('new_window').'</small></p>';
+               } else {
+                       echo _AT('no_content_avail');
+               }?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="back" value="<?php echo _AT('back'); ?>" />
+       </div>
+</div>
+</form>
diff --git a/docs/themes/simplified-desktop/admin/users/admin_email.tmpl.php b/docs/themes/simplified-desktop/admin/users/admin_email.tmpl.php
new file mode 100644 (file)
index 0000000..9978e51
--- /dev/null
@@ -0,0 +1,30 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<input type="hidden" name="admin" value="admin" />
+
+<div class="input-form">
+       <div class="row">
+       <fieldset>
+<legend><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo  _AT('to'); ?></legend>
+               <input type="radio" name="to" value="3" checked="checked" id="all" /><label for="all"><?php echo _AT('all_users'); ?></label>  
+         <input type="radio" name="to" value="1" id="inst" <?php if ($_POST['to'] == AT_STATUS_INSTRUCTOR) { echo 'checked="checked"'; } ?> /><label for="inst"><?php echo  _AT('instructors'); ?></label>
+         <input type="radio" name="to" value="2" id="stud" <?php if ($_POST['to'] == AT_STATUS_STUDENT) { echo 'checked="checked"'; } ?> /><label for="stud"><?php echo  _AT('students'); ?></label>
+       </fieldset>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="subject"><?php echo _AT('subject'); ?></label><br />
+               <input type="text" name="subject" size="45" id="subject" value="<?php echo $_POST['subject']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('body'); ?></label><br />
+               <textarea cols="45" rows="18" name="body" id="body"><?php echo $_POST['body']; ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('send'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/users/create.tmpl.php b/docs/themes/simplified-desktop/admin/users/create.tmpl.php
new file mode 100644 (file)
index 0000000..ffcb469
--- /dev/null
@@ -0,0 +1,49 @@
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<input type="hidden" name="form_password_hidden" value="" />
+<input type="hidden" name="password_error" value="" />
+
+<div class="input-form">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="login"><?php echo _AT('login_name'); ?></label><br />
+               <input type="text" name="login" id="login" size="25" value="<?php echo htmlspecialchars($_POST['login']); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password"><?php echo _AT('password'); ?></label><br />
+               <input type="password" name="password" id="password" size="25" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password2"><?php echo _AT('confirm_password'); ?></label><br />
+               <input type="password" name="confirm_password" id="password2" size="25" />
+       </div>
+
+       <div class="row">
+               <label for="real_name"><?php echo _AT('real_name'); ?></label><br />
+               <input type="text" name="real_name" id="real_name" size="30" value="<?php echo htmlspecialchars($_POST['real_name']); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />
+               <input type="text" name="email" id="email" size="25" value="<?php echo htmlspecialchars($_POST['email']); ?>" />
+       </div>
+
+       <div class="row">
+               <?php echo _AT('privileges'); ?><br />
+               <input type="checkbox" name="priv_admin" value="1" id="priv_admin" <?php if ($_POST['priv_admin']) { echo 'checked="checked"'; } ?> /><label for="priv_admin"><?php echo _AT('priv_admin_super'); ?></label><br /><br />
+
+       
+               <?php foreach ($this->keys as $module_name): ?>
+                       <?php $module =& $this->module_list[$module_name]; ?>
+                       <?php if (!($module->getAdminPrivilege() > 1)) { continue; } ?>
+                               <input type="checkbox" name="privs[]" value="<?php echo $module->getAdminPrivilege(); ?>" id="priv_<?php echo $module->getAdminPrivilege(); ?>" <?php if (query_bit($_POST['privs'], $module->getAdminPrivilege())) { echo 'checked="checked"'; }  ?> /><label for="priv_<?php echo $module->getAdminPrivilege(); ?>"><?php echo $module->getName() ?></label><br />
+               <?php endforeach; ?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" onclick="return encrypt_password();" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/users/index.tmpl.php b/docs/themes/simplified-desktop/admin/users/index.tmpl.php
new file mode 100644 (file)
index 0000000..c428215
--- /dev/null
@@ -0,0 +1,79 @@
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table summary="List of administrators' login name, real name, and account status" class="data" >
+<colgroup>
+       <?php if ($col == 'login'): ?>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($col == 'real_name'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="3" />
+       <?php elseif($col == 'email'): ?>
+               <col span="3" />
+               <col class="sort" />
+               <col span="2" />
+       <?php elseif($col == 'last_login'): ?>
+               <col span="4" />
+               <col class="sort" />
+               <col />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('login_name');        ?></a></th>
+       <th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=real_name<?php echo $page_string; ?>"><?php echo _AT('real_name');   ?></a></th>
+       <!-- REMOVED FOR MOBILE THEME -->
+       <!-- <th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=email<?php echo $page_string; ?>"><?php echo _AT('email');           ?></a></th> -->
+       <!--<th scope="col"><a href="mods/_core/users/admins/index.php?<?php echo $orders[$order]; ?>=last_login<?php echo $page_string; ?>"><?php echo _AT('last_login'); ?></a></th> -->
+       <th scope="col"><?php echo _AT('account_status'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" />
+               <input type="submit" name="view_log" value="<?php echo _AT('view_log'); ?>" />
+               <input type="submit" name="password" value="<?php echo _AT('password'); ?>" />
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php if (mysql_num_rows($this->result) == 0) { ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('no_admins_found'); ?></td>
+       </tr>
+<?php } else {
+               while ($row = mysql_fetch_assoc($this->result)): ?>
+                       <tr onkeydown="document.form['m<?php echo $row['login']; ?>'].checked = true;rowselect(this);" onmousedown="document.form['m<?php echo $row['login']; ?>'].checked = true;rowselect(this);" id="r_<?php echo $row['login']; ?>">
+                               <td><input type="radio" name="login" value="<?php echo $row['login']; ?>" id="m<?php echo $row['login']; ?>" /></td>
+                               <td><label for="m<?php echo $row['login']; ?>"><?php echo $row['login'];      ?></label></td>
+                               <td><?php echo $row['real_name'];  ?></td>
+                               <!--  REMOVED FOR MOBILE THEME
+                               <td><?php echo $row['email'];      ?></td>
+                               <td><?php 
+                                       if ($row['last_login'] == '0000-00-00 00:00:00') {
+                                               echo _AT('never');
+                                       } else {
+                                               echo $row['last_login'];
+                                       } ?></td> -->
+                               <td><?php 
+                                       if ($row['privileges'] == 1) { 
+                                               echo _AT('priv_admin_super');
+                                       } else if ($row['privileges'] > 0) {
+                                               echo _AT('active_admin');
+                                       } else {
+                                               echo _AT('inactive_admin');
+                                       }
+                                ?> </td>
+                       </tr>
+               <?php endwhile; ?>
+       <?php } ?>
+</tbody>
+</table>
+</div>
+</form>
diff --git a/docs/themes/simplified-desktop/admin/users/instructor_requests.tmpl.php b/docs/themes/simplified-desktop/admin/users/instructor_requests.tmpl.php
new file mode 100644 (file)
index 0000000..83ca4f8
--- /dev/null
@@ -0,0 +1,45 @@
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="Table listing instructor requets" >
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('login_name');     ?></th>
+       <!-- REMOVED FOR MOBILE <th scope="col"><?php echo _AT('first_name');   ?></th>-->
+       <!-- <th scope="col"><?php echo _AT('last_name');    ?></th>  -->
+       <!--  <th scope="col"><?php echo _AT('email');        ?></th> -->
+       <th scope="col"><?php echo _AT('notes');        ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+       <input type="submit" name="deny" value="<?php echo _AT('deny'); ?>" /> 
+       <input type="submit" name="approve" value="<?php echo _AT('approve'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+<?php
+       if ($row = mysql_fetch_assoc($this->result)) {
+               do {
+                       echo '<tr onkeydown ="document.form[\'i'.$row['member_id'].'\'].checked = true;rowselect(this);" onmousedown="document.form[\'i'.$row['member_id'].'\'].checked = true;rowselect(this);" id="r_'.$row['member_id'].'">';
+                       echo '<td><input type="radio" name="id" value="'.$row['member_id'].'" id="i'.$row['member_id'].'" /></td>';
+                       echo '<td><label for="i'.$row['member_id'].'">'.AT_print($row['login'], 'members.login').'</label></td>';
+                       // REMOVED FOR MOBILE
+                       // echo '<td>'.AT_print($row['first_name'], 'members.first_name').'</td>';
+                   // echo '<td>'.AT_print($row['last_name'], 'members.last_name').'</td>';
+                       // echo '<td>'.AT_print($row['email'], 'members.email').'</td>';
+                       
+                       echo '<td>'.AT_print($row['notes'], 'instructor_approvals.notes').'</td>';
+
+                       echo '</tr>';
+               } while ($row = mysql_fetch_assoc($this->result));
+       } else {
+               echo '<tr><td colspan="6">'._AT('none_found').'</td></tr>';
+       }
+?>
+</tbody>
+</table>
+</div>
+</form>
diff --git a/docs/themes/simplified-desktop/admin/users/log.tmpl.php b/docs/themes/simplified-desktop/admin/users/log.tmpl.php
new file mode 100644 (file)
index 0000000..8ae881d
--- /dev/null
@@ -0,0 +1,30 @@
+<div class="table-surround">
+<table summary="Date and login name associated with an action in a database table" class="data" >
+
+<thead>
+<tr>
+       <th scope="col"><?php echo _AT('date');           ?></th>
+<!--   <th scope="col"><?php echo _AT('login_name');     ?></th> -->
+<!--   <th scope="col"><?php echo _AT('action');         ?></th> -->
+       <th scope="col"><?php echo _AT('database_table'); ?></th>
+</tr>
+</thead>
+<tbody>
+<?php if (mysql_num_rows($this->result) > 0) : ?>
+       <?php while ($row = mysql_fetch_assoc($this->result)): ?>
+               <?php $offset++; ?>
+               <tr onkeydown="document.location='<?php echo AT_BASE_HREF; ?>mods/_core/users/admins/detail_log.php?offset=<?php echo $offset.SEP.'p='.$page.SEP.'login='.$_GET['login']; ?>'" onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_core/users/admins/detail_log.php?offset=<?php echo $offset.SEP.'p='.$page.SEP.'login='.$_GET['login']; ?>'" title="<?php echo _AT('view_details'); ?>">
+                       <td><a href="<?php echo AT_BASE_HREF; ?>mods/_core/users/admins/detail_log.php?offset=<?php echo $offset.SEP.'p='.$page.SEP.'login='.$_GET['login']; ?>"><?php echo $row['time']; ?></a></td>
+                       <!-- <td><?php echo $row['login']; ?></td> -->
+                       <!--  <td><?php echo $this->operations[$row['operation']]; ?></td>-->
+                       <td><?php echo $row['table']; ?></td>
+               </tr>
+       <?php endwhile; ?>
+<?php else: ?>
+<tr>
+       <td colspan="4"><?php echo _AT('none_found'); ?></td>
+</tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/users/master_list.tmpl.php b/docs/themes/simplified-desktop/admin/users/master_list.tmpl.php
new file mode 100644 (file)
index 0000000..431b0e3
--- /dev/null
@@ -0,0 +1,129 @@
+
+<form name="importForm" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data">
+<div class="input-form">
+       <div class="row">
+               <h3><?php echo _AT('update_list'); ?></h3>
+               <label for="file"><?php echo _AT('file'); ?></label><br />
+               <input type="file" name="file" size="40" id="file" />
+       </div>
+       
+       <div class="row">
+               <fieldset>
+               <legend><?php echo _AT('master_not_in_list'); ?></legend>
+               <input type="radio" name="override" id="o0" value="0" checked="checked" /><label for="o0"><?php echo _AT('leave_unchanged'); ?></label>
+               <input type="radio" name="override" id="o1" value="1" /><label for="o1"><?php echo _AT('disable');     ?></label>
+               </fieldset>
+       </div>
+
+       <div class="row buttons">
+               <input type= "submit" name="submit" value="<?php echo _AT('upload'); ?>" />
+       </div>
+</div>
+</form>
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <div class="input-form">
+               
+                       <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+                       <a id="results-hide-show-link" href="javascript:void(0);" tabindex="1">Refine Results</a>
+               
+       
+               
+       <div id="results-hide-show" role="search"  aria-live="assertive">
+       <div id="results-display">
+               <div class="row">
+                       <fieldset>
+                       <legend><?php echo _AT('account_status'); ?></legend>
+                       <input type="radio" name="status" value="1" id="s0" <?php if ($_GET['status'] == 1) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('not_created'); ?></label> 
+
+                       <input type="radio" name="status" value="2" id="s1" <?php if ($_GET['status'] == 2) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('created'); ?></label> 
+
+                       <input type="radio" name="status" value="" id="s" <?php if ($_GET['status'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label> 
+                       </fieldset>
+               </div>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('student_id'); ?>)</label><br />
+                       <input type="text" name="search" id="search" size="20" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+       </div> <!-- end #results-display -->
+       </div> <!-- end #results-hide-show -->
+</form>
+
+<div class="paging">
+       <ul>
+       <?php for ($i=1; $i<=$this->num_pages; $i++): ?>
+               <li>
+                       <?php if ($i == $page) : ?>
+                               <a class="current" href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$page_string; ?>"><strong><?php echo $i; ?></strong></a>
+                       <?php else: ?>
+                               <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$page_string; ?>"><?php echo $i; ?></a>
+                       <?php endif; ?>
+               </li>
+       <?php endfor; ?>
+       </ul>
+</div>
+
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="status" value="<?php echo $_GET['status']; ?>" />
+<div class="table-surround">
+<table summary="Table lists results by Student ID, Login Name, First Name, Second Name, and Last Name." class="data"  >
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('student_id'); ?></th>
+       <th scope="col"><?php echo _AT('login_name'); ?></th>
+       <th scope="col"><?php echo _AT('last_name'); ?></th>
+</tr>
+</thead>
+<?php if ($this->num_results > 0): ?>
+<tfoot>
+<tr>
+       <td colspan="6"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+       <?php while($row = mysql_fetch_assoc($this->result)): ?>
+               <tr onmousedown="document.form['m<?php echo $row['public_field']; ?>'].checked = true;rowselect(this);" onkeydown="document.form['m<?php echo $row['public_field']; ?>'].checked = true;rowselect(this);" id="r_<?php echo $row['public_field']; ?>">
+                       <td><input type="radio" name="id" value="<?php 
+                               if ($row['member_id']) {
+                                       echo $row['member_id'];
+                               } else {
+                                       echo '-'.$row['public_field'];
+                               }
+                               ?>" id="m<?php echo $row['public_field']; ?>" /></td>
+                       <td><label for="m<?php echo $row['public_field']; ?>"><?php echo $row['public_field']; ?></label></td>
+                       <td><?php
+                               if ($row['member_id']) {
+                                       echo $row['login'];
+                               } else {
+                                       echo '-';
+                               }
+                               ?></td>
+
+                       <td><?php
+                               if ($row['member_id']) {
+                                       echo $row['last_name'];
+                               } else {
+                                       echo '-';
+                               }
+                               ?></td>
+               </tr>
+       <?php endwhile; ?>
+</tbody>
+<?php else: ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/users/user_enrollment.tmpl.php b/docs/themes/simplified-desktop/admin/users/user_enrollment.tmpl.php
new file mode 100644 (file)
index 0000000..463eb24
--- /dev/null
@@ -0,0 +1,85 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>?id=<?php echo $this->id; ?>">
+<input type="hidden" name="id" value="<?php echo $this->id; ?>"/>
+<div class="input-form">
+       <div class="row">
+       <h3><?php echo _AT('instructor'); ?></h3>
+               <?php if ($this->instruct): ?>
+                       <ul>
+                       <?php foreach ($this->instruct as $cid): ?>
+                               <li><?php echo $this->system_courses[$cid]['title']; ?></li>
+                       <?php endforeach; ?>
+                       </ul>
+               <?php else: ?>
+                       <?php echo _AT('none'); ?>
+               <?php endif; ?>
+       </div>
+       <div class="row buttons">
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
+       </div>
+</div>
+
+<div class="input-form">
+       <div class="row">
+       <h3><?php echo _AT('enrolled'); ?></h3>
+               <?php if ($this->enrolled): ?>
+                       <ul>
+                       <?php foreach ($this->enrolled as $cid): ?>
+                               <li><input type="checkbox" name="enrolled[]" value="<?php echo $cid; ?>" id="c<?php echo $cid; ?>"/><label for="c<?php echo $cid; ?>"><?php echo $this->system_courses[$cid]['title']; ?></label></li>
+                       <?php endforeach; ?>
+                       </ul>
+               <?php else: ?>
+                       <?php echo _AT('none'); ?>
+               <?php endif; ?>
+       </div>
+       <div class="row buttons">
+       <?php if ($this->enrolled): ?>
+               <input type="submit" name="enrolled_unenroll" value="<?php echo _AT('unenroll'); ?>"/>
+       <?php endif; ?>
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
+       </div>
+
+</div>
+
+<div class="input-form">
+       <div class="row">
+       <h3><?php echo _AT('pending_enrollment'); ?></h3>
+               <?php if ($this->pending): ?>
+                       <ul>
+                       <?php foreach ($this->pending as $cid): ?>
+                               <li><input type="checkbox" name="pending[]" value="<?php echo $cid; ?>" id="c<?php echo $cid; ?>"/><label for="c<?php echo $cid; ?>"><?php echo $this->system_courses[$cid]['title']; ?></label></li>
+                       <?php endforeach; ?>
+                       </ul>
+               <?php else: ?>
+                       <?php echo _AT('none'); ?>
+               <?php endif; ?>
+       </div>
+       <div class="row buttons">
+       <?php if ($this->pending): ?>
+               <input type="submit" name="pending_remove" value="<?php echo _AT('remove'); ?>"/>
+               <input type="submit" name="pending_enroll" value="<?php echo _AT('enroll'); ?>"/>
+       <?php endif; ?>
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
+       </div>  
+</div>
+
+<div class="input-form">
+       <div class="row">
+               <h3><?php echo _AT('not_enrolled');?></h3>
+                       <?php if ($this->not_enrolled): ?>
+                               <ul>
+                               <?php foreach ($this->not_enrolled as $cid): ?>
+                                       <li><input type="checkbox" name="not_enrolled[]" value="<?php echo $cid; ?>" id="c<?php echo $cid; ?>"/><label for="c<?php echo $cid; ?>"><?php echo $this->system_courses[$cid]['title']; ?></label></li>
+                               <?php endforeach; ?>
+                               </ul>
+                       <?php else: ?>
+                               <?php echo _AT('none'); ?>
+                       <?php endif; ?>
+       </div>
+       <div class="row buttons">
+       <?php if ($this->not_enrolled): ?>
+               <input type="submit" name="not_enrolled_enroll" value="<?php echo _AT('enroll'); ?>"/>
+       <?php endif; ?>
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>"/>
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/admin/users/users.tmpl.php b/docs/themes/simplified-desktop/admin/users/users.tmpl.php
new file mode 100644 (file)
index 0000000..5a48c0a
--- /dev/null
@@ -0,0 +1,176 @@
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+       <div class="input-form">
+       <div id="results-hide-show-simple-content" class="hide-show-container-surround ">       
+                       
+                       <a id="results-hide-show-link"  class="content-expand" href="javascript:void(0);" tabindex="1">Refine Results</a>
+       </div>
+               
+       <div id="results-hide-show" role="search"  aria-live="assertive">
+       <div id="results-display">
+       
+               
+               <div class="row">
+               <fieldset>
+                       <legend><?php echo _AT('account_status'); ?></legend>
+                       <input type="radio" name="status" value="0" id="s0" <?php if ($_GET['status'] == 0) { echo 'checked="checked"'; } ?> /><label for="s0"><?php echo _AT('disabled'); ?></label> 
+
+                       <input type="radio" name="status" value="1" id="s1" <?php if ($_GET['status'] == 1) { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('unconfirmed'); ?></label> 
+
+                       <input type="radio" name="status" value="2" id="s2" <?php if ($_GET['status'] == 2) { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('student'); ?></label>
+
+                       <input type="radio" name="status" value="3" id="s3" <?php if ($_GET['status'] == 3) { echo 'checked="checked"'; } ?> /><label for="s3"><?php echo _AT('instructor'); ?></label>
+
+                       <input type="radio" name="status" value="" id="s" <?php if ($_GET['status'] === '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
+               </fieldset>
+               </div>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('login_name').', '._AT('first_name').', '._AT('second_name').', '._AT('last_name') .', '._AT('email'); ?>)</label><br />
+                       <fieldset><legend><?php echo _AT('search_match'); ?>:</legend>
+                       <input type="radio" name="include" value="all" id="match_all" <?php echo $checked_include_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> 
+                       <input type="radio" name="include" value="one" id="match_one" <?php echo $checked_include_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
+                       </fieldset>
+                       <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+                       <br/>
+               
+               </div>
+
+               <?php if (defined('AT_MASTER_LIST') && AT_MASTER_LIST): ?>
+                       <div class="row">
+                               <label for="searchid"><?php echo _AT('search'); ?> (<?php echo _AT('student_id'); ?>)</label><br />
+                               <input type="text" name="searchid" id="searchid" size="20" value="<?php echo htmlspecialchars($_GET['searchid']); ?>" />
+                       </div>
+               <?php endif; ?>
+
+               <div class="row">
+                       <label for="last_login_have"><?php echo _AT('last_login'); ?></label><br />                                     
+                       <select name="last_login_have" id="last_login_have">
+                               <option value="-1">- <?php echo _AT('select'); ?> -</option>
+                               <option value="1" <?php if($_GET['last_login_have']=='1') { echo 'selected="selected"';}?>><?php echo _AT('have'); ?></option>
+                               <option value="0" <?php if(isset($_GET['last_login_have']) && $_GET['last_login_have']=='0') { echo 'selected="selected"';}?>><?php echo _AT('have_not'); ?></option>
+                       </select> 
+                       
+               <label for="last_login_days"><?php echo _AT('logged_in_within'); ?>:</label> <input type="text" id="last_login_days" name="last_login_days" size="3" value="<?php echo htmlspecialchars($_GET['last_login_days']); ?>" /> <?php echo _AT('days'); ?> <br />
+                       
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </div>
+       </div> <!-- end #results-display -->
+       </div> <!-- end #results-hide-show -->
+       
+</form>
+
+
+<?php print_paginator($this->page, $this->num_results, $this->page_string . SEP . $this->order .'='. $col, $this->results_per_page); ?>
+<?php echo "<br>";?>
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="status" value="<?php echo $_GET['status']; ?>" />
+<input type="hidden" name="search" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+<input type="hidden" name="include" value="<?php echo htmlspecialchars($_GET['include']); ?>" />
+
+<?php if (defined('AT_MASTER_LIST') && AT_MASTER_LIST) {  $col_counts = 1; } else { $col_counts = 0; } ?>
+<div class="table-surround">
+<table summary="" class="data" >
+<colgroup>
+       <?php if ($col == 'login'): ?>
+               <col />
+               <col class="sort" />
+               <col span="<?php echo 5 + $col_counts; ?>" />
+       <?php elseif($col == 'public_field'): ?>
+               <col span="<?php echo 1 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="6" />
+       <?php elseif($col == 'first_name'): ?>
+               <col span="<?php echo 2 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="5" />
+       <?php elseif($col == 'second_name'): ?>
+               <col span="<?php echo 3 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($col == 'last_name'): ?>
+               <col span="<?php echo 4 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="3" />
+       <?php elseif($col == 'email'): ?>
+               <col span="<?php echo 5 + $col_counts; ?>" />
+               <col class="sort" />
+               <col span="2" />
+       <?php elseif($col == 'status'): ?>
+               <col span="<?php echo 6 + $col_counts; ?>" />
+               <col class="sort" />
+               <col />
+       <?php elseif($col == 'last_login'): ?>
+               <col span="<?php echo 7 + $col_counts; ?>" />
+               <col class="sort" />
+       <?php elseif($col == 'creation_date'): ?>
+               <col span="<?php echo 8 + $col_counts; ?>" />
+               <col class="sort" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col" align="left"><input type="checkbox" value="<?php echo _AT('select_all'); ?>" id="all" title="<?php echo _AT('select_all'); ?>" name="selectall" onclick="CheckAll();" /></th>
+
+       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=login<?php echo $page_string; ?>"><?php echo _AT('login_name');      ?></a></th>
+       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=last_name<?php echo $page_string; ?>"><?php echo _AT('last_name');   ?></a></th>
+       <th scope="col"><a href="mods/_core/users/users.php?<?php echo $this->orders[$this->order]; ?>=status<?php echo $page_string; ?>"><?php echo _AT('account_status'); ?></a></th>
+       
+</tr>
+
+</thead>
+<?php if ($this->num_results > 0): ?>
+       <tfoot>
+       <tr>
+               <td colspan="<?php echo 9 + $col_counts; ?>">
+                       <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+                       <input type="submit" name="password" value="<?php echo _AT('password'); ?>" />
+                       <?php if (admin_authenticate(AT_ADMIN_PRIV_ENROLLMENT, true)): ?>
+                               <input type="submit" name="enrollment" value="<?php echo _AT('enrollment'); ?>" />
+                       <?php endif; ?> 
+                       <label for="change_status"><?php echo _AT('more_options'); ?></label>
+                       <select name="change_status" id="change_status">
+                       <!-- REMOVED FOR MOBILE <option value="-2"><?php echo _AT('more_options'); ?></option> -->
+                               <optgroup label="<?php echo _AT('status'); ?>">
+                                       <option value="<?php echo AT_STATUS_STUDENT; ?>"><?php echo _AT('student'); ?></option>
+                                       <option value="<?php echo AT_STATUS_INSTRUCTOR; ?>"><?php echo _AT('instructor'); ?></option>   
+                                       <?php if ($_config['email_confirmation']): ?>
+                                               <option value="<?php echo AT_STATUS_UNCONFIRMED; ?>"><?php echo _AT('unconfirmed'); ?></option>
+                                       <?php endif; ?>
+                                       <option value="<?php echo AT_STATUS_DISABLED; ?>"><?php echo _AT('disable'); ?></option>                                
+                               </optgroup>
+                               <option value="-2" disabled="disabled">- - - - - - - - -</option>       
+                               <option value="-1"><?php echo _AT('delete'); ?></option>                                
+                       </select>
+                       <input type="submit" name="apply" value="<?php echo _AT('apply'); ?>" />
+                       <input type="submit" name="apply_all" value="<?php echo _AT('apply_to_all_results'); ?>" />
+               </td>
+       </tr>
+       </tfoot>
+       <tbody>
+               <?php while($row = mysql_fetch_assoc($this->result)): ?>
+                       <tr onmousedown="document.form['m<?php echo $row['member_id']; ?>'].checked = !document.form['m<?php echo $row['member_id']; ?>'].checked; togglerowhighlight(this, 'm<?php echo $row['member_id']; ?>');" id="rm<?php echo $row['member_id']; ?>">
+                               <td><input type="checkbox" name="id[]" value="<?php echo $row['member_id']; ?>" id="m<?php echo $row['member_id']; ?>" onmouseup="this.checked=!this.checked" /></td>
+                               <td><?php echo $row['login']; ?></td>
+                               
+                               <?php $startend_date_longs_format=_AT('startend_date_longs_format'); ?>
+                               <td><?php echo AT_print($row['last_name'], 'members.last_name'); ?></td>
+                               <td><?php echo get_status_name($row['status']); ?></td>
+                               
+                       </tr>
+               <?php endwhile; ?>
+       </tbody>
+<?php else: ?>
+       <tr>
+               <td colspan="<?php echo 9 + $col_counts; ?>"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</table>
+</div>
+</form>
diff --git a/docs/themes/simplified-desktop/android.css b/docs/themes/simplified-desktop/android.css
new file mode 100644 (file)
index 0000000..4ae88b9
--- /dev/null
@@ -0,0 +1,2250 @@
+/* Style is optimized for iphone. Note that -webkit properties 
+create errors in the CSS validator. 
+Classes beginning with ".fl-" are overriding Mobile FSS, 
+see the API @ http://wiki.fluidproject.org/display/fluid/Mobile+FSS+API 
+for more details. 
+*/
+html, body{
+       height: 100%;
+}
+#main{
+       padding-bottom: 2.3em;
+       overflow: auto;
+}
+
+body,ul,li {
+       padding:0;
+       margin:0;
+}
+
+.fl-theme-iphone{
+       background: white;      
+}
+
+#header{
+       width:100%;
+       height:1.063em;
+       line-height:2.813em;
+       padding:0;
+       font-size:1.063em;
+}
+
+#header-section-title {
+       text-align: center;
+       background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#4b6b90),
+    color-stop(0.5, #6d8cb3),
+    color-stop(0.50, #4b6b90),
+    color-stop(0.5, #6d8cb3),
+    to(#4b6b90)
+    ); 
+}
+
+.fl-theme-iphone .fl-navbar{
+       border: none;
+       border-top: none;
+}
+
+.fl-navbar a{
+       font-size: 0.969em;
+       background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#4b6b90),
+    color-stop(0.5, #6d8cb3),
+    color-stop(0.50, #4b6b90),
+    color-stop(0.5, #6d8cb3),
+    to(#4b6b90)
+    ); 
+}
+
+.fl-navbar .fl-tabs {
+       padding-top: .3em;
+       padding-bottom: .3em;
+       border-top: 1px solid black;
+       border-bottom: .5px solid black;
+       background-color: #4b6b90; 
+    height: 2em;   
+}
+
+#navigation-contentwrapper{
+       position: relative;
+       background-color: #4b6b90;
+       height: 2.5em; 
+}
+
+#navigation-bar{
+       height: 2.5em; 
+    border-bottom: .5px solid black;
+   /* padding-bottom: .3em;*/
+     
+}
+
+#wrapper{
+       width:100%;
+       overflow:hidden;
+       overflow: auto;
+       min-height: 100%;
+}
+
+#site-name, h1#section-title{
+       display: inline;
+       text-shadow: none;
+       font-size: 90%;
+       color: #4C566C;
+       color: white;
+}
+
+/*this CSS creates a button that looks exactly like a Mobile FSS tab.*/
+.navigation-bar-button{
+    border-width:5px;
+    -webkit-border-radius: 5px;
+       font-size: 18px;/*keep this in px*/
+       padding: 0 .3em;
+       color: white;
+       position: relative;
+       top: .69em; 
+       left: 0.188em; 
+    /* default mobile fss color scheme for tabs not AA compliant. Here is a compliant bg image: */
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+       -webkit-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -webkit-border-left-image: none;
+    -webkit-background-origin: border;
+    -webkit-background-clip: border;
+    /* to mimick the mobile FSS scolor scheme (iphone) uncomment these lines 
+       background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#9aafca),
+        color-stop(0.5, #6d8cb3),
+        color-stop(0.50, #4b6b90),
+        to(#4b6b90)
+    );*/
+}
+
+.fl-theme-iphone .fl-tabs li{
+    /* default mobile fss color scheme for tabs not AA compliant against a white foreground text.therefore its backgroud-image must be overrided */
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    ); 
+}
+
+div#content-link-container{/*REMOVE
+       background-color:#F5F5F5;
+       padding:.375em;
+       border: #A9ADB0 solid 1px;
+       -webkit-border-radius: 2px;
+       
+       border: #A9ADB0 solid 1px;
+       -webkit-border-radius: 2px;
+       padding: 1em;
+       padding-left: 0.313em;
+       text-decoration: none;*/
+       border: #A9ADB0 solid 1px;
+}
+
+#content_link{
+       display: block;
+       text-decoration: none;
+       padding-bottom: 12px;
+       padding-left: 8px;
+    padding-top: 12px;
+}
+#home-guide{
+       position: absolute;
+       top: .45em;
+       right: 0.188em; 
+       font-size: 17px;/*keep this in px*/
+       white-space:nowrap;
+       display: inline;
+
+}
+
+/* main body attributes */
+p {
+    text-align: left;
+    line-height: 150%;
+       font-size: 1em;
+       padding:.75em 0;
+       margin: 0 auto;
+}
+
+p a {
+    text-decoration: underline;
+}
+
+p a:visited {
+       color: #3F2670;
+    background-color: transparent;
+}
+p a:active {
+       color: #A50707;
+    background-color: transparent;
+}
+
+h1, h2, h3, h4, h5, h6 {
+    color: #4C566C;
+    clear: right;
+    font: 100% Verdana, Helvetica, Arial, sans-serif;
+       font-weight: bold;
+    margin: 0;
+       padding: 0;
+}
+
+h1 {
+    font-size: 160%;
+       color: #FFF;
+}
+
+h2 {
+    font-size: 150%;
+}
+h2.sidebox{
+    font-size: 110%;
+}
+h3 {
+    font-size: 130%;
+       padding: 0;
+}
+h3.browse-courses{
+       font-size: 90%;
+       text-decoration: none;
+       clear: none;
+       display: inline;
+}
+h3 a {
+    font-size: 100%;
+}
+h4 {
+    font-size: 120%;
+}
+
+
+h5 {
+    font-size: 100%;
+}
+
+
+/* Preferences tabs */
+.etabbed-list-container        {
+       padding:0;
+       margin: 0;
+       width:70%;
+       clear: left;
+       height: 3em;
+}
+
+.prefs_buttontab {
+       padding:0;
+       margin: 0;
+       white-space: nowrap;
+}
+.prefs_tab{
+       padding:0.5em 0.3em 0;
+       margin: 0;
+       white-space: nowrap;
+    display: inline;
+}
+
+.prefs_tab_selected{  
+       padding:0.7em 0.3em 0;
+       margin: 0;
+       margin: 0px;
+       font-weight:bold;
+       text-align:center;
+       white-space: nowrap;
+    display: inline;
+}
+
+
+
+/*  Table of content attributes*/
+p.toc{
+       font-family: Verdana, Helevetica, Arial, sans-serif;
+       background-color: #E9F4F3;
+       padding: .6em;
+       margin-bottom: .6em;
+       margin-top: 0em;
+       margin-left: 1em;
+       margin-right: 3em;
+       border: 1px #ACCFCC solid;
+} 
+
+
+/* link attributes */
+a:link, /*a:visited*/ a:focus  {
+       color: #4C566C;
+       text-decoration: underline;
+}
+
+a:hover {
+       color: #4C566C;
+       text-decoration: underline;
+}
+a:active {
+       color: #ffffff;
+       text-decoration: underline;
+}
+/* align text to the left */
+.left {
+       text-align: left;
+}
+
+a.dropdown-title {
+       color: white;
+       font-weight: normal;
+       text-decoration: none;
+}
+
+
+/* table border */
+.tableborder {
+       border: 1px #595241 solid;
+}
+
+/* main submit button */
+.button {
+       background-color: #808080;
+       font-weight: normal;
+       color: black;
+       text-align: center;
+       -webkit-border-radius:3px;
+       padding-top: 0.313em;
+       padding-bottom: 0.313em;
+
+}
+.button:focus {
+       border:1px solid #A50707;
+       background-color:  #FFDAB9;     
+}
+/* small submit button at top */
+.button2 {
+       font-family: Verdana, Helevetica, Arial, sans-serif;
+       background-color: #E9F4F3;
+
+}
+.button2:focus {
+       background-color: #E9F4F3;
+       border:  #ACCFCC  solid 1px;
+}
+
+/* date attributes */
+small.date {
+       font-family: Verdana, Helevetica, Arial, sans-serif;
+       color: #595241; 
+       margin-bottom: 0; 
+       margin-top: 0;
+       margin-left: 0.313em;
+       margin-right: 0;
+       font-size:1em;
+}
+
+/* page breakline */
+hr {
+       color: #ACCFCC;
+       background-color: white;
+       height: .063em;
+}
+
+/* message box styles */
+
+/* Editor box small */
+.editorsmallbox {
+       font-family: Verdana, Helevetica, Arial, sans-serif;
+       background-color: #E9F4F3;
+       padding: 0.125em;
+       padding-right: .188em;
+       border: 1px #ACCFCC solid;
+}
+
+/* Editor box large */
+.editorlargebox {
+       font-family: Verdana, Helevetica, Arial, sans-serif;
+       background-color: #E9F4F3;
+       margin-left:1em;
+       padding-left: .2em;
+       padding-right: .5em;
+       padding-top: .5em;
+       padding-bottom: .4em;
+       border: 1px #ACCFCC solid;
+}
+
+
+select.dropdown {
+       font-family: Verdana, Helevetica, Arial, sans-serif;
+}
+
+.highlight, a.highlight {
+       background-color: #5B8E88;
+       color: white;
+}
+
+a .highlight{
+       background-color: #5B8E88;
+       color: white;
+}
+
+.center {
+       text-align: center;
+}
+
+
+/* edit content tabs */
+.buttontab {
+       background-color: #E6E6E6;
+       font-weight: 500;
+       border:0;
+       padding-left: .188em;
+       padding-right: .188em;
+       padding-top: .188em;
+
+}
+
+.tab {
+       color: black;
+       background-color: #E6E6E6;
+       border-top: 1px #B8AE9C solid;
+       border-left: 1px #B8AE9C solid;
+       border-right: 1px #B8AE9C solid;
+       text-decoration: none;
+       text-align: center;
+       font-weight: bold;
+
+       
+}
+.buttontab selected {
+       font-family: Helvetica, Arial, Helvetica, sans-serif;
+       background-color: #6F7172;
+       font-weight: 600;
+       border:0;
+       padding-left: .188em;
+       padding-right: .188em;
+       padding-top: .188em;
+
+}
+td.selected{
+       font-family: Helvetica, Arial, Helvetica, sans-serif;
+       font-weight: 600;
+       text-decoration: none;
+       text-align: center;
+       background-color: white;
+       border-top: 1px #B8AE9C solid;
+       border-left: 1px #B8AE9C solid;
+       border-right: 1px #B8AE9C solid;
+}
+.econtainer{
+       background-color: #fffaf0;
+       border:1px #6F7172 solid;
+       margin-left:.5em;
+}
+
+.tab a:link, .etab a:visited {
+       /* color: black;*/
+       color: #4C566C;
+       background-color: white;
+
+}
+.tab a:hover {
+       color: black;
+       background-color: white;
+}
+
+.etabself {
+       background-color: #6F7172;
+
+       text-align: center;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+
+.unsaved {
+       color: red;
+       background-color: #FFFDE0;
+       font-weight: bold;
+}
+.saved {
+       background-color: #FFFDE0;
+       margin: 0.625em;
+}
+
+
+/* the side menu */
+td.dropdown-heading {
+       background-color: #DBFDD4;
+       color: #595241;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-top: 1px solid #ECFEEA;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+td.dropdown-heading a, td.dropdown-heading a:hover, td.dropdown-heading a:visited {
+       text-decoration: none;
+}
+
+td.dropdown-heading.closed {
+       border-bottom: 1px solid #ECFEEA;
+}
+
+/* the side menu content */
+td.dropdown {
+       padding: 0.125em;
+       background-color: white;
+       color: black;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-bottom: 1px solid #ECFEEA;
+       font-weight: normal;
+}
+td.dropdown a, td.dropdown a:visited  {
+       /* color: #595241; */
+       color: #4C566C;
+       text-decoration: none;
+}
+td.dropdown a:hover {
+       color: #595241;
+       text-decoration: underline;
+}
+td.dropdown.cell {
+       border-bottom: 0;
+}
+td.dropdown strong {
+       color: #2A6C28;
+}
+
+/* added for 1.4.2: */
+.results {
+       padding-left: 1.25em;
+}
+
+h5.search-results {
+       padding: 0.063em;
+       margin-bottom: 0.313em;
+       margin-top: 1em;
+       padding-top: 3em;
+       margin-left: 0.313em;
+}
+
+small.search-info {
+       color: #595241;
+}
+
+p.search-description {
+       background-color: #FFFCE5;
+       color: #595241;
+}
+
+.test-box {
+       background-color: #F7F3ED;
+       color: #595241;
+       border-left: 1px solid #595241;
+       border-right: 1px solid #595241;
+       border-top: 1px solid #595241;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+/*preferences*/
+
+.input-form 
+table.tabbed-table {
+       width: 100%;
+       border:thin black solid;
+}
+table.tabbed-table th#left-empty-tab {
+       background-color: transparent;
+       width: 0.938em;
+       border-bottom: 1px solid #B8AE9C;
+}
+table.tabbed-table th#right-empty-tab {
+       text-align: right;
+       background-color: transparent;
+       border-bottom: 1px solid #B8AE9C;
+       width: 25em;
+       padding-right: 0.313em;
+}
+table.tabbed-table th#right-empty-tab a {
+       text-decoration: underline;
+}
+table.tabbed-table th.tab-spacer {
+       background-color: transparent;
+       width: 0.313em;
+       border-bottom: 1px solid #B8AE9C;
+}
+
+table.tabbed-table th.tab {
+       padding-top: 0.125em;
+       padding-bottom: 0.125em;
+       width: 6.875em;
+       background-color: #E9F4F3;
+       border-bottom: 1px solid #B8AE9C;
+       border-left: 1px solid #B8AE9C;
+       border-top: 1px solid #B8AE9C;
+       border-right: 1px solid #B8AE9C;
+}
+table.tabbed-table th.tab:hover {
+       background-color: #ACCFCC;
+}
+
+table.tabbed-table th.tab a:focus {
+       color: white;
+}
+table.tabbed-table th.selected {
+       padding-top: 0.125em;
+       padding-bottom: 0.125em;
+       width: 6.875em;
+       background-color: #ACCFCC;
+       border-left: 1px solid #B8AE9C;
+       border-top: 1px solid #B8AE9C;
+       border-right: 1px solid #B8AE9C;
+}
+
+table.tabbed-table a, table.tabbed-table a:visited, table.tabbed-table a:hover {
+       /* color: black;*/
+       color: #4C566C;
+       text-decoration: none;
+}
+
+
+.preference-buttons-container{
+       background-color: red;
+       height: 2.5em;
+       width: 100%;
+       text-align: center;
+}
+
+div.preference-buttons-container li{
+       display: inline; 
+       float: right;
+}
+
+.prefs_tab_selected{
+       font-style: italic;
+       width: 10%;
+}
+.prefs_tab{
+       width: 10%;
+}
+
+.etabbed-table{
+       margin: 0 auto;
+}
+#previewText{
+       font-family: monospace;
+       border: 2px solid rgb(0, 0, 0); 
+       padding: 2em;
+       width: 80%; 
+       color: rgb(255, 255, 255);
+       background-color: rgb(0, 0, 0);
+}
+#previewArea{;
+       padding: 0em;
+       border-bottom-width: 0; 
+       margin-left: auto; 
+       margin-right: auto; 
+       font-weight: normal; 
+       width: 70%;
+       float:left;
+       clear:right;
+}
+#display-settings-preview{
+       width:90%;
+       height:20em; 
+       margin: 0 auto;
+}
+#feedback{
+       width: 90%;
+}
+#defaultfontsize-wrapper{
+       width:90%; 
+}
+
+/* end of preferences */
+
+a#my-start-page {
+       padding: 0.125em;
+       padding-left:  0.938em;
+       background-repeat: no-repeat;
+       background-position: 0.125em 0.313em;
+}
+
+a#back-to {
+       padding-left: 1.25em;
+       background-image: url(images/back.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0;
+}
+
+.breadcrumbs, .previous-next /*a#guide*/{
+    /* The path bar, including breadcrumbs and add to favorites */
+       clear:both;
+    font-size: 0.85em;
+       padding:0 0.375em;
+       color: #4C566C;
+       background-color: white;
+
+}
+#breadcrumbs-container{
+       background-color: #4d4d4d;
+       position: relative;
+}
+.breadcrumbs{
+       display:none;
+}
+h2.page-title {
+       padding-top: .5em;
+       margin-top: .5em;
+}
+h1 {
+       margin-bottom: 0.313em;
+       
+}
+
+
+div#help {
+       border-left: 1px solid black;
+       border-right: 1px solid black;
+       border-bottom: 1px solid black;
+       padding-left: 0.313em;
+       padding-right: 0.313em;
+       padding-bottom: 0.313em;
+       background-color: #F7F3ED;
+       margin-left: 0.313em;
+       margin-right: 0.313em;
+       font-size: small;
+}
+
+h3#help-title {
+       margin-left: 0.313em;
+       margin-right: 0.313em;
+       border-left: 1px solid black;
+       border-right: 1px solid black;
+       padding: 0.063em;
+       background-color: #F7F3ED;
+}
+.line {
+       border-bottom: 1px solid black;
+}
+div#help p {
+       padding: 0;
+       margin: 0;
+}
+
+div#toctoggle {
+       float: left;
+       padding-left: 0.625em;
+}
+
+h1#section-title {
+       font-size: 90%;
+}
+
+div#top-links {
+       margin: 0 auto;
+       font-size: .938em;
+/* moved inside of #footer for mobile theme */
+}
+#footer{
+       /*width:100%;*/
+       height:2.3em;
+       background-color: #4b6b90;
+       margin-top: -2.3em;
+       position: relative;
+       clear: both;
+       
+}
+
+div#top-links a:link, div#top-links a:visited {
+       text-decoration:none;
+}
+
+#jumpmenu:focus{
+       background-color:#F6EAD6;
+}
+#jumpmenu{
+       margin: 0 auto;
+}
+
+a#editor-link {
+       background-color: #F7F3ED;
+       padding-top: 0.063em;
+       padding-bottom: 0.063em;
+       padding-left:  0.938em;
+       padding-right: 0.5em;
+       border: 1px solid #cccccc;
+       font-weight: normal;
+       text-decoration: none;
+}
+
+a#editor-link:hover {
+       background-color: #F7F3ED;
+       border: 1px solid #B8AE9C;
+}
+
+a#editor-link.off {
+       background-image: url(images/pen.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0.125em;
+}
+a#editor-link.on {
+       background-image: url(images/pen2.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0.125em;
+}
+
+
+/* for data tables */
+.table-surround {
+       border: #A9ADB0 1px solid;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
+       
+}
+
+table.data {
+       margin:0;
+       width:100%;
+       padding: 0;
+       color: black;
+       font-size: .8em;
+       text-align: left;
+       background-color: transparent;
+} 
+/* contains the headings */
+table.data th {
+
+       padding: 0.188em;
+}
+
+table.data th a {
+       color: #595241;
+       background-image: url('../default/images/sort.gif');
+       background-repeat: no-repeat;
+       background-position: right;
+}
+
+table.data tbody {
+/*
+       border-top: 1px solid #B8AE9C;
+       border-bottom: 1px solid #B8AE9C;
+       */
+}
+/*headings text*/
+table.data tbody th {
+       text-align: left;
+
+}
+
+table.data td {
+       padding: 0.188em;
+       color: black;
+       font-size: .875em;
+       font-style: normal;
+}
+table.data td a:link, a:visited{
+       /*color: black;*/
+       color: #4C566C
+}
+table.data tbody tr:hover {
+       background-color: #efefef;
+       cursor: pointer;
+}
+
+table.data tbody tr.selected {
+       background-color: #E9F4F3;
+       cursor: auto;
+       border: 5px solid #E9F4F3;
+}
+
+table.data tfoot {
+       background-color: #F7F3ED;
+}
+
+table.data tfoot tr:first-child td {
+       padding: 0.313em;
+       background-image: url('images/arrow_ltr.gif');
+       background-repeat: no-repeat;
+       background-position: .25em 0.313em;
+}
+
+table.data.static tfoot td, table.data.static tfoot tr:first-child td {
+       /*border-top: 1px solid #B8AE9C;*/
+       padding: 0.313em;
+       background-image: none;
+       padding-left: 0;
+
+}
+/* add borders to row in Required Information, Personal Information*/
+.row{
+       padding:.375em 0;
+       border-bottom: 1px #cccccc solid;
+       font-size: 0.938em;
+}
+#last-row, .row-buttons, #last-row1, .row-blurb{
+       border: none;
+}
+#browse-courses-table{
+       font-size: .875em;
+}
+
+
+/*buttons*/
+table.data tfoot input {
+       background-color: #efefef;
+       font-weight: normal;
+       /*border:  #AAA  solid 1px;*/
+}
+table.data tfoot input:focus {
+       background-color: #FFDAB9;
+       /*border:  #AAA  solid 1px;*/
+}
+
+
+/* used for static tables with no form elements: */
+table.data.static tbody tr:hover {
+       background-color: transparent;
+       cursor: auto;
+}
+
+
+
+/* course browser: */
+
+div#browse {
+       margin-left: auto; 
+       margin-right: auto; 
+       width: 80%;
+}
+
+div.browse-selected {
+       background-image: url('images/side_arrow.gif'); 
+       background-repeat: no-repeat; 
+       padding-left: 0.563em; 
+       background-position: center left;
+}
+
+div.browse-unselected {
+       padding-left: 0.563em; 
+}
+
+ul.browse-list {
+       list-style: none;
+       padding:0;
+}
+
+/* feedback /errors */
+div#error {
+       width: 89%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #DD0000;
+       padding: 0.313em;
+       background-color: #F4DCDC;
+       color: #A50707;
+       background-color: #F4DCDC;
+       padding-left: 1.563em;
+       font-weight: bold;
+       -webkit-border-radius:5px;
+}
+div#error h4 {
+       color: black;
+       margin-left: 0;
+}
+
+div#error ul, div#feedback ul, div#help ul {
+       position: relative;
+       list-style: none;
+       margin-left: 0;
+       padding-left: 0;
+}
+
+div#error ul li{
+       margin-top: 0.313em;
+}
+
+div#feedback, div#info {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top: 0.313em;
+       margin-bottom: 0.313em;
+       padding: 0.313em;
+       font-family: Helvetica, Arial, sans-serif;
+       -webkit-border-radius:5px;
+       border: 1px solid #17B506;
+       background-color: #E7EFD0;
+       color: #3f4559;
+       font-size: 90%;
+       z-index: -1;
+}
+div#feedback li, div#info li, div#error li{
+       color: #4C566C;
+       z-index: -1;
+}
+
+div#help {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #ACCFCC;
+       padding: 0.313em;
+       background-color: #E9F4F3;
+       color: #024C41;
+}
+
+
+div#warning {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #FF8400;
+       padding: 0.313em;
+       background-color: #FFF6ED;
+       color: #D95900;
+       font-weight: bold;
+}
+acronym {
+       cursor: help;
+}
+
+div.news p {
+       margin: 0;
+       padding:0;
+}
+div.news span.date {
+       font-family:Helevetica, Arial, sans-serif;
+       color: #4C566C; 
+       font-size: .5em;
+}
+
+.news{
+       padding: 0;
+       margin-bottom: 1em;
+       margin-top: 1em;
+}
+/* home page links */
+div.home-link {
+       padding: 0.125em;
+       float: left;
+       text-align: center;
+       margin: 0.125em;
+       width: 7.5em;
+       height: 5.625em;
+}
+div.home-link:hover {
+       padding: 0.063em;
+       background-color: #F7F3ED;
+       border: 1px solid #afafaf;
+       float: left;
+       text-align: center;
+       margin: 0.125em;
+}
+div.home-link a {
+       text-decoration: none;
+       font-weight: bold;
+}
+
+div.home-link img {
+       border: 0;
+}
+
+/* sequence links */
+div#sequence-links {
+
+}
+div#sequence-links a {
+       text-decoration: none;
+       display: block;
+}
+
+.previous-next{
+       display: block;
+}
+div.dropdown {
+       width: 12.5em;
+       padding: 0.125em;
+       background-color: white;
+       color: black;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-bottom: 1px solid #ECFEEA;
+       font-weight: normal;
+}
+
+div.dropdown-heading {
+       background-color: #ACCFCC;
+       color: #595241;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-top: 1px solid #ECFEEA;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+div.required {
+       font-weight: bold;
+       color: red;
+       font-size: large;
+       float: left;
+       position: relative;
+       margin-top: -0.313em;
+       height:  0.938em;
+       padding-right: 0.125em;
+}
+
+div#content_text {
+       margin-left: 0.313em;
+}
+
+#content{
+/*
+       padding-top:.5em;
+       margin-top: .5em;
+       background-color: #F5F5F5;
+       
+       border: #A9ADB0 1px solid;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       -webkit-border-bottom-right-radius: 5px;
+       -webkit-border-bottom-left-radius: 5px;*/
+       padding-top: .313em;
+}
+form {
+       display:inline;
+       max-width: 100%;
+}
+
+
+optgroup {
+       /*font-size: small;*/
+}
+
+/* paging*/
+div.paging {
+       margin-top: 1em;
+       text-align: center;
+}
+div.paging ul {
+    list-style: none;
+    display: inline;
+    padding: 0;
+       max-width: 10%;
+       margin-bottom: 1em;
+}
+div.paging li { 
+       display: inline; 
+       padding-left: 0.125em; 
+       padding-right: 0.125em;
+       padding-top: 0;
+       padding-bottom: 0;
+       width: 10%;
+}
+
+div.paging li a {
+       text-decoration: none;
+       padding-left: 0.25em;
+       padding-right: 0.25em;
+       border-left: 1px solid white;
+       border-right: 1px solid white;
+}
+
+div.paging li a:hover, div.paging li a.current {
+   border-left: 1px solid #000;
+   border-right: 1px solid #000;
+   color: black;
+}
+
+#tl_corner{
+
+       background-image:url(images/tl_corner.gif);
+       background-position: top left;
+       background-repeat: no-repeat;
+       padding:0;
+}
+
+div.tabs {
+       /* Navigational Plone Tabs(tm), implemented by customizing the a tag - they are surprisingly elegant. The power of CSS runs strong in these :) */
+    background-color: transparent;
+       border-collapse: collapse;
+       border-bottom: 1px solid #B8AE9C;
+       padding: 0.5em 0em 0em 2em;
+       white-space: nowrap;
+}
+
+div.tabs a {
+    /* The normal, unselected tabs. They are all links */
+    background-color: transparent;
+    border-color: #B8AE9C;
+    border-width: 1px; 
+    border-style: solid solid none solid;
+    color: #595241;
+    height: 1.2em;
+    margin-right: 0.5em;
+    padding: 0em 2em 0em;
+    
+}
+
+div.tabs a.selected {
+    /* The selected tab. There's only one of this */
+    background-color: white;
+    border-bottom: #B8AE9C 1px solid;
+    color: #595241;
+    font-weight: normal;
+}
+
+div.tabs a:hover, div.tabs a.active {
+    background-color: #B8AE9C;
+    border-bottom: 1px solid #B8AE9C;
+    color: white;
+}
+
+.headingbox a{
+       color: #4C566C;
+}
+.headingbox a:link, .headingbox a:visited{
+       text-decoration: none;
+}
+div.box {
+}
+h4.box {
+       background-color: #F5F5F5;
+       padding: .313em; 
+}
+h4.box a {
+       display: block;
+       color: #4C566C;
+       background-color: #F5F5F5;
+       text-decoration: none;
+}
+.content-expand {
+       background-image:url("images/content-arrow-down.png");
+       background-position: top right;
+       background-repeat: no-repeat;
+}
+.content-closed{
+       background-image:url("images/content-arrow-up.png");
+       background-position: center right;
+       background-repeat: no-repeat;
+}
+
+div.box {
+       padding: 0.313em;
+       background-color: #F5F5F5;
+       color: black;
+       border: 1px solid #B8AE9C;
+       font-size:0.85em;
+       font-weight: normal;
+       padding:0.125em;
+}
+
+h5.box { 
+    background-color: #6F7172;
+    border: 1px solid #B8AE9C;
+    border-style: solid solid none solid;
+    color: Black;
+    padding: 0em 1em 0em 1em;
+    display: inline;
+       font-size:  1em;
+    height: 1em;
+}
+
+div.box a:link {
+       text-decoration: none;
+}
+
+div.box a:visited {
+       color: #2A6C28;
+       text-decoration: none;
+}
+
+div.box a:hover {
+       text-decoration: underline;
+}
+
+.boxDetails {
+    text-align: right;
+}
+
+div.box .content {
+    padding: 1em;
+       font-size:  1em;
+}
+
+div.box a.close {
+    float: right;
+    text-transform: none;
+    border-left: 1pt solid #B8AE9C;
+    padding: 0em 0.2em;
+}
+
+div.box h1, 
+div.box h2, 
+div.box h3, 
+div.box h4 {
+    margin: 0;
+    padding: 0;
+}
+
+div.box .even {
+    background-color: #F7F3ED;
+}
+
+div.box .odd {
+    background-color: transparent;
+}
+
+
+/* users/index.php */
+
+div.course {
+       position: relative;
+       width: 12.5em;
+       height: 10.5em;
+       border: rgb(204, 204, 204) 1px solid;
+       background-color: #F7F7F7;
+       float: left;
+       margin: 0.188em;
+       padding: 0.313em;
+}
+
+div.course.break {
+       clear: left;
+}
+
+div.course h2 {
+       border: 0;
+       font-weight: normal;
+       font-size: large;
+
+}
+
+div.course:hover {
+       background-color:#FBF4E9;
+       border: #B8AE9C 1px solid;
+}
+
+
+table.data .odd img.headicon{
+       width: 2.469em;
+       height: 2.469em; 
+       -webkit-border-radius:5px;
+}
+
+.icon{
+       -webkit-border-radius:10px;
+       border-color: white;
+       width: 2.5em;
+       height: 2.5em;
+       float: left;
+}
+div.course div.shortcuts {
+       text-align: right;
+       clear: left;
+       vertical-align: middle;
+       width: 12.5em;
+}
+
+fieldset#shortcuts {
+       float: right;
+       background-color: #FEFDEF;
+       border: 1pt solid #B8AE9C;
+       margin: -5pt 5pt 5pt 5pt;
+       padding-right: 10pt;
+       padding-bottom: 5pt;
+       padding-left: 10pt;
+}
+
+.shortcuts{
+
+}
+
+fieldset {
+       margin-bottom: 10pt;
+       -webkit-border-radius:5px;
+       padding: 0 0.375em;
+       width: 90%;
+       margin: 0 auto; 
+       width:95%;
+       margin:0 auto;
+       border:thin #6D7B8D solid;
+       border:thin #A9ADB0 solid;
+       margin-bottom: 1em;
+}
+#shortcuts legend {
+}
+#shortcuts ul {
+       position: relative;
+       margin-top: 0pt;
+       margin-bottom: 0pt;
+       margin-left: 0pt;
+       list-style-type:  none;
+       padding-left: 0pt; 
+}
+
+/*a#guide,*/ a#my-courses-link {
+       background-color: #6D84A2;
+}
+
+#guide img{
+       border:none;
+}
+
+#guide a:hover{
+       
+}
+div#content-text {
+       padding-right: 5pt;
+       line-height:150%;
+}
+
+div#content-text li {
+       margin-left: 15pt;
+}
+
+div#content-test, div.content-from-module {    
+       float: left;
+       margin-top: 2em;
+       margin-bottom: 2em;
+       padding-right: 5pt;
+       width: 80%;
+}
+div#content-test ol{   
+       margin-right: 5pt;;     
+}
+
+div#content-test ol ul li{
+       list-style: none;
+       padding: 0 0.125em 0  0.938em;
+       margin-bottom: 0.063em; 
+       line-height: 200%; 
+       background-color: #fdfdfd; 
+       border-bottom: 1px solid #efefef; 
+       border: 1px solid #eeeeff;
+}
+
+div#content-info {
+       margin: 5pt;
+       font-size: small;
+       color: #b8ae9c;
+       clear: both;
+}
+
+div#container {
+       text-align: left;
+       margin: 0 auto;
+       padding: 0;
+       border:0;
+       width: 95%;
+}
+
+div#menutoggle{
+       text-align: right; 
+       padding-bottom: 0.625em; 
+       padding-right: 0.625em; 
+       float: left; 
+       margin-top: 0.625em; 
+       padding-right: 0.313em; 
+       font-size:0.95em;
+}
+
+
+/* login page */
+div.column {
+       float: left;
+       width: 45%;
+       margin: 0.313em;
+       min-width: 10.625em;
+}
+
+div.column h3 {
+       background-color: #F6EAD6;
+       border-bottom: .05em solid #6F7172;
+       font-size: small;
+       display:block;
+       color:black;
+       font-weight:600;        
+       padding-left:0.5em;
+}
+
+div.insidecol {
+   min-height: 10.625em;
+   height: 10.625em;
+   padding:0.313em;
+}
+
+
+/* index page */
+ul#home-links, ul#home-detail-links {
+       list-style: none;
+}
+ul#home-links li {
+       
+       display: inline;
+       float: left;
+       padding: 0.8em;
+       text-align: center;
+       margin: 0.1em;
+       width: 8.5em;
+       height: 7.0em;
+       padding-left:0;
+
+}
+ul#home-links li a {
+       text-decoration: none;
+       border: 1px transparent;
+       font-weight: bold;
+}
+ul#home-links li a img {
+       border: 0;
+       display: block;
+       padding-left:1.563em;
+}
+
+/*my start page */
+#my_courses_container{
+       text-align: left;
+       margin: 0 auto;
+       border:0;       
+       min-width: 100%;
+}
+#my-courses-navlist{
+}
+.my-courses-list{
+       border: solid 1px #A9ADB0;
+       -webkit-border-radius:5px;
+       padding: .375em;
+       color: #4C566C;
+       margin: .375em;
+       padding: .375em;
+}
+.my-courses-list-ul{
+       margin: 0 auto;
+       padding-left: 0;
+       width: 100%;
+}
+.my-courses-links{
+       font-size: 80%;
+       padding-top: .75em;
+}
+.my-courses-resume{
+       float: right;
+}
+.fl-link-summary{
+       padding-left: 0.875em;
+       padding-bottom: 0.875em;
+       display: inline;
+}
+.fl-list-menu li a {
+}
+.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a {
+}
+.fl-theme-iphone [class*="fl-list"] > li .fl-link-summary{
+       color: #4C566C;
+}
+.current_head{
+       padding-top: .5em;
+}
+.fl-list-menu {
+
+}
+
+.current_box{
+       max-width: 100%;
+}
+.current_list{
+       width: 95%;
+       padding: 0 0.375em;
+}
+.current_list li{
+       list-style-type: none;
+       padding:0;
+       margin:0;
+
+}
+.current_list img{
+
+}
+
+#show-all{
+       text-align: center;
+}
+/* enrollment tabs */
+#navlist {
+       padding: 0;
+       margin-left: 0;
+       margin-right: auto;
+       margin-left: auto;
+       margin-bottom: .25em;
+       margin-top: 0.938em;
+       white-space: nowrap;
+}
+
+#navlist li {
+       list-style: none;
+       display: inline;
+       margin: 0;
+}
+
+#navlist li a {
+       padding: 0.188em 0.563em;
+       border: 1px solid #F7F3ED;
+       border-bottom: none;
+       background-color: #F7F3ED;
+       text-decoration: none;
+       margin-left: .25em;
+       white-space: nowrap;
+}
+
+#navlist li a:hover, #navlist li a:active {
+       color: #000;
+       background-color: #fff;
+}
+
+/* tree */
+.img-size-tree {
+       vertical-align: middle;
+       margin-top: 0;
+    padding:0;
+       height:1.45em;
+       width:1.5em;
+}
+/* profile page */
+
+dl#public-profile {
+       width: 100%;
+       
+}
+
+dl#public-profile {
+       width: 100%;
+       
+}
+dl#public-profile dt {
+       float: left;
+       width: 90%;
+       border-right: 1px solid #F7F3ED;
+       padding: 0.313em 0.313em 0.313em 0;
+
+       margin-right: 0.313em;
+}
+dl#public-profile dd {
+       margin: 0;
+}
+
+div.social-right{
+       margin-left:.5em;
+       margin-top: 1em;
+}
+div.social-left{
+       margin-left:.5em;
+}
+h4.profile{
+       float: left;
+}
+.social-wrapper h3{  
+       padding-top: .5em;
+}
+.my-contacts h3{
+       padding-bottom: .375em;
+}
+img#profile{
+       border: 1px #cccccc solid;
+       margin-left: 1em;
+}
+dd{
+    margin: 0;
+}
+
+
+/** forum stuff **/
+#forum-thread li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; float:left; width: 97%; list-style: none; }
+#forum-thread li.even { background-color: #F7F3ED; border-top: none; }
+#forum-thread li.odd { background-color: #fff; }
+div.forum-post-author { float:left; width:19.375em; padding:0.5em 0.625em; }
+div.forum-post-author a.title {font-size: 1.1em; line-height: 1.2em; font-weight: bold; text-decoration:none; }        
+div.forum-post-author img.profile-picture { border: 2px solid #F7F3ED; text-align:right;}
+div.forum-post-content { margin-left: 19.375em; padding: 0.313em 0 1.125em 1.125em;}
+div.forum-post-content h3 { font-weight: 500; float:left;clear:right; }
+div.forum-post-ctrl { float: right; padding-right: 0.313em; color: #a1a1a1;}
+div.forum-post-ctrl a { text-decoration: none; }
+div.forum-post-ctrl span { color: black; background-color: #fefdc2; padding: 0.188em; }
+div.forum-post-content p.date { color: #a1a1a1; border-bottom: 1px solid #F7F3ED; }
+div.forum-post-content div.body p { margin-bottom:1em; }
+div.forum-paginator{border:thin #cccccc solid; padding:.3em; width:95%;margin:auto;background-color:#F7F3ED;}
+span.forum-paginator-active{font-weight:700;text-decoration:underline; height:2em;}
+
+
+
+/** inbox stuff - reuses some of the forum layout **/
+#inbox-msg li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; width: 95%; list-style: none; min-height: 11em;}
+       
+/*  tool list on admin home and manage screens  */
+ li.top-tool { 
+       list-style: none;
+       padding: 0.125em 0.125em 0.125em  0.938em;
+       margin-bottom: 0.313em; 
+       line-height: 200%; 
+       border: solid 1px #A9ADB0;
+       -webkit-border-radius:5px;
+}
+li.top-tool a {  font-weight: bold; } /* ol#tools>li>a */ 
+
+li.child-tool a { 
+       font-size: x-small;
+       font-weight: normal; 
+}
+
+/* ol#tools>li>ul, */ 
+ul.child-top-tool {
+       margin-top: -0.313em;
+       padding-left: 0;
+       margin-left: 0;
+       display: inline;
+}
+ul.child-top-tool:before {
+       content: " : ";
+}
+
+li.child-tool {
+       display: inline;
+       margin-right: 0.313em;
+       font-size: x-small;
+}
+
+.img-size-home {
+       height:3.85em;
+       width:3.9em;
+}
+
+/* browse courses */
+div.browse-course {
+       width: 28em;
+       padding-bottom: 0.625em;
+       background-color: #fffaf0;
+       border:1px #6F7172 solid;
+       font-size:9pt;
+       min-height:18em;
+       margin:auto;
+       margin-left:1em;
+       margin-top:1em;
+}
+
+dl.browse-course {
+       width: 90%;
+       padding-bottom: 0.625em;
+       background-color: #fffaf0;
+
+       margin:auto;
+       margin-left:1em;
+}
+dl.browse-course dt {
+       float: left;
+       font-weight: bold;
+       width: 25%;
+       text-align: right;
+       clear: left;
+       padding: 0.313em 0.625em 0.313em 0;
+       vertical-align: middle;
+
+}
+dl.browse-course dd {
+       margin-bottom: 0.313em;
+       clear: right;
+       padding: 0.313em 0 0.313em 0.625em;
+       margin-left: 26%;
+
+}
+.row .buttons{
+       border: none;
+}
+
+/*  form fields grouping for WCAG 2.0 conformance*/
+
+fieldset.group_form{
+       width:95%;
+       margin:0 auto;
+       margin-bottom: 1em;
+       border: 1px #6D7B8D solid;
+       -webkit-border-radius:5px;
+}
+
+legend.group_form{
+       background-color:white;
+       font-weight: 600;
+       color: #4c566c;
+       padding:.5em;
+       border: 1px #6D7B8D solid;
+       -webkit-border-radius:5px;
+}
+/* file storage */
+
+#fsfloat1{
+       float:right;
+}
+#fsfloat2{
+       float:right;
+       width:48%;
+}
+
+
+/* highlight active links for WCAG 2.0 conformance */
+a:active, a:hover,a:focus{
+       background-color:#F6EAD6;
+       color:#000000;
+       
+       background-color: #e6e6e6;      
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+  
+}
+}
+
+
+/*Added by Silvia */
+div.column_primary {
+       float: left;
+       width: 42%;
+       margin: 0.313em;
+       padding: 0;
+       min-width: 10.625em;
+/*     position: relative;*/
+}
+
+div.column_equivalent{
+       float: left;
+       width: 52%;
+       margin-left:  0.938em;
+       margin-top: 0.313em;
+       margin-right: 0.313em;
+       margin-bottom: 0.313em;
+       min-width: 10.625em;
+       padding: 0.313em;
+       border: 1px solid #EEE;
+       background-color: #FFF;
+/*     position: relative;*/
+
+}
+
+div.resource_box{
+       border: 1px solid #aaa;
+       width: 95%;
+       margin: 0.313em;
+       padding: 0.313em;
+       min-width: 9.375em;
+       background-color: #eee;
+/*     position: relative;*/
+}
+
+h2.alternatives_to{
+       margin-top: 0.75em;
+       font-size: 90%;
+       color: #A50707;
+}
+
+div.alternative_box{
+       border: 1px solid #ddd;
+       /*width: 90%;*/
+       margin: 0.313em;
+       padding: 0.313em;
+       min-width: 9.375em;
+       background-color: #fff;
+}
+
+div.alternative_box legend {
+       color: #000;
+}
+
+div.resource_box legend {
+       color: #000;
+}
+
+label.primary a{
+       color: #A50707;
+       font-weight: bolder;
+       background-color: white;
+}
+
+/* format of "table of contents" on content page */
+#toc a                 { display:block; margin:0.188em; }
+#toc .h2, #toc .h3, #toc .h4, #toc .h5, #toc .h6{ 
+       padding:0 0 0 0;
+}
+
+
+fieldset#toc {
+       background-color: #FEFDEF;
+       border: 1pt solid #B8AE9C;
+       width:89%;
+}
+
+#side-menu{
+       overflow:hidden;
+}
+
+/* cleans up glossary question mark line spacing*/
+sup{
+       border: 1pt solid #B8AE9C;
+       vertical-align:bottom;
+       margin-top: 1em;
+}
+
+/* jQuery tooltip styles */
+#tooltip{
+       position:absolute;
+       z-index:3000;
+       border:3px solid #111;
+       background-color:#eeeeee;
+       padding:0.313em;
+}
+#tooltip h3,#tooltip div{
+       margin:0;
+}
+
+/* style for home page modules "detail view" */
+div.home_box {
+       padding: .75em 0;
+       margin: 0 auto;
+}
+
+.outside_box{
+       background:#e0e0e0;
+       width: 17em;
+       margin: .375em;
+       padding: 0;
+       height:9.8em;
+}
+
+.inside_box{
+       width:100%;
+       margin:auto;
+       height:52%;
+       margin-bottom:.2em;
+       background:#eeeeee;
+
+}
+.details_or{
+       width:28.8em;
+       height:9.8em;
+       margin:0;
+       background-image:url(images/details_r.png);
+       background-position: top right;
+       background-repeat:no-repeat;
+}
+.details_ol{
+       height:9.8em;
+       margin:0;
+       width:.45em;
+       background-image:url(images/details_l.png);
+       background-position: top left;
+       background-repeat:no-repeat;
+}
+.details_ir{
+       width:.5em;
+       height:100%;
+       float:right;
+       background-image:url(images/details_ir.png);
+       background-position: top right;
+       background-repeat:no-repeat;
+}
+.details_il{
+       height:100%;
+       float:left;
+       background-image:url(images/details_il.png);
+       background-position: top left;
+       background-repeat:no-repeat;
+}
+.home-title{
+       font-size:12pt;
+}
+.buttonbox{
+       float:right;
+}
+.details_text{
+       margin-left:1em;
+}
+.draggable_selected {
+       background-color: lightgrey;
+       cursor: move;
+}
+
+div.menuedit{
+       float:right;
+       margin-top:-1.2em; 
+       border:1px solid #cccccc;
+}
+li.folders {
+       list-style: disc url(../../images/folder.gif) outside;
+       font-family: Verdana, Helevetica, Arial, sans-serif;
+       margin-bottom: 0;
+       margin-top: 0;
+       margin-right: 0;
+}
+
+li.folders .disabled {
+       color: #B8AE9C;
+}
+
+ul.folder{
+       list-style-image:none;
+       list-style-position:outside;
+       list-style-type:none;
+       margin:0em;
+       padding:0em;
+}
+
+
+/*     hiding/showing top navigation and results-display */
+
+#topnavlist-link {
+       color: white;
+       text-decoration: none;
+       font-weight: bold;
+}
+
+ul#topnavlist {
+       display: none;
+       position: relative;
+       top: 1.2em;
+       z-index: 1;
+       background-color: white;
+}
+
+div#results-display{
+       display: none;
+}
+
+ul#topnavlist li {
+       padding: 0;
+       margin: 0;
+}
+ul#topnavlist li a.active {
+       color: black;
+       font-style: italic;
+       }
+       
+ul#topnavlist li a:hover, ul#topnavlist li a:focus {
+       /*Replicates mobile FSS list highlighting, currently there's a bug:
+               see:    http://issues.fluidproject.org/browse/FLUID-4313
+       /*border: 1px solid #e0e0e0;*/
+       background-color: #e6e6e6;
+       color: black;   
+       
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+    -webkit-tap-highlight-color:url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+}
+
+ul#topnavlist li a  {
+       color: #4C566C;
+       text-decoration: none;
+}
+
+
+div.toolcontainer{
+       border: #A9ADB0 1px solid;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
+}
+
+ul#subnavlist {
+       padding: 0;
+       padding-bottom: 0.313em;
+       margin: 0;
+       font-size: 90%;
+}
+
+
+ul#subnavlist li {
+       display: inline;
+}
+
+ul#subnavlist li#test{
+       display: none;
+}
+ul#subnavlist li a:hover, ul#subnavlist li a:focus, ul#subnavlist li a.active{ /*
+       color: black;
+       text-decoration:none;*/
+}
+
+ul#subnavlist li a, ul#subnavlist li a:visited {
+       color: #4C566C;
+}
+
+
+/* list attributes */
+ul {
+       list-style: none;
+}
+li {
+       color: black;
+       list-style: none;
+}
+
+ol#tools>li:hover, ol#tools>li:hover a {
+       /*border: 1px solid #e0e0e0;*/
+       background-color: #e6e6e6;
+       color: black;   
+       
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+       
+}
+
+
+#content-contentwrapper{
+       height:100%;
+    position:relative; 
+       z-index:1000;                   
+       width:100%;
+       overflow:hidden;
+}
+
+#leftcolumn{
+       float: left;
+       width: 17em;
+       margin-left: 0.313em;
+       margin-top:-0.625em;
+}
+
+#copyright{
+       font-size: 0.5em;
+}
+#gototop{
+       text-align: center;
+       color: #4B6B90;
+}
+
+#tools{
+       margin: 0 auto;
+       padding: 0.375em;
+}
+
+
+/* ATutor Social Styles */
+
+div .profile_container {
+       background-color:#eee; 
+       border: 1px solid #8e8e8e; 
+       width:80%; 
+       padding:0.5em; 
+       margin-bottom: 0.5em;
+}
+
+div .profile_container .top_right {
+       float: right;
+}
+
+dl.public-profile dd{
+       margin-left:0;
+}
+dl.public-profile dt {
+       float: left;
+       font-weight: bold;
+       min-width:12em;
+}
+
+/* Search form */
+div .search_form {
+       margin-bottom: 1em;
+}
+
+div .search_form .row{
+       background-color: #DEDEC0;
+       padding: 0.5em;
+}
+div .button {
+       background-color: #eee;
+       border: 1px solid #aaa;
+}
+div .button:hover{
+       background-color: #cccccc;
+       color: #ffffff;
+}
+
+/* Side menu */
+
+
+ul.social_side_menu {
+       padding-left: 2em;
+}
+ul.social_side_menu li {
+       padding-bottom: 0.2em;
+       list-style: circle;
+}
+
+div .divider {
+       border-bottom:1px solid #C1C157; 
+       padding-bottom:0.5em; 
+       margin-bottom:0.5em;
+}
+
+.activity{
+       line-height:18pt;
+       font-size:.8em;
+}
+
+div.contentbox, input-form{
+
+       padding:.5em;
+       background-color: #ffffff;
+    overflow:hidden;
+    border: #A9ADB0 solid 1px;
+       -webkit-border-radius: 5px;
+}
+
+div.suggestions{
+       border:1px solid #a50707;
+       margin-left:0.625em; 
+       width:50%;
+}
+li.inlinelist{
+       display: inline; 
+       padding-right: 1em;
+}
+ul.social_inline_menu{
+       background-color: #eeeeee;
+       border:thin #cccccc solid;
+       padding:.5em;
+       width:90%;
+       margin:auto;
+}
+div.social-wrapper{ 
+       width: 100%;
+}
+
+
+.contentbox-a{
+    width: 100%;
+}
+.contentbox-b{
+    padding-bottom:0.2em;
+}
+div.logo{
+float:left;
+clear:right;
+margin-left:2em;}
+
+
+
diff --git a/docs/themes/simplified-desktop/blackberry.css b/docs/themes/simplified-desktop/blackberry.css
new file mode 100644 (file)
index 0000000..8bf3b88
--- /dev/null
@@ -0,0 +1,2263 @@
+/* Style is optimized for blackberry devices. Classes beginning with ".fl-" are overriding Mobile FSS, 
+see the API @ http://wiki.fluidproject.org/display/fluid/Mobile+FSS+API 
+for more details. 
+*/
+html, body{
+       height: 100%;
+}
+#main{
+       padding-bottom: 2.3em;
+       overflow: auto;
+}
+
+body,ul,li {
+       padding:0;
+       margin:0;
+}
+
+.fl-theme-iphone{
+       background: white;      
+}
+
+#header{
+       width:100%;
+       height:1.063em;
+       line-height:2.813em;
+       padding:0;
+       font-size:1.063em;
+       color:#3866C4 !important;
+}
+
+#header-section-title {
+       text-align: left;
+       background-color:#fff; /*testing - joel*/
+       color:#3866C4 !important;
+       padding-bottom:2px;
+       font-size:18px !important;
+}
+
+/*.fl-theme-blackberry .fl-navbar{
+       border: none;
+       border-top: none;
+}
+*/
+
+.fl-navbar {border:none !important;}
+.fl-navbar a{
+       font-size: 0.969em;
+       /*background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#4b6b90),
+    color-stop(0.5, #6d8cb3),
+    color-stop(0.50, #4b6b90),
+    color-stop(0.5, #6d8cb3),
+    to(#4b6b90)
+    ); */
+}
+
+.fl-navbar .fl-tabs {
+       padding-top: .3em;
+       padding-bottom: .3em;
+       background-color: #F4F4F4; 
+               border: 1px solid #999;
+
+    height: 2em;   
+}
+
+#navigation-contentwrapper{
+       position: relative;
+       background-color: #F4F4F4;
+       border: 1px solid #999;
+       height: 2.5em; 
+}
+
+#navigation-bar{
+       height: 2.5em; 
+    padding-bottom: .3em;
+     
+}
+
+#wrapper{
+       width:100%;
+       overflow:hidden;
+       overflow: auto;
+       min-height: 100%;
+}
+
+#site-name, h1#section-title{
+/* Armin 31.08.2010: Remove display: inline to make heading 1 show on Blackberry */
+/*     display: inline;*/
+       font-size: 90%;
+       color: #3866C4;
+}
+
+#site-name {padding-bottom:4px;}
+
+/*this CSS creates a button that looks exactly like a Mobile FSS tab.*/
+
+#topnavlist-link a:link {color:red !important;}
+
+.navigation-bar-button {
+       /* -webkit-border-radius: 5px;*/
+       font-size: 18px;
+       color: #000;
+       position: relative;
+       top: .69em;
+       left: 0.188em;
+       padding-right:20px;
+       color:# !important;
+       text-decoration:underline;}
+       
+
+    /* default mobile fss color scheme for tabs not AA compliant. Here is a compliant bg image: */
+   /* background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+       -webkit-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -webkit-border-left-image: none;
+    -webkit-background-origin: border;
+    -webkit-background-clip: border;
+    /* to mimick the mobile FSS scolor scheme (iphone) uncomment these lines 
+       background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#9aafca),
+        color-stop(0.5, #6d8cb3),
+        color-stop(0.50, #4b6b90),
+        to(#4b6b90)
+    );*/
+}
+
+.navigation-bar-button a {color:#000;}
+
+
+.fl-theme-iphone .fl-tabs li{
+    /* default mobile fss color scheme for tabs not AA compliant against a white foreground text.therefore its backgroud-image must be overrided */
+    /*background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    ); */
+}
+
+div#content-link-container{
+       background-color:#F5F5F5;
+       padding:.375em;
+       border: #A9ADB0 solid 1px;
+       /*-webkit-border-radius: 2px;*/
+}
+#content_link{
+       display: block;
+}
+#home-guide{
+       position: absolute;
+       top: .45em;
+       right: 0.188em; 
+       font-size: 17px;/*keep this in px*/
+       white-space:nowrap;
+       display: inline;
+
+}
+#home-guide a{
+       color:#6699ff;
+}
+/* main body attributes */
+p {
+    text-align: left;
+    line-height: 150%;
+       font-size: 1em;
+       padding:.75em 0;
+       margin: 0 auto;
+}
+
+p a {
+    text-decoration: underline;
+}
+
+p a:visited {
+       color: #3F2670;
+    background-color: transparent;
+}
+p a:active {
+       color: #A50707;
+    background-color: transparent;
+}
+
+h1, h2, h3, h4, h5, h6 {
+       color: #333;
+       clear: right;
+       font: 100% Helevetica, Arial, sans-serif;
+       font-weight: bold;
+       margin: 0;
+       padding: 0;
+}
+
+h1 {
+    font-size: 160%;
+       color: #FFF;
+}
+
+h2 {
+    font-size: 150%;
+}
+h2.sidebox{
+    font-size: 110%;
+}
+h3 {
+       font-size: 130%;
+       padding-top: 0;
+       padding-right: 0;
+       padding-bottom: 0.5em;
+       padding-left: 0;
+}
+h3.browse-courses{
+       font-size: 90%;
+       text-decoration: none;
+       clear: none;
+       display: inline;
+}
+h3 a {
+    font-size: 100%;
+}
+h4 {
+    font-size: 120%;
+}
+
+
+h5 {
+    font-size: 100%;
+}
+
+
+/* Preferences tabs */
+.etabbed-list-container        {
+       padding:0;
+       margin: 0;
+       width:70%;
+       clear: left;
+       height: 3em;
+}
+
+.prefs_buttontab {
+       padding:0;
+       margin: 0;
+       white-space: nowrap;
+}
+.prefs_tab{
+       padding:0.5em 0.3em 0;
+       margin: 0;
+       white-space: nowrap;
+    display: inline;
+}
+
+.prefs_tab_selected{  
+       padding:0.7em 0.3em 0;
+       margin: 0;
+       margin: 0px;
+       font-weight:bold;
+       text-align:center;
+       white-space: nowrap;
+    display: inline;
+}
+
+
+
+/*  Table of content attributes*/
+p.toc{
+       font-family: Verdana, Helevetica, Arial, sans-serif;
+       background-color: #E9F4F3;
+       padding: .6em;
+       margin-bottom: .6em;
+       margin-top: 0em;
+       margin-left: 1em;
+       margin-right: 3em;
+       border: 1px #ACCFCC solid;
+} 
+
+
+/* link attributes */
+a:link, a:visited  {
+       color: #5984C4;
+       text-decoration: underline;
+}
+a:hover {
+       color: #5984C4;
+       text-decoration: underline;
+}
+a:active {
+       color: #ffffff;
+       text-decoration: underline;
+}
+/* align text to the left */
+.left {
+       text-align: left;
+}
+
+a.dropdown-title {
+       color: white;
+       font-weight: normal;
+       text-decoration: none;
+}
+
+
+/* table border */
+.tableborder {
+       border: 1px #595241 solid;
+}
+
+/* main submit button */
+.button {
+       background-color: #3866C4 !important;
+       font-weight:bold;
+       color:#fff;
+       text-align: center;
+               border:  #153877  solid 1px;
+
+       /*-webkit-border-radius:3px;*/
+       padding-top: 0.313em;
+       padding-bottom: 0.313em;
+       
+
+
+}
+.button:focus {
+       
+}
+/* small submit button at top */
+.button2 {
+       font-family: Verdana, Helevetica, Arial, sans-serif;
+       background-color: #3866C4;
+
+}
+.button2:focus {
+       background-color: #3866C4;
+       border:  #ACCFCC  solid 1px;
+}
+
+/* date attributes */
+small.date {
+       font-family: Verdana, Helevetica, Arial, sans-serif;
+       color: #595241; 
+       margin-bottom: 0; 
+       margin-top: 0;
+       margin-left: 0.313em;
+       margin-right: 0;
+       font-size:1em;
+}
+
+/* page breakline */
+hr {
+       color: #ACCFCC;
+       background-color: white;
+       height: .063em;
+}
+
+/* message box styles */
+
+/* Editor box small */
+.editorsmallbox {
+       font-family: Verdana, Helevetica, Arial, sans-serif;
+       background-color: #E9F4F3;
+       padding: 0.125em;
+       padding-right: .188em;
+       border: 1px #ACCFCC solid;
+}
+
+/* Editor box large */
+.editorlargebox {
+       font-family: Verdana, Helevetica, Arial, sans-serif;
+       background-color: #E9F4F3;
+       margin-left:1em;
+       padding-left: .2em;
+       padding-right: .5em;
+       padding-top: .5em;
+       padding-bottom: .4em;
+       border: 1px #ACCFCC solid;
+}
+
+
+select.dropdown {
+       font-family: Verdana, Helevetica, Arial, sans-serif;
+}
+
+.highlight, a.highlight {
+       background-color: #5B8E88;
+       color: white;
+}
+
+a .highlight{
+       background-color: #5B8E88;
+       color: white;
+}
+
+.center {
+       text-align: center;
+}
+
+
+/* edit content tabs */
+.buttontab {
+       background-color: #E6E6E6;
+       font-weight: 500;
+       border:0;
+       padding-left: .188em;
+       padding-right: .188em;
+       padding-top: .188em;
+
+}
+
+.tab {
+       color: black;
+       background-color: #E6E6E6;
+       border-top: 1px #B8AE9C solid;
+       border-left: 1px #B8AE9C solid;
+       border-right: 1px #B8AE9C solid;
+       text-decoration: none;
+       text-align: center;
+       font-weight: bold;
+
+       
+}
+.buttontab selected {
+       font-family: Helvetica, Arial, Helvetica, sans-serif;
+       background-color: #6F7172;
+       font-weight: 600;
+       border:0;
+       padding-left: .188em;
+       padding-right: .188em;
+       padding-top: .188em;
+
+}
+td.selected{
+       font-family: Helvetica, Arial, Helvetica, sans-serif;
+       font-weight: 600;
+       text-decoration: none;
+       text-align: center;
+       background-color: white;
+       border-top: 1px #B8AE9C solid;
+       border-left: 1px #B8AE9C solid;
+       border-right: 1px #B8AE9C solid;
+}
+.econtainer{
+       background-color: #fffaf0;
+       border:1px #6F7172 solid;
+       margin-left:.5em;
+}
+
+.tab a:link, .etab a:visited {
+       color: black;
+       background-color: white;
+
+}
+.tab a:hover {
+       color: black;
+       background-color: white;
+}
+
+.etabself {
+       background-color: #6F7172;
+
+       text-align: center;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+
+.unsaved {
+       color: red;
+       background-color: #FFFDE0;
+       font-weight: bold;
+}
+.saved {
+       background-color: #FFFDE0;
+       margin: 0.625em;
+}
+
+
+/* the side menu */
+td.dropdown-heading {
+       background-color: #DBFDD4;
+       color: #595241;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-top: 1px solid #ECFEEA;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+td.dropdown-heading a, td.dropdown-heading a:hover, td.dropdown-heading a:visited {
+       text-decoration: none;
+}
+
+td.dropdown-heading.closed {
+       border-bottom: 1px solid #ECFEEA;
+}
+
+/* the side menu content */
+td.dropdown {
+       padding: 0.125em;
+       background-color: white;
+       color: black;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-bottom: 1px solid #ECFEEA;
+       font-weight: normal;
+}
+td.dropdown a, td.dropdown a:visited  {
+       color: #595241;
+       text-decoration: none;
+}
+td.dropdown a:hover {
+       color: #595241;
+       text-decoration: underline;
+}
+td.dropdown.cell {
+       border-bottom: 0;
+}
+td.dropdown strong {
+       color: #2A6C28;
+}
+
+/* added for 1.4.2: */
+.results {
+       padding-left: 1.25em;
+}
+
+h5.search-results {
+       padding: 0.063em;
+       margin-bottom: 0.313em;
+       margin-top: 1em;
+       padding-top: 3em;
+       margin-left: 0.313em;
+}
+
+small.search-info {
+       color: #595241;
+}
+
+p.search-description {
+       background-color: #FFFCE5;
+       color: #595241;
+}
+
+.test-box {
+       background-color: #F7F3ED;
+       color: #595241;
+       border-left: 1px solid #595241;
+       border-right: 1px solid #595241;
+       border-top: 1px solid #595241;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+/*preferences*/
+
+.input-form 
+table.tabbed-table {
+       width: 100%;
+       border:thin black solid;
+}
+table.tabbed-table th#left-empty-tab {
+       background-color: transparent;
+       width: 0.938em;
+       border-bottom: 1px solid #B8AE9C;
+}
+table.tabbed-table th#right-empty-tab {
+       text-align: right;
+       background-color: transparent;
+       border-bottom: 1px solid #B8AE9C;
+       width: 25em;
+       padding-right: 0.313em;
+}
+table.tabbed-table th#right-empty-tab a {
+       text-decoration: underline;
+}
+table.tabbed-table th.tab-spacer {
+       background-color: transparent;
+       width: 0.313em;
+       border-bottom: 1px solid #B8AE9C;
+}
+
+table.tabbed-table th.tab {
+       padding-top: 0.125em;
+       padding-bottom: 0.125em;
+       width: 6.875em;
+       background-color: #E9F4F3;
+       border-bottom: 1px solid #B8AE9C;
+       border-left: 1px solid #B8AE9C;
+       border-top: 1px solid #B8AE9C;
+       border-right: 1px solid #B8AE9C;
+}
+table.tabbed-table th.tab:hover {
+       background-color: #ACCFCC;
+}
+
+table.tabbed-table th.tab a:focus {
+       color: white;
+}
+table.tabbed-table th.selected {
+       padding-top: 0.125em;
+       padding-bottom: 0.125em;
+       width: 6.875em;
+       background-color: #ACCFCC;
+       border-left: 1px solid #B8AE9C;
+       border-top: 1px solid #B8AE9C;
+       border-right: 1px solid #B8AE9C;
+}
+
+table.tabbed-table a, table.tabbed-table a:visited, table.tabbed-table a:hover {
+       color: black;
+       text-decoration: none;
+}
+
+
+.preference-buttons-container{
+       background-color: red;
+       height: 2.5em;
+       width: 100%;
+       text-align: center;
+}
+
+div.preference-buttons-container li{
+       display: inline; 
+       float: right;
+}
+
+.prefs_tab_selected{
+       font-style: italic;
+       width: 10%;
+}
+.prefs_tab{
+       width: 10%;
+}
+
+.etabbed-table{
+       margin: 0 auto;
+}
+#previewText{
+       font-family: monospace;
+       border: 2px solid rgb(0, 0, 0); 
+       padding: 2em;
+       width: 80%; 
+       color: rgb(255, 255, 255);
+       background-color: rgb(0, 0, 0);
+}
+#previewArea{;
+       padding: 0em;
+       border-bottom-width: 0; 
+       margin-left: auto; 
+       margin-right: auto; 
+       font-weight: normal; 
+       width: 70%;
+       float:left;
+       clear:right;
+}
+#display-settings-preview{
+       width:90%;
+       height:20em; 
+       margin: 0 auto;
+}
+#feedback{
+       width: 100%;
+       padding: 2px;
+}
+#defaultfontsize-wrapper{
+       width:90%; 
+}
+
+/* end of preferences */
+
+a#my-start-page {
+       padding: 0.125em;
+       padding-left:  0.938em;
+       background-repeat: no-repeat;
+       background-position: 0.125em 0.313em;
+}
+
+a#back-to {
+       padding-left: 1.25em;
+       background-image: url(images/back.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0;
+}
+
+.breadcrumbs, .previous-next /*a#guide*/{
+    /* The path bar, including breadcrumbs and add to favorites */
+       clear:both;
+    font-size: 0.85em;
+       padding:0 0.375em;
+       color: #5984C4;
+       background-color: white;
+
+}
+#breadcrumbs-container{
+       background-color: #4d4d4d;
+       position: relative;
+}
+.breadcrumbs{
+       display:none;
+}
+h2.page-title {
+       padding-top: .5em;
+       margin-top: .5em;
+}
+h1 {
+       margin-bottom: 0.313em;
+       
+}
+
+
+div#help {
+       border-left: 1px solid black;
+       border-right: 1px solid black;
+       border-bottom: 1px solid black;
+       padding-left: 0.313em;
+       padding-right: 0.313em;
+       padding-bottom: 0.313em;
+       background-color: #F7F3ED;
+       margin-left: 0.313em;
+       margin-right: 0.313em;
+       font-size: small;
+}
+
+h3#help-title {
+       margin-left: 0.313em;
+       margin-right: 0.313em;
+       border-left: 1px solid black;
+       border-right: 1px solid black;
+       padding: 0.063em;
+       background-color: #F7F3ED;
+}
+.line {
+       border-bottom: 1px solid black;
+}
+div#help p {
+       padding: 0;
+       margin: 0;
+}
+
+div#toctoggle {
+       float: left;
+       padding-left: 0.625em;
+}
+
+h1#section-title {
+       font-size: 90%;
+}
+
+div#top-links {
+       margin: 0 auto;
+       font-size: .938em;
+/* moved inside of #footer for mobile theme */
+}
+#footer{
+       /*width:100%;*/
+       height:2.3em;
+       /*background-color: #4b6b90;*/
+       margin-top: -2.3em;
+       position: relative;
+       clear: both;
+       
+}
+
+div#top-links a:link, div#top-links a:visited {
+       text-decoration:none;
+}
+
+#jumpmenu:focus{
+       background-color:#F6EAD6;
+}
+#jumpmenu{
+       margin: 0 auto;
+}
+
+a#editor-link {
+       background-color: #F7F3ED;
+       padding-top: 0.063em;
+       padding-bottom: 0.063em;
+       padding-left:  0.938em;
+       padding-right: 0.5em;
+       border: 1px solid #cccccc;
+       font-weight: normal;
+       text-decoration: none;
+}
+
+a#editor-link:hover {
+       background-color: #F7F3ED;
+       border: 1px solid #B8AE9C;
+}
+
+a#editor-link.off {
+       background-image: url(images/pen.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0.125em;
+}
+a#editor-link.on {
+       background-image: url(images/pen2.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0.125em;
+}
+
+
+/* for data tables */
+table.data {
+       width: 95%; 
+       margin: 0 auto;
+       padding: 0;
+       color: black;
+       text-align: left;
+       /*-webkit-border-radius:5px;*/
+       border: #6D7B8D 1px solid;
+
+} 
+/* contains the headings */
+table.data th {
+
+       padding: 0.188em;
+}
+
+table.data th a {
+       color: #595241;
+       background-image: url('../default/images/sort.gif');
+       background-repeat: no-repeat;
+       background-position: right;
+}
+
+table.data tbody {
+       border-top: 1px solid #B8AE9C;
+       border-bottom: 1px solid #B8AE9C;
+}
+/*headings text*/
+table.data tbody th {
+       text-align: left;
+
+}
+
+table.data td {
+       padding: 0.188em;
+       color: black;
+       font-size: .875em;
+       font-style: normal;
+}
+table.data td a:link, a:visited{
+       color: black;
+}
+table.data tbody tr:hover {
+       background-color: #efefef;
+       cursor: pointer;
+}
+
+table.data tbody tr.selected {
+       background-color: #E9F4F3;
+       cursor: auto;
+}
+
+table.data tfoot {
+       background-color: #F7F3ED;
+}
+
+table.data tfoot tr:first-child td {
+       padding: 0.313em;
+       background-image: url('images/arrow_ltr.gif');
+       background-repeat: no-repeat;
+       background-position: .25em 0.313em;
+}
+
+table.data.static tfoot td, table.data.static tfoot tr:first-child td {
+       border-top: 1px solid #B8AE9C;
+       padding: 0.313em;
+       background-image: none;
+       padding-left: 0;
+
+}
+/* add borders to row in Required Information, Personal Information*/
+.row{
+       padding:.375em 0;
+       border-bottom: 1px #cccccc solid;
+       font-size: 0.938em;
+}
+#last-row, .row-buttons, #last-row1, .row-blurb{
+       border: none;
+}
+#browse-courses-table{
+       font-size: .875em;
+}
+
+
+/*buttons*/
+table.data tfoot input {
+       background-color: #efefef;
+       font-weight: normal;
+       border:  #AAA  solid 1px;
+}
+table.data tfoot input:focus {
+       background-color: #FFDAB9;
+       border:  #AAA  solid 1px;
+}
+
+
+/* used for static tables with no form elements: */
+table.data.static tbody tr:hover {
+       background-color: transparent;
+       cursor: auto;
+}
+
+
+
+/* course browser: */
+
+div#browse {
+       margin-left: auto; 
+       margin-right: auto; 
+       width: 80%;
+}
+
+div.browse-selected {
+       background-image: url('images/side_arrow.gif'); 
+       background-repeat: no-repeat; 
+       padding-left: 0.563em; 
+       background-position: center left;
+}
+
+div.browse-unselected {
+       padding-left: 0.563em; 
+}
+
+ul.browse-list {
+       list-style: none;
+       padding:0;
+}
+
+/* feedback /errors */
+div#error {
+       width: 89%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       padding: 0.313em;
+       color: #A50707;
+       background-color: #FFFBD9;
+       padding-left: 1.563em;
+       font-weight: bold;
+       /*-webkit-border-radius:5px;*/
+}
+div#error h4 {
+       color: black;
+       margin-left: 0;
+}
+
+div#error ul, div#feedback ul, div#help ul {
+       position: relative;
+       list-style: none;
+       margin-left: 0;
+       padding-left: 0;
+}
+
+div#error ul li{
+       margin-top: 0.313em;
+}
+
+div#feedback, div#info {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top: 0.313em;
+       padding-left: 0.313em;
+       padding-right: 0.313em;
+       font-family: Helvetica, Arial, sans-serif;
+       /*-webkit-border-radius:5px;*/
+       background-color: #FFFBD9;
+       color: #333;
+       font-size: 90%;
+       z-index: -1;
+}
+div#feedback li, div#info li, div#error li{
+       color: #333;
+       z-index: -1;
+}
+
+div#help {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #ACCFCC;
+       padding: 0.313em;
+       background-color: #E9F4F3;
+       color: #024C41;
+}
+
+
+div#warning {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       padding: 0.313em;
+       background-color: #FFFBD9;
+       color: #D95900;
+       font-weight: bold;
+}
+acronym {
+       cursor: help;
+}
+
+div.news p {
+       margin: 0;
+       padding:0;
+}
+div.news span.date {
+       font-family:Helevetica, Arial, sans-serif;
+       color: #5984C4; 
+}
+
+.news{
+       padding: 0;
+}
+/* home page links */
+div.home-link {
+       padding: 0.125em;
+       float: left;
+       text-align: center;
+       margin: 0.125em;
+       width: 7.5em;
+       height: 5.625em;
+}
+div.home-link:hover {
+       padding: 0.063em;
+       background-color: #F7F3ED;
+       border: 1px solid #afafaf;
+       float: left;
+       text-align: center;
+       margin: 0.125em;
+}
+div.home-link a {
+       text-decoration: none;
+       font-weight: bold;
+}
+
+div.home-link img {
+       border: 0;
+}
+
+/* sequence links */
+div#sequence-links {
+       
+       margin-top: 0.625em;
+       padding-right: 0.313em;
+       padding-top:0.438em;
+}
+div#sequence-links a {
+       text-decoration: none;
+       display: block;
+}
+
+.previous-next{
+       display: block;
+}
+div.dropdown {
+       width: 12.5em;
+       padding: 0.125em;
+       background-color: white;
+       color: black;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-bottom: 1px solid #ECFEEA;
+       font-weight: normal;
+}
+
+div.dropdown-heading {
+       background-color: #ACCFCC;
+       color: #595241;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-top: 1px solid #ECFEEA;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+div.required {
+       font-weight: bold;
+       color: red;
+       font-size: large;
+       float: left;
+       position: relative;
+       margin-top: -0.313em;
+       height:  0.938em;
+       padding-right: 0.125em;
+}
+
+div#content_text {
+       margin-left: 0.313em;
+}
+/*needs to be set to display: none so drawer can open */
+#content{
+
+       padding-top:.5em;
+       margin-top: .5em;
+       background-color: #F5F5F5;
+}
+form {
+       display:inline;
+       max-width: 100%;
+}
+
+
+optgroup {
+       /*font-size: small;*/
+}
+
+/* paging*/
+div.paging {
+
+}
+div.paging ul {
+    list-style: none;
+    display: inline;
+    padding: 0;
+       max-width: 10%;
+       margin-bottom: 1em;
+}
+div.paging li { 
+       float: left;
+       display: inline; 
+       padding-left: 0.125em; 
+       padding-right: 0.125em;
+       padding-top: 0;
+       padding-bottom: 0;
+       width: 10%;
+}
+
+div.paging li a {
+       text-decoration: none;
+       padding-left: 0.25em;
+       padding-right: 0.25em;
+       border-left: 1px solid white;
+       border-right: 1px solid white;
+}
+
+div.paging li a:hover, div.paging li a.current {
+   background-color: #5B8E88;
+   border-left: 1px solid #000;
+   border-right: 1px solid #000;
+   color: white;
+}
+
+#tl_corner{
+
+       background-image:url(images/tl_corner.gif);
+       background-position: top left;
+       background-repeat: no-repeat;
+       padding:0;
+}
+
+div.tabs {
+       /* Navigational Plone Tabs(tm), implemented by customizing the a tag - they are surprisingly elegant. The power of CSS runs strong in these :) */
+    background-color: transparent;
+       border-collapse: collapse;
+       border-bottom: 1px solid #B8AE9C;
+       padding: 0.5em 0em 0em 2em;
+       white-space: nowrap;
+}
+
+div.tabs a {
+    /* The normal, unselected tabs. They are all links */
+    background-color: transparent;
+    border-color: #B8AE9C;
+    border-width: 1px; 
+    border-style: solid solid none solid;
+    color: #595241;
+    height: 1.2em;
+    margin-right: 0.5em;
+    padding: 0em 2em 0em;
+    
+}
+
+div.tabs a.selected {
+    /* The selected tab. There's only one of this */
+    background-color: white;
+    border-bottom: #B8AE9C 1px solid;
+    color: #595241;
+    font-weight: normal;
+}
+
+div.tabs a:hover, div.tabs a.active {
+    background-color: #B8AE9C;
+    border-bottom: 1px solid #B8AE9C;
+    color: white;
+}
+
+.headingbox a{
+       color: #5984C4;
+       text-decoration:underline;
+}
+div.box {
+}
+h4.box {
+       background-color: #F5F5F5;
+       padding: .313em; 
+}
+h4.box a {
+       display: block;
+       color: #5984C4;
+       background-color: #F5F5F5;
+       text-decoration: none;
+}
+.content-expand {
+       background-image:url("images/content-arrow-down.png");
+       background-position: top right;
+       background-repeat: no-repeat;
+}
+.content-closed{
+       background-image:url("images/content-arrow-up.png");
+       background-position: center right;
+       background-repeat: no-repeat;
+}
+
+div.box {
+       padding: 0.313em;
+       background-color: #F5F5F5;
+       color: black;
+       border: 1px solid #B8AE9C;
+       font-size:0.85em;
+       font-weight: normal;
+       padding:0.125em;
+}
+
+h5.box { 
+    background-color: #6F7172;
+    border: 1px solid #B8AE9C;
+    border-style: solid solid none solid;
+    color: Black;
+    padding: 0em 1em 0em 1em;
+    display: inline;
+       font-size:  1em;
+    height: 1em;
+}
+
+div.box a:link {
+       text-decoration: none;
+}
+
+div.box a:visited {
+       color: #2A6C28;
+       text-decoration: none;
+}
+
+div.box a:hover {
+       text-decoration: underline;
+}
+
+.boxDetails {
+    text-align: right;
+}
+
+div.box .content {
+    padding: 1em;
+       font-size:  1em;
+}
+
+div.box a.close {
+    float: right;
+    text-transform: none;
+    border-left: 1pt solid #B8AE9C;
+    padding: 0em 0.2em;
+}
+
+div.box h1, 
+div.box h2, 
+div.box h3, 
+div.box h4 {
+    margin: 0;
+    padding: 0;
+}
+
+div.box .even {
+    background-color: #F7F3ED;
+}
+
+div.box .odd {
+    background-color: transparent;
+}
+
+
+/* users/index.php */
+
+div.course {
+       position: relative;
+       width: 12.5em;
+       height: 10.5em;
+       border: rgb(204, 204, 204) 1px solid;
+       background-color: #F7F7F7;
+       float: left;
+       margin: 0.188em;
+       padding: 0.313em;
+}
+
+div.course.break {
+       clear: left;
+}
+
+div.course h2 {
+       border: 0;
+       font-weight: normal;
+       font-size: large;
+
+}
+
+div.course:hover {
+       background-color:#F3F6FA;
+       border: #B8AE9C 1px solid;
+}
+
+
+table.data .odd img.headicon{
+       width: 2.469em;
+       height: 2.469em; 
+       /*-webkit-border-radius:5px;*/
+}
+
+.icon{
+       /*-webkit-border-radius:10px;*/
+       border-color: white;
+       width: 2.5em;
+       height: 2.5em;
+       float: left;
+}
+div.course div.shortcuts {
+       text-align: right;
+       clear: left;
+       vertical-align: middle;
+       width: 12.5em;
+}
+
+fieldset#shortcuts {
+       float: right;
+       background-color: #FEFDEF;
+       /*border: 1pt solid #B8AE9C;*/
+       margin: -5pt 5pt 5pt 5pt;
+       padding-right: 10pt;
+       padding-bottom: 5pt;
+       padding-left: 10pt;
+}
+
+.shortcuts{
+
+}
+
+fieldset {
+       margin-bottom: 10pt;
+       /*-webkit-border-radius:5px;*/
+       padding: 0 0.375em;
+       width: 90%;
+       margin: 0 auto; 
+       width:95%;
+       margin:0 auto;
+       /*border:thin #6D7B8D solid;*/
+       margin-bottom: 1em;
+}
+#shortcuts legend {
+}
+#shortcuts ul {
+       position: relative;
+       margin-top: 0pt;
+       margin-bottom: 0pt;
+       margin-left: 0pt;
+       list-style-type:  none;
+       padding-left: 0pt; 
+}
+
+/*a#guide,*/ a#my-courses-link {
+       background-color: #6D84A2;
+}
+
+#guide img{
+       border:none;
+}
+
+#guide a:hover{
+       
+}
+div#content-text {
+       padding-right: 5pt;
+       line-height:150%;
+}
+
+div#content-text li {
+       margin-left: 15pt;
+}
+
+div#content-test, div.content-from-module {    
+       float: left;
+       margin-top: 2em;
+       margin-bottom: 2em;
+       padding-right: 5pt;
+       width: 80%;
+}
+div#content-test ol{   
+       margin-right: 5pt;;     
+}
+
+div#content-test ol ul li{
+       list-style: none;
+       padding: 0 0.125em 0  0.938em;
+       margin-bottom: 0.063em; 
+       line-height: 200%; 
+       background-color: #fdfdfd; 
+       border-bottom: 1px solid #efefef; 
+       border: 1px solid #eeeeff;
+}
+
+div#content-info {
+       margin: 5pt;
+       font-size: small;
+       color: #b8ae9c;
+       clear: both;
+}
+
+div#container {
+       text-align: left;
+       margin: 0 auto;
+       padding: 0;
+       border:0;
+       width: 95%;
+}
+
+div#menutoggle{
+       text-align: right; 
+       padding-bottom: 0.625em; 
+       padding-right: 0.625em; 
+       float: left; 
+       margin-top: 0.625em; 
+       padding-right: 0.313em; 
+       font-size:0.95em;
+}
+
+
+/* login page */
+div.column {
+       float: left;
+       width: 45%;
+       margin: 0.313em;
+       min-width: 10.625em;
+}
+
+div.column h3 {
+       background-color: #F6EAD6;
+       border-bottom: .05em solid #6F7172;
+       font-size: small;
+       display:block;
+       color:black;
+       font-weight:600;        
+       padding-left:0.5em;
+}
+
+div.insidecol {
+   min-height: 10.625em;
+   height: 10.625em;
+   padding:0.313em;
+}
+
+
+/* index page */
+ul#home-links, ul#home-detail-links {
+       list-style: none;
+}
+ul#home-links li {
+       
+       display: inline;
+       float: left;
+       padding: 0.8em;
+       text-align: center;
+       margin: 0.1em;
+       width: 8.5em;
+       height: 7.0em;
+       padding-left:0;
+
+}
+ul#home-links li a {
+       text-decoration: none;
+       border: 1px transparent;
+       font-weight: bold;
+}
+ul#home-links li a img {
+       border: 0;
+       display: block;
+       padding-left:1.563em;
+}
+
+/*my start page */
+#my_courses_container{
+       text-align: left;
+       margin: 0 auto;
+       border:0;       
+       min-width: 100%;
+}
+#my-courses-navlist{
+}
+.my-courses-list{
+       border: solid 1px #A9ADB0;
+       /*-webkit-border-radius:5px;*/
+       padding: .375em;
+       color: #5984C4;
+       margin: .375em;
+       padding: .375em;
+}
+.my-courses-list-ul{
+       margin: 0 auto;
+       padding-left: 0;
+       width: 100%;
+}
+.my-courses-links{
+       font-size: 80%;
+       padding-top: .75em;
+}
+.my-courses-resume{
+       float: right;
+}
+.fl-link-summary{
+       padding-left: 0.875em;
+       padding-bottom: 0.875em;
+       display: inline;
+}
+.fl-list-menu li a {
+}
+.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a {
+}
+.fl-theme-iphone [class*="fl-list"] > li .fl-link-summary{
+       color: #5984C4;
+}
+.current_head{
+       padding-top: .5em;
+}
+.fl-list-menu {
+
+}
+
+.current_box{
+       max-width: 100%;
+       background-color:#F3F6FA;
+}
+.current_list{
+       width: 95%;
+       padding: 0 0.375em;
+}
+.current_list li{
+       list-style-type: none;
+       padding:0;
+       margin:0;
+
+}
+.current_list img{
+
+}
+
+#show-all{
+       text-align: center;
+}
+/* enrollment tabs */
+#navlist {
+       padding: 0;
+       margin-left: 0;
+       margin-right: auto;
+       margin-left: auto;
+       margin-bottom: .25em;
+       margin-top: 0.938em;
+       white-space: nowrap;
+}
+
+#navlist li {
+       list-style: none;
+       display: inline;
+       margin: 0;
+}
+
+#navlist li a {
+       padding: 0.188em 0.563em;
+       border: 1px solid #F7F3ED;
+       border-bottom: none;
+       background-color: #F7F3ED;
+       text-decoration: none;
+       margin-left: .25em;
+       white-space: nowrap;
+}
+
+#navlist li a:hover, #navlist li a:active {
+       color: #000;
+       background-color: #fff;
+}
+
+/* tree */
+.img-size-tree {
+       vertical-align: middle;
+       margin-top: 0;
+    padding:0;
+       height:1.45em;
+       width:1.5em;
+}
+/* profile page */
+
+dl#public-profile {
+       width: 100%;
+       
+}
+
+dl#public-profile {
+       width: 100%;
+       
+}
+dl#public-profile dt {
+       float: left;
+       width: 90%;
+       border-right: 1px solid #F7F3ED;
+       padding: 0.313em 0.313em 0.313em 0;
+
+       margin-right: 0.313em;
+}
+dl#public-profile dd {
+       margin: 0;
+}
+
+div.social-right{
+       margin-left:.5em;
+       margin-top: 1em;
+}
+div.social-left{
+       margin-left:.5em;
+}
+h4.profile{
+       float: left;
+}
+.social-wrapper h3{  
+       padding-top: .5em;
+}
+.my-contacts h3{
+       padding-bottom: .375em;
+}
+img#profile{
+       border: 1px #cccccc solid;
+       margin-left: 1em;
+}
+dd{
+    margin: 0;
+}
+
+
+/** forum stuff **/
+#forum-thread li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; float:left; width: 97%; list-style: none; }
+#forum-thread li.even { background-color: #F7F3ED; border-top: none; }
+#forum-thread li.odd { background-color: #fff; }
+div.forum-post-author { float:left; width:19.375em; padding:0.5em 0.625em; }
+div.forum-post-author a.title {font-size: 1.1em; line-height: 1.2em; font-weight: bold; text-decoration:none; }        
+div.forum-post-author img.profile-picture { border: 2px solid #F7F3ED; text-align:right;}
+div.forum-post-content { margin-left: 19.375em; padding: 0.313em 0 1.125em 1.125em;}
+div.forum-post-content h3 { font-weight: 500; float:left;clear:right; }
+div.forum-post-ctrl { float: right; padding-right: 0.313em; color: #a1a1a1;}
+div.forum-post-ctrl a { text-decoration: none; }
+div.forum-post-ctrl span { color: black; background-color: #fefdc2; padding: 0.188em; }
+div.forum-post-content p.date { color: #a1a1a1; border-bottom: 1px solid #F7F3ED; }
+div.forum-post-content div.body p { margin-bottom:1em; }
+div.forum-paginator{border:thin #cccccc solid; padding:.3em; width:95%;margin:auto;background-color:#F7F3ED;}
+span.forum-paginator-active{font-weight:700;text-decoration:underline; height:2em;}
+
+
+
+/** inbox stuff - reuses some of the forum layout **/
+#inbox-msg li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; width: 95%; list-style: none; min-height: 11em;}
+       
+/*  tool list on admin home and manage screens  */
+ li.top-tool { 
+       list-style: none;
+       padding: 0.125em 0.125em 0.125em  0.938em;
+       margin-bottom: 0.313em; 
+       line-height: 200%; 
+       border: solid 1px #A9ADB0;
+       /*-webkit-border-radius:5px;*/
+}
+li.top-tool a {  font-weight: bold; } /* ol#tools>li>a */ 
+
+li.child-tool a { 
+       font-size: x-small;
+       font-weight: normal; 
+}
+
+/* ol#tools>li>ul, */ 
+ul.child-top-tool {
+       margin-top: -0.313em;
+       padding-left: 0;
+       margin-left: 0;
+       display: inline;
+}
+ul.child-top-tool:before {
+       content: " : ";
+}
+
+li.child-tool {
+       display: inline;
+       margin-right: 0.313em;
+       font-size: x-small;
+}
+
+.img-size-home {
+       height:3.85em;
+       width:3.9em;
+}
+
+/* browse courses */
+div.browse-course {
+       width: 28em;
+       padding-bottom: 0.625em;
+       background-color: #fffaf0;
+       border:1px #6F7172 solid;
+       font-size:9pt;
+       min-height:18em;
+       margin:auto;
+       margin-left:1em;
+       margin-top:1em;
+}
+
+dl.browse-course {
+       width: 90%;
+       padding-bottom: 0.625em;
+       background-color: #fffaf0;
+
+       margin:auto;
+       margin-left:1em;
+}
+dl.browse-course dt {
+       float: left;
+       font-weight: bold;
+       width: 25%;
+       text-align: right;
+       clear: left;
+       padding: 0.313em 0.625em 0.313em 0;
+       vertical-align: middle;
+
+}
+dl.browse-course dd {
+       margin-bottom: 0.313em;
+       clear: right;
+       padding: 0.313em 0 0.313em 0.625em;
+       margin-left: 26%;
+
+}
+.row .buttons{
+       border: none;
+}
+
+/*  form fields grouping for WCAG 2.0 conformance*/
+
+fieldset.group_form{
+       width:95%;
+       margin:0 auto;
+       margin-bottom: 1em;
+       /*border: 1px #6D7B8D solid;*/
+       /*-webkit-border-radius:5px;*/
+}
+
+legend.group_form{
+       background-color:white;
+       font-weight: 600;
+       color: #333;
+       padding:.5em;
+       /*border: 1px #6D7B8D solid;*/
+       /*-webkit-border-radius:5px;*/
+       text-align:left;
+}
+/* file storage */
+
+#fsfloat1{
+       float:right;
+}
+#fsfloat2{
+       float:right;
+       width:48%;
+}
+
+
+/* highlight active links for WCAG 2.0 conformance */
+a:active,a:hover,a:focus{
+       background-color:#F6EAD6;
+       color:#000000;
+}
+
+
+/*Added by Silvia */
+div.column_primary {
+       float: left;
+       width: 42%;
+       margin: 0.313em;
+       padding: 0;
+       min-width: 10.625em;
+/*     position: relative;*/
+}
+
+div.column_equivalent{
+       float: left;
+       width: 52%;
+       margin-left:  0.938em;
+       margin-top: 0.313em;
+       margin-right: 0.313em;
+       margin-bottom: 0.313em;
+       min-width: 10.625em;
+       padding: 0.313em;
+       border: 1px solid #EEE;
+       background-color: #FFF;
+/*     position: relative;*/
+
+}
+
+div.resource_box{
+       border: 1px solid #aaa;
+       width: 95%;
+       margin: 0.313em;
+       padding: 0.313em;
+       min-width: 9.375em;
+       background-color: #eee;
+/*     position: relative;*/
+}
+
+h2.alternatives_to{
+       margin-top: 0.75em;
+       font-size: 90%;
+       color: #A50707;
+}
+
+div.alternative_box{
+       border: 1px solid #ddd;
+       /*width: 90%;*/
+       margin: 0.313em;
+       padding: 0.313em;
+       min-width: 9.375em;
+       background-color: #fff;
+}
+
+div.alternative_box legend {
+       color: #000;
+}
+
+div.resource_box legend {
+       color: #000;
+}
+
+label.primary a{
+       color: #A50707;
+       font-weight: bolder;
+       background-color: white;
+}
+
+/* format of "table of contents" on content page */
+#toc a                 { display:block; margin:0.188em; }
+#toc a:hover, a:focus {color:#fff; background-color:#3866C4;}
+#toc .h2, #toc .h3, #toc .h4, #toc .h5, #toc .h6{ 
+       padding:0 0 0 0;
+}
+
+#toc .h2 {font-size:80%;
+padding:0.8em 0 0 1em;}
+
+#toc .h3 {font-size:80%; font-weight:normal;
+padding:0 0 0 2em;}
+
+#toc {border: none;
+padding-bottom:-1em;
+margin-bottom:0;}
+
+div#content-text {margin-top:-0.5em;}
+
+fieldset#toc {
+       /*background-color: #B8AE9C;*/
+       /*border: 1pt solid #B8AE9C;*/
+       width:89%;
+       background-color:#E8EEF7;
+}
+
+#toc legend {
+       font-family:Arial,Helvetica,sans-serif;
+       font-size:12pt;
+       font-weight:bold;
+       margin-top: 16pt;
+       margin-right: 0;
+       margin-bottom: 0;
+       margin-left: 0;
+       padding-top: 2em;
+       padding-right: 0;
+       padding-bottom: 0.5em;
+       padding-left: 0;
+}
+
+#content-text blockquote {
+border-bottom:2px solid black;
+border-top:2px solid black;
+color:#000000;
+clear:both;
+font-size:1em;
+font-style:italic;
+line-height:1.4em;
+margin:0.5em 1.5em 0.5em 0;
+padding:0.1em 0 0;
+width:14em;}
+
+#side-menu{
+       overflow:hidden;
+}
+
+/* cleans up glossary question mark line spacing*/
+sup{
+       border: 1pt solid #B8AE9C;
+       vertical-align:bottom;
+       margin-top: 1em;
+}
+
+/* jQuery tooltip styles */
+#tooltip{
+       position:absolute;
+       z-index:3000;
+       border:3px solid #111;
+       background-color:#eeeeee;
+       padding:0.313em;
+}
+#tooltip h3,#tooltip div{
+       margin:0;
+}
+
+/* style for home page modules "detail view" */
+div.home_box {
+       padding: .75em 0;
+       margin: 0 auto;
+}
+
+.outside_box{
+       background:#e0e0e0;
+       width: 17em;
+       margin: .375em;
+       padding: 0;
+       height:9.8em;
+}
+
+.inside_box{
+       width:100%;
+       margin:auto;
+       height:52%;
+       margin-bottom:.2em;
+       background:#eeeeee;
+
+}
+.details_or{
+       width:28.8em;
+       height:9.8em;
+       margin:0;
+       background-image:url(images/details_r.png);
+       background-position: top right;
+       background-repeat:no-repeat;
+}
+.details_ol{
+       height:9.8em;
+       margin:0;
+       width:.45em;
+       background-image:url(images/details_l.png);
+       background-position: top left;
+       background-repeat:no-repeat;
+}
+.details_ir{
+       width:.5em;
+       height:100%;
+       float:right;
+       background-image:url(images/details_ir.png);
+       background-position: top right;
+       background-repeat:no-repeat;
+}
+.details_il{
+       height:100%;
+       float:left;
+       background-image:url(images/details_il.png);
+       background-position: top left;
+       background-repeat:no-repeat;
+}
+.home-title{
+       font-size:12pt;
+}
+.buttonbox{
+       float:right;
+}
+.details_text{
+       margin-left:1em;
+}
+.draggable_selected {
+       background-color: lightgrey;
+       cursor: move;
+}
+
+div.menuedit{
+       float:right;
+       margin-top:-1.2em; 
+       border:1px solid #cccccc;
+}
+li.folders {
+       list-style: disc url(../../images/folder.gif) outside;
+       font-family: Verdana, Helevetica, Arial, sans-serif;
+       margin-bottom: 0;
+       margin-top: 0;
+       margin-right: 0;
+}
+
+li.folders .disabled {
+       color: #B8AE9C;
+}
+
+ul.folder{
+       list-style-image:none;
+       list-style-position:outside;
+       list-style-type:none;
+       margin:0em;
+       padding:0em;
+}
+
+
+/*     top navigation */
+
+#topnavlist-link {
+       color: #000;
+       text-decoration: none;
+       font-weight: bold;
+       
+       margin-right:-20px;
+       background-image:url(images/tree/tree_collapse.gif);
+       background-repeat:no-repeat;
+       background-position: center right;
+       
+       /*border: thin solid red;*/}
+       
+       #topnavlist-link a:link {color:#5984C4;}
+
+
+ul#topnavlist {
+       display: none;
+       position: relative;
+       top: 1.2em;
+       z-index: 1;
+       background-color:#fff;
+       }
+
+
+ul#topnavlist li {
+       padding: 0;
+       margin: 0;
+}
+ul#topnavlist li a.active {
+       color: #5984C4;
+       font-style: italic;
+       }
+
+#topnavlist a:hover {color:#3866c4 !important;
+text-decoration:underline !important;
+background-color:transparent;}
+
+ul#topnavlist li a  {
+       color: #5984C4;
+       text-decoration: none;
+}
+
+
+div.toolcontainer{
+       width:90%;
+       margin:auto;
+       border:thin solid #e8e8e8;
+       padding-top:1em;
+       padding-bottom:1em;
+}
+
+ul#subnavlist {
+       padding: 0;
+       padding-bottom: 0.313em;
+       margin: 0;
+       font-size: 90%;
+}
+
+
+ul#subnavlist li {
+       display: inline;
+}
+
+ul#subnavlist li#test{
+       display: none;
+}
+ul#subnavlist li a:hover, ul#subnavlist li a:focus, ul#subnavlist li a.active{ /*
+       color: black;
+       text-decoration:none;*/
+}
+
+ul#subnavlist li a, ul#subnavlist li a:visited {
+       color: #5984C4;
+}
+
+
+/* list attributes */
+ul {
+       list-style: none;
+}
+li {
+       color: black;
+       list-style: none;
+}
+
+ol#tools>li:hover, ol#tools>li:hover a {
+       border: 1px solid #e0e0e0;
+       background-color: #e6e6e6;
+       color: black;   
+}
+
+
+#content-contentwrapper{
+       height:100%;
+    position:relative; 
+       z-index:1000;                   
+       width:100%;
+       overflow:hidden;
+}
+
+#leftcolumn{
+       float: left;
+       width: 17em;
+       margin-left: 0.313em;
+       margin-top:-0.625em;
+}
+
+#copyright{
+       font-size: 0.5em color:#333;
+}
+#gototop{
+       text-align: right;
+       color: #4B6B90;
+}
+
+ #tools{
+       margin: 0 auto;
+       padding: 0.375em;
+}
+
+
+/* ATutor Social Styles */
+
+div .profile_container {
+       background-color:#eee; 
+       border: 1px solid #8e8e8e; 
+       width:80%; 
+       padding:0.5em; 
+       margin-bottom: 0.5em;
+}
+
+div .profile_container .top_right {
+       float: right;
+}
+
+dl.public-profile dd{
+       margin-left:0;
+}
+dl.public-profile dt {
+       float: left;
+       font-weight: bold;
+       min-width:12em;
+}
+
+/* Search form */
+div .search_form {
+       margin-bottom: 1em;
+}
+
+div .search_form .row{
+       background-color: #DEDEC0;
+       padding: 0.5em;
+}
+div .button {
+       background-color: #eee;
+       border: 1px solid #aaa;
+}
+div .button:hover{
+       background-color: #cccccc;
+       color: #ffffff;
+}
+
+/* Side menu */
+
+
+ul.social_side_menu {
+       padding-left: 2em;
+}
+ul.social_side_menu li {
+       padding-bottom: 0.2em;
+       list-style: circle;
+}
+
+div .divider {
+       border-bottom:1px solid #C1C157; 
+       padding-bottom:0.5em; 
+       margin-bottom:0.5em;
+}
+
+.activity{
+       line-height:18pt;
+       font-size:.8em;
+}
+
+div.contentbox, input-form{
+
+       padding:.5em;
+       background-color: #ffffff;
+    overflow:hidden;
+    /*border: #A9ADB0 solid 1px;
+       /*-webkit-border-radius: 5px;*/
+}
+
+div.suggestions{
+       border:1px solid #a50707;
+       margin-left:0.625em; 
+       width:50%;
+}
+li.inlinelist{
+       display: inline; 
+       padding-right: 1em;
+}
+ul.social_inline_menu{
+       background-color: #eeeeee;
+       border:thin #cccccc solid;
+       padding:.5em;
+       width:90%;
+       margin:auto;
+}
+div.social-wrapper{ 
+       width: 100%;
+}
+
+
+.contentbox-a{
+    width: 100%;
+}
+.contentbox-b{
+    padding-bottom:0.2em;
+}
+div.logo{
+float:left;
+clear:right;
+margin-left:2em;}
+
+
+/* Overrides for external stylesheets */
+
+.fl-tabs li a {
+       color:#6699ff;
+ -moz-background-clip:none;
+-moz-background-clip: none;
+-moz-background-origin: none;
+border-style:none;}
+
+#top-links .fl-tabs li a{
+       color:#6699ff;
+}
+
+.recent_item {padding-bottom:1em;}
diff --git a/docs/themes/simplified-desktop/confirm.tmpl.php b/docs/themes/simplified-desktop/confirm.tmpl.php
new file mode 100644 (file)
index 0000000..62c5d5f
--- /dev/null
@@ -0,0 +1,19 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+
+<div class="input-form" style="max-width: 400px">
+       <div class="row">
+               <p><?php echo _AT('send_confirmation'); ?></p>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email'); ?></label><br />
+               <input type="text" name="email" id="email" size="40" />
+               <input type="hidden" name="en_id" id="en_id" value="<?php echo $_REQUEST['en_id']; ?>" size="50" />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('send'); ?>" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/content.tmpl.php b/docs/themes/simplified-desktop/content.tmpl.php
new file mode 100644 (file)
index 0000000..6ac2a1c
--- /dev/null
@@ -0,0 +1,78 @@
+<?php\r
+/****************************************************************/\r
+/* ATutor                                                                                                              */\r
+/****************************************************************/\r
+/* Copyright (c) 2002-2009                                                                             */\r
+/* Adaptive Technology Resource Centre / University of Toronto  */\r
+/* http://atutor.ca                                                                                            */\r
+/*                                                              */\r
+/* This program is free software. You can redistribute it and/or*/\r
+/* modify it under the terms of the GNU General Public License  */\r
+/* as published by the Free Software Foundation.                               */\r
+/****************************************************************/\r
+if (!defined('AT_INCLUDE_PATH')) { exit; } \r
+\r
+// print the AccessForAll alternatives tool bar\r
+// see /content.php for details of the alt_infos() array\r
+// images for the toolbar can be customized by adding images of the same name to a theme's images directory\r
+?>\r
+<div id="alternatives_shortcuts">\r
+<?php \r
+       foreach ($this->alt_infos as $alt_info){\r
+               echo '<a href="'.$_SERVER['PHP_SELF'].'?cid='.$this->cid.(($_GET['alternative'] == $alt_info['0']) ? '' : htmlentities_utf8(SEP).'alternative='.$alt_info[0]).'">\r
+                       <img src="'.AT_BASE_HREF.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[3] : $alt_info[4]).'" alt="'.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[2] : $alt_info[1]).'" title="'.(($_GET['alternative'] == $alt_info[0]) ? $alt_info[2] : $alt_info[1]).'" border="0" class="img1616"/></a>';\r
+       } \r
+?>\r
+</div>\r
+\r
+<?php \r
+if ($_SESSION["prefs"]["PREF_SHOW_CONTENTS"] && $this->content_table <> "") \r
+       echo $this->content_table;\r
+?>\r
+\r
+<div id="content-text">\r
+       <?php echo $this->body; ?>\r
+</div>\r
+\r
+<?php if (!empty($this->test_ids)): ?>\r
+<div id="content-test" class="input-form">\r
+       <ol>\r
+               <strong><?php echo _AT('tests') . ':' ; ?></strong>\r
+               <li class="top-tool"><?php echo $this->test_message; ?></li>\r
+               <ul class="tools">\r
+               <?php \r
+                       foreach ($this->test_ids as $id => $test_obj){\r
+                               echo '<li><a href="'.url_rewrite('mods/_standard/tests/test_intro.php?tid='.$test_obj['test_id'], AT_PRETTY_URL_IS_HEADER).'">'.\r
+                                       AT_print($test_obj['title'], 'tests.title').'</a><br /></li>';\r
+                       }\r
+               ?>\r
+               </ul>\r
+       </li></ol>\r
+</div>\r
+<?php endif; ?>\r
+\r
+<?php\r
+\r
+if (!empty($this->forum_ids)): ?>\r
+<div id="content-test" class="input-form">\r
+    <ol>\r
+        <strong><?php echo _AT('forums') . ':' ; ?></strong>\r
+        <li class="top-tool"><?php echo $this->forum_message; ?></li>\r
+            <ul class="tools">\r
+                <?php\r
+                foreach ($this->forum_ids as $id => $forum_obj) {\r
+                    echo '<li><a href="'.url_rewrite('mods/_standard/forums/forum/index.php?fid='.$forum_obj['forum_id'], AT_PRETTY_URL_IS_HEADER).'">'.\r
+                        AT_print($forum_obj['title'], 'forums.title').'</a><br /></li>';\r
+                }\r
+                ?>\r
+            </ul>\r
+        </li>\r
+    </ol>\r
+</div>\r
+<?php endif; ?>\r
+\r
+\r
+<div id="content-info">\r
+       <?php echo $this->content_info; ?>\r
+\r
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/editor/edit_content_folder.tmpl.php b/docs/themes/simplified-desktop/editor/edit_content_folder.tmpl.php
new file mode 100644 (file)
index 0000000..6591038
--- /dev/null
@@ -0,0 +1,110 @@
+<?php\r
+/************************************************************************/\r
+/* ATutor                                                                                                                              */\r
+/************************************************************************/\r
+/* Copyright (c) 2002-2010                                              */\r
+/* Inclusive Design Institute                                           */\r
+/* http://atutor.ca                                                                                                            */\r
+/*                                                                                                                                             */\r
+/* This program is free software. You can redistribute it and/or        */\r
+/* modify it under the terms of the GNU General Public License          */\r
+/* as published by the Free Software Foundation.                        */\r
+/************************************************************************/\r
+if (!defined('AT_INCLUDE_PATH')) { exit; } \r
+\r
+global $onload;\r
+$onload = 'document.form.title.focus();';\r
+?>\r
+<form action="<?php echo $_SERVER['PHP_SELF']; if ($this->cid > 0) echo '?cid='.$this->cid; else if ($this->pid > 0) echo '?pid='.$this->pid;?>" method="post" name="form"> \r
+<div class="input-form" >\r
+<!-- <?php\r
+if ($this->shortcuts): \r
+?>\r
+ <fieldset id="shortcuts" style="margin-top:1em;float:right;clear:right;"><legend><?php echo _AT('shortcuts'); ?></legend>\r
+       <ul>\r
+               <?php foreach ($this->shortcuts as $link): ?>\r
+                       <li><a href="<?php echo $link['url']; ?>"><?php echo $link['title']; ?></a></li>\r
+               <?php endforeach; ?>\r
+       </ul>\r
+</fieldset>\r
+<?php endif; ?> -->\r
+       <div class="row">\r
+               <div style="font-weight:bold;"><span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="ftitle"><?php echo _AT('content_folder_title');  ?></label></div>\r
+               <input type="text" name="title" id="ftitle" size="40" class="formfield" value="<?php echo ContentManager::cleanOutput($this->ftitle); ?>" />\r
+       </div>\r
+       \r
+       <div class="row">\r
+               <div style="font-weight:bold;"><?php echo _AT('release_date');  ?></div>\r
+               <?php if ($_POST['day']) { ?>\r
+                       <?php\r
+                               $today_day   = $_POST['day'];\r
+                               $today_mon   = $_POST['month'];\r
+                               $today_year  = $_POST['year'];\r
+\r
+                               $today_hour  = $_POST['hour'];\r
+                               $today_min   = $_POST['min'];           \r
+               }?>\r
+               <?php require(AT_INCLUDE_PATH.'html/release_date.inc.php');     ?>\r
+       </div>\r
+\r
+       <?php if (isset($this->pretests)) {?>\r
+       <div class="row">\r
+               <div style="font-weight:bold;"><?php echo _AT('define_pretest'); ?></div>\r
+               <p><?php echo _AT('about_pretest'); ?></p>\r
+       </div>\r
+\r
+       <div class="row">\r
+       <div class="table-surround">\r
+       <table class="data" summary="Title, status, release results, and pass score of available tests">\r
+       <thead>\r
+       <tr>\r
+               <th scope="col">&nbsp;</th>\r
+               <th scope="col"><?php echo _AT('title');          ?></th>\r
+               <th scope="col"><?php echo _AT('status');         ?></th>\r
+               <th scope="col"><?php echo _AT('result_release'); ?></th>\r
+               <th scope="col"><?php echo _AT('pass_score');     ?></th>\r
+               <!-- REMOVED FOR MOBILE <th scope="col"><?php// echo _AT('assigned_to');          ?></th>-->\r
+       </tr>\r
+       </thead>\r
+       <tbody>\r
+       <?php foreach ($this->pretests as $row) { ?>\r
+       <?php\r
+               $checkMe = '';\r
+               if (is_array($_POST['pre_tid']) && in_array($row['test_id'], $_POST['pre_tid'])){\r
+                       $checkMe = ' checked="checked"';\r
+               } \r
+       ?>\r
+       <tr onmousedown="toggleTestSelect('r_<?php echo $row['test_id']; ?>');rowselect(this);" id="r_<?php echo $row['test_id']; ?>">\r
+               <td><input type="checkbox" name="tid[]" value="<?php echo $row['test_id']; ?>" id="t<?php echo $row['test_id']; ?>" <?php echo $checkMe; ?> onmouseup="this.checked=!this.checked" /></td>\r
+               <td><?php echo $row['title']; ?></td>\r
+               <td><?php echo $row['status']; ?></td>\r
+               <!-- <td><?php echo $row['availability']; ?></td> -->\r
+               <td><?php echo $row['result_release']; ?></td>\r
+               <td><?php echo $row['pass_score']; ?></td>\r
+               <!-- REMOVED FOR MOBILE <td><?php echo $row['assign_to']; ?></td>-->\r
+       </tr>\r
+       <?php } ?>\r
+       </tbody>\r
+       </table>\r
+       </div>\r
+       </div>\r
+<?php }?>\r
+\r
+       <div class="row buttons">\r
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" title="<?php echo _AT('save_changes'); ?> alt-s" accesskey="s" />\r
+       </div>\r
+</div>\r
+</form>\r
+\r
+<script language="javascript" type="text/javascript">\r
+       function toggleTestSelect(r_id){\r
+               var row = document.getElementById(r_id);\r
+               var checkBox = row.cells[0].firstChild;\r
+\r
+               if (checkBox.checked == true){\r
+                       checkBox.checked = false;\r
+               } else {\r
+                       checkBox.checked = true;\r
+               }\r
+       }\r
+</script>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/editor/page_student_stats.tmpl.php b/docs/themes/simplified-desktop/editor/page_student_stats.tmpl.php
new file mode 100644 (file)
index 0000000..f9a650f
--- /dev/null
@@ -0,0 +1,26 @@
+<table class="data" summary="">
+<thead>
+<tr>
+       <th scope="col"><?php echo _AT('login_name'); ?></th>
+       <th scope="col"><?php echo _AT('visits'); ?></th>
+       <th scope="col"><?php echo _AT('avg_duration'); ?></th>
+       <th scope="col"><?php echo _AT('duration'); ?></th>
+</tr>
+</thead>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)) : ?>
+       <?php do { ?>
+       <tr onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/student_usage.php?id=<?php echo $row['member_id']; ?>'" title="<?php echo _AT('member_stats'); ?>">
+               <td><a href="<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/student_usage.php?id=<?php echo $row['member_id']; ?>"><?php echo get_display_name($row['member_id']); ?></a></td>
+               <td><?php echo $row['counter']; ?></td>
+               <td><?php echo $row['average']; ?></td>
+               <td><?php echo $row['total']; ?></td>
+       </tr>
+       <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
diff --git a/docs/themes/simplified-desktop/forms.css b/docs/themes/simplified-desktop/forms.css
new file mode 100644 (file)
index 0000000..2e2ea5f
--- /dev/null
@@ -0,0 +1,152 @@
+
+
+/* login page */
+div.container{
+       width:100%;
+       text-align: center;
+       margin: 0 auto;
+}
+
+div.container p {
+       text-align: left;
+       padding: .5em;
+}
+
+div.column-login{
+}
+div.column-new-user{
+width: 100%;
+
+/* end of login page */
+
+
+/*
+#contentcolumn{
+       width: 90%;
+}
+*/
+
+
+
+fieldset{
+       border: none;
+}
+
+fieldset.group_form{
+       border: none;
+       text-align: center;
+       width:80%;
+       margin:0 auto;
+       border:thin #ffffff solid;
+       padding-bottom: 0em;
+}
+
+/* on registration page, group form fields to the left */
+fieldset.group_form .row{
+text-align: left}
+
+legend.group_form{
+       border:none;
+        font-size: 150%;
+       background-color: #4D4D4D;
+       color: #F7941E;
+       padding:.5em;
+}
+       
+div.input-form {
+       width: 110%; 
+    margin:0 auto;
+       margin-bottom: 20px;
+       padding: 0 6px;
+    line-height:150%;
+       border: none;
+       background-color: #4D4D4D;
+
+}
+
+div.input-form div.row h3 {
+       margin-left: 0px;
+}
+
+div.input-form div.row {
+       background-color: #4d4d4d;
+       padding:8px;
+}
+
+
+/*<img> and <a> tags: on mouse hover the color of the background will keep the same!*/
+div.input-form div.row img,a:hover{
+    background-color:#F8F8F8;
+}
+
+div.input-form .footer {
+       border-top: 1px solid #F9F6F2;
+}
+
+div.input-form p {
+       margin-left: 0px;
+}
+
+div.input-form input {
+       z-index: 2;
+}
+div.input-form textarea {
+       border: 1px solid #595241;
+       width: 98%;
+       padding: 2px;
+       margin-right: 2px;
+}
+
+div.input-form input[type=text], div.input-form input[type=password] {
+       border: 1px solid #595241;
+       padding: 2px;
+       max-width: 60%;
+       background-color:white;
+}
+
+div.input-form textarea:focus, div.input-form  input[type=password]:focus, div.input-form  input[type=text]:focus{
+       border:1px solid #4D4D4D;
+       
+       padding: 2px;
+}
+
+input[type=checkbox]{
+
+       background-color: #FFDAB9;
+}
+
+div.input-form div.buttons {
+       text-align: center;
+padding: 0; 
+margin: 0;
+}
+div.input-form div.buttons input {
+       background-color: #efefef;
+       font-weight: normal;
+       border:  #AAA  solid 1px;
+}
+.formfield:focus{
+       background-color: #FFDAB9;
+}
+
+#ot:focus{
+       background-color: #FFDAB9;
+}
+
+/*Added by Silvia*/
+div.input-form div.row_alternatives {
+       background-color: #F8F8F8;
+       padding: 5px;
+/*     width: 70%;
+       float: left;
+       width: 100%;
+       float: left;*/
+       /*clear: both;*/
+}
+
+#radio_alt{
+       /*width: auto;*/
+       /*border-bottom: 1px #CCCCCC solid;*/
+
+}
+
diff --git a/docs/themes/simplified-desktop/images/arrow-up-black.png b/docs/themes/simplified-desktop/images/arrow-up-black.png
new file mode 100644 (file)
index 0000000..8e0ed50
Binary files /dev/null and b/docs/themes/simplified-desktop/images/arrow-up-black.png differ
diff --git a/docs/themes/simplified-desktop/images/arrow-up.png b/docs/themes/simplified-desktop/images/arrow-up.png
new file mode 100644 (file)
index 0000000..b1e8419
Binary files /dev/null and b/docs/themes/simplified-desktop/images/arrow-up.png differ
diff --git a/docs/themes/simplified-desktop/images/clr.gif b/docs/themes/simplified-desktop/images/clr.gif
new file mode 100644 (file)
index 0000000..4146548
Binary files /dev/null and b/docs/themes/simplified-desktop/images/clr.gif differ
diff --git a/docs/themes/simplified-desktop/images/down.png b/docs/themes/simplified-desktop/images/down.png
new file mode 100644 (file)
index 0000000..f12a7b6
Binary files /dev/null and b/docs/themes/simplified-desktop/images/down.png differ
diff --git a/docs/themes/simplified-desktop/images/idi_background.png b/docs/themes/simplified-desktop/images/idi_background.png
new file mode 100644 (file)
index 0000000..0878553
Binary files /dev/null and b/docs/themes/simplified-desktop/images/idi_background.png differ
diff --git a/docs/themes/simplified-desktop/images/minus.png b/docs/themes/simplified-desktop/images/minus.png
new file mode 100644 (file)
index 0000000..08338fa
Binary files /dev/null and b/docs/themes/simplified-desktop/images/minus.png differ
diff --git a/docs/themes/simplified-desktop/images/navbar_back_button_insetShadow_right.png b/docs/themes/simplified-desktop/images/navbar_back_button_insetShadow_right.png
new file mode 100644 (file)
index 0000000..bcedbcd
Binary files /dev/null and b/docs/themes/simplified-desktop/images/navbar_back_button_insetShadow_right.png differ
diff --git a/docs/themes/simplified-desktop/images/navbar_normal_button_insetShadow.png b/docs/themes/simplified-desktop/images/navbar_normal_button_insetShadow.png
new file mode 100644 (file)
index 0000000..ed445cb
Binary files /dev/null and b/docs/themes/simplified-desktop/images/navbar_normal_button_insetShadow.png differ
diff --git a/docs/themes/simplified-desktop/images/plus.png b/docs/themes/simplified-desktop/images/plus.png
new file mode 100644 (file)
index 0000000..3757fb1
Binary files /dev/null and b/docs/themes/simplified-desktop/images/plus.png differ
diff --git a/docs/themes/simplified-desktop/images/up.png b/docs/themes/simplified-desktop/images/up.png
new file mode 100644 (file)
index 0000000..8175898
Binary files /dev/null and b/docs/themes/simplified-desktop/images/up.png differ
diff --git a/docs/themes/simplified-desktop/images/white_listmenu_arrow.png b/docs/themes/simplified-desktop/images/white_listmenu_arrow.png
new file mode 100644 (file)
index 0000000..8c39032
Binary files /dev/null and b/docs/themes/simplified-desktop/images/white_listmenu_arrow.png differ
diff --git a/docs/themes/simplified-desktop/inbox/inbox.tmpl.php b/docs/themes/simplified-desktop/inbox/inbox.tmpl.php
new file mode 100644 (file)
index 0000000..f4a82f6
--- /dev/null
@@ -0,0 +1,100 @@
+
+<?php 
+       if ($row = mysql_fetch_assoc($this->result_messages)) {
+?>
+       <ul id="inbox-msg">
+       <li>
+               <div class="forum-post-author">
+                       <a href="profile.php?id=<?php echo $row['from_member_id']; ?>" class="title"><?php echo get_display_name($row['from_member_id']); ?></a><br />
+                       <?php print_profile_img($row['from_member_id']); ?>
+               </div>
+
+               <div class="forum-post-content">
+                       <h3><?php echo AT_print($row['subject'], 'messages.subject'); ?></h3>
+                       <div>
+                               <div class="forum-post-ctrl">
+                                       <a href="inbox/send_message.php?reply=<?php echo $_GET['view']; ?>"><?php echo _AT('reply'); ?></a> | <a href="<?php echo $_SERVER['PHP_SELF']; ?>?delete=<?php echo $_GET['view']; ?>"><?php echo _AT('delete'); ?></a>
+                               </div>
+                               <p class="date"><?php echo AT_date(_AT('forum_date_format'), $row['date_sent'], AT_DATE_MYSQL_DATETIME); ?></p>
+                       </div>
+
+                       <div class="body">
+                               <p><?php echo AT_print($row['body'], 'messages.body'); ?></p>
+                       </div>
+               </div>
+
+       </li>
+       </ul><br /><br />
+       <?php
+       }
+?>
+       
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form" >
+<div class="table-surround">
+<table class="data" summary="" >
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col">&nbsp;</th>
+       <th scope="col" ><?php echo _AT('from');   ?></th>
+       <th scope="col" ><?php echo _AT('subject');?></th>
+       <th scope="col" ><?php echo _AT('date');   ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="5"><input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"/></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)): ?>
+       <?php do { ?>
+               <?php if ($row['message_id'] == $_GET['view']): ?>
+                       <tr class="selected">
+               <?php else: ?>
+                       <tr onmousedown="document.form['m<?php echo $row['message_id']; ?>'].checked = !document.form['m<?php echo $row['message_id']; ?>'].checked; rowselectbox(this, document.form['m<?php echo $row['message_id']; ?>'].checked, '');" id="r_<?php echo $row['message_id']; ?>_1">
+               <?php endif; ?>
+               <td><input type="checkbox" name="id[]" value="<?php echo $row['message_id']; ?>" id="m<?php echo $row['message_id']; ?>" <?php if (isset($_POST['id']) && in_array($row['message_id'], $_POST['id'])) { echo 'checked="checked"'; } ?> title="<?php echo _AT('delete').': '.AT_print($row['subject'], 'messages.subject');?>" onmouseup="this.checked=!this.checked" /></td>
+               <td valign="middle">
+               <?php
+               if ($row['new'] == 1)   {
+                       echo _AT('new');
+               } else if ($row['replied'] == 1) {
+                       echo _AT('replied');
+               }
+               echo '</td>';
+
+               $name = get_display_name($row['from_member_id']);
+
+               echo '<td align="left" valign="middle">';
+
+               if ($_GET['view'] != $row['message_id']) {
+                       echo $name;
+               } else {
+                       echo '<strong>'.$name.'</strong>';
+               }
+               echo '</td>';
+
+               echo '<td><label for="m'.$row['message_id'].'">';
+               if ($_GET['view'] != $row['message_id']) {
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?view='.$row['message_id'].'">'.AT_print($row['subject'], 'messages.subject').'</a>';
+               } else {
+                       echo '<strong>'.AT_print($row['subject'], 'messages.subject').'</strong>';
+               }
+               echo '</label></td>';
+       
+               echo '<td valign="middle" align="left" nowrap="nowrap">';
+               echo AT_date(_AT('forum_date_format'),  $row['date_sent'], AT_DATE_MYSQL_DATETIME);
+               //echo AT_date(_AT('%D',  $row['date_sent'], AT_DATE_MYSQL_DATETIME);
+               echo '</td>';
+               echo '</tr>';
+       } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="5"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/inbox/sent_messages.tmpl.php b/docs/themes/simplified-desktop/inbox/sent_messages.tmpl.php
new file mode 100644 (file)
index 0000000..f92a648
--- /dev/null
@@ -0,0 +1,94 @@
+
+<?php 
+       if ($row = mysql_fetch_assoc($this->result_messages)) {
+?>
+       <ul id="inbox-msg">
+       <li>
+               <div class="forum-post-author">
+                       <a href="profile.php?id=<?php echo $row['to_member_id']; ?>" class="title"><?php echo get_display_name($row['to_member_id']); ?></a><br />
+                       <?php print_profile_img($row['to_member_id']); ?>
+               </div>
+
+               <div class="forum-post-content">
+                       <h3><?php echo AT_print($row['subject'], 'messages.subject'); ?></h3>
+                       <div>
+                               <div class="forum-post-ctrl">
+                                       <a href="inbox/send_message.php?forward=<?php echo $_GET['view']; ?>"><?php echo _AT('forward'); ?></a> | <a href="<?php echo $_SERVER['PHP_SELF']; ?>?delete=<?php echo $_GET['view']; ?>"><?php echo _AT('delete'); ?></a>
+                               </div>
+                               <p class="date"><?php echo AT_date(_AT('forum_date_format'), $row['date_sent'], AT_DATE_MYSQL_DATETIME); ?></p>
+                       </div>
+
+                       <div class="body">
+                               <p><?php echo AT_print($row['body'], 'messages.body'); ?></p>
+                       </div>
+                       <div style="clear: both; font-size:0.1em"></div>
+               </div>
+       </li>
+       </ul>
+       <?php
+       }
+?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<div class="table-surround">
+<table class="data" >
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col" ><?php echo _AT('to');   ?></th>
+       <th scope="col" ><?php echo _AT('subject');?></th>
+       <th scope="col" ><?php echo _AT('date');   ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="4">
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"/>
+               <input type="submit" name="move" value="<?php echo _AT('move_to_inbox'); ?>"/>
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)): ?>
+       <?php do { ?>
+               <?php if ($row['message_id'] == $_GET['view']): ?>
+                       <tr class="selected">
+               <?php else: ?>
+                       <tr onmousedown="document.form['m<?php echo $row['message_id']; ?>'].checked = !document.form['m<?php echo $row['message_id']; ?>'].checked; rowselectbox(this, document.form['m<?php echo $row['message_id']; ?>'].checked, '');" id="r_<?php echo $row['message_id']; ?>_1">
+               <?php endif; ?>
+               <td><input type="checkbox" name="id[]" value="<?php echo $row['message_id']; ?>" id="m<?php echo $row['message_id']; ?>" <?php if (isset($_POST['id']) && in_array($row['message_id'], $_POST['id'])) { echo 'checked="checked"'; } ?> title="<?php echo _AT('delete').': '.AT_print($row['subject'], 'messages.subject');?>" onmouseup="this.checked=!this.checked" /></td>
+               <?php
+
+               $name = get_display_name($row['to_member_id']);
+
+               echo '<td align="left" valign="middle">';
+
+               if ($_GET['view'] != $row['message_id']) {
+                       echo $name;
+               } else {
+                       echo '<strong>'.$name.'</strong>';
+               }
+               echo '</td>';
+
+               echo '<td><label for="m'.$row['message_id'].'">';
+               if ($_GET['view'] != $row['message_id']) {
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?view='.$row['message_id'].'">'.AT_print($row['subject'], 'messages.subject').'</a>';
+               } else {
+                       echo '<strong>'.AT_print($row['subject'], 'messages.subject').'</strong>';
+               }
+               echo '</label></td>';
+       
+               echo '<td valign="middle" align="left" nowrap="nowrap">';
+               echo AT_date(_AT('forum_date_format'),  $row['date_sent'], AT_DATE_MYSQL_DATETIME);
+               echo '</td>';
+               echo '</tr>';
+       } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
diff --git a/docs/themes/simplified-desktop/include/TeraWurflRemoteClient.php b/docs/themes/simplified-desktop/include/TeraWurflRemoteClient.php
new file mode 100644 (file)
index 0000000..92204c3
--- /dev/null
@@ -0,0 +1,245 @@
+<?php\r
+/**\r
+ * Tera_WURFL - PHP MySQL driven WURFL\r
+ * \r
+ * Tera-WURFL was written by Steve Kamerman, and is based on the\r
+ * Java WURFL Evolution package by Luca Passani and WURFL PHP Tools by Andrea Trassati.\r
+ * This version uses a MySQL database to store the entire WURFL file, multiple patch\r
+ * files, and a persistent caching mechanism to provide extreme performance increases.\r
+ * \r
+ * @package TeraWurflRemoteClient\r
+ * @author Steve Kamerman <stevekamerman AT gmail.com>\r
+ * @version Stable 2.1.2 $Date: 2010/05/14 15:53:02\r
+ * @license http://www.mozilla.org/MPL/ MPL Vesion 1.1\r
+ */\r
+/**\r
+ * Tera-WURFL remote webservice client for PHP\r
+ * @package TeraWurflRemoteClient\r
+ */\r
+class TeraWurflRemoteClient {\r
+       \r
+       /**\r
+        * XML Data Format - this should only be used to communicate with Tera-WURFL 2.1.1 and older\r
+        * @var String\r
+        */\r
+       public static $FORMAT_XML = 'xml';\r
+       /**\r
+        * The JSON Data Format is the default transport for Tera-WURFL 2.1.2 and newer due to it's smaller size\r
+        * and better performance with the builtin PHP functions \r
+        * @var String\r
+        */\r
+       public static $FORMAT_JSON = 'json';\r
+       /**\r
+        * If you try to use a capability that has not been retrieved yet and this is set to true,\r
+        * it will generate another request to the webservice and retrieve this capability automatically.\r
+        * @var Bool\r
+        */\r
+       public $autolookup = true;\r
+       /**\r
+        * Flattened version of Tera-WURFL's capabilities array, containing only capability names and values.\r
+        * Since it is 'Flattened', there a no groups in this array, just individual capabilities.\r
+        * @var Array\r
+        */\r
+       public $capabilities;\r
+       /**\r
+        * Array of errors that were encountered while processing the request and/or response.\r
+        * @var Array\r
+        */\r
+       public $errors;\r
+       /**\r
+        * The HTTP Headers that Tera-WURFL will look through to find the best User Agent, if one is not specified\r
+        * @var Array\r
+        */\r
+       public static $userAgentHeaders = array(\r
+               'HTTP_X_DEVICE_USER_AGENT',\r
+               'HTTP_X_ORIGINAL_USER_AGENT',\r
+               'HTTP_X_OPERAMINI_PHONE_UA',\r
+               'HTTP_X_SKYFIRE_PHONE',\r
+               'HTTP_X_BOLT_PHONE_UA',\r
+               'HTTP_USER_AGENT'\r
+       );\r
+       protected $format;\r
+       protected $userAgent;\r
+       protected $webserviceUrl;\r
+       protected $xml;\r
+       protected $json;\r
+       protected $clientVersion = '2.1.2';\r
+       protected $apiVersion;\r
+       \r
+       /**\r
+        * Creates a TeraWurflRemoteClient object.  NOTE: in Tera-WURFL 2.1.2 the default data format is JSON.\r
+        * This format is not supported in Tera-WURFL 2.1.1 or earlier, so if you must use this client with \r
+        * an earlier version of the server, set the second parameter to TeraWurflRemoteClient::$FORMAT_XML\r
+        * @param String URL to the master Tera-WURFL Server's webservice.php\r
+        * @param String TeraWurflRemoteClient::$FORMAT_JSON or TeraWurflRemoteClient::$FORMAT_XML\r
+        */\r
+       public function __construct($TeraWurflWebserviceURL,$data_format='json'){\r
+               $this->format = $data_format;\r
+               if(!self::validURL($TeraWurflWebserviceURL)){\r
+                       throw new Exception("TeraWurflRemoteClient Error: the specified webservice URL is invalid.  Please make sure you pass the full url to Tera-WURFL's webservice.php.");\r
+                       exit(1);\r
+               }\r
+               $this->capabilities = array();\r
+               $this->errors = array();\r
+               $this->webserviceUrl = $TeraWurflWebserviceURL;\r
+       }\r
+       /**\r
+        * Get the requested capabilities from Tera-WURFL for the given user agent\r
+        * @param String HTTP User Agent of the device being detected\r
+        * @param Array Array of capabilities that you would like to retrieve\r
+        * @return bool Success\r
+        */\r
+       public function getCapabilitiesFromAgent($userAgent, Array $capabilities){\r
+               $this->userAgent = (is_null($userAgent))? self::getUserAgent(): $userAgent;\r
+               // build request string\r
+               $uri = $this->webserviceUrl . (strpos($this->webserviceUrl,'?')===false?'?':'&') \r
+               . 'ua=' . urlencode($this->userAgent)\r
+               . '&format=' . $this->format\r
+               . '&search=' . implode('|',$capabilities);\r
+               $this->callTeraWurfl($uri);\r
+               $this->loadCapabilities();\r
+               $this->loadErrors();\r
+               return true;\r
+       }\r
+       /**\r
+        * Returns the value of the requested capability\r
+        * @param String The WURFL capability you are looking for (e.g. "is_wireless_device")\r
+        * @return Mixed String, Numeric, Bool\r
+        */\r
+       public function getDeviceCapability($capability){\r
+               $capability = strtolower($capability);\r
+               if(!array_key_exists($capability, $this->capabilities)){\r
+                       if($this->autolookup){\r
+                               $this->getCapabilitiesFromAgent($this->userAgent, array($capability), array());\r
+                       }\r
+                       return $this->capabilities[$capability];\r
+               }\r
+               return $this->capabilities[$capability];\r
+       }\r
+       /**\r
+        * Get the version of the Tera-WURFL Remote Client (this file)\r
+        * @return String\r
+        */\r
+       public function getClientVersion(){\r
+               return $this->clientVersion;\r
+       }\r
+       /**\r
+        * Get the version of the Tera-WURFL Webservice (webservice.php on server).  This is only available\r
+        * after a query has been made since it is returned in the XML response.\r
+        * @return String\r
+        */\r
+       public function getAPIVersion(){\r
+               return $this->apiVersion;\r
+       }\r
+       /**\r
+        * Make the webservice call to the server using the GET method and load the XML response into $this->xml \r
+        * @param String The URI of the master server\r
+        * @return void\r
+        */\r
+       protected function callTeraWurfl($uri){\r
+               try{\r
+                       switch($this->format){\r
+                               case self::$FORMAT_JSON:\r
+                                       $data = file_get_contents($uri);\r
+                                       $this->json = json_decode($data,true);\r
+                                       if(is_null($this->json)){\r
+                                               // Trigger the catch block\r
+                                               throw new Exception("foo");\r
+                                       }\r
+                                       unset($data);\r
+                                       break;\r
+                               default:\r
+                               case self::$FORMAT_XML:\r
+                                       if(!$this->xml = simplexml_load_file($uri)){\r
+                                               throw new Exception("foo");\r
+                                       }\r
+                                       break;\r
+                       }\r
+               }catch(Exception $ex){\r
+                       // Can't use builtin logging here through Tera-WURFL since it is on the client, not the server\r
+                       throw new Exception("TeraWurflRemoteClient Error: Could not query Tera-WURFL master server.");\r
+                       exit(1);\r
+               }\r
+       }\r
+       /**\r
+        * Parse the response into the capabilities array\r
+        * @return void\r
+        */\r
+       protected function loadCapabilities(){\r
+               switch($this->format){\r
+                       case self::$FORMAT_JSON:\r
+                               $this->apiVersion = $this->json['apiVersion'];\r
+                               $this->capabilities = $this->json['capabilities'];\r
+                               break;\r
+                       default:\r
+                       case self::$FORMAT_XML:\r
+                               $this->apiVersion = $this->xml->device['apiVersion'];\r
+                               foreach($this->xml->device->capability as $cap){\r
+                                       $this->capabilities[(string)$cap['name']] = self::niceCast((string)$cap['value']);\r
+                               }\r
+                               break;\r
+               }\r
+       }\r
+       /**\r
+        * Parse the response's errors into the errors array\r
+        * @return void\r
+        */\r
+       protected function loadErrors(){\r
+               switch($this->format){\r
+                       case self::$FORMAT_JSON:\r
+                               $this->errors &= $this->json['errors'];\r
+                               break;\r
+                       default:\r
+                       case self::$FORMAT_XML:\r
+                               foreach($this->xml->errors->error as $error){\r
+                                       $this->errors[(string)$error['name']]=(string)$error['description'];\r
+                               }\r
+                               break;\r
+               }\r
+       }\r
+       /**\r
+        * Cast strings into proper variable types, i.e. 'true' into true\r
+        * @param $value\r
+        * @return Mixed String, Bool, Float\r
+        */\r
+       protected static function niceCast($value){\r
+               // Clean Boolean values\r
+               if($value === 'true')$value=true;\r
+               if($value === 'false')$value=false;\r
+               if(!is_bool($value)){\r
+                       // Clean Numeric values by loosely comparing the (float) to the (string)\r
+                       $numval = (float)$value;\r
+                       if(strcmp($value,$numval)==0)$value=$numval;\r
+               }\r
+               return $value;\r
+       }\r
+       /**\r
+        * Is the given URL valid\r
+        * @param $url\r
+        * @return Bool\r
+        */\r
+       protected static function validURL($url){\r
+               if(preg_match('/^(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/',$url)) return true;\r
+               return false;\r
+       }       \r
+       /**\r
+        * Return the requesting client's User Agent\r
+        * @param $source\r
+        * @return String\r
+        */\r
+       public static function getUserAgent($source=null){\r
+               if(is_null($source) || !is_array($source))$source = $_SERVER;\r
+               $userAgent = '';\r
+               if(isset($_GET['UA'])){\r
+                       $userAgent = $_GET['UA'];\r
+               }else{\r
+                       foreach(self::$userAgentHeaders as $header){\r
+                               if(array_key_exists($header,$source) && $source[$header]){\r
+                                       $userAgent = $source[$header];\r
+                                       break;\r
+                               }\r
+                       }\r
+               }\r
+               return $userAgent;\r
+       }\r
+}
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/include/footer.tmpl.php b/docs/themes/simplified-desktop/include/footer.tmpl.php
new file mode 100644 (file)
index 0000000..45b9c2d
--- /dev/null
@@ -0,0 +1,96 @@
+<?php if (!defined('AT_INCLUDE_PATH')) { exit; } ?>
+<?php if ($this->mobile_device_type != IPAD_DEVICE): ?><!-- begin footer template for iphone, android, and blackberry -->
+
+
+</div> <!-- end innner-contentwrapper -->      
+</div> <!-- end contentcolumn -->
+</div> <!-- end contentwrapper -->
+</div> <!-- end main -->
+</div> <!-- end wrapper -->
+
+<div id="footer" class="fl-navbar fl-table">
+<div id="footer-links"> <!-- top help/search/login links -->
+       <ul class="footer-links-tabs fl-tabs flc-themer" role="menu">  
+               <?php if (isset($_SESSION['member_id']) && $_SESSION['member_id'] > 0): ?>
+                       <?php if(!$this->just_social): ?>                                       
+                               <?php if ($_SESSION['is_super_admin']): ?>
+                               <li role="menuitem">    <a  href="<?php echo $this->base_path; ?>bounce.php?admin"><?php echo _AT('back'); ?></a> </li>
+                               <?php endif; ?>
+       
+                               <?php if ($this->course_id > -1): ?>
+                                       <?php if (get_num_new_messages()): ?>
+                               <li role="menuitem">            <a  href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?> (<?php echo get_num_new_messages(); ?>)</a> </li>
+                                       <?php else: ?>
+                               <li role="menuitem">            <a href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?></a></li>
+                                       <?php endif; ?>
+                               <?php endif; ?>
+                       <?php endif; ?>
+               <?php endif; ?>
+               <!--  SEARCH MOVED TO #topnavlist 
+               <?php if(!$this->just_social): ?>
+                       <li><a href="<?php echo $this->base_path; ?>search.php"><?php echo _AT('search'); ?></a> </li>
+               <?php endif; ?> -->
+               <li role="menuitem"><a href="<?php echo $this->base_path; ?>help/index.php"><?php echo _AT('help'); ?></a></li>
+
+               <?php if (isset($_SESSION['valid_user']) && $_SESSION['valid_user']): ?>                                         
+                       <li role="menuitem"><a href="<?php echo $this->base_path; ?>logout.php"><?php echo _AT('logout'); ?></a></li>
+               <?php else: ?>
+                       <!-- <li><a href="<?php echo $this->base_path; ?>login.php?course=<?php echo $this->course_id; ?>"><?php echo _AT('login'); ?></a></li> -->
+               <?php endif; ?>
+</ul>                  
+ </div>                        
+</div>
+
+       <script language="javascript" type="text/javascript">
+//<!--
+    <?php require_once(AT_INCLUDE_PATH.'../jscripts/ATutor_js.php'); ?>
+//-->
+</script>
+</body>
+<?php endif;?><!--  end footer template for iphone, android and blackberry -->
+<?php if ($this->mobile_device_type == IPAD_DEVICE): ?> <!-- start footer template for ipad/talets -->
+
+</div> <!-- end main -->
+</div> <!-- end innner-contentwrapper -->      
+</div> <!-- end contentcolumn -->
+
+<div id="footer" class="fl-navbar fl-table">
+<div id="footer-links"> <!-- top help/search/login links -->
+       <ul class="footer-links-tabs fl-tabs flc-themer" role="menu">  
+               <?php if (isset($_SESSION['member_id']) && $_SESSION['member_id'] > 0): ?>
+                       <?php if(!$this->just_social): ?>                                       
+                               <?php if ($_SESSION['is_super_admin']): ?>
+                               <li role="menuitem">    <a  href="<?php echo $this->base_path; ?>bounce.php?admin"><?php echo _AT('back'); ?></a> </li>
+                               <?php endif; ?>
+       
+                               <?php if ($this->course_id > -1): ?>
+                                       <?php if (get_num_new_messages()): ?>
+                               <li role="menuitem">            <a  href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?> (<?php echo get_num_new_messages(); ?>)</a> </li>
+                                       <?php else: ?>
+                               <li role="menuitem">            <a href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?></a></li>
+                                       <?php endif; ?>
+                               <?php endif; ?>
+                       <?php endif; ?>
+               <?php endif; ?>
+               
+               <?php if(!$this->just_social): ?>
+                       <li role="menuitem"><a href="<?php echo $this->base_path; ?>search.php"><?php echo _AT('search'); ?></a> </li>
+               <?php endif; ?> 
+               <li role="menuitem"><a href="<?php echo $this->base_path; ?>help/index.php"><?php echo _AT('help'); ?></a></li>
+
+               <?php if (isset($_SESSION['valid_user']) && $_SESSION['valid_user']): ?>                                         
+                       <li role="menuitem"><a href="<?php echo $this->base_path; ?>logout.php"><?php echo _AT('logout'); ?></a></li>
+               <?php else: ?>
+                       <!-- <li><a href="<?php echo $this->base_path; ?>login.php?course=<?php echo $this->course_id; ?>"><?php echo _AT('login'); ?></a></li> -->
+               <?php endif; ?>
+</ul>                  
+ </div>                        
+</div>
+       <script language="javascript" type="text/javascript">
+//<!--
+    <?php require_once(AT_INCLUDE_PATH.'../jscripts/ATutor_js.php'); ?>
+//-->
+</script>
+</body>
+<?php endif; ?><!--  end footer template for ipad/tablets -->
+</html>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/include/header.tmpl.php b/docs/themes/simplified-desktop/include/header.tmpl.php
new file mode 100644 (file)
index 0000000..e1c60f7
--- /dev/null
@@ -0,0 +1,661 @@
+<?php
+/************************************************************************/
+/* ATutor                                                                                                                              */
+/************************************************************************/
+/* Copyright (c) 2002-2008 by Greg Gay, Joel Kronenberg & Heidi Hazelton*/
+/* Adaptive Technology Resource Centre / University of Toronto                 */
+/* http://atutor.ca                                                                                                            */
+/*                                                                                                                                             */
+/* This program is free software. You can redistribute it and/or               */
+/* modify it under the terms of the GNU General Public License                 */
+/* as published by the Free Software Foundation.                                               */
+/************************************************************************/
+// $Id: header.tmpl.php 3825 2005-03-11 15:35:51 joel $
+if (!defined('AT_INCLUDE_PATH')) { exit; }
+/* available header.tmpl.php variables:
+ * $this->lang_code                    the ISO language code
+ * SITE_NAME                           the site name from the config file
+ * $this->page_title           the name of this page to use in the <title>
+ * $this->lang_charset         the ISO language character set
+ * $this->content_base_href    the <base href> to use for this page
+ * $this->base_path                    the absolute path to this atutor installation
+ * $this->rtl_css                      if set, the path to the RTL style sheet
+ * $this->icon                 the path to a course icon
+ * $this->banner_style         -deprecated-
+ * $this->theme                                the directory name of the current theme
+ * $this->base_href                    the full url to this atutor installation
+ * $this->onload                       javascript onload() calls
+ * $this->img                          the absolute path to this theme's images/ directory
+ * $this->sequence_links       associative array of 'previous', 'next', and/or 'resume' links
+ * $this->path                         associative array of path to this page: aka bread crumbs
+ * $this->rel_url                      the relative url from the installation root to this page
+ * $this->nav_courses          associative array of this user's enrolled courses
+ * $this->section_title                the title of this section (course, public, admin, my start page)
+ * $this->current_top_level_page       the full path to the current top level page with file name
+ * $this->sub_level_pages                      associate array of sub level navigation
+ * $this->back_to_page                         if set, the path and file name to the part of this page (if parent is not a top level nav)
+ * $this->current_sub_level_page       the full path to the current sub level page with file name
+ * $this->guide                                the full path and file name to the guide page
+ * ======================================
+ * top_level_pages           array(array('url', 'title'))     the top level pages. ATutor default creates tabs.
+ * section_title             string                           the name of the current section. either name of the course, administration, my start page, etc.
+ * page_title                string                           the title of the current page.
+ * path                      array(array('url', 'title'))     the path to the current page.
+ * back_to_page              array('url', 'title')            the link back to the part of the current page, if needed.
+ * current_top_level_page    string                           full url to the current top level page in "top_leve_pages"
+ * current_sub_level_page    string                           full url to the current sub level page in the "sub_level_pages"
+ * sub_level_pages           array(array('url', 'title'))     the sub level pages.
+ * is_mobile_device          true or false                    the request is from a mobile device or a desktop device
+ * mobile_device_type        One of the constants: IPOD_DEVICE, BLACKBERRY_DEVICE, ANDROID_DEVICE, UNKNOWN_DEVICE (@see include/lib/constants.inc.php)
+ */
+
+// will have to be moved to the header.inc.php
+global $system_courses, $_custom_css, $db, $_base_path, $contentManager;
+
+// 1. any click on the page closes the content menu but the link "content_link" itself
+// 2. the click on link "content_link" opens the content menu
+
+
+require ('TeraWurflRemoteClient.php');
+$wurflObj = new TeraWurflRemoteClient('http://wurfl.thesedays.com/webservice.php');
+$capabilities = array("product_info");
+$data_format = TeraWurflRemoteClient::$FORMAT_JSON;
+$wurflObj->getCapabilitiesFromAgent(null, $capabilities, $data_format);
+
+// open/close content menu
+$this->onload .= "
+jQuery('#content_link').click(function(e) {
+  e.stopPropagation();
+  
+  jQuery('#content').slideToggle(0);
+  jQuery('#content_link').toggleClass('content_link_tablet_highlight');
+  jQuery('#content_link').toggleClass('triangle-isosceles'); 
+  jQuery('#content_link').toggleClass('top'); 
+  jQuery('#content_link').toggleClass('right');    
+  ";
+$this->onload .= "});
+";
+
+//open/close subnavlist in smartphones    
+
+$this->onload .= "
+jQuery('#subnavlist-link').click(function(e) {
+  e.stopPropagation();
+  
+  jQuery('#subnavlist').slideToggle();
+  jQuery('#subnavlist-link').toggleClass('content-closed');
+  jQuery('#subnavlist-link').toggleClass('subnavcontain-active');
+  jQuery('.subnavcontain').toggleClass('subnavcontain3');     
+  ";
+$this->onload .= "});
+";
+// open/close content menu - smartphones 
+$this->onload .= "
+jQuery('#content_link_phone').click(function(e) {
+  e.stopPropagation();
+  
+  jQuery('#content').slideToggle();
+  jQuery('#content_link_phone').toggleClass('topnavlist-link-highlight');
+  jQuery('#content_link_phone').toggleClass('content-closed'); 
+  jQuery('.subnavcontain').toggleClass('subnavcontain3'); 
+  ";
+$this->onload .= "});
+";
+
+// open/close header navigational menu for smartphones
+// jQuery('#topnavlist-link').toggleClass('topnavlist-link-highlight');
+$this->onload .= "
+jQuery(document).click(function () {
+jQuery('#topnavlist').slideUp(600);}); 
+jQuery('.topnavlist-link').click(function(e) {
+  e.stopPropagation();
+  jQuery('#topnavlist').slideToggle();
+ jQuery('#topnavlist-link').toggleClass('.topnavlist-link-highlight');
+});
+";
+
+// open/close header navigational menu for tablets
+
+$this->onload .= "
+jQuery(document).click(function () {
+jQuery('#navigation-column').slideUp(200);}); 
+jQuery('.topnavlist-link').click(function(e) {
+  e.stopPropagation();
+  jQuery('#navigation-column').slideToggle(0);
+    jQuery('#topnavlist-link').toggleClass('topnavlist-link-highlight');
+    jQuery('#topnavlist-link').toggleClass('triangle-isosceles');
+    jQuery('#topnavlist-link').toggleClass('top');
+});
+";
+
+//jQuery for Gmail dock-style "more" button that makes the subnavlist expand for more options
+$this->onload .= "
+
+jQuery('.more-button').toggle(function(e) {
+  jQuery('.subnavlist-more').show();
+  jQuery('#switch').attr('src','images/hidemenu.gif' );
+  jQuery('#switch').attr('title', 'less menu items'); 
+  jQuery('#switch').attr('alt', 'less menu items');
+},function(){
+  jQuery('.subnavlist-more').hide(); 
+  jQuery('#switch').attr('src', 'images/showmenu.gif' );
+  jQuery('#switch').attr('title', 'more menu items'); 
+  jQuery('#switch').attr('alt', 'more menu items');
+});
+";
+
+//hide and show results        on Browse Courses page
+
+$this->onload .= "
+jQuery('#results-hide-show-link').click(function(e) {
+  e.stopPropagation();
+    jQuery('#results-display').slideToggle();
+    jQuery(this).toggleClass('content-closed');
+    jQuery(this).preventDefault();
+  ";
+$this->onload .= "});
+";
+
+//hide and show results        elsewhere (uses classes) 
+$this->onload .= "
+jQuery('.results-hide-show-link').click(function(e) {
+  e.stopPropagation();
+       jQuery(this).parent().next('.results-display').slideToggle(); 
+         jQuery(this).toggleClass('content-closed');
+  ";
+$this->onload .= "});
+";
+       
+
+// Hide the addressbar
+$this->onload .= "
+setTimeout(function() { window.scrollTo(0, 1) }, 100);
+";
+
+
+
+?>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="<?php echo $this->lang_code; ?>"> 
+
+<head>
+       <title><?php echo SITE_NAME; ?> : <?php echo $this->page_title; ?></title>
+       <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->lang_charset; ?>" />
+       <meta name="Generator" content="ATutor - Copyright 2005 by http://atutor.ca" />
+       <base href="<?php echo $this->content_base_href; ?>" />
+       <link rel="shortcut icon" href="<?php echo $this->base_path; ?>favicon.ico" type="image/x-icon" /> 
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/print.css" type="text/css" media="print" />
+       <!-- mobile fss -->     
+       <link rel="stylesheet" href="<?php echo $this->base_path; ?>jscripts/infusion/framework/fss/css/fss-mobile-layout.css" type="text/css"/>
+       <link rel="stylesheet" href="<?php echo $this->base_path; ?>jscripts/infusion/framework/fss/css/fss-mobile-theme-iphone.css" type="text/css"/>  
+       
+<?php if ($this->is_mobile_device == true): ?>
+       <?php if ($this->mobile_device_type == ANDROID_DEVICE): ?>
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/mobile.css" type="text/css"/>
+       <meta name="viewport" content="user-scalable=no, width=device-width" />
+       <?php endif; ?>
+       <?php if ($this->mobile_device_type == IPOD_DEVICE || $this->mobile_device_type == IPHONE_DEVICE): ?>
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/mobile.css" type="text/css"/>
+       <meta name="viewport" content="user-scalable=no, width=device-width" />
+       <?php endif; ?>
+       <!-- Armin 25.08.2010: Detect BLACKBERRY_DEVICE and use blackberry.css-->
+       <?php if ($this->mobile_device_type == BLACKBERRY_DEVICE): ?>
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/blackberry.css" type="text/css"/>
+       <meta name="viewport" content="user-scalable=no, width=device-width" />
+       <?php endif; ?>
+       <?php if ($this->mobile_device_type == IPAD_DEVICE): ?>
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/tablet.css" type="text/css"/>
+       <meta name="viewport" content="width=768px, minimum-scale=1.0, maximum-scale=1.0" />
+       <?php endif; ?>
+<?php endif; ?>
+
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/forms.css" type="text/css" />
+       <!-- Fluid Infusion mobile fss extension... Remove when it is committed to Mobile FSS.  
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/moz.css" type="text/css" />-->      
+       <!-- Fluid Infusion -->
+       <script src="<?php echo $this->base_path; ?>jscripts/infusion/InfusionAll.js" type="text/javascript"></script>
+       <script language="javascript" type="text/javascript">
+
+       //<!--
+       jQuery.noConflict();
+       //-->
+       </script>
+       <script src="<?php echo $this->base_path; ?>jscripts/ATutor.js" type="text/javascript"></script>   
+
+       
+<?php echo $this->rtl_css; ?>
+<?php if (isset($this->course_id) && $system_courses[$this->course_id]['rss']): ?>
+       <link rel="alternate" type="application/rss+xml" title="<?php echo SITE_NAME; ?> - RSS 2.0" href="<?php echo $this->base_href; ?>get_rss.php?<?php echo $this->course_id; ?>-2" />
+       <link rel="alternate" type="application/rss+xml" title="<?php echo SITE_NAME; ?> - RSS 1.0" href="<?php echo $this->base_href; ?>get_rss.php?<?php echo $this->course_id; ?>-1" />
+<?php endif; ?>
+
+
+<?php echo $this->custom_css; ?>
+</head>
+
+
+<?php if ($this->mobile_device_type != IPAD_DEVICE): ?><!--  smartphone theme only -->
+
+<body onload="<?php echo $this->onload; ?>" class="fl-theme-iphone ui-mobile-viewport">
+
+<div id="wrapper">
+<div id="main">
+       <div id="header">
+
+               <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#content">
+               <img src="<?php echo $this->base_path; ?>images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AT('goto_content'); ?> ALT+c" /></a>          
+
+               <div id="header-section-title">
+                       <!-- <?php if (isset($_SESSION['valid_user']) && $_SESSION['valid_user']): 
+                                       echo '<div id="site-name">'.stripslashes(SITE_NAME).'</div>'; 
+                               endif; ?> --> 
+                       <h1 id="section-title"><?php echo $this->section_title; ?>
+                               <?php if ((isset($this->course_id) && $this->course_id > 0) && ($_SESSION['enroll'] == AT_ENROLL_NO)) : ?> 
+                               <!-- <small><a href="<?php echo $this->base_path; ?>enroll.php?course=<?php echo $this->course_id; ?>"><?php echo _AT('enroll_me'); ?></a></small>-->
+                               <?php endif; ?>
+                               </h1>
+               </div>
+       </div> <!--  END HEADER -->
+
+
+       <div id="contentwrapper">
+       <div id="navigation-contentwrapper">
+       <div id="navigation-bar">
+
+                       <?php if ($this->current_sub_level_page): ?>
+                       <div id="topnavlistcontainer" role="menu" aria-live="assertive" class="topnavlistcontainer" >
+                       <a class="navigation-bar-button topnavlist-link" id="topnavlist-link" href="javascript:void(0);" tabindex="1"><?php echo _AT('navigation'); ?></a>
+                               <ul id="topnavlist"  class="fl-list-menu" role="menu">
+                                       <?php $accesscounter = 0; //initialize ?>
+                                       <?php foreach ($this->top_level_pages as $page): ?>
+                                               <?php ++$accesscounter; $accesscounter = ($accesscounter == 10 ? 0 : $accesscounter); ?>
+                                               <?php $accesskey_text = ($accesscounter < 10 ? 'accesskey="'.$accesscounter.'"' : ''); ?>
+                                               <?php $accesskey_title = ($accesscounter < 10 ? ' Alt+'.$accesscounter : ''); ?>
+                                               <?php if ($page['url'] == $this->current_top_level_page): ?>
+                                                       <li role="menuitem"><span class="arrow-highlight"><a  href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title'];?>"><?php echo $page['title']; ?></a></span></li>
+                                               <?php else: ?>
+                                                       <li role="menuitem"><span class="arrow-highlight"><a  href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title']; ?>"><?php echo $page['title']; ?></a></span></li>
+                                               <?php endif; ?>
+                               
+                                               <?php $accesscounter = ($accesscounter == 0 ? 11 : $accesscounter); ?>
+                                       
+                                       <?php endforeach; ?>
+                                       <?php if(!$this->just_social): ?>
+                                       <li role="menuitem"><span class="arrow-highlight"><a href="<?php echo $this->base_path; ?>search.php"><?php echo _AT('search'); ?></a></span></li>
+                                       <?php endif; ?> 
+                               </ul>
+                       </div>
+                       <?php endif; ?>
+               </div>
+
+                               
+
+
+       <ul class="home-guide fl-tabs" id="home-guide" role="menu">
+       <!--  CHECK TO SEE IF USER IS A STUDENT -->
+       <?php if($_SESSION['is_admin'] == 0 && $_SESSION['privileges'] == 0 ):?>
+               <li role="menuitem"><a  href="<?php echo $this->base_path; ?>users/index.php"><?php echo _AT("home"); ?></a></li> 
+       <?php endif;?>          
+       <!--  CHECK TO SEE IF USER IS AN ADMINISTRATOR -->
+       <?php //if($_SESSION['is_admin'] == 0 && $_SESSION['privileges'] == 1):
+               if($_SESSION['is_admin'] == 0 && $_SESSION['privileges'] == AT_ADMIN_PRIV_ADMIN):?>
+               <li role="menuitem"><a href="<?php echo $this->base_path; ?>admin/index.php"><?php echo _AT("home"); ?></a></li> 
+       <?php endif;?>
+       <!--  CHECK TO SEE IF USER IS AN INSTRUCTOR -->
+       <?php if($_SESSION['is_admin'] == 1): ?>
+               <li role="menuitem"><a href="<?php echo $this->base_path; ?>users/index.php"><?php echo _AT("home"); ?></a></li> 
+       <?php endif;?>
+       
+       <?php if (isset($this->guide) && isset($_SESSION["course_id"]) && $this->guide && ($_SESSION["prefs"]["PREF_SHOW_GUIDE"] || $_SESSION["course_id"] == "-1")) : ?>
+                       <li role="menuitem">
+                       <div id="guide_box">
+                                       <!--    <a href="<?php echo $this->guide; ?>" id="guide" onclick="ATutor.poptastic('<?php echo $this->guide; ?>'); return false;" target="_new"><img src="<?php echo $this->img; ?>guide-icon.png" width="30" height="30" title="guide: <?php echo $this->page_title; ?>"alt="guide: <?php echo $this->page_title; ?>"></img></a> -->
+               
+                                 <a href="<?php echo $this->guide; ?>" id="guide" onclick="ATutor.poptastic('<?php echo $this->guide; ?>'); return false;" target="_new"><?php echo _AT("guide"); ?></a> 
+                       </div>
+                       </li>
+                       <?php endif; ?>
+               </ul>
+       </div><!--  END navigation-contentwrapper -->
+       
+
+               <div id="inner-contentwrapper" class="fl-container" >
+
+       
+                       
+               <!-- the sub navigation -->
+               <div id="subnavbacktopage">
+               <?php if (count($this->sub_level_pages) > 0): ?>
+                       
+                       <div id="subnavlistcontainer">
+                               
+                               <!-- id="subnavlist" -->
+                       <div class="subnavcontain-contain" role="menu" aria-live="assertive">   
+                               <div class="subnavcontain">
+                                       <div class="rectangle">
+                                               <?php $num_pages = count($this->sub_level_pages); ?>    
+                                                               <?php for ($i=0; $i<$num_pages; $i++): ?>       
+                                                                       <?php if($i==0): ?>
+                               
+                                                                       <a id="subnavlist-link" class="content-expand" href="javascript:void(0);"> Topics in <?php echo $this->sub_level_pages[$i]['title']; ?></a>
+                                                                       <?php endif; ?>
+                                                               <?php endfor;?>
+                                       </div>
+                               </div>
+                                       <ul id="subnavlist" class="fl-list-menu">
+                                       <?php $num_pages = count($this->sub_level_pages); ?>    
+                                       <?php for ($i=0; $i<$num_pages; $i++): ?>                               
+                                               <?php if ($this->sub_level_pages[$i]['url'] == $this->current_sub_level_page): ?>
+                                                       <li><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li> 
+                                               <?php else: ?>
+                                                       <li><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                               <?php endif; ?>
+                                       <?php if ($i < $num_pages-1): 
+                                               echo " ";?>
+                                       <?php endif; ?>
+                                       <?php endfor; ?>
+                                       </ul>
+                               </div>
+                       </div>  
+               <?php endif; ?>
+       </div> <!--end subnavbacktopage-->      
+
+       <div id="contentcolumn">        
+               
+
+               <!--the page title-->
+               <div id="page-title-back-to-page">
+               <a name="content" title="<?php echo _AT('content'); ?>"></a>
+               <h2 class="page-title"><?php echo $this->page_title; ?></h2>
+                       <div id="back-to-page">
+                               <?php if (isset($this->back_to_page)): ?>
+                                       <a href="<?php echo $this->back_to_page['url']; ?>">
+                                       <img border="0" width="10" height="11" alt="<?php echo _AT('back_to').' '.$this->back_to_page['title']; ?>" src="<?php echo $this->base_href; ?>images/arrowicon.gif" style="float:left;"/></a>&nbsp;
+                               <?php endif; ?>
+               </div>          
+               </div><!--  end page-title-back-to-page -->
+       
+               <?php global $msg; $msg->printAll(); $_base_href;?>
+                       <div id="content-sequence-links">
+                       <!-- ENSURE "content_link" DOESN'T APPEAR IF NOT LOGGED IN -->
+               <?php if (isset($this->course_id) && $this->course_id > 0): ?>
+       
+               <?php endif; ?>
+       
+       
+       <?php if(isset($_SESSION['course_id']) && $_SESSION['course_id'] > 0): ?> 
+               
+               <div class="subnavcontain-contain" role="menu" aria-live="assertive">   
+                       <div class="subnavcontain">
+                               <div class="rectangle">
+                               <a id="content_link_phone"  class="content-expand" href="javascript:void(0);" >View Course Content</a> 
+                               <!-- <a href="#">content</a> -->
+                               </div>
+                       </div>
+                                       
+               <div id="content">
+                       <?php $contentManager->printMainMenu(); ?>
+                               <script language="javascript" type="text/javascript"></script>
+               </div>
+
+       </div>
+
+
+               
+                       <?php if (isset($this->course_id) && $this->course_id > 0): ?>
+                       
+                       <div class="subnavcontain2">
+                       <ul class="sequence-links">
+                               <?php if ($_SESSION["prefs"]["PREF_SHOW_NEXT_PREVIOUS_BUTTONS"]) { ?>
+                                       <?php if ($this->sequence_links['resume']): ?>
+                                               
+                                               <li class="rectangle2">
+                                                       <a href="<?php echo $this->sequence_links['resume']['url']; ?>" class="previous-next resume" title="<?php echo _AT('resume').': '.$this->sequence_links['resume']['title']; ?>"><?php echo _AT('resume'); ?></a>
+                                               </li>
+                                               
+                                       <?php else:
+                                               if ($this->sequence_links['previous']): ?>
+                                       
+                                               <li class="rectangle2 arrow back">
+                                                       <a  href="<?php echo $this->sequence_links['previous']['url']; ?>" class="arrow back" title="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?>"> <?php echo "Previous"; ?> </a>
+                                               </li>
+                                               
+                                       <?php endif;
+                                               if ($this->sequence_links['next']): ?>
+                                               
+                                               <li class=" rectangle2 arrow forward">
+                                                       <a  href="<?php echo $this->sequence_links['next']['url']; ?>" class=""  title="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?>"> <?php echo "Next"; ?></a>
+                                               </li>
+                                               
+                                       <?php endif; ?>
+                               <?php endif; ?>
+                       <?php } ?>
+                               &nbsp;
+                               </div>
+                       </ul>  
+               <?php endif; ?>
+                       
+                       
+       </div>
+       <?php endif; ?> 
+
+
+       
+               <!-- the sub navigation -->
+<?php endif; ?>
+
+
+
+<!--  end header template for iphone, android, blackberry -->
+<?php if ($this->mobile_device_type == IPAD_DEVICE): ?><!-- start header template for ipad/tablets -->
+<body onload="<?php echo $this->onload; ?>" class="fl-theme-iphone ui-mobile-viewport">
+
+<div id="wrapper">
+<div id="main">
+       
+       <div id="header" role="header">
+       
+       <div class="bypass">
+               <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#page-title" accesskey="c">
+               <img src="<?php echo $this->base_path; ?>images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AT('goto_content'); ?> ALT+c" /></a>          
+</div> 
+       
+       
+       <div id="header-section-title">
+                       <h1 id="section-title"><?php echo $this->section_title; ?></h1>
+               </div>
+
+       
+       <div id="navigation-contentwrapper" role="menubar" >
+       
+                       <?php if ($this->current_sub_level_page): ?>
+                       <div id="topnavlistcontainer" role="navigation" aria-live="assertive" class="topnavlistcontainer fl-container" >
+                       <a class="navigation-bar-button topnavlist-link" id="topnavlist-link" href="javascript:void(0);" tabindex="1"><?php echo _AT('navigation'); ?></a>
+                       
+                               <div id="navigation-column">
+                               <?php if ($this->current_sub_level_page): ?>
+                               <ul id="topnavlist-tablet"  class="fl-list-menu" role="menu">
+                                       <?php $accesscounter = 0; //initialize ?>
+                                       <?php foreach ($this->top_level_pages as $page): ?>
+                                               <?php ++$accesscounter; $accesscounter = ($accesscounter == 10 ? 0 : $accesscounter); ?>
+                                               <?php $accesskey_text = ($accesscounter < 10 ? 'accesskey="'.$accesscounter.'"' : ''); ?>
+                                               <?php $accesskey_title = ($accesscounter < 10 ? ' Alt+'.$accesscounter : ''); ?>
+                                               <?php if ($page['url'] == $this->current_top_level_page): ?>
+                                                       <!-- note bug http://issues.fluidproject.org/browse/FLUID-4313 makes class "flc-screenNavigator-backButton fl-link-hilight" not work -->
+                                                       <li role="menuitem"><a  href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> class="flc-screenNavigator-backButton fl-link-hilight" title="<?php echo $page['title'];?>"><?php echo $page['title']; ?></a>  </li>
+                                               <?php else: ?>
+                                                       <li role="menuitem"><a  href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title']; ?>"><?php echo $page['title']; ?></a></li>
+                                               <?php endif; ?>
+                               
+                                               <?php $accesscounter = ($accesscounter == 0 ? 11 : $accesscounter); ?>
+                                       
+                                       <?php endforeach; ?>
+                                        
+                               </ul>
+                               <?php endif; ?>
+                       </div>
+                       </div>
+                       <?php endif; ?> 
+               
+       <ul class="home-guide fl-tabs" id="home-guide" role="menu">
+       <!--  CHECK TO SEE IF USER IS A STUDENT -->
+       <?php if($_SESSION['is_admin'] == 0 && $_SESSION['privileges'] == 0 ):?>
+               <li role="menuitem"><a href="<?php echo $this->base_path; ?>users/index.php"><?php echo _AT("home"); ?></a></li> 
+       <?php endif;?>          
+       <!--  CHECK TO SEE IF USER IS AN ADMINISTRATOR -->
+       <?php //if($_SESSION['is_admin'] == 0 && $_SESSION['privileges'] == 1):
+               if($_SESSION['is_admin'] == 0 && $_SESSION['privileges'] == AT_ADMIN_PRIV_ADMIN):?>
+               <li role="menuitem"><a href="<?php echo $this->base_path; ?>admin/index.php"><?php echo _AT("home"); ?></a></li> 
+       <?php endif;?>
+       <!--  CHECK TO SEE IF USER IS AN INSTRUCTOR -->
+       <?php if($_SESSION['is_admin'] == 1): ?>
+               <li role="menuitem"><a href="<?php echo $this->base_path; ?>users/index.php"><?php echo _AT("home"); ?></a></li> 
+       <?php endif;?>
+       
+       <?php if (isset($this->guide) && isset($_SESSION["course_id"]) && $this->guide && ($_SESSION["prefs"]["PREF_SHOW_GUIDE"] || $_SESSION["course_id"] == "-1")) : ?>
+                       <li>
+                       <div id="guide_box">
+                                       <!--    <a href="<?php echo $this->guide; ?>" id="guide" onclick="ATutor.poptastic('<?php echo $this->guide; ?>'); return false;" target="_new"><img src="<?php echo $this->img; ?>guide-icon.png" width="30" height="30" title="guide: <?php echo $this->page_title; ?>"alt="guide: <?php echo $this->page_title; ?>"></img></a> -->
+               
+                                 <a href="<?php echo $this->guide; ?>" id="guide" onclick="ATutor.poptastic('<?php echo $this->guide; ?>'); return false;" target="_new"><?php echo _AT("guide"); ?></a> 
+                       </div>
+                       </li>
+                       <?php endif; ?>
+               </ul>
+       
+       <?php if (isset($this->course_id) && $this->course_id > 0): ?>
+                       
+<div id="sequence-links-course-navigation">    
+               <ul class="sequence-links fl-tabs" id="sequence-links" >
+                       <?php if ($_SESSION["prefs"]["PREF_SHOW_NEXT_PREVIOUS_BUTTONS"]) { ?>
+                               <?php if ($this->sequence_links['resume']): ?>
+                                               <li >
+                                               <a href="<?php echo $this->sequence_links['resume']['url']; ?>" class="previous-next" title="<?php echo _AT('resume').': '.$this->sequence_links['resume']['title']; ?>"><?php echo _AT('resume'); ?></a>
+                                               </li>
+                               <?php else:
+                                       if ($this->sequence_links['previous']): ?>
+                                               <li  class="arrow back"><a  href="<?php echo $this->sequence_links['previous']['url']; ?>" class="arrow back" title="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?>"> <?php echo "Previous"; ?> </a>
+                                               </li>
+                                       <?php endif;
+                                       if ($this->sequence_links['next']): ?>
+                                               <li class="arrow forward">
+                                               <a href="<?php echo $this->sequence_links['next']['url']; ?>" class=""  title="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?>"> <?php echo "Next"; ?></a>
+                                               </li>
+                                       <?php endif; ?>
+                               <?php endif; ?>
+                       <?php } ?>
+                               &nbsp;
+                       </ul> <!-- end sequence-links -->
+               <?php endif; ?>
+               
+               <?php if(isset($_SESSION['course_id']) && $_SESSION['course_id'] > 0): ?>       
+               <div id="course-level-navigation">
+               
+       
+                       
+                       <div id="content-link-container" role="navigation" aria-live="assertive" class="flc-screenNavigator-navbar ">
+                               <a id="content_link" class="content_link_tablet content_link"  href="javascript:void(0);"><?php echo "Content";//_AT("content_navigation"); ?></a>      
+                       </div>  
+                       </div><!-- course-level navigation -->                          
+                               <div id="content">
+                                       <?php $contentManager->printMainMenu(); ?>
+                                       <script language="javascript" type="text/javascript"></script>
+                               </div>
+               
+               </div> <!-- end sequence-links-course-navigation -->
+               <?php endif;?>
+       
+       
+               
+
+       
+
+       
+       </div>
+       </div> <!--  END HEADER -->
+
+<?php if (count($this->sub_level_pages) > 0): ?>
+                               <div id="subnavlistcontainer" role="menu" aria-live="assertive" > 
+                               
+                                       <!-- Markup for a subnavlist styled like a Gmail dock. Clean up this code for redundancy but it works for now. -->
+                                       <!-- background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#B6C0C6), to(#F8FAFB));  -->
+                                       <ul id="subnavlist" style="text-decoration: none; text-align: center; border-bottom: 1px #B6C0C6 solid; background: #B6C0C6; ">
+                                       <?php $num_pages = count($this->sub_level_pages); ?>
+                                               <?php for ($i=0; $i<$num_pages; $i++): ?>       
+                                                       
+                                                       <?php if($num_pages <= 5): ?>
+                                                               <?php if($this->sub_level_pages[$i][url] == $this->current_sub_level_page): ?>
+                                                               <li role="menuitem" class="selected" style="font-size: 14px; padding-left: .313em; padding-right: .313em;"><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                                               <?php else: ?> 
+                                                               <li role="menuitem" style="font-size: 14px; padding-left: .313em; padding-right: .313em"><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                                               <?php endif; ?> 
+                                                       <?php endif; ?>
+                                                       <?php if($num_pages > 5): ?>
+                                                               <?php if($i <= 5):?>
+                                                                       <?php if($this->sub_level_pages[$i][url] == $this->current_sub_level_page): ?>
+                                                                               <li role="menuitem" class="selected" style="font-size: 14px; padding-left: .313em; padding-right: .313em;"><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                                                       <?php else: ?> 
+                                                                               <li role="menuitem" style="font-size: 14px; padding-left: .313em; padding-right: .313em"><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                                                       <?php endif; ?> 
+                                                               <?php endif;?>
+                                                               <?php if($i== 6): ?>
+                                                                       <li role="menuitem" class="more-button-surround" style="font-size: 14px; padding-left: .313em; padding-right: .313em; position: relative; top: .313em;"><a class="more-button" href="javascript:void(0);" tabindex="1"><img id="switch" border="" width="20" height="20" alt="More menu items" title="More menu items" src="<?php echo $this->base_href; ?>images/showmenu.gif"/></a></li>
+                                                                       <li role="menuitem">
+                                                                       <ul class="subnavlist-more">
+                                                                       <li role="menuitem" class="more-item" style="font-size: 14px; list-style-type: bullet"><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                                                       
+                                                               <?php endif;?>
+                                                               <?php if($i > 6 && $i < $num_pages): ?>
+                                                                       <li role="menuitem" style="font-size: 14px; list-style-type: bullet"><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                                               <?php endif;?>
+                                                               <?php if($i==$num_pages): ?>
+                                                                       <li role="menuitem" style="font-size: 14px; list-style-type: bullet"><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo $this->sub_level_pages[$i]['title']; ?></a></li>
+                                                                       </ul>
+                                                                       </li>
+                                                               <?php endif; ?>
+                                                       <?php endif; ?>
+                                               
+                                               
+                                                       
+                                       <?php if ($i < $num_pages-1): 
+                                               echo " ";?>
+                                       <?php endif; ?>
+                                       <?php endfor; ?>
+                                       </ul>
+
+                               </div> <!--  end subnavlistcontainer -->                                
+               <?php endif; ?> 
+       
+       <?php global $msg; $msg->printAll(); $_base_href;?>
+       
+       
+       <!-- </div>end #main -->
+               <div id="contentwrapper" class="fl-container" >
+               <a name="page-title" id="page-title"></a>
+               <h2 class="page-title" ><?php echo $this->page_title; ?></h2>
+               <div id="subnavbacktopage" >
+                                       <?php if (isset($this->back_to_page)): ?>
+                                               <a href="<?php echo $this->back_to_page['url']; ?>">
+                                               <img border="0" width="10" height="11" alt="<?php echo _AT('back_to').' '.$this->back_to_page['title']; ?>" src="<?php echo $this->base_href; ?>images/arrowicon.gif" style="float:left;"/></a>&nbsp;
+                                       <?php endif; ?>
+                               </div>
+       
+       <!--  check if a user is logged-into a course and if so display breadcrumbs.  -->       
+               <?php if(isset($_SESSION['course_id']) && $_SESSION['course_id'] > 0): ?>               
+               <?php if (isset($_SESSION["prefs"]["PREF_SHOW_BREAD_CRUMBS"]) && $_SESSION["prefs"]["PREF_SHOW_BREAD_CRUMBS"]) { ?>
+                
+                       <div class="crumbcontainer">
+                         <div id="breadcrumbs">
+                         <?php foreach ($this->path as $page): ?>
+                                 <a href="<?php echo $page['url']; ?>"><?php echo htmlspecialchars($page['title'], ENT_COMPAT, "UTF-8"); ?></a> > 
+                         <?php endforeach; ?> <?php echo $this->page_title; ?>
+                         </div>
+                       </div>
+         <?php } ?>
+        <?php endif; ?> 
+                               
+<?php endif; ?><!--  end header template for ipad/tablets -->
diff --git a/docs/themes/simplified-desktop/index.tmpl.php b/docs/themes/simplified-desktop/index.tmpl.php
new file mode 100644 (file)
index 0000000..4be4541
--- /dev/null
@@ -0,0 +1,175 @@
+<?php
+/************************************************************************/
+/* ATutor                                                               */
+/************************************************************************/
+/* Copyright (c) 2002 - 2009                                            */
+/* Adaptive Technology Resource Centre / University of Toronto          */
+/*                                                                      */
+/* This program is free software. You can redistribute it and/or        */
+/* modify it under the terms of the GNU General Public License          */
+/* as published by the Free Software Foundation.                        */
+/************************************************************************/
+
+if (!defined('AT_INCLUDE_PATH')) { exit; }
+global $_base_path;
+
+if ($this->banner): ?>
+
+<?php echo $this->banner; ?><br /><?php endif;
+/** Icon View removed for mobile.
+// positioning switch of home ONLY FOR INSTRUCTORS. two icons will be used for identification to distinguish the two different views of the home.
+if(authenticate(AT_PRIV_ADMIN,AT_PRIV_RETURN) && count($this->home_links) > 0){
+       if($this->view_mode==0)
+               echo '<a href ="'.AT_BASE_HREF.'switch_view.php?swid='.$this->view_mode.'" ><img src="'.AT_BASE_HREF.'images/detail_view.png" title ="'._AT('detail_view').'"  alt ="'._AT('detail_view').'" /></a><br />';
+       else
+               echo '<a href ="'.AT_BASE_HREF.'switch_view.php?swid='.$this->view_mode.'" ><img src="'.AT_BASE_HREF.'images/icon_view.png"  title ="'._AT('icon_view').'" alt ="'._AT('icon_view').'" /></a><br        />';
+}      
+
+
+// Icon View, $this->view_mode = 0. course will be made changes to the icons to restore the classic icons.
+if($this->view_mode==0){
+?>
+       <div id="home-links-container">
+               <ul id="home-links">
+               <?php if (is_array($this->home_links)): ?>
+               <?php foreach ($this->home_links as $link): ?>
+                       <li><a href="<?php echo $link['url']; ?>"><img src="<?php echo $link['img']; ?>" alt="" class="img-size-home" border="0" /><?php echo $link['title']; ?></a></li>
+               <?php endforeach; ?>
+               <?php endif; ?>
+               </ul>
+       </div> <?php
+} else { ?>
+       
+       <div id="details_view" class="fluid-horizontal-order">
+<?php                          // create table container divided into two columns for the placement of modules
+       if(authenticate(AT_PRIV_ADMIN,AT_PRIV_RETURN) && is_array($this->home_links)){          // display enabled course tool
+               foreach ($this->home_links as $link){ 
+?>
+               <div class="home_box" id="<?php echo str_replace('/', '-', substr($link['url'], strlen($_base_path))); ?>"> 
+<?php print_sublinks($link);                                           // display each module ?>
+               </div>
+<?php
+               } // end of foreach 
+       }  // end of inner if 
+       else {
+               if (is_array($this->home_links)) {
+                       foreach ($this->home_links as $link){?>
+               <div class="home_box">
+<?php print_sublinks($link); ?>
+               </div>
+<?php                  }  // end of foreach
+               }// end of inner inner if
+       } ?>
+       </div> 
+<?php
+} // end of if
+*/
+
+if ($this->announcements): ?>
+<h2 class="page-title"><?php echo _AT('announcements'); ?></h2>
+       <?php foreach ($this->announcements as $item): ?>
+               <div class="news">
+                       <h3><?php echo $item['title']; ?></h3>
+                       <span class="date"><?php echo $item['date'] .' '. _AT('by').' ' . $item['author']; ?></span></p> <?php echo $item['body']; ?></span>
+                       
+               </div>
+       <?php endforeach; ?>
+
+       <?php if ($this->num_pages > 1): ?>
+               <?php echo _AT('page'); ?>: | 
+               <?php for ($i=1; $i<=$this->num_pages; $i++): ?>
+                       <?php if ($i == $this->current_page): ?>
+                               <strong><?php echo $i; ?></strong>
+                       <?php else: ?>
+                               <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i; ?>"><?php echo $i; ?></a>
+                       <?php endif; ?>
+                        | 
+               <?php endfor; ?>
+       <?php endif; ?>
+<?php endif;
+
+// Generate HTML for modules at "detail view"
+function print_sublinks($link){
+       global $_base_path;
+?>
+<div class="details_ol">
+       <div class="details_or">
+               <div class="outside_box">
+<?php if (authenticate(AT_PRIV_ADMIN,AT_PRIV_RETURN)) {?>
+                       <div class="buttonbox">
+                       <a href="#" onclick="javascript: remove_module('<?php echo htmlentities(substr($link['url'], strlen($_base_path))); ?>'); return false;"><img src="<?php echo AT_BASE_HREF; ?>images/x.gif" border="0" alt="<?php echo _AT('close'); ?>"/></a>
+                       </div>
+<?php }?>
+                       <img src="<?php echo $link['img']; ?>" alt="" border="0" height="45" width="45"/>
+                       <span class="home-title"><a href="<?php echo $link['url']; ?>"><?php echo $link['title']; ?></a></span>
+                       <div class="inside_box">
+
+<?php
+       // if $link['sub_file'] is defined, print the text array returned from sub_file, otherwise, print the text defined in $link['text']
+       if($link['sub_file']!=""){
+               $array = require(AT_INCLUDE_PATH.'../'.$link['sub_file']);
+               if(!is_array($array)){ 
+?>
+                               <div class="details-text">
+                               <i><?php echo _AT('none_found'); ?></i>
+                               </div>
+<?php } else { ?>
+                               <div class="details-text">
+<?php  foreach($array as $sublink){ ?>
+                                       <img src="<?php echo $link['icon']; ?>" border="0" alt=""/> 
+<?php          if ($sublink <> '') echo $sublink."<br />"; } ?>
+                               </div> 
+<?php 
+               } // end of else                                                
+       } else { ?>
+                               <div class="details_text"><?php echo $link['text']; ?></div>
+<?php } ?>
+                       </div>
+               </div>
+       </div>
+</div>
+
+
+
+
+<!--
+<div class="details_ol">
+       <div class="details_or">
+               <div class="outside_box">
+<?php if (authenticate(AT_PRIV_ADMIN,AT_PRIV_RETURN)) {?>
+                       <div class="buttonbox">
+                       <a href="#" onclick="javascript: remove_module('<?php echo htmlentities(substr($link['url'], strlen($_base_path))); ?>'); return false;"><img src="<?php echo AT_BASE_HREF; ?>images/x.gif" border="0" alt="<?php echo _AT('close'); ?>"/></a>
+                       </div>
+<?php }?>
+                       <img src="<?php echo $link['img']; ?>" alt="" border="0" height="51" width="51"/>
+                       <span class="home-title"><a href="<?php echo $link['url']; ?>"><?php echo $link['title']; ?></a></span>
+                       <div class="inside_box">
+                               <div class="details_il">&nbsp;</div>
+                               <div class="details_ir"></div>
+<?php
+       // if $link['sub_file'] is defined, print the text array returned from sub_file, otherwise, print the text defined in $link['text']
+       if($link['sub_file']!=""){
+               //$array = require(AT_INCLUDE_PATH.'../'.$link['sub_file']);
+               if(!is_array($array)){ 
+?>
+                               <div class="details-text">
+                               <i><?php echo _AT('none_found'); ?></i>
+                               </div>
+<?php } else { ?>
+                               <div class="details-text">
+<?php  foreach($array as $sublink){ ?>
+                                       <img src="<?php echo $link['icon']; ?>" border="0" alt="" /> 
+<?php          if ($sublink <> '') echo $sublink."<br />"; } ?>
+                               </div> 
+<?php 
+               } // end of else                                                
+       } else { ?>
+                               <div class="details_text"><?php echo $link['text']; ?></div>
+<?php } ?>
+                       </div>
+               </div>
+       </div>
+</div>
+-->
+<?php } ?>
+
diff --git a/docs/themes/simplified-desktop/instructor/announcements/add_news.tmpl.php b/docs/themes/simplified-desktop/instructor/announcements/add_news.tmpl.php
new file mode 100644 (file)
index 0000000..c682aa5
--- /dev/null
@@ -0,0 +1,42 @@
+       <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+       <input type="hidden" name="add_news" value="true" />
+       <input type="submit" name="submit" style="display:none;"/>
+       <div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_announcement'); ?></legend>
+               <div class="row">
+                       <label for="title"><?php echo _AT('title'); ?></label><br />
+                       <input type="text" name="title" size="40" id="title" value="<?php echo $_POST['title']; ?>" />
+               </div>
+
+               <div class="row">
+                       <?php echo _AT('formatting'); ?><br />
+                       <input type="radio" name="formatting" value="0" id="text" <?php if ($_POST['formatting'] == 0) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=true;" <?php if ($_POST['setvisual'] && !$_POST['settext']) { echo 'disabled="disabled"'; } ?> />
+
+                       <label for="text"><?php echo _AT('plain_text'); ?></label>
+                       <input type="radio" name="formatting" value="1" id="html" <?php if ($_POST['formatting'] == 1 || $_POST['setvisual']) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=false;"/>
+
+                       <label for="html"><?php echo _AT('html'); ?></label>
+                       <?php   //Button for enabling/disabling visual editor
+                               if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
+                                       echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
+                                       echo '<input type="submit" name="settext" value="'._AT('switch_text').'" class="button"/>';
+                               } else {
+                                       echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'"  ';
+                                       if ($_POST['formatting']==0) { echo 'disabled="disabled"'; }
+                                       echo ' class="button" />';
+                               }
+                       ?>
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body_text"><?php echo _AT('body'); ?></label><br />
+                       <textarea name="body_text" cols="40" rows="15" id="body_text"><?php echo $_POST['body_text']; ?></textarea>
+               </div>
+               
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s"  class="button"/>
+                       <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> "  class="button"/>
+               </div>
+       </fieldset>
+       </div>
+       </form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/announcements/edit_news.tmpl.php b/docs/themes/simplified-desktop/instructor/announcements/edit_news.tmpl.php
new file mode 100644 (file)
index 0000000..40f777f
--- /dev/null
@@ -0,0 +1,41 @@
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="edit_news" value="true">
+<input type="hidden" name="aid" value="<?php echo $this->row['news_id']; ?>">
+<input type="submit" name="submit" style="display:none;"/>
+<div class="input-form">
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" name="title" id="title" value="<?php echo AT_print($this->row['title'], 'input.text'); ?>" size="40">
+       </div>
+
+       <div class="row">
+               <?php echo _AT('formatting'); ?><br />
+               <input type="radio" name="formatting" value="0" id="text" <?php if ($_POST['formatting'] === 0) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=true;" <?php if ($_POST['setvisual'] && !$_POST['settext']) { echo 'disabled="disabled"'; } ?> /><label for="text"><?php echo _AT('plain_text'); ?></label>,
+
+               <input type="radio" name="formatting" value="1" id="html" <?php if ($_POST['formatting'] == 1 || $_POST['setvisual']) { echo 'checked="checked"'; } ?> onclick="javascript: document.form.setvisual.disabled=false;"  /> <label for="html"><?php echo _AT('html'); ?></label>
+               <?php
+                       if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
+                               echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
+                               echo '<input type="submit" name="settext"   value="'._AT('switch_text').'" />';
+                       } else {
+                               echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'" ';
+                               if ($_POST['formatting']==0) { echo 'disabled="disabled"'; }
+                               echo '/>';
+                       } 
+               ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body_text"><?php echo _AT('body'); ?></label><br />
+               <textarea name="body_text" cols="40" rows="15" id="body_text" wrap="wrap"><?php echo AT_print($this->row['body'], 'input.text'); ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
+       </div>
+
+
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/announcements/index.tmpl.php b/docs/themes/simplified-desktop/instructor/announcements/index.tmpl.php
new file mode 100644 (file)
index 0000000..277da3f
--- /dev/null
@@ -0,0 +1,45 @@
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="Title and date of instructor announcements" >
+<colgroup>
+       <?php if ($this->col == 'title'): ?>
+               <col />
+               <col class="sort" />
+               <col />
+       <?php elseif($this->col == 'date'): ?>
+               <col span="2" />
+               <col class="sort" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><a href="mods/_standard/announcements/index.php?<?php echo $this->orders[$this->order]; ?>=title"><?php echo _AT('title'); ?></a></th>
+       <th scope="col"><a href="mods/_standard/announcements/index.php?<?php echo $this->orders[$this->order]; ?>=date"><?php echo _AT('date'); ?></a></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="3"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" class="button"/> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"  class="button"/></td>
+</tr>
+</tfoot>
+<tbody>
+       <?php if ($row = mysql_fetch_assoc($this->result)): ?>
+               <?php do { ?>
+                       <tr onkeydown="document.form['n<?php echo $row['news_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['n<?php echo $row['news_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['news_id']; ?>">
+                       
+                               <td><input type="radio" name="aid" value="<?php echo $row['news_id']; ?>" id="n<?php echo $row['news_id']; ?>" /></td>
+                               
+                               <td><label for="n<?php echo $row['news_id']; ?>"><?php echo AT_print($row['title'], 'news.title'); ?></label></td>
+                               <td><?php echo AT_date(_AT('announcement_date_format'), $row['date'], AT_DATE_MYSQL_DATETIME); ?></td>
+                       </tr>
+               <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+       <?php else: ?>
+               <tr>
+                       <td colspan="3"><?php echo _AT('none_found'); ?></td>
+               </tr>
+       <?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/assignments/index_instructor.tmpl.php b/docs/themes/simplified-desktop/instructor/assignments/index_instructor.tmpl.php
new file mode 100644 (file)
index 0000000..1f14003
--- /dev/null
@@ -0,0 +1,79 @@
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<div class="table-surround">
+<table class="data">
+<colgroup>
+       <?php if ($this->sort == 'title'): ?>
+               <col />
+               <col class="sort" />
+               <col span="5" />
+       <?php elseif($this->sort == 'assign_to'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($this->sort == 'date_due'): ?>
+               <col span="3" />
+               <col class="sort" />
+               <col span="3" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th>&nbsp;</th>
+       <th scope="col"><a href="mods/_standard/assignments/index_instructor.php?sort=title<?php echo SEP; ?>order=<?php echo $orders[$order]; ?>"><?php echo _AT('title'); ?></a></th>
+       <th scope="col"><?php echo _AT('assigned_to'); ?></th>
+       <th scope="col"><a href="mods/_standard/assignments/index_instructor.php?sort=date_due<?php echo SEP; ?>order=<?php echo $orders[$order]; ?>"><?php echo _AT('due_date'); ?></a></th>
+</tr>
+</thead>
+<?php if (($this->result != 0) && ($row = mysql_fetch_assoc($this->result))) : ?>
+<tfoot>
+<tr>
+       <td colspan="4">
+               <input type="submit" name="submissions" value="<?php echo _AT('submissions'); ?>" class="button"/> 
+               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>"  class="button"/> 
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" class="button" />
+                                       
+       </td>
+</tr>
+</tfoot>
+<tbody>
+       <?php do { ?>
+               <tr onkeydown="document.form['a<?php echo $row['assignment_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['a<?php echo $row['assignment_id']; ?>'].checked = true; rowselect(this);" id="a_<?php echo $row['assignment_id']; ?>_0">
+               
+               <td><input type="radio" id="a<?php echo $row['assignment_id']; ?>" name="assignment" value="<?php echo $row['assignment_id']; ?>" 
+
+               <?php // set first item as checked if nothing selected
+               if (isset($_GET['assignment_id'])){
+                       if ($_GET['assignment_id'] == $row['assignment_id']){ 
+                               echo ' checked="checked"'; 
+                       } 
+               }
+               else {
+                       echo ' checked="checked"';
+                       $_GET['assignment_id'] = $row['assignment_id'];
+               }
+               ?>/></td>
+
+               <td><label for="a<?php echo $row['assignment_id']; ?>"><?php echo AT_print($row['title'], 'assignment.title'); ?></label></td>
+
+               <td><?php if($row['assign_to'] == '0'){echo _AT('all_students'); } else {
+                               
+                                       $type_row = mysql_fetch_assoc($this->type_result);
+                                       echo $type_row['title']; } ?></td>
+
+               <td><?php  if ($row['date_due'] == '0000-00-00 00:00:00'){
+                       echo _AT('none');
+               }else {
+                       echo AT_Date(_AT('forum_date_format'), $row['date_due'], AT_DATE_MYSQL_DATETIME);
+               }?></td>
+               </tr>
+       <?php } while($row = mysql_fetch_assoc($this->result)); ?>
+</tbody>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><strong><?php echo _AT('none_found'); ?></strong></td>
+       </tr>
+<?php endif; ?>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/backups/edit.tmpl.php b/docs/themes/simplified-desktop/instructor/backups/edit.tmpl.php
new file mode 100644 (file)
index 0000000..87dcf9b
--- /dev/null
@@ -0,0 +1,16 @@
+<form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="backup_id" value="<?php echo $_GET['backup_id']; ?>" />
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit'); ?></legend>
+       <div class="row">
+               <label for="description"><?php echo _AT('optional_description'); ?></label>
+               <textarea cols="40" rows="2" id="description" name="new_description"><?php echo AT_print($this->row['description'], 'backups.description'); ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="edit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
diff --git a/docs/themes/simplified-desktop/instructor/backups/index.tmpl.php b/docs/themes/simplified-desktop/instructor/backups/index.tmpl.php
new file mode 100644 (file)
index 0000000..e768db5
--- /dev/null
@@ -0,0 +1,45 @@
+
+<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="List of backups available" >
+<thead>
+<tr>
+       <th><?php echo _AT('file_name');    ?></th>
+       <th><?php echo _AT('date_created'); ?></th>
+       <th><?php echo _AT('file_size');    ?></th>
+       <!-- REMOVED FOR MOBILE<th><?php //echo _AT('description');  ?></th> -->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6"><input type="submit" name="restore" value="<?php echo _AT('restore'); ?>"  class="button"/> 
+                                 <input type="submit" name="download" value="<?php echo _AT('download'); ?>"  class="button"/> 
+                                 <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>"  class="button"/> 
+                                 <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>"  class="button"/></td>
+</tr>
+</tfoot>
+<tbody>
+<?php
+
+       if (!$this->list) {
+               ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+       <?php
+       } else {
+               foreach ($this->list as $row) {
+                       echo '<tr onmousedown="document.form[\'b'.$row['backup_id'].'\'].checked = true; rowselect(this);" id="r_'.$row['backup_id'].'">';
+                       echo '<td class="row1"><label><input type="radio" value="'.$row['backup_id'].'" name="backup_id" id="b'.$row['backup_id'].'" />';
+                       echo $row['file_name'].'</label></td>';
+                       echo '<td>'.AT_date(_AT('filemanager_date_format'), $row['date'], AT_DATE_MYSQL_DATETIME).'</td>';
+                       echo '<td align="right">'.get_human_size($row['file_size']).'</td>';
+               // REMOVED FOR MOBILE   echo '<td>'.AT_print($row['description'], 'backups.description').'</td>';
+                       echo '</tr>';
+               }
+?>
+       <?php } ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/chat/index.tmpl.php b/docs/themes/simplified-desktop/instructor/chat/index.tmpl.php
new file mode 100644 (file)
index 0000000..c75c33d
--- /dev/null
@@ -0,0 +1,70 @@
+<?php if (count($this->tran_files) == 0) {
+       echo '<div style="width:90%;" class="input-form"><p>'._AT('chat_none_found').'</p></div>';
+} else {?>
+       
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+       <table class="data" summary="List of transcripts for chat">
+       <colgroup>
+               <?php if ($this->col == 'name'): ?>
+                       <col />
+                       <col class="sort" />
+                       <col span="2" />
+               <?php elseif($this->col == 'date'): ?>
+                       <col span="3" />
+                       <col class="sort" />
+               <?php endif; ?>
+       </colgroup>
+       <thead>
+       <tr>
+               <th scope="col">&nbsp;</th>
+               <th scope="col"><a href="mods/_standard/chat/index.php?<?php echo $this->orders[$this->order]; ?>=name"><?php echo _AT('chat_transcript');?></a></th>
+               <th scope="col"><?php echo _AT('status'); ?></th>
+               <th scope="col"><a href="mods/_standard/chat/index.php?<?php echo $this->orders[$this->order]; ?>=date"><?php echo _AT('date'); ?></a></th> 
+               </th> 
+       </tr>
+       </thead>
+       <?php
+
+       if (($this->col == 'date') && ($this->order == 'asc')) {
+               asort($this->tran_files);
+       } else if (($this->col == 'date') && ($this->order == 'desc')) {
+               arsort($this->tran_files);
+       } else if (($this->col == 'name') && ($this->order == 'asc')) {
+               ksort($this->tran_files);
+       } else if (($this->col == 'name') && ($this->order == 'desc')) {
+               krsort($this->tran_files);
+       }
+       reset ($this->tran_files);
+       ?>
+
+       <tbody>
+       <?php foreach ($this->tran_files as $file => $date) { ?>
+               <tr onkeydown="document.form['<?php echo $file; ?>'].checked = true; rowselect(this);" onmousedown="document.form['<?php echo $file; ?>'].checked = true; rowselect(this);" id="r_<?php echo $file; ?>">
+                       <td><input type="radio" name="file" value="<?php echo $file; ?>" id="<?php echo $file; ?>" /></td>
+
+                       <td><label for="<?php echo $file; ?>"><?php echo $file; ?></label></td>
+                       <td>
+                               <?php if (($file.'.html' == $this->admin['tranFile']) && ($this->admin['produceTran'])) { 
+                                       echo _AT('chat_currently_active');
+                               } else {
+                                       echo _AT('chat_inactive');
+                               }?>
+                       </td>
+       
+                       <td><?php echo AT_DATE(_AT('server_date_format'), $date); ?></td>
+               </tr>
+       <?php } ?>
+       </tbody>
+
+       <tfoot>
+       <tr>
+               <td colspan="4"><input type="submit" name="view" value="<?php echo _AT('view'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+       </tr>
+       </tfoot>
+
+       </table>
+</div> 
+</form>
+<?php
+}?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/content/index.tmpl.php b/docs/themes/simplified-desktop/instructor/content/index.tmpl.php
new file mode 100644 (file)
index 0000000..449309b
--- /dev/null
@@ -0,0 +1,62 @@
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="input-form">
+       <div class="row">
+               <h3><label for="ctid"><?php echo _AT('select_parent_topic'); ?></label></h3>
+       </div>
+
+       <div class="row">
+               <select name="ctid" id="ctid">
+                       <option value="0"><?php echo _AT('top_level'); ?></option>
+                       <?php
+                               print_select(0, 1);
+                       ?>
+               </select>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="sub_content" value="<?php echo _AT('view_sub_topics'); ?>" />
+       </div>
+</div>
+</form>
+
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="Parent topics and subtopics">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col">#</th>
+       <th scope="col"><?php echo _AT('title'); ?></th>
+       <th scope="col"><?php echo _AT('num_pages'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="5">
+               <input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+               <input type="submit" name="view" value="<?php echo _AT('view'); ?>" />
+               <input type="submit" name="usage" value="<?php echo _AT('usage'); ?>" />
+               <input type="submit" name="sub_content" value="<?php echo _AT('sub_topics'); ?>" />
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+       <?php if (!empty($this->content)): ?>
+               <?php foreach ($this->content as $row): ?>
+                       <tr onkeydown="document.form['c<?php echo $row['content_id']; ?>'].checked = true; rowselect(this);" onmousedown="document.form['c<?php echo $row['content_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['content_id']; ?>">
+                               <td><input type="radio" name="ctid" value="<?php echo $row['content_id']; ?>" id="c<?php echo $row['content_id']; ?>" /></td>
+                               <td><?php echo $row['ordering']; ?></td>
+                               <td><label for="c<?php echo $row['content_id']; ?>"><?php echo AT_print($row['title'], 'content.title'); ?></label></td>
+                               <td><?php echo count($this->all_content[$row['content_id']]); ?></td>
+                       </tr>
+               <?php endforeach; ?>
+       <?php else: ?>
+               <tr>
+                       <td colspan="5"><?php echo _AT('none_found'); ?></td>
+               </tr>
+       <?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/content/page_student_stats.tmpl.php b/docs/themes/simplified-desktop/instructor/content/page_student_stats.tmpl.php
new file mode 100644 (file)
index 0000000..ea7031f
--- /dev/null
@@ -0,0 +1,28 @@
+<div class="table-surround">
+<table class="data" summary="Student usage statistics by login name">
+<thead>
+<tr>
+       <th scope="col"><?php echo _AT('login_name'); ?></th>
+       <th scope="col"><?php echo _AT('visits'); ?></th>
+       <th scope="col"><?php echo _AT('avg_duration'); ?></th>
+       <th scope="col"><?php echo _AT('duration'); ?></th>
+</tr>
+</thead>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)) : ?>
+       <?php do { ?>
+       <tr onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/student_usage.php?id=<?php echo $row['member_id']; ?>'" title="<?php echo _AT('member_stats'); ?>">
+               <td><a href="<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/student_usage.php?id=<?php echo $row['member_id']; ?>"><?php echo get_display_name($row['member_id']); ?></a></td>
+               <td><?php echo $row['counter']; ?></td>
+               <td><?php echo $row['average']; ?></td>
+               <td><?php echo $row['total']; ?></td>
+       </tr>
+       <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
diff --git a/docs/themes/simplified-desktop/instructor/content/tracker/index.tmpl.php b/docs/themes/simplified-desktop/instructor/content/tracker/index.tmpl.php
new file mode 100644 (file)
index 0000000..18563d5
--- /dev/null
@@ -0,0 +1,66 @@
+<?php global $contentManager;?>
+<div class="toolcontainer">
+<div class="paging">
+       <ul>
+       <?php for ($i=1; $i<=$this->num_pages; $i++): ?>
+               <li>
+                       <?php if ($i == $this->page) : ?>
+                               <a class="current" href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$this->page_string; ?>"><strong><?php echo $i; ?></strong></a>
+                       <?php else: ?>
+                               <a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=<?php echo $i.$this->page_string; ?>"><?php echo $i; ?></a>
+                       <?php endif; ?>
+               </li>
+       <?php endfor; ?>
+       </ul>
+</div>
+<table class="data" summary="Lists usage of content pages.">
+<colgroup>
+       <?php if ($this->col == 'total_hits'): ?>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($this->col == 'unique_hits'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="3" />
+       <?php // REMOVED FOR MOBILE elseif($this->col == 'average_duration'): ?>
+       <!--  <col span="3" />
+               <col class="sort" />
+               <col span="2" />-->     
+       <?php // REMOVED FOR MOBILE elseif($this->col == 'total_duration'): ?>
+               <!--  <col span="4" />
+               <col class="sort" />
+               <col /> -->
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col"><?php echo _AT('page'); ?></th>
+       <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=total_hits"><?php echo _AT('visits');             ?></a></th>
+       <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=unique_hits"><?php echo _AT('unique_visits');     ?></a></th>
+       <!-- REMOVED FOR MOBILE <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=average_duration"><?php echo _AT('avg_duration'); ?></a></th>-->
+       <!-- REMOVED FOR MOBILE <th scope="col"><a href="mods/_standard/tracker/tools/index.php?<?php echo $orders[$order]; ?>=total_duration"><?php echo _AT('duration');       ?></a></th>-->
+       <th scope="col"><?php echo _AT('details');       ?></th>
+</tr>
+</thead>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)): ?>
+       <?php do { ?>
+               <tr onmousedown="document.location='<?php echo AT_BASE_HREF; ?>mods/_standard/tracker/tools/page_student_stats.php?content_id=<?php echo $row['content_id']; ?>'" title="<?php echo _AT('details'); ?>">
+                       <td><?php echo $contentManager->_menu_info[$row['content_id']]['title']; ?></td>
+                       <td><?php echo $row['total_hits'];       ?></td>
+                       <td><?php echo $row['unique_hits'];      ?></td>
+                       <!-- REMOVED FOR MOBILE <td><?php //echo $row['average_duration']; ?></td>-->
+                       <!-- REMOVED FOR MOBILE<td><?php echo $row['total_duration'];   ?></td> -->
+                       <td><a href="mods/_standard/tracker/tools/page_student_stats.php?content_id=<?php echo $row['content_id']; ?>"><?php echo _AT('details'); ?></a></td>
+               </tr>
+       <?php } while ($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/content/tracker/student_usage.tmpl.php b/docs/themes/simplified-desktop/instructor/content/tracker/student_usage.tmpl.php
new file mode 100644 (file)
index 0000000..f9d07d1
--- /dev/null
@@ -0,0 +1,53 @@
+<?php global $contentManager;?>
+<form name="form" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
+<div class="input-form">
+       <div class="row">
+               <label for="id"><?php echo _AT('select_member'); ?></label><br />
+               <select name="id" id="id">
+                       <?php
+                               while ($row = mysql_fetch_assoc($this->result)) {
+                                       $sender = get_display_name($row['member_id']);
+                                       echo '<option value="'.$row['member_id'].'"';
+                                       if ($row['member_id'] == $_GET['id']) {
+                                               echo ' selected="selected"';
+                                       }
+                                       echo '>'.$sender.'</option>';
+                               }
+                       ?>
+               </select>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('view'); ?>" />
+       </div>
+</div>
+</form>
+
+<?php if ($_GET['id']) : ?>
+<div class="table-surround">
+       <table class="data" summary="View the usage of a specific student">
+       <thead>
+       <tr>
+               <th scope="col"><?php echo _AT('page'); ?></th>
+               <th scope="col"><?php echo _AT('visits'); ?></th>
+               <th scope="col"><?php echo _AT('duration'); ?></th>
+       </tr>
+       </thead>
+       <tbody>
+       <?php if ($row = mysql_fetch_assoc($this->result_list)): ?>
+               <?php do { ?>
+                       <tr>
+                               <td><?php echo $contentManager->_menu_info[$row['content_id']]['title']; ?></td>
+                               <td><?php echo $row['counter']; ?></td>
+                               <td><?php echo $row['total']; ?></td>
+                       </tr>
+               <?php } while ($row = mysql_fetch_assoc($this->result_list)); ?>
+       <?php else: ?>
+               <tr>
+                       <td colspan="3"><?php echo _AT('none_found'); ?></td>
+               </tr>
+       <?php endif; ?>
+</tbody>
+</table>
+</div>
+<?php endif; ?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/course_email/course_email.tmpl.php b/docs/themes/simplified-desktop/instructor/course_email/course_email.tmpl.php
new file mode 100644 (file)
index 0000000..88054d4
--- /dev/null
@@ -0,0 +1,45 @@
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<input type="hidden" name="course" value="<?php echo $course; ?>" />
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('course_email'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
+               <?php echo  _AT('to'); ?><br />
+               <input type="checkbox" name="to_assistants" value="1" id="assistants" <?php if ($_POST['to_assistants']=='1') { echo 'checked="checked"'; } ?> /><label for="assistants"><?php echo  _AT('assistants'); ?></label>
+               <input type="checkbox" name="to_enrolled" value="1" id="enrolled" <?php if ($_POST['to_enrolled']=='1') { echo 'checked="checked"'; } else { echo 'checked="checked"'; } ?> /><label for="enrolled"><?php echo  _AT('enrolled'); ?></label>
+               <input type="checkbox" name="to_unenrolled" value="1" id="unenrolled" <?php if ($_POST['to_unenrolled']=='1') { echo 'checked="checked"'; } ?> /><label for="unenrolled"><?php echo  _AT('unenrolled'); ?></label>
+               <input type="checkbox" name="to_alumni" value="1" id="alumni" <?php if ($_POST['to_alumni']=='1') { echo 'checked="checked"'; } ?> /><label for="alumni"><?php echo  _AT('alumni'); ?></label>
+
+               <?php if (!empty($this->group_type_rows)): ?>
+                       <br /><br />
+                       <?php echo _AT('or_groups'); ?>:<br />
+                       <select name="groups[]" multiple="multiple" size="10" style="padding-right: 5px">
+                               <?php foreach ($this->group_type_rows as $type_id => $row): ?>
+                                       <optgroup label="<?php echo $row['title']; ?>">
+                                               <?php foreach ($row['group_type_row'] as $group_row): ?>
+                                                       <option value="<?php echo $group_row['group_id']; ?>"><?php echo $group_row['title']; ?></option>
+                                               <?php endforeach; ?>
+                                       </optgroup>
+                               <?php endforeach; ?>
+                       </select>
+               <?php endif; ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="subject"><?php echo _AT('subject'); ?></label><br />
+               <input type="text" name="subject" size="40" id="subject" value="<?php echo $_POST['subject']; ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body"><?php echo _AT('body'); ?></label><br />
+               <textarea cols="40" rows="18" name="body" id="body"><?php echo $_POST['body']; ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('send'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
diff --git a/docs/themes/simplified-desktop/instructor/enrolment/index.tmpl.php b/docs/themes/simplified-desktop/instructor/enrolment/index.tmpl.php
new file mode 100644 (file)
index 0000000..1ce87e4
--- /dev/null
@@ -0,0 +1,141 @@
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+       <input type="hidden" name="tab" value="<?php echo $this->current_tab; ?>"/>
+       <input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
+       <div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('search'); ?></legend>
+               <?php if (admin_authenticate(AT_ADMIN_PRIV_ENROLLMENT, TRUE)): ?>
+                       <div class="row">
+                               <label for="course"><?php echo _AT('course'); ?></label><br/>
+                               <select name="course_id" id="course">
+                               <?php
+                               
+                               while ($courses_row = mysql_fetch_assoc($this->result)) {
+                                       if ($courses_row['course_id'] == $this->course_id) {
+                                               echo '<option value="'.$courses_row['course_id'].'" selected="selected">'.validate_length($courses_row['title'], 45,VALIDATE_LENGTH_FOR_DISPLAY).'</option>';
+                                       } else {
+                                               echo '<option value="'.$courses_row['course_id'].'">'.validate_length($courses_row['title'],45,VALIDATE_LENGTH_FOR_DISPLAY).'</option>';
+                                       }
+                               }
+                               ?></select>
+                       </div>
+               <?php endif; ?>
+
+               <div class="row">
+                       <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('login_name').', '._AT('first_name').', '._AT('second_name').', '._AT('last_name') .', '._AT('email'); ?>)</label><br />
+                       <input type="text" name="search" id="search" size="40" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+                       <fieldset>
+                       <legend><?php echo _AT('search_match'); ?>:</legend>
+                       <input type="radio" name="match" value="all" id="match_all" <?php echo $this->checked_match_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> <input type="radio" name="match" value="one" id="match_one" <?php echo $this->checked_match_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
+                       </fieldset>
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>" />
+                       <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>" />
+               </div>
+       </fieldset>
+       </div>
+</form>
+
+<?php print_paginator($this->page, $this->tab_counts[$this->current_tab], $this->page_string_w_tab . SEP . $this->order .'='. $this->col, $this->results_per_page); ?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="selectform">
+<input type="hidden" name="tab" value="<?php echo $this->current_tab; ?>" />
+<input type="hidden" name="course_id" value="<?php echo $this->course_id; ?>"/>
+
+<ul id="subnavlist">
+       <?php for ($i = 0; $i< $this->num_tabs; $i++): ?>
+               <?php if ($this->current_tab == $i): ?>
+                       <li class="active"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?tab=<?php echo $i.$this->page_string; ?>" class="active"><strong><?php echo _AT($this->tabs[$i]); ?> - <?php echo $this->tab_counts[$i]; ?></strong></a></li>
+               <?php else: ?>
+                       <li><a href="<?php echo $_SERVER['PHP_SELF']; ?>?tab=<?php echo $i.$this->page_string; ?>"><?php echo _AT($this->tabs[$i]); ?> - <?php echo $this->tab_counts[$i]; ?></a></li>
+               <?php endif; ?>
+       <?php endfor; ?>
+</ul>
+
+<div class="table-surround">
+<table class="data" summary="Student enrolment by login name, first name and last name"  >
+<colgroup>
+       <?php if ($this->col == 'login'): ?>
+               <col />
+               <col class="sort" />
+               <col span="4" />
+       <?php elseif($this->col == 'first_name'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col span="3" />
+       <?php // REMOVED FOR MOBILE elseif($this->col == 'second_name'): ?>
+               <!-- <col span="3" />
+               <col class="sort" />
+               <col span="2" /> -->
+       <?php elseif($this->col == 'last_name'): ?>
+               <col span="4" />
+               <col class="sort" />
+               <col />
+       <?php // REMOVED FOR MOBILE elseif($this->col == 'email'): ?>
+               <!-- <col span="5" />
+               <col class="sort" /> -->
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col" align="left"><input type="checkbox" value="<?php echo _AT('select_all'); ?>" id="all" title="<?php echo _AT('select_all'); ?>" name="selectall" onclick="CheckAll();" /></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=login<?php echo $this->page_string_w_tab;?>"><?php echo _AT('login_name'); ?></a></th>
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=first_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('first_name'); ?></a></th>
+
+       <!-- REMOVED FOR MOBILE <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=second_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('second_name'); ?></a></th>-->
+
+       <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=last_name<?php echo $this->page_string_w_tab;?>"><?php echo _AT('last_name'); ?></a></th>
+
+       <!-- REMOVED FOR MOBILE <th scope="col"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?<?php echo $this->orders[$this->order]; ?>=email<?php echo $this->page_string_w_tab;?>"><?php echo _AT('email'); ?></a></th>-->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="6">
+               <?php if ($this->current_tab == 0): ?>
+                       <input type="submit" name="role"     value="<?php echo _AT('privileges');  ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove');    ?>" /> 
+                       <input type="submit" name="alumni"   value="<?php echo _AT('mark_alumni'); ?>" />
+               <?php elseif ($this->current_tab == 1): ?>
+                       <input type="submit" name="role" value="<?php echo _AT('privileges'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" /> 
+
+               <?php elseif ($this->current_tab == 2): ?>
+                       <input type="submit" name="enroll"   value="<?php echo _AT('enroll'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" />
+               
+               <?php elseif ($this->current_tab == 3): ?>
+                       <input type="submit" name="enroll" value="<?php echo _AT('enroll'); ?>" /> 
+                       <input type="submit" name="unenroll" value="<?php echo _AT('remove'); ?>" />
+
+               <?php elseif ($this->current_tab == 4): ?>
+                       <input type="submit" name="enroll"   value="<?php echo _AT('enroll'); ?>" /> 
+
+               <?php endif; ?></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($this->tab_counts[$this->current_tab]): ?>
+       <?php while ($row = mysql_fetch_assoc($this->enrollment_result)): ?>
+               <tr onmousedown="document.selectform['m<?php echo $row['member_id']; ?>'].checked = !document.selectform['m<?php echo $row['member_id']; ?>'].checked; togglerowhighlight(this, 'm<?php echo $row['member_id']; ?>');" id="rm<?php echo $row['member_id']; ?>">
+                       <td><input type="checkbox" name="id[]" value="<?php echo $row['member_id']; ?>" id="m<?php echo $row['member_id']; ?>" onmouseup="this.checked=!this.checked" title="<?php echo AT_print($row['login'], 'members.login'); ?>" /></td>
+                       <td><?php echo AT_print($row['login'], 'members.login'); ?></td>
+                       <td><?php echo AT_print($row['first_name'], 'members.name'); ?></td>
+               <!-- REMOVED FOR MOBILE <td><?php // echo AT_print($row['second_name'], 'members.name'); ?></td> -->
+                       <td><?php echo AT_print($row['last_name'], 'members.name'); ?></td>
+               <!-- REMOVED FOR MOBILE <td><?php // echo AT_print($row['email'], 'members.email'); ?></td>-->
+               </tr>
+       <?php endwhile; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="6"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/faq/add_question.tmpl.php b/docs/themes/simplified-desktop/instructor/faq/add_question.tmpl.php
new file mode 100644 (file)
index 0000000..f009212
--- /dev/null
@@ -0,0 +1,32 @@
+<?php global $stripslashes;?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_question'); ?></legend>
+       <div class="row">
+
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="topic"><?php  echo _AT('topic'); ?></label><br />
+               <select name="topic_id" id="topic">
+                       <?php while ($row = mysql_fetch_assoc($this->result)): ?>
+                               <option value="<?php echo $row['topic_id']; ?>"<?php if (isset($_POST['topic_id']) && ($row['topic_id'] == $_POST['topic_id'])) { echo ' selected="selected"'; } ?>><?php echo AT_print($row['name'], 'input.text'); ?></option>
+                       <?php endwhile; ?>
+               </select>
+       </div>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php  echo _AT('question'); ?></label><br />
+               <input type="text" name="question" size="40" id="question" value="<?php if (isset($_POST['question'])) echo AT_print($stripslashes($_POST['question']), 'input.text');  ?>" />
+
+       </div>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="answer"><?php  echo _AT('answer'); ?></label><br />
+               <textarea name="answer" cols="40" rows="3" id="answer" style="width:90%;"><?php if (isset ($_POST['answer'])) echo AT_print($stripslashes($_POST['answer']), 'text.input');  ?></textarea>
+       </div>
+
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/faq/add_topic.tmpl.php b/docs/themes/simplified-desktop/instructor/faq/add_topic.tmpl.php
new file mode 100644 (file)
index 0000000..3492243
--- /dev/null
@@ -0,0 +1,17 @@
+<?php global $stripslashes;?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+
+<div class="input-form">       
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_topic'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="name"><?php  echo _AT('name'); ?></label><br />
+               <input type="text" name="name" size="40" id="name" value="<?php if (isset($_POST['name'])) echo $stripslashes($_POST['name']);  ?>" />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/faq/edit_question.tmpl.php b/docs/themes/simplified-desktop/instructor/faq/edit_question.tmpl.php
new file mode 100644 (file)
index 0000000..1019fdd
--- /dev/null
@@ -0,0 +1,37 @@
+<?php global $stripslashes;
+?>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="id" value="<?php echo $this->row['entry_id']; ?>" />
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('create_new_file'); ?></legend>
+       <div class="row">
+               
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="topic"><?php  echo _AT('topic'); ?></label><br />
+               <select name="topic_id" id="topic">
+               <?php if(!empty($this->faq_topics)):?>
+                       <?php foreach($this->faq_topics as $topic_row):?>
+                               <option value="<?php echo $topic_row['topic_id']; ?>"<?php if ($topic_row['topic_id'] == $row['topic_id']) { echo ' selected="selected"'; } ?>><?php echo AT_print($topic_row['name'], 'input.text'); ?></option>                       
+                       <?php endforeach;?>             
+               <?php endif;?>
+               </select>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php echo _AT('question'); ?>:</label><br />
+               <input type="text" name="question" size="40" id="question" value="<?php if (isset ($_POST['question'])) { echo AT_print($stripslashes($_POST['question']), 'input.text'); } else { echo AT_print($this->row['question'], 'input.text'); } ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="answer"><?php  echo _AT('answer'); ?></label><br />
+               <textarea name="answer" cols="45" rows="3" id="answer" style="width:90%;"><?php if (isset ($_POST['answer'])) { echo AT_print($stripslashes($_POST['answer']), 'input.text'); } else { echo AT_print($this->row['answer'], 'input.text'); } ?></textarea>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
+       </div>
+       </fieldset>
+</div>
+</form>
diff --git a/docs/themes/simplified-desktop/instructor/faq/edit_topic.tmpl.php b/docs/themes/simplified-desktop/instructor/faq/edit_topic.tmpl.php
new file mode 100644 (file)
index 0000000..4308b56
--- /dev/null
@@ -0,0 +1,18 @@
+<?php global $stripslashes;?>
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="name"><?php  echo _AT('name'); ?></label><br />
+               <input type="text" name="name" size="40" id="name" value="<?php if (isset($_POST['name'])) echo AT_print($stripslashes($_POST['name']), 'input.text');  ?>" />
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/faq/index_instructor.tmpl.php b/docs/themes/simplified-desktop/instructor/faq/index_instructor.tmpl.php
new file mode 100644 (file)
index 0000000..c7af3d2
--- /dev/null
@@ -0,0 +1,51 @@
+
+
+<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<div class="table-surround">
+<table class="data" summary="View and edit frequently asked questions for the course">
+<thead>
+<tr>
+       <th>&nbsp;</th>
+       <th><?php echo _AT('name'); ?></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="2"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> 
+                                   <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<?php if (!empty($this->faq_topics)): ?>
+               <?php foreach ($this->faq_topics as $topic_id => $row): ?>
+                                       <tr onmousedown="document.form['t<?php echo $row['topic_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['topic_id']; ?>_0">
+                                       <th style="border-top:1pt solid #e0e0e0;"><input type="radio" name="item" id="t<?php echo $row['topic_id']; ?>" value="<?php echo $row['topic_id']; ?>" /></th>
+                                       <th style="border-top:1pt solid #e0e0e0;"><?php echo AT_print($row['name'], 'faqs.topic'); ?></th>
+                                       </tr>
+       
+                       <?php if (!empty($row['entry_rows'])): ?>
+                               <?php foreach($row['entry_rows'] as $question_row): ?>
+                               <tr onmousedown="document.form['q<?php echo $question_row['entry_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['topic_id']; ?>_<?php echo $question_row['entry_id']; ?>">
+                                       <td><input type="radio" name="item" id="q<?php echo $question_row['entry_id']; ?>" value="<?php echo $question_row['entry_id']; ?>q" /></td>
+                                       <td><?php echo AT_print($question_row['question'], 'faqs.question'); ?></td>
+                               </tr>
+                               <?php endforeach;?>
+                       
+                       <?php else:?>
+                       <tr>
+                                       <td>&nbsp;</td>
+                                       <td><?php echo _AT('no_questions'); ?></td>
+                               </tr>
+                       <?php endif;?>
+               <?php endforeach; ?>
+       <tbody>
+       
+               
+       </tbody>
+<?php else: ?>
+       <tr>
+               <td colspan="2"><strong><?php echo _AT('none_found'); ?></strong></td>
+       </tr>
+<?php endif; ?>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/forums/add_forum.tmpl.php b/docs/themes/simplified-desktop/instructor/forums/add_forum.tmpl.php
new file mode 100644 (file)
index 0000000..8952dc4
--- /dev/null
@@ -0,0 +1,24 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="add_forum" value="true">
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('create_forum'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" name="title" size="40" id="title" />
+       </div>
+       <div class="row">
+               <label for="body"><?php echo _AT('description'); ?></label><br />
+               <textarea name="body" cols="40" rows="2" id="body" wrap="wrap"></textarea>
+       </div>
+       <div class="row">
+               <label for="edit"><?php echo _AT('allow_editing'); ?></label><br />
+               <input type="text" name="edit" size="3" id="edit" value="<?php echo intval($row['mins_to_edit']); ?>" /> <?php echo _AT('in_minutes'); ?>
+       </div>
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/forums/edit_forum.tmpl.php b/docs/themes/simplified-desktop/instructor/forums/edit_forum.tmpl.php
new file mode 100644 (file)
index 0000000..1114aaa
--- /dev/null
@@ -0,0 +1,28 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="edit_forum" value="true">
+<input type="hidden" name="fid" value="<?php echo $this->fid; ?>">
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit_forum'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" name="title" size="40" id="title" value="<?php echo htmlspecialchars(stripslashes($this->row['title'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="body"><?php echo _AT('description'); ?></label><br />
+               <textarea name="body" cols="40" rows="2" id="body" wrap="wrap"><?php echo AT_print($this->row['description'], 'input.text'); ?></textarea>
+       </div>
+
+       <div class="row">
+               <label for="edit"><?php echo _AT('allow_editing'); ?></label><br />
+               <input type="text" name="edit" size="3" id="edit" value="<?php echo intval($this->row['mins_to_edit']); ?>" /> <?php echo _AT('in_minutes'); ?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/forums/index.tmpl.php b/docs/themes/simplified-desktop/instructor/forums/index.tmpl.php
new file mode 100644 (file)
index 0000000..8cdc0c3
--- /dev/null
@@ -0,0 +1,41 @@
+<form name="form" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+<div class="table-surround">
+<table class="data" summary="List of course forums">
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><?php echo _AT('title'); ?></th>
+       <th scope="col"><?php echo _AT('description'); ?></th>
+       <!--  REMOVED FOR MOBILE <th scope="col"><?php echo _AT('allow_editing'); ?></th>-->
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="4"><input type="submit" name="edit" value="<?php echo _AT('edit'); ?>" /> <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" /></td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($this->all_forums['nonshared']): ?>
+       <?php foreach($this->all_forums['nonshared'] as $row): ?>
+               <tr onmousedown="document.form['f<?php echo $row['forum_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['forum_id']; ?>">
+                       <td width="10"><input type="radio" name="id" value="<?php echo $row['forum_id']; ?>" id="f<?php echo $row['forum_id']; ?>" /></td>
+                       <td><label for="f<?php echo $row['forum_id']; ?>"><?php echo AT_print($row['title'], 'forums.title'); ?></label></td>
+                       <td><?php echo AT_print($row['description'], 'forums.description'); ?></td>
+                       <!-- REMOVED FOR MOBILE <td>
+                               <?php if (!$row['mins_to_edit']): ?>
+                                       <?php echo _AT('no'); ?>
+                               <?php else: ?>
+                                       <?php echo  _AT('minutes', $row['mins_to_edit']); ?>
+                               <?php endif; ?>
+                       </td>-->
+               </tr>
+       <?php endforeach; ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/glossary/add.tmpl.php b/docs/themes/simplified-desktop/instructor/glossary/add.tmpl.php
new file mode 100644 (file)
index 0000000..27bd08d
--- /dev/null
@@ -0,0 +1,61 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="num_terms" value="<?php echo $this->num_terms; ?>" />
+<?php
+for ($i=0;$i<$this->num_terms;$i++) {
+       if ($glossary[$word[$i]] != '') {
+               echo '<input type="hidden" name="ignore['.$i.']" value="1" />';
+               continue;
+       }
+       
+       for ($j=0;$j<$i;$j++) {
+               if ($word[$j] == $word[$i]) {
+                       echo '<input type="hidden" name="ignore['.$i.']" value="1" />';
+                       continue 2;
+               }
+       }
+
+       if ($word[$i] == '') {
+               $word[$i] = ContentManager::cleanOutput($_POST['word'][$i]);
+       }
+?>
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_glossary'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title<?php echo $i; ?>"><?php echo _AT('glossary_term');  ?></label><br />
+               <input type="text" name="word[<?php echo $i; ?>]" size="30" value="<?php echo trim($word[$i]); ?>" id="title<?php echo $i; ?>" /><?php                  
+               if ($_GET['pcid'] != '') { 
+                       echo '<input type="checkbox" name="ignore['.$i.']" value="1" id="ig'.$i.'" /><label for="ig'.$i.'">Ignore this term</label>.';  
+               }
+               ?>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="body<?php echo $i; ?>"><?php echo _AT('glossary_definition');  ?></label><br />
+               <textarea name="definition[<?php echo $i; ?>]" class="formfield" cols="55" rows="7" id="body<?php echo $i; ?>" style="width:90%;"><?php echo ContentManager::cleanOutput($_POST['definition'][$i]); ?></textarea>
+       </div>
+
+       <div class="row">
+       <?php echo _AT('glossary_related');  ?><br />
+       <?php
+                       
+                       if ($row_g = mysql_fetch_assoc($this->result_glossary)) {
+                               echo '<select name="related_term['.$i.']">';
+                               echo '<option value="0"></option>';
+                               do {
+                                       echo '<option value="'.$row_g['word_id'].'">'.$row_g['word'].'</option>';
+                               } while ($row_g = mysql_fetch_assoc($this->result_glossary));
+                               echo '</select>';
+                       } else {
+                               echo _AT('none_available');
+                       }
+               } // endfor
+       ?>
+       </div>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/polls/add.tmpl.php b/docs/themes/simplified-desktop/instructor/polls/add.tmpl.php
new file mode 100644 (file)
index 0000000..c0f586d
--- /dev/null
@@ -0,0 +1,27 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="add_poll" value="true" />
+
+<div class="input-form">       
+<fieldset class="group_form"><legend class="group_form"><?php echo _AT('add_poll'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php  echo _AT('question'); ?></label><br />
+               <textarea name="question" cols="40" rows="3" id="question" ><?php if (isset ($_POST['question'])) echo htmlspecialchars($_POST['question']);  ?></textarea>
+       </div>
+
+<?php for ($i=1; $i<= AT_NUM_POLL_CHOICES; $i++): ?>
+       <div class="row">
+               <?php if (($i==1) || ($i==2)) { ?>
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
+               <?php } ?>
+               <label for="c<?php echo $i; ?>"><?php echo _AT('choice'); ?> <?php echo $i; ?></label><br />
+               <input type="text" name="c<?php echo $i; ?>" value="<?php if (isset($_POST['c' . $i])) echo htmlspecialchars($_POST['c' . $i]);  ?>" size="40" id="c<?php echo $i; ?>" />
+       </div>
+<?php endfor; ?>
+
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/polls/edit.tmpl.php b/docs/themes/simplified-desktop/instructor/polls/edit.tmpl.php
new file mode 100644 (file)
index 0000000..047a1e8
--- /dev/null
@@ -0,0 +1,30 @@
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<input type="hidden" name="edit_poll" value="true" />
+<input type="hidden" name="poll_id" value="<?php echo $this->row['poll_id']; ?>" />
+
+<div class="input-form">
+<fieldset class="group_form"><legend class="group_form"><?php echo _AT('edit_poll'); ?></legend>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="question"><?php echo _AT('question'); ?>:</label><br />
+               <textarea name="question" cols="40" rows="3" id="question"><?php if (isset ($_POST['question'])) { echo AT_print($_POST['question'], 'input.text'); } else { echo AT_print($this->row['question'], 'input.text'); } ?></textarea>
+       </div>
+
+<?php
+       for ($i=1; $i<= AT_NUM_POLL_CHOICES; $i++): ?>
+               <div class="row">
+                       <?php if (($i==1) || ($i==2)) { ?>
+                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
+                       <?php } ?>
+                       <label for="c<?php echo $i; ?>"><?php echo _AT('choice'); ?> <?php echo $i; ?>:</label><br />
+                       <input type="text" name="c<?php echo $i; ?>" id="c<?php echo $i; ?>" value="<?php if (isset ($_POST['c' . $i])) { echo AT_print($_POST['c' . $i], 'input.text'); } else { echo AT_print($this->row['choice' . $i], 'input.text'); }?>" size="40" />
+               </div>
+
+<?php endfor; ?>
+       <div class="row buttons">
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" />
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?> " />
+       </div>
+       </fieldset>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/polls/index.tmpl.php b/docs/themes/simplified-desktop/instructor/polls/index.tmpl.php
new file mode 100644 (file)
index 0000000..36d9eac
--- /dev/null
@@ -0,0 +1,52 @@
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+<div class="table-surround">
+<table class="data" summary="Course polls listed by question, creation date and votes" >
+<colgroup>
+       <?php if ($this->col == 'question'): ?>
+               <col />
+               <col class="sort" />
+               <col span="2" />
+       <?php elseif($this->col == 'created_date'): ?>
+               <col span="2" />
+               <col class="sort" />
+               <col />
+       <?php elseif($this->col == 'total'): ?>
+               <col span="3" />
+               <col class="sort" />
+       <?php endif; ?>
+</colgroup>
+<thead>
+<tr>
+       <th scope="col">&nbsp;</th>
+       <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $this->orders[$this->order]; ?>=question"><?php echo _AT('question'); ?></a></th>
+       <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $this->orders[$this->order]; ?>=created_date"><?php echo _AT('created'); ?></a></th>
+       <th scope="col"><a href="mods/_standard/polls/tools/index.php?<?php echo $this->orders[$this->order]; ?>=total"><?php echo _AT('total_votes'); ?></a></th>
+</tr>
+</thead>
+<tfoot>
+<tr>
+       <td colspan="4">
+               <input type="submit" name="edit"   value="<?php echo _AT('edit'); ?>" />
+               <input type="submit" name="delete" value="<?php echo _AT('delete'); ?>" />
+       </td>
+</tr>
+</tfoot>
+<tbody>
+<?php if ($row = mysql_fetch_assoc($this->result)) : ?>
+       <?php do { ?>
+               <tr onmousedown="document.form['p_<?php echo $row['poll_id']; ?>'].checked = true; rowselect(this);" id="r_<?php echo $row['poll_id']; ?>">
+                       <td><input type="radio" id="p_<?php echo $row['poll_id']; ?>" name="poll" value="<?php echo $row['poll_id']; ?>" /></td>
+                       <td><label for="p_<?php echo $row['poll_id']; ?>"><?php echo AT_print($row['question'], 'polls.question'); ?></label></td>
+                       <td><?php echo AT_DATE(_AT("server_date_format"), $row['created_date']); ?></td>
+                       <td><?php echo $row['total']; ?></td>
+               </tr>
+       <?php } while($row = mysql_fetch_assoc($this->result)); ?>
+<?php else: ?>
+       <tr>
+               <td colspan="4"><?php echo _AT('none_found'); ?></td>
+       </tr>
+<?php endif; ?>
+</tbody>
+</table>
+</div>
+</form>
diff --git a/docs/themes/simplified-desktop/instructor/properties/course_properties.tmpl.php b/docs/themes/simplified-desktop/instructor/properties/course_properties.tmpl.php
new file mode 100644 (file)
index 0000000..6f833b5
--- /dev/null
@@ -0,0 +1,441 @@
+<?php 
+global $languageManager,  $_config, $MaxCourseSize, $MaxFileSize;
+
+?>
+<?php echo _AT('available_immediately'); ?>
+<form method="post" action="<?php echo $_SERVER['PHP_SELF'];  ?>" name="course_form" enctype="multipart/form-data">
+       <input type="hidden" name="form_course" value="true" />
+       <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_config['prof_pic_max_file_size']; ?>" />
+       <input type="hidden" name="course" value="<?php echo $this->course; ?>" />
+       <input type="hidden" name="old_access" value="<?php echo $this->row['access']; ?>" />
+       <input type="hidden" name="created_date" value="<?php echo $this->row['created_date']; ?>" />
+       <input type="hidden" name="show_courses" value="<?php echo $_GET['show_courses']; ?>" />
+       <input type="hidden" name="current_cat" value="<?php echo $_GET['current_cat']; ?>" />
+       <input type="submit" name="submit" style="display:none;"/>
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('properties'); ?></legend>
+<?php if ($this->isadmin): ?>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="inst"><?php echo  _AT('instructor'); ?></label><br />
+                       <?php 
+                       
+                       
+                       if ($instructor_row = mysql_fetch_assoc($this->result)) {
+                               echo '<select name="instructor" id="inst">';
+                               do {
+                                       if ($instructor_row['member_id'] == $this->row['member_id']) {
+                                               echo '<option value="'.$instructor_row['member_id'].'" selected="selected">'.$instructor_row['login'].'</option>';
+                                       } else {
+                                               echo '<option value="'.$instructor_row['member_id'].'">'.$instructor_row['login'].'</option>';
+                                       }
+                               } while($instructor_row = mysql_fetch_assoc($this->result));
+                               echo '</select>';
+                       } else {
+                               echo '<span id="inst">'._AT('none_found').'</span>';
+                       }
+                       ?>
+       </div>
+<?php endif; ?>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="title"><?php echo _AT('title'); ?></label><br />
+               <input type="text" id="title" name="title" size="40" value="<?php echo htmlspecialchars($this->row['title']); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="pri_lang"><?php  echo _AT('primary_language'); ?></label><br />
+               <?php $languageManager->printDropdown($this->row['primary_language'], 'pri_lang', 'pri_lang'); ?>
+       </div>
+
+       <div class="row">
+               <label for="description"><?php echo _AT('description'); ?></label><br />
+               <textarea id="description" cols="45" rows="2" name="description"><?php echo $this->row['description']; ?></textarea>
+       </div>
+       <?php if ($_config['course_dir_name']): ?>
+       <div class="row">
+               <label for="course_dir_name"><?php echo _AT('course_dir_name'); ?></label><br />
+               <input type="text" id="course_dir_name" name="course_dir_name" size="40" value="<?php echo htmlspecialchars($this->row['course_dir_name']); ?>" />
+       </div>
+       <?php endif; ?>
+
+       <?php $categories = get_categories(); ?>
+       <?php if (is_array($categories)): ?>
+               <div class="row">
+               <label for="cat"><?php echo _AT('category'); ?></label><br />
+                       <select name="category_parent" id="cat">
+                               <option value="0">&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;<?php echo _AT('cats_uncategorized'); ?>&nbsp;&nbsp;]&nbsp;&nbsp;&nbsp;</option>
+                               <?php select_categories($categories, 0, $this->row['cat_id'], false); ?>
+
+                       </select>
+               </div>
+       <?php endif; ?>
+
+       <div class="row">
+               <?php  echo _AT('export_content'); ?><br />
+               <?php
+                       switch ($this->row['content_packaging']) {
+                               case 'none':
+                                               $none = ' checked="checked"';
+                                               break;
+
+                               case 'top':
+                                               $top     = ' checked="checked"';
+                                               break;
+
+                               case 'all':
+                                               $all    = ' checked="checked"';
+                                               break;
+                       }
+                       ?>
+               <label for="none" ><input type="radio" name="content_packaging" value="none" id="none" <?php echo $none; ?> /><?php echo _AT('content_packaging_none'); ?></label><br />
+               <label for="ctop"><input type="radio" name="content_packaging" value="top" id="ctop"  <?php echo $top; ?> /><?php  echo _AT('content_packaging_top'); ?></label><br />
+               <label for="all"><input type="radio" name="content_packaging" value="all" id="all" <?php echo $all; ?> /><?php  echo _AT('content_packaging_all'); ?></label>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('syndicate_announcements'); ?><br />
+               <?php
+                               $rss_no = $rss_yes = '';
+
+                               if ($this->row['rss']) {
+                                       $rss_yes = ' checked="checked"';
+                               } else {
+                                       $rss_no = ' checked="checked"';
+                               }
+               ?>
+               <label for="rss_y"><input type="radio" name="rss" value="1" id="rss_y" <?php echo $rss_yes; ?> /><?php echo _AT('enable_syndicate'); ?></label><br />
+               <label for="rss_n"><input type="radio" name="rss" value="0" id="rss_n"  <?php echo $rss_no; ?> /><?php  echo _AT('disable_syndicate'); ?></label>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('access'); ?><br />
+               <?php
+                               switch ($this->row['access']) {
+                                       case 'public':
+                                                       $pub = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'protected':
+                                                       $prot    = ' checked="checked"';
+                                                       $disable = 'disabled="disabled"'; // disable the nofity box
+                                                       break;
+
+                                       case 'private':
+                                                       $priv   = ' checked="checked"';
+                                                       break;
+                               }
+
+                               if ($this->row['notify']) {
+                                       $notify = ' checked="checked"';
+                               }
+
+                               if ($this->row['hide']) {
+                                       $hide = ' checked="checked"';
+                               }
+               ?>
+               <input type="radio" name="access" value="public" id="pub" onclick="disableNotify();" <?php echo $pub; ?> /><label for="pub"><strong> <?php echo  _AT('public'); ?>: </strong></label><?php echo  _AT('about_public'); ?><br /><br />
+
+               <input type="radio" name="access" value="protected" id="prot" onclick="disableNotify();" <?php echo $prot; ?> /><label for="prot"><strong><?php echo  _AT('protected'); ?>:</strong></label> <?php echo _AT('about_protected'); ?><br /><br />
+
+               <input type="radio" name="access" value="private" id="priv" onclick="enableNotify();" <?php echo $priv; ?> /><label for="priv"><strong><?php echo  _AT('private'); ?>:</strong></label> <?php echo  _AT('about_private'); ?><br />
+               <input type="checkbox" name="notify" id="notify" value="1" <?php
+                       echo $disable;
+                       echo $notify; ?> /><label for="notify"><?php echo  _AT('email_approvals'); ?></label>
+               <br />
+               <input type="checkbox" name="hide" id="hide" value="1" <?php
+               echo $disable;
+               echo $hide; ?> /><label for="hide"><?php echo  _AT('hide_course'); ?></label>.
+       </div>
+
+       <div class="row">
+               <?php echo _AT('release_date'); ?><br />
+               <?php
+                       $rel_no = $rel_yes = '';
+
+                       if (intval($this->row['release_date'])) {
+                               $rel_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['release_date'], 8, 2);
+                               $today_mon   = substr($this->row['release_date'], 5, 2);
+                               $today_year  = substr($this->row['release_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['release_date'], 11, 2);
+                               $today_min   = substr($this->row['release_date'], 14, 2);
+                       } else {
+                               $rel_no = ' checked="checked"'; 
+                               $today_year  = date('Y');
+                       }
+
+               ?>
+
+               <input type="radio" name="release_date" value="0" id="release_now" <?php echo $rel_no; ?> /> <label for="release_now"><?php echo _AT('available_immediately'); ?></label><br />
+
+
+               <input type="radio" name="release_date" value="1" id="release_later" <?php echo $rel_yes; ?> /> <label for="release_later"><?php echo _AT('release_on'); ?></label> 
+               <?php
+                       $name = '_release';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+       </div>
+
+       <div class="row">
+               <?php echo _AT('end_date'); ?><br />
+               <?php
+                       $end_no = $end_yes = '';
+
+                       if (intval($this->row['end_date'])) {
+                               $end_yes = ' checked="checked"';
+
+                               $today_day   = substr($this->row['end_date'], 8, 2);
+                               $today_mon   = substr($this->row['end_date'], 5, 2);
+                               $today_year  = substr($this->row['end_date'], 0, 4);
+
+                               $today_hour  = substr($this->row['end_date'], 11, 2);
+                               $today_min   = substr($this->row['end_date'], 14, 2);
+                       } else {
+                               $end_no = ' checked="checked"'; 
+                               $today_year  = date('Y')+1;
+                       }
+
+               ?>
+
+               <input type="radio" name="end_date" value="0" id="end_now" <?php echo $end_no; ?> /> <label for="end_now"><?php echo _AT('no_end_date'); ?></label><br />
+
+               <input type="radio" name="end_date" value="1" id="end_later" <?php echo $end_yes; ?> /> <label for="end_later"><?php echo _AT('end_on'); ?></label> 
+               <?php
+                       $name = '_end';
+                       require(AT_INCLUDE_PATH.'html/release_date.inc.php');
+               ?>
+       </div>
+
+       <div class="row">
+               <?php
+                       if (($_POST['setvisual'] && !$_POST['settext']) || $_GET['setvisual']){
+                               echo '<input type="hidden" name="setvisual" value="'.$_POST['setvisual'].'" />';
+                               echo '<input type="submit" name="settext" value="'._AT('switch_text').'"  class="button"/>';
+                       } else {
+                               echo '<input type="submit" name="setvisual" value="'._AT('switch_visual').'" class="button"/>';
+                       }
+               ?>
+       </div>
+       <div class="row">
+
+               <label for="banner"><?php echo _AT('banner'); ?></label><br />
+               <textarea id="banner" cols="45" rows="15" name="banner"><?php echo $this->row['banner']; ?></textarea>
+       </div>
+<!-- FIX  -->
+<?php if (!$this->course) : ?>
+       <div class="row">
+               <label for="initial_content"><?php echo _AT('initial_content'); ?></label><br />
+               <select name="initial_content" id="initial_content" size="5">
+                       <option value="0"><?php echo _AT('empty'); ?></option>
+                       <option value="1" selected="selected"><?php echo _AT('create_basic'); ?></option>
+                       <?php 
+                       
+                       if ($course_row = mysql_fetch_assoc($result)) {
+                               do {
+                                       $Backup->setCourseID($course_row['course_id']);
+                                       $list = $Backup->getAvailableList();
+
+                                       if (!empty($list)) { 
+                                               echo '<optgroup label="'. _AT('restore').': '.$course_row['title'].'">';
+                                               foreach ($list as $list_item) {
+                                                       echo '<option value="'.$list_item['backup_id'].'_'.$list_item['course_id'].'">'.$list_item['file_name'].' - '.get_human_size($list_item['file_size']).'</option>';
+                                               }
+                                               echo '</optgroup>';
+                                       }
+                               } while ($course_row = mysql_fetch_assoc($result));
+                       }
+                       ?>
+                       </select>
+       </div>
+<?php endif; // !$course_id ?>
+
+<?php if ($this->isadmin) : ?>
+       <div class="row">
+               <?php  echo _AT('course_quota'); ?><br />
+               <?php 
+                       if ($this->row['max_quota'] == AT_COURSESIZE_UNLIMITED) { 
+                               $c_unlim = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_quota'] == AT_COURSESIZE_DEFAULT) {
+                               $c_def = ' checked="checked" ';
+                               $c_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $c_oth = ' checked="checked" ';
+                               $c_oth2 = '';
+                       }
+
+                       if ($this->course > 0) {
+                               $course_size = dirsize(AT_CONTENT_DIR . $this->course.'/');
+                       } else {
+                               $course_size = 0;
+                       }
+
+                       if ($this->course) {
+                               echo _AT('current_course_size') .': '.get_human_size($course_size).'<br />'; 
+                       }
+               ?>
+
+               <input type="radio" id="c_default" name="quota" value="<?php echo AT_COURSESIZE_DEFAULT; ?>" onclick="disableOther();" <?php echo $c_def;?> /><label for="c_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxCourseSize).')'; ?></label> <br />
+               <input type="radio" id="c_unlim" name="quota" value="<?php echo AT_COURSESIZE_UNLIMITED; ?>" onclick="disableOther();" <?php echo $c_unlim;?>/><label for="c_unlim"> <?php echo _AT('unlimited'); ?></label> <br />
+               <input type="radio" id="c_other" name="quota" value="2" onclick="enableOther();" <?php echo $c_oth;?>/><label for="c_other"> <?php echo _AT('other'); ?> </label> - 
+               <label for="quota_entered">Quota Entered</label>
+               <input type="text" id="quota_entered" name="quota_entered" <?php echo $c_oth2?> value="<?php if ($this->row['max_quota']!=AT_COURSESIZE_UNLIMITED && $this->row['max_quota']!=AT_COURSESIZE_DEFAULT) { echo bytes_to_megabytes($this->row['max_quota']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+       <div class="row">
+               <?php  echo _AT('max_file_size'); ?><br />
+               <?php 
+                       $max_allowed = megabytes_to_bytes(substr(ini_get('upload_max_filesize'), 0, -1));
+
+                       if ($this->row['max_file_size'] == AT_FILESIZE_DEFAULT) { 
+                               $f_def = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } elseif ($this->row['max_file_size'] == AT_FILESIZE_SYSTEM_MAX) {
+                               $f_max = ' checked="checked" ';
+                               $f_oth2 = ' disabled="disabled" ';
+                       } else {
+                               $f_oth = ' checked="checked" ';
+                               $f_oth2 = '';
+                       }
+               ?>
+               <input type="radio" id="f_default" name="filesize" value="<?php echo AT_FILESIZE_DEFAULT; ?>" onclick="disableOther2();" <?php echo $f_def;?> /><label for="f_default"> <?php echo _AT('default') . ' ('.get_human_size($MaxFileSize).')'; ?></label> <br />
+               <input type="radio" id="f_maxallowed" name="filesize" value="<?php echo AT_FILESIZE_SYSTEM_MAX; ?>" onclick="disableOther2();" <?php echo $f_max;?>/><label for="f_maxallowed"> <?php echo _AT('max_file_size_system') . ' ('.get_human_size($max_allowed).')'; ?></label> <br />
+               <input type="radio" id="f_other" name="filesize" value="2" onclick="enableOther2();" <?php echo $f_oth;?>/><label for="f_other"> <?php echo _AT('other'); ?> </label> - 
+               <label for="filesize_entered">Filesize entered</label>
+               <input type="text" id="filesize_entered" name="filesize_entered" <?php echo $f_oth2?> value="<?php if ($this->row['max_file_size']!=AT_FILESIZE_DEFAULT && $this->row['max_file_size']!=AT_FILESIZE_SYSTEM_MAX) { echo bytes_to_megabytes($this->row['max_file_size']); } ?>" size="4" /> <?php echo _AT('mb'); ?>
+       </div>
+
+<?php else: ?>
+       <input type="hidden" name="quota" value="<?php echo $this->row['max_quota']; ?>" />
+       <input type="hidden" name="filesize" value="<?php echo $this->row['max_file_size']; ?>" />
+       <input type="hidden" name="tracking" value="<?php echo $this->row['tracking']; ?>" />
+<?php endif; ?>
+
+       <div class="row">
+               <label for="copyright"><?php echo _AT('course_copyright'); ?></label><br />
+               <textarea name="copyright" rows="2" cols="65" id="copyright"><?php echo $this->row['copyright']; ?></textarea>
+       </div>
+       <div class="row">
+               <?php 
+            if ($this->row['icon'] != ''): 
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                if (file_exists($path.$this->row['icon'])) {
+                    if (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) {
+                        $custom_icon_path = 'get_course_icon.php/?id='.$this->row['course_id'];
+                    } else {
+                        $_base_href = 'content/' . $this->row['course_id'] . '/';
+                    }
+                } else {
+                    $_base_href = "images/courses/";   //$_base_href = 'get_course_icon.php/?id='.$row['course_id'];
+                }
+
+            $force_get = (defined('AT_FORCE_GET_FILE') && AT_FORCE_GET_FILE) ? true : false;
+            echo "<input type='hidden' name='boolForce' id='boolForce' value='$force_get' />";
+        
+       //include(AT_INCLUDE_PATH.'html/course_icon.inc.php');        
+        ?>
+               <img id="i0" src="<?php echo ($custom_icon_path=='')?$_base_href.$this->row['icon']:$custom_icon_path; ?>" alt="<?php echo $this->row['icon']; ?>" border="1" height="79" width="79"  style="float: left; margin: 2px;" />
+
+               <?php else: ?>
+                       <img id="i0" src="images/clr.gif" alt="" style="float: left; margin: 2px;" border="1" height="79" width="79"  />
+                       <input type='hidden' name='boolForce' id='boolForce' value='' />
+               <?php endif; ?>
+               <div style="width:40%; float:left;">
+               <label for="icons"><?php echo _AT('icon'); ?></label><br />
+               <select name="icon" id="icons" onchange="SelectImg()">
+                       <option value=""><?php echo _AT('no_icon'); ?></option>
+            <?php // ------------- custom course icons
+                $path = AT_CONTENT_DIR.$this->row['course_id']."/custom_icons/";
+                $boolCustom = false;
+                $optCount = 0;
+
+                if (is_dir($path)) {
+                    $boolCustom = true;  // true if custom icons are uploaded, otherwise false
+                    
+                    /*$files = scandir($path);  //SCANDIR STOPS ATUTOR WHEN RUN AS INSTRUCTOR, BUT NOT AS ADMIN. WHY? -Gorzan */
+                    
+                    /* PHP 4 REPLACEMENT FOR SCANDIR */
+                                       $dh  = opendir($path);
+                                       while (false !== ($filename = readdir($dh))) {
+                                               $files[] = $filename;
+                                       }
+
+                                       /*END PHP 4 REPLACEMENT FOR SCANDIR*/
+                    echo "<optgroup label='"._AT('custom_icons')."'>";
+                    foreach($files as $val) {
+                                               $file_ext = substr(strtolower($val), -3);
+                        if ($file_ext == "jpg" || $file_ext == "png" || $file_ext == "gif") {
+                            $optCount++;
+                            echo "<option value='".$val."'";
+                            if ($val == $this->row['icon']) {
+                                echo 'selected="selected"';
+                            }
+                            echo ">".$val."</option>";
+                        }
+                    }
+                    echo "</optgroup>";
+                }
+                
+            ?>
+                       <?php // ------------- other icons
+
+                               $course_imgs = array();
+                               if ($dir = opendir(AT_INCLUDE_PATH.'../images/courses/')) {
+                                       while (false !== ($file = readdir($dir)) ) {
+                                               if( ($file == '.') || ($file == '..')) { 
+                                                       continue;
+                                               }
+                                               $course_imgs[] = $file;
+                                       }               
+                                       closedir($dir); 
+                               }
+                               sort($course_imgs);
+                if ($boolCustom == true) {
+                    echo "<optgroup label='"._AT('builtin_icons')."'>";
+                }
+                               foreach ($course_imgs as $file) {
+                                       echo '<option value="' . $file . '" ';
+                                       if ($file == $this->row['icon']) { 
+                                               echo 'selected="selected"'; 
+                                       }
+                                       echo ' >' . $file . '</option>';        
+                               }
+                if ($boolCustom == true) {
+                    echo "</optgroup>";
+                }
+                       ?>
+               </select><?php echo "&nbsp;&nbsp;&nbsp; "._AT('or'); ?>
+       </div>
+            <!-- div class="row" style="float:right;width:40%;">
+            <?php echo _AT('upload_icon'); ?><br />
+               <label for="customicon"><input type="file" name="customicon" title="custom icon" id="customicon" value="<?php echo $_POST['customicon']; ?>"/></label><br />
+                <small><?php echo _AT('upload_icon_text'); ?></small>
+            </div -->
+
+        <?php  require_once(AT_INCLUDE_PATH.'../mods/_core/courses/html/course_icon.inc.php'); ?>
+
+        <br style="clear: left;" />
+
+       </div>
+
+    <div style="clear: both;"></div>
+
+    
+
+       <div class="buttons">
+               <?php
+            echo "<input type='hidden' name='custOptCount' id='custOptCount' value='".$optCount."' />";
+            echo "<input type='hidden' name='courseId' id='courseId' value='".$this->row['course_id']."' />";
+               ?>
+
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" accesskey="s" /> 
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel');?>" />
+       </div>
+    </fieldset>
+</div>
+
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/statistics/course_stats.tmpl.php b/docs/themes/simplified-desktop/instructor/statistics/course_stats.tmpl.php
new file mode 100644 (file)
index 0000000..dac7f60
--- /dev/null
@@ -0,0 +1,179 @@
+<?php if ($this->mobile_device_type == IPAD_DEVICE): ?>
+<table cellspacing="1" cellpadding="1" border="0" class="bodyline" summary="course statistics" align="center">
+       <tr>
+               <th colspan="2" class="cyan"><small class="bigspacer"><?php
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.($this->last_month).SEP.'year='.$this->last_year.'">';
+                       echo ' '.AT_date('%F', $this->last_month, AT_DATE_INDEX_VALUE ); ?></a> |</small>
+                       <?php echo AT_date('%F', $this->month, AT_DATE_INDEX_VALUE ); ?> <small class="bigspacer">| <?php
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.$this->next_month.SEP.'year='.$this->next_year.'">';
+                       echo AT_date('%F', $this->next_month, AT_DATE_INDEX_VALUE); ?> </a></small></th>
+       </tr>
+<?php
+               if (($this->num_days == 0) || ($this->empty)) {
+                       echo '<tr>';
+                       echo '<td class="row1" colspan="2">'._AT('no_month_data').'</td>';
+                       echo '</tr>';
+                       echo '</table>';
+                       require(AT_INCLUDE_PATH.'footer.inc.php');
+                       exit;
+               }
+?>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('total'); ?>:</strong></td>
+               <td class="row1"><?php echo $this->total_logins; ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('maximum'); ?>:</strong></td>
+               <td class="row1"><?php echo $this->max_total_logins; ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('minimum'); ?>:</strong></td>
+               <td class="row1"><?php
+               if ($this->min_total_logins < 99999999) {
+                       echo $this->min_total_logins; 
+               } else {
+                       echo '0';
+               } ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php   echo _AT('average'); ?>:</strong></td>
+               <td class="row1"><?php echo number_format($this->avg_total_logins, 1); ?> <?php   echo _AT('per_day'); ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+
+       <tr>
+               <td class="row1" valign="top" align="right" <strong><?php   echo _AT('graph'); ?>:</strong></td>
+               <td class="row1">
+                       <table border="0" cellspacing="0" cellpadding="0">
+                       <tr>
+                               <td valign="top" class="graph1"><small><?php echo $this->max_total_logins; ?></small></td>
+
+<?php
+                       foreach ($this->days as $day => $logins) {
+                       $dd++;
+                               echo '<td valign="bottom" class="graph"><img src="images/clr.gif" height="'.(($this->max_total_logins*$this->multiplyer_height) % $this->block_height + $this->block_height).'" width="10" alt="" /><br /><img src="images/blue.gif" height="'.($logins[0]*$this->multiplyer_height).'" width="9" alt="'.$logins[0].' '._AT('guests').' ('.($logins[0]+$logins[1]).' '._AT('total').')" /><br /><img src="images/red.gif" height="'.($logins[1]*$this->multiplyer_height).'" width="9" alt="'.$logins[1].' '._AT('members').' ('.($logins[1]+$logins[0]).' '._AT('total').')" /><br /><small>'.$dd.'&nbsp;</small></td>';
+
+                       } while ($row = mysql_fetch_array($this->result));
+?>
+
+                       </tr>
+                       <tr>
+                               <td valign="top"><small>0</small></td>
+                       </tr>
+                       </table>
+
+                       <small><?php  echo _AT('legend'); ?>: <img src="images/red.gif" height="10" width="10" alt="<?php echo _AT('red_members'); ?>" /> <?php   echo _AT('members'); ?>,
+                               <img src="images/blue.gif" height="10" width="10" alt="<?php echo _AT('blue_guests'); ?>" /> <?php echo _AT('guests'); ?>.</small>
+               </td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('raw_data'); ?>:</strong></td>
+               <td class="row1" align="center">
+       
+               <table class="data static" summary="" rules="cols">
+               <thead>
+               <tr>
+                       <th scope="col"><?php echo _AT('date');    ?></th>
+                       <th scope="col"><?php echo _AT('guests');  ?></th>
+                       <th scope="col"><?php echo _AT('members'); ?></th>
+               </tr>
+               </thead>
+               <tbody>
+               <?php $short_name = $month_name_con['en'][$month-1]; ?>
+               <?php foreach ($this->days as $day => $logins):?>
+                       <tr>
+                               <td><?php echo $short_name.' '.$day; ?></td>
+                               <td><?php echo $logins[0]; ?></td>
+                               <td><?php echo $logins[1]; ?></td>
+                       </tr>
+               <?php endforeach; ?>
+               <tbody>
+               </table>
+
+               </td>
+       </tr>
+       </table>
+<?php endif;?>
+<?php if ($this->mobile_device_type != IPAD_DEVICE): ?>
+
+<table style="width: 100%" cellspacing="1" cellpadding="1" border="0" class="bodyline" summary="course statistics" align="center" frame="box" >
+       <tr>
+               <th colspan="2" class="cyan"><small class="bigspacer"><?php
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.($this->last_month).SEP.'year='.$this->last_year.'">';
+                       echo ' '.AT_date('%F', $this->last_month, AT_DATE_INDEX_VALUE ); ?></a> |</small>
+                       <?php echo AT_date('%F', $this->month, AT_DATE_INDEX_VALUE ); ?> <small class="bigspacer">| <?php
+                       echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.$this->next_month.SEP.'year='.$this->next_year.'">';
+                       echo AT_date('%F', $this->next_month, AT_DATE_INDEX_VALUE); ?> </a></small></th>
+       </tr>
+<?php
+               if (($this->num_days == 0) || ($this->empty)) {
+                       echo '<tr>';
+                       echo '<td class="row1" colspan="2">'._AT('no_month_data').'</td>';
+                       echo '</tr>';
+                       echo '</table>';
+                       require(AT_INCLUDE_PATH.'footer.inc.php');
+                       exit;
+               }
+?>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('total'); ?>:</strong></td>
+               <td class="row1"><?php echo $this->total_logins; ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('maximum'); ?>:</strong></td>
+               <td class="row1"><?php echo $this->max_total_logins; ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('minimum'); ?>:</strong></td>
+               <td class="row1"><?php
+               if ($this->min_total_logins < 99999999) {
+                       echo $this->min_total_logins; 
+               } else {
+                       echo '0';
+               } ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php   echo _AT('average'); ?>:</strong></td>
+               <td class="row1"><?php echo number_format($this->avg_total_logins, 1); ?> <?php   echo _AT('per_day'); ?></td>
+       </tr>
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+
+
+       <tr><td height="1" class="row2" colspan="2"></td></tr>
+       <tr>
+               <td class="row1" valign="top" align="right"><strong><?php echo _AT('raw_data'); ?>:</strong></td>
+               <td class="row1" align="center">
+       
+               <table class="data static" summary="" rules="cols" frame="box">
+               <thead>
+               <tr>
+                       <th scope="col"><?php echo _AT('date');    ?></th>
+                       <th scope="col"><?php echo _AT('guests');  ?></th>
+                       <th scope="col"><?php echo _AT('members'); ?></th>
+               </tr>
+               </thead>
+               <tbody>
+               <?php $short_name = $month_name_con['en'][$month-1]; ?>
+               <?php foreach ($this->days as $day => $logins):?>
+                       <tr>
+                               <td><?php echo $short_name.' '.$day; ?></td>
+                               <td><?php echo $logins[0]; ?></td>
+                               <td><?php echo $logins[1]; ?></td>
+                       </tr>
+               <?php endforeach; ?>
+               <tbody>
+               </table>
+
+               </td>
+       </tr>
+       </table>
+<?php endif;?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/instructor/statistics/tracker/my_stats.tmpl.php b/docs/themes/simplified-desktop/instructor/statistics/tracker/my_stats.tmpl.php
new file mode 100644 (file)
index 0000000..b5e6d36
--- /dev/null
@@ -0,0 +1,44 @@
+<?php global $contentManager;?>
+<div class="table-surround">
+<table class="data static" summary="">
+<thead>
+<tr>
+       <th scope="col"><?php echo _AT('page'); ?></th>
+       <th scope="col"><?php echo _AT('visits'); ?></th>
+       <th scope="col"><?php echo _AT('duration'); ?></th>
+       <th scope="col"><?php echo _AT('last_accessed'); ?></th>
+</tr>
+</thead>
+<tbody>
+<?php
+       
+
+       if (mysql_num_rows($this->result) > 0) {
+               while ($row = mysql_fetch_assoc($this->result)) {
+                       if ($row['total'] == '') {
+                               $row['total'] = _AT('na');
+                       }
+
+                       echo '<tr>';
+                       echo '<td><a href='.AT_BASE_HREF.url_rewrite('content.php?cid='.$row['content_id']). '>' . $contentManager->_menu_info[$row['content_id']]['title'] . '</a></td>';
+                       echo '<td>' . $row['total_hits'] . '</td>';
+                       echo '<td>' . $row['total_duration'] . '</td>';
+                       if ($row['last_accessed'] == '') {
+                               echo '<td>' . _AT('na') . '</td>';
+                       } else {
+                               echo '<td>' . AT_date(_AT('forum_date_format'), $row['last_accessed'], AT_DATE_MYSQL_DATETIME) . '</td>';
+                       }
+                       echo '</tr>';
+               } //end while
+
+               echo '</tbody>';
+
+       } else {
+               echo '<tr><td colspan="4">' . _AT('none_found') . '</td></tr>';
+               echo '</tbody>';
+       }
+       ?>
+</tbody>
+</table>
+</div>
+
diff --git a/docs/themes/simplified-desktop/iphone.css b/docs/themes/simplified-desktop/iphone.css
new file mode 100644 (file)
index 0000000..d7466ac
--- /dev/null
@@ -0,0 +1,2312 @@
+/* Style is optimized for iphone. Note that -webkit properties create errors in the CSS validator. Relative units 
+for sizes are used unless it is a border. Classes beginning with ".fl-" override Mobile FSS, 
+see the API @ http://wiki.fluidproject.org/display/fluid/Mobile+FSS+API for more details. 
+*/
+html, body{
+       height: 100%;
+}
+#main{
+       padding-bottom: 2.3em;
+       overflow: auto;
+}
+
+body,ul,li {
+       padding:0;
+       margin:0;
+}
+
+.fl-theme-iphone{
+       background: white;      
+}
+
+#header{
+       width:100%;
+       height:1.2em;
+       line-height:2.813em;
+       padding:0;
+       font-size:1.063em;
+}
+
+#header-section-title {
+       text-align: center;
+       background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#6d8cb3),
+    color-stop(0.5, #6d8cb3),
+    color-stop(0.50, #4b6b90),
+    color-stop(0.5, #6d8cb3),
+    to(#4b6b90)
+    ); 
+  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#6d8cb3), to(#4b6b90));
+
+}
+
+.fl-theme-iphone .fl-navbar{
+       border: none;
+       border-top: none;
+}
+
+.fl-navbar a{
+       font-size: 0.969em;
+       background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#4b6b90),
+    color-stop(0.5, #6d8cb3),
+    color-stop(0.50, #4b6b90),
+    color-stop(0.5, #6d8cb3),
+    to(#4b6b90)
+    ); 
+}
+
+.fl-navbar .fl-tabs {
+       padding-top: .3em;
+       padding-bottom: .3em;
+       border-top: 1px solid black;
+       border-bottom: .5px solid black;
+       background-color: #4b6b90; 
+    height: 2em;   
+}
+
+#navigation-contentwrapper{
+       position: relative;
+       background-color: #4b6b90;
+       height: 2.5em; 
+}
+
+#navigation-bar{
+       height: 2.5em; 
+    border-bottom: .5px solid black;
+   /*padding-bottom: .3em;*/
+     
+}
+
+#wrapper{
+       width:100%;
+       overflow:hidden;
+       overflow: auto;
+       min-height: 100%;
+}
+
+#site-name, h1#section-title{
+       display: inline;
+       text-shadow: none;
+       font-size: 90%;
+       color: #4C566C;
+       color: white;
+       margin-bottom: 1em;
+       
+}
+
+/************************************************************************************************/
+/* "Navigation" button, also this CSS creates a button that looks exactly like a Mobile FSS tab.*/
+/************************************************************************************************/
+.navigation-bar-button{
+    border-width:5px;
+    -webkit-border-radius: 5px;
+       font-size: 18px;/*keep this in px*/
+       padding: 0 .3em;
+       color: white;
+       position: relative;
+       top: .69em; 
+       left: 0.188em; 
+    /* default mobile fss color scheme for tabs not AA compliant. Here is a compliant bg image: */
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+       -webkit-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -webkit-border-left-image: none;
+    -webkit-background-origin: border;
+    -webkit-background-clip: border;
+}
+
+.navigation-bar-button a:hover, .navigation-bar-button a:active, .navigation-bar-button a:focus{
+       background-color: white;
+}
+
+.fl-theme-iphone .fl-tabs li{
+    /* default mobile fss color scheme for tabs not AA compliant against a white foreground text.therefore its backgroud-image must be overrided */
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    ); 
+}
+.fl-theme-iphone .topnavlistcontainer .topnavlist-link {/*makes the navigation button link white*/
+       color: white;
+       text-decoration: none;
+       font-weight: bold;
+}
+
+#content_link_phone.topnavlist-link-highlight, fl-theme-iphone .topnavlistcontainer .topnavlist-link-highlight{/*makes the navigation button link highlight*/
+       color: #4c96f4;
+       text-decoration: none;
+       font-weight: bold;
+}
+
+
+
+#topnavlist-link {
+
+}
+
+ul#topnavlist {
+       display: none;
+       position: relative;
+       top: 1.2em;
+       z-index: 1000;
+       /*background-color: white;*/
+}
+
+div#content-link-container.flc-screenNavigator-navbar {
+  
+/*
+  border-width:5px;
+    -webkit-border-radius: 5px;
+       font-size: 18px; keep this in px
+       color: white;
+       
+    /* default mobile fss color scheme for tabs not AA compliant. Here is a compliant bg image: 
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+       -webkit-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -webkit-border-left-image: none;
+    -webkit-background-origin: border;
+    -webkit-background-clip: border;
+float: left;
+font-weight: bold;*/
+       color: #005689;
+}
+
+.content-link-surround a:active, .content-link-surround a:focus, .content-link-surround a:hover{
+       background: none;
+       
+}
+ #content_link_phone {
+       
+       display: block;
+       text-decoration: none;
+       
+    color: white;
+    font-style: bold;
+    color: #005689;
+}
+.resume{
+       font-size: 1em;
+}
+
+
+#home-guide{
+       position: absolute;
+       top: .45em;
+       right: 0.188em; 
+       font-size: 17px;/*keep this in px*/
+       white-space:nowrap;
+       display: inline;
+}
+
+ul.home-guide li a:hover, ul.home-guide li a:focus, ul.home-guide li a:active,
+ul.home-guide li.back a:hover, ul.home-guide li.back a:focus, ul.home-guide li.back a:active,
+ul.home-guide li.forward a:hover, ul.home-guide li.forward a:focus, ul.home-guide li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+
+/* main body attributes */
+p {
+    text-align: left;
+    line-height: 150%;
+       font-size: 1em;
+       padding:.75em 0;
+       margin: 0 auto;
+}
+
+p a {
+    text-decoration: underline;
+}
+
+p a:visited {
+       color: #3F2670;
+    background-color: transparent;
+}
+p a:active {
+       color: #A50707;
+    background-color: transparent;
+}
+
+h1, h2, h3, h4, h5, h6 {
+    color: #4C566C;
+    clear: right;
+    font: 100% Helvetica, Arial, sans-serif;
+       font-weight: bold;
+    margin: 0;
+       padding: 0;
+}
+h2, h3, h4, h5, h6{
+       padding-top: .5em;
+}
+h1 {
+    font-size: 160%;
+       color: #FFF;
+}
+
+
+h2 {
+    font-size: 150%;
+}
+
+h3.input-form {
+       padding-top: .875em;
+}
+h3.browse-courses{
+       font-size: 90%;
+       text-decoration: none;
+       clear: none;
+       display: inline;
+}
+
+h3 a {
+    font-size: 100%;
+}
+
+
+/************************************************************************************************/
+/* Preferences tabs */
+/************************************************************************************************/
+.etabbed-list-container        {
+       padding:0;
+       margin: 0;
+       width:70%;
+       clear: left;
+       height: 3em;
+}
+
+.prefs_buttontab {
+       padding:0;
+       margin: 0;
+       white-space: nowrap;
+}
+.prefs_tab{
+       padding:0.5em 0.3em 0;
+       margin: 0;
+       white-space: nowrap;
+    display: inline;
+}
+
+.prefs_tab_selected{  
+       padding:0.7em 0.3em 0;
+       margin: 0;
+       margin: 0;
+       font-weight:bold;
+       text-align:center;
+       white-space: nowrap;
+    display: inline;
+}
+
+/************************************************************************************************/
+/* link attributes */
+/************************************************************************************************/
+a:link, /*a:visited*/ a:focus  {
+       color: #4C566C;
+       
+}
+.top-tool a:link, .top-tool a:focus{
+       text-decoration: none;  
+}      
+
+/* main submit button */
+.button {
+       background-color: #808080;
+       color: black;
+       text-align: center;
+       -webkit-border-radius:3px;
+       padding-top: 0.313em;
+       padding-bottom: 0.313em;
+
+}
+.button:focus {
+       border:1px solid #A50707;
+       background-color:  #FFDAB9;     
+}
+/* small submit button at top */
+.button2 {
+       font-family: Helvetica,sans-serif;
+       background-color: #E9F4F3;
+
+}
+.button2:focus {
+       background-color: #E9F4F3;
+       border:  #ACCFCC  solid 1px;
+}
+
+/* Editor box large */
+.editorlargebox {
+       font-family: Helvetica,sans-serif;
+       background-color: #E9F4F3;
+       margin-left:1em;
+       padding-left: .2em;
+       padding-right: .5em;
+       padding-top: .5em;
+       padding-bottom: .4em;
+       border: 1px #ACCFCC solid;
+}
+
+/* edit content tabs */
+.buttontab {
+       background-color: #E6E6E6;
+       font-weight: 500;
+       border:0;
+       padding-left: .188em;
+       padding-right: .188em;
+       padding-top: .188em;
+
+}
+
+.tab {
+       color: black;
+       background-color: #E6E6E6;
+       border-top: 1px #B8AE9C solid;
+       border-left: 1px #B8AE9C solid;
+       border-right: 1px #B8AE9C solid;
+       text-decoration: none;
+       text-align: center;
+       font-weight: bold;
+
+       
+}
+.buttontab selected {
+       font-family: Helvetica, Arial, Helvetica, sans-serif;
+       background-color: #6F7172;
+       font-weight: 600;
+       border:0;
+       padding-left: .188em;
+       padding-right: .188em;
+       padding-top: .188em;
+
+}
+td.selected{
+       font-family: Helvetica, Arial, Helvetica, sans-serif;
+       font-weight: 600;
+       text-decoration: none;
+       text-align: center;
+       background-color: white;
+       border-top: 1px #B8AE9C solid;
+       border-left: 1px #B8AE9C solid;
+       border-right: 1px #B8AE9C solid;
+}
+
+.tab a:link, .etab a:visited {
+       color: #4C566C;
+       background-color: white;
+}
+
+/* the side menu */
+td.dropdown-heading {
+       background-color: #DBFDD4;
+       color: #595241;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-top: 1px solid #ECFEEA;
+}
+
+/* the side menu content */
+td.dropdown {
+       padding: 0.125em;
+       background-color: white;
+       color: black;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-bottom: 1px solid #ECFEEA;
+       font-weight: normal;
+}
+td.dropdown a, td.dropdown a:visited  {
+       color: #4C566C;
+       text-decoration: none;
+}
+td.dropdown a:hover {
+       color: #595241;
+       text-decoration: underline;
+}
+
+/* added for 1.4.2: */
+.results {
+       padding-left: 1.25em;
+}
+
+h5.search-results {
+       padding: 0.063em;
+       margin-bottom: 0.313em;
+       margin-top: 1em;
+       padding-top: 3em;
+       margin-left: 0.313em;
+}
+
+.test-box {
+       background-color: #F7F3ED;
+       color: #595241;
+       border-left: 1px solid #595241;
+       border-right: 1px solid #595241;
+       border-top: 1px solid #595241;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+/*preferences*/
+
+.input-form 
+table.tabbed-table {
+       width: 100%;
+       border:thin black solid;
+}
+table.tabbed-table th#left-empty-tab {
+       background-color: transparent;
+       width: 0.938em;
+       border-bottom: 1px solid #B8AE9C;
+}
+table.tabbed-table th#right-empty-tab {
+       text-align: right;
+       background-color: transparent;
+       border-bottom: 1px solid #B8AE9C;
+       width: 25em;
+       padding-right: 0.313em;
+}
+table.tabbed-table th#right-empty-tab a {
+       text-decoration: underline;
+}
+table.tabbed-table th.tab-spacer {
+       background-color: transparent;
+       width: 0.313em;
+       border-bottom: 1px solid #B8AE9C;
+}
+
+table.tabbed-table th.tab {
+       padding-top: 0.125em;
+       padding-bottom: 0.125em;
+       width: 6.875em;
+       background-color: #E9F4F3;
+       border-bottom: 1px solid #B8AE9C;
+       border-left: 1px solid #B8AE9C;
+       border-top: 1px solid #B8AE9C;
+       border-right: 1px solid #B8AE9C;
+}
+table.tabbed-table th.tab:hover {
+       background-color: #ACCFCC;
+}
+
+table.tabbed-table th.tab a:focus {
+       color: white;
+}
+table.tabbed-table th.selected {
+       padding-top: 0.125em;
+       padding-bottom: 0.125em;
+       width: 6.875em;
+       background-color: #ACCFCC;
+       border-left: 1px solid #B8AE9C;
+       border-top: 1px solid #B8AE9C;
+       border-right: 1px solid #B8AE9C;
+}
+
+table.tabbed-table a, table.tabbed-table a:visited, table.tabbed-table a:hover {
+       /* color: black;*/
+       color: #4C566C;
+       text-decoration: none;
+}
+
+
+.preference-buttons-container{
+       background-color: red;
+       height: 2.5em;
+       width: 100%;
+       text-align: center;
+}
+
+div.preference-buttons-container li{
+       display: inline; 
+       float: right;
+}
+
+.prefs_tab_selected{
+       font-style: italic;
+       width: 10%;
+}
+.prefs_tab{
+       width: 10%;
+}
+
+.etabbed-table{
+       margin: 0 auto;
+}
+#previewText{
+       font-family: monospace;
+       border: 2px solid rgb(0, 0, 0); 
+       padding: 2em;
+       width: 80%; 
+       color: rgb(255, 255, 255);
+       background-color: rgb(0, 0, 0);
+}
+#previewArea{;
+       padding: 0em;
+       border-bottom-width: 0; 
+       margin-left: auto; 
+       margin-right: auto; 
+       font-weight: normal; 
+       width: 70%;
+       float:left;
+       clear:right;
+}
+#display-settings-preview{
+       width:90%;
+       height:20em; 
+       margin: 0 auto;
+}
+#feedback{
+       width: 90%;
+}
+#defaultfontsize-wrapper{
+       width:90%; 
+}
+
+/* end of preferences */
+
+a#my-start-page {
+       padding: 0.125em;
+       padding-left:  0.938em;
+       background-repeat: no-repeat;
+       background-position: 0.125em 0.313em;
+}
+
+a#back-to {
+       padding-left: 1.25em;
+       background-image: url(images/back.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0;
+}
+
+.breadcrumbs, .previous-next /*a#guide*/{
+    /* The path bar, including breadcrumbs and add to favorites */
+       clear:both;
+    font-size: 1em;
+       padding:0;
+       color: #4C566C;
+       background-color: white;
+
+}
+#breadcrumbs-container{
+       background-color: #4d4d4d;
+       position: relative;
+}
+.breadcrumbs{
+       display:none;
+}
+h2.page-title  {
+       
+       
+}
+#subnavlistbacktopage{
+       float: left;
+}
+
+h1 {
+       margin-bottom: 0.313em;
+       
+}
+
+
+div#help {
+       border-left: 1px solid black;
+       border-right: 1px solid black;
+       border-bottom: 1px solid black;
+       padding-left: 0.313em;
+       padding-right: 0.313em;
+       padding-bottom: 0.313em;
+       background-color: #F7F3ED;
+       margin-left: 0.313em;
+       margin-right: 0.313em;
+       font-size: small;
+}
+
+h3#help-title {
+       margin-left: 0.313em;
+       margin-right: 0.313em;
+       border-left: 1px solid black;
+       border-right: 1px solid black;
+       padding: 0.063em;
+       background-color: #F7F3ED;
+}
+.line {
+       border-bottom: 1px solid black;
+}
+div#help p {
+       padding: 0;
+       margin: 0;
+}
+
+div#toctoggle {
+       float: left;
+       padding-left: 0.625em;
+}
+
+h1#section-title {
+       font-size: 90%;
+}
+/**********************************************************************/
+/*FOOTER*/
+/**********************************************************************/
+div#footer-links {
+       margin: 0 auto;
+       font-size: .938em;
+/* moved inside of #footer for mobile theme */
+}
+#footer{
+       /*width:100%;*/
+       height:2.3em;
+       background-color: #4b6b90;
+       margin-top: -2.3em;
+       position: relative;
+       clear: both;
+       
+}
+
+ul.footer-links-tabs li a:hover, ul.footer-links-tabs li a:focus, ul.footer-links-tabs li a:active,
+ul.footer-links-tabs li.back a:hover, ul.footer-links-tabs li.back a:focus, ul.footer-links-tabs li.back a:active,
+ul.footer-links-tabs li.forward a:hover, ul.footer-links-tabs li.forward a:focus, ul.footer-links-tabs li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+div#top-links a:link, div#top-links a:visited {
+       text-decoration:none;
+}
+
+#jumpmenu:focus{
+       background-color:#F6EAD6;
+}
+#jumpmenu{
+       margin: 0 auto;
+}
+
+a#editor-link {
+       background-color: #F7F3ED;
+       padding-top: 0.063em;
+       padding-bottom: 0.063em;
+       padding-left:  0.938em;
+       padding-right: 0.5em;
+       border: 1px solid #cccccc;
+       font-weight: normal;
+       text-decoration: none;
+}
+
+a#editor-link:hover {
+       background-color: #F7F3ED;
+       border: 1px solid #B8AE9C;
+}
+
+a#editor-link.off {
+       background-image: url(images/pen.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0.125em;
+}
+a#editor-link.on {
+       background-image: url(images/pen2.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0.125em;
+}
+
+
+/* for data tables */
+.table-surround {
+       border: #A9ADB0 1px solid;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
+       
+}
+
+table.data {
+       margin:0;
+       width:100%;
+       padding: 0;
+       color: #4C566C;
+       font-size: .8em;
+       text-align: left;
+       background-color: transparent;
+} 
+/* contains the headings */
+table.data th {
+
+       padding: 0.188em;
+}
+
+table.data th a {
+       color: #595241;
+       background-image: url('../default/images/sort.gif');
+       background-repeat: no-repeat;
+       background-position: right;
+}
+
+table.data tbody {
+/*
+       border-top: 1px solid #B8AE9C;
+       border-bottom: 1px solid #B8AE9C;
+       */
+}
+/*headings text*/
+table.data tbody th {
+       text-align: left;
+
+}
+
+table.data td {
+       padding: 0.188em;
+       color: black;
+       font-size: .875em;
+       font-style: normal;
+}
+table.data td a:link, a:visited{
+       /*color: black;*/
+       color: #4C566C
+}
+
+/*should table.data tbody tr:hover  and table.data tbody tr.selected  highlighting
+be improved to sync with Mobile FSS highlighting */
+table.data tbody tr:hover {
+       background-color: #efefef;
+       cursor: pointer;
+}
+
+table.data tbody tr.selected {
+       background-color: #E9F4F3;
+       cursor: auto;
+       border: 5px solid #E9F4F3;
+}
+
+table.data tfoot {
+       background-color: #F7F3ED;
+}
+
+table.data tfoot tr:first-child td {
+       padding: 0.313em;
+       background-image: url('images/arrow_ltr.gif');
+       background-repeat: no-repeat;
+       background-position: .25em 0.313em;
+}
+
+table.data.static tfoot td, table.data.static tfoot tr:first-child td {
+       /*border-top: 1px solid #B8AE9C;*/
+       padding: 0.313em;
+       background-image: none;
+       padding-left: 0;
+
+}
+/* add borders to row in Required Information, Personal Information*/
+.row{
+       padding:.375em 0;
+       /*border-bottom: 1px #cccccc solid;*/
+       font-size: 0.938em;
+}
+#last-row, .row-buttons, #last-row1, .row-blurb{
+       border: none;
+}
+#browse-courses-table{
+       font-size: .875em;
+}
+
+
+/*buttons*/
+table.data tfoot input {
+       background-color: #efefef;
+       font-weight: normal;
+       /*border:  #AAA  solid 1px;*/
+}
+table.data tfoot input:focus {
+       background-color: #FFDAB9;
+       /*border:  #AAA  solid 1px;*/
+}
+
+
+/* used for static tables with no form elements: */
+table.data.static tbody tr:hover {
+       background-color: transparent;
+       cursor: auto;
+}
+
+
+
+/* course browser: */
+
+div#browse {
+       margin-left: auto; 
+       margin-right: auto; 
+       width: 80%;
+}
+
+div.browse-selected {
+       background-image: url('images/side_arrow.gif'); 
+       background-repeat: no-repeat; 
+       padding-left: 0.563em; 
+       background-position: center left;
+}
+
+div.browse-unselected {
+       padding-left: 0.563em; 
+}
+
+ul.browse-list {
+       list-style: none;
+       padding:0;
+}
+
+/* feedback /errors */
+div#error {
+       width: 89%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #DD0000;
+       padding: 0.313em;
+       background-color: #F4DCDC;
+       color: #A50707;
+       background-color: #F4DCDC;
+       padding-left: 1.563em;
+       font-weight: bold;
+       -webkit-border-radius:5px;
+}
+div#error h4 {
+       color: black;
+       margin-left: 0;
+}
+
+div#error ul, div#feedback ul, div#help ul {
+       position: relative;
+       list-style: none;
+       margin-left: 0;
+       padding-left: 0;
+}
+
+div#error ul li{
+       margin-top: 0.313em;
+}
+
+div#feedback, div#info {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top: 0.313em;
+       margin-bottom: 0.313em;
+       padding: 0.313em;
+       font-family: Helvetica, Arial, sans-serif;
+       -webkit-border-radius:5px;
+       border: 1px solid #17B506;
+       background-color: #E7EFD0;
+       color: #3f4559;
+       font-size: 90%;
+       z-index: -1;
+}
+div#feedback li, div#info li, div#error li{
+       color: #4C566C;
+       z-index: -1;
+}
+
+div#help {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #ACCFCC;
+       padding: 0.313em;
+       background-color: #E9F4F3;
+       color: #024C41;
+}
+
+
+div#warning {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #FF8400;
+       padding: 0.313em;
+       background-color: #FFF6ED;
+       color: #D95900;
+       font-weight: bold;
+}
+acronym {
+       cursor: help;
+}
+
+div.news p {
+       margin: 0;
+       padding:0;
+}
+div.news span.date {
+       font-family:Helevetica, Arial, sans-serif;
+       color: #4C566C; 
+       font-size: .5em;
+}
+
+.news{
+       padding: 0;
+       margin-bottom: 1em;
+       margin-top: 1em;
+}
+/* home page links */
+div.home-link {
+       padding: 0.125em;
+       float: left;
+       text-align: center;
+       margin: 0.125em;
+       width: 7.5em;
+       height: 5.625em;
+}
+div.home-link:hover {
+       padding: 0.063em;
+       background-color: #F7F3ED;
+       border: 1px solid #afafaf;
+       float: left;
+       text-align: center;
+       margin: 0.125em;
+}
+div.home-link a {
+       text-decoration: none;
+       font-weight: bold;
+}
+
+div.home-link img {
+       border: 0;
+}
+
+/* sequence links */
+div#sequence-links {
+       
+}
+div#sequence-links a {
+       text-decoration: none;
+       display: block;
+}
+
+.previous-next{
+       display: block;
+}
+div.dropdown {
+       width: 12.5em;
+       padding: 0.125em;
+       background-color: white;
+       color: black;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-bottom: 1px solid #ECFEEA;
+       font-weight: normal;
+}
+
+div.dropdown-heading {
+       background-color: #ACCFCC;
+       color: #595241;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-top: 1px solid #ECFEEA;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+div.required {
+       font-weight: bold;
+       color: red;
+       font-size: large;
+       float: left;
+       position: relative;
+       margin-top: -0.313em;
+       height:  0.938em;
+       padding-right: 0.125em;
+}
+
+div#content_text {
+       margin-left: 0.313em;
+}
+
+#content{
+/*
+       padding-top:.5em;
+       margin-top: .5em;
+       background-color: #F5F5F5;
+       
+       border: #A9ADB0 1px solid;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       -webkit-border-bottom-right-radius: 5px;
+       -webkit-border-bottom-left-radius: 5px;*/
+       padding-top: .313em;
+       background-color: white;
+       z-index: 1000;
+}
+form {
+       display:inline;
+       max-width: 100%;
+}
+
+
+optgroup {
+       /*font-size: small;*/
+}
+
+/* paging*/
+div.paging {
+       margin-top: 1em;
+       text-align: center;
+}
+div.paging ul {
+    list-style: none;
+    display: inline;
+    padding: 0;
+       max-width: 10%;
+       margin-bottom: 1em;
+}
+div.paging li { 
+       display: inline; 
+       padding-left: 0.125em; 
+       padding-right: 0.125em;
+       padding-top: 0;
+       padding-bottom: 0;
+       width: 10%;
+}
+
+div.paging li a {
+       text-decoration: none;
+       padding-left: 0.25em;
+       padding-right: 0.25em;
+       border-left: 1px solid white;
+       border-right: 1px solid white;
+}
+
+div.paging li a:hover, div.paging li a.current {
+   border-left: 1px solid #000;
+   border-right: 1px solid #000;
+   color: black;
+}
+
+#tl_corner{
+
+       background-image:url(images/tl_corner.gif);
+       background-position: top left;
+       background-repeat: no-repeat;
+       padding:0;
+}
+
+div.tabs {
+       /* Navigational Plone Tabs(tm), implemented by customizing the a tag - they are surprisingly elegant. The power of CSS runs strong in these :) */
+    background-color: transparent;
+       border-collapse: collapse;
+       border-bottom: 1px solid #B8AE9C;
+       padding: 0.5em 0em 0em 2em;
+       white-space: nowrap;
+}
+
+div.tabs a {
+    /* The normal, unselected tabs. They are all links */
+    background-color: transparent;
+    border-color: #B8AE9C;
+    border-width: 1px; 
+    border-style: solid solid none solid;
+    color: #595241;
+    height: 1.2em;
+    margin-right: 0.5em;
+    padding: 0em 2em 0em;
+    
+}
+
+div.tabs a.selected {
+    /* The selected tab. There's only one of this */
+    background-color: white;
+    border-bottom: #B8AE9C 1px solid;
+    color: #595241;
+    font-weight: normal;
+}
+
+div.tabs a:hover, div.tabs a.active {
+    background-color: #B8AE9C;
+    border-bottom: 1px solid #B8AE9C;
+    color: white;
+}
+
+.headingbox a{
+       color: #4C566C;
+}
+.headingbox a:link, .headingbox a:visited{
+       text-decoration: none;
+}
+div.box {
+}
+h4.box {
+       background-color: #F5F5F5;
+       padding: .313em; 
+}
+h4.box a {
+       display: block;
+       color: #4C566C;
+       background-color: #F5F5F5;
+       text-decoration: none;
+}
+
+
+div.box {
+       padding: 0.313em;
+       background-color: #F5F5F5;
+       color: black;
+       border: 1px solid #B8AE9C;
+       font-size:0.85em;
+       font-weight: normal;
+       padding:0.125em;
+}
+
+h5.box { 
+    background-color: #6F7172;
+    border: 1px solid #B8AE9C;
+    border-style: solid solid none solid;
+    color: Black;
+    padding: 0em 1em 0em 1em;
+    display: inline;
+       font-size:  1em;
+    height: 1em;
+}
+
+div.box a:link {
+       text-decoration: none;
+}
+
+div.box a:visited {
+       color: #2A6C28;
+       text-decoration: none;
+}
+
+div.box a:hover {
+       text-decoration: underline;
+}
+
+.boxDetails {
+    text-align: right;
+}
+
+div.box .content {
+    padding: 1em;
+       font-size:  1em;
+}
+
+div.box a.close {
+    float: right;
+    text-transform: none;
+    border-left: 1pt solid #B8AE9C;
+    padding: 0em 0.2em;
+}
+
+div.box h1, 
+div.box h2, 
+div.box h3, 
+div.box h4 {
+    margin: 0;
+    padding: 0;
+}
+
+div.box .even {
+    background-color: #F7F3ED;
+}
+
+div.box .odd {
+    background-color: transparent;
+}
+
+
+/* users/index.php */
+
+div.course {
+       position: relative;
+       width: 12.5em;
+       height: 10.5em;
+       border: rgb(204, 204, 204) 1px solid;
+       background-color: #F7F7F7;
+       float: left;
+       margin: 0.188em;
+       padding: 0.313em;
+}
+
+div.course.break {
+       clear: left;
+}
+
+div.course h2 {
+       border: 0;
+       font-weight: normal;
+       font-size: large;
+
+}
+
+div.course:hover {
+       background-color:#FBF4E9;
+       border: #B8AE9C 1px solid;
+}
+
+
+table.data .odd img.headicon{
+       width: 2.469em;
+       height: 2.469em; 
+       -webkit-border-radius:5px;
+}
+
+.icon{
+       -webkit-border-radius:10px;
+       border-color: white;
+       width: 2.5em;
+       height: 2.5em;
+       float: left;
+}
+div.course div.shortcuts {
+       text-align: right;
+       clear: left;
+       vertical-align: middle;
+       width: 12.5em;
+}
+
+fieldset#shortcuts {
+       float: right;
+       background-color: #FEFDEF;
+       border: 1pt solid #B8AE9C;
+       margin: -5pt 5pt 5pt 5pt;
+       padding-right: 10pt;
+       padding-bottom: 5pt;
+       padding-left: 10pt;
+}
+
+.shortcuts{
+
+}
+
+fieldset {
+       margin-bottom: 10pt;
+       -webkit-border-radius:5px;
+       padding: 0 0.375em;
+       width: 90%;
+       margin: 0 auto; 
+       width:95%;
+       margin:0 auto;
+       border:thin #6D7B8D solid;
+       border:thin #A9ADB0 solid;
+       margin-bottom: 1em;
+}
+#shortcuts legend {
+}
+#shortcuts ul {
+       position: relative;
+       margin-top: 0pt;
+       margin-bottom: 0pt;
+       margin-left: 0pt;
+       list-style-type:  none;
+       padding-left: 0pt; 
+}
+
+/*a#guide,*/ a#my-courses-link {
+       background-color: #6D84A2;
+}
+
+#guide img{
+       border:none;
+}
+
+#guide a:hover{
+       
+}
+
+div#content-test, div.content-from-module {    
+       float: left;
+       margin-top: 2em;
+       margin-bottom: 2em;
+       padding-right: 5pt;
+       width: 80%;
+}
+
+div#container {
+       text-align: left;
+       margin: 0 auto;
+       padding: 0;
+       border:0;
+       width: 95%;
+}
+
+/* index page */
+ul#home-links, ul#home-detail-links {
+       list-style: none;
+}
+
+/*my start page */
+#my_courses_container{
+       text-align: left;
+       margin: 0 auto;
+       border:0;       
+       min-width: 100%;
+}
+#my-courses-navlist{
+}
+.my-courses-list{
+       border: solid 1px #A9ADB0;
+       -webkit-border-radius:8px;
+       -moz-border-radius:8px;
+       border-radius:8px;
+       padding: .375em;
+       color: #4C566C;
+       margin-bottom: .375em; 
+       margin-top: .375em;
+       padding: .375em;
+}
+.my-courses-list-ul{
+       margin: 0 auto;
+       padding-left: 0;
+       width: 100%;
+}
+.my-courses-links{
+       font-size: 80%;
+       padding-top: .75em;
+}
+.my-courses-resume{
+       float: right;
+}
+.fl-link-summary{
+       padding-left: 0.875em;
+       padding-bottom: 0.875em;
+       display: inline;
+}
+
+.fl-theme-iphone [class*="fl-list"] > li .fl-link-summary{
+       color: #4C566C;
+}
+.current_head{
+       padding-top: .5em;
+}
+
+.current_box{
+       max-width: 100%;
+}
+.current_list{
+       width: 95%;
+       padding: 0.375em;
+}
+.current_list li{
+       list-style-type: none;
+       font-style: bold;
+       padding-bottom: .5em;
+       padding-left: .5em;
+       margin:0;
+}
+.current_list_date_time{
+       font-size: 65%;
+}
+.current_list img{
+}
+
+#show-all, #show-pages{
+       text-align: center;
+       
+}
+/* enrollment tabs */
+#navlist {
+       padding: 0;
+       margin-left: 0;
+       margin-right: auto;
+       margin-left: auto;
+       margin-bottom: .25em;
+       margin-top: 0.938em;
+       white-space: nowrap;
+}
+
+#navlist li {
+       list-style: none;
+       display: inline;
+       margin: 0;
+}
+
+#navlist li a {
+       padding: 0.188em 0.563em;
+       border: 1px solid #F7F3ED;
+       border-bottom: none;
+       background-color: #F7F3ED;
+       text-decoration: none;
+       margin-left: .25em;
+       white-space: nowrap;
+}
+
+#navlist li a:hover, #navlist li a:active {
+       color: #000;
+       background-color: #fff;
+}
+
+/* tree */
+.img-size-tree {
+       vertical-align: middle;
+       margin-top: 0;
+    padding:0;
+       height:1.45em;
+       width:1.5em;
+}
+/* profile page */
+
+dl#public-profile dt {
+       float: left;
+       width: 90%;
+       border-right: 1px solid #F7F3ED;
+       padding: 0.313em 0.313em 0.313em 0;
+
+       margin-right: 0.313em;
+}
+dl#public-profile dd {
+       margin: 0;
+}
+
+div.social-right{
+       margin-left:.5em;
+       margin-top: 1em;
+}
+div.social-left{
+       margin-left:.5em;
+}
+h4.profile{
+       float: left;
+}
+.social-wrapper h3{  
+       padding-top: .5em;
+}
+.my-contacts h3{
+       padding-bottom: .375em;
+}
+img#profile{
+       border: 1px #cccccc solid;
+       margin-left: 1em;
+}
+dd{
+    margin: 0;
+}
+
+/** forum stuff **/
+#forum-thread li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; float:left; width: 97%; list-style: none; }
+#forum-thread li.even { background-color: #F7F3ED; border-top: none; }
+#forum-thread li.odd { background-color: #fff; }
+div.forum-post-author { float:left; width:19.375em; padding:0.5em 0.625em; }
+div.forum-post-author a.title {font-size: 1.1em; line-height: 1.2em; font-weight: bold; text-decoration:none; }        
+div.forum-post-author img.profile-picture { border: 2px solid #F7F3ED; text-align:right;}
+div.forum-post-content { margin-left: 19.375em; padding: 0.313em 0 1.125em 1.125em;}
+div.forum-post-content h3 { font-weight: 500; float:left;clear:right; }
+div.forum-post-ctrl { float: right; padding-right: 0.313em; color: #a1a1a1;}
+div.forum-post-ctrl a { text-decoration: none; }
+div.forum-post-ctrl span { color: black; background-color: #fefdc2; padding: 0.188em; }
+div.forum-post-content p.date { color: #a1a1a1; border-bottom: 1px solid #F7F3ED; }
+div.forum-post-content div.body p { margin-bottom:1em; }
+div.forum-paginator{border:thin #cccccc solid; padding:.3em; width:95%;margin:auto;background-color:#F7F3ED;}
+span.forum-paginator-active{font-weight:700;text-decoration:underline; height:2em;}
+
+
+
+/** inbox stuff - reuses some of the forum layout **/
+#inbox-msg li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; width: 95%; list-style: none; min-height: 11em;}
+       
+/*  tool list on admin home and manage screens  */
+ li.top-tool { 
+       list-style: none;
+       padding: 0.125em 0.125em 0.125em  0.938em;
+       margin-bottom: 0.313em; 
+       line-height: 200%; 
+       border: solid 1px #A9ADB0;
+       -webkit-border-radius:5px;
+}
+       
+li.child-tool a { 
+       font-size: x-small;
+       font-weight: normal; 
+}
+
+/* ol#tools>li>ul, */ 
+ul.child-top-tool {
+       margin-top: -0.313em;
+       padding-left: 0;
+       margin-left: 0;
+       display: inline;
+}
+
+li.child-tool {
+       display: inline;
+       margin-right: 0.313em;
+       font-size: x-small;
+}
+
+
+/* browse courses */
+div.browse-course {
+       padding-bottom: 0.625em;
+}
+
+dl.browse-course {
+       width: 90%;
+       padding-bottom: 0.625em;
+       background-color: #fffaf0;
+       margin:auto;
+       margin-left:1em;
+}
+dl.browse-course dt {
+       float: left;
+       font-weight: bold;
+       width: 25%;
+       text-align: right;
+       clear: left;
+       padding: 0.313em 0.625em 0.313em 0;
+       vertical-align: middle;
+
+}
+dl.browse-course dd {
+       margin-bottom: 0.313em;
+       clear: right;
+       padding: 0.313em 0 0.313em 0.625em;
+       margin-left: 26%;
+
+}
+.row .buttons{
+       border: none;
+}
+
+/*  form fields grouping for WCAG 2.0 conformance*/
+
+fieldset.group_form{
+       width:95%;
+       margin:0 auto;
+       margin-bottom: 1em;
+       border: 1px #6D7B8D solid;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+       margin-top: .5em;
+}
+
+legend.group_form{
+       background-color:white;
+       font-weight: 600;
+       color: #4c566c;
+       padding:.5em;
+       border: 1px #6D7B8D solid;
+       -webkit-border-radius:5px;
+}
+
+/* highlight active links for WCAG 2.0 conformance */
+
+a:active:not(.subnavcontain a), 
+a:hover:not(.subnavcontain a),
+a:focus:not(.subnavcontain a),
+.buttontab-hover{
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+}
+
+/*Overrides above a:active, a:hover, a:focus so the "Navigation" button itself isn't highlighted when activated.
+Ensure styling matches that in fl-tabs.*/
+.topnavlistcontainer a:hover, .topnavlistcontainer a:active, .topnavlistcontainer a:focus{
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+}
+
+
+/*Added by Silvia */
+div.column_primary {
+       float: left;
+       width: 42%;
+       margin: 0.313em;
+       padding: 0;
+       min-width: 10.625em;
+/*     position: relative;*/
+}
+
+div.column_equivalent{
+       float: left;
+       width: 52%;
+       margin-left:  0.938em;
+       margin-top: 0.313em;
+       margin-right: 0.313em;
+       margin-bottom: 0.313em;
+       min-width: 10.625em;
+       padding: 0.313em;
+       border: 1px solid #EEE;
+       background-color: #FFF;
+/*     position: relative;*/
+
+}
+
+div.resource_box{
+       border: 1px solid #aaa;
+       width: 95%;
+       margin: 0.313em;
+       padding: 0.313em;
+       min-width: 9.375em;
+       background-color: #eee;
+/*     position: relative;*/
+}
+
+h2.alternatives_to{
+       margin-top: 0.75em;
+       font-size: 90%;
+       color: #A50707;
+}
+
+div.alternative_box{
+       border: 1px solid #ddd;
+       /*width: 90%;*/
+       margin: 0.313em;
+       padding: 0.313em;
+       min-width: 9.375em;
+       background-color: #fff;
+}
+
+div.alternative_box legend {
+       color: #000;
+}
+
+div.resource_box legend {
+       color: #000;
+}
+
+label.primary a{
+       color: #A50707;
+       font-weight: bolder;
+       background-color: white;
+}
+
+/* format of "table of contents" on content page */
+#toc a                 { display:block; margin:0.188em; }
+#toc .h2, #toc .h3, #toc .h4, #toc .h5, #toc .h6{ 
+       padding:0 0 0 0;
+}
+
+
+fieldset#toc {
+       background-color: #FEFDEF;
+       border: 1pt solid #B8AE9C;
+       width:89%;
+}
+
+#side-menu{
+       overflow:hidden;
+}
+
+/* cleans up glossary question mark line spacing*/
+sup{
+       border: 1pt solid #B8AE9C;
+       vertical-align:bottom;
+       margin-top: 1em;
+}
+
+/* jQuery tooltip styles */
+#tooltip{
+       position:absolute;
+       z-index:3000;
+       border:3px solid #111;
+       background-color:#eeeeee;
+       padding:0.313em;
+}
+#tooltip h3,#tooltip div{
+       margin:0;
+}
+
+/* style for home page modules "detail view" */
+div.home_box {
+       padding: .75em 0;
+       margin: 0 auto;
+}
+
+.outside_box{
+       background:#e0e0e0;
+       width: 17em;
+       margin: .375em;
+       padding: 0;
+       height:9.8em;
+}
+
+.inside_box{
+       width:100%;
+       margin:auto;
+       height:52%;
+       margin-bottom:.2em;
+       background:#eeeeee;
+
+}
+.details_or{
+       width:28.8em;
+       height:9.8em;
+       margin:0;
+       background-image:url(images/details_r.png);
+       background-position: top right;
+       background-repeat:no-repeat;
+}
+.details_ol{
+       height:9.8em;
+       margin:0;
+       width:.45em;
+       background-image:url(images/details_l.png);
+       background-position: top left;
+       background-repeat:no-repeat;
+}
+.details_ir{
+       width:.5em;
+       height:100%;
+       float:right;
+       background-image:url(images/details_ir.png);
+       background-position: top right;
+       background-repeat:no-repeat;
+}
+.details_il{
+       height:100%;
+       float:left;
+       background-image:url(images/details_il.png);
+       background-position: top left;
+       background-repeat:no-repeat;
+}
+.home-title{
+       font-size:12pt;
+}
+.buttonbox{
+       float:right;
+}
+.details_text{
+       margin-left:1em;
+}
+.draggable_selected {
+       background-color: lightgrey;
+       cursor: move;
+}
+
+div.menuedit{
+       float:right;
+       margin-top:-1.2em; 
+       border:1px solid #cccccc;
+}
+li.folders {
+       list-style: disc url(../../images/folder.gif) outside;
+       font-family: Helvetica,sans-serif;
+       margin-bottom: 0;
+       margin-top: 0;
+       margin-right: 0;
+}
+
+li.folders .disabled {
+       color: #B8AE9C;
+}
+
+ul.folder{
+       list-style-image:none;
+       list-style-position:outside;
+       list-style-type:none;
+       margin:0em;
+       padding:0em;
+}
+
+
+/*     hiding/showing  results-display */
+
+
+div#results-display{
+       display: none;
+}
+
+ul#topnavlist li {
+       padding: 0;
+       margin: 0;
+}
+       
+ul#topnavlist>li:hover,
+ul#topnavlist>li:hover a, 
+ul#topnavlist>li:active,
+ul#topnavlist>li:active a,
+ul#topnavlist>li:focus, 
+ul#topnavlist>li:focus a {
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+}
+
+ul#topnavlist li a  {
+       color: #4C566C;
+       text-decoration: none;
+}
+
+
+div.toolcontainer{
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
+}
+
+
+ul#subnavlist li a:hover, ul#subnavlist li a:focus, ul#subnavlist li a.active{ /*
+       color: black;
+       text-decoration:none;*/
+}
+#subnavlist{
+       display: none;
+}
+ul#subnavlist li a, ul#subnavlist li a:visited {
+       color: #4C566C;
+}
+
+
+/* list attributes */
+ul {
+       list-style: none;
+}
+li {
+       color: black;
+       list-style: none;
+}
+
+ol#tools>li:hover {
+       /*border: 1px solid #e0e0e0;*/
+       background-color: #e6e6e6;
+       color: black;   
+       
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+       
+}
+ol#tools>li:hover a{
+       color: white;
+}
+
+#contentwrapper{
+       
+}
+#content-contentwrapper{
+       height:100%;
+    position:relative; 
+       z-index:1000;                   
+       width:100%;
+       overflow:hidden;
+}
+
+#leftcolumn{
+       float: left;
+       width: 17em;
+       margin-left: 0.313em;
+       margin-top:-0.625em;
+}
+
+#copyright{
+       font-size: 0.5em;
+}
+#gototop{
+       text-align: center;
+       color: #4B6B90;
+}
+
+#tools{
+       margin: 0 auto;
+       padding: 0;
+}
+
+
+/* ATutor Social Styles */
+
+div .profile_container {
+       background-color:#eee; 
+       border: 1px solid #8e8e8e; 
+       width:80%; 
+       padding:0.5em; 
+       margin-bottom: 0.5em;
+}
+
+div .profile_container .top_right {
+       float: right;
+}
+
+dl.public-profile dd{
+       margin-left:0;
+}
+dl.public-profile dt {
+       float: left;
+       font-weight: bold;
+       min-width:12em;
+}
+
+/* Search form */
+div .search_form {
+       margin-bottom: 1em;
+}
+
+div .search_form .row{
+       background-color: #DEDEC0;
+       padding: 0.5em;
+}
+div .button {
+       background-color: #eee;
+       border: 1px solid #aaa;
+}
+div .button:hover{
+       background-color: #cccccc;
+       color: #ffffff;
+}
+
+/* Side menu */
+
+
+ul.social_side_menu {
+       padding-left: 2em;
+}
+ul.social_side_menu li {
+       padding-bottom: 0.2em;
+       list-style: circle;
+}
+
+div .divider {
+       border-bottom:1px solid #C1C157; 
+       padding-bottom:0.5em; 
+       margin-bottom:0.5em;
+}
+
+.activity{
+       line-height:18pt;
+       font-size:.8em;
+}
+
+div.contentbox, input-form{
+
+       padding:.5em;
+       background-color: #ffffff;
+    overflow:hidden;
+    border: #A9ADB0 solid 1px;
+       -webkit-border-radius: 5px;
+}
+
+div.suggestions{
+       border:1px solid #a50707;
+       margin-left:0.625em; 
+       width:50%;
+}
+li.inlinelist{
+       display: inline; 
+       padding-right: 1em;
+}
+ul.social_inline_menu{
+       background-color: #eeeeee;
+       border:thin #cccccc solid;
+       padding:.5em;
+       width:90%;
+       margin:auto;
+}
+div.social-wrapper{ 
+       width: 100%;
+}
+
+div.logo{
+float:left;
+clear:right;
+margin-left:2em;}
+
+/*mobile FSS overrides */
+.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a:hover, 
+.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a:focus,
+.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a:active {
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+  
+}
+ul#subnavlist li a:focus, ul#subnavlist li a:active, ul#subnavlist li a:hover{
+       color: white;
+}
+/* isolates fl tabs 
+.fl-theme-iphone .fl-tabs li a, .fl-theme-iphone .fl-tabs .fl-tabs-active {
+       background-color: white;
+} */
+
+
+/************************************************************************************************/
+/*Adds arrows to Fluid Tabs. Here is a good guide for creating triangles with CSS: 
+http://jonrohan.me/guide/css/creating-triangles-in-css/ */
+/************************************************************************************************/
+ul.sequence-links {
+}
+
+ul.sequence-links li {
+    position:relative;
+    overflow:hidden;
+    list-style:none;
+   /* padding:0;
+    margin:0 0 0 0 ;*/
+}
+
+ul.sequence-links li.back a:link, 
+ul.sequence-links li.back a:visited {
+    display:block;
+   /* border :0;*/
+    padding-left:0.438em;
+       color: #005689;
+}
+
+ul.sequence-links li.forward a:link, 
+ul.sequence-links li.forward a:visited {
+    display:block;
+   /* border :0;*/
+    padding-right:0.313em;
+       color: #005689;
+}
+/*WCAG*/
+ul.sequence-links li a:hover, ul.sequence-links li a:focus, ul.sequence-links li a:active,
+ul.sequence-links li.back a:hover, ul.sequence-links li.back a:focus, ul.sequence-links li.back a:active,
+ul.sequence-links li.forward a:hover, ul.sequence-links li.forward a:focus, ul.sequence-links li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+
+
+ul.sequence-links li:before, 
+ul.sequence-links li:after,
+ul.sequence-links li a:before, 
+ul.sequence-links li a:after {
+    content:"";
+    position:absolute;
+    top:50%;
+   /* left:0;*/
+}
+
+ul.sequence-links li a:before, 
+ul.sequence-links li a:after {
+    margin:-0.5em 0 0;
+  }
+
+ul.sequence-links li a:hover:before, 
+ul.sequence-links li a:focus:before, 
+ul.sequence-links li a:active:before {
+}
+/*arrow that points to the left, beside the "Previous" text */
+.arrow.back a:after {/*arrow pointing to the left*/
+     background: none repeat scroll 0% 0% transparent;
+     border-color: transparent #005689;
+   
+     border-style: solid;
+     border-width: 5px 0pt 5px 6px;
+     left: 0.5em;
+     margin-top: -0.39em;
+}
+
+/*left and right triangle icons change color*/
+.arrow a:hover:after, .arrow a:focus:after, .arrow a:active:after, 
+.arrow.forward a:hover:after, .arrow.forward a:focus:after, .arrow.forward a:active:after{
+       border-color: transparent #4c96f4;
+}
+
+.arrow.back a:after {
+     border-width: 6px 6px 6px 0pt;    
+     left: 0.188em;
+     top: 1.25em;
+}
+
+.arrow.back:before {
+     
+}
+.arrow.forward:before {
+     
+}
+.arrow:before {
+
+}
+/*arrow that points to the right, beside the "Next" text */
+.arrow.forward a:after {
+     background: none repeat scroll 0% 0% transparent;
+     border-color: transparent #FFFFFF;
+     border-style: solid;
+     margin-top: -0.425em;
+     margin-top: -0.313em;
+   
+}
+.arrow.forward a:after {
+     /*top: 11px;*/
+       background: none repeat scroll 0% 0% transparent;
+     border-color: transparent transparent transparent    #005689;
+        border-width: 6px;
+        border-style: solid;
+        width:0;
+        height:0;
+        right: -0.313em;
+        top: 1.19em;
+}
+
+
+#content-sequence-links{/*
+       width: 98%;
+       padding: .313em;
+       background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#999), to(black));
+       background: #B6C0C6;
+       float: left;
+       margin: 0 auto;
+       margin-bottom: .313em;*/
+}
+
+
+#sequence-links{
+       float: left;
+}
+       
+
+#content{
+       text-align: left;
+       width: 93.5%;
+       width: 99%;
+       border-left: #A9ADB0 1px solid;
+       border-right: #A9ADB0 1px solid;
+       border-bottom: #A9ADB0 1px solid;
+       -webkit-border-radius: 5px; 
+       -moz-border-radius: 5px; 
+       border-radius: 5px;
+       display: none;
+       position: relative;
+       top: 0em; 
+       clear: left;
+       clear: right;
+       z-index: 1;
+}
+
+/*hiding and showing content */
+
+#results-hide-show-simple-content{
+       -webkit-border-radius:5px;
+       border: 1px #A9ADB0 solid;
+       /*margin-top: 0.875em;
+       margin-bottom: 0.875em;
+       padding: 0.875em;
+       padding-right: .2em;*/
+       padding-top: .6em;
+       padding-bottom: .6em;
+       padding-right: .2em;
+       padding-left: .6em;
+       margin-bottom: 0.875em;
+       margin-top: 0.875em;
+       color: #005689;
+/*     background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#999), to(black));*/
+       background-color: none;
+}
+#results-hide-show-link{
+       color: white;
+       color: #005689;
+       text-decoration: none;  
+       display: block;
+       font-weight: bold;
+}
+
+
+.content-expand{
+       background-image:url("images/plus.png");
+       background-position: 100% 100%;
+       background-repeat: no-repeat;
+}
+
+.content-closed{
+       background-image:url("images/minus.png");
+       background-position: 100% 100%;
+       background-repeat: no-repeat;   
+}
+#results-display{
+       background-color: #F7F3ED; 
+       -webkit-border-radius:8px;
+       border: 1px #A9ADB0 solid;
+       padding: .313em;
+       
+}
+.hide-show-container-surround a:active, .hide-show-container-surround a:focus, .hide-show-container-surround a:hover{
+       background-color: transparent;
+       
+}
+.subnavcontain2, .subnavcontain{
+       margin: .313em 0; 
+       
+       border: #A9ADB0 1px solid; 
+       -webkit-border-radius:8px;
+       width: 100%;
+
+}
+
+.fl-theme-iphone .subnavcontain a, .fl-theme-iphone .subnavcontain a:hover, .fl-theme-iphone .subnavcontain a:active, .fl-theme-iphone .subnavcontain a:focus {
+       text-decoration: none;
+       font-weight: bold; 
+       color: #005689;
+       background-repeat: no-repeat;
+       
+}
+#subnavlist-link{
+       display: block;
+}
+#page-title-back-to-page{
+    display: inline-block;
+    width: 100%;
+}
+
+.page-title, #back-to-page{
+    float: left;
+}
+
+.fl-theme-iphone #subnavlist-link  a:active, 
+.fl-theme-iphone #subnavlist-link  a:hover, 
+.fl-theme-iphone #subnavlist-link a:focus{
+       background-color: none;
+}
+.fl-theme-iphone .subnavcontain{
+       margin-top: 1em;
+       background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+       -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+}
+.rectangle2{
+       display: inline-block; 
+       color: #005689;
+       font-weight: bold; 
+       padding: .6em;
+       margin: -.1em;
+       border-right: #A9ADB0 1px solid; 
+}
+
+.rectangle2:last-child{
+       border: none;
+}
+.rectangle2 a{
+       color: #005689;
+       text-decoration: none;
+       font-weight: bold;
+}
+.rectangle{
+       display: block;
+       color: #005689;
+       font-weight: bold; 
+       padding: .313em;
+       margin: .313em 0;
+           
+}
+#content_link_phone a:active, #content_link_phone a:focus, #content_link_phone a:hover{
+       color: #005689;
+       background-color: white;
+}
+/* style for "last modified" information of course content*/
+#content-info{
+       padding-top: 1em;
+       font-size: 80%;
+}      
+ul.my-courses-list-ul > li:hover{
+background-color: #e6e6e6;
+       color: black;   
+       
+       color: #fff;
+}
+ul.my-courses-list-ul > li:hover a{
+       color: white;
+}
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/login.tmpl.php b/docs/themes/simplified-desktop/login.tmpl.php
new file mode 100644 (file)
index 0000000..01c448a
--- /dev/null
@@ -0,0 +1,119 @@
+<?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
+<?php if ($this->mobile_device_type != IPAD_DEVICE): ?>
+<script language="JavaScript" src="sha-1factory.js" type="text/javascript"></script>
+
+<script type="text/javascript">
+/* 
+ * Encrypt login password with sha1
+ */
+function encrypt_password() {
+       document.form.form_password_hidden.value = hex_sha1(hex_sha1(document.form.form_password.value) + "<?php echo $_SESSION['token']; ?>");
+       document.form.form_password.value = "";
+       return true;
+}
+
+</script>
+<div class="container">
+       <div class="column-login">
+               <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+               <input type="hidden" name="form_login_action" value="true" />
+               <input type="hidden" name="form_course_id" value="<?php echo $this->course_id; ?>" />
+               <input type="hidden" name="form_password_hidden" value="" />
+               <div class="input-form">
+                       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('login') ;?></legend>
+                       
+                               <?php if ($_GET['course']): ?>
+                                       <div class="row">
+                                               <h3><?php echo _AT('login'). ' ' . $this->title; ?></h3>
+                                       </div>
+                               <?php endif;?>
+
+                               <label for="login"><?php echo _AT('login_name_or_email'); ?></label><br />
+                               <input type="text" name="form_login" size="50" style="max-width: 80%; width: 80%;" id="login" /><br />
+
+                               <label for="pass"><?php echo _AT('password'); ?></label><br />
+                               <input type="password" class="formfield" name="form_password" style="max-width: 80%; width: 80%;" id="pass" />
+                               <br /><br />
+                               <input type="submit" name="submit" value="<?php echo _AT('login'); ?>" class="button" onclick="return encrypt_password();" /> 
+                               <br /><br />
+                       </form>
+                       <?php
+                       if($_config['allow_registration'] ==1){
+                       ?>
+                       Don't have an account? 
+                       <form action="registration.php" method="get">
+                       <?php if (defined('AT_EMAIL_CONFIRMATION') && AT_EMAIL_CONFIRMATION): ?>
+                               <p><?php echo _AT('confirm_account_text'); ?></p>
+                       <?php endif; ?>
+                       <input type="submit" name="register" value="<?php echo _AT('register'); ?>" class="button" />
+                       <br /><br />
+                       </form>
+                       <?php } ?>
+                       
+                       </fieldset>                     
+               </div>
+               
+       </div>
+</div>
+<?php endif; ?>
+<?php if ($this->mobile_device_type == IPAD_DEVICE): ?>
+<script language="JavaScript" src="sha-1factory.js" type="text/javascript"></script>
+
+<script type="text/javascript">
+/* 
+ * Encrypt login password with sha1
+ */
+function encrypt_password() {
+       document.form.form_password_hidden.value = hex_sha1(hex_sha1(document.form.form_password.value) + "<?php echo $_SESSION['token']; ?>");
+       document.form.form_password.value = "";
+       return true;
+}
+
+</script>
+<div class="container">
+       <div class="column-login">
+               <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+               <input type="hidden" name="form_login_action" value="true" />
+               <input type="hidden" name="form_course_id" value="<?php echo $this->course_id; ?>" />
+               <input type="hidden" name="form_password_hidden" value="" />
+               <div class="input-form">
+                       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('login') ;?></legend>
+                       
+                               <?php if ($_GET['course']): ?>
+                                       <div class="row">
+                                               <h3><?php echo _AT('login'). ' ' . $this->title; ?></h3>
+                                       </div>
+                               <?php endif;?>
+
+                               <label for="login"><?php echo _AT('login_name_or_email'); ?></label><br />
+                               <input type="text" name="form_login" size="50" style="max-width: 80%; width: 80%;" id="login" /><br />
+
+                               <label for="pass"><?php echo _AT('password'); ?></label><br />
+                               <input type="password" class="formfield" name="form_password" style="max-width: 80%; width: 80%;" id="pass" />
+                               <br /><br />
+                               <input type="submit" name="submit" value="<?php echo _AT('login'); ?>" class="button" onclick="return encrypt_password();" /> 
+                               <br /><br />
+                       </fieldset>     
+                       </div>
+                       </form>
+                       <?php
+                       if($_config['allow_registration'] ==1){
+                       ?>
+                       Don't have an account? 
+                       <form action="registration.php" method="get">
+                       <?php if (defined('AT_EMAIL_CONFIRMATION') && AT_EMAIL_CONFIRMATION): ?>
+                               <p><?php echo _AT('confirm_account_text'); ?></p>
+                       <?php endif; ?>
+                       <input type="submit" name="register" value="<?php echo _AT('register'); ?>" class="button" />
+                       <br /><br />
+                       </form>
+                       
+                       <?php } ?>
+                       
+                       
+               </div>
+               
+       </div>
+</div>
+<?php endif; ?>
+<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/mobile.css b/docs/themes/simplified-desktop/mobile.css
new file mode 100644 (file)
index 0000000..5e5dce0
--- /dev/null
@@ -0,0 +1,2289 @@
+/* Style is optimized for iphone and android. Note that -webkit properties create errors in the CSS validator. Relative units 
+for sizes are used unless it is a border. Classes beginning with ".fl-" override Mobile FSS, 
+see the API @ http://wiki.fluidproject.org/display/fluid/Mobile+FSS+API for more details. 
+*/
+html, body{
+       height: 100%;
+}
+#main{
+       padding-bottom: 2.3em;
+       overflow: auto;
+}
+
+body,ul,li {
+       padding:0;
+       margin:0;
+}
+
+.fl-theme-iphone{
+       background: white;      
+}
+
+#header{
+       width:100%;
+       height:1.2em;
+       line-height:2.813em;
+       padding:0;
+       font-size:1.063em;
+       background-color: #4B6B90;
+       /*firefox*/
+       background-image: -moz-linear-gradient(
+        center top,
+        #9aafca,
+        #4b6b90,
+        #6d8cb3 10%,
+        #4b6b90 90%        
+    );        
+}
+
+#header-section-title {
+       text-align: center;
+       
+       background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#6d8cb3),
+    color-stop(0.5, #6d8cb3),
+    color-stop(0.50, #4b6b90),
+    color-stop(0.5, #6d8cb3),
+    to(#4b6b90)
+    ); 
+  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#6d8cb3), to(#4b6b90));
+
+}
+
+.fl-theme-iphone .fl-navbar{
+       border: none;
+       border-top: none;
+}
+
+.fl-navbar a{
+       font-size: 0.969em;
+}
+
+.fl-navbar .fl-tabs {
+       padding-top: .3em;
+       padding-bottom: .3em;
+       border-top: 1px solid black;
+       border-bottom: .5px solid black;
+       background-color: #4b6b90; 
+    height: 2em;   
+}
+
+#navigation-contentwrapper{
+       position: relative;
+       background-color: #4b6b90;
+       height: 2.5em; 
+}
+
+#navigation-bar{
+       height: 2.5em; 
+    border-bottom: .5px solid black;
+   /*padding-bottom: .3em;*/
+     
+}
+
+#wrapper{
+       width:100%;
+       overflow:hidden;
+       overflow: auto;
+       min-height: 100%;
+       background-color:white;
+}
+
+#site-name, h1#section-title{
+       display: inline;
+       text-shadow: none;
+       font-size: 90%;
+       color: #4C566C;
+       color: white;
+       margin-bottom: 1em;     
+}
+
+/************************************************************************************************/
+/* "Navigation" button, also this CSS creates a button that looks exactly like a Mobile FSS tab.*/
+/************************************************************************************************/
+.navigation-bar-button{
+    border-width:5px;
+    -webkit-border-radius: 5px;
+    -moz-border-radius:5px;
+       border-radius: 5px;
+       font-size: 18px;/*keep this in px*/
+       padding: 0 .3em;
+       color: white;
+       position: relative;
+       top: .69em; 
+       left: 0.188em; 
+    /* default mobile fss color scheme for tabs not AA compliant. Here is a compliant bg image: */
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+       -webkit-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -webkit-border-left-image: none;
+    -webkit-background-origin: border;
+    -webkit-background-clip: border;
+
+}
+
+.navigation-bar-button a:hover, .navigation-bar-button a:active, .navigation-bar-button a:focus{
+       background-color: white;
+}
+
+.fl-theme-iphone .fl-tabs li{
+    /* default mobile fss color scheme for tabs not AA compliant against a white foreground text.therefore its backgroud-image must be overrided */
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    ); 
+}
+.fl-theme-iphone .topnavlistcontainer .topnavlist-link {/*makes the navigation button link white*/
+       color: white;
+       text-decoration: none;
+       font-weight: bold;
+       /*firefox*/
+        -moz-border-image: url("images/navbar_normal_button_insetShadow.png") 5 5 5 5 stretch;
+    background-color: #354D68;
+}
+
+#content_link_phone.topnavlist-link-highlight {/*makes the content link highlight*/
+       color: white;
+       text-decoration: none;
+       font-weight: bold;
+}
+.fl-theme-iphone .topnavlistcontainer .topnavlist-link-highlight{/*makes the navigation button link highlight*/
+       color: #4c96f4;
+       text-decoration: none;
+       font-weight: bold;
+}
+
+ul#topnavlist {
+       display: none;
+       position: relative;
+       top: 1.2em;
+       z-index: 1000;
+       /*background-color: white;*/
+}
+
+div#content-link-container.flc-screenNavigator-navbar {
+       color: #005689;
+}
+
+.content-link-surround a:active, .content-link-surround a:focus, .content-link-surround a:hover{
+       background: none;
+       
+}
+ #content_link_phone {
+       
+       display: block;
+       text-decoration: none;
+       
+    color: white;
+    font-style: bold;
+    color: #005689;
+}
+.resume{
+       font-size: 1em;
+}
+
+
+#home-guide{
+       position: absolute;
+       top: .45em;
+       right: 0.188em; 
+       font-size: 17px;/*keep this in px*/
+       white-space:nowrap;
+       display: inline;
+}
+
+ul.home-guide li a:hover, ul.home-guide li a:focus, ul.home-guide li a:active, ul.home-guide li.back a:hover, ul.home-guide li.back a:focus, ul.home-guide li.back a:active,
+ul.home-guide li.forward a:hover, ul.home-guide li.forward a:focus, ul.home-guide li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+
+/* main body attributes */
+p {
+    text-align: left;
+    line-height: 150%;
+       font-size: 1em;
+       padding:.75em 0;
+       margin: 0 auto;
+}
+
+p a {
+    text-decoration: underline;
+}
+
+p a:visited {
+       color: #3F2670;
+    background-color: transparent;
+}
+p a:active {
+       color: #A50707;
+    background-color: transparent;
+}
+
+h1, h2, h3, h4, h5, h6 {
+    color: #4C566C;
+    clear: right;
+    font: 100% Helvetica, Arial, sans-serif;
+       font-weight: bold;
+    margin: 0;
+       padding: 0;
+}
+h2, h3, h4, h5, h6{
+       padding-top: .5em;
+}
+h1 {
+    font-size: 160%;
+       color: #FFF;
+}
+
+
+h2 {
+    font-size: 150%;
+}
+
+h3.input-form {
+       padding-top: .875em;
+}
+h3.browse-courses{
+       font-size: 90%;
+       text-decoration: none;
+       clear: none;
+       display: inline;
+}
+
+h3 a {
+    font-size: 100%;
+}
+
+a:hover, a:visited, a:focus {
+       color: #4C96F4;
+       text-decoration: underline;
+
+}
+/************************************************************************************************/
+/* Preferences tabs */
+/************************************************************************************************/
+.etabbed-list-container        {
+       padding:0;
+       margin: 0;
+       width:70%;
+       clear: left;
+       height: 3em;
+}
+
+.prefs_buttontab {
+       padding:0;
+       margin: 0;
+       white-space: nowrap;
+}
+.prefs_tab{
+       padding:0.5em 0.3em 0;
+       margin: 0;
+       white-space: nowrap;
+    display: inline;
+}
+
+.prefs_tab_selected{  
+       padding:0.7em 0.3em 0;
+       margin: 0;
+       margin: 0;
+       font-weight:bold;
+       text-align:center;
+       white-space: nowrap;
+    display: inline;
+}
+
+/************************************************************************************************/
+/* link attributes */
+/************************************************************************************************/
+a:link, /*a:visited*/ a:focus  {
+       color: #4C566C;
+       
+}
+.top-tool a:link, .top-tool a:focus{
+       text-decoration: none;  
+}      
+
+/* main submit button */
+.button {
+       background-color: #808080;
+       color: black;
+       text-align: center;
+       -webkit-border-radius:3px;
+       -moz-border-radius:3px;
+       border-radius: 3px;
+       padding-top: 0.313em;
+       padding-bottom: 0.313em;
+
+}
+.button:focus {
+       border:1px solid #A50707;
+       background-color:  #FFDAB9;     
+}
+/* small submit button at top */
+.button2 {
+       font-family: Helvetica,sans-serif;
+       background-color: #E9F4F3;
+
+}
+.button2:focus {
+       background-color: #E9F4F3;
+       border:  #ACCFCC  solid 1px;
+}
+
+/* Editor box large */
+.editorlargebox {
+       font-family: Helvetica,sans-serif;
+       background-color: #E9F4F3;
+       margin-left:1em;
+       padding-left: .2em;
+       padding-right: .5em;
+       padding-top: .5em;
+       padding-bottom: .4em;
+       border: 1px #ACCFCC solid;
+}
+
+/* edit content tabs */
+.buttontab {
+       background-color: #E6E6E6;
+       font-weight: 500;
+       border:0;
+       padding-left: .188em;
+       padding-right: .188em;
+       padding-top: .188em;
+
+}
+
+.tab {
+       color: black;
+       background-color: #E6E6E6;
+       border-top: 1px #B8AE9C solid;
+       border-left: 1px #B8AE9C solid;
+       border-right: 1px #B8AE9C solid;
+       text-decoration: none;
+       text-align: center;
+       font-weight: bold;
+
+       
+}
+.buttontab selected {
+       font-family: Helvetica, Arial, Helvetica, sans-serif;
+       background-color: #6F7172;
+       font-weight: 600;
+       border:0;
+       padding-left: .188em;
+       padding-right: .188em;
+       padding-top: .188em;
+
+}
+td.selected{
+       font-family: Helvetica, Arial, Helvetica, sans-serif;
+       font-weight: 600;
+       text-decoration: none;
+       text-align: center;
+       background-color: white;
+       border-top: 1px #B8AE9C solid;
+       border-left: 1px #B8AE9C solid;
+       border-right: 1px #B8AE9C solid;
+}
+
+.tab a:link, .etab a:visited {
+       color: #4C566C;
+       background-color: white;
+}
+
+/* the side menu */
+td.dropdown-heading {
+       background-color: #DBFDD4;
+       color: #595241;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-top: 1px solid #ECFEEA;
+}
+
+/* the side menu content */
+td.dropdown {
+       padding: 0.125em;
+       background-color: white;
+       color: black;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-bottom: 1px solid #ECFEEA;
+       font-weight: normal;
+}
+td.dropdown a, td.dropdown a:visited  {
+       color: #4C566C;
+       text-decoration: none;
+}
+td.dropdown a:hover {
+       color: #595241;
+       text-decoration: underline;
+}
+
+/* added for 1.4.2: */
+.results {
+       padding-left: 1.25em;
+}
+
+h5.search-results {
+       padding: 0.063em;
+       margin-bottom: 0.313em;
+       margin-top: 1em;
+       padding-top: 3em;
+       margin-left: 0.313em;
+}
+
+.test-box {
+       background-color: #F7F3ED;
+       color: #595241;
+       border-left: 1px solid #595241;
+       border-right: 1px solid #595241;
+       border-top: 1px solid #595241;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+/*preferences*/
+
+.input-form 
+table.tabbed-table {
+       width: 100%;
+       border:thin black solid;
+}
+table.tabbed-table th#left-empty-tab {
+       background-color: transparent;
+       width: 0.938em;
+       border-bottom: 1px solid #B8AE9C;
+}
+table.tabbed-table th#right-empty-tab {
+       text-align: right;
+       background-color: transparent;
+       border-bottom: 1px solid #B8AE9C;
+       width: 25em;
+       padding-right: 0.313em;
+}
+table.tabbed-table th#right-empty-tab a {
+       text-decoration: underline;
+}
+table.tabbed-table th.tab-spacer {
+       background-color: transparent;
+       width: 0.313em;
+       border-bottom: 1px solid #B8AE9C;
+}
+
+table.tabbed-table th.tab {
+       padding-top: 0.125em;
+       padding-bottom: 0.125em;
+       width: 6.875em;
+       background-color: #E9F4F3;
+       border-bottom: 1px solid #B8AE9C;
+       border-left: 1px solid #B8AE9C;
+       border-top: 1px solid #B8AE9C;
+       border-right: 1px solid #B8AE9C;
+}
+table.tabbed-table th.tab:hover {
+       background-color: #ACCFCC;
+}
+
+table.tabbed-table th.tab a:focus {
+       color: white;
+}
+table.tabbed-table th.selected {
+       padding-top: 0.125em;
+       padding-bottom: 0.125em;
+       width: 6.875em;
+       background-color: #ACCFCC;
+       border-left: 1px solid #B8AE9C;
+       border-top: 1px solid #B8AE9C;
+       border-right: 1px solid #B8AE9C;
+}
+
+table.tabbed-table a, table.tabbed-table a:visited, table.tabbed-table a:hover {
+       color: #4C566C;
+       text-decoration: none;
+}
+
+
+.preference-buttons-container{
+       background-color: red;
+       height: 2.5em;
+       width: 100%;
+       text-align: center;
+}
+
+div.preference-buttons-container li{
+       display: inline; 
+       float: right;
+}
+
+.prefs_tab_selected{
+       font-style: italic;
+       width: 10%;
+}
+.prefs_tab{
+       width: 10%;
+}
+
+.etabbed-table{
+       margin: 0 auto;
+}
+#previewText{
+       font-family: monospace;
+       border: 2px solid rgb(0, 0, 0); 
+       padding: 2em;
+       width: 80%; 
+       color: rgb(255, 255, 255);
+       background-color: rgb(0, 0, 0);
+}
+#previewArea{;
+       padding: 0em;
+       border-bottom-width: 0; 
+       margin-left: auto; 
+       margin-right: auto; 
+       font-weight: normal; 
+       width: 70%;
+       float:left;
+       clear:right;
+}
+#display-settings-preview{
+       width:90%;
+       height:20em; 
+       margin: 0 auto;
+}
+#feedback{
+       width: 90%;
+}
+#defaultfontsize-wrapper{
+       width:90%; 
+}
+
+a#my-start-page {
+       padding: 0.125em;
+       padding-left:  0.938em;
+       background-repeat: no-repeat;
+       background-position: 0.125em 0.313em;
+}
+
+a#back-to {
+       padding-left: 1.25em;
+       background-image: url(images/back.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0;
+}
+
+.breadcrumbs, .previous-next /*a#guide*/{
+    /* The path bar, including breadcrumbs and add to favorites */
+       clear:both;
+    font-size: 1em;
+       padding:0;
+       color: #4C566C;
+       background-color: white;
+
+}
+#breadcrumbs-container{
+       background-color: #4d4d4d;
+       position: relative;
+}
+.breadcrumbs{
+       display:none;
+}
+h2.page-title  {
+       
+       
+}
+#subnavlistbacktopage{
+       float: left;
+}
+
+h1 {
+       margin-bottom: 0.313em;
+       
+}
+
+
+div#help {
+       border-left: 1px solid black;
+       border-right: 1px solid black;
+       border-bottom: 1px solid black;
+       padding-left: 0.313em;
+       padding-right: 0.313em;
+       padding-bottom: 0.313em;
+       background-color: #F7F3ED;
+       margin-left: 0.313em;
+       margin-right: 0.313em;
+       font-size: small;
+}
+
+h3#help-title {
+       margin-left: 0.313em;
+       margin-right: 0.313em;
+       border-left: 1px solid black;
+       border-right: 1px solid black;
+       padding: 0.063em;
+       background-color: #F7F3ED;
+}
+.line {
+       border-bottom: 1px solid black;
+}
+div#help p {
+       padding: 0;
+       margin: 0;
+}
+
+div#toctoggle {
+       float: left;
+       padding-left: 0.625em;
+}
+
+
+/**********************************************************************/
+/*FOOTER*/
+/**********************************************************************/
+div#footer-links {
+       margin: 0 auto;
+       font-size: .938em;
+}
+#footer{
+       height:2.3em;
+       background-color: #4b6b90;
+       margin-top: -2.3em;
+       position: relative;
+       clear: both;
+       
+}
+
+ul.footer-links-tabs li a:hover, ul.footer-links-tabs li a:focus, ul.footer-links-tabs li a:active,
+ul.footer-links-tabs li.back a:hover, ul.footer-links-tabs li.back a:focus, ul.footer-links-tabs li.back a:active,
+ul.footer-links-tabs li.forward a:hover, ul.footer-links-tabs li.forward a:focus, ul.footer-links-tabs li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+div#top-links a:link, div#top-links a:visited {
+       text-decoration:none;
+}
+
+#jumpmenu:focus{
+       background-color:#F6EAD6;
+}
+#jumpmenu{
+       margin: 0 auto;
+}
+
+a#editor-link {
+       background-color: #F7F3ED;
+       padding-top: 0.063em;
+       padding-bottom: 0.063em;
+       padding-left:  0.938em;
+       padding-right: 0.5em;
+       border: 1px solid #cccccc;
+       font-weight: normal;
+       text-decoration: none;
+}
+
+a#editor-link:hover {
+       background-color: #F7F3ED;
+       border: 1px solid #B8AE9C;
+}
+
+a#editor-link.off {
+       background-image: url(images/pen.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0.125em;
+}
+a#editor-link.on {
+       background-image: url(images/pen2.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0.125em;
+}
+
+
+/* for data tables */
+.table-surround {
+       border: #A9ADB0 1px solid;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
+       
+}
+
+table.data {
+       margin:0;
+       width:100%;
+       padding: 0;
+       color: #4C566C;
+       font-size: .8em;
+       text-align: left;
+       background-color: transparent;
+} 
+/* contains the headings */
+table.data th {
+
+       padding: 0.188em;
+}
+
+table.data th a {
+       color: #595241;
+       background-image: url('../default/images/sort.gif');
+       background-repeat: no-repeat;
+       background-position: right;
+}
+
+
+/*headings text*/
+table.data tbody th {
+       text-align: left;
+
+}
+
+table.data td {
+       padding: 0.188em;
+       color: black;
+       font-size: .875em;
+       font-style: normal;
+}
+table.data td a:link, a:visited{
+       /*color: black;*/
+       color: #4C566C
+}
+
+/*should table.data tbody tr:hover  and table.data tbody tr.selected  highlighting 
+be improved to sync with Mobile FSS highlighting */
+table.data tbody tr:hover {
+       background-color: #efefef;
+       cursor: pointer;
+}
+
+table.data tbody tr.selected {
+       background-color: #E9F4F3;
+       cursor: auto;
+       border: 5px solid #E9F4F3;
+}
+
+table.data tfoot {
+       background-color: #F7F3ED;
+}
+
+table.data tfoot tr:first-child td {
+       padding: 0.313em;
+       background-image: url('images/arrow_ltr.gif');
+       background-repeat: no-repeat;
+       background-position: .25em 0.313em;
+}
+
+table.data.static tfoot td, table.data.static tfoot tr:first-child td {
+       padding: 0.313em;
+       background-image: none;
+       padding-left: 0;
+
+}
+/* add borders to row in Required Information, Personal Information*/
+.row{
+       padding:.375em 0;
+       font-size: 0.938em;
+}
+#last-row, .row-buttons, #last-row1, .row-blurb{
+       border: none;
+}
+#browse-courses-table{
+       font-size: .875em;
+}
+
+
+/*buttons*/
+table.data tfoot input {
+       background-color: #efefef;
+       font-weight: normal;
+}
+table.data tfoot input:focus {
+       background-color: #FFDAB9;
+}
+
+
+/* used for static tables with no form elements: */
+table.data.static tbody tr:hover {
+       background-color: transparent;
+       cursor: auto;
+}
+
+
+
+/* course browser: */
+
+div#browse {
+       margin-left: auto; 
+       margin-right: auto; 
+       width: 80%;
+}
+
+div.browse-selected {
+       background-image: url('images/side_arrow.gif'); 
+       background-repeat: no-repeat; 
+       padding-left: 0.563em; 
+       background-position: center left;
+}
+
+div.browse-unselected {
+       padding-left: 0.563em; 
+}
+
+ul.browse-list {
+       list-style: none;
+       padding:0;
+}
+
+/* feedback /errors */
+div#error {
+       width: 89%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #DD0000;
+       padding: 0.313em;
+       background-color: #F4DCDC;
+       color: #A50707;
+       background-color: #F4DCDC;
+       padding-left: 1.563em;
+       font-weight: bold;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+}
+div#error h4 {
+       color: black;
+       margin-left: 0;
+}
+
+div#error ul, div#feedback ul, div#help ul {
+       position: relative;
+       list-style: none;
+       margin-left: 0;
+       padding-left: 0;
+}
+
+div#error ul li{
+       margin-top: 0.313em;
+}
+
+div#feedback, div#info {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top: 0.313em;
+       margin-bottom: 0.313em;
+       padding: 0.313em;
+       font-family: Helvetica, Arial, sans-serif;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+       border: 1px solid #17B506;
+       background-color: #E7EFD0;
+       color: #3f4559;
+       font-size: 90%;
+       z-index: -1;
+}
+div#feedback li, div#info li, div#error li{
+       color: #4C566C;
+       z-index: -1;
+}
+
+div#help {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #ACCFCC;
+       padding: 0.313em;
+       background-color: #E9F4F3;
+       color: #024C41;
+}
+
+
+div#warning {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #FF8400;
+       padding: 0.313em;
+       background-color: #FFF6ED;
+       color: #D95900;
+       font-weight: bold;
+}
+acronym {
+       cursor: help;
+}
+
+div.news p {
+       margin: 0;
+       padding:0;
+}
+div.news span.date {
+       font-family:Helevetica, Arial, sans-serif;
+       color: #4C566C; 
+       font-size: .5em;
+}
+
+.news{
+       padding: 0;
+       margin-bottom: 1em;
+       margin-top: 1em;
+}
+/* home page links */
+div.home-link {
+       padding: 0.125em;
+       float: left;
+       text-align: center;
+       margin: 0.125em;
+       width: 7.5em;
+       height: 5.625em;
+}
+div.home-link:hover {
+       padding: 0.063em;
+       background-color: #F7F3ED;
+       border: 1px solid #afafaf;
+       float: left;
+       text-align: center;
+       margin: 0.125em;
+}
+div.home-link a {
+       text-decoration: none;
+       font-weight: bold;
+}
+
+div.home-link img {
+       border: 0;
+}
+
+/* sequence links */
+div#sequence-links {
+       
+}
+div#sequence-links a {
+       text-decoration: none;
+       display: block;
+}
+
+.previous-next{
+       display: block;
+}
+div.dropdown {
+       width: 12.5em;
+       padding: 0.125em;
+       background-color: white;
+       color: black;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-bottom: 1px solid #ECFEEA;
+       font-weight: normal;
+}
+
+div.dropdown-heading {
+       background-color: #ACCFCC;
+       color: #595241;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-top: 1px solid #ECFEEA;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+div.required {
+       font-weight: bold;
+       color: red;
+       font-size: large;
+       float: left;
+       position: relative;
+       margin-top: -0.313em;
+       height:  0.938em;
+       padding-right: 0.125em;
+}
+
+div#content_text {
+       margin-left: 0.313em;
+}
+
+#content{
+       padding-top: .313em;
+       background-color: white;
+       z-index: 1000;
+}
+form {
+       display:inline;
+       max-width: 100%;
+}
+
+
+/* paging*/
+div.paging {
+       margin-top: 1em;
+       text-align: center;
+}
+div.paging ul {
+    list-style: none;
+    display: inline;
+    padding: 0;
+       max-width: 10%;
+       margin-bottom: 1em;
+}
+div.paging li { 
+       display: inline; 
+       padding-left: 0.125em; 
+       padding-right: 0.125em;
+       padding-top: 0;
+       padding-bottom: 0;
+       width: 10%;
+}
+
+div.paging li a {
+       text-decoration: none;
+       padding-left: 0.25em;
+       padding-right: 0.25em;
+       border-left: 1px solid white;
+       border-right: 1px solid white;
+}
+
+
+div.paging li a:hover, div.paging li a.current {
+   border: 1px solid #4c96f4;
+   color: white;
+   background-color: #4c96f4;
+   -webkit-border-radius: 3px;
+   -moz-border-radius: 3px;
+   border-radius: 3px;
+}
+
+#tl_corner{
+
+       background-image:url(images/tl_corner.gif);
+       background-position: top left;
+       background-repeat: no-repeat;
+       padding:0;
+}
+
+div.tabs {
+       /* Navigational Plone Tabs(tm), implemented by customizing the a tag - they are surprisingly elegant. The power of CSS runs strong in these :) */
+    background-color: transparent;
+       border-collapse: collapse;
+       border-bottom: 1px solid #B8AE9C;
+       padding: 0.5em 0em 0em 2em;
+       white-space: nowrap;
+}
+
+div.tabs a {
+    /* The normal, unselected tabs. They are all links */
+    background-color: transparent;
+    border-color: #B8AE9C;
+    border-width: 1px; 
+    border-style: solid solid none solid;
+    color: #595241;
+    height: 1.2em;
+    margin-right: 0.5em;
+    padding: 0em 2em 0em;
+    
+}
+
+div.tabs a.selected {
+    /* The selected tab. There's only one of this */
+    background-color: white;
+    border-bottom: #B8AE9C 1px solid;
+    color: #595241;
+    font-weight: normal;
+}
+
+div.tabs a:hover, div.tabs a.active {
+    background-color: #B8AE9C;
+    border-bottom: 1px solid #B8AE9C;
+    color: white;
+}
+
+.headingbox a{
+       color: #4C566C;
+}
+.headingbox a:link, .headingbox a:visited{
+       text-decoration: none;
+}
+div.box {
+}
+h4.box {
+       background-color: #F5F5F5;
+       padding: .313em; 
+}
+h4.box a {
+       display: block;
+       color: #4C566C;
+       background-color: #F5F5F5;
+       text-decoration: none;
+}
+
+
+div.box {
+       padding: 0.313em;
+       background-color: #F5F5F5;
+       color: black;
+       border: 1px solid #B8AE9C;
+       font-size:0.85em;
+       font-weight: normal;
+       padding:0.125em;
+}
+
+h5.box { 
+    background-color: #6F7172;
+    border: 1px solid #B8AE9C;
+    border-style: solid solid none solid;
+    color: Black;
+    padding: 0em 1em 0em 1em;
+    display: inline;
+       font-size:  1em;
+    height: 1em;
+}
+
+div.box a:link {
+       text-decoration: none;
+}
+
+div.box a:visited {
+       color: #2A6C28;
+       text-decoration: none;
+}
+
+div.box a:hover {
+       text-decoration: underline;
+}
+
+.boxDetails {
+    text-align: right;
+}
+
+div.box .content {
+    padding: 1em;
+       font-size:  1em;
+}
+
+div.box a.close {
+    float: right;
+    text-transform: none;
+    border-left: 1pt solid #B8AE9C;
+    padding: 0em 0.2em;
+}
+
+div.box h1, 
+div.box h2, 
+div.box h3, 
+div.box h4 {
+    margin: 0;
+    padding: 0;
+}
+
+div.box .even {
+    background-color: #F7F3ED;
+}
+
+div.box .odd {
+    background-color: transparent;
+}
+
+
+/* users/index.php */
+
+div.course {
+       position: relative;
+       width: 12.5em;
+       height: 10.5em;
+       border: rgb(204, 204, 204) 1px solid;
+       background-color: #F7F7F7;
+       float: left;
+       margin: 0.188em;
+       padding: 0.313em;
+}
+
+div.course.break {
+       clear: left;
+}
+
+div.course h2 {
+       border: 0;
+       font-weight: normal;
+       font-size: large;
+
+}
+
+div.course:hover {
+       background-color:#FBF4E9;
+       border: #B8AE9C 1px solid;
+}
+
+
+table.data .odd img.headicon{
+       width: 2.469em;
+       height: 2.469em; 
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+}
+
+.icon{
+       -webkit-border-radius:10px;
+       -moz-border-radius:10px;
+       border-radius: 10px;
+       border-color: white;
+       width: 2.5em;
+       height: 2.5em;
+       float: left;
+}
+div.course div.shortcuts {
+       text-align: right;
+       clear: left;
+       vertical-align: middle;
+       width: 12.5em;
+}
+
+fieldset#shortcuts {
+       float: right;
+       background-color: #FEFDEF;
+       border: 1pt solid #B8AE9C;
+       margin: -5pt 5pt 5pt 5pt;
+       padding-right: 10pt;
+       padding-bottom: 5pt;
+       padding-left: 10pt;
+}
+
+fieldset {
+       margin-bottom: 10pt;
+       -webkit-border-radius:5px;
+       moz-border-radius:5px;
+       border-radius:5px;
+       padding: 0 0.375em;
+       width: 90%;
+       margin: 0 auto; 
+       width:95%;
+       margin:0 auto;
+       border:thin #6D7B8D solid;
+       border:thin #A9ADB0 solid;
+       margin-bottom: 1em;
+}
+#shortcuts ul {
+       position: relative;
+       margin-top: 0pt;
+       margin-bottom: 0pt;
+       margin-left: 0pt;
+       list-style-type:  none;
+       padding-left: 0pt; 
+}
+
+/*a#guide,*/ a#my-courses-link {
+       background-color: #6D84A2;
+}
+
+#guide img{
+       border:none;
+}
+
+#guide a:hover{
+       
+}
+
+div#content-test, div.content-from-module {    
+       float: left;
+       margin-top: 2em;
+       margin-bottom: 2em;
+       padding-right: 5pt;
+       width: 80%;
+}
+
+div#container {
+       text-align: left;
+       margin: 0 auto;
+       padding: 0;
+       border:0;
+       width: 95%;
+}
+
+/* index page */
+ul#home-links, ul#home-detail-links {
+       list-style: none;
+}
+
+/*my start page */
+#my_courses_container{
+       text-align: left;
+       margin: 0 auto;
+       border:0;       
+       min-width: 100%;
+}
+.my-courses-list{
+       border: solid 1px #A9ADB0;
+       -webkit-border-radius:8px;
+       -moz-border-radius:8px;
+       border-radius:8px;
+       padding: .375em;
+       color: #4C566C;
+       margin-bottom: .375em; 
+       margin-top: .375em;
+       padding: .375em;
+}
+.my-courses-list-ul{
+       margin: 0 auto;
+       padding-left: 0;
+       width: 100%;
+}
+.my-courses-links{
+       font-size: 80%;
+       padding-top: .75em;
+}
+.my-courses-resume{
+       float: right;
+}
+.fl-link-summary{
+       padding-left: 0.875em;
+       padding-bottom: 0.875em;
+       display: inline;
+}
+
+.fl-theme-iphone [class*="fl-list"] > li .fl-link-summary{
+       color: #4C566C;
+}
+.current_head{
+       padding-top: .5em;
+}
+
+.current_box{
+       max-width: 100%;
+}
+.current_list{
+       width: 95%;
+       padding: 0.375em;
+}
+.current_list li{
+       list-style-type: none;
+       font-style: bold;
+       padding-bottom: .5em;
+       padding-left: .5em;
+       margin:0;
+}
+.current_list_date_time{
+       font-size: 65%;
+}
+#show-all, #show-pages{
+       text-align: center;
+       
+}
+/* enrollment tabs */
+#navlist {
+       padding: 0;
+       margin-left: 0;
+       margin-right: auto;
+       margin-left: auto;
+       margin-bottom: .25em;
+       margin-top: 0.938em;
+       white-space: nowrap;
+}
+
+#navlist li {
+       list-style: none;
+       display: inline;
+       margin: 0;
+}
+
+#navlist li a {
+       padding: 0.188em 0.563em;
+       border: 1px solid #F7F3ED;
+       border-bottom: none;
+       background-color: #F7F3ED;
+       text-decoration: none;
+       margin-left: .25em;
+       white-space: nowrap;
+}
+
+#navlist li a:hover, #navlist li a:active {
+       color: #000;
+       background-color: #fff;
+}
+
+/* tree */
+.img-size-tree {
+       vertical-align: middle;
+       margin-top: 0;
+    padding:0;
+       height:1.45em;
+       width:1.5em;
+}
+/* profile page */
+dl#public-profile dt {
+       float: left;
+       width: 90%;
+       border-right: 1px solid #F7F3ED;
+       padding: 0.313em 0.313em 0.313em 0;
+
+       margin-right: 0.313em;
+}
+dl#public-profile dd {
+       margin: 0;
+}
+
+div.social-right{
+       margin-left:.5em;
+       margin-top: 1em;
+}
+div.social-left{
+       margin-left:.5em;
+}
+h4.profile{
+       float: left;
+}
+.social-wrapper h3{  
+       padding-top: .5em;
+}
+.my-contacts h3{
+       padding-bottom: .375em;
+}
+img#profile{
+       border: 1px #cccccc solid;
+       margin-left: 1em;
+}
+dd{
+    margin: 0;
+}
+
+/** forum stuff **/
+#forum-thread li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; float:left; width: 97%; list-style: none; }
+#forum-thread li.even { background-color: #F7F3ED; border-top: none; }
+#forum-thread li.odd { background-color: #fff; }
+div.forum-post-author { float:left; width:19.375em; padding:0.5em 0.625em; }
+div.forum-post-author a.title {font-size: 1.1em; line-height: 1.2em; font-weight: bold; text-decoration:none; }        
+div.forum-post-author img.profile-picture { border: 2px solid #F7F3ED; text-align:right;}
+div.forum-post-content { margin-left: 19.375em; padding: 0.313em 0 1.125em 1.125em;}
+div.forum-post-content h3 { font-weight: 500; float:left;clear:right; }
+div.forum-post-ctrl { float: right; padding-right: 0.313em; color: #a1a1a1;}
+div.forum-post-ctrl a { text-decoration: none; }
+div.forum-post-ctrl span { color: black; background-color: #fefdc2; padding: 0.188em; }
+div.forum-post-content p.date { color: #a1a1a1; border-bottom: 1px solid #F7F3ED; }
+div.forum-post-content div.body p { margin-bottom:1em; }
+div.forum-paginator{border:thin #cccccc solid; padding:.3em; width:95%;margin:auto;background-color:#F7F3ED;}
+span.forum-paginator-active{font-weight:700;text-decoration:underline; height:2em;}
+
+
+
+/** inbox stuff - reuses some of the forum layout **/
+#inbox-msg li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; width: 95%; list-style: none; min-height: 11em;}
+       
+/*  tool list on admin home and manage screens  */
+ li.top-tool { 
+       list-style: none;
+       padding: 0.125em 0.125em 0.125em  0.938em;
+       margin-bottom: 0.313em; 
+       line-height: 200%; 
+       border: solid 1px #A9ADB0;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius:5px;
+}
+       
+li.child-tool a { 
+       font-size: x-small;
+       font-weight: normal; 
+}
+
+ul.child-top-tool {
+       margin-top: -0.313em;
+       padding-left: 0;
+       margin-left: 0;
+       display: inline;
+}
+
+li.child-tool {
+       display: inline;
+       margin-right: 0.313em;
+       font-size: x-small;
+}
+
+
+/* browse courses */
+div.browse-course {
+       padding-bottom: 0.625em;
+}
+
+dl.browse-course {
+       width: 90%;
+       padding-bottom: 0.625em;
+       background-color: #fffaf0;
+       margin:auto;
+       margin-left:1em;
+}
+dl.browse-course dt {
+       float: left;
+       font-weight: bold;
+       width: 25%;
+       text-align: right;
+       clear: left;
+       padding: 0.313em 0.625em 0.313em 0;
+       vertical-align: middle;
+
+}
+dl.browse-course dd {
+       margin-bottom: 0.313em;
+       clear: right;
+       padding: 0.313em 0 0.313em 0.625em;
+       margin-left: 26%;
+
+}
+.row .buttons{
+       border: none;
+}
+
+/*  form fields grouping for WCAG 2.0 conformance*/
+fieldset.group_form{
+       width:95%;
+       margin:0 auto;
+       margin-bottom: 1em;
+       border: 1px #6D7B8D solid;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+       margin-top: .5em;
+}
+
+legend.group_form{
+       background-color:white;
+       font-weight: 600;
+       color: #4c566c;
+       padding:.5em;
+       border: 1px #6D7B8D solid;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+}
+
+/* highlight active links for WCAG 2.0 conformance */
+a:active:not(.subnavcontain a), 
+a:hover:not(.subnavcontain a),
+a:focus:not(.subnavcontain a),
+.buttontab-hover{
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+}
+
+/*Overrides above a:active, a:hover, a:focus so the "Navigation" button itself isn't highlighted when activated.
+Ensure styling matches that in fl-tabs.*/
+.topnavlistcontainer a:hover, .topnavlistcontainer a:active, .topnavlistcontainer a:focus{
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+
+}
+
+
+/*Added by Silvia */
+div.column_primary {
+       float: left;
+       width: 42%;
+       margin: 0.313em;
+       padding: 0;
+       min-width: 10.625em;
+}
+
+div.column_equivalent{
+       float: left;
+       width: 52%;
+       margin-left:  0.938em;
+       margin-top: 0.313em;
+       margin-right: 0.313em;
+       margin-bottom: 0.313em;
+       min-width: 10.625em;
+       padding: 0.313em;
+       border: 1px solid #EEE;
+       background-color: #FFF;
+}
+
+div.resource_box{
+       border: 1px solid #aaa;
+       width: 95%;
+       margin: 0.313em;
+       padding: 0.313em;
+       min-width: 9.375em;
+       background-color: #eee;
+}
+
+h2.alternatives_to{
+       margin-top: 0.75em;
+       font-size: 90%;
+       color: #A50707;
+}
+
+div.alternative_box{
+       border: 1px solid #ddd;
+       /*width: 90%;*/
+       margin: 0.313em;
+       padding: 0.313em;
+       min-width: 9.375em;
+       background-color: #fff;
+}
+
+div.alternative_box legend {
+       color: #000;
+}
+
+div.resource_box legend {
+       color: #000;
+}
+
+label.primary a{
+       color: #A50707;
+       font-weight: bolder;
+       background-color: white;
+}
+
+/* format of "table of contents" on content page */
+#toc a                 { display:block; margin:0.188em; }
+#toc .h2, #toc .h3, #toc .h4, #toc .h5, #toc .h6{ 
+       padding:0 0 0 0;
+}
+
+
+fieldset#toc {
+       background-color: #FEFDEF;
+       border: 1pt solid #B8AE9C;
+       width:89%;
+}
+
+#side-menu{
+       overflow:hidden;
+}
+
+/* cleans up glossary question mark line spacing*/
+sup{
+       border: 1pt solid #B8AE9C;
+       vertical-align:bottom;
+       margin-top: 1em;
+}
+
+/* jQuery tooltip styles */
+#tooltip{
+       position:absolute;
+       z-index:3000;
+       border:3px solid #111;
+       background-color:#eeeeee;
+       padding:0.313em;
+}
+#tooltip h3,#tooltip div{
+       margin:0;
+}
+
+/* style for home page modules "detail view" */
+div.home_box {
+       padding: .75em 0;
+       margin: 0 auto;
+}
+
+.outside_box{
+       background:#e0e0e0;
+       width: 17em;
+       margin: .375em;
+       padding: 0;
+       height:9.8em;
+}
+
+.inside_box{
+       width:100%;
+       margin:auto;
+       height:52%;
+       margin-bottom:.2em;
+       background:#eeeeee;
+
+}
+.details_or{
+       width:28.8em;
+       height:9.8em;
+       margin:0;
+       background-image:url(images/details_r.png);
+       background-position: top right;
+       background-repeat:no-repeat;
+}
+.details_ol{
+       height:9.8em;
+       margin:0;
+       width:.45em;
+       background-image:url(images/details_l.png);
+       background-position: top left;
+       background-repeat:no-repeat;
+}
+.details_ir{
+       width:.5em;
+       height:100%;
+       float:right;
+       background-image:url(images/details_ir.png);
+       background-position: top right;
+       background-repeat:no-repeat;
+}
+.details_il{
+       height:100%;
+       float:left;
+       background-image:url(images/details_il.png);
+       background-position: top left;
+       background-repeat:no-repeat;
+}
+.home-title{
+       font-size:12pt;
+}
+.buttonbox{
+       float:right;
+}
+.details_text{
+       margin-left:1em;
+}
+.draggable_selected {
+       background-color: lightgrey;
+       cursor: move;
+}
+
+div.menuedit{
+       float:right;
+       margin-top:-1.2em; 
+       border:1px solid #cccccc;
+}
+li.folders {
+       list-style: disc url(../../images/folder.gif) outside;
+       font-family: Helvetica,sans-serif;
+       margin-bottom: 0;
+       margin-top: 0;
+       margin-right: 0;
+}
+
+li.folders .disabled {
+       color: #B8AE9C;
+}
+
+ul.folder{
+       list-style-image:none;
+       list-style-position:outside;
+       list-style-type:none;
+       margin:0em;
+       padding:0em;
+}
+
+
+/*     hiding/showing  results-display */
+
+
+div#results-display{
+       display: none;
+}
+
+ul#topnavlist li {
+       padding: 0;
+       margin: 0;
+}
+       
+ul#topnavlist>li:hover, ul#topnavlist>li:hover a,  ul#topnavlist>li:active, ul#topnavlist>li:active a, ul#topnavlist>li:focus, 
+ul#topnavlist>li:focus a {
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+}
+
+ul#topnavlist li a  {
+       color: #4C566C;
+       text-decoration: none;
+}
+
+
+div.toolcontainer{
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
+}
+
+ul#subnavlist li a:hover, ul#subnavlist li a:focus, ul#subnavlist li a.active{
+}
+#subnavlist{
+       display: none;
+}
+ul#subnavlist li a, ul#subnavlist li a:visited {
+       color: #4C566C;
+}
+
+
+/* list attributes */
+ul {
+       list-style: none;
+}
+li {
+       color: black;
+       list-style: none;
+}
+
+ol#tools>li:hover {
+       /*border: 1px solid #e0e0e0;*/
+       background-color: #e6e6e6;
+       color: black;   
+       
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+       
+}
+ol#tools>li:hover a{
+       color: white;
+}
+
+#contentwrapper{
+       
+}
+#content-contentwrapper{
+       height:100%;
+    position:relative; 
+       z-index:1000;                   
+       width:100%;
+       overflow:hidden;
+}
+
+#leftcolumn{
+       float: left;
+       width: 17em;
+       margin-left: 0.313em;
+       margin-top:-0.625em;
+}
+
+#copyright{
+       font-size: 0.5em;
+}
+#gototop{
+       text-align: center;
+       color: #4B6B90;
+}
+
+#tools{
+       margin: 0 auto;
+       padding: 0;
+}
+
+
+/* ATutor Social Styles */
+
+div .profile_container {
+       background-color:#eee; 
+       border: 1px solid #8e8e8e; 
+       width:80%; 
+       padding:0.5em; 
+       margin-bottom: 0.5em;
+}
+
+div .profile_container .top_right {
+       float: right;
+}
+
+dl.public-profile dd{
+       margin-left:0;
+}
+dl.public-profile dt {
+       float: left;
+       font-weight: bold;
+       min-width:12em;
+}
+
+/* Search form */
+div .search_form {
+       margin-bottom: 1em;
+}
+
+div .search_form .row{
+       background-color: #DEDEC0;
+       padding: 0.5em;
+}
+div .button {
+       background-color: #eee;
+       border: 1px solid #aaa;
+}
+div .button:hover{
+       background-color: #cccccc;
+       color: #ffffff;
+}
+
+/* Side menu */
+
+
+ul.social_side_menu {
+       padding-left: 2em;
+}
+ul.social_side_menu li {
+       padding-bottom: 0.2em;
+       list-style: circle;
+}
+
+div .divider {
+       border-bottom:1px solid #C1C157; 
+       padding-bottom:0.5em; 
+       margin-bottom:0.5em;
+}
+
+.activity{
+       line-height:18pt;
+       font-size:.8em;
+}
+
+div.contentbox, input-form{
+
+       padding:.5em;
+       background-color: #ffffff;
+    overflow:hidden;
+    border: #A9ADB0 solid 1px;
+       -webkit-border-radius: 5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+}
+
+div.suggestions{
+       border:1px solid #a50707;
+       margin-left:0.625em; 
+       width:50%;
+}
+li.inlinelist{
+       display: inline; 
+       padding-right: 1em;
+}
+ul.social_inline_menu{
+       background-color: #eeeeee;
+       border:thin #cccccc solid;
+       padding:.5em;
+       width:90%;
+       margin:auto;
+}
+div.social-wrapper{ 
+       width: 100%;
+}
+
+div.logo{
+float:left;
+clear:right;
+margin-left:2em;}
+
+/*mobile FSS override */
+.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a:hover, 
+.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a:focus,
+.fl-theme-iphone [class*="fl-list"]:not(.fl-list):not(.fl-grid) a:active {
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+  
+}
+ul#subnavlist li a:focus, ul#subnavlist li a:active, ul#subnavlist li a:hover{
+       color: white;
+}
+
+
+
+/************************************************************************************************/
+/*Adds arrows to Fluid Tabs. Here is a good guide for creating triangles with CSS: 
+http://jonrohan.me/guide/css/creating-triangles-in-css/ */
+/************************************************************************************************/
+ul.sequence-links {
+}
+
+ul.sequence-links li {
+    position:relative;
+    overflow:hidden;
+    list-style:none;
+}
+
+ul.sequence-links li.back a:link, ul.sequence-links li.back a:visited {
+    display:block;
+    padding-left:0.438em;
+       color: #005689;
+}
+
+ul.sequence-links li.forward a:link, ul.sequence-links li.forward a:visited {
+    display:block;
+    padding-right:0.313em;
+       color: #005689;
+}
+/*WCAG*/
+ul.sequence-links li a:hover, ul.sequence-links li a:focus, ul.sequence-links li a:active,
+ul.sequence-links li.back a:hover, ul.sequence-links li.back a:focus, ul.sequence-links li.back a:active,
+ul.sequence-links li.forward a:hover, ul.sequence-links li.forward a:focus, ul.sequence-links li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+
+
+ul.sequence-links li:before, ul.sequence-links li:after, ul.sequence-links li a:before, ul.sequence-links li a:after {
+    content:"";
+    position:absolute;
+    top:50%;
+   /* left:0;*/
+}
+
+ul.sequence-links li a:before, ul.sequence-links li a:after {
+    margin:-0.5em 0 0;
+  }
+
+ul.sequence-links li a:hover:before, ul.sequence-links li a:focus:before, ul.sequence-links li a:active:before {
+}
+/*arrow that points to the left, beside the "Previous" text */
+.arrow.back a:after {/*arrow pointing to the left*/
+     background: none repeat scroll 0% 0% transparent;
+     border-color: transparent #005689;
+   
+     border-style: solid;
+     border-width: 5px 0pt 5px 6px;
+     left: 0.5em;
+     margin-top: -0.39em;
+}
+
+/*left and right triangle icons change color*/
+.arrow a:hover:after, .arrow a:focus:after, .arrow a:active:after, .arrow.forward a:hover:after, .arrow.forward a:focus:after, .arrow.forward a:active:after{
+       border-color: transparent #4c96f4;
+}
+
+.arrow.back a:after {
+     border-width: 6px 6px 6px 0pt;    
+     left: 0.188em;
+     top: 1.25em;
+}
+
+
+/*arrow that points to the right, beside the "Next" text */
+.arrow.forward a:after {
+     background: none repeat scroll 0% 0% transparent;
+     border-color: transparent #FFFFFF;
+     border-style: solid;
+     margin-top: -0.425em;
+     margin-top: -0.313em;
+   
+}
+.arrow.forward a:after {
+     /*top: 11px;*/
+       background: none repeat scroll 0% 0% transparent;
+     border-color: transparent transparent transparent    #005689;
+        border-width: 6px;
+        border-style: solid;
+        width:0;
+        height:0;
+        right: -0.313em;
+        top: 1.19em;
+}
+
+#sequence-links{
+       float: left;
+}
+       
+
+#content{
+       text-align: left;
+       width: 93.5%;
+       width: 99%;
+       border-left: #A9ADB0 1px solid;
+       border-right: #A9ADB0 1px solid;
+       border-bottom: #A9ADB0 1px solid;
+       -webkit-border-radius: 5px; 
+       -moz-border-radius: 5px; 
+       border-radius: 5px;
+       display: none;
+       position: relative;
+       top: 0em; 
+       clear: left;
+       clear: right;
+       z-index: 1;
+}
+
+/*hiding and showing content */
+
+#results-hide-show-simple-content{
+       -webkit-border-radius:5px;
+       -moz-border-radius:5px;
+       border-radius: 5px;
+       border: 1px #A9ADB0 solid;
+       padding-top: .6em;
+       padding-bottom: .6em;
+       padding-right: .2em;
+       padding-left: .6em;
+       margin-bottom: 0.875em;
+       margin-top: 0.875em;
+       color: #005689;
+       background-color: none;
+}
+#results-hide-show-link{
+       color: white;
+       color: #005689;
+       text-decoration: none;  
+       display: block;
+       font-weight: bold;
+}
+
+
+.content-expand{
+       background-image:url("images/up.png");
+       background-position: 100% 100%;
+       background-repeat: no-repeat;
+}
+
+.content-closed{
+       background-image:url("images/down.png");
+       background-position: 100% 100%;
+       background-repeat: no-repeat;   
+}
+#results-display{
+       background-color: #F7F3ED; 
+       -webkit-border-radius:8px;
+       -moz-border-radius:8px;
+       border-radius: 8px;
+       border: 1px #A9ADB0 solid;
+       padding: .313em;
+       
+}
+.hide-show-container-surround a:active, .hide-show-container-surround a:focus, .hide-show-container-surround a:hover{
+       background-color: transparent;
+       
+}
+.subnavcontain2, .subnavcontain{
+       margin: .313em 0; 
+       background-color: white;
+       border: #A9ADB0 1px solid; 
+       -webkit-border-radius:8px;
+       -moz-border-radius:8px;
+       border-radius: 8px;
+       width: 100%;
+
+}
+/* .fl-theme-iphone .subnavcontain a:hover, .fl-theme-iphone .subnavcontain a:active, .fl-theme-iphone .subnavcontain a:focus*/
+.fl-theme-iphone .subnavcontain a {
+       text-decoration: none;
+
+}
+.fl-theme-iphone .subnavcontain-active{
+       color: white;
+       text-decoration: none;
+} 
+.subnavcontain3{
+       margin: .313em 0; 
+       background-color: #4c96f4;
+       background-image:       -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+       border: #A9ADB0 1px solid; 
+       -webkit-border-radius:8px;
+       -moz-border-radius:8px;
+       border-radius: 8px;
+       width: 100%;
+} 
+#subnavlist-link{
+       display: block;
+       
+}
+#page-title-back-to-page{
+    display: inline-block;
+    width: 100%;
+}
+
+.page-title, #back-to-page{
+    float: left;
+}
+
+.fl-theme-iphone #subnavlist-link  a:active, 
+.fl-theme-iphone #subnavlist-link  a:hover, 
+.fl-theme-iphone #subnavlist-link a:focus{
+       background-color: none;
+}
+.fl-theme-iphone .subnavcontain{
+       margin-top: 1em;
+       
+}
+.rectangle2{
+       display: inline-block; 
+       color: #005689;
+       font-weight: bold; 
+       padding: .6em;
+       margin: -.1em;
+       border-right: #A9ADB0 1px solid; 
+}
+
+.rectangle2:last-child{
+       border: none;
+}
+.rectangle2 a{
+       color: #005689;
+       text-decoration: none;
+       font-weight: bold;
+}
+.rectangle{
+       display: block;
+       color: #005689;
+       font-weight: bold; 
+       padding: .313em;
+       margin: .313em 0;
+           
+}
+#content_link_phone a:active, #content_link_phone a:focus, #content_link_phone a:hover{
+       color: #005689;
+       background-color: white;
+}
+/* style for "last modified" information of course content*/
+#content-info{
+       padding-top: 1em;
+       font-size: 80%;
+}      
+ul.my-courses-list-ul > li:hover{
+       background-color: #4c96f4;
+       color: black;   
+       color: #fff;
+}
+ul.my-courses-list-ul > li:hover a{
+       color: white;
+       text-decoration: none;
+}
+
+/* to be created as a separate desktop theme file. The classes below should be removed when 
+Mark McLaren's port of mobile fss to firefox is committed to infusion: 
+https://github.com/fluid-project/infusion/blob/25ad6755ef78347b414d60bd4037a0f197f9d09d/infusion-branch/src/webapp/framework/fss/css/fss-mobile-theme-firefox.css */ 
+.fl-tabs li:first-child {
+    border-bottom-left-radius: 5px;
+    border-top-left-radius: 5px;
+}
+
+.fl-theme-iphone .fl-tabs li {
+    -moz-border-image: url("images/navbar_normal_button_insetShadow.png") 5 5 5 5 stretch;
+    background-color: #354D68;
+}
+[class*="fl-container"] [class*="fl-list"] > li:first-child, [class*="fl-container"] [class*="fl-list"] > li:first-child a {
+    border-top-left-radius: 8px;
+    border-top-right-radius: 8px;
+}
+[class*="fl-container"] [class*="fl-list"] > li:last-child, [class*="fl-container"] [class*="fl-list"] > li:last-child a {
+    border-bottom-left-radius: 8px;
+    border-bottom-right-radius: 8px;
+}
+
+.fl-theme-iphone .fl-tabs .fl-tabs-active {
+    background-image: -moz-linear-gradient(
+        center top,
+        rgba(149, 184, 239,1),
+        rgba(35,109,229,1),
+        rgba(149, 184, 239,1)  50%,
+        rgba(75,148,244,1) 50%
+    );
+}
+
+/* A simulation for a:active on the device, requires JS */
+/* since .fl-list is for mixed material lists, dont include them in these effects */
+.fl-theme-iphone [class*=fl-list]:not(.fl-list):not(.fl-grid) a:active,
+.fl-theme-iphone [class*=fl-list]:not(.fl-list):not(.fl-grid) a.fl-link-hilight {
+    background: url(../images/themes/iphone/listmenu_arrow.png) no-repeat right -25px,
+                -moz-linear-gradient(#4a94f4, #236de5);
+}
diff --git a/docs/themes/simplified-desktop/moz.css b/docs/themes/simplified-desktop/moz.css
new file mode 100644 (file)
index 0000000..03531d6
--- /dev/null
@@ -0,0 +1,464 @@
+/*
+ * Contributed by Mark McLaren on the Infusion Users List
+ * http://fluidproject.org/pipermail/infusion-users/2010-April/000186.html
+ This should be deleted from mobile/when it is committed to mobile FSS. 
+ */
+
+.fl-icon {
+    -moz-border-radius: 5px;
+}
+
+/*****************************************/
+/*                                      */
+/*                                      */
+/*         fl-theme-android              */
+/*                                      */
+/*                                      */
+/*****************************************/
+
+.fl-theme-android h1,
+.fl-theme-android h2,
+.fl-theme-android h3 {
+    background: #999 -moz-linear-gradient(
+       center top,
+       #ccc, 
+       #999) no-repeat top left;
+}
+
+/***************************************/
+/* Navigation Bar */
+
+.fl-theme-android .fl-navbar {
+    background-image: -moz-linear-gradient(
+       center top,
+        #666,
+        #333 50%,
+        #000 50%,
+        #000
+    );
+    -moz-box-shadow: 0px 0px 5px rgba(0,0,0,0.5);
+}
+
+.fl-theme-android .fl-navbar .fl-button {
+    -moz-border-image:none;
+    background-image: -moz-linear-gradient(
+       center top,    
+        #444,
+        #666 50%,
+        #333 50%,
+        #000
+    );
+}
+.fl-theme-android .fl-navbar [class*=fl-button]:active {
+    background-image: -moz-linear-gradient(
+       center top,   
+        #ffb347,
+        #ff702f
+    );
+}
+
+.fl-theme-android .fl-navbar .fl-backButton {
+    -moz-border-image: url(../images/themes/android/navbar_back_button_insetShadow.png) 0 15 stretch;
+}
+
+.fl-theme-android .fl-navbar .fl-button-inner {
+    -moz-border-image: url(../images/themes/android/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+}
+
+/***************************************/
+/* general purpose gel buttons */
+/* effect is applied anywhere but the navbar, which has its own button look */
+
+.fl-theme-android .fl-button {
+    -moz-border-image: url(../images/themes/android/button_bg_insetShadow.png) 10 stretch;
+    -moz-background-origin: border;
+    -moz-background-clip: border;    
+}
+.fl-theme-android .fl-button-white {
+    background-image: -moz-linear-gradient(
+       center top,   
+       rgba(240,240,240,0.25),
+        rgba(220,220,220,0.75),
+        rgba(240,240,240,1) 50%,
+        rgba(200,200,200,0.8) 50%
+    );
+}
+.fl-theme-android .fl-button-black {
+    background-image: -moz-linear-gradient(
+       center top,   
+        rgba(106,106,106,0.25),
+        rgba(00,00,00,0.75),
+        rgba(130,130,130,1)  50%,
+        rgba(75,75,75,0.8) 50%
+    );
+}
+.fl-theme-android .fl-button-green {
+    background-image: -moz-linear-gradient(
+       center top,   
+        rgba(120,190,130,0.2),
+        rgba(50,170,60,0.75),
+        rgba(120,190,130,1) 50%,
+        rgba(0,150,10,0.8) 50%
+    );
+}
+.fl-theme-android .fl-button-blue {
+    background-image: -moz-linear-gradient(
+       center top,   
+        rgba(149, 184, 239,0.2),
+        rgba(35,109,229,0.75),
+        rgba(149, 184, 239,1)  50%,
+        rgba(75,148,244,0.8) 50%
+    );
+}
+/***************************************/
+/* tabs 1: small general purpose content dividers */
+.fl-theme-android .fl-tabs li {
+    background-image: -moz-linear-gradient(
+       center top,   
+        #666,
+        #666 50%,
+        #000 50%,
+        #000
+    );
+    -moz-border-image: url(../images/themes/android/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -moz-border-left-image: none;
+    -moz-background-origin: border;
+    -moz-background-clip: border;
+}
+
+.fl-theme-android .fl-tabs .fl-tabs-active {
+    background-image: -moz-linear-gradient(
+       center top,   
+        #ff702f,
+        #ffb347
+    );
+}
+
+/*************************************************/
+/* Ordered lists, Unordererd lists, Thumbnail lists, Icon lists, Definition lists */
+/*************************************************/
+/* Default list system setup */
+
+.fl-theme-android [class*=fl-list] > li {
+    background: transparent -moz-radial-gradient(center 45deg, circle farthest-side, 
+       #FFF 0%, 
+       #000 100%) no-repeat bottom center;;
+    -moz-background-size: 100% 1px; 
+}
+
+/* A simulation for a:active on the device, requires JS */
+.fl-theme-android [class*=fl-list]:not(.fl-list):not(.fl-grid) a:active,
+.fl-theme-android [class*=fl-list]:not(.fl-list):not(.fl-grid) a.fl-link-hilight {
+    background: -moz-linear-gradient(
+       center top,   
+       #ffb347, 
+       #ff702f);
+}
+
+.fl-theme-android [class*=fl-list]:not(.fl-list) a.fl-link-loading {
+    background: url(../images/themes/android/listmenu_loader.gif) no-repeat 97% center,
+                       -moz-linear-gradient(
+       center top,   
+       #ffb347, 
+       #ff702f);
+}
+
+/***************************************/
+/* Grid overrides, removes nav coloring */
+
+.fl-theme-android .fl-grid li a:active,
+.fl-theme-android .fl-grid .fl-link-hilight {
+    background: -moz-linear-gradient(
+       center top,   
+       #ffb347, #ff702f);
+}
+
+/****************************/
+/* Collapsing and expanding panels */
+
+.fl-theme-android .fl-container-autoHeading > *:first-child {
+    background: -moz-linear-gradient(
+       center top,   
+       #CCC, #999);
+}
+.fl-theme-android .fl-container-autoHeading > *:first-child:focus {
+    background: -moz-linear-gradient(
+       center top,   
+       #FFF, 
+       #CCC);
+}
+.fl-theme-android .fl-container-autoHeading > :last-child {
+        background: transparent 
+        -moz-radial-gradient(50% 0, circle, rgba(100,100,100,1) 0%, rgba(0,0,0,0) 100%);
+    );
+}
+
+/*****************************************/
+/*                                      */
+/*                                      */
+/*         fl-theme-iphone               */
+/*                                      */
+/*                                      */
+/*****************************************/
+
+.fl-theme-iphone {
+    background: -moz-repeating-linear-gradient(top left 0deg, #c5ccd3, #c5ccd3 1px, #cfd5dd 10px, #c5ccd3 10px);
+}
+
+
+/***************************************/
+/* Navigation Bar */
+
+.fl-theme-iphone .fl-navbar {
+    background-image: -moz-linear-gradient(
+        center top,
+        #B0BCCD,
+        #889BB3 50%,
+        #6D84A2 50%,
+        #6D84A2
+    )
+}
+
+.fl-theme-iphone .fl-navbar .fl-button {
+    -moz-border-image:none;
+    background-image: -moz-linear-gradient(
+        center top,
+        #9aafca,
+        #6d8cb3 50%,
+        #4b6b90 50%,
+        #4b6b90
+    );
+}
+
+.fl-theme-iphone .fl-navbar [class*=fl-button]:active {
+    background-image: -moz-linear-gradient(
+        center top,
+        rgba(149, 184, 239,1),
+        rgba(35,109,229,1),
+        rgba(149, 184, 239,1) 35%,
+        rgba(75,148,244,1) 50%
+    );
+}
+
+.fl-theme-iphone .fl-navbar .fl-backButton {
+    /* See mobile layout for details */
+    -moz-border-image: url(../images/themes/iphone/navbar_back_button_insetShadow.png) 0 15 stretch;
+}
+
+.fl-theme-iphone .fl-navbar .fl-button-inner {
+    -moz-border-image: url(../images/themes/iphone/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+}
+
+
+/***************************************/
+/* general purpose gel buttons */
+/* effect is applied anywhere but the navbar, which has its own button look */
+
+.fl-theme-iphone .fl-button {
+    -moz-border-image: url(../images/themes/iphone/button_bg_insetShadow.png) 10 stretch stretch;
+    -moz-background-origin: border;
+    -moz-background-clip: border;
+}
+.fl-theme-iphone .fl-button-white {
+    background-image: -moz-linear-gradient(center top,
+        rgba(240,240,240,0.25),
+        rgba(220,220,220,0.75),
+        rgba(240,240,240,1),
+        rgba(200,200,200,0.8)
+    );
+}
+.fl-theme-iphone .fl-button-black {
+    background-image: -moz-linear-gradient(center top,
+        rgba(106,106,106,0.25),
+        rgba(00,00,00,0.75),
+        rgba(130,130,130,1),
+        rgba(75,75,75,0.8)
+    );
+}
+.fl-theme-iphone .fl-button-green {
+    background-image: -moz-linear-gradient(center top,
+        rgba(120,190,130,0.2),
+        rgba(50,170,60,0.75),
+        rgba(120,190,130,1),
+        rgba(0,150,10,0.8)
+    );
+}
+.fl-theme-iphone .fl-button-blue {
+    background-image: -moz-linear-gradient(center top,
+        rgba(149, 184, 239,0.2),
+        rgba(35,109,229,0.75),
+        rgba(149, 184, 239,1),
+        rgba(75,148,244,0.8)
+    );
+}
+
+/***************************************/
+/* tabs 1: small general purpose content dividers */
+
+.fl-theme-iphone .fl-tabs li {
+    background-image: -moz-linear-gradient(
+        center top,
+        #9aafca,
+        #4b6b90,
+        #6d8cb3 50%,
+        #4b6b90 50%        
+    );                    
+    -moz-border-image: url(../images/themes/iphone/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -moz-background-origin: border;
+    -moz-background-clip: border;
+}
+
+.fl-theme-iphone .fl-tabs .fl-tabs-active {
+    background-image: -moz-linear-gradient(
+        center top,
+        rgba(149, 184, 239,1),
+        rgba(35,109,229,1),
+        rgba(149, 184, 239,1)  50%,
+        rgba(75,148,244,1) 50%
+    );
+}
+
+/* A simulation for a:active on the device, requires JS */
+/* since .fl-list is for mixed material lists, dont include them in these effects */
+.fl-theme-iphone [class*=fl-list]:not(.fl-list):not(.fl-grid) a:active,
+.fl-theme-iphone [class*=fl-list]:not(.fl-list):not(.fl-grid) a.fl-link-hilight {
+    background: url(../images/themes/iphone/listmenu_arrow.png) no-repeat right -25px,
+                -moz-linear-gradient(#4a94f4, #236de5);
+}
+
+.fl-theme-iphone [class*=fl-list]:not(.fl-list) a.fl-link-loading {
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+                -moz-linear-gradient(center top, #4a94f4, #236de5);
+}
+
+/****************************/
+/* Collapsing and expanding panels */
+.fl-theme-iphone .fl-container-autoHeading > *:first-child {
+    background: -moz-linear-gradient(center top, #999, #000);
+}
+.fl-theme-iphone .fl-container-autoHeading > *:first-child:focus {
+    background: -moz-linear-gradient(center top, #FFF, #CCC);
+}
+
+
+
+/*****************************************/
+/*                                      */
+/*                                      */
+/* Originates from fss-mobile-layout.css */
+/*                                      */
+/*                                      */
+/*****************************************/
+
+
+
+/***************************************/
+/**
+ * Basic overrides for fss layout
+ */
+
+.fl-icon {
+    -moz-border-radius: 5px;
+}
+
+/***************************************/
+/* iPhone general purpose gel buttons */
+/* effect is applied anywhere but the navbar, which has its own button look */
+
+.fl-button {
+    -moz-border-radius: 10px;
+}
+
+.fl-navbar .fl-button-inner {
+    -moz-background-origin: border;
+    -moz-background-clip: border;
+}
+
+
+/*************************************************/
+/* Navigation Bar
+ */
+.fl-navbar [class*=fl-button] {
+    -moz-border-radius: 5px;
+}
+
+.fl-navbar .fl-backButton {
+    -moz-border-radius: 0 5px 5px 0;  
+    -moz-background-origin: border;
+    -moz-background-clip: border;  
+}
+
+
+
+/*************************************************/
+/* iPhone tabs: general purpose dividers, or fixed to the bottom of the screen
+ */
+/*************************************************/
+
+.fl-tabs li:first-child {
+    -moz-border-radius-topleft:5px;
+    -moz-border-radius-bottomleft:5px;
+}
+.fl-tabs li:last-child {
+    -moz-border-radius-topright:5px;
+    -moz-border-radius-bottomright:5px;
+}
+
+/*************************************************/
+/* Glossy icons (and thumbnails?) */
+
+/* Glossiness for 30x30 icons */
+.fl-list-glossy > li a::before {
+    -moz-border-radius: 3px;    
+}
+
+/*************************************************/
+/* Content Panels */
+/*************************************************/
+[class*=fl-container] [class*=fl-list] > li:first-child,
+[class*=fl-container] [class*=fl-list] > li:first-child a {
+    -moz-border-radius-topleft: 8px;
+    -moz-border-radius-topright: 8px;    
+}
+
+[class*=fl-container] [class*=fl-list] > li:last-child,
+[class*=fl-container] [class*=fl-list] > li:last-child a {
+    -moz-border-radius-bottomleft:8px;
+    -moz-border-radius-bottomright:8px;    
+}
+
+[class*=fl-container] [class*=fl-list]:not(.fl-thumbnails-expanded) > li a .fl-icon {
+    -moz-border-radius-bottomleft:8px;
+    -moz-border-radius-topleft:8px;    
+}
+
+[class*=fl-container] .fl-list-thumbnails:not(.fl-thumbnails-expanded) > li,
+[class*=fl-container] .fl-list-thumbnails:not(.fl-thumbnails-expanded) > li a {
+    -moz-border-radius: 8px;
+}
+/* Panel Auto Headings */
+/* The first element found becomes the "heading" */
+.fl-container-autoHeading > *:first-child {
+       -moz-border-radius-topleft: 8px;
+       -moz-border-radius-topright: 8px;
+}
+/* The last element found becomes the "content" - list or otherwise */
+.fl-container-autoHeading > *:last-child {
+       -moz-border-radius:0px;
+       -moz-border-radius-bottomleft:8px;
+       -moz-border-radius-bottomright:8px;
+}
+.fl-container-autoHeading [class*=fl-list] > li:first-child,
+.fl-container-autoHeading [class*=fl-list] > li:first-child a {
+       -moz-border-radius:0;
+}
+.fl-container-autoHeading [class*=fl-list] > li:first-child:last-child,
+.fl-container-autoHeading [class*=fl-list] > li:first-child:last-child a {
+       -moz-border-radius-bottomleft:8px;
+       -moz-border-radius-bottomright:8px;
+}
+
+/* Collapsing and expanding panels */
+.fl-container-collapsable {
+       -moz-border-radius:8px;
+}
diff --git a/docs/themes/simplified-desktop/password_reminder.tmpl.php b/docs/themes/simplified-desktop/password_reminder.tmpl.php
new file mode 100644 (file)
index 0000000..9979edb
--- /dev/null
@@ -0,0 +1,28 @@
+<?php 
+global $onload;
+$onload = 'document.form.form_email.focus();';
+
+require(AT_INCLUDE_PATH.'header.inc.php'); 
+?>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+       <input type="hidden" name="form_password_reminder" value="true" />
+       <div class="input-form" style="width: 90%;">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('password_reminder'); ?></legend>
+               <div class="row">
+                       <?php echo _AT('password_blurb'); ?>
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email_address'); ?></label><br />
+                       <input type="text" name="form_email" id="email" size="40" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" /> <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
+               </div>
+       </fieldset>
+       </div>
+</form>
+
+<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/print.css b/docs/themes/simplified-desktop/print.css
new file mode 100644 (file)
index 0000000..c83c763
--- /dev/null
@@ -0,0 +1,13 @@
+body {
+       background-color: White;
+       font-family: Helvetica, arial, sans serif;
+       margin: 0px;
+       margin-top: 0px;
+       color: black;
+       border: 0px;
+}
+
+div#side-menu, div#member-links, span#side-menushowlink, div#rightcolumn, div#suv-nav-logout, div#top-links, span#side-menuhidelink, div.sequence-links, select#jumpmenu, a#guide, div#gototop, input#jump-button, div#topnavlistcontainer, a#guide, div#breadcrumbs, div#jump-area, table.tabbed-table, div#sub-navigation, div#sequence-links, div#language, div#toc, fieldset#shortcuts {
+       display: none;
+}
+
diff --git a/docs/themes/simplified-desktop/readme.txt b/docs/themes/simplified-desktop/readme.txt
new file mode 100644 (file)
index 0000000..fac655a
--- /dev/null
@@ -0,0 +1,343 @@
+******************************************************************************************
+Theme:         1.6.4 Mobile Theme
+Date:          August 2011
+******************************************************************************************
+
+
+Installing:     See section "Installing a New Theme" in the themes_readme.txt file located in the themes/ top directory.
+Licence:       Falls under the GPL agreement.  See http://www.gnu.org/copyleft/gpl.html.
+
+==============================================================================
+What's new: 
+==============================================================================
+
+/mobile.css 
+* style for android, iphone, & ipod rolled into one stylesheet
+* improved subnavigation and in-course navigation
+
+/tablet.css 
+* new style for tablet devices, beginning with -webkit browsers
+* generic CSS used to broaden browser support
+
+include/header.tmpl.php
+* accessibility: increased support for ARIA roles that Safari recognizes. Note: ARIA roles create HTML validation errors.
+
+==================================================================================
+Known Issues / More work needed
+==================================================================================
+
+why isn't simplified-desktop in svn? 
+
+Outstanding templates to be created: 
+* see "TEMPLATES - CREATED & OUTSTANDING" for a list of my progress &  "Omitted from mobile/" for a list of work that needs to be done. 
+Towards a simplified desktop theme: 
+* develop a desktop theme based on tablet.css (harder) 
+* develop a desktop theme based on mobile.css (easier) & do a final update to ensure generic CSS is used
+** update to -moz rules
+* erase commented out styles from mobile.css and tablet.css and re-order where necessary
+
+Simplify or remove this rule in mobile.css and tablet.css
+* navigation-bar-button-content
+
+Tablet bug? 
+In Firefox, the "Home" and "Previous/Next" buttons are the wrong height. Test on the tablet
+then see if it can be reproduced there before fixing. 
+
+Aesthetic improvements, mobile: 
+* Resume, Previous, Next on mobile should highlight as a block (outstanding)
+* on activation should highlight as a block (done-AUG27) 
+* the Subnavigation div should highlight as a block (done-AUG27)
+* Instructor user: (done-AUG27) /docs/mods/_standard/statistics/course_stats.php - (template now includes graph)
+
+
+* "0004796: Student user's Preferences template won't display"
+** see: http://atutor.ca/atutor/mantis/view.php?id=4796
+** see: http://atutor.ca/atutor/mantis/view.php?id=4679
+
+
+Mobile FSS 
+* "Activation hightlighting is visible on the desktop but not the on the mobile device"
+** see: http://issues.fluidproject.org/browse/FLUID-4313
+** both arrows and background color don't highlight.
+** affects .fl-lists, including:
+*** the "Navigation" menus on mobiles and tablets after a link is highlighted 
+*** docs/users/browse.php in mobile and tablets
+
+Mark McLaren's moz.css
+https://github.com/fluid-project/infusion/commit/25ad6755ef78347b414d60bd4037a0f197f9d09d#diff-7
+==================================================================================
+Omitted from mobile/
+==================================================================================
+Administrator user: 
+*Patcher 
+*/docs/mods/_core/cats_categories/admin/course_categories.php
+*/docs/mods/_core/enrolment/admin/privileges.php 
+*/docs/mods/_core/modules/install_modules.php
+*/docs/mods/_core/languages/language_editor.php
+
+Instructor user: 
+*/docs/mods/_standard/assignments/add_assignment.php
+*Course Tools
+*/docs/mods/_core/enrolment/create_course_list.php
+*/docs/mods/_core/enrolment/privileges.php
+*mods/_core/file_manager/index.php
+*file manager -- removed for mobile 
+*reading list
+*groups
+*gradebook
+*glossary
+** /docs/mods/_core/glossary/tools/index.php ** NOT DONE
+** docs/mods/_core/glossary/tools/add.php ** DONE - August 31st
+*patcher
+*student tools
+
+===================================================================================================
+Accessibility notes, features, & validation issues 
+===================================================================================================
+*Newer versions of iPods, iPads, & iPhones have limited support for WAI-ARIA. I deployed the roles that were supported. 
+VoiceOver users can enable or disable speaking, for example, of various WAI-ARIA roles. Here is Apple's documentation:
+ http://developer.apple.com/library/safari/#documentation/appleapplications/reference/SafariHTMLRef/Articles/AccessibilityRoles.html
+
+WCAG AA
+I primarily used WCAG to guide the evolution of content generated from the header and footer. 
+Below are Success Criteria that apply to my work, and I have listed criteria that don't pass
+ or that may need more attention. Further Success Criteria apply to the LMS but would depend on, 
+for example, course content used.  I checked for WCAG as a part of my AChecker workflow 
+(to WCAG AA) along with validating markup, and manually on the following capstone pages: 
+**
+
+Applicable Success Criteria 
+1.1.1 Non-text Content***
+1.3.1 Info and Relationships 
+       Note: should fieldset/legends and onkeydown be added to these pages?
+       /docs/mods/_core/users/users.php 
+       /docs/mods/_core/users/instructor_requests.php
+       /docs/mods/_core/users/master_list.php 
+       /docs/mods/_core/users/admins/index.php 
+       /docs/mods/_core/users/admins/log.php 
+       /docs/mods/_core/courses/admin/courses.php 
+       /docs/mods/_standard/forums/admin/forums.php 
+       /docs/mods/_core/courses/admin/default_mods.php 
+       /docs/mods/_core/modules/index.php 
+       /docs/mods/_standard/rss_feeds/index.php 
+       /docs/mods/_standard/announcements/index.php
+       /docs/mods/_standard/assignments/index_instructor.php
+       /docs/mods/_core/backups/index.php
+       /docs/mods/_standard/chat/manage/index.php
+       /docs/mods/_core/content/index.php 
+       /docs/mods/_standard/tracker/tools/page_student_stats.php
+       /docs/mods/_standard/forums/index.php
+       /docs/mods/_standard/faq/index_instructor.php
+       /docs/mods/_standard/polls/tools/index.php
+
+1.3.2 Meaningful Sequence
+Mobile - passes, but Tablet - fails. Logged into a course as a student user, the DOM order should match the visual order.
+I have listed this as an issue.  
+
+1.3.3 Sensory Characteristics
+1.4.3 Contrast (Minimum)
+1.4.4 Resize text
+-- Applies but unsure how to test using the zoom feature (i.e. to what proportion it magnifies to). 
+-- Increasing text size with finger gestures is disabled, but using Apple's zoom feature, text appears readable.
+
+2.1.1 Keyboard
+**Mobile - passes, but Tablet - fails (Navigation button). I have listed this as an issue. 
+2.1.2 No Keyboard Trap
+2.4.1 Bypass Blocks
+**Note: This passes for both mobile & tablet because heading groupings are used at the beginning of content. 
+**Also, skip-links are working with VoiceOver now on tablet.
+2.4.3 Focus Order
+2.4.4 Link Purpose (In Context)
+2.4.5 Multiple Ways
+2.4.6 Headings and Labels
+2.4.7 Focus Visible
+3.1.1 Language of Page
+3.2.1 On Focus
+**Is this violated by the pop-up "guide" button in the mobile and tablet devices? 
+
+3.2.3 Consistent Navigation
+3.2.4 Consistent Identification
+3.3.2 Labels or Instructions
+3.3.3 Error Suggestion - already handled 
+4.1.1 Parsing, 4.1.2 Name, Role, Value
+
+==============================================================================
+TEMPLATES - CREATED & OUTSTANDING
+==============================================================================
+ADMINISTRATORS: MOBILE -------------------------------------------------------
+
+NOTE there are 4 errors in HTML validator due to using an ARIA role. 
+
+[ADMIN-HOME] 
+1. /docs/admin/index.php -  ****  DONE / WCAG AA / Valid HTML
+2. /docs/mods/_core/users/admins/my_edit.php  ****  DONE / WCAG AA / Valid HTML
+3. /docs/mods/_core/users/admins/my_password.php  ****  DONE / WCAG AA / Valid HTML
+
+[USERS]
+1.  /docs/mods/_core/users/user_enrollment.php **** DONE / WCAG AA / Valid HTML
+2.  /docs/mods/_core/users/password_user.php **** DONE / WCAG AA / Valid HTML
+3.  /docs/mods/_core/users/create_user.php **** DONE / WCAG AA / Valid HTML
+4.  /docs/mods/_core/users/users.php **** DONE / WCAG AA / Valid HTML
+5.  /docs/mods/_core/users/instructor_requests.php **** DONE / WCAG AA / Valid HTML
+6.  /docs/mods/_core/users/master_list.php **** DONE / WCAG AA / Valid HTML (note: lacks fieldset, added onkeydown)
+7.  /docs/mods/_core/users/admin_email.php **** DONE / WCAG AA / Valid HTML  
+8.  /docs/mods/_core/users/admins/index.php **** DONE / WCAG AA / Valid HTML  (note: lacks fieldset, added onkeydown)
+9.  /docs/mods/_core/users/admins/edit.php **** DONE / WCAG AA / Valid HTML  
+10. /docs/mods/_core/users/admins/password.php **** DONE / WCAG AA / Valid HTML 
+11. /docs/mods/_core/users/admins/create.php **** DONE / WCAG AA / Valid HTML
+12. /docs/mods/_core/users/admins/log.php **** DONE / WCAG AA / Valid HTML
+13. /docs/mods/_core/users/admins/reset_log.php  **** DONE / WCAG AA / Valid HTML  
+14. /docs/mods/_core/users/edit_user.php?id=4 **** DONE / WCAG AA / Valid HTML
+
+[COURSES]
+1.  /docs/mods/_core/courses/admin/courses.php **** DONE / WCAG AA / Valid HTML (note: lacks fieldset, added onkeydown)
+2.  /docs/mods/_core/properties/admin/edit_course.php *** DONE (Linearizes)
+3.  /docs/mods/_standard/forums/admin/forums.php ****DONE HTML (note: lacks fieldset, added onkeydown)
+4.  /docs/mods/_standard/forums/admin/forum_add.php **** DONE / WCAG AA / Valid HTML
+5.  /docs/mods/_standard/forums/admin/forum_edit.php **** DONE / WCAG AA / Valid HTML
+6.  /docs/mods/_core/courses/admin/create_course.php *** DONE (Linearizes)
+7.  /docs/mods/_core/enrolment/admin/index.php3 ****  DONE / WCAG AA / Valid HTML
+8.  /docs/mods/_core/enrolment/admin/privileges.php  **** NOT DONE NEEDS TEMPLATING 
+9.  /docs/mods/_core/courses/admin/default_mods.php *** DONE / WCAG AA / Valid HTML - should not be a part of mobile.
+10. /docs/mods/_core/courses/admin/default_side.php **** DONE / HELP WCAG / Valid HTML
+11. /docs/mods/_standard/support_tools/scaffolds.php **** DONE / WCAG AA / Valid HTML
+12. /docs/mods/_core/cats_categories/admin/create_category.php  **** DONE /WCAG AA / Valid HTML
+13. /docs/mods/_core/cats_categories/admin/course_categories.php **** NOT DONE NEEDS TEMPLATING  (subcategories must display)
+
+[PATCHER] 
+DON'T INCLUDE IN MOBILE THEME. 
+http://localhost/GSoC2011/docs/mods/_standard/patcher/index_admin.php
+
+
+[PHOTOS] 
+1.  /docs/mods/_standard/photos/index_admin.php **** DONE / WCAG AA / Valid HTML 
+2.  /docs/mods/_standard/photos/admin/preferences.php  **** DONE / WCAG AA / Valid HTML 
+
+[MODULES] 
+1.  /docs/mods/_core/modules/index.php **** DONE / WCAG AA / Valid HTML (note: lacks fieldset, added onkeydown) -  ?
+2.  /docs/mods/_core/modules/install_modules.php  **** INSTALL MODULES SHOULD BE ENABLED FOR IPAD.CSS and NOT MOBILE -- TOO COMPLICATED 
+3.  /docs/mods/_core/modules/details.php **** DONE / WCAG AA / Valid HTML *** won't text wrap. 
+
+[SYSTEM PREFERENCES]
+1.  /docs/admin/config_edit.php  **** DONE / WCAG AA / Valid HTML 
+2.  /docs/mods/_core/languages/language_translate.php -- **** DONE, VALID WCAG, Valid HTML
+3.  /docs/mods/_core/languages/language_import.php  -- **** DONE, WCAG AA, VALID HTML 
+4.  /docs/mods/_core/languages/language.php -- **** DONE, VALID WCAG, HELP on HTML (CHANNEL BUG)  *** valid HTML except for fieldset
+5.  /docs/mods/_core/languages/language_editor.php -  **** NOT DONE NEEDS TEMPLATING 
+6.  /docs/mods/_standard/rss_feeds/preview.php
+7.  /docs/mods/_standard/rss_feeds/edit_feed.php **** DONE / WCAG AA / Valid HTML
+8.  /docs/mods/_standard/rss_feeds/index.php **** DONE / WCAG AA / Valid HTML (note: lacks fieldset, added onkeydown)
+9. /docs/mods/_standard/rss_feeds/add_feed.php **** DONE / WCAG AA / Valid HTML
+10. /docs/mods/_standard/tile_search/admin/module_setup.php **** DONE / HELP WCAG / HELP HTML (CHANNEL BUG)
+11. /docs/mods/_standard/google_search/admin/module_prefs.php **** DONE, VALID WCAG, HTML good (except for legacy <b> tag)
+12. /docs/mods/_standard/social/admin/delete_applications.php ==  already templated
+13. /docs/mods/_standard/social/index_admin.php **** DONE / WCAG AA / Valid HTML
+14. /docs/admin/cron_config.php **** DONE / WCAG AA / Valid HTML -- wrap bug. 
+15. /docs/admin/error_logging.php
+
+INSTRUCTORS: MOBILE ---------------------------------------------------------------------------------- 
+       --- course home ***DONE 
+       --- networking ***DONE 
+       --- glossary ***DONE 
+       --- mytracker ***DONE 
+       --- index ***DONE
+
+[INBOX]
+/docs/inbox/index.php **** DONE
+/docs/inbox/sent_messages.php **** DONE
+/docs/inbox/send_message.php **** DONE
+/docs/inbox/export.php **** DONE
+
+[ANNOUNCEMENTS] 
+/docs/mods/_standard/announcements/index.php **** DONE 
+/docs/mods/_standard/announcements/add_news.php **** DONE
+/docs/mods/_standard/announcements/edit_news.php **** DONE 
+
+[ASSIGNMENTS]
+/docs/mods/_standard/assignments/index_instructor.php **** DONE
+NOT DONE: /docs/mods/_standard/assignments/add_assignment.php **** NOT DONE, remove for mobile? 
+
+[BACKUPS]
+/docs/mods/_core/backups/index.php  **** DONE 
+/docs/mods/_core/backups/create.php **** DONE 
+/docs/mods/_core/backups/edit.php **** DONE 
+/docs/mods/_core/backups/upload.php **** DONE
+/docs/mods/_core/backups/delete.php **** DONE 
+
+[CHAT] 
+/docs/mods/_standard/chat/manage/index.php **** DONE 
+/docs/mods/_standard/chat/manage/start_transcript.php **** 
+
+[CONTENT]
+/docs/mods/_core/content/index.php  **** DONE 
+/docs/mods/_core/editor/edit_content_folder.php?cid=240 **** DONE 
+/docs/mods/_standard/tracker/tools/page_student_stats.php **** DONE 
+/docs/mods/_standard/tracker/tools/index.php  **** DONE 
+/docs/mods/_standard/tracker/tools/student_usage.php **** DONE 
+/docs/mods/_standard/tracker/tools/reset.php ***** DONE 
+/docs/mods/_core/editor/add_content.php **** NOT DONE, remove for mobile? 
+/docs/mods/_core/editor/edit_content.php? **** NOT DONE, remove for mobile? (link from /index.php should be removed)
+
+[COURSE EMAIL] 
+http://localhost/GSoC2011/docs/mods/_standard/course_email/course_email.php **** DONE 
+
+[ENROLLMENT]
+/docs/mods/_core/enrolment/export_course_list.php **** DONE 
+/docs/mods/_core/enrolment/import_course_list.php **** DONE 
+/docs/mods/_core/enrolment/create_course_list.php *** Remove for mobile
+/docs/mods/_core/enrolment/index.php **** DONE 
+/docs/mods/_core/enrolment/privileges.php   **** NOT DONE
+
+
+[FORUMS]
+/docs/mods/_standard/forums/edit_forum.php  *** DONE
+/docs/mods/_standard/forums/index.php  *** DONE
+/docs/mods/_standard/forums/add_forum.php  *** DONE
+/docs/mods/_standard/farchive/index_instructor.php  *** DONE
+
+
+[FAQ] 
+/docs/mods/_standard/faq/add_question.php  *** DONE
+/docs/mods/_standard/faq/index_instructor.php  *** DONE
+/docs/mods/_standard/faq/add_topic.php *** DONE  *** DONE
+/docs/mods/_standard/faq/edit_topic.php *** DONE  *** DONE
+/docs/mods/_standard/faq/edit_question.php  *** DONE
+
+
+[GLOSSARY]
+/docs/mods/_core/glossary/tools/add.php
+NOT DONE
+
+[GRADEBOOK]
+NOT DONE
+
+[GROUPS]
+/docs/mods/_core/groups/create.php
+/docs/mods/_core/groups/create_automatic.php
+/docs/mods/_core/groups/create_manual.php
+NOT DONE: - /docs/mods/_core/groups/index.php
+
+
+[POLLS] 
+/docs/mods/_standard/polls/tools/index.php  *** DONE
+/docs/mods/_standard/polls/tools/edit.php  *** DONE
+/docs/mods/_standard/polls/tools/add.php  *** DONE
+
+[PROPERTIES] 
+http://localhost/GSoC2011/docs/mods/_core/properties/course_properties.php  *** DONE
+
+[STUDENT TOOLS]
+NOT DONE: /docs/mods/_standard/student_tools/instructor_index.php 
+
+----------------------------------------------------------------------------------------
+TABLET TEMPLATE: STUDENT 
+*Note: there are 4 ARIA-errors! 
+
+/docs/login.php - WCAG AA / Valid HTML
+/docs/browse.php - WCAG AA / Valid HTML - 6 errors - ARIA-related
+/docs/users/profile.php  - WCAG AA / Valid HTML
+/docs/users/preferences.php - WCAG AA / Valid HTML
+/docs/users/index.php - WCAG AA / Problem with HTML validation, likely to do with the "Things Current" list
+/docs/registration.php
diff --git a/docs/themes/simplified-desktop/registration.tmpl.php b/docs/themes/simplified-desktop/registration.tmpl.php
new file mode 100644 (file)
index 0000000..1768060
--- /dev/null
@@ -0,0 +1,239 @@
+<?php 
+require(AT_INCLUDE_PATH.'header.inc.php'); 
+?>
+
+<script language="JavaScript" src="sha-1factory.js" type="text/javascript"></script>
+
+<script type="text/javascript">
+function encrypt_password()
+{
+       document.form.password_error.value = "";
+
+       err = verify_password(document.form.form_password1.value, document.form.form_password2.value);
+       
+       if (err.length > 0)
+       {
+               document.form.password_error.value = err;
+       }
+       else
+       {
+               document.form.form_password_hidden.value = hex_sha1(document.form.form_password1.value);
+               document.form.form_password1.value = "";
+               document.form.form_password2.value = "";
+       }
+}
+</script>
+
+<form method="post" action="<?php if (isset($_REQUEST["en_id"]) && $_REQUEST["en_id"] <> "") $getvars = '?en_id='. $_REQUEST["en_id"]; echo $_SERVER['PHP_SELF'] . $getvars; ?>" name="form">
+<?php global $languageManager, $_config, $moduleFactory; ?>
+<input name="ml" type="hidden" value="<?php echo $this->ml; ?>" />
+<input name="password_error" type="hidden" />
+<input type="hidden" name="form_password_hidden" value="" />
+<input type="hidden" name="registration_token" value="<?php echo sha1($_SESSION['token']); ?>" />
+
+<div class="input-form">
+<fieldset class="group_form"><legend class="group_form"><?php echo _AT('required_information'); ?></legend>
+
+<p><span class="required">*</span><?php echo _AT('required_field'); ?></p>
+       <?php if (!$_POST['member_id'] && defined('AT_MASTER_LIST') && AT_MASTER_LIST && !admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE)): ?>
+               <div class="row">
+                       <h3><?php echo _AT('account_authorization'); ?></h3>
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="student_id"><?php echo _AT('student_id'); ?></label><br />
+                       <input id="student_id" name="student_id" type="text" size="15" maxlength="15" value="<?php echo stripslashes(htmlspecialchars($_POST['student_id'])); ?>" /><br />
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="student_pin"><?php echo _AT('student_pin'); ?></label><br />
+                       <input id="student_pin" name="student_pin" type="password" size="15" maxlength="15" value="<?php echo stripslashes(htmlspecialchars($_POST['student_pin'])); ?>" /><br />
+               </div>
+       <?php endif; ?>
+
+       <?php 
+               $table_title="
+               <div class=\"row\">
+                       <h3>" . _AT('course_to_auto_enroll'). "</h3>
+                       <small>&middot; " ._AT('auto_enroll_msg')."</small>
+               </div>";
+               
+               require(AT_INCLUDE_PATH.'html/auto_enroll_list_courses.inc.php'); 
+       ?>
+       
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="login"><?php echo _AT('login_name'); ?></label><br />
+               <?php if ($_POST['member_id']) : ?>
+                               <span id="login"><?php echo stripslashes(htmlspecialchars($_POST['login'])); ?></span>
+                               <input name="member_id" type="hidden" value="<?php echo intval($_POST['member_id']); ?>" />
+                               <input name="login" type="hidden" value="<?php echo stripslashes(htmlspecialchars($_POST['login'])); ?>" />
+               <?php else: ?>
+                       <input id="login" name="login" type="text" maxlength="20" size="30" value="<?php echo stripslashes(htmlspecialchars($_POST['login'])); ?>" title="<?php echo _AT('login_name').':'._AT('contain_only'); ?>"/><br />
+                       <small>&middot; <?php echo _AT('contain_only'); ?><br />
+                                  &middot; <?php echo _AT('20_max_chars'); ?></small>
+               <?php endif; ?>
+       </div>
+
+       <?php if (!admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE) || !$_POST['member_id']): ?>
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="form_password1"><?php echo _AT('password'); ?></label><br />
+                       <input id="form_password1" name="form_password1" type="password" size="15" maxlength="15" title="<?php echo _AT('password').':'._AT('combination'); ?>"/><br />
+                       <small>&middot; <?php echo _AT('combination'); ?><br />
+                                  &middot; <?php echo _AT('15_max_chars'); ?></small>
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="form_password2"><?php echo _AT('password_again'); ?></label><br />
+                       <input id="form_password2" name="form_password2" type="password" size="15" maxlength="15" />
+               </div>
+       <?php endif; ?>
+
+       <?php if (isset($_config['use_captcha']) && $_config['use_captcha']==1 && !$this->no_captcha): ?>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span>
+               <label for="secret"><img src="<?php echo AT_INCLUDE_PATH; ?>securimage/securimage_show.php?sid=<?php echo md5(uniqid(time())); ?>" id="simage" align="left" /></label>
+               <a href="<?php echo AT_INCLUDE_PATH; ?>securimage/securimage_play.php" title="<?php echo _AT('audible_captcha'); ?>"><img src="<?php echo AT_INCLUDE_PATH; ?>securimage/images/audio_icon.gif" alt="<?php echo _AT('audible_captcha'); ?>" onclick="this.blur()" align="top" border="0"></a><br>
+               <a href="#" title="<?php echo _AT('refresh_image'); ?>" onclick="document.getElementById('simage').src = '<?php echo AT_INCLUDE_PATH; ?>securimage/securimage_show.php?sid=' + Math.random(); return false"><img src="<?php echo AT_INCLUDE_PATH; ?>securimage/images/refresh.gif" alt="<?php echo _AT('refresh_image'); ?>" onclick="this.blur()" align="bottom" border="0"></a>
+
+               <br /><br />
+               <label for="secret"><?php echo _AT('image_validation_text'); ?></label>
+               <input id="secret" name="secret" type="text" size="6" maxlength="6" value="" />
+               <br />
+               <small><?php echo _AT('image_validation_text2'); ?><br /></small>
+       </div>
+       <?php endif; ?>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email_address'); ?></label><br />
+               <input id="email" name="email" type="text" size="30" maxlength="50" value="<?php echo stripslashes(htmlspecialchars($_POST['email'])); ?>" />
+               <input type="checkbox" id="priv" name="private_email" value="1" <?php if ($_POST['private_email'] || !isset($_POST['submit'])) { echo 'checked="checked"'; } ?> /><label for="priv"><?php echo _AT('keep_email_private');?></label>
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email2"><?php echo _AT('email_again'); ?></label><br />
+               <input id="email2" name="email2" type="text" size="30" maxlength="60" value="<?php echo stripslashes(htmlspecialchars($_POST['email2'])); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="first_name"><?php echo _AT('first_name'); ?></label><br />
+               <input id="first_name" name="first_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['first_name'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="second_name"><?php echo _AT('second_name'); ?></label><br />
+               <input id="second_name" name="second_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['second_name'])); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="last_name"><?php echo _AT('last_name'); ?></label><br />
+               <input id="last_name" name="last_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['last_name'])); ?>" />
+       </div>
+       
+       <?php if (admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE)): 
+                       if ($_POST['status'] == AT_STATUS_INSTRUCTOR) {
+                               $inst = ' checked="checked"';
+                       } else if ($_POST['status'] == AT_STATUS_STUDENT) {
+                               $stud = ' checked="checked"';
+                       }  else if ($_POST['status'] == AT_STATUS_DISABLED) {
+                               $disa = ' checked="checked"';
+                       } else {
+                               $uncon = ' checked="checked"';
+                       }?>
+                       <input type="hidden" name="id" value="<?php echo $_POST['member_id']; ?>" />
+                       <div class="row">
+                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('account_status'); ?><br />
+
+                               <input type="radio" name="status" value="0" id="disa" <?php echo $disa; ?> /><label for="disa"><?php echo _AT('disabled'); ?></label>
+                               <?php if (defined('AT_EMAIL_CONFIRMATION') && AT_EMAIL_CONFIRMATION): ?>
+                                       <input type="radio" name="status" value="1" id="uncon" <?php echo $uncon; ?> /><label for="uncon"><?php echo _AT('unconfirmed'); ?></label>
+                               <?php endif; ?>
+
+                               <input type="radio" name="status" value="2" id="stud" <?php echo $stud; ?> /><label for="stud"><?php echo _AT('student'); ?></label>
+
+                               <input type="radio" name="status" value="3" id="inst" <?php echo $inst; ?> /><label for="inst"><?php echo _AT('instructor'); ?></label>
+
+                               <input type="hidden" name="old_status" value="<?php echo $_POST['old_status']; ?>" />
+                       </div>
+       <?php endif; ?>
+</fieldset>
+<fieldset class="group_form"><legend class="group_form"><?php echo _AT('personal_information').' ('._AT('optional').')'; ?></legend>
+       <?php 
+       $mod = $moduleFactory->getModule('_standard/profile_pictures');
+       if (admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE) && $_POST['member_id'] && $mod->isEnabled() === TRUE): ?>
+               <div class="row">
+                       <?php echo _AT('picture'); ?><br/>
+                       <?php if (profile_image_exists($_POST['member_id'])): ?>
+                               <a href="get_profile_img.php?id=<?php echo $_POST['member_id'].SEP.'size=o'; ?>"><?php print_profile_img($_POST['member_id']); ?></a>
+                               <input type="checkbox" name="profile_pic_delete" value="1" id="profile_pic_delete" /><label for="profile_pic_delete"><?php echo _AT('delete'); ?></label>
+                       <?php else: ?>
+                               <?php echo _AT('none'); ?> <a href="mods/_standard/profile_pictures/admin/profile_picture.php?member_id=<?php echo $_POST['member_id']; ?>"><?php echo _AT('add'); ?></a>
+                       <?php endif; ?>
+               </div>
+       <?php endif; ?>
+
+       <?php if (admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE) && defined('AT_MASTER_LIST') && AT_MASTER_LIST): ?>
+               <input type="hidden" name="old_student_id" value="<?php echo $_POST['old_student_id']; ?>" />
+               <div class="row">
+                       <label for="student_id" value="student id"><?php echo _AT('student_id'); ?></label><br />
+                               <input type="text" id="student_id" name="student_id" value="<?php echo $_POST['student_id']; ?>" size="20" /><br />
+               </div>
+               <div class="row">
+                       <input type="checkbox" id="overwrite" name="overwrite" value="1" <?php if ($_POST['overwrite']) { echo 'checked="checked"'; } ?> /><label for="overwrite"><?php echo _AT('overwrite_master');?></label>
+               </div>
+
+       <?php endif; ?>
+
+       <div class="row">
+               <?php echo _AT('date_of_birth'); ?><br />
+               <label for="year"><?php echo _AT('year'); ?>: </label><input id="year" class="formfield" name="year" type="text" size="4" maxlength="4" value="<?php echo $_POST['year']; ?>" />  <label for="month"><?php echo _AT('month'); ?>: </label><input id="month" class="formfield" name="month" type="text" size="2" maxlength="2" value="<?php echo $_POST['month']; ?>" /> <label for="day"><?php echo _AT('day'); ?>: </label><input id="day" class="formfield" name="day" type="text" size="2" maxlength="2" value="<?php echo $_POST['day']; ?>" />
+       </div>
+
+       <div class="row">
+               <?php echo _AT('gender'); ?><br />
+               <input type="radio" name="gender" id="m" value="m" <?php if ($_POST['gender'] == 'm') { echo 'checked="checked"'; } ?> /><label for="m"><?php echo _AT('male'); ?></label> <input type="radio" value="f" name="gender" id="f" <?php if ($_POST['gender'] == 'f') { echo 'checked="checked"'; } ?> /><label for="f"><?php echo _AT('female'); ?></label>  <input type="radio" value="n" name="gender" id="ns" <?php if (($_POST['gender'] == 'n') || ($_POST['gender'] == '')) { echo 'checked="checked"'; } ?> /><label for="ns"><?php echo _AT('not_specified'); ?></label>
+       </div>
+
+       <div class="row">
+               <label for="address"><?php echo _AT('street_address'); ?></label><br />
+               <input id="address" name="address" size="40" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['address'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="postal"><?php echo _AT('postal_code'); ?></label><br />
+               <input id="postal" name="postal" size="7" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['postal'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="city"><?php echo _AT('city'); ?></label><br />
+               <input id="city" name="city" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['city'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="province"><?php echo _AT('province'); ?></label><br />
+               <input id="province" name="province" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['province'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="country"><?php echo _AT('country'); ?></label><br />
+               <input id="country" name="country" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['country'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="phone"><?php echo _AT('phone'); ?></label><br />
+               <input size="11" name="phone" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['phone'])); ?>" id="phone" />
+       </div>
+
+       <div class="row">
+               <label for="website"><?php echo _AT('web_site'); ?></label><br />
+               <input id="website" name="website" size="40" type="text" value="<?php if ($_POST['website'] == '') { echo 'http://'; } else { echo stripslashes(htmlspecialchars($_POST['website'])); } ?>" />
+       </div>
+</fieldset>
+       <div class="row buttons">
+               <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" onclick="encrypt_password()" class="button"/>
+               <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> "  class="button" />
+       </div>
+</div>
+</form>
+
+<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/rtl.css b/docs/themes/simplified-desktop/rtl.css
new file mode 100644 (file)
index 0000000..4e06fdf
--- /dev/null
@@ -0,0 +1,16 @@
+/* for right to left languages */
+html, body {
+       direction: rtl;
+}
+
+.img-size-tree {
+       vertical-align: middle;
+       margin-top: 0px;
+       height:1.45em;
+       width:1.45em;
+       float: right;
+}
+
+div.box {
+       line-height:150%;
+}
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/screenshot.gif b/docs/themes/simplified-desktop/screenshot.gif
new file mode 100644 (file)
index 0000000..3b01840
Binary files /dev/null and b/docs/themes/simplified-desktop/screenshot.gif differ
diff --git a/docs/themes/simplified-desktop/social/activities.tmpl.php b/docs/themes/simplified-desktop/social/activities.tmpl.php
new file mode 100644 (file)
index 0000000..cee24c3
--- /dev/null
@@ -0,0 +1,32 @@
+
+<div class="">
+       <div class="headingbox">
+               <h3><?php echo _AT('network_updates'); ?></h3>
+               <?php
+                       $user = new Member($_SESSION['member_id']); 
+                       $count = $user->getVisitors();
+                       echo _AT('visitor_counts').': '.$count['total'];
+               ?>
+       </div>
+
+
+       <div class="contentbox">
+       <?php
+       /**
+        * Loop through all the friends and print out a list.  
+        */
+       if (!empty($this->activities)): ?>
+                       <ul>
+                               <?php foreach ($this->activities as $id=>$array): ?>
+                               <li class="activity"><?php echo $array['created_date']. ' - '. printSocialName($array['member_id']).' '. $array['title']; ?></li>
+                               <?php endforeach; ?>
+                       </ul>
+                       <?php //little hack, show_all will only be displayed when the flag is used.
+                       if (sizeof($this->activities)==SOCIAL_FRIEND_ACTIVITIES_MAX): ?>
+                       <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'activities.php', AT_PRETTY_URL_IS_HEADER); ?>"><?php echo _AT('show_all');?></a>
+                       <?php endif; ?> 
+       <?php else: ?>
+       <?php echo _AT('no_activities'); ?>
+       <?php endif; ?>
+       </div><br />
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/admin/delete_applications.tmpl.php b/docs/themes/simplified-desktop/social/admin/delete_applications.tmpl.php
new file mode 100644 (file)
index 0000000..fd60368
--- /dev/null
@@ -0,0 +1,42 @@
+<form class="input-form" action="<?php echo AT_SOCIAL_BASENAME;?>admin/delete_applications.php" method="post">
+<div class="gadget_wrapper">
+<div class="headingbox"><h3><?php echo _AT('available_applications'); ?></h3></div>
+<div class="contentbox" style="padding:1em;">
+       
+<?php if (!empty($this->all_apps)): ?>
+<?php
+       foreach ($this->all_apps as $id=>$app_obj): 
+       //skip the ones that are installed already
+       if ($this->list_of_my_apps[$id]!=null){
+               continue;
+       }
+       $author = ($app_obj->getAuthor()!='')?$app_obj->getAuthor():_AT('unknown');     
+?>
+       <div>
+               <div style="float:left; ">
+                       <?php echo $app_obj->getAppLink($app_obj->getTitle(), $id); ?><br/>
+                       <?php echo $app_obj->getAppLink('<img src="'.$app_obj->getThumbnail().'" alt=""/>', $id); ?><br/>
+                       <?php echo _AT('by'); ?> 
+                       <?php if ($app_obj->getAuthorEmail()!=''): ?>
+                               <a href="<?php echo $app_obj->getAuthorEmail(); ?>"><?php echo $author; ?></a>
+                       <?php else: echo $author; ?>
+                       <?php endif; ?>                 
+               </div>
+
+               <div style="float: right;">
+                       <label for="app_<?php echo $id;?>"><?php echo _AT('delete');?></label>
+                       <input type="checkbox" id="app_<?php echo $id;?>" name="apps[]" value="<?php echo $id; ?>" />
+               </div>
+               <div style="width:60%; margin-left:10em; padding-top:1.5em;">
+                       <?php echo $app_obj->getDescription(); ?><br/><br/>
+                       <?php echo $app_obj->getUrl(); ?><br/>
+               </div>
+               <div style="clear:both;"><hr/></div>
+       </div>
+<?php endforeach; ?>
+<?php else: ?>
+<?php echo _AT('no_gadgets_installed'); ?>
+<?php endif; ?>
+</div></div>
+<div class="row" style="float: right;"><input class="button" type="submit" name="delete" value="<?php echo _AT('delete');?>"/></div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/application_settings.tmpl.php b/docs/themes/simplified-desktop/social/application_settings.tmpl.php
new file mode 100644 (file)
index 0000000..7c6ea39
--- /dev/null
@@ -0,0 +1,66 @@
+<div class="social-wrapper">
+<form method="post" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'applications.php');?>">
+<?php 
+  $html = '<div>';
+  if (! empty($this->settings)) {
+    $settings = $this->settings;
+    foreach ($settings as $key => $setting) {
+      $name = ! empty($setting->displayName) ? $setting->displayName : $key;
+      $default = isset($setting->default) ? $setting->default : '';
+//      $value = isset($vars['application']['user_prefs'][$key]) ? $vars['application']['user_prefs'][$key] : $default;
+      $html .= "<div class=\"settings_label\">$name</div>";
+      switch ($setting->type) {
+        case 'ENUM':
+          $html .= "<select name=\"$key\">\n";
+          foreach ($setting->enumValues as $k => $v) {
+            $sel = ($k == $value) ? ' SELECTED' : '';
+            $html .= "<option value=\"$k\" $sel>$v</option>\n";
+          }
+          $html .= "</select>\n";
+          break;
+        case 'STRING':
+                       if (isset($this->user_settings[$key]) && $this->user_settings[$key]!=''){
+                               $default=$this->user_settings[$key];
+                       }
+                       $html .= "<input type=\"text\" name=\"$key\" value=\"$default\" />\n";
+                       break;
+               case 'HIDDEN':
+                       //hide these for now so that they don't get saved?
+                       //echo "<input type=\"hidden\" name=\"$key\" value=\"$default\" />\n";
+                       $html = '';     //do not display anything
+                       break;
+        case 'BOOL':
+                       //TODO add radio boxes here, should they be yes / no?
+                       $yes = '';
+                       $no = '';
+                       if ($default=='true'){
+                               $yes = ' checked="checked"';
+                       } else {
+                               $no = ' checked="checked"';
+                       }
+                       $html .= '<label for="'.$key.'_yes">'._AT('yes').'</label>';
+                       $html .= '<input id="'.$key.'_yes" type="radio" name="'.$key.'" value="true" '.$yes.' />';
+                       $html .= '<label for="'.$key.'_no">'._AT('no').'</label>';
+                       $html .= '<input id="'.$key.'_no" type="radio" name="'.$key.'" value="false" '.$no.' />';                       
+                       break;
+        case 'LIST':
+                       //TODO not sure what to do with this one yet
+                       break;
+        case 'NUMBER':
+                       $html .= "<input type=\"text\" name=\"$key\" value=\"$default\" />\n";
+                       break;
+      }
+    }
+  }
+  if ($html != '') : 
+         echo $html . "</div>"; 
+  ?>
+  <input type="hidden" name="app_id" value="<?php echo $this->app_id; ?>" />
+  <input type="hidden" name="app_settings" value="1" />
+  <input type="submit" value="<?php echo _AT('save');?>"/>
+  <?php else: ?>
+  <?php echo _AT('no_settings'); ?>
+  <?php endif; ?>
+</form>
+<div style="clear:both;"></div>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/applications.tmpl.php b/docs/themes/simplified-desktop/social/applications.tmpl.php
new file mode 100644 (file)
index 0000000..6f5bf97
--- /dev/null
@@ -0,0 +1,108 @@
+<!--  compressed with java -jar {$path}/yuicompressor-2.3.5.jar -o {$file}-min.js {$file}.js -->
+<script type="text/javascript"
+       src="<?php echo AT_SHINDIG_URL; ?>/gadgets/js/rpc.js?c=1"></script>
+<!-- header.inc.php has jscript/InfusionAll.js imported.  Jquery should be there with it
+<script type="text/javascript" src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/jquery-1.3.2.js"></script>
+-->
+<script type="text/javascript"
+       src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/prototype.js"></script>
+<script type="text/javascript" src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/container.js"></script>
+<div class="social-wrapper">
+<div class="search_form">      
+               <div class="headingbox"><h3><?php echo _AT('add_application'); ?></h3></div>
+               <div class="contentbox">
+                       <form method="POST" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME."applications.php"); ?>">
+                       <label for="app_url"><?php echo _AT('add_application_url'); ?>: </label>
+                       <input id="app_url" name="app_url" type="text" />
+                       <input type="hidden" name="add_application" value="1" />
+                       <input type="submit" value="<?php echo _AT('add_application'); ?>" class="button" />
+                       </form>
+
+                       <form method="POST" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME."applications.php"); ?>">
+                       <?php if (!isset($this->list_of_all_apps)): ?>
+                       <input type="hidden" name="show_applications" value="1" />
+                       <input type="submit" value="<?php echo _AT('show_available_applications'); ?>" class="button" />
+                       <?php else: ?>
+                       <input type="submit" value="<?php echo _AT('show_your_applications'); ?>" class="button" />     
+                       <?php endif; ?>
+                       </form>
+                       <button type="button"  onclick="ATutor.poptastic('http://atutor.ca/get_gadgets.php')" class="button" /><?php echo _AT('find_gadgets'); ?></button>
+               </div>
+</div>
+
+<?php if (isset($this->list_of_all_apps) && !empty($this->list_of_all_apps)): ?>
+<div class="gadget_wrapper">
+<div class="headingbox"><h3><?php echo _AT('available_applications'); ?></h3></div>
+<?php  
+       foreach ($this->list_of_all_apps as $id=>$app_obj): 
+       //skip the ones that are installed already
+       if ($this->list_of_my_apps[$id]!=null){
+               continue;
+       }
+       $author = ($app_obj->getAuthor()!='')?$app_obj->getAuthor():_AT('unknown');     
+?>
+<div class="contentbox">       
+       <div class="contentbox-a">
+               <?php echo $app_obj->getAppLink($app_obj->getTitle(), $id); ?><br/>
+               <?php echo $app_obj->getAppLink('<img src="'.$app_obj->getThumbnail().'"/>', $id); ?><br/>
+               <?php echo _AT('by'); ?> 
+               <?php if ($app_obj->getAuthorEmail()!=''): ?>
+                       <a href="mailto:<?php echo $app_obj->getAuthorEmail(); ?>"><?php echo $author; ?></a>
+               <?php else: echo $author; ?>
+               <?php endif; ?>                 
+       </div>
+
+       <div class="contentbox-b">
+       <!--
+               <a href="<?php echo  'mods/social/applications.php?app_id='.$id.SEP.'settings=1'; ?>"><img src="<?php echo $_base_href;?>mods/social/images/icon-settings.png" alt="<?php echo _AT('settings');?>" title="<?php echo _AT('settings');?>" border="0"/></a>
+       -->
+               <a href="<?php echo AT_SOCIAL_BASENAME.'applications.php?app_id='.$id.SEP.'add=1'; ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME;?>images/plus_icon.gif" alt="<?php echo _AT('add_to_mygadgets');?>" title="<?php echo _AT('add_to_mygadgets');?>" border="0"/></a>
+       </div>
+       <div class="contentbox-c">
+               <?php echo $app_obj->getDescription(); ?><br/><br/>
+               <?php echo $app_obj->getUrl(); ?><br/>
+       </div>
+       <br/>
+</div>
+<?php endforeach; ?>
+</div>
+<?php else: ?>
+<div class="gadget_wrapper">
+<div class="headingbox"><h3><?php echo _AT('your_applications'); ?></h3></div>
+<?php  
+       foreach ($this->list_of_my_apps as $id=>$app_obj): 
+       $author = ($app_obj->getAuthor()!='')?$app_obj->getAuthor():_AT('unknown');     
+?>
+<div class="contentbox">       
+       <div class="contentbox-d">
+               <?php echo $app_obj->getAppLink($app_obj->getTitle(), $id); ?><br/>
+               <?php echo $app_obj->getAppLink('<img src="'.$app_obj->getThumbnail().'"/>', $id); ?><br/>
+               <?php echo _AT('by'); ?> 
+               <?php if ($app_obj->getAuthorEmail()!=''): ?>
+                       <a href="mailto:<?php echo $app_obj->getAuthorEmail(); ?>"><?php echo $author; ?></a>
+               <?php else: echo $author; ?>
+               <?php endif; ?>                 
+       </div>
+
+       <div class="contentbox-e">
+               <a href="<?php echo AT_SOCIAL_BASENAME.'applications.php?app_id='.$id.SEP.'settings=1'; ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME;?>images/icon-settings.png" alt="<?php echo _AT('settings');?>" title="<?php echo _AT('settings');?>" border="0"/></a>
+       
+               <a href="<?php echo AT_SOCIAL_BASENAME.'applications.php?app_id='.$id.SEP.'delete=1'; ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME;?>images/b_drop.png" alt="<?php echo _AT('delete');?>" title="<?php echo _AT('delete');?>" border="0"/></a>
+       </div>
+       <div class="contentbox-f">
+               <?php echo $app_obj->getDescription(); ?><br/><br/>
+               <?php echo $app_obj->getUrl(); ?><br/>
+       </div>
+       
+</div>
+<?php endforeach; ?>
+</div>
+<?php if(empty($id)){
+echo '<div class="contentbox">';
+echo _AT('no_gadgets_installed');
+echo '</div>';
+}
+?>
+<?php endif; ?>
+<div style="clear:both;"></div>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/basic_profile.tmpl.php b/docs/themes/simplified-desktop/social/basic_profile.tmpl.php
new file mode 100644 (file)
index 0000000..76a04b8
--- /dev/null
@@ -0,0 +1,135 @@
+<div class="social-wrapper">
+<?php
+include('lib/profile_menu.inc.php');
+?>
+<br />
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<?php global $languageManager, $_config; ?>
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('required_information'); ?></legend>
+       <div class="row">
+               <h3><?php echo _AT('required_information'); ?></h3>
+       </div>
+
+       <div class="row">
+               <label for="login"><?php echo _AT('login_name'); ?></label><br />
+                               <span id="login"><?php echo stripslashes(htmlspecialchars($_POST['login'])); ?></span>
+                               <input name="member_id" type="hidden" value="<?php echo intval($_POST['member_id']); ?>" />
+                               <input name="login" type="hidden" value="<?php echo stripslashes(htmlspecialchars($_POST['login'])); ?>" />
+       </div>
+       <div class="row">
+               <?php echo _AT('email_address'); ?><br />
+               <?php echo stripslashes(htmlspecialchars($_POST['email'])); ?>
+               <input type="checkbox" id="priv" name="private_email" value="1" <?php if ($_POST['private_email']) { echo 'checked="checked"'; } ?> /><label for="priv"><?php echo _AT('keep_email_private');?></label>
+       </div>
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="first_name"><?php echo _AT('first_name'); ?></label><br />
+               <input id="first_name" name="first_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['first_name'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="second_name"><?php echo _AT('second_name'); ?></label><br />
+               <input id="second_name" name="second_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['second_name'])); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="last_name"><?php echo _AT('last_name'); ?></label><br />
+               <input id="last_name" name="last_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['last_name'])); ?>" />
+       </div>
+       
+       <?php if (admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE)): 
+                       if ($_POST['status'] == AT_STATUS_INSTRUCTOR) {
+                               $inst = ' checked="checked"';
+                       } else if ($_POST['status'] == AT_STATUS_STUDENT) {
+                               $stud = ' checked="checked"';
+                       }  else if ($_POST['status'] == AT_STATUS_DISABLED) {
+                               $disa = ' checked="checked"';
+                       } else {
+                               $uncon = ' checked="checked"';
+                       }?>
+                       <input type="hidden" name="id" value="<?php echo $_POST['member_id']; ?>" >
+                       <div class="row">
+                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('account_status'); ?><br />
+
+                               <input type="radio" name="status" value="0" id="disa" <?php echo $disa; ?> /><label for="disa"><?php echo _AT('disabled'); ?></label>
+                               <?php if (defined('AT_EMAIL_CONFIRMATION') && AT_EMAIL_CONFIRMATION): ?>
+                                       <input type="radio" name="status" value="1" id="uncon" <?php echo $uncon; ?> /><label for="uncon"><?php echo _AT('unconfirmed'); ?></label>
+                               <?php endif; ?>
+
+                               <input type="radio" name="status" value="2" id="stud" <?php echo $stud; ?> /><label for="stud"><?php echo _AT('student'); ?></label>
+
+                               <input type="radio" name="status" value="3" id="inst" <?php echo $inst; ?> /><label for="inst"><?php echo _AT('instructor'); ?></label>
+
+                               <input type="hidden" name="old_status" value="<?php echo $_POST['old_status']; ?>" />
+                       </div>
+       <?php endif; ?>
+       </fieldset>
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('personal_information'); ?></legend>
+       <div class="row">
+               <h3><?php echo _AT('personal_information').' ('._AT('optional').')'; ?></h3>
+       </div>
+
+       <?php if (admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE) && defined('AT_MASTER_LIST') && AT_MASTER_LIST): ?>
+               <div class="row">
+                       <label for="student_id"><?php echo _AT('student_id'); ?></label><br />
+                               <input type="text" name="student_id" value="<?php echo $_POST['student_id']; ?>" size="20" /><br />
+               </div>
+               <div class="row">
+                       <label for="student_pin"><?php echo _AT('student_pin'); ?></label><br />
+                       <input id="student_pin" name="student_pin" type="password" size="15" maxlength="15" value="<?php echo stripslashes(htmlspecialchars($_POST['student_pin'])); ?>" /><br />
+               </div>
+       <?php endif; ?>
+
+       <div class="row">
+               <?php echo _AT('date_of_birth'); ?><br />
+               <label for="year"><?php echo _AT('year'); ?>: </label><input id="year" class="formfield" name="year" type="text" size="4" maxlength="4" value="<?php echo $_POST['year']; ?>" />  <label for="month"><?php echo _AT('month'); ?>: </label><input id="month" class="formfield" name="month" type="text" size="2" maxlength="2" value="<?php echo $_POST['month']; ?>" /> <label for="day"><?php echo _AT('day'); ?>: </label><input id="day" class="formfield" name="day" type="text" size="2" maxlength="2" value="<?php echo $_POST['day']; ?>" />
+       </div>
+
+       <div class="row">
+               <?php echo _AT('gender'); ?><br />
+               <input type="radio" name="gender" id="m" value="m" <?php if ($_POST['gender'] == 'm') { echo 'checked="checked"'; } ?> /><label for="m"><?php echo _AT('male'); ?></label> <input type="radio" value="f" name="gender" id="f" <?php if ($_POST['gender'] == 'f') { echo 'checked="checked"'; } ?> /><label for="f"><?php echo _AT('female'); ?></label>  <input type="radio" value="n" name="gender" id="ns" <?php if (($_POST['gender'] == 'n') || ($_POST['gender'] == '')) { echo 'checked="checked"'; } ?> /><label for="ns"><?php echo _AT('not_specified'); ?></label>
+       </div>
+
+       <div class="row">
+               <label for="address"><?php echo _AT('street_address'); ?></label><br />
+               <input id="address" name="address" size="30" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['address'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="postal"><?php echo _AT('postal_code'); ?></label><br />
+               <input id="postal" name="postal" size="7" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['postal'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="city"><?php echo _AT('city'); ?></label><br />
+               <input id="city" name="city" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['city'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="province"><?php echo _AT('province'); ?></label><br />
+               <input id="province" name="province" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['province'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="country"><?php echo _AT('country'); ?></label><br />
+               <input id="country" name="country" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['country'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="phone"><?php echo _AT('phone'); ?></label><br />
+               <input size="11" name="phone" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['phone'])); ?>" id="phone" />
+       </div>
+
+       <div class="row">
+               <label for="website"><?php echo _AT('web_site'); ?></label><br />
+               <input id="website" name="website" size="30" type="text" value="<?php if ($_POST['website'] == '') { echo 'http://'; } else { echo stripslashes(htmlspecialchars($_POST['website'])); } ?>" />
+       </div>
+       </fieldset>
+       <div class="row buttons">
+               <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" />
+               <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
+       </div>
+</div>
+</form>
+<div style="clear:both;"></div>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/connections.tmpl.php b/docs/themes/simplified-desktop/social/connections.tmpl.php
new file mode 100644 (file)
index 0000000..d3918bd
--- /dev/null
@@ -0,0 +1,109 @@
+<script src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/livesearch.js" type="text/javascript"></script>
+<?php 
+       //Add Friends Template
+       //Generate a random number for the search input name fields, so that the browser will not remember any previous entries.
+       $rand = md5(rand(0, time())); 
+       if ($this->rand_key != ''){
+               $last_search = $_POST['search_friends_'.$this->rand_key];
+       } elseif(isset($_GET['search_friends'])) {
+               $last_search = htmlentities_utf8($_GET['search_friends']);
+       } else {
+               $last_search = html_entity_decode($_POST['search_friends_'.$rand]);
+       }
+       //take out double quotes until there is a way to escape XSS from the ajax script.
+       $last_search = preg_replace('/\"/', '', $last_search);
+?>
+<div class="social-wrapper">
+<?php print_paginator($this->page, $this->num_pages, 'search_friends='.$this->search_field, 1);  ?>
+<div class="input-form">
+       <div class="contentrow">
+               <h3><?php echo _AT('search_for_friends'); ?></h3>
+               <form action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'connections.php');?>" method="POST" id="search_friends_form">
+                       <label for="search_friends" style="display:none;"><?php echo _AT('search'); ?></label>
+                       <input type="text" size="45" name="search_friends_<?php echo $rand;?>" id="search_friends" value="<?php echo $last_search; ?>" onkeyup="showResults(this.value, 'livesearch', '<?php echo AT_SOCIAL_BASENAME; ?>connections.php')"/>
+                       <input type="submit" name="search" value="<?php echo _AT('search'); ?>">
+                       <?php 
+                       if (isset($_POST['myFriendsOnly'])){
+                               $mfo_checked = ' checked="checked"';
+                       }
+                       ?>
+                       <br/> <div class="social-wrapper-myFriendsOnly"><input type="checkbox" name="myFriendsOnly" id="myFriendsOnly" value="<?php echo _AT('yes'); ?>" <?php echo $mfo_checked; ?> />
+                       <label for ="myFriendsOnly"><?php echo _AT('my_friends_only'); ?></label></div>
+                       <input type="hidden" name="rand_key" value="<?php echo $rand; ?>" />
+                       
+                       <div id="livesearch"></div>
+               </form>
+       </div>
+</div>
+<div class="headingbox-contentbox">
+       <div class="headingbox"><h3><?php echo _AT('connections'); ?></h3></div>
+       <div class="contentbox">
+       <?php 
+       if (!empty($this->friends)):
+               $privacy_controller = new PrivacyController();
+               echo "<h4>"._AT('there_are_entries', sizeof($this->friends))."</h4>";
+               foreach ($this->friends as $id=>$person): 
+                       $privacy_obj = $privacy_controller->getPrivacyObject($id);
+//                     debug($privacy_obj->getSearch(), 'search'.$id);
+                       $relationship = $privacy_controller->getRelationship($id);
+
+                       if ((!isset($person['added']) || $person['added']!=1) && !PrivacyController::validatePrivacy(AT_SOCIAL_SEARCH_VISIBILITY, $relationship, $privacy_obj->getSearch())){
+                               //if this user doesn't want to be searched.
+                               continue;
+                       }
+       ?>
+       <div class="contact_mini" >
+               <?php if (isset($person['added']) && $person['added']==1): ?>                   
+                       <div>
+                               <div style="float:left;"><?php echo printSocialProfileImg($id); ?></div>
+                               <div style="padding-left:0.5em; float:left;">
+                                       <?php 
+                                               $member_obj = new Member($id);
+                                               $address = $member_obj->getAddress();
+                                               echo printSocialName($id) . '<br/>';
+                                               echo $address['province'] . ' ' . $address['country'] . '<br/>';
+                                       ?>
+                               </div>
+                               <div style="float:right;"><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.AT_SOCIAL_INDEX);?>?remove=yes<?php echo SEP;?>id=<?php echo $id;?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('delete'); ?>" title="<?php echo _AT('delete'); ?>" border="0"/></a></div>
+                               <div style="clear:both;"></div><br/>
+                       </div>
+
+               <?php else: ?>
+                       <?php if (!isset($_POST['myFriendsOnly'])): ?>
+                       <div>
+                               <div style="float:left;"><?php echo printSocialProfileImg($id); ?></div>
+                               <div style="padding-left:0.5em; float:left;">
+                                       <?php 
+                                               $member_obj = new Member($id);
+                                               $address = $member_obj->getAddress();
+                                               echo printSocialName($id) . '<br/>';
+                                               echo $address['country'] . ' ' . $address['province'] . '<br/>';
+                                       ?>
+                               </div>
+                               <?php if ($person['pending']==1): ?>    
+                       <div style="float:right;"><?php echo _AT('pending'); ?></div>
+                       <?php else: ?>
+                       <div style="float:right;"><a href="<?php echo AT_SOCIAL_BASENAME; ?>connections.php?id=<?php echo $id; ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/plus_icon.gif" alt="<?php echo _AT('add_to_friends'); ?>" title="<?php echo _AT('add_to_friends'); ?>" border="0"/></a> </div>
+                       <?php endif; ?>
+                               <div style="clear:both;"></div><br/>
+                       </div>
+                       <?php endif; ?>
+               <?php endif; ?>
+       </div>
+       <?php 
+               endforeach; 
+       else:
+               echo _AT('none_found');
+       endif;
+       ?>
+       </div>
+       <!--
+       <div style="float:right;">
+               TODO: Paginator 
+       </div>
+       -->
+</div>
+<div style="clear:both;"></div>
+
+<?php print_paginator($this->page, $this->num_pages, 'search_friends='.$this->search_field, 1);  ?>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/edit_profile.tmpl.php b/docs/themes/simplified-desktop/social/edit_profile.tmpl.php
new file mode 100644 (file)
index 0000000..5a3ee3d
--- /dev/null
@@ -0,0 +1,166 @@
+<div class="social-wrapper">
+
+<?php include(AT_SOCIAL_INCLUDE."profile_menu.inc.php")  ?>
+<h2><?php echo $this->profile['first_name'].' '.$this->profile['last_name']; ?></h2>
+<ul>
+       <li>
+               <div>
+               <strong><?php echo _AT('position'); ?></strong> <br/>
+               <?php 
+               if (!empty($this->position)):
+                       //note: $id is just a array holder, it does not represent $row[id]
+                       foreach ($this->position as $id=>$row): ?>
+               <div class="profile_container">
+                       <div class="top_right" style="border:thin #cccccc solid;"><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?edit=position'.SEP.'id='.$row['id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/edit_profile.gif" alt="<?php echo _AT('edit'); ?>" title="<?php echo _AT('edit'); ?>" border="0" /></a>  <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?delete=position'.SEP.'id='.$row['id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('remove'); ?>" title="<?php echo _AT('remove'); ?>" border="0" /></a></div>
+                       <div><?php echo _AT('company') . ': ' . htmlentities_utf8($row['company']); ?></div>
+                       <div><?php echo _AT('position') . ': ' . htmlentities_utf8($row['title']); ?></div>
+                       <div><?php echo _AT('from') . ': ' . htmlentities_utf8($row['from']);?></div>
+                       <div><?php echo _AT('to') . ': ' . htmlentities_utf8($row['to']); ?></div>
+                       <div><?php echo _AT('description') . ': ' . htmlentities_utf8($row['description']); ?></div>
+               </div>
+               <?php
+                       endforeach;
+               endif; ?>
+                       <p><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?add=position'); ?>"><?php echo _AT('add_new_position'); ?></a></p>
+               </div>
+       </li>
+       <li>
+               <strong><?php echo _AT('education'); ?></strong><br/>
+               <?php   
+               if (!empty($this->education)):
+                       foreach ($this->education as $id=>$row): ?>
+               <div class="profile_container">
+                       <div class="top_right" style="border:thin #cccccc solid;"><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?edit=education'.SEP.'id='.$row['id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/edit_profile.gif" alt="<?php echo _AT('edit'); ?>" title="<?php echo _AT('edit'); ?>" border="0" /></a>  <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?delete=education'.SEP.'id='.$row['id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('remove'); ?> ?>" title="<?php echo _AT('remove'); ?>" border="0" /></a></div>
+                       <div><?php echo _AT('university') . ': ' . htmlentities_utf8($row['university']); ?></div>
+                       <div><?php echo _AT('location') . ': ' . htmlentities_utf8($row['country']) . ', ' . htmlentities_utf8($row['province']); ?></div>
+                       <div><?php echo _AT('degree') . ': ' . htmlentities_utf8($row['degree']); ?></div>
+                       <div><?php echo _AT('field') . ': ' . htmlentities_utf8($row['field']); ?></div>
+                       <div><?php echo _AT('from') . ': ' . htmlentities_utf8($row['from']);?></div>
+                       <div><?php echo _AT('to') . ': ' . htmlentities_utf8($row['to']); ?></div>
+                       <div><?php echo _AT('description') . ': ' . htmlentities_utf8($row['description']); ?></div>
+               </div>
+               <?php 
+                       endforeach; 
+               endif; ?>
+                       <p><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?add=education'); ?>"><?php echo _AT('add_new_education'); ?></a></p>
+       </li>
+       <li>
+               <strong><?php echo _AT('websites'); ?></strong><br/>
+               <?php   
+               if (!empty($this->websites)):
+                       foreach ($this->websites as $id=>$row): ?>
+               <div class="profile_container">
+                       <div class="top_right" style="border:thin #cccccc solid;"><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?edit=websites'.SEP.'id='.$row['id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/edit_profile.gif" alt="<?php echo _AT('edit'); ?>" title="<?php echo _AT('edit'); ?>" border="0" /></a>  <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?delete=websites'.SEP.'id='.$row['id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('remove'); ?> ?>" title="<?php echo _AT('remove'); ?>" border="0" /></a></div>
+                       <div><?php echo _AT('site_name') . ': ' . htmlentities_utf8($row['site_name']); ?></div>
+                       <div><?php echo _AT('url') . ': ' . $row['url']; ?></div>
+               </div>
+               <?php 
+                       endforeach; 
+               endif; ?>
+               <p><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?add=websites'); ?>"><?php echo _AT('add_new_website'); ?></a></p>
+       </li>
+
+       <li>
+               <strong><?php echo _AT('interests'); ?></strong><br/>
+               <?php if (!empty($this->profile['interests'])): ?>
+               <div class="profile_container">
+                       <div class="top_right" style="border:thin #cccccc solid;"><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?edit=interests'.SEP.'id='.$_SESSION['member_id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/edit_profile.gif" alt="<?php echo _AT('edit'); ?>" title="<?php echo _AT('edit'); ?>" border="0" /></a>  <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?delete=interests'); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('remove'); ?> ?>" title="<?php echo _AT('remove'); ?>" border="0" /></a></div>
+                       <div><?php echo htmlentities_utf8($this->profile['interests']); ?></div>
+               </div>
+               <?php else: ?>
+               <p><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?add=interests'); ?>"><?php echo _AT('add_new_interest'); ?></a></p>
+               <?php endif; ?>
+       </li>
+
+       <li>
+               <strong><?php echo _AT('associations'); ?></strong><br/>
+               <?php if (!empty($this->profile['associations'])): ?>
+               <div class="profile_container">
+                       <div class="top_right" style="border:thin #cccccc solid;"><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?edit=associations'.SEP.'id='.$_SESSION['member_id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/edit_profile.gif" alt="<?php echo _AT('edit'); ?>" title="<?php echo _AT('edit'); ?>" border="0" /></a>  <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?delete=associations'); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('remove'); ?> ?>" title="<?php echo _AT('remove'); ?>" border="0" /></a></div>
+                       <div><?php echo htmlentities_utf8($this->profile['associations']); ?></div>
+               </div>
+               <?php else: ?>
+               <p><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?add=associations'); ?>"><?php echo _AT('add_new_association'); ?></a></p>
+               <?php endif; ?>
+       </li>
+
+       <li>
+               <strong><?php echo _AT('awards'); ?></strong><br/>
+               <?php if (!empty($this->profile['awards'])): ?>
+               <div class="profile_container">
+                       <div class="top_right" style="border:thin #cccccc solid;"><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?edit=awards'.SEP.'id='.$_SESSION['member_id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/edit_profile.gif" alt="<?php echo _AT('edit'); ?>" title="<?php echo _AT('edit'); ?>" border="0" /></a>  <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?delete=awards'); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('remove'); ?> ?>" title="<?php echo _AT('remove'); ?>" border="0" /></a></div>
+                       <div><?php echo htmlentities_utf8($this->profile['awards']); ?></div>
+               </div>
+               <?php else: ?>
+               <p><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?add=awards'); ?>"><?php echo _AT('add_new_award'); ?></a></p>
+               <?php endif; ?>
+       </li>
+       <li>
+               <strong><?php echo _AT('representation'); ?></strong><br/>
+               <?php if (!empty($this->representation)): ?>
+               <div class="profile_container">
+                       <div class="top_right" style="border:thin #cccccc solid;">
+                       <?php foreach($this->representation as $row=>$value){  ?>
+                       <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?edit=representation'.SEP.'id='.$value['rep_id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/edit_profile.gif" alt="<?php echo _AT('edit'); ?>" title="<?php echo _AT('edit'); ?>" border="0" /></a>  <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?delete=representation'); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('remove'); ?> ?>" title="<?php echo _AT('remove'); ?>" border="0" /></a></div>
+
+                               <dl class="public-profile">
+                               <dt><?php echo _AT('name') . ':' ?></dt> <dd>  &nbsp;<?php echo htmlentities_utf8($value['rep_name']); ?></dd>
+                               <dt><?php echo _AT('title') . ': ' ?></dt> <dd>  &nbsp;<?php echo htmlentities_utf8($value['rep_title']); ?></dd>
+                               <dt><?php echo _AT('phone') . ':' ?></dt> <dd>  &nbsp;<?php echo htmlentities_utf8($value['rep_phone']);?></dd>
+                               <dt><?php echo _AT('email') . ': ' ?></dt> <dd>  &nbsp;<?php echo  htmlentities_utf8($value['rep_email']); ?></dd>
+                               <dt><?php echo _AT('street_address') . ': ' ?></dt> <dd>  &nbsp;<?php echo htmlentities_utf8($value['rep_address']); ?></dd>
+                               </dl>
+                       <?php } ?>
+               </div>
+               <?php else: ?>
+               <p><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?add=representation'); ?>"><?php echo _AT('add_new_representation'); ?></a></p>
+               <?php endif; ?>
+
+       </li>
+       <li>
+               <strong><?php echo _AT('alt_contact'); ?></strong><br/>
+               <?php if (!empty($this->contact)): ?>
+               <div class="profile_container">
+                       <div class="top_right" style="border:thin #cccccc solid;">
+                       <?php foreach($this->contact as $row=>$value){  ?>
+
+                       <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?edit=contact'.SEP.'id='.$value['contact_id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/edit_profile.gif" alt="<?php echo _AT('edit'); ?>" title="<?php echo _AT('edit'); ?>" border="0" /></a>  <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?delete=contact'); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('remove'); ?> ?>" title="<?php echo _AT('remove'); ?>" border="0" /></a></div>
+
+                               <dl class="public-profile">
+                               <dt><?php echo _AT('name') . ':' ?></dt> <dd>  &nbsp;<?php echo htmlentities_utf8($value['con_name']); ?></dd>
+                               <dt><?php echo _AT('phone') . ':' ?></dt> <dd> &nbsp; <?php echo htmlentities_utf8($value['con_phone']);?></dd>
+                               <dt><?php echo _AT('email') . ': ' ?></dt> <dd> &nbsp; <?php echo  htmlentities_utf8($value['con_email']); ?></dd>
+                               <dt><?php echo _AT('street_address') . ': ' ?></dt> <dd> &nbsp; <?php echo htmlentities_utf8($value['con_address']); ?></dd>
+                               </dl>
+                       <?php } ?>
+               </div>
+               <?php else: ?>
+               <p><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?add=contact'); ?>"><?php echo _AT('add_new_contact'); ?></a></p>
+               <?php endif; ?>
+       </li>
+       <li>
+               <strong><?php echo _AT('personal'); ?></strong><br/>
+               <?php if (!empty($this->personal)): ?>
+               <div class="profile_container">
+                       <div class="top_right" style="border:thin #cccccc solid;">
+                       <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?edit=personal'.SEP.'id='.$this->personal['per_id']); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/edit_profile.gif" alt="<?php echo _AT('edit'); ?>" title="<?php echo _AT('edit'); ?>" border="0" /></a>  <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?delete=personal'); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('remove'); ?> ?>" title="<?php echo _AT('remove'); ?>" border="0" /></a></div>
+
+                               <dl class="public-profile">
+                               <dt><?php echo _AT('per_weight') . ':' ?></dt> <dd> &nbsp;<?php echo htmlentities_utf8($this->personal['per_weight']);?></dd>
+                               <dt><?php echo _AT('per_height') . ': ' ?></dt> <dd> &nbsp; <?php echo  htmlentities_utf8($this->personal['per_height']); ?></dd>
+                               <dt><?php echo _AT('per_hair') . ': ' ?></dt> <dd> &nbsp; <?php echo htmlentities_utf8($this->personal['per_hair']); ?></dd>
+                               <dt><?php echo _AT('per_eyes') . ':' ?></dt> <dd> &nbsp; <?php echo htmlentities_utf8($this->personal['per_eyes']);?></dd>
+                               <dt><?php echo _AT('per_ethnicity') . ': ' ?></dt> <dd> &nbsp; <?php echo  htmlentities_utf8($this->personal['per_ethnicity']); ?></dd>
+                               <dt><?php echo _AT('per_languages') . ': ' ?></dt> <dd> &nbsp; <?php echo htmlentities_utf8($this->personal['per_languages']); ?></dd>
+                               <dt><?php echo _AT('per_disabilities') . ': ' ?></dt> <dd>  &nbsp;<?php echo htmlentities_utf8($this->personal['per_disabilities']); ?></dd>
+                               </dl>
+               </div>
+               <?php else: ?>
+               <p><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php?add=personal'); ?>"><?php echo _AT('add_new_personal'); ?></a></p>
+               <?php endif; ?>
+       </li>
+
+
+</ul>
+<div style="clear:both;"></div>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/edit_profile/account_settings.tmpl.php b/docs/themes/simplified-desktop/social/edit_profile/account_settings.tmpl.php
new file mode 100644 (file)
index 0000000..7e16ea8
--- /dev/null
@@ -0,0 +1,10 @@
+<form action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'settings.php');?>" method="POST">
+<div class="input-form">
+       <h4><?php echo _AT('account_settings'); ?></h4>
+       <div class="row"><?php echo _AT('account_control_blurb'); ?> </div>
+       <div class="row">
+               <input type="hidden" name="n" value="account_settings" />
+               <input class="button" type="submit" name="submit" value="<?php echo _AT('save'); ?>"/>
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/edit_profile/edit_additional.tmpl.php b/docs/themes/simplified-desktop/social/edit_profile/edit_additional.tmpl.php
new file mode 100644 (file)
index 0000000..e954bb2
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+       global $addslashes;
+       //escape all strings
+       $title                  = AT_print($this->title, 'input.text');
+       $interests              = AT_print($this->interests, 'input.text');
+       $associations   = AT_print($this->associations, 'input.text');
+       $awards                 = AT_print($this->awards, 'input.text');
+?>
+<form method="post" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php'); ?>">
+
+<div class="headingbox"><h3><?php if($_GET['id']){ echo _AT($title);}else{echo  _AT($title);}?></h3></div>
+<div class="contentbox">
+       <div>   
+                       <label for="<?php echo $title;?>"><?php echo _AT($title); ?></label>
+               <div>
+                       <textarea rows="4" cols="40" id="<?php echo $title;?>" name="<?php echo $title;?>"><?php echo $$title; ?></textarea>
+               </div>
+               
+               <?php if (isset($this->id)): ?>
+               <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+               <input type="hidden" name="edit" value="<?php echo $title; ?>" />
+               <?php else: ?>  
+               <input type="hidden" name="add" value="<?php echo $title; ?>" />
+               <?php endif; ?>
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" class="button"/>
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" class="button"/>
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/edit_profile/edit_contact.tmpl.php b/docs/themes/simplified-desktop/social/edit_profile/edit_contact.tmpl.php
new file mode 100644 (file)
index 0000000..cd6ad03
--- /dev/null
@@ -0,0 +1,42 @@
+<?php
+       global $addslashes;
+
+       //escape all strings
+       $con_name        = htmlentities_utf8($this->con_name);
+       $con_phone       = htmlentities_utf8($this->con_phone);
+       $con_email       = htmlentities_utf8($this->con_email);
+       $con_address     = htmlentities_utf8($this->con_address);
+
+?>
+
+<div class="headingbox"><h3><?php if($_GET['id']){echo _AT('edit_contact');}else{echo  _AT('add_new_contact');}?></h3></div>
+<div class="contentbox">
+<form method="post" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php'); ?>">
+       <dl id="public-profile">
+               <div class="row">
+               <dt><label for="con_name"><?php echo _AT('name'); ?></label></dt>
+               <dd><input type="text" id="con_name" name="con_name" value="<?php echo $con_name; ?>" /></dd>
+               </div>
+               <div class="row">
+               <dt><label for="con_phone"><?php echo _AT('phone'); ?></label></dt>
+               <dd><input type="text" id="con_phone"  name="con_phone" value="<?php echo $con_phone; ?>" /></dd>
+               </div>
+               <div class="row">
+               <dt><label for="con_email"><?php echo _AT('email'); ?></label></dt>
+               <dd><input type="text" id="con_email"  name="con_email" value="<?php echo $con_email; ?>" /></dd>
+               </div>
+               <dt><label for="con_address"><?php echo _AT('street_address'); ?></label></dt>  
+               <dd><textarea name="con_address" id="con_address" cols="40" rows="5"><?php echo $con_address; ?></textarea></dd>
+               </dl>
+               <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+               <?php if($_GET['id']){ ?>
+               <input type="hidden" name="edit" value="contact" />
+               <?php }else { ?>
+               <input type="hidden" name="add" value="contact" />
+               <?php } ?>
+       
+               <input type="submit" name="submit" class="button" value="<?php echo _AT('save'); ?>" />
+               <input type="submit" name="cancel" class="button" value="<?php echo _AT('cancel'); ?>" />
+       
+</form>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/edit_profile/edit_education.tmpl.php b/docs/themes/simplified-desktop/social/edit_profile/edit_education.tmpl.php
new file mode 100644 (file)
index 0000000..75ffcbc
--- /dev/null
@@ -0,0 +1,70 @@
+<?php
+       global $addslashes;
+
+       //escape all strings
+       $university  = htmlentities_utf8($this->university);
+       $country         = htmlentities_utf8($this->country);
+       $province        = htmlentities_utf8($this->province);
+       $degree          = htmlentities_utf8($this->degree);
+       $field           = htmlentities_utf8($this->field);
+       $from            = htmlentities_utf8($this->from);
+       $to                      = htmlentities_utf8($this->to);
+       $description = htmlentities_utf8($this->description, false);
+?>
+<script type='text/javascript' src='jscripts/lib/calendar.js'></script>
+<script type="text/javascript"> 
+<!--
+       //overwrite calendar dates range settings.
+       scwBaseYear                     = scwDateNow.getFullYear()-50; 
+       scwDropDownYears        = 70; 
+-->
+</script>
+<div class="headingbox"><h3><?php if($_GET['id']){echo _AT('edit_education');}else{echo  _AT('add_new_education');}?></h3></div>
+<div class="contentbox">
+<form method="post" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php'); ?>">
+       <dl id="public-profile">
+               <div class="row">
+               <dt><label for="university"><?php echo _AT('university'); ?></label></dt><br />
+               <dd><input type="text" id="university" name="university" value="<?php echo $university; ?>" /></dd>
+               </div>
+               <div class="row">
+               <dt><label for="province"><?php echo _AT('province'); ?></label></dt><br />
+               <dd><input type="text" id="province"  name="province" value="<?php echo $province; ?>" /></dd>
+               </div>
+               <div class="row">
+               <dt><label for="country"><?php echo _AT('country'); ?></label></dt><br />
+               <dd><input type="text" id="country"  name="country" value="<?php echo $country; ?>" /></dd>
+               </div>
+               <div class="row">
+               <dt><label for="degree"><?php echo _AT('degree'); ?></label></dt><br />
+               <dd><input type="text" id="degree"  name="degree" value="<?php echo $degree; ?>" /></dd>
+               </div>
+               <div class="row">
+               <dt><label for="field"><?php echo _AT('field'); ?></label></dt><br />
+               <dd><input type="text" id="field"  name="field" value="<?php echo $field; ?>" /></dd>
+               </div>
+               <div class="row">
+               <dt><label for="from"><?php echo _AT('from'); ?></label></dt><br />
+               <dd><input type="text" id="from"  name="from" value="<?php echo $from; ?>" />
+               <img src='images/calendar.gif' style="vertical-align: middle; cursor: pointer;" onclick="scwShow(scwID('from'),event);"  alt="<?php echo _AT('date'); ?>"/></dd>
+               </div>
+               <div class="row">
+               <dt><label for="to"><?php echo _AT('to'); ?></label></dt>       <br />
+               <dd><input type="text" id="to"  name="to" value="<?php echo $to; ?>" />
+               <img src='images/calendar.gif' style="vertical-align: middle; cursor: pointer;" onclick="scwShow(scwID('to'),event);" alt="<?php echo _AT('date'); ?>" /></dd>
+               </div>
+               <dt><label for="description"><?php echo _AT('description'); ?></label></dt>     
+               <dd><textarea name="description" id="description" cols="35" rows="5"><?php echo $description; ?></textarea></dd>
+               </dl>
+               <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+               <?php if($_GET['id']){ ?>
+               <input type="hidden" name="edit" value="education" />
+               <?php }else { ?>
+               <input type="hidden" name="add" value="education" />
+               <?php } ?>
+       
+               <input type="submit" name="submit" class="button" value="<?php echo _AT('save'); ?>" />
+               <input type="submit" name="cancel" class="button" value="<?php echo _AT('cancel'); ?>" />
+       
+</form>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/edit_profile/edit_personal.tmpl.php b/docs/themes/simplified-desktop/social/edit_profile/edit_personal.tmpl.php
new file mode 100644 (file)
index 0000000..4482652
--- /dev/null
@@ -0,0 +1,66 @@
+<?php
+       global $addslashes;
+
+       //escape all strings
+       $per_weight      = htmlentities_utf8($this->per_weight);
+       $per_height      = htmlentities_utf8($this->per_height);
+       $per_hair        = htmlentities_utf8($this->per_hair);
+       $per_eyes        = htmlentities_utf8($this->per_eyes);
+       $per_ethnicity   = htmlentities_utf8($this->per_ethnicity);
+       $per_languages   = htmlentities_utf8($this->per_languages);
+       $per_disabilities = htmlentities_utf8($this->per_disabilities);
+
+?>
+
+<div class="headingbox"><h3><?php if($_GET['id']){echo _AT('edit_personal');}else{echo  _AT('add_new_personal');}?></h3></div>
+<div class="contentbox">
+<form method="post" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php'); ?>">
+       <dl id="public-profile">
+               <div class="row"> 
+               <dt><label for="per_weight"><?php echo _AT('per_weight'); ?></label></dt>
+               <dd><input type="text" id="per_weight"  name="per_weight" value="<?php echo $per_weight; ?>" /></dd>
+               </div>  
+               
+               <div class="row">
+               <dt><label for="per_height"><?php echo _AT('per_height'); ?></label></dt>
+               <dd><input type="text" id="per_height"  name="per_height" value="<?php echo $per_height; ?>" /></dd>
+               </div>          
+               
+               <div class="row">
+               <dt><label for="per_hair"><?php echo _AT('per_hair'); ?></label></dt>
+               <dd><input type="text" id="per_hair"  name="per_hair" value="<?php echo $per_hair; ?>" /></dd>
+               </div>
+
+               <div class="row">
+               <dt><label for="per_eyes"><?php echo _AT('per_eyes'); ?></label></dt>
+               <dd><input type="text" id="per_eyes"  name="per_eyes" value="<?php echo $per_eyes; ?>" /></dd>
+               </div>
+       
+               <div class="row">
+               <dt><label for="per_ethnicity"><?php echo _AT('per_ethnicity'); ?></label></dt>
+               <dd><input type="text" id="per_ethnicity"  name="per_ethnicity" value="<?php echo $per_ethnicity; ?>" /></dd>
+               </div>
+
+               <div class="row">
+               <dt><label for="per_languages"><?php echo _AT('per_languages'); ?></label></dt>
+               <dd><input type="text" id="per_languages"  name="per_languages" value="<?php echo $per_languages; ?>" /></dd>
+               </div>
+
+               <div class="row">
+               <dt><label for="per_disabilities"><?php echo _AT('per_disabilities'); ?></label></dt>
+               <dd><input type="text" id="per_disabilities"  name="per_disabilities" value="<?php echo $per_disabilities; ?>" /></dd>
+               </div>
+
+               </dl>
+               <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+               <?php if($_GET['id']){ ?>
+               <input type="hidden" name="edit" value="personal" />
+               <?php }else { ?>
+               <input type="hidden" name="add" value="personal" />
+               <?php } ?>
+       
+               <input type="submit" name="submit" class="button" value="<?php echo _AT('save'); ?>" />
+               <input type="submit" name="cancel" class="button" value="<?php echo _AT('cancel'); ?>" />
+       
+</form>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/edit_profile/edit_position.tmpl.php b/docs/themes/simplified-desktop/social/edit_profile/edit_position.tmpl.php
new file mode 100644 (file)
index 0000000..c70b5c4
--- /dev/null
@@ -0,0 +1,54 @@
+<?php
+       global $addslashes;
+       //escape all strings
+       $company                = htmlentities_utf8($this->company);
+       $title                  = htmlentities_utf8($this->profile_title);
+       $description    = htmlentities_utf8($this->description, false);
+       $from                   = htmlentities_utf8($this->from);
+       $to                             = htmlentities_utf8($this->to);
+?>
+<script type="text/javascript" src="jscripts/lib/calendar.js"></script>
+<script type="text/javascript"> 
+<!--
+       //overwrite calendar dates range settings.
+       scwBaseYear                     = scwDateNow.getFullYear()-50; 
+       scwDropDownYears        = 70; 
+-->
+</script>
+<div class="headingbox"><h3><?php if($_GET['id']){echo _AT('edit_position');}else{echo  _AT('add_new_position');}?></h3></div>
+<div class="contentbox">
+<form method="post" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php'); ?>">
+       <dl id="public-profile">
+               <div class="row">
+               <dt><label for="company"><?php echo _AT('company'); ?></label></dt>
+               <dd><input type="text" id="company" name="company" value="<?php echo $company; ?>" /></dd>
+               </div>
+               <div class="row">
+               <dt><label for="title"><?php echo _AT('position'); ?></label></dt>
+               <dd><input type="text" id="title" name="title" value="<?php echo $title; ?>" /></dd>
+               </div>
+               <div class="row">
+               <dt><label for="from"><?php echo _AT('from'); ?></label></dt>
+               <dd><input type="text" id="from" name="from" value="<?php echo $from; ?>" />
+               <img src='images/calendar.gif' style="vertical-align: middle; cursor: pointer;" onclick="scwShow(scwID('from'),event);"  alt="<?php echo _AT('date'); ?>"/></dd>
+               </div>
+               <div class="row">
+               <dt><label for="to"><?php echo _AT('to'); ?></label></dt>
+               <dd><input type="text" id="to" name="to" value="<?php echo $to; ?>" />
+               <img src='images/calendar.gif' style="vertical-align: middle; cursor: pointer;" onclick="scwShow(scwID('to'),event);"  alt="<?php echo _AT('date'); ?>"/></dd>
+               </div>
+               <dt><label for="description"><?php echo _AT('description'); ?></label>  </dt>
+               <dd><textarea name="description" id="description" cols="40" rows="5"><?php echo $description; ?></textarea></dd>
+       </dl>
+       <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+       
+               <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+               <?php if($_GET['id']){ ?>
+               <input type="hidden" name="edit" value="position" />
+               <?php } else { ?>
+               <input type="hidden" name="add" value="position" />
+               <?php } ?>
+       <input type="submit" class="button" name="submit" value="<?php echo _AT('save'); ?>" />
+       <input type="submit" class="button" name="cancel" value="<?php echo _AT('cancel'); ?>" />
+</form>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/edit_profile/edit_representation.tmpl.php b/docs/themes/simplified-desktop/social/edit_profile/edit_representation.tmpl.php
new file mode 100644 (file)
index 0000000..bc97d10
--- /dev/null
@@ -0,0 +1,49 @@
+<?php
+       global $addslashes;
+
+       //escape all strings
+       $rep_name        = htmlentities_utf8($this->rep_name);
+       $rep_title       = htmlentities_utf8($this->rep_title);
+       $rep_phone       = htmlentities_utf8($this->rep_phone);
+       $rep_email       = htmlentities_utf8($this->rep_email);
+       $rep_address     = htmlentities_utf8($this->rep_address);
+
+?>
+
+<div class="headingbox"><h3><?php if($_GET['id']){echo _AT('edit_representation');}else{echo  _AT('add_new_representation');}?></h3></div>
+<div class="contentbox">
+<form method="post" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php'); ?>">
+       <dl id="public-profile">
+               <div class="row">
+               <dt><label for="rep_name"><?php echo _AT('name'); ?></label></dt>
+               <dd><input type="text" id="rep_name" name="rep_name" value="<?php echo $rep_name; ?>" /></dd>
+               </div>
+               <div class="row">
+               <dt><label for="rep_title"><?php echo _AT('title'); ?></label></dt>
+               <dd><input type="text" id="rep_title"  name="rep_title" value="<?php echo $rep_title; ?>" /></dd>
+               </div>
+               <div class="row">
+               <dt><label for="rep_phone"><?php echo _AT('phone'); ?></label></dt>
+               <dd><input type="text" id="rep_phone"  name="rep_phone" value="<?php echo $rep_phone; ?>" /></dd>
+               </div>
+               <div class="row">
+               <dt><label for="rep_email"><?php echo _AT('email'); ?></label></dt>
+               <dd><input type="text" id="rep_email"  name="rep_email" value="<?php echo $rep_email; ?>" /></dd>
+               </div>
+               
+               <dt><label for="rep_address"><?php echo _AT('street_address'); ?></label></dt>  
+               <dd><textarea name="rep_address" id="rep_address" cols="40" rows="5"><?php echo $rep_address; ?></textarea></dd>
+               </dl>
+               
+               <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+               <?php if($_GET['id']){ ?>
+               <input type="hidden" name="edit" value="representation" />
+               <?php }else { ?>
+               <input type="hidden" name="add" value="representation" />
+               <?php } ?>
+       
+               <input type="submit" name="submit" class="button" value="<?php echo _AT('save'); ?>" />
+               <input type="submit" name="cancel" class="button" value="<?php echo _AT('cancel'); ?>" />
+       
+</form>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/edit_profile/edit_websites.tmpl.php b/docs/themes/simplified-desktop/social/edit_profile/edit_websites.tmpl.php
new file mode 100644 (file)
index 0000000..e604da6
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+       global $addslashes;
+
+       //escape all strings
+       $url            = htmlentities_utf8($this->url);
+       $site_name      = htmlentities_utf8($this->site_name);
+?>
+<div class="headingbox"><h3><?php if($_GET['id']){echo _AT('edit_websites');}else{echo  _AT('add_new_website');}?></h3></div>
+<div class="contentbox">
+<form method="POST" action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'edit_profile.php'); ?>">
+       <dl id="public-profile">
+       <div class="row">
+       <dt><label for="url"><?php echo _AT('url'); ?></label></dt>
+       <dd><input type="text" id="url" name="url" value="<?php echo $url; ?>" /></dd>
+       </div>
+       <div class="row">
+       <dt><label for="site_name"><?php echo _AT('site_name'); ?></label></dt>
+       <dd><input type="text" id="site_name" name="site_name" value="<?php echo $site_name; ?>" /></dd>
+       </div>
+       <br />
+       <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+               <input type="hidden" name="id" value="<?php echo $this->id; ?>" />
+               <?php if($_GET['id']){ ?>
+               <input type="hidden" name="edit" value="websites" />
+               <?php }else { ?>
+               <input type="hidden" name="add" value="websites" />
+               <?php } ?>
+       <input type="submit" name="submit" class="button" value="<?php echo _AT('save'); ?>" />
+       <input type="submit" name="cancel" class="button" value="<?php echo _AT('cancel'); ?>" />
+       </dl>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/friend_list.tmpl.php b/docs/themes/simplified-desktop/social/friend_list.tmpl.php
new file mode 100644 (file)
index 0000000..edb78d8
--- /dev/null
@@ -0,0 +1,35 @@
+<div style="float:right;width:100%;">
+<?php require('notifications.tmpl.php'); ?>
+</div>
+<div style="float:right;min-width:100%;">
+       <div class="headingbox">
+       <h3><a href="<?php echo AT_SOCIAL_BASENAME; ?>connections.php"><?php echo _AT('connections'); ?></a></h3></div>
+       <div class="contentbox">
+       <?php
+       /**
+        * Loop through all the friends and print out a list.  
+        */
+       if (!empty($this->friends)): ?>
+               <?php foreach ($this->friends as $id=>$m_obj): 
+                       if (is_array($m_obj) && $m_obj['added']!=1){
+                               //skip over members that are not "my" friends
+                               continue;
+                       } ?>
+                       <div style="width:100%;">
+                               <!-- don't want delete on the front page
+                               <div style="float:right;">
+                                       <a style="vertical-align:top;" href="<?php echo url_rewrite('mods/social/index.php');?>?remove=yes<?php echo SEP;?>id=<?php echo $id;?>"><img src="<?php echo $_base_href; ?>mods/social/images/b_drop.png" alt="<?php echo _AT('delete'); ?>" title="<?php echo _AT('delete'); ?>" border="0"/></a>
+                               </div>
+                               -->
+                               <div style="width:110px; float:left; padding-bottom:0.2em;">
+                                       <?php echo printSocialProfileImg($id); ?><br />
+                                       <?php echo printSocialName($id); ?>
+                               </div>
+                       </div>
+               <?php endforeach; ?>
+               <div style="clear:both;"><a href="<?php echo AT_SOCIAL_BASENAME; ?>connections.php"><?php echo _AT('show_all');?></a></div>
+       <?php else: ?>
+       <?php echo _AT('no_friends'); ?>
+       <?php endif; ?>
+       </div>
+</div>
diff --git a/docs/themes/simplified-desktop/social/index_public.tmpl.php b/docs/themes/simplified-desktop/social/index_public.tmpl.php
new file mode 100644 (file)
index 0000000..da3172d
--- /dev/null
@@ -0,0 +1,73 @@
+<script src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/livesearch.js" type="text/javascript"></script>
+<?php 
+       //Add Friends Template
+       //Generate a random number for the search input name fields, so that the browser will not remember any previous entries.
+       $rand = md5(rand(0, time())); 
+       if ($this->rand_key != ''){
+               $last_search = $_POST['search_friends_'.$this->rand_key];
+       } else {
+               $last_search = $_POST['search_friends_'.$rand]; 
+       }
+?>
+<?php print_paginator($this->page, $this->num_pages, 'search_friends='.$this->search_field, 1);  ?>
+
+<div class="input-form">
+       <div class="contentrow">
+               <h3><?php echo _AT('search_for_friends'); ?></h3>
+               <form action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'index_public.php');?>" method="POST" id="search_friends_form">
+                       <label for="searchFriends" style="display:none;"><?php echo _AT('search'); ?></label>
+                       <input type="text" size="40" name="search_friends_<?php echo $rand;?>" id="search_friends" value="<?php echo $last_search; ?>" onkeyup="showResults(this.value, 'livesearch', '<?php echo AT_SOCIAL_BASENAME; ?>index_public.php')"/>
+                       <input type="submit" name="search" value="<?php echo _AT('search'); ?>">
+                       <input type="hidden" name="rand_key" value="<?php echo $rand; ?>" />
+                       
+                       <div id="livesearch"></div>
+               </form>
+       </div>
+</div>
+<div>
+       <div class="headingbox"><h3><?php echo _AT('search_results'); ?></h3></div>
+       <div class="contentbox">
+       <?php 
+       if (!empty($this->friends)):
+               $privacy_controller = new PrivacyController();
+               echo "<h4>"._AT('there_are_entries', sizeof($this->friends))."</h4>";
+               foreach ($this->friends as $id=>$person): 
+                       $privacy_obj = $privacy_controller->getPrivacyObject($id);
+//                     debug($privacy_obj->getSearch(), 'search'.$id);
+                       $relationship = $privacy_controller->getRelationship($id);
+
+                       if ((!isset($person['added']) || $person['added']!=1) && !PrivacyController::validatePrivacy(AT_SOCIAL_SEARCH_VISIBILITY, $relationship, $privacy_obj->getSearch())){
+                               //if this user doesn't want to be searched.
+                               continue;
+                       }
+       ?>
+       <div class="contact_mini" >
+               <div>
+                       <div ><?php echo printSocialProfileImg($id); ?></div>
+                       <div>
+                               <?php 
+                                       $member_obj = new Member($id);
+                                       $profile = $member_obj->getAddress();
+                                       echo printSocialName($id) . '<br/>';
+                                       echo $profile['country'] . ' ' . $profile['province'] . '<br/>';
+                               ?>
+                       </div>
+                       <div style="clear:both;"></div><br/>
+               </div>  
+       </div>
+       <?php 
+               endforeach; 
+               else: 
+                       echo _AT('none_found');
+       endif;
+       ?>
+       </div>
+       <!--
+       <div style="float:right;">
+               [-- TODO: Paginator --]
+       </div>
+       -->
+</div>
+</div>
+<div style="clear:both;"></div>
+<?php print_paginator($this->page, $this->num_pages, 'search_friends='.$this->search_field, 1);  ?>
diff --git a/docs/themes/simplified-desktop/social/individual_application.tmpl.php b/docs/themes/simplified-desktop/social/individual_application.tmpl.php
new file mode 100644 (file)
index 0000000..54d6455
--- /dev/null
@@ -0,0 +1,20 @@
+<!--  compressed with java -jar {$path}/yuicompressor-2.3.5.jar -o {$file}-min.js {$file}.js -->
+<script type="text/javascript"
+       src="<?php echo AT_SHINDIG_URL; ?>/gadgets/js/rpc.js?c=1"></script>
+<!-- header.inc.php has jscript/InfusionAll.js imported.  Jquery should be there with it
+<script type="text/javascript" src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/jquery-1.3.2.js"></script>
+-->
+<script type="text/javascript"
+       src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/prototype.js"></script>
+<script type="text/javascript" src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/container.js"></script>
+<div class="social-wrapper">
+<h3><?php echo $this->app->getTitle(); ?></h3>
+<div class="gadgets-gadget-content"><iframe width="95%"
+       scrolling="<?php echo $this->app->getScrolling(); ?>"
+       height="<?php $app=$this->app; echo $app->getHeight();?>px"
+       frameborder="0" src="<?php echo $this->iframe_url;?>" class="gadgets-gadget"
+       name="remote_iframe_<?php echo $this->app->getId();?>"
+       id="remote_iframe_<?php echo $this->app->getId();?>"></iframe>
+</div>
+<div style="clear:both;"></div>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/notifications.tmpl.php b/docs/themes/simplified-desktop/social/notifications.tmpl.php
new file mode 100644 (file)
index 0000000..7196606
--- /dev/null
@@ -0,0 +1,72 @@
+<?php 
+//Friend request
+if(!empty($this->pending_requests)): 
+?>
+
+<div class="headingbox"><h3><?php echo _AT('pending_friend_requests'); ?></h3></div>
+<div class="contentbox">
+<?php foreach ($this->pending_requests as $id=>$r_obj): ?>
+       <div class="box" style="border:thin solid black;">
+               <div style="float:right;">
+                       <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.AT_SOCIAL_INDEX);?>?approval=y<?php echo SEP;?>id=<?php echo $r_obj->id;?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/check_icon.gif" alt="<?php echo _AT('accept_request'); ?>" title="<?php echo _AT('accept_request'); ?>" border="0"/></a><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'index.php');?>?approval=n<?php echo SEP;?>id=<?php echo $r_obj->id;?>"> <img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('reject_request'); ?>" title="<?php echo _AT('reject_request'); ?>" border="0"/></a>
+               </div>
+               <ul style="list-style:none;">
+                       <li style="display:inline;"><?php echo printSocialProfileImg($id);?></li>
+                       <li style="display:inline;"><?php echo printSocialName($id) ?></li>
+               </ul>
+       </div><br />
+<?php endforeach; ?>
+</div><br />
+<?php endif; ?>
+
+<?php 
+//Group invitations requests
+if(!empty($this->group_invitations)): ?>
+<div class="headingbox"><h3><?php echo _AT('new_group_invitations'); ?></h3></div>
+<?php
+       foreach ($this->group_invitations as $id=>$sender_ids): 
+       $gobj = new SocialGroup($id);
+       $name = '';
+               foreach($sender_ids as $index=>$sender_id){
+                       $name .= printSocialName($sender_id).', ';
+               }
+       $name = substr($name, 0, -2);
+?>
+<div class="contentbox">
+       <div style="float:right;">
+               <a href="<?php echo AT_SOCIAL_BASENAME; ?>groups/invitation_handler.php?invitation=accept<?php echo SEP;?>id=<?php echo $gobj->getID();?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/check_icon.gif" alt="<?php echo _AT('accept_request'); ?>" title="<?php echo _AT('accept_request'); ?>" border="0"/></a> <a href="<?php echo AT_SOCIAL_BASENAME;?>groups/invitation_handler.php?invitation=reject<?php echo SEP;?>id=<?php echo $gobj->getID();?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('reject_request'); ?>" title="<?php echo _AT('reject_request'); ?>" border="0"/></a>
+       </div>
+       <ul>
+               <li class="activity"><?php echo _AT('has_invited_join', $name, '<a href="'.url_rewrite(AT_SOCIAL_BASENAME . 'groups/view.php?id='.$gobj->getID()).'">'.$gobj->getName().'</a>'); ?></li>
+       </ul>
+</div>
+<?php endforeach; ?><br />
+
+<?php endif; ?>
+
+<?php
+//Group requests
+if (!empty($this->group_requests)): 
+?>
+
+<div class="headingbox"><h3><?php echo _AT('new_group_requests'); ?></h3></div>
+<div class="contentbox">
+<?php
+foreach ($this->group_requests as $id=>$senders):
+       $gobj = new SocialGroup($id);
+       foreach($senders as $index=>$sender_id):
+       $name = printSocialName($sender_id);?>
+       <div class="box" style="border:thin solid black;">
+               <div style="float:right;">
+                       <a href="<?php echo AT_SOCIAL_BASENAME; ?>groups/invitation_handler.php?request=accept<?php echo SEP;?>id=<?php echo $gobj->getID().SEP;?>sender_id=<?php echo $sender_id;?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/check_icon.gif" alt="<?php echo _AT('accept_request'); ?>" title="<?php echo _AT('accept_request'); ?>" border="0"/></a> <a href="<?php echo AT_SOCIAL_BASENAME; ?>groups/invitation_handler.php?request=reject<?php echo SEP;?>id=<?php echo $gobj->getID().SEP;?>sender_id=<?php echo $sender_id;?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('reject_request'); ?>" title="<?php echo _AT('reject_request'); ?>" border="0"/></a>
+               </div>
+               <ul>
+                       <li id="activity"><?php echo _AT('has_requested_to', $name, '<a href="'.url_rewrite(AT_SOCIAL_BASENAME . 'groups/view.php?id='.$gobj->getID()).'">'.$gobj->getName().'</a>'); ?></li>
+               </ul>
+       </div>
+       <?php endforeach;?>
+       
+<?php endforeach; ?>
+</div><br />
+
+<?php endif; ?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/oauth/authorize.tmpl.php b/docs/themes/simplified-desktop/social/oauth/authorize.tmpl.php
new file mode 100644 (file)
index 0000000..ea70040
--- /dev/null
@@ -0,0 +1,15 @@
+<div>
+<h1>Grant access to your private information?</h1>
+
+<form class="input-form" action="approve_authorization.php" method="post">
+       <div class="row">
+               An application is requesting access to your information. You should
+               only approve this request if you trust the application.
+       </div>
+       <input type="hidden" name="oauth_token" value="<?php echo htmlspecialchars($this->token); ?>" /> 
+       <input type="hidden" name="oauth_callback" value="<?php echo htmlspecialchars($this->callback); ?>" />
+       <input class="button" type="submit" value="Approve" />
+       <input class="button" type="button" value="Decline" onclick="location.href='/'" />
+</form>
+<div style="clear: both"></div>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/oauth/footer.tmpl.php b/docs/themes/simplified-desktop/social/oauth/footer.tmpl.php
new file mode 100644 (file)
index 0000000..5bb3374
--- /dev/null
@@ -0,0 +1,10 @@
+</div>
+
+<div id="footer">
+       <br /><br />
+       <?php require(AT_INCLUDE_PATH.'html/languages.inc.php'); ?>
+       <?php require(AT_INCLUDE_PATH.'html/copyright.inc.php'); ?>
+</div>
+
+</div></body>
+</html>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/oauth/header.tmpl.php b/docs/themes/simplified-desktop/social/oauth/header.tmpl.php
new file mode 100644 (file)
index 0000000..3aa0f38
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="<?php echo $this->lang_code; ?>"> 
+<head>
+       <title><?php echo SITE_NAME; ?> : <?php echo $this->page_title; ?></title>
+       <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->lang_charset; ?>" />
+       <meta name="Generator" content="ATutor - Copyright 2005 by http://atutor.ca" />
+       <base href="<?php echo $this->content_base_href; ?>" />
+       <link rel="shortcut icon" href="<?php echo $this->base_path; ?>favicon.ico" type="image/x-icon" />
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/print.css" type="text/css" media="print" />
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/styles.css" type="text/css" />
+       <!--[if IE]>
+         <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/ie_styles.css" type="text/css" />
+       <![endif]-->
+    <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/forms.css" type="text/css" />
+    <link rel="stylesheet" href="<?php echo $this->base_path; ?>jscripts/jquery-ui-1.7.2/css/smoothness/jquery-ui-1.7.2.custom.css" type="text/css" />
+<?php echo $this->rtl_css; ?>
+<?php if (isset($this->course_id) && $system_courses[$this->course_id]['rss']): ?>
+       <link rel="alternate" type="application/rss+xml" title="<?php echo SITE_NAME; ?> - RSS 2.0" href="<?php echo $this->base_href; ?>get_rss.php?<?php echo $this->course_id; ?>-2" />
+       <link rel="alternate" type="application/rss+xml" title="<?php echo SITE_NAME; ?> - RSS 1.0" href="<?php echo $this->base_href; ?>get_rss.php?<?php echo $this->course_id; ?>-1" />
+<?php endif; ?>
+       <script src="<?php echo $this->base_path; ?>jscripts/infusion/InfusionAll.js" type="text/javascript"></script>
+    <script src="<?php echo $this->base_path; ?>jscripts/infusion/jquery.autoHeight.js" type="text/javascript"></script>
+    <script src="<?php echo $this->base_path; ?>jscripts/jquery-ui-1.7.2/development-bundle/ui/ui.resizable.js" type="text/javascript"></script>
+       <script language="javascript" type="text/javascript">
+       //<!--
+       jQuery.noConflict();
+       //-->
+       </script>
+    <script src="<?php echo $this->base_path; ?>jscripts/ATutor.js" type="text/javascript"></script>   
+<?php echo $this->custom_css; ?>
+    <style id="pref_style" type="text/css"></style> 
+</head>
+
+<body>
+<div class="page_wrapper">
+<div id="header">
+       <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#content" accesskey="c">
+       <img src="<?php echo $this->base_path; ?>images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AT('goto_content'); ?> ALT+c" /></a>  
+       <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#menu<?php echo $_REQUEST['cid']  ?>"  accesskey="m"><img src="<?php echo $this->base_path; ?>images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AT('goto_menu'); ?> ALT+m" /></a>
+
+       <?php if (!empty($this->icon)) { // if a course icon is available, display it here.  ?>
+               <a href="<?php echo $this->base_path.url_rewrite('index.php'); ?>"><img src="<?php echo $this->icon; ?>" class="headicon" alt="<?php echo  _AT('home'); ?>" /></a>      
+       <?php } ?>
+
+
+
+       <?php
+       // If there is a custom course banner in the file manager called banner.html, display it here
+       @readfile(AT_CONTENT_DIR . $this->course_id.'/banner.txt'); 
+
+       /*
+       and example banner.html file might look like:
+       <div style="width: 760px; height: 42px; background: white;"><img src="http://[mysite]/atutor15rc3/banners/kart-camb.jpg"></div>
+       */
+
+       ?>
+       <!-- section title -->
+       <?php if (isset($_SESSION['valid_user']) && $_SESSION['valid_user']): 
+               echo '<div class="site-name">'.stripslashes(SITE_NAME).'</div>'; 
+       else:
+               echo '<br />';  
+       endif; ?>
+       <h1 id="section-title"><?php echo $this->section_title; ?>
+               <?php if ((isset($this->course_id) && $this->course_id > 0) && ($_SESSION['enroll'] == AT_ENROLL_NO)) : ?> 
+                       - <small><a href="<?php echo $this->base_path; ?>enroll.php?course=<?php echo $this->course_id; ?>"><?php echo _AT('enroll_me'); ?></a></small>
+               <?php endif; ?>
+       </h1>
+</div>
+<div class="contentwrapper">
diff --git a/docs/themes/simplified-desktop/social/profile_picture.html.php b/docs/themes/simplified-desktop/social/profile_picture.html.php
new file mode 100644 (file)
index 0000000..f5126d2
--- /dev/null
@@ -0,0 +1,216 @@
+<?php\r
+/************************************************************************/\r
+/* ATutor                                                                                                                              */\r
+/************************************************************************/\r
+/* Copyright (c) 2002-2008 by Greg Gay, Joel Kronenberg & Heidi Hazelton*/\r
+/* Adaptive Technology Resource Centre / University of Toronto                 */\r
+/* http://atutor.ca                                                                                                            */\r
+/*                                                                                                                                             */\r
+/* This program is free software. You can redistribute it and/or               */\r
+/* modify it under the terms of the GNU General Public License                 */\r
+/* as published by the Free Software Foundation.                                               */\r
+/************************************************************************/\r
+// $Id: profile_picture.html.php 9418 2010-03-03 16:39:24Z greg $\r
+if (!defined('AT_INCLUDE_PATH')) { exit; }\r
+\r
+function resize_image($src, $dest, $src_h, $src_w, $dest_h, $dest_w, $type, $src_x=0, $src_y=0) {\r
+       $thumbnail_img = imagecreatetruecolor($dest_w, $dest_h);\r
+\r
+       if ($type == 'gif') {\r
+               $source = imagecreatefromgif($src);\r
+       } else if ($type == 'jpg') {\r
+               $source = imagecreatefromjpeg($src);\r
+       } else {\r
+               $source = imagecreatefrompng($src);\r
+       }\r
+       \r
+       if ($src_x > 0 || $src_y > 0){\r
+               imagecopyresized($thumbnail_img, $source, 0, 0, $src_x, $src_y, $dest_w, $dest_h, $src_w, $src_h);\r
+       } else {\r
+               imagecopyresampled($thumbnail_img, $source, $src_x, $src_y, 0, 0, $dest_w, $dest_h, $src_w, $src_h);\r
+       }\r
+\r
+       if ($type == 'gif') {\r
+               imagegif($thumbnail_img, $dest);\r
+       } else if ($type == 'jpg') {\r
+               imagejpeg($thumbnail_img, $dest, 75);\r
+       } else {\r
+               imagepng($thumbnail_img, $dest, 7);\r
+       }\r
+}\r
+\r
+// check if GD is installed\r
+if (!extension_loaded('gd')) {\r
+       require(AT_INCLUDE_PATH.'header.inc.php');\r
+       $msg->printInfos('FEATURE_NOT_AVAILABLE');\r
+       require(AT_INCLUDE_PATH.'footer.inc.php');\r
+       exit;\r
+}\r
+\r
+// check if folder exists, if not, create it\r
+if (!is_dir(AT_CONTENT_DIR.'/profile_pictures/profile')) {\r
+       mkdir(AT_CONTENT_DIR.'/profile_pictures/profile');\r
+}\r
+\r
+$gd_info = gd_info();\r
+$supported_images = array();\r
+if ($gd_info['GIF Create Support']) {\r
+       $supported_images[] = 'gif';\r
+}\r
+if ($gd_info['JPG Support']) {\r
+       $supported_images[] = 'jpg';\r
+}\r
+if ($gd_info['PNG Support']) {\r
+       $supported_images[] = 'png';\r
+}\r
+\r
+if (!$supported_images) {\r
+       require(AT_INCLUDE_PATH.'header.inc.php');\r
+       $msg->printInfos('FEATURE_NOT_AVAILABLE');\r
+       require(AT_INCLUDE_PATH.'footer.inc.php');\r
+       exit;\r
+}\r
+\r
+if (isset($_POST['cancel'])) {\r
+       $msg->addFeedback('CANCELLED');\r
+       header('Location: '.$_SERVER['PHP_SELF'].'?member_id='.$member_id);\r
+       exit;\r
+} else if (isset($_POST['submit'])) {\r
+       if (isset($_POST['delete']) && !$_FILES['file']['size']) {\r
+               profile_image_delete($member_id);\r
+\r
+               $msg->addFeedback('PROFILE_UPDATED');\r
+\r
+               header('Location: '.$_SERVER['PHP_SELF'].'?member_id='.$member_id);\r
+               exit;\r
+       } else if ($_FILES['file']['error'] == UPLOAD_ERR_FORM_SIZE) {\r
+               $msg->addError(array('FILE_MAX_SIZE', $_config['prof_pic_max_file_size'] . ' ' . _AT('bytes')));\r
+               header('Location: '.$_SERVER['PHP_SELF'].'?member_id='.$member_id);\r
+               exit;\r
+       } else if (!$_FILES['file']['size']) {\r
+               header('Location: '.$_SERVER['PHP_SELF'].'?member_id='.$member_id);\r
+               exit;\r
+       }\r
+\r
+       // check if this is a supported file type\r
+       $filename   = $stripslashes($_FILES['file']['name']);\r
+       $path_parts = pathinfo($filename);\r
+       $extension  = strtolower($path_parts['extension']);\r
+       $image_attributes = getimagesize($_FILES['file']['tmp_name']);\r
+\r
+       if ($extension == 'jpeg') {\r
+               $extension = 'jpg';\r
+       }\r
+\r
+       if (!in_array($extension, $supported_images)) {\r
+               $msg->addError(array('FILE_ILLEGAL', $extension));\r
+               header('Location: '.$_SERVER['PHP_SELF'].'?member_id='.$member_id);\r
+               exit;\r
+       } else if ($image_attributes[2] > IMAGETYPE_PNG) {\r
+               $msg->addError(array('FILE_ILLEGAL', $extension));\r
+               header('Location: '.$_SERVER['PHP_SELF'].'?member_id='.$member_id);\r
+               exit;\r
+       }\r
+\r
+       // make sure under max file size\r
+       if ($_FILES['file']['size'] > $_config['prof_pic_max_file_size']) {\r
+               $msg->addError('FILE_MAX_SIZE');\r
+               header('Location: '.$_SERVER['PHP_SELF'].'?member_id='.$member_id);\r
+               exit;\r
+       }\r
+\r
+       // delete the old images (if any)\r
+       profile_image_delete($member_id);\r
+\r
+       $new_filename   = $member_id . '.' . $extension;\r
+       $original_img  = AT_CONTENT_DIR.'profile_pictures/originals/'. $new_filename;\r
+       $profile_img   = AT_CONTENT_DIR.'profile_pictures/profile/'. $new_filename;\r
+       $thumbnail_img = AT_CONTENT_DIR.'profile_pictures/thumbs/'. $new_filename;\r
+\r
+       // save original\r
+       if (!move_uploaded_file($_FILES['file']['tmp_name'], $original_img)) {\r
+               $msg->addError('CANNOT_OVERWRITE_FILE');\r
+               header('Location: '.$_SERVER['PHP_SELF'].'?member_id='.$member_id);\r
+               exit;\r
+       }\r
+\r
+       // resize the original and save it at $thumbnail_file\r
+       $width  = $image_attributes[0];\r
+       $height = $image_attributes[1];\r
+\r
+       $thumbnail_fixed_height = 60; \r
+       $thumbnail_fixed_width = 60; \r
+\r
+       if ($width > $height && $height > $thumbnail_fixed_height) {\r
+               $thumbnail_height= $thumbnail_fixed_height;\r
+               $thumbnail_width = intval($thumbnail_fixed_height * $width / $height);\r
+               resize_image($original_img, $thumbnail_img, $height, $width, $thumbnail_height, $thumbnail_width, $extension);\r
+               //cropping\r
+               resize_image($thumbnail_img, $thumbnail_img, $thumbnail_fixed_height, $thumbnail_fixed_width, $thumbnail_fixed_height, $thumbnail_fixed_width, $extension, ($thumbnail_width-$thumbnail_fixed_width)/2);\r
+       } else if ($width <= $height && $width>$thumbnail_fixed_width) {\r
+               $thumbnail_height = intval($thumbnail_fixed_width * $height / $width);\r
+               $thumbnail_width  = $thumbnail_fixed_width;\r
+               resize_image($original_img, $thumbnail_img, $height, $width, $thumbnail_height, $thumbnail_width, $extension);\r
+               //cropping\r
+               resize_image($thumbnail_img, $thumbnail_img, $thumbnail_fixed_height, $thumbnail_fixed_width, $thumbnail_fixed_height, $thumbnail_fixed_width, $extension, 0, ($thumbnail_height-$thumbnail_fixed_height)/2);\r
+       } else {\r
+               // no resizing, just copy the image.\r
+               // it's too small to resize.\r
+               copy($original_img, $thumbnail_img);\r
+       }\r
+\r
+       // resize the original and save it to profile\r
+       $profile_fixed_height = 320;\r
+       $profile_fixed_width = 240;\r
+       if ($width > $height && $height>$profile_fixed_height) {\r
+               $profile_width = intval($profile_fixed_height * $width / $height);\r
+               $profile_height  = $profile_fixed_height;\r
+               resize_image($original_img, $profile_img, $height, $width, $profile_height, $profile_width, $extension);\r
+               //cropping\r
+               resize_image($profile_img, $profile_img, $profile_fixed_height, $profile_fixed_width, $profile_fixed_height, $profile_fixed_width, $extension, ($profile_width-$profile_fixed_width)/2);\r
+       } else if ($width <= $height && $width > $profile_fixed_width) {\r
+               $profile_width = $profile_fixed_width;\r
+               $profile_height = intval($profile_fixed_width * $height / $width);\r
+               resize_image($original_img, $profile_img, $height, $width, $profile_height, $profile_width, $extension);\r
+               //cropping\r
+               resize_image($profile_img, $profile_img, $profile_fixed_height, $profile_fixed_width, $profile_fixed_height, $profile_fixed_width, $extension, 0, ($profile_height-$profile_fixed_height)/2);\r
+       } else {\r
+               // no resizing, just copy the image.\r
+               // it's too small to resize.\r
+               copy($original_img, $profile_img);\r
+       }\r
+\r
+       $msg->addFeedback('PROFILE_UPDATED');\r
+\r
+       header('Location: '.$_SERVER['PHP_SELF'].'?member_id='.$member_id);\r
+       exit;\r
+}\r
+\r
+require(AT_INCLUDE_PATH.'header.inc.php');\r
+\r
+?>\r
+<div class="social-wrapper">\r
+<?php include("lib/profile_menu.inc.php")  ?>\r
+<br />\r
+<form method="post" enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>?member_id=<?php echo $member_id; ?>" name="form">\r
+<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_config['prof_pic_max_file_size']; ?>" />\r
+<div class="input-form">\r
+<?php if (profile_image_exists($member_id)): ?>\r
+       <div class="row">\r
+               <a href="get_profile_img.php?id=<?php echo $member_id.SEP.'size=o'; ?>"><img src="get_profile_img.php?id=<?php echo $member_id; ?>" alt="" /></a>\r
+               <input type="checkbox" name="delete" value="1" id="del"/><label for="del"><?php echo _AT('delete'); ?></label>\r
+       </div>\r
+<?php endif; ?>\r
+       <div class="row">\r
+               <h3><label for="upload_picture"><?php echo _AT('upload_new_picture'); ?></label></h3>\r
+               <input type="file" name="file" id="upload_picture"/> (<?php echo implode(', ', $supported_images); ?>)</div>\r
+\r
+       <div class="row buttons">\r
+               <input type="submit" name="submit" value="<?php echo _AT('save'); ?>" />\r
+               <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />\r
+       </div>\r
+</div>\r
+</form>\r
+<div style="clear:both;"></div>\r
+</div>\r
+<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/settings/account_settings.tmpl.php b/docs/themes/simplified-desktop/social/settings/account_settings.tmpl.php
new file mode 100644 (file)
index 0000000..7e16ea8
--- /dev/null
@@ -0,0 +1,10 @@
+<form action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'settings.php');?>" method="POST">
+<div class="input-form">
+       <h4><?php echo _AT('account_settings'); ?></h4>
+       <div class="row"><?php echo _AT('account_control_blurb'); ?> </div>
+       <div class="row">
+               <input type="hidden" name="n" value="account_settings" />
+               <input class="button" type="submit" name="submit" value="<?php echo _AT('save'); ?>"/>
+       </div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/settings/application_settings.tmpl.php b/docs/themes/simplified-desktop/social/settings/application_settings.tmpl.php
new file mode 100644 (file)
index 0000000..a2f0b31
--- /dev/null
@@ -0,0 +1,27 @@
+<?php 
+if (empty($this->my_apps)):
+       echo _AT('no_gadgets_installed'); 
+else: ?>
+<br />
+<form action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'settings.php');?>" method="POST">
+<div class="input-form"  style="padding:1em;">
+       <h4><?php echo _AT('application_settings'); ?></h4>
+       <div class="row"><?php echo _AT('application_control_blurb'); ?></div>
+       <?php foreach($this->my_apps as $id=>$app_obj): ?>
+       <div class="row" style="width:60%; border-bottom:1px solid #bbb;">
+               <div style="float:left;"><?php echo $app_obj->getTitle(); ?></div>
+               <div style="float:right;">
+                       <label for="app_<?php echo $app_obj->getID();?>"><?php echo _AT('show_on_home_page'); ?></label>
+                       <?php (isset($this->home_display[$id]))? $checked = ' checked="checked"': $checked = ''; ?>
+                       <input type="checkbox" id="app_<?php echo $app_obj->getID();?>" name="app[<?php echo $app_obj->getID();?>]" value="1" <?php echo $checked; ?>/>
+               </div>
+               <div><br/></div>
+       </div>
+       <?php endforeach;?>
+       <div class="row">
+               <input type="hidden" name="n" value="application_settings" />
+               <input class="button" type="submit" name="submit" value="<?php echo _AT('save'); ?>"/>
+       </div>
+</div>
+</form>
+<?php endif; ?>
diff --git a/docs/themes/simplified-desktop/social/settings/privacy_settings.tmpl.php b/docs/themes/simplified-desktop/social/settings/privacy_settings.tmpl.php
new file mode 100644 (file)
index 0000000..83082a1
--- /dev/null
@@ -0,0 +1,145 @@
+<br /><form action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'settings.php');?>" method="POST">
+<div class="input-form">
+<h4><?php echo _AT('privacy_settings'); ?></h4>
+<div class="row-blurb"><?php echo _AT('privacy_control_blurb'); ?> </div>
+<br />
+<fieldset class="group_form"><legend class="group_form"><?php echo _AT('profile_control'); ?></legend>
+<div class="row">
+       <label for="basic_profile"><?php echo _AT('basic_profile'); ?></label>
+               <div>
+               <?php foreach ($this->controller->getPermissionLevels() as $control_id=>$control_string): 
+                       (isset($this->profile_prefs[AT_SOCIAL_PROFILE_BASIC][$control_id]))?$checked=' checked="checked"':$checked='';  ?>              
+               <label for="boxes_profile_<?php echo AT_SOCIAL_PROFILE_BASIC.'_'.$control_id; ?>"><?php echo $control_string; ?></label>
+               <input type="checkbox" id="boxes_profile_<?php echo AT_SOCIAL_PROFILE_BASIC.'_'.$control_id; ?>" name="profile_prefs[<?php echo AT_SOCIAL_PROFILE_BASIC;?>][<?php echo $control_id; ?>]" value="1"  <?php echo $checked; ?>>
+               <?php endforeach; ?>
+               </div>
+</div>
+<div class="row">
+       <label for="detailed_profile"><?php echo _AT('detailed_profile'); ?></label>
+       <div>
+               <?php foreach ($this->controller->getPermissionLevels() as $control_id=>$control_string): 
+                       (isset($this->profile_prefs[AT_SOCIAL_PROFILE_PROFILE][$control_id]))?$checked=' checked="checked"':$checked='';        ?>              
+               <label for="boxes_profile_<?php echo AT_SOCIAL_PROFILE_PROFILE.'_'.$control_id; ?>"><?php echo $control_string; ?></label>
+               <input type="checkbox" id="boxes_profile_<?php echo AT_SOCIAL_PROFILE_PROFILE.'_'.$control_id; ?>" name="profile_prefs[<?php echo AT_SOCIAL_PROFILE_PROFILE;?>][<?php echo $control_id; ?>]" value="1"  <?php echo $checked; ?>>
+               <?php endforeach; ?>
+       </div>
+</div>
+<div class="row">
+       <label for="status_update"><?php echo _AT('activities'); ?></label>
+       <div>
+               <?php foreach ($this->controller->getPermissionLevels() as $control_id=>$control_string): 
+                       (isset($this->profile_prefs[AT_SOCIAL_PROFILE_STATUS_UPDATE][$control_id]))?$checked=' checked="checked"':$checked='';  ?>              
+               <label for="boxes_profile_<?php echo AT_SOCIAL_PROFILE_STATUS_UPDATE.'_'.$control_id; ?>"><?php echo $control_string; ?></label>
+               <input type="checkbox" id="boxes_profile_<?php echo AT_SOCIAL_PROFILE_STATUS_UPDATE.'_'.$control_id; ?>" name="profile_prefs[<?php echo AT_SOCIAL_PROFILE_STATUS_UPDATE;?>][<?php echo $control_id; ?>]" value="1"  <?php echo $checked; ?>>
+               <?php endforeach; ?>
+       </div>
+</div>
+<!-- 
+  -- Not implemented yet.
+  --
+<div class="row">
+       <label for="media"><?php echo _AT('media'); ?></label>
+       <div>
+               <?php foreach ($this->controller->getPermissionLevels() as $control_id=>$control_string): 
+                       (isset($this->profile_prefs[AT_SOCIAL_PROFILE_MEDIA][$control_id]))?$checked=' checked="checked"':$checked='';  ?>              
+               <label for="boxes_profile_<?php echo AT_SOCIAL_PROFILE_MEDIA.'_'.$control_id; ?>"><?php echo $control_string; ?></label>
+               <input type="checkbox" id="boxes_profile_<?php echo AT_SOCIAL_PROFILE_MEDIA.'_'.$control_id; ?>" name="profile_prefs[<?php echo AT_SOCIAL_PROFILE_MEDIA;?>][<?php echo $control_id; ?>]" value="1"  <?php echo $checked; ?>>
+               <?php endforeach; ?>
+       </div>
+</div>
+  -->
+<div class="row">
+       <label for="connection"><?php echo _AT('connections'); ?></label>
+       <div>
+               <?php foreach ($this->controller->getPermissionLevels() as $control_id=>$control_string): 
+                       (isset($this->profile_prefs[AT_SOCIAL_PROFILE_CONNECTION][$control_id]))?$checked=' checked="checked"':$checked='';     ?>              
+               <label for="boxes_profile_<?php echo AT_SOCIAL_PROFILE_CONNECTION.'_'.$control_id; ?>"><?php echo $control_string; ?></label>
+               <input type="checkbox" id="boxes_profile_<?php echo AT_SOCIAL_PROFILE_CONNECTION.'_'.$control_id; ?>" name="profile_prefs[<?php echo AT_SOCIAL_PROFILE_CONNECTION;?>][<?php echo $control_id; ?>]" value="1"  <?php echo $checked; ?>>
+               <?php endforeach; ?>
+       </div>
+</div>
+<div class="row">
+       <label for="education"><?php echo _AT('education'); ?></label>
+       <div>
+               <?php foreach ($this->controller->getPermissionLevels() as $control_id=>$control_string): 
+                       (isset($this->profile_prefs[AT_SOCIAL_PROFILE_EDUCATION][$control_id]))?$checked=' checked="checked"':$checked='';      ?>              
+               <label for="boxes_profile_<?php echo AT_SOCIAL_PROFILE_EDUCATION.'_'.$control_id; ?>"><?php echo $control_string; ?></label>
+               <input type="checkbox" id="boxes_profile_<?php echo AT_SOCIAL_PROFILE_EDUCATION.'_'.$control_id; ?>" name="profile_prefs[<?php echo AT_SOCIAL_PROFILE_EDUCATION;?>][<?php echo $control_id; ?>]" value="1"  <?php echo $checked; ?>>
+               <?php endforeach; ?>
+       </div>
+</div>
+<div class="row">
+       <label for="position"><?php echo _AT('position'); ?></label>
+       <div>
+               <?php foreach ($this->controller->getPermissionLevels() as $control_id=>$control_string): 
+                       (isset($this->profile_prefs[AT_SOCIAL_PROFILE_POSITION][$control_id]))?$checked=' checked="checked"':$checked='';       ?>              
+               <label for="boxes_profile_<?php echo AT_SOCIAL_PROFILE_POSITION.'_'.$control_id; ?>"><?php echo $control_string; ?></label>
+               <input type="checkbox" id="boxes_profile_<?php echo AT_SOCIAL_PROFILE_POSITION.'_'.$control_id; ?>" name="profile_prefs[<?php echo AT_SOCIAL_PROFILE_POSITION;?>][<?php echo $control_id; ?>]" value="1"  <?php echo $checked; ?>>
+               <?php endforeach; ?>
+       </div>
+</div>
+</fieldset>
+
+<fieldset class="group_form"><legend class="group_form"><?php echo _AT('search_control'); ?></legend>
+<div class="row">
+       <label for="search_visibility"><?php echo _AT('search_visibility'); ?></label>
+               <div>
+               <?php foreach ($this->controller->getPermissionLevels() as $control_id=>$control_string): 
+                       (isset($this->search_prefs[AT_SOCIAL_SEARCH_VISIBILITY][$control_id]))?$checked=' checked="checked"':$checked='';       ?>              
+               <label for="boxes_search_<?php echo AT_SOCIAL_SEARCH_VISIBILITY.'_'.$control_id; ?>"><?php echo $control_string; ?></label>
+               <input type="checkbox" id="boxes_search_<?php echo AT_SOCIAL_SEARCH_VISIBILITY.'_'.$control_id; ?>" name="search_prefs[<?php echo AT_SOCIAL_SEARCH_VISIBILITY;?>][<?php echo $control_id; ?>]" value="1"  <?php echo $checked; ?>>
+               <?php endforeach; ?>
+               </div>
+</div>
+<!-- These settings will be implemented after
+[[[Following are to be implemented...]]]
+<div class="row">
+       <label for="search_profile"><?php echo _AT('search_profile'); ?></label>
+               <div>
+               <?php foreach ($this->controller->getPermissionLevels() as $control_id=>$control_string): 
+                       (isset($this->search_prefs[AT_SOCIAL_SEARCH_PROFILE][$control_id]))?$checked=' checked="checked"':$checked='';  ?>              
+               <label for="boxes_search_<?php echo AT_SOCIAL_SEARCH_PROFILE.'_'.$control_id; ?>"><?php echo $control_string; ?></label>
+               <input type="checkbox" id="boxes_search_<?php echo AT_SOCIAL_SEARCH_PROFILE.'_'.$control_id; ?>" name="search_prefs[<?php echo AT_SOCIAL_SEARCH_PROFILE;?>][<?php echo $control_id; ?>]" value="1"  <?php echo $checked; ?>>
+               <?php endforeach; ?>
+               </div>
+</div>
+<div class="row">
+       <label for="search_connection"><?php echo _AT('search_connections'); ?></label>
+               <div>
+               <?php foreach ($this->controller->getPermissionLevels() as $control_id=>$control_string): 
+                       (isset($this->search_prefs[AT_SOCIAL_SEARCH_CONNECTION][$control_id]))?$checked=' checked="checked"':$checked='';       ?>              
+               <label for="boxes_search_<?php echo AT_SOCIAL_SEARCH_CONNECTION.'_'.$control_id; ?>"><?php echo $control_string; ?></label>
+               <input type="checkbox" id="boxes_search_<?php echo AT_SOCIAL_SEARCH_CONNECTION.'_'.$control_id; ?>" name="search_prefs[<?php echo AT_SOCIAL_SEARCH_CONNECTION;?>][<?php echo $control_id; ?>]" value="1"  <?php echo $checked; ?>>
+               <?php endforeach; ?>
+               </div>
+</div>
+<div class="row">
+       <label for="search_education"><?php echo _AT('search_education'); ?></label>
+               <div>
+               <?php foreach ($this->controller->getPermissionLevels() as $control_id=>$control_string): 
+                       (isset($this->search_prefs[AT_SOCIAL_SEARCH_EDUCATION][$control_id]))?$checked=' checked="checked"':$checked='';        ?>              
+               <label for="boxes_search_<?php echo AT_SOCIAL_SEARCH_EDUCATION.'_'.$control_id; ?>"><?php echo $control_string; ?></label>
+               <input type="checkbox" id="boxes_search_<?php echo AT_SOCIAL_SEARCH_EDUCATION.'_'.$control_id; ?>" name="search_prefs[<?php echo AT_SOCIAL_SEARCH_EDUCATION;?>][<?php echo $control_id; ?>]" value="1"  <?php echo $checked; ?>>
+               <?php endforeach; ?>
+               </div>
+</div>
+<div class="row">
+       <label for="search_position"><?php echo _AT('search_position'); ?></label>
+               <div>
+               <?php foreach ($this->controller->getPermissionLevels() as $control_id=>$control_string): 
+                       (isset($this->search_prefs[AT_SOCIAL_SEARCH_POSITION][$control_id]))?$checked=' checked="checked"':$checked=''; ?>              
+               <label for="boxes_search_<?php echo AT_SOCIAL_SEARCH_POSITION.'_'.$control_id; ?>"><?php echo $control_string; ?></label>
+               <input type="checkbox" id="boxes_search_<?php echo AT_SOCIAL_SEARCH_POSITION.'_'.$control_id; ?>" name="search_prefs[<?php echo AT_SOCIAL_SEARCH_POSITION;?>][<?php echo $control_id; ?>]" value="1"  <?php echo $checked; ?>>
+               <?php endforeach; ?>
+               </div>
+</div>
+-->
+</fieldset>
+
+
+<div class="row" id="last-row">
+       <input type="hidden" name="n" value="privacy_settings" />
+       <input class="button" type="submit" name="submit" value="<?php echo _AT('save'); ?>"/>
+</div>
+</div>
+</form>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/settings/settings_menu.tmpl.php b/docs/themes/simplified-desktop/social/settings/settings_menu.tmpl.php
new file mode 100644 (file)
index 0000000..117d277
--- /dev/null
@@ -0,0 +1,6 @@
+<?php //include this file in all the settings template under the html/settings/ directory ?>
+<ul class="social_inline_menu">
+<!--   <li class="inlinelist"><a href="<?php echo 'mods/social/settings.php?n=account_settings'; ?>"><?php echo _AT('account_settings'); ?></a></li> -->
+       <li class="inlinelist"><a href="<?php echo AT_SOCIAL_BASENAME.'settings.php?n=privacy_settings'; ?>"><?php echo _AT('privacy_settings'); ?></a></li>
+       <li class="inlinelist"><a href="<?php echo AT_SOCIAL_BASENAME.'settings.php?n=application_settings'; ?>"><?php echo _AT('application_settings'); ?></a></li>
+</ul>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/sgroup_create.tmpl.php b/docs/themes/simplified-desktop/social/sgroup_create.tmpl.php
new file mode 100644 (file)
index 0000000..b4766c8
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+//Deprecated
+//Use sgroup_edit.tmpl.php instead.
+//keeping this just as a record
+//@harris
+?>
+
+<div class="input-form">       
+       <form action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'groups/create.php'); ?>" method="POST" >
+               <div class="row">
+                       <label for="group_name"><?php echo _AT('group_name'); ?></label>
+                       <input type="text" size="45" name="group_name" id="group_name" value="<?php echo $_POST['group_name']; ?>"/>
+               </div>
+
+               <div class="row">
+                       <label for="group_type"><?php echo _AT('group_type'); ?></label>
+                       <select name="group_type" id="group_type">
+                       <?php foreach ($this->group_types as $type_id=>$type): ?>
+                               <option value="<?php echo $type_id;?>"><?php echo _AT($type);?></option>
+                       <?php endforeach; ?>
+                       </select>
+               </div>
+
+               <div class="row">
+                       <label for="logo"><?php echo _AT('group_logo'); ?></label>
+                       <input type="text" size="45" name="logo" id="logo" value="<?php echo $_POST['logo']; ?>"/>
+               </diV>
+
+               <div class="row">
+                       <label for="description"><?php echo _AT('description'); ?></label>
+                       <textarea cols="40" rows="5" name="description" id="description"><?php echo $_POST['description']; ?></textarea>
+               </div>
+
+               <div class="row">
+                       <input class="button" type="submit" name="create" value="<?php echo _AT('create'); ?>" />       
+               </div>
+       </form>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/sgroup_edit.tmpl.php b/docs/themes/simplified-desktop/social/sgroup_edit.tmpl.php
new file mode 100644 (file)
index 0000000..681dbf8
--- /dev/null
@@ -0,0 +1,93 @@
+<?php 
+if (isset($this->group_obj)){
+       //edit
+       $form_url = AT_SOCIAL_BASENAME.'groups/edit.php';
+       $button_name = 'save';
+       $name = $this->group_obj->getName();
+       $logo = $this->group_obj->getLogo();
+       $privacy = $this->group_obj->getPrivacy();
+       $description = $this->group_obj->getDescription(false);
+       $id = $this->group_obj->getID();
+} else {
+       //create new one
+       $form_url = AT_SOCIAL_BASENAME.'groups/create.php';
+       $button_name = 'create';
+}
+?>
+
+<div class="input-form">       
+       <form action="<?php echo $form_url; ?>" method="POST" enctype="multipart/form-data">
+               <div class="row">
+                       <label for="group_name"><?php echo _AT('group_name'); ?></label>
+                       <input type="text" size="45" name="group_name" id="group_name" value="<?php echo $name; ?>"/>
+               </div>
+
+               <?php if (isset($this->group_obj)): ?>
+               <div class="row">
+                       <label for="group_admin"><?php echo _AT('group_admin'); ?></label>
+                       <select name="group_admin" id="group_admin">
+                       <?php 
+                               foreach($this->group_obj->getGroupMembers() as $garbage=>$member_obj):
+                                       $selected = '';
+                                       if ($this->group_obj->getUser()==$member_obj->getID()){
+                                               $selected = ' selected="selected"';
+                                       } 
+                       ?>
+                               <option value="<?php echo $member_obj->getID();?>" <?php echo $selected;?>><?php echo printSocialName($member_obj->getID());?></option>
+                       <?php endforeach; ?>
+                       </select>
+               </div>
+               <?php endif; ?>
+
+               <div class="row">
+                       <label for="group_type"><?php echo _AT('group_type'); ?></label>
+                       <select name="group_type" id="group_type">
+                       <?php 
+                               foreach ($this->group_types as $type_id=>$type): 
+                                       $selected = '';
+                                       if ($this->group_obj->type_id==$type_id){
+                                               $selected = ' selected="selected"';
+                                       } 
+                       ?>
+                               <option value="<?php echo $type_id;?>" <?php echo $selected;?>><?php echo _AT($type);?></option>
+                       <?php endforeach; ?>
+                       </select>
+               </div>
+
+               <div class="row">
+                       <?php
+                               if ($privacy==1){
+                                       $private_selected = ' checked="checked"';
+                               }  else {
+                                       $public_selected = ' checked="checked"';
+                               }
+                       ?>
+                       <label><?php echo _AT('access');?></label><br/>
+                       <input type="radio" name="group_privacy" id="group_about_public" value="public" <?php echo $public_selected; ?>/>
+                       <label for="group_about_public"><?php echo _AT('public').': '._AT('group_about_public'); ?></label><br/>
+                       <input type="radio" name="group_privacy" id="group_about_private" value="private" <?php echo $private_selected; ?>/>
+                       <label for="group_about_private"><?php echo _AT('private').': '._AT('group_about_private'); ?></label>
+               </div>
+
+               <div class="row">
+                       <?php 
+                               if ($logo!='') {
+                                       echo $logo;
+                               } 
+                       ?>
+                       <label for="logo"><?php echo _AT('group_logo'); ?></label>
+                       <input type="file" size="30" name="logo" id="logo" />
+               </diV>
+
+               <div class="row">
+                       <label for="description"><?php echo _AT('description'); ?></label>
+                       <textarea cols="30" rows="5" name="description" id="description"><?php echo $description; ?></textarea>
+               </div>
+
+               <div class="row">
+                       <input type="hidden" name="id" value="<?php echo $id;?>" /?>
+                       <input class="button" type="submit" name="<?php echo $button_name; ?>" value="<?php echo _AT($button_name); ?>" />      
+                       <input class="button" type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" />       
+               </div>
+       </form>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/sgroup_invite.tmpl.php b/docs/themes/simplified-desktop/social/sgroup_invite.tmpl.php
new file mode 100644 (file)
index 0000000..79c6c5d
--- /dev/null
@@ -0,0 +1,46 @@
+<?php //debug($this->group_obj); ?>
+<div style="width:90%">
+       <div style="float:left;width:47%; clear:right;">
+               <div class="headingbox"><h3><?php echo _AT('added_members'); ?></h3></div>
+               <div class="contentbox">
+                       <ul>
+                       <?php foreach ($this->group_obj->getGroupMembers() as $k=>$person_obj): ?>
+                               <li><?php echo printSocialName($person_obj->getID()); ?></li>
+                       <?php endforeach; ?>
+                       </ul>
+               </div>
+       </div>
+       <div style="float:right;width:47%;">
+               <form class="input-form" method="POST" action="<?php echo AT_SOCIAL_BASENAME; ?>groups/invite.php">
+                       <div class="headingbox"><h3><?php echo _AT('not_added_members'); ?></h3></div>
+                       <div class="contentbox">
+                       <!-- 
+                         -- To be implemented 
+                         --
+                       <label for="search_not_added_members"><?php echo _AT('search');?></label>
+                       <input type="text" name="search_not_added_members" id="search_not_added_members">
+                         -->
+                       <div style="height:300px;overflow:scroll;">
+                               <?php 
+                               $all_friends = getFriends($_SESSION['member_id']);
+                               foreach ($all_friends as $k=>$member_id): 
+                                       if(in_array(new Member($member_id), $this->group_obj->getGroupMembers())){
+                                               $extra = ' disabled="disabled"';
+                                       } else {
+                                               $extra = '';
+                                       }
+
+                                       if(isset($_POST['new_members'][$member_id])){
+                                               $extra .= ' checked="checked"';
+                                       }
+                               ?>
+                                       <input type="checkbox" name="new_members[<?php echo $member_id;?>]" id="member_<?php echo $member_id; ?>" <?php echo $extra;?>/>
+                                       <label for="member_<?php echo $member_id; ?>"><?php echo printSocialName($member_id, false); ?></label><br/>
+                               <?php endforeach; ?>
+                       </div>
+                       <input type="hidden" name="id" value="<?php echo $_REQUEST['id']; ?>" />
+                       <input class="button" type="submit" name="inviteMember" value="<?php echo _AT('invite');?>" />
+                       </div>
+               </form>
+       </div>
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/sgroup_list.tmpl.php b/docs/themes/simplified-desktop/social/sgroup_list.tmpl.php
new file mode 100644 (file)
index 0000000..bed3e39
--- /dev/null
@@ -0,0 +1,61 @@
+<script src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/livesearch.js" type="text/javascript"></script>
+<?php 
+       //Add Friends Template
+       //Generate a random number for the search input name fields, so that the browser will not remember any previous entries.
+       $rand = md5(rand(0, time())); 
+       if ($this->rand_key != ''){
+               $last_search = $_POST['search_friends_'.$this->rand_key];
+       } else {
+               $last_search = $_POST['search_friends_'.$rand]; 
+       }
+?>
+
+<div class="input-form" style="float:right; width:34%;padding:1em;min-height:4.5em;">
+       <div class="contentrow">
+               <h3><?php echo _AT('search_for_friends'); ?></h3>
+               <form action="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'groups/list.php');?>" method="POST" id="search_friends_form">
+                       <label for="searchFriends" style="display:none;"><?php echo _AT('search'); ?></label>
+                       <input type="text" size="60" name="search_friends_<?php echo $rand;?>" id="search_friends" value="<?php echo $last_search; ?>" onkeyup="showResults(this.value, 'livesearch', '<?php echo AT_SOCIAL_BASENAME; ?>groups/list.php')"/>
+                       <input type="submit" name="search" value="<?php echo _AT('search'); ?>">
+                       <input type="hidden" name="rand_key" value="<?php echo $rand; ?>" />
+                       <input type="hidden" name="id" value="<?php echo $this->grp_obj->getID(); ?>" />                        
+                       <div id="livesearch"></div>
+               </form>
+       </div>
+</div>
+<div class="" style="float:left; width:59%">
+       <div class="headingbox"><h3><?php echo _AT('connections'); ?></h3></div>
+       <div class="contentbox">
+       <?php 
+       if (!empty($this->grp_members)):
+               echo "<h4>"._AT('there_are_entries', sizeof($this->grp_members))."</h4>";
+               foreach ($this->grp_members as $id=>$person_obj): 
+       ?>
+       <div class="contact_mini" >
+               <?php if($_SESSION['member_id']==$this->grp_obj->getUser()): ?>
+               <div style="float:right;"><a href="<?php echo AT_SOCIAL_BASENAME;?>groups/list.php?remove=yes<?php echo SEP;?>id=<?php echo $this->grp_obj->getID(); ?><?php echo SEP;?>member_id=<?php echo $person_obj->getID(); ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('remove_group_member'); ?>" title="<?php echo _AT('remove_group_member'); ?>" border="0"/></a> </div>
+               <?php endif; ?>
+               <div>
+                       <div style="float:left;"><?php echo printSocialProfileImg($person_obj->getID()); ?></div>
+                       <div style="padding-left:0.5em; float:left;">
+                               <?php 
+                                       $profile = $person_obj->getDetails();
+                                       echo printSocialName($person_obj->getID()) . '<br/>';
+                                       echo $profile['country'] . ' ' . $profile['province'] . '<br/>';
+                               ?>
+                       </div>
+                       <div style="clear:both;"></div><br/>
+               </div>
+       </div>
+       <?php 
+               endforeach; 
+       endif;
+       ?>
+       </div>
+       <!--
+       <div style="float:right;">
+               [-- TODO: Paginator --]
+       </div>
+       -->
+</div>
+
diff --git a/docs/themes/simplified-desktop/social/sgroup_search.tmpl.php b/docs/themes/simplified-desktop/social/sgroup_search.tmpl.php
new file mode 100644 (file)
index 0000000..4e09da9
--- /dev/null
@@ -0,0 +1,42 @@
+<script src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/livesearch.js" type="text/javascript"></script>
+
+<div class="social-wrapper">
+<div class="input-form">
+       <h3><?php echo _AT('search_for_groups'); ?></h3>
+       <form action="<?php echo AT_SOCIAL_BASENAME.'groups/search.php'; ?>" method="POST" id="search_group_form">
+               <div class="row">
+                       <label for="search_groups"><?php echo _AT('search'); ?></label>
+                               <input type="text" size="60" name="search_groups_<?php echo $this->rand_key;?>" id="search_groups" value="<?php echo $this->last_search; ?>" onkeyup="showResults(this.value, 'livesearch', '<?php echo AT_SOCIAL_BASENAME; ?>groups/search.php')"/>
+                       <input type="hidden" name="rand_key" value="<?php echo $this->rand_key;?>"/>
+                       <input class="button" type="submit" name="search" value="<?php echo _AT('search'); ?>" />
+                       <span><a href="<?php echo AT_SOCIAL_BASENAME; ?>groups/create.php"><?php echo _AT('create_group'); ?></a></span><br />
+                       <div id="livesearch"></div>
+               </div>
+       </form>
+</div>
+
+<div class="headingbox"><h3><?php echo _AT('search_results'); ?></h3></div>
+<div class="contentbox">
+       <?php if (!empty($this->search_result)):
+       foreach($this->search_result as $group_id=>$group_array): 
+       $grp_obj = $group_array['obj'];
+       ?>
+       <div class="box">
+               <div>
+               <?php echo $grp_obj->getLogo(); ?>                      
+               </div>
+               <div>
+                       <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'groups/view.php?id='.$grp_obj->getId());?>"><h4><?php echo $grp_obj->getName(); ?></h4></a><br/>
+                       <?php echo _AT('type') .': '. $grp_obj->getGroupType();?><br/>
+                       <?php echo _AT('description') .': <br/>'. $grp_obj->getDescription();?><br/>
+               </div>
+               <div style="clear:both;"></div>
+       </div>
+       <?php endforeach; 
+       else: 
+               echo _AT('none_found');
+       endif;?>
+</div>
+
+<div style="clear:both;"></div>
+</div>
diff --git a/docs/themes/simplified-desktop/social/sgroup_view.tmpl.php b/docs/themes/simplified-desktop/social/sgroup_view.tmpl.php
new file mode 100644 (file)
index 0000000..9631e99
--- /dev/null
@@ -0,0 +1,135 @@
+<?php global $msg; $msg->printConfirm(); ?>
+<div class="box">
+       <?php //existing members ?>
+       <?php if (in_array(new Member($_SESSION['member_id']), $this->group_obj->group_members)): ?>
+       | <a href="<?php echo AT_SOCIAL_BASENAME; ?>groups/invite.php?id=<?php echo $this->group_obj->getID();?>"><?php echo _AT('invite'); ?></a> |
+
+       <?php //group admin ?>
+       <?php if ($this->group_obj->getUser() == $_SESSION['member_id']): ?>
+       <a href="<?php echo AT_SOCIAL_BASENAME; ?>groups/edit.php?id=<?php echo $this->group_obj->getID();?>"><?php echo _AT('edit_group'); ?></a> |
+       <a href="<?php echo AT_SOCIAL_BASENAME; ?>groups/view.php?id=<?php echo $this->group_obj->getID().SEP;?>delete=confirm"><?php echo _AT('disband_group'); ?></a> |
+       <?php //existing members ?>
+       <?php else: ?>
+       <a href="<?php echo AT_SOCIAL_BASENAME; ?>groups/view.php?id=<?php echo $this->group_obj->getID().SEP;?>remove=1"><?php echo _AT('leave_group'); ?></a> |
+       <?php endif; ?>
+
+       <?php //new members ?>
+       <?php else: ?>
+       <a href="<?php echo AT_SOCIAL_BASENAME; ?>groups/join.php?id=<?php echo $this->group_obj->getID();?>"><?php echo _AT('join_group'); ?></a> |
+       <?php endif; ?>
+
+       <?php //everyone ?>
+       <a href="<?php echo AT_SOCIAL_BASENAME; ?>groups/list.php?id=<?php echo $this->group_obj->getID();?>"><?php echo _AT('group_members'); ?></a> |
+
+       <?php include('notifications.tmpl.php'); ?>
+</div>
+<div>
+       <?php 
+               foreach ($this->group_obj->getGroupActivities() as $activity_id=>$activity_title){
+                       echo $activity_title;
+               }                               
+       ?>
+</div>
+<br/>
+
+<?php if (in_array(new Member($_SESSION['member_id']), $this->group_obj->group_members)): ?>
+<div style="width:59%; float:left;">
+       <div class="headingbox" style="margin-right:1em;">
+               <h3><?php echo _AT('message_board'); ?></h3></div>
+       <div class="contentbox" style="margin-right:1em;">      
+               <form method="POST" action="">
+                       <label for="message"></label>
+                       <textarea name="msg_body" id="message" cols="40" rows="5"></textarea><br />
+                       <input class="button" type="submit" name="submit" value="<?php echo _AT('post');?>" />
+               </form><hr/>
+               
+               <!-- handles sliding -->
+               <script type="text/javascript">
+                 jQuery(document).ready(function(){            
+                       var h = jQuery("#messages").height();
+                       var line_of_height = 250;
+
+                       if (h>=500){
+                               jQuery('#buttonList').show();
+                               jQuery('#message_board').css({'height':'500px'});
+                       } else {
+                               jQuery('#buttonList').hide();
+                       }
+
+                       jQuery("#prevButton").click(function(event){
+                         if (h < jQuery("#messages").height()){
+                                 jQuery("#messages").animate({"marginTop": "+="+line_of_height+"px"}, "slow");
+                                 h += line_of_height;
+                                 jQuery("#temp").html(h);
+                         }
+                         event.preventDefault();
+                       });
+
+                       jQuery("#nextButton").click(function(event){
+                         if ( h >= line_of_height) {
+                                 jQuery("#messages").animate({"marginTop": "-="+line_of_height +"px"}, "slow");
+                                 h -= line_of_height ;
+                                 jQuery("#temp").html(h);
+                         }
+                         event.preventDefault();
+                       });
+
+                 });
+                 </script>
+
+               <div id="message_board" style="max-height:500px; overflow:hidden;">
+               <div id="messages">
+               <?php 
+                       $counter=0;
+                       foreach ($this->group_obj->getMessages() as $id=>$message_array): ?>
+                       <div class="content">
+                               <?php echo $message_array['created_date'].' - '.printSocialName($message_array['member_id']); ?>
+                               <?php 
+                               if ($message_array['member_id']==$_SESSION['member_id'] || $this->group_obj->getUser()==$_SESSION['member_id']){
+                                       echo '<a href="'.url_rewrite(AT_SOCIAL_BASENAME.'groups/delete_message.php?gid='.$this->group_obj->getID().SEP.'delete='.$id).'"><img src="'.$_base_href.AT_SOCIAL_BASENAME.'images/b_drop.png" alt="'._AT('remove').'" title="'._AT('remove').'" border="0" /></a>';
+                               }
+                               ?>
+                               <p><?php echo $message_array['body']; ?></p>
+                       </div>
+               <?php 
+                       $counter++;
+                       endforeach;
+               ?>              
+               </div></div>
+               <div id="buttonList">
+                       <a id="prevButton" href="#">&lt;&lt;<?php echo _AT('previous'); ?></a>
+                       <a id="nextButton" href="#"><?php echo _AT('next'); ?>&gt;&gt;</a>
+               </div>
+               <div id="temp"></div>
+       </div>
+</div>
+<?php endif; ?>
+
+<div style="width:39%;float:left;">
+       <div class="headingbox"><h3><?php echo _AT('group_info'); ?></h3></div>
+       <div class="contentbox">
+               <div><?php echo $this->group_obj->getLogo();?></div>
+               <dl  id="public-profile">
+                       <dt><?php echo _AT('group_name'); ?></dt>
+                       <dd><?php echo $this->group_obj->getName();?></dd>
+
+                       <dt><?php echo _AT('group_type'); ?></dt>
+                       <dd><?php echo $this->group_obj->getGroupType();?></dd>
+
+                       <dt><?php echo _AT('access'); ?></dt>
+                       <dd><?php echo ($this->group_obj->getPrivacy()?_AT('private'):_AT('public'))?><br/></dd>                        
+
+                       <dt><?php echo _AT('created_by'); ?></dt>
+                       <dd><?php echo printSocialName($this->group_obj->getUser());?></dd>
+
+                       <dt><?php echo _AT('created_date'); ?></dt>
+                       <dd><?php echo AT_DATE(_AT('startend_date_long_format'), $this->group_obj->getCreatedDate(), AT_DATE_MYSQL_DATETIME);?></dd>
+
+                       <dt><?php echo _AT('group_last_updated'); ?></dt>
+                       <dd><?php echo AT_DATE(_AT('startend_date_long_format'), $this->group_obj->getLastUpdated(), AT_DATE_MYSQL_DATETIME);?></dd>
+
+                       <dt><?php echo _AT('number_of_members');?></dt>
+                       <dd><?php echo count($this->group_obj->group_members);?></dd>
+               </dl>
+       </div><br />
+</div>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/sgroups.tmpl.php b/docs/themes/simplified-desktop/social/sgroups.tmpl.php
new file mode 100644 (file)
index 0000000..80f35dd
--- /dev/null
@@ -0,0 +1,40 @@
+<script src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/livesearch.js" type="text/javascript"></script>
+<?php 
+       //Generate a random number for the search input name fields, so that the browser will not remember any previous entries.
+       $rand = md5(rand(0, time())); 
+       if ($this->rand_key != ''){
+               $last_search = $_POST['search_groups_'.$this->rand_key];
+       } else {
+               $last_search = $_POST['search_groups_'.$rand];  
+       }
+?>
+<div class="social-wrapper">
+<div>
+<?php include('tiny_sgroups.tmpl.php'); ?>
+</div>
+<div>
+       <div class="input-form">
+               <div class="contentrow">
+                       <h3><?php echo _AT('search_for_groups'); ?></h3>
+                       <form action="<?php echo AT_SOCIAL_BASENAME.'groups/search.php'; ?>" method="POST" id="search_group_form">
+                               <div class="row">
+                                       <label for="search_groups"><?php echo _AT('search'); ?></label>
+                                       <input type="text" size="45" name="search_groups_<?php echo $rand;?>" id="search_groups" value="<?php echo $last_search; ?>" onkeyup="showResults(this.value, 'livesearch', '<?php echo AT_SOCIAL_BASENAME; ?>groups/search.php')"/>
+                                       <input type="hidden" name="rand_key" value="<?php echo $rand;?>"/>
+                                       <input class="button" type="submit" name="search" value="<?php echo _AT('search'); ?>" />
+                                       <div id="livesearch"></div>
+                               </div>
+                               <div class="row"><a href="<?php echo AT_SOCIAL_BASENAME.'groups/search.php?search_groups_'.$rand.'='.$last_search.SEP.'rand_key='.$rand; ?>"><?php echo _AT('browse_all');?></a></div>
+                       </form>         
+               </div>          
+       </div>
+</div>
+<div>
+       <div>
+       <h3><?php echo _AT('create_group'); ?></h3>
+               <p><?php echo _AT('create_group_blurb');  ?></p>
+               <span><a href="<?php echo AT_SOCIAL_BASENAME; ?>groups/create.php"><?php echo _AT('create_group'); ?></a></span><br />
+       </div>
+</div>
+<div style="clear:both;"></div>
+</div>
diff --git a/docs/themes/simplified-desktop/social/sprofile.tmpl.php b/docs/themes/simplified-desktop/social/sprofile.tmpl.php
new file mode 100644 (file)
index 0000000..1940e2c
--- /dev/null
@@ -0,0 +1,320 @@
+<?php
+//Profile template for social
+?>
+
+<div  class="social-wrapper">
+       <div><h3><?php echo printSocialName($this->profile['member_id'], false); ?></h3></div>
+       <div class="social-left">               
+               <div class="row">
+                       <h4 class="profile"><?php echo _AT('profile'); ?></h4>
+                               <?php if ($this->scope=='owner'): ?>
+                               <a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME."edit_profile.php");?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME;?>images/edit_profile.gif" alt="<?php echo _AT('edit_profile'); ?>" id="profile" title="<?php echo _AT('edit_profile'); ?>" border="0"/></a>
+                               <?php endif; ?>
+               </div>
+               <div class="contentbox">
+               <div class="row">
+               <?php 
+               //TODO: include this in the printSocialProfileImg function itself
+               if (profile_image_exists($this->profile['member_id'])): ?>
+                       <a href="get_profile_img.php?id=<?php echo $this->profile['member_id'].SEP ;?>size=o"><?php echo printSocialProfileImg($this->profile['member_id'], 2, false); ?>
+               <?php else: ?>
+                       <?php echo printSocialProfileImg($this->profile['member_id'], 2, false); ?>
+               <?php endif; ?>
+               <a href="inbox/send_message.php?id=<?php echo $this->profile['member_id']; ?>"><?php echo _AT('send_message'); ?></a>
+               
+               </div>
+
+               <?php         if($this->profile['occupation']){ ?>
+                       
+                       <dt><?php echo _AT('occupation'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->profile['occupation']); ?></dd>
+                       <?php }?>
+       
+                       
+                       <?php if($this->profile['expertise']){ ?>
+                       <dt><?php echo _AT('expertise'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->profile['expertise']); ?></dd>
+                       <?php }?>
+                       
+                       
+                       <?php if ($this->relationship==AT_SOCIAL_FRIENDS_VISIBILITY || $this->relationship==AT_SOCIAL_OWNER_VISIBILITY): ?>
+                       <?php if($this->profile['email']): ?>
+                       <dl>
+                       <dt><?php echo _AT('email'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->profile['email']); ?></dd>
+                       <?php endif; ?>
+                       <?php endif; ?>
+               
+                       <?php if($this->profile['gender']!='n'){ ?>
+                       <dt><?php echo _AT('gender'); ?></dt>
+                       <dd><?php echo $this->profile['gender']; ?></dd>
+                       <?php }?>
+               
+                       <?php if($this->profile['dob']!='0000-00-00'){ ?>
+                       <dt><?php echo _AT('dob'); ?></dt>
+                       <dd><?php echo $this->profile['dob']; ?></dd>
+                       <?php }?>
+               
+                       <?php if($this->profile['phone']){ ?>
+                       <dt><?php echo _AT('phone'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->profile['phone']); ?></dd>
+                       <?php }?>
+                       
+                       <?php if($this->profile['country']){ ?>
+                       <dt><?php echo _AT('country'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->profile['country']); ?></dd>
+                       <?php }?>
+                       
+                       <?php if($this->profile['postal']){ ?>
+                       <dt><?php echo _AT('street_address'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->profile['postal']); ?></dd>
+                       <?php }?>
+               
+                       <?php if($this->profile['interests']){ ?>
+                       <dt><?php echo _AT('interests'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->profile['interests']); ?></dd>
+                       <?php }?>
+                       
+                       <?php if($this->profile['associations']){ ?>
+                       <dt><?php echo _AT('associations'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->profile['associations']); ?></dd>
+                       <?php }?>
+               
+                       <?php if($this->profile['awards']){ ?>
+                       <dt><?php echo _AT('awards'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->profile['awards']); ?></dd>
+                       <?php }?>
+               
+                       <?php if($this->profile['others']){ ?>
+                       <dt><?php echo _AT('others'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->profile['others']); ?></dd>
+                       <?php }?>
+               
+                       <?php if($this->personal['per_weight']){ ?>
+                       <dt><?php echo _AT('per_weight'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->personal['per_weight']); ?></dd>
+                       <?php }?>
+               
+                       <?php if($this->personal['per_height']){ ?>
+                       <dt><?php echo _AT('per_height'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->personal['per_height']); ?></dd>
+                       <?php }?>
+               
+                       <?php if($this->personal['per_hair']){ ?>
+                       <dt><?php echo _AT('per_hair'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->personal['per_hair']); ?></dd>
+                       <?php }?>
+               
+                       <?php if($this->personal['per_eyes']){ ?>
+                       <dt><?php echo _AT('per_eyes'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->personal['per_eyes']); ?></dd>
+                       <?php }?>
+               
+                       <?php if($this->personal['per_ethnicity']){ ?>
+                       <dt><?php echo _AT('per_ethnicity'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->personal['per_ethnicity']); ?></dd>
+                       <?php }?>
+               
+                       <?php if($this->personal['per_languages']){ ?>
+                       <dt><?php echo _AT('per_languages'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->personal['per_languages']); ?></dd>
+                       <?php }?>
+               
+                       <?php if($this->personal['per_disabilities']){ ?>
+                       <dt><?php echo _AT('per_disabilities'); ?></dt>
+                       <dd><?php echo htmlentities_utf8($this->personal['per_disabilities']); ?></dd>
+                       <?php }?>
+               
+
+
+                       </dl>
+               </div>
+               <?php if (!empty($this->representation)){ ?>
+                       <br /><div  class="headingbox"><h4><?php echo _AT('representation'); ?></h4></div>
+                       <div class="contentbox" >
+
+                               <?php   foreach($this->representation as $row=>$value){  ?>
+                               <dl class="public-profile">
+                               <dt><?php echo _AT('name') . ':' ?></dt> <br /><dd> <?php echo htmlentities_utf8($value['rep_name']); ?></dd>
+
+                               <dt><?php echo _AT('title') . ': ' ?></dt> <br /><dd> <?php echo htmlentities_utf8($value['rep_title']); ?></dd>
+                               <dt><?php echo _AT('phone') . ':' ?></dt><br /> <dd> <?php echo htmlentities_utf8($value['rep_phone']);?></dd>
+                               <dt><?php echo _AT('email') . ': ' ?></dt><br /> <dd> <?php echo  htmlentities_utf8($value['rep_email']); ?></dd>       
+                               <dt><?php echo _AT('street_address') . ': ' ?></dt> <br /><dd> <?php echo htmlentities_utf8($value['rep_address']); ?></dd>
+                               </dl>
+                       
+                       <?php } ?>
+                       </div>
+                       <?php } ?>
+
+               <?php if (!empty($this->contact)){ ?>
+                       <br /><div  class="headingbox"><h4><?php echo _AT('alt_contact'); ?></h4></div>
+                       <div class="contentbox" >
+
+                               <?php   foreach($this->contact as $row=>$value){  ?>
+                               <dl class="public-profile">
+                               <dt><?php echo _AT('name') . ':' ?></dt> <br /><dd> <?php echo htmlentities_utf8($value['con_name']); ?></dd>
+                               <dt><?php echo _AT('phone') . ':' ?></dt> <br /><dd> <?php echo htmlentities_utf8($value['con_phone']);?></dd>
+                               <dt><?php echo _AT('email') . ': ' ?></dt><br /> <dd> <?php echo  htmlentities_utf8($value['con_email']); ?></dd>
+                               <dt><?php echo _AT('street_address') . ': ' ?></dt><br /> <dd> <?php echo htmlentities_utf8($value['con_address']); ?></dd>
+                               </dl>
+                       
+                       <?php } ?>
+                       </div>
+                       <br/>
+                       <?php } ?>
+
+
+
+       </div>
+
+       <div class="social-right">      
+               <?php if (PrivacyController::validatePrivacy(AT_SOCIAL_PROFILE_EDUCATION, $this->relationship, $this->prefs)): ?>
+                       <?php if (!empty($this->education)){ ?>
+                       <div>
+                               <div class="headingbox"><h5><?php echo _AT('training_and_education'); ?></h5></div>
+                               <div class="contentbox">
+                               <table class="data static">     
+                                       <thead><tr>
+                                               <th> <?php echo _AT('institution'); ?></th>
+                                               <th> <?php echo _AT('degrees'); ?></th>
+                                               <th> <?php echo _AT('year'); ?></th>
+                                       </tr></thead>
+                                       <tbody>
+                                       <?php
+                                               foreach($this->education as $edu){
+                                                       echo '<tr><td>'.htmlentities_utf8($edu['university']).'</td>';
+                                                       echo '<td>'.htmlentities_utf8($edu['degree'].'/'.$edu['field']).'</td>';
+                                                       echo '<td>'.htmlentities_utf8($edu['from'].'-'.$edu['to']).'</td></tr>';
+                                               }                                                       
+                                       ?>
+                                       </tbody>
+                               </table>
+                               </div>
+                       </div><br/>
+                       <?php } ?>
+               <?php endif; ?>
+
+               <?php if (PrivacyController::validatePrivacy(AT_SOCIAL_PROFILE_POSITION, $this->relationship, $this->prefs)): ?>
+               
+                       <?php if (!empty($this->position)){ ?>
+                       <div>
+                               <div class="headingbox"><h5><?php echo _AT('credits_and_work_experience'); ?></h5></div>
+                               <div class="contentbox">
+                               <table class="data static">     
+                                       <thead><tr>
+                                               <th><?php echo _AT('company'); ?></th>
+                                               <th><?php echo _AT('position'); ?></th>
+                                               <th><?php echo _AT('year'); ?></th>
+                                       </tr></thead>
+                                       <tbody>
+                                       <?php
+                                               foreach($this->position as $pos){
+                                                       echo '<tr><td>'.htmlentities_utf8($pos['company']).'</td>';
+                                                       echo '<td>'.htmlentities_utf8($pos['title']).'</td>';
+                                                       echo '<td>'.htmlentities_utf8($pos['from'].'-'.$pos['to']).'</td></tr>';
+                                               }                                                       
+                                       ?>
+                                       </tbody>
+                               </table></div>
+                       </div><br/>
+                       <?php } ?>              
+               <?php endif; ?>
+
+               <?php if (PrivacyController::validatePrivacy(AT_SOCIAL_PROFILE_MEDIA, $this->relationship, $this->prefs)): ?>
+               <div>
+                       <?php if (!empty($this->websites)): ?>
+                       <div class="headingbox"><h5><?php echo _AT('websites'); ?></h5></div>
+                       <div class="contentbox">
+                       <table class="data static">     
+                               <thead><tr>
+                                       <th><?php echo _AT('site_name'); ?></th>
+                                       <th><?php echo _AT('url'); ?></th>
+                               </tr></thead>
+                               <tbody>
+                               <?php
+                                       foreach($this->websites as $sites){
+                                               $is_http = preg_match("/^http/", $sites['url']);
+                                               if ($is_http==0){
+                                                       $sites['url'] = 'http://' . $sites['url'];
+                                               }
+                                               echo '<tr><td>'.htmlentities_utf8($sites['site_name']).'</td>';
+                                               echo '<td><a href="'.$sites['url'].'" target="user_profile_site">'.$sites['url'].'</a></td></tr>';
+                                       }                                                       
+                               ?>
+                               </tbody>
+                       </table>
+                       </div><br/>
+                       <?php endif; ?>
+               </div>
+               <?php endif; ?>
+
+               <?php if (PrivacyController::validatePrivacy(AT_SOCIAL_PROFILE_STATUS_UPDATE, $this->relationship, $this->prefs)): ?>
+               <div class="headingbox">
+                       <h5><?php echo _AT('activities'); ?></h5></div>
+               <div class="contentbox" id="activity">
+                       <?php if(!empty($this->activities)): ?>
+                       <ul>
+                               <?php
+                                       foreach($this->activities as $id=>$activity):
+                                               /*
+                                                * harris @may 26, 2009
+                                                * Would be nice to use this, but we will have to change "has" to "have" for _AT('you')
+                                                *
+                                               if ($_SESSION['member_id']== $this->profile['member_id']){
+                                                       echo '<li>'._AT('you');
+                                                       echo ' '.$activity.' ';
+                                                       echo '<a href="'.url_rewrite(AT_SOCIAL_BASENAME.'sprofile.php?delete='.$id).'"><img src="'.$_base_href.AT_SOCIAL_BASENAME.'images/b_drop.png" alt="'._AT('remove').'" title="'._AT('remove').'" border="0" /></a></li>';
+                                               } else {
+                                                       echo '<li>'.printSocialName($this->profile['member_id']).' '.$activity.'</li>';
+                                               }
+                                               */
+                                ?>
+                                <li><?php echo $activity['created_date']. ' - '. printSocialName($activity['member_id']).' '. $activity['title']; ?></li>
+                               <?php endforeach; ?>
+                       </ul>
+                       <?php else: ?>
+                       <?php echo _AT('no_activities'); ?>
+                       <?php endif; ?>
+               </div><br />
+               <?php endif; ?>
+
+               <?php if (PrivacyController::validatePrivacy(AT_SOCIAL_PROFILE_CONNECTION, $this->relationship, $this->prefs)): ?>
+               <div class="headingbox">
+                       <h5><?php echo _AT('connections'); ?></h5>
+               </div>
+               <div class="contentbox">
+                       <?php if (sizeof($this->friends)>0):
+                                       foreach($this->friends as $friend_id): ?>                                                                                                       
+                               <div>
+                               <?php echo printSocialProfileImg($friend_id); ?><br/>
+                               <?php echo printSocialName($friend_id); ?>
+                               </div>
+                       <?php   endforeach;
+                               else: 
+                                       echo _AT('no_friends');
+                               endif; ?>
+               </div><br/>
+
+               <?php if (isset($this->mutual_friends)): ?>
+               <div class="headingbox">
+                       <h5><?php echo _AT('mutual_connections'); ?></h5>
+               </div>
+               <div class="contentbox">
+                       <?php foreach($this->mutual_friends as $friend_id): ?>
+                               <div>
+                               <?php echo printSocialProfileImg($friend_id); ?><br/>
+                               <?php echo printSocialName($friend_id); ?>
+                               </div>
+                       <?php endforeach; ?>
+               </div>
+               <?php endif; //this->mutual_friends != empty ?>
+       
+       <?php endif; ?>
+
+
+                       
+       </div>
+<div style="clear:both;"></div>
+</div>
+
diff --git a/docs/themes/simplified-desktop/social/tiny_applications.tmpl.php b/docs/themes/simplified-desktop/social/tiny_applications.tmpl.php
new file mode 100644 (file)
index 0000000..17472bb
--- /dev/null
@@ -0,0 +1,37 @@
+<!--  compressed with java -jar {$path}/yuicompressor-2.3.5.jar -o {$file}-min.js {$file}.js -->
+<script type="text/javascript"
+       src="<?php echo AT_SHINDIG_URL; ?>/gadgets/js/rpc.js?c=1"></script>
+<!-- header.inc.php has jscript/InfusionAll.js imported.  Jquery should be there with it
+<script type="text/javascript" src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/jquery-1.3.2.js"></script>
+-->
+<script type="text/javascript"
+       src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/prototype.js"></script>
+<script type="text/javascript" src="<?php echo AT_SOCIAL_BASENAME; ?>lib/js/container.js"></script>
+
+<?php  
+       foreach ($this->list_of_my_apps as $id=>$app_obj): 
+?>
+<div class="gadget_wrapper">
+<div class="headingbox">
+       <div style="float:right">
+               <a href="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>applications.php?app_id=<?php echo $app_obj->getId().SEP;?>delete=1"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" border="0" alt="<?php echo _AT('delete'); ?>" title="<?php echo _AT('delete'); ?>" style="float:right;" /></a>
+
+               <a href="<?php echo AT_SOCIAL_BASENAME.'applications.php?app_id='.$id.SEP.'settings=1'; ?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME;?>images/icon-settings.png" alt="<?php echo _AT('settings');?>" title="<?php echo _AT('settings');?>" border="0" style="float:right;" /></a>
+       </div>  
+       <h3><?php echo $app_obj->getAppLink($app_obj->getTitle(), $id); ?></h3>
+</div>
+<div class="contentbox" style="padding:0.5em;">
+<?php
+       //the name and id here in the iframe is used by the container.js to identify the caller.
+       //Simply, the id is used here to generate the $(this.f)
+       //Originally it was using the ModID, I changed it to appId.
+       //@harris
+?>
+       <iframe 
+       scrolling="<?php echo $app_obj->getScrolling(); ?>"
+       height="<?php echo $app_obj->getHeight();?>px" width="100%"
+       frameborder="0" src="<?php echo $app_obj->getIframeUrl($_REQUEST['id'], 'default', $_GET['appParams']);?>" class="gadgets-gadget"
+       name="remote_iframe_<?php echo $app_obj->getId(); ?>"
+       id="remote_iframe_<?php echo $app_obj->getId(); ?>"></iframe>   
+</div></div><br />
+<?php endforeach; ?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/social/tiny_sgroups.tmpl.php b/docs/themes/simplified-desktop/social/tiny_sgroups.tmpl.php
new file mode 100644 (file)
index 0000000..ec712db
--- /dev/null
@@ -0,0 +1,36 @@
+       <div class="headingbox"><h3><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'groups/index.php'); ?>"><?php echo _AT('my_groups'); ?></a></h3></div>
+       <div class="contentbox">
+               <?php foreach ($this->my_groups as $i=>$grp): 
+                       $grp_obj = new SocialGroup($grp);
+
+               ?>
+               <div class="contact_mini">
+                       <?php if ($grp_obj->getUser() == $_SESSION['member_id']): ?>
+                               <div style="float:right;margin:1em;"><a href="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>groups/edit.php?id=<?php echo $grp;?>"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/icon-settings.png" alt="<?php echo _AT('settings'); ?>" title="<?php echo _AT('settings'); ?>" border="0"/></a></div>
+                       <?php endif; ?>
+                       <?php if ($grp_obj->getUser() != $_SESSION['member_id']): ?>
+                               <div style="float:right;margin:1em;"><a href="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>groups/view.php?id=<?php echo $grp.SEP;?>remove=1"><img src="<?php echo $_base_href.AT_SOCIAL_BASENAME; ?>images/b_drop.png" alt="<?php echo _AT('delete'); ?>" title="<?php echo _AT('leave_group'); ?>" border="0"/></a></div>
+                       <?php endif; ?>
+
+
+
+                       <div class="box">
+                               <div style="float:left;">
+                               <?php echo $grp_obj->getLogo(); ?>
+                               
+                               </div>
+                               <div style="float:left; padding-left:0.5em;">
+                               <h4><a href="<?php echo url_rewrite(AT_SOCIAL_BASENAME.'groups/view.php?id='.$grp);?>"><?php echo $grp_obj->getName(); ?></a></h4><br/>
+                                       <?php echo _AT('group_type') .': '. $grp_obj->getGroupType();?><br/>
+                                       <?php echo _AT('access') .': '. ($grp_obj->getPrivacy()?_AT('private'):_AT('public'))?><br/>
+                                       <?php echo _AT('description') .': <br/>'. $grp_obj->getDescription();?><br/>
+                               </div>
+                               <div style="clear:both;"></div>
+                       </div><br />
+               </div>
+               <?php endforeach; ?>
+               <?php           
+               if(!$grp){ 
+                       echo _AT('no_groups_yet');
+                } ?>
+       </div>
diff --git a/docs/themes/simplified-desktop/tablet.css b/docs/themes/simplified-desktop/tablet.css
new file mode 100644 (file)
index 0000000..8366716
--- /dev/null
@@ -0,0 +1,2463 @@
+
+/************************************************************************************************/
+/* Style is optimized for tablets. Note that -webkit  and -moz properties create errors in the CSS validator. 
+Relative units for sizes are used unless it is a border. Classes beginning with ".fl-" override Mobile FSS,
+see the API @ http://wiki.fluidproject.org/display/fluid/Mobile+FSS+API  */
+/************************************************************************************************/
+
+
+html, body{
+       height: 100%;
+}
+               
+#main{
+       overflow-x: visible;
+}
+
+body,ul,li {
+       padding:0;
+       margin:0;
+       font-size: 18px;/*fix*/
+}
+
+
+#header{
+       width:100%;
+       line-height:1em;
+       padding-top: 158;
+       font-size:1.063em;
+       height: 3.2em;
+       background: #999; /*fallback*/
+       background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#999), to(black));
+       background: -moz-linear-gradient(#999, black);
+}
+
+
+.fl-theme-iphone .fl-navbar{
+       border: none;
+       border-top: none;
+       
+}
+
+.fl-navbar a{
+       font-size: 0.969em;
+}
+.fl-navbar .fl-tabs{
+       padding-top: .3em;
+       padding-bottom: .3em;
+       border-top: 1px solid black;
+       border-bottom: .5px solid black;
+       background-color: #4b6b90; 
+    height: 2em;   
+    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#999), to(black));
+    background: -moz-linear-gradient(#999, black);
+}
+
+#navigation-contentwrapper{
+       position: relative;
+       height: 2.5em; /*requires a height, do not remove */    
+       top: 1em;
+       
+}
+
+#contentwrapper{
+       margin-bottom: 3em;
+       padding: .313em;
+}
+#wrapper{
+       width:100%;
+       overflow: auto;
+       min-height: 100%;
+       background-image: url(images/idi_background.png);
+
+
+       
+}
+#header-section-title {
+       width: 100%;
+       position: relative;
+       color: white;
+       font-size: 0.938em;
+       height: .3em;
+       
+}
+
+#site-name, h1#section-title{
+       width: 100%;
+       color: white;
+       text-shadow: none;
+       
+}
+
+/************************************************************************************************/
+/* "Navigation" button, also this CSS creates a button that looks exactly like a Mobile FSS tab.*/
+/************************************************************************************************/
+
+
+.navigation-bar-button-content{
+       border-width:5px;
+    -webkit-border-radius: 5px;
+    -moz-border-radius: 5px;
+       border-radius: 5px;
+       font-size: 18px;/*keep this in px*/
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+       -webkit-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+       -moz-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -webkit-border-left-image: none;
+    -moz-border-left-image: none;
+    -webkit-background-origin: border;
+    -moz-background-origin: border;
+    -webkit-background-clip: border;
+       -moz-background-clip: border;
+}
+
+.fl-theme-iphone .topnavlistcontainer .topnavlist-link {/*makes the navigation button link white*/
+       color: white;
+       text-decoration: none;
+       font-weight: bold;
+}
+
+.fl-theme-iphone .topnavlistcontainer .topnavlist-link-highlight{/*makes the navigation button link highlight*/
+       color: #4c96f4;
+       text-decoration: none;
+       font-weight: bold;
+}
+
+.fl-theme-iphone .fl-tabs li{
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    ); 
+}
+/************************************************************************************************/
+/*fl-tabs for the "home" and "guide" and sequence links*/
+/************************************************************************************************/
+#home-guide{
+       padding-top: 0;
+       margin-top: 0;
+       padding-right: .313em;
+       position: relative;
+       left: 0em;
+       float: left;    
+       top: 0;
+}
+
+
+ul.home-guide li a:hover, ul.home-guide li a:focus, ul.home-guide li a:active,
+ul.home-guide li.back a:hover, ul.home-guide li.back a:focus, ul.home-guide li.back a:active,
+ul.home-guide li.forward a:hover, ul.home-guide li.forward a:focus, ul.home-guide li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+/************************************************************************************************/
+/* main body attributes */
+/************************************************************************************************/
+p {
+    text-align: left;
+    line-height: 150%;
+       font-size: 1em;
+       padding:.75em 0;
+       margin: 0 auto;
+}
+
+p a {
+    text-decoration: underline;
+}
+
+p a:visited {
+       color: #005689;
+       color: #4c96f4;
+    background-color: transparent;
+}
+p a:active {
+       color: #005689;
+       color: #4c96f4;
+    background-color: transparent;
+}
+
+
+h1, h2, h3, h4, h5, h6 {
+    color: #4C566C;
+    clear: right;
+    font: 100% Helvetica, Arial, sans-serif;
+       font-weight: bold;
+    margin: 0;
+       padding: 0;
+}
+
+h1 {
+  font-size: 160%;
+       color: #FFF;
+}
+h2 {
+    font-size: 150%;
+}
+h2.page-title{
+       padding-top: .313em;
+}
+
+
+#subnavbacktopage{
+       padding: .313em;
+       float: left;
+       
+}
+
+h3 {
+       padding: 0;
+}
+h3.browse-courses{
+       font-size: 90%;
+       text-decoration: none;
+       clear: none;
+       display: inline;
+}
+
+
+h3 a {
+    font-size: 100%;
+}
+/************************************************************************************************/
+/* Highlighting outside of the header and footer */
+/************************************************************************************************/
+link highlighting -- add when the header and footer is done 
+.fl-theme-iphone a:not(.fl-tabs){
+        color: #4c96f4;
+}
+
+/************************************************************************************************/
+/* Preferences tabs */
+/************************************************************************************************/
+.etabbed-list-container        {
+       padding:0;
+       margin: 0;
+       width:70%;
+       clear: left;
+       height: 3em;
+}
+
+.prefs_buttontab {
+       padding:0;
+       margin: 0;
+       white-space: nowrap;
+}
+.prefs_tab{
+       padding:0.5em 0.3em 0;
+       margin: 0;
+       white-space: nowrap;
+    display: inline;
+}
+
+.prefs_tab_selected{  
+       padding:0.7em 0.3em 0;
+       margin: 0;
+       margin: 0;
+       font-weight:bold;
+       text-align:center;
+       white-space: nowrap;
+    display: inline;
+}
+
+/************************************************************************************************/
+/* link attributes */
+/************************************************************************************************/
+
+/* link attributes */
+a:link {
+       color: #4C96F4;
+       color: #005689;
+       text-decoration: underline;
+}
+a:hover, a:visited, a:focus {
+       color: #4C96F4;
+       text-decoration: underline;
+}
+.fl-list-menu a, .fl-list-menu a:visited{ /*may need to be removed when FLUID-4313 is fixed*/
+       color: black;
+}
+
+/* main submit button */
+.button {
+       background-color: #808080;
+       color: black;
+       text-align: center;
+       -webkit-border-radius:3px;
+       -moz-border-radius:3px;
+       border-radius: 3px;
+       padding-top: 0.313em;
+       padding-bottom: 0.313em;
+}
+
+
+
+.button:focus {
+       border:1px solid #A50707;
+       background-color:  #FFDAB9;     
+}
+/* small submit button at top */
+.button2 {
+       font-family: Helvetica,sans-serif;
+       background-color: #E9F4F3;
+
+}
+.button2:focus {
+       background-color: #E9F4F3;
+       border:  #ACCFCC  solid 1px;
+}
+
+/* Editor box large */
+.editorlargebox {
+       font-family: Helvetica,sans-serif;
+       background-color: #E9F4F3;
+       margin-left:1em;
+       padding-left: .2em;
+       padding-right: .5em;
+       padding-top: .5em;
+       padding-bottom: .4em;
+       border: 1px #ACCFCC solid;
+}
+
+/* edit content tabs */
+.buttontab {
+       background-color: #E6E6E6;
+       font-weight: 500;
+       border:0;
+       padding-left: .188em;
+       padding-right: .188em;
+       padding-top: .188em;
+
+}
+
+.tab {
+       color: black;
+       background-color: #E6E6E6;
+       border-top: 1px #B8AE9C solid;
+       border-left: 1px #B8AE9C solid;
+       border-right: 1px #B8AE9C solid;
+       text-decoration: none;
+       text-align: center;
+       font-weight: bold;
+
+       
+}
+.buttontab selected {
+       font-family: Helvetica, Arial, Helvetica, sans-serif;
+       background-color: #6F7172;
+       font-weight: 600;
+       border:0;
+       padding-left: .188em;
+       padding-right: .188em;
+       padding-top: .188em;
+
+}
+td.selected{
+       font-family: Helvetica, Arial, Helvetica, sans-serif;
+       font-weight: 600;
+       text-decoration: none;
+       text-align: center;
+       background-color: white;
+       border-top: 1px #B8AE9C solid;
+       border-left: 1px #B8AE9C solid;
+       border-right: 1px #B8AE9C solid;
+}
+
+.tab a:link, .etab a:visited {
+       color: #4C566C;
+       background-color: white;
+}
+
+/* the side menu */
+td.dropdown-heading {
+       background-color: #DBFDD4;
+       color: #595241;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-top: 1px solid #ECFEEA;
+}
+
+/* the side menu content */
+td.dropdown {
+       padding: 0.125em;
+       background-color: white;
+       color: black;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-bottom: 1px solid #ECFEEA;
+       font-weight: normal;
+}
+td.dropdown a, td.dropdown a:visited  {
+       color: #4C566C;
+       text-decoration: none;
+}
+td.dropdown a:hover {
+       color: #595241;
+       text-decoration: underline;
+}
+
+/* added for 1.4.2: */
+.results {
+       padding-left: 1.25em;
+}
+
+h5.search-results {
+       padding: 0.063em;
+       margin-bottom: 0.313em;
+       margin-top: 1em;
+       padding-top: 3em;
+       margin-left: 0.313em;
+}
+
+.test-box {
+       background-color: #F7F3ED;
+       color: #595241;
+       border-left: 1px solid #595241;
+       border-right: 1px solid #595241;
+       border-top: 1px solid #595241;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+/*preferences*/
+
+.input-form table.tabbed-table {
+       width: 100%;
+       border:thin black solid;
+}
+table.tabbed-table th#left-empty-tab {
+       background-color: transparent;
+       width: 0.938em;
+       border-bottom: 1px solid #B8AE9C;
+}
+table.tabbed-table th#right-empty-tab {
+       text-align: right;
+       background-color: transparent;
+       border-bottom: 1px solid #B8AE9C;
+       width: 25em;
+       padding-right: 0.313em;
+}
+table.tabbed-table th#right-empty-tab a {
+       text-decoration: underline;
+}
+table.tabbed-table th.tab-spacer {
+       background-color: transparent;
+       width: 0.313em;
+       border-bottom: 1px solid #B8AE9C;
+}
+
+table.tabbed-table th.tab {
+       padding-top: 0.125em;
+       padding-bottom: 0.125em;
+       width: 6.875em;
+       background-color: #E9F4F3;
+       border-bottom: 1px solid #B8AE9C;
+       border-left: 1px solid #B8AE9C;
+       border-top: 1px solid #B8AE9C;
+       border-right: 1px solid #B8AE9C;
+}
+table.tabbed-table th.tab:hover {
+       background-color: #ACCFCC;
+}
+
+table.tabbed-table th.tab a:focus {
+       color: white;
+}
+table.tabbed-table th.selected {
+       padding-top: 0.125em;
+       padding-bottom: 0.125em;
+       width: 6.875em;
+       background-color: #ACCFCC;
+       border-left: 1px solid #B8AE9C;
+       border-top: 1px solid #B8AE9C;
+       border-right: 1px solid #B8AE9C;
+}
+
+table.tabbed-table a, table.tabbed-table a:visited, table.tabbed-table a:hover {
+       /* color: black;*/
+       color: #4C566C;
+       text-decoration: none;
+}
+
+
+.preference-buttons-container{
+       background-color: red;
+       height: 2.5em;
+       width: 100%;
+       text-align: center;
+}
+
+div.preference-buttons-container li{
+       display: inline; 
+       float: right;
+}
+
+.prefs_tab_selected{
+       font-style: italic;
+       width: 10%;
+}
+.prefs_tab{
+       width: 10%;
+}
+
+.etabbed-table{
+       margin: 0 auto;
+}
+#previewText{
+       font-family: monospace;
+       border: 2px solid rgb(0, 0, 0); 
+       padding: 2em;
+       width: 80%; 
+       color: rgb(255, 255, 255);
+       background-color: rgb(0, 0, 0);
+}
+#previewArea{;
+       padding: 0em;
+       border-bottom-width: 0; 
+       margin-left: auto; 
+       margin-right: auto; 
+       font-weight: normal; 
+       width: 70%;
+       float:left;
+       clear:right;
+}
+#display-settings-preview{
+       width:90%;
+       height:20em; 
+       margin: 0 auto;
+}
+#feedback{
+       width: 90%;
+}
+#defaultfontsize-wrapper{
+       width:90%; 
+}
+
+/* end of preferences */
+
+a#my-start-page {
+       padding: 0.125em;
+       padding-left:  0.938em;
+       background-repeat: no-repeat;
+       background-position: 0.125em 0.313em;
+}
+
+a#back-to {
+       padding-left: 1.25em;
+       background-image: url(images/back.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0;
+}
+
+
+#breadcrumbs-container{
+       background-color: #4d4d4d;
+       position: relative;
+}
+
+#breadcrumbs{
+font-size: 80%;
+    margin-top: .7em;
+text-align: left;
+}
+h1 {
+       margin-bottom: 0.313em; 
+}
+
+
+div#help {
+       border-left: 1px solid black;
+       border-right: 1px solid black;
+       border-bottom: 1px solid black;
+       padding-left: 0.313em;
+       padding-right: 0.313em;
+       padding-bottom: 0.313em;
+       background-color: #F7F3ED;
+       margin-left: 0.313em;
+       margin-right: 0.313em;
+       font-size: small;
+}
+
+h3#help-title {
+       margin-left: 0.313em;
+       margin-right: 0.313em;
+       border-left: 1px solid black;
+       border-right: 1px solid black;
+       padding: 0.063em;
+       background-color: #F7F3ED;
+}
+.line {
+       border-bottom: 1px solid black;
+}
+div#help p {
+       padding: 0;
+       margin: 0;
+}
+
+div#toctoggle {
+       float: left;
+       padding-left: 0.625em;
+}
+
+h1#section-title {
+       font-size: 100%;
+       position: absolute;
+       top: 0em;
+       text-align: center;
+       white-space:nowrap;
+       display: inline;
+       
+}
+
+/**********************************************************************/
+/*FOOTER*/
+/**********************************************************************/
+
+#footer{
+       background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#999), to(black));
+       background: -moz-linear-gradient(#999, black);
+       height:2.3em;
+       margin-top: -2.3em;
+       position: relative;
+       clear: both;
+       
+}
+div#footer-links{
+       margin: 0 auto;
+       font-size: .938em;
+}
+
+ul.footer-links-tabs li a:hover, ul.footer-links-tabs li a:focus, ul.footer-links-tabs li a:active,
+ul.footer-links-tabs li.back a:hover, ul.footer-links-tabs li.back a:focus, ul.footer-links-tabs li.back a:active,
+ul.footer-links-tabs li.forward a:hover, ul.footer-links-tabs li.forward a:focus, ul.footer-links-tabs li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+
+div#footer-links a:link, div#footer-links a:visited {
+       text-decoration:none;
+}
+
+#jumpmenu:focus{
+       background-color:#F6EAD6;
+}
+#jumpmenu{
+       margin: 0 auto;
+}
+
+a#editor-link {
+       background-color: #F7F3ED;
+       padding-top: 0.063em;
+       padding-bottom: 0.063em;
+       padding-left:  0.938em;
+       padding-right: 0.5em;
+       border: 1px solid #cccccc;
+       font-weight: normal;
+       text-decoration: none;
+}
+
+a#editor-link:hover {
+       background-color: #F7F3ED;
+       border: 1px solid #B8AE9C;
+}
+
+a#editor-link.off {
+       background-image: url(images/pen.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0.125em;
+}
+a#editor-link.on {
+       background-image: url(images/pen2.gif);
+       background-repeat: no-repeat;
+       background-position: 0 0.125em;
+}
+
+
+/* for data tables */
+.table-surround {
+       border: #A9ADB0 1px solid;
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
+       
+}
+
+table.data {
+       margin:0;
+       width:100%;
+       padding: 0;
+       color: #4C566C;
+       font-size: .8em;
+       text-align: left;
+       background-color: transparent;
+} 
+/* contains the headings */
+table.data th {
+
+       padding: 0.188em;
+}
+
+table.data th a {
+       color: #595241;
+       background-image: url('../default/images/sort.gif');
+       background-repeat: no-repeat;
+       background-position: right;
+}
+
+/*headings text*/
+table.data tbody th {
+       text-align: left;
+
+}
+
+table.data td {
+       padding: 0.188em;
+       color: black;
+       font-size: .875em;
+       font-style: normal;
+}
+table.data td a:link, a:visited{
+       /*color: black;*/
+       color: #4C566C
+}
+
+/*should table.data tbody tr:hover  and table.data tbody tr.selected  highlighting
+be improved to sync with Mobile FSS highlighting */
+table.data tbody tr:hover {
+       background-color: #efefef;
+       cursor: pointer;
+}
+
+table.data tbody tr.selected {
+       background-color: #E9F4F3;
+       cursor: auto;
+       border: 5px solid #E9F4F3;
+}
+
+table.data tfoot {
+       background-color: #F7F3ED;
+}
+
+table.data tfoot tr:first-child td {
+       padding: 0.313em;
+       background-image: url('images/arrow_ltr.gif');
+       background-repeat: no-repeat;
+       background-position: .25em 0.313em;
+}
+
+table.data.static tfoot td, table.data.static tfoot tr:first-child td {
+       padding: 0.313em;
+       background-image: none;
+       padding-left: 0;
+
+}
+/* add borders to row in Required Information, Personal Information*/
+.row{
+       padding:.375em 0;
+       font-size: 0.938em;
+}
+#last-row, .row-buttons, #last-row1, .row-blurb{
+       border: none;
+}
+#browse-courses-table{
+       font-size: .875em;
+}
+
+
+/*buttons*/
+table.data tfoot input {
+       background-color: #efefef;
+       font-weight: normal;
+}
+table.data tfoot input:focus {
+       background-color: #FFDAB9;
+}
+
+
+/* used for static tables with no form elements: */
+table.data.static tbody tr:hover {
+       background-color: transparent;
+       cursor: auto;
+}
+
+/* course browser: */
+div#browse {
+       margin-left: auto; 
+       margin-right: auto; 
+       width: 80%;
+}
+
+div.browse-selected {
+       background-image: url('images/side_arrow.gif'); 
+       background-repeat: no-repeat; 
+       padding-left: 0.563em; 
+       background-position: center left;
+}
+
+div.browse-unselected {
+       padding-left: 0.563em; 
+}
+
+ul.browse-list {
+       list-style: none;
+       padding:0;
+}
+
+/* feedback /errors */
+div#error {
+       width: 89%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #DD0000;
+       padding: 0.313em;
+       background-color: #F4DCDC;
+       color: #A50707;
+       background-color: #F4DCDC;
+       padding-left: 1.563em;
+       font-weight: bold;
+       -webkit-border-radius:5px;
+       -moz-border-radius: 5px;
+       -border-radius: 5px;
+}
+div#error h4 {
+       color: black;
+       margin-left: 0;
+}
+
+div#error ul, div#feedback ul, div#help ul {
+       position: relative;
+       list-style: none;
+       margin-left: 0;
+       padding-left: 0;
+}
+
+div#error ul li{
+       margin-top: 0.313em;
+}
+
+div#feedback, div#info {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top: 0.313em;
+       margin-bottom: 0.313em;
+       padding: 0.313em;
+       font-family: Helvetica, Arial, sans-serif;
+       -webkit-border-radius:5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+       border: 1px solid #17B506;
+       background-color: #E7EFD0;
+       color: #3f4559;
+       font-size: 90%;
+       z-index: -1;
+}
+div#feedback li, div#info li, div#error li{
+       color: #4C566C;
+}
+
+div#help {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #ACCFCC;
+       padding: 0.313em;
+       background-color: #E9F4F3;
+       color: #024C41;
+}
+
+div#warning {
+       width: 95%;
+       margin-left: auto;
+       margin-right: auto;
+       margin-top:  0.938em;
+       margin-bottom:  0.938em;
+       border: 1px solid #FF8400;
+       padding: 0.313em;
+       background-color: #FFF6ED;
+       color: #D95900;
+       font-weight: bold;
+}
+acronym {
+       cursor: help;
+}
+
+div.news p {
+       margin: 0;
+       padding:0;
+}
+div.news span.date {
+       font-family:Helevetica, Arial, sans-serif;
+       color: #4C566C; 
+       font-size: .5em;
+}
+
+.news{
+       padding: 0;
+       margin-bottom: 1em;
+       margin-top: 1em;
+}
+/* home page links */
+div.home-link {
+       padding: 0.125em;
+       float: left;
+       text-align: center;
+       margin: 0.125em;
+       width: 7.5em;
+       height: 5.625em;
+}
+div.home-link:hover {
+       padding: 0.063em;
+       background-color: #F7F3ED;
+       border: 1px solid #afafaf;
+       float: left;
+       text-align: center;
+       margin: 0.125em;
+}
+div.home-link a {
+       text-decoration: none;
+       font-weight: bold;
+}
+
+div.home-link img {
+       border: 0;
+}
+
+div.dropdown {
+       width: 12.5em;
+       padding: 0.125em;
+       background-color: white;
+       color: black;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-bottom: 1px solid #ECFEEA;
+       font-weight: normal;
+}
+
+div.dropdown-heading {
+       background-color: #ACCFCC;
+       color: #595241;
+       border-left: 1px solid #ECFEEA;
+       border-right: 1px solid #ECFEEA;
+       border-top: 1px solid #ECFEEA;
+       font-weight: bold;
+       padding: 0.125em;
+}
+
+div.required {
+       font-weight: bold;
+       color: red;
+       font-size: large;
+       float: left;
+       position: relative;
+       margin-top: -0.313em;
+       height:  0.938em;
+       padding-right: 0.125em;
+}
+
+div#content_text {
+       margin-left: 0.313em;
+}
+
+#content, #content-tablet{
+       padding-top: .313em;
+       z-index: 1000;
+       background-color: white;
+}
+form {
+       display:inline;
+       max-width: 100%;
+}
+
+/* paging*/
+div.paging {
+       margin-top: 1em;
+       text-align: center;
+
+
+}
+div.paging ul {
+    list-style: none;
+    display: inline;
+    padding: 0;
+       max-width: 10%;
+       margin-bottom: 1em;
+}
+div.paging li { 
+       display: inline; 
+       padding-left: 0.125em; 
+       padding-right: 0.125em;
+       padding-top: 0;
+       padding-bottom: 0;
+       width: 10%;
+}
+
+div.paging li a {
+       text-decoration: none;
+       padding-left: 0.25em;
+       padding-right: 0.25em;
+       color: black;
+}
+
+div.paging li a:hover, div.paging li a.current, #show-all a:active, #show-all a:focus, #show-all a:hover,
+#show-pages a:active, #show-pages a:focus, #show-pages a:hover   {
+   border: 1px solid #4c96f4;
+   color: white;
+   background-color: #4c96f4;
+   -webkit-border-radius: 3px;
+   -moz-border-radius: 3px;
+   border-radius: 3px;
+}
+#show-pages:active, #show-pages:focus, #show-pages:hover, #show-all:active, #show-all:focus, #show-all:hover{
+       background-color: #4c96f4;
+} 
+
+#tl_corner{
+
+       background-image:url(images/tl_corner.gif);
+       background-position: top left;
+       background-repeat: no-repeat;
+       padding:0;
+}
+
+div.tabs {
+       /* Navigational Plone Tabs(tm), implemented by customizing the a tag - they are surprisingly elegant. The power of CSS runs strong in these :) */
+    background-color: transparent;
+       border-collapse: collapse;
+       border-bottom: 1px solid #B8AE9C;
+       padding: 0.5em 0em 0em 2em;
+       white-space: nowrap;
+}
+
+div.tabs a {
+    /* The normal, unselected tabs. They are all links */
+    background-color: transparent;
+    border-color: #B8AE9C;
+    border-width: 1px; 
+    border-style: solid solid none solid;
+    color: #595241;
+    height: 1.2em;
+    margin-right: 0.5em;
+    padding: 0em 2em 0em;
+    
+}
+
+div.tabs a.selected {
+    /* The selected tab. There's only one of this */
+    background-color: white;
+    border-bottom: #B8AE9C 1px solid;
+    color: #595241;
+    font-weight: normal;
+}
+
+div.tabs a:hover, div.tabs a.active {
+    background-color: #B8AE9C;
+    border-bottom: 1px solid #B8AE9C;
+    color: white;
+}
+
+.headingbox a{
+       color: #4C566C;
+}
+.headingbox a:link, .headingbox a:visited{
+       text-decoration: none;
+}
+div.box {
+}
+h4.box {
+       background-color: #F5F5F5;
+       padding: .313em; 
+}
+h4.box a {
+       display: block;
+       color: #4C566C;
+       background-color: #F5F5F5;
+       text-decoration: none;
+}
+div.box {
+       padding: 0.313em;
+       background-color: #F5F5F5;
+       color: black;
+       border: 1px solid #B8AE9C;
+       font-size:0.85em;
+       font-weight: normal;
+       padding:0.125em;
+}
+
+h5.box { 
+    background-color: #6F7172;
+    border: 1px solid #B8AE9C;
+    border-style: solid solid none solid;
+    color: Black;
+    padding: 0em 1em 0em 1em;
+    display: inline;
+       font-size:  1em;
+    height: 1em;
+}
+
+div.box a:link {
+       text-decoration: none;
+}
+
+div.box a:visited {
+       color: #2A6C28;
+       text-decoration: none;
+}
+
+div.box a:hover {
+       text-decoration: underline;
+}
+
+.boxDetails {
+    text-align: right;
+}
+
+div.box .content {
+    padding: 1em;
+       font-size:  1em;
+}
+
+div.box a.close {
+    float: right;
+    text-transform: none;
+    border-left: 1pt solid #B8AE9C;
+    padding: 0em 0.2em;
+}
+
+div.box h1, div.box h2, div.box h3, div.box h4 {
+    margin: 0;
+    padding: 0;
+}
+
+div.box .even {
+    background-color: #F7F3ED;
+}
+
+div.box .odd {
+    background-color: transparent;
+}
+
+
+/* users/index.php */
+div.course {
+       position: relative;
+       width: 12.5em;
+       height: 10.5em;
+       border: rgb(204, 204, 204) 1px solid;
+       background-color: #F7F7F7;
+       float: left;
+       margin: 0.188em;
+       padding: 0.313em;
+}
+
+div.course.break {
+       clear: left;
+}
+
+div.course h2 {
+       border: 0;
+       font-weight: normal;
+       font-size: large;
+
+}
+
+div.course:hover {
+       background-color:#FBF4E9;
+       border: #B8AE9C 1px solid;
+}
+
+
+table.data .odd img.headicon{
+       width: 2.469em;
+       height: 2.469em; 
+       -webkit-border-radius:5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+}
+
+.icon{
+       -webkit-border-radius:10px;
+       -moz-border-radius: 10px;
+       border-radius: 10px;
+       border-color: white;
+       width: 2.5em;
+       height: 2.5em;
+       float: left;
+}
+div.course div.shortcuts {
+       text-align: right;
+       clear: left;
+       vertical-align: middle;
+       width: 12.5em;
+}
+
+fieldset#shortcuts {
+       float: right;
+       background-color: #FEFDEF;
+       border: 1pt solid #B8AE9C;
+       margin: -5pt 5pt 5pt 5pt;
+       padding-right: 10pt;
+       padding-bottom: 5pt;
+       padding-left: 10pt;
+}
+
+fieldset {
+       margin-bottom: 10pt;
+       -webkit-border-radius:5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+       padding: 0 0.375em;
+       width: 90%;
+       margin: 0 auto; 
+       width:95%;
+       margin:0 auto;
+       border:thin #A9ADB0 solid;
+       margin-bottom: 1em;
+
+}
+#shortcuts legend {
+}
+#shortcuts ul {
+       position: relative;
+       margin-top: 0pt;
+       margin-bottom: 0pt;
+       margin-left: 0pt;
+       list-style-type:  none;
+       padding-left: 0pt; 
+}
+
+/*a#guide,*/ a#my-courses-link {
+       background-color: #6D84A2;
+}
+
+#guide img{
+       border:none;
+}
+
+div#content-test, div.content-from-module {    
+       float: left;
+       margin-top: 2em;
+       margin-bottom: 2em;
+       padding-right: 5pt;
+       width: 80%;
+}
+
+div#container {
+       text-align: left;
+       margin: 0 auto;
+       padding: 0;
+       border:0;
+       width: 95%;
+}
+
+/* index page */
+ul#home-links, ul#home-detail-links {
+       list-style: none;
+}
+
+/*my start page */
+#my_courses_container{
+       text-align: left;
+       margin: 0 auto;
+       border:0;       
+       min-width: 100%;        
+}
+
+.my-courses-list{
+       border: solid 1px #A9ADB0;
+       -webkit-border-radius:5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+       padding: .313em;
+       margin: .313em;
+       padding: .313em;
+       background-color: white;
+}
+.my-courses-list a{
+       color: black;
+       text-decoration: none;
+
+}
+
+.my-courses-list-ul{
+       margin: 0 auto;
+       padding-left: 0;
+       width: 100%;
+}
+.my-courses-links{
+       font-size: 80%;
+       padding-top: .75em;
+}
+.my-courses-resume{
+       float: right;
+}
+.fl-link-summary{
+       padding-left: 0.875em;
+       padding-bottom: 0.875em;
+       display: inline;
+}
+
+.fl-theme-iphone [class*="fl-list"] > li .fl-link-summary{
+       color: #4C566C;
+}
+.current_head{
+       padding-top: .5em;
+}
+.current_box{
+       max-width: 100%;
+}
+.current_list{
+       width: 95%;
+       padding: 0.375em;
+}
+.current_list li{
+       list-style-type: none;
+       font-style: bold;
+       padding-bottom: .5em;
+       padding-left: .5em;
+       margin:0;
+}
+.current_list li a:active, .current_list li a:focus, .current_list li a:hover{
+       color: white; 
+       background-color: #4C96F4;
+}
+
+.current_list_date_time{
+       font-size: 65%;
+}
+#show-all, #show-pages{
+       -webkit-border-radius: 8px; 
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+       padding: .5em;
+       border: solid 1px #A9ADB0;
+       background-color: white;
+       
+       
+}
+#show-all{
+       
+}
+#show-all a, #show-pages a{
+    color: black;
+    padding-left: 0.25em;
+    padding-right: 0.25em;
+    text-decoration: none;
+    display: block;
+}
+
+/* enrollment tabs */
+#navlist {
+       padding: 0;
+       margin-left: 0;
+       margin-right: auto;
+       margin-left: auto;
+       margin-bottom: .25em;
+       margin-top: 0.938em;
+       white-space: nowrap;
+}
+
+#navlist li {
+       list-style: none;
+       display: inline;
+       margin: 0;
+}
+
+#navlist li a {
+       padding: 0.188em 0.563em;
+       border: 1px solid #F7F3ED;
+       border-bottom: none;
+       background-color: #F7F3ED;
+       text-decoration: none;
+       margin-left: .25em;
+       white-space: nowrap;
+}
+
+#navlist li a:hover, #navlist li a:active {
+       color: #000;
+       background-color: #fff;
+}
+
+/* tree */
+.img-size-tree {
+       vertical-align: middle;
+       margin-top: 0;
+    padding:0;
+       height:1.45em;
+       width:1.5em;
+}
+/* profile page */
+dl#public-profile dt {
+       float: left;
+       width: 90%;
+       border-right: 1px solid #F7F3ED;
+       padding: 0.313em 0.313em 0.313em 0;
+
+       margin-right: 0.313em;
+}
+dl#public-profile dd {
+       margin: 0;
+}
+
+div.social-right{
+       margin-left:.5em;
+       margin-top: 1em;
+}
+div.social-left{
+       margin-left:.5em;
+}
+h4.profile{
+       float: left;
+}
+.social-wrapper h3{  
+       padding-top: .5em;
+}
+.my-contacts h3{
+       padding-bottom: .375em;
+}
+img#profile{
+       border: 1px #cccccc solid;
+       margin-left: 1em;
+}
+dd{
+    margin: 0;
+}
+
+/** forum stuff **/
+#forum-thread li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; float:left; width: 97%; list-style: none; }
+#forum-thread li.even { background-color: #F7F3ED; border-top: none; }
+#forum-thread li.odd { background-color: #fff; }
+div.forum-post-author { float:left; width:19.375em; padding:0.5em 0.625em; }
+div.forum-post-author a.title {font-size: 1.1em; line-height: 1.2em; font-weight: bold; text-decoration:none; }        
+div.forum-post-author img.profile-picture { border: 2px solid #F7F3ED; text-align:right;}
+div.forum-post-content { margin-left: 19.375em; padding: 0.313em 0 1.125em 1.125em;}
+div.forum-post-content h3 { font-weight: 500; float:left;clear:right; }
+div.forum-post-ctrl { float: right; padding-right: 0.313em; color: #a1a1a1;}
+div.forum-post-ctrl a { text-decoration: none; }
+div.forum-post-ctrl span { color: black; background-color: #fefdc2; padding: 0.188em; }
+div.forum-post-content p.date { color: #a1a1a1; border-bottom: 1px solid #F7F3ED; }
+div.forum-post-content div.body p { margin-bottom:1em; }
+div.forum-paginator{border:thin #cccccc solid; padding:.3em; width:95%;margin:auto;background-color:#F7F3ED;}
+span.forum-paginator-active{font-weight:700;text-decoration:underline; height:2em;}
+
+
+
+/** inbox stuff - reuses some of the forum layout **/
+#inbox-msg li {border:1px solid #eee; border-bottom: 1px solid #F7F3ED; width: 95%; list-style: none; min-height: 11em;}
+       
+/*  tool list on admin home and manage screens  */
+ li.top-tool { 
+       list-style: none;
+       padding: 0.125em 0.125em 0.125em  0.938em;
+       margin-bottom: 0.313em; 
+       line-height: 200%; 
+       border: solid 1px #A9ADB0;
+       -webkit-border-radius:8px;
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+       background: white;
+}
+       
+li.child-tool a { 
+       font-size: x-small;
+       font-weight: normal; 
+}
+
+ul.child-top-tool {
+       margin-top: -0.313em;
+       padding-left: 0;
+       margin-left: 0;
+       display: inline;
+}
+
+li.child-tool {
+       display: inline;
+       margin-right: 0.313em;
+       font-size: x-small;
+}
+
+
+/* browse courses */
+div.browse-course {
+       padding-bottom: 0.625em;
+}
+
+dl.browse-course {
+       width: 90%;
+       padding-bottom: 0.625em;
+       background-color: #fffaf0;
+       margin:auto;
+       margin-left:1em;
+}
+dl.browse-course dt {
+       float: left;
+       font-weight: bold;
+       width: 25%;
+       text-align: right;
+       clear: left;
+       padding: 0.313em 0.625em 0.313em 0;
+       vertical-align: middle;
+
+}
+dl.browse-course dd {
+       margin-bottom: 0.313em;
+       clear: right;
+       padding: 0.313em 0 0.313em 0.625em;
+       margin-left: 26%;
+
+}
+.row .buttons{
+       border: none;
+}
+
+/*  form fields grouping for WCAG 2.0 conformance*/
+fieldset.group_form{
+       width:98%;
+       margin:0 auto;
+       color: #4C566C; 
+       padding:.313em;
+       margin: .313em;
+       border: 1px #A9ADB0 solid;
+       background-color: white;
+}
+
+legend.group_form{
+       background-color:white;
+       font-weight: 600;
+       color: #4C566C;
+       padding:.313em;
+       margin: .313em;
+       border: 1px #4C566C solid;
+       -webkit-border-radius: 8px;
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+}
+
+/*Overrides above a:active, a:hover, a:focus so the "Navigation" button itself isn't highlighted when activated.
+Ensure styling matches that in fl-tabs.*/
+.topnavlistcontainer a:hover, .topnavlistcontainer a:active, .topnavlistcontainer a:focus{
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+}
+
+/*Added by Silvia */
+div.column_primary {
+       float: left;
+       width: 42%;
+       margin: 0.313em;
+       padding: 0;
+       min-width: 10.625em;
+}
+
+div.column_equivalent{
+       float: left;
+       width: 52%;
+       margin-left:  0.938em;
+       margin-top: 0.313em;
+       margin-right: 0.313em;
+       margin-bottom: 0.313em;
+       min-width: 10.625em;
+       padding: 0.313em;
+       border: 1px solid #EEE;
+       background-color: #FFF;
+}
+
+div.resource_box{
+       border: 1px solid #aaa;
+       width: 95%;
+       margin: 0.313em;
+       padding: 0.313em;
+       min-width: 9.375em;
+       background-color: #eee;
+}
+
+h2.alternatives_to{
+       margin-top: 0.75em;
+       font-size: 90%;
+       color: #A50707;
+}
+
+div.alternative_box{
+       border: 1px solid #ddd;
+       margin: 0.313em;
+       padding: 0.313em;
+       min-width: 9.375em;
+       background-color: #fff;
+}
+
+div.alternative_box legend {
+       color: #000;
+}
+
+div.resource_box legend {
+       color: #000;
+}
+
+label.primary a{
+       color: #A50707;
+       font-weight: bolder;
+       background-color: white;
+}
+
+/* format of "table of contents" on content page */
+#toc a { 
+       display:block; 
+       margin:0.188em; 
+}
+#toc .h2, #toc .h3, #toc .h4, #toc .h5, #toc .h6{ 
+       padding:0 0 0 0;
+}
+
+
+fieldset#toc {
+       background-color: #FEFDEF;
+       border: 1pt solid #B8AE9C;
+       width:89%;
+}
+
+#side-menu{
+       overflow:hidden;
+}
+
+/* cleans up glossary question mark line spacing*/
+sup{
+       border: 1pt solid #B8AE9C;
+       vertical-align:bottom;
+       margin-top: 1em;
+}
+
+/* jQuery tooltip styles */
+#tooltip{
+       position:absolute;
+       z-index:3000;
+       border:3px solid #111;
+       background-color:#eeeeee;
+       padding:0.313em;
+}
+#tooltip h3,#tooltip div{
+       margin:0;
+}
+
+/* style for home page modules "detail view" */
+div.home_box {
+       padding: .75em 0;
+       margin: 0 auto;
+}
+
+.outside_box{
+       background:#e0e0e0;
+       width: 17em;
+       margin: .375em;
+       padding: 0;
+       height:9.8em;
+}
+
+.inside_box{
+       width:100%;
+       margin:auto;
+       height:52%;
+       margin-bottom:.2em;
+       background:#eeeeee;
+
+}
+.details_or{
+       width:28.8em;
+       height:9.8em;
+       margin:0;
+       background-image:url(images/details_r.png);
+       background-position: top right;
+       background-repeat:no-repeat;
+}
+.details_ol{
+       height:9.8em;
+       margin:0;
+       width:.45em;
+       background-image:url(images/details_l.png);
+       background-position: top left;
+       background-repeat:no-repeat;
+}
+.details_ir{
+       width:.5em;
+       height:100%;
+       float:right;
+       background-image:url(images/details_ir.png);
+       background-position: top right;
+       background-repeat:no-repeat;
+}
+.details_il{
+       height:100%;
+       float:left;
+       background-image:url(images/details_il.png);
+       background-position: top left;
+       background-repeat:no-repeat;
+}
+.home-title{
+       font-size:12pt;
+}
+.buttonbox{
+       float:right;
+}
+.details_text{
+       margin-left:1em;
+}
+.draggable_selected {
+       background-color: lightgrey;
+       cursor: move;
+}
+
+div.menuedit{
+       float:right;
+       margin-top:-1.2em; 
+       border:1px solid #cccccc;
+}
+li.folders {
+       list-style: disc url(../../images/folder.gif) outside;
+       font-family: Helvetica,sans-serif;
+       margin-bottom: 0;
+       margin-top: 0;
+       margin-right: 0;
+}
+
+li.folders .disabled {
+       color: #B8AE9C;
+}
+
+ul.folder{
+       list-style-image:none;
+       list-style-position:outside;
+       list-style-type:none;
+       margin:0em;
+       padding:0em;
+}
+
+#topnavlist-tablet{
+       -webkit-border-radius: 8px;
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+       border: black;
+       background: black; 
+       z-index: 1000;
+       padding-bottom: 0; 
+       margin-bottom: 0;       
+}
+
+ul#topnavlist-tablet li {
+       color: white;
+}
+       
+ul#topnavlist-tablet>li:hover, ul#topnavlist-tablet>li:hover a,  ul#topnavlist-tablet>li:active,
+ul#topnavlist-tablet>li:active a, ul#topnavlist-tablet>li:focus, ul#topnavlist-tablet>li:focus a {
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center, -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+       background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center, -moz-linear-gradient(#4a94f4, #236de5);
+}
+
+ul#topnavlist-tablet li a  {
+       text-decoration: none;
+}
+
+.flc-screenNavigator-backButton .fl-link-hilight{
+       display: none;
+}
+
+div.toolcontainer{
+       border: #cccccc 1px solid;
+       -webkit-border-radius:5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+       margin-top: 1em;
+       margin-bottom: 1em;
+}
+
+
+
+
+
+/* list attributes */
+ul {
+       list-style: none;
+}
+li {
+       color: black;
+       list-style: none;
+}
+
+ol#tools>li:hover, ol#tools>li:hover a {
+       /*border: 1px solid #e0e0e0;*/
+       background-color: #e6e6e6;
+       color: black;   
+       
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -moz-linear-gradient(#4a94f4, #236de5);     
+}
+
+[class*="fl-container"]:not(.fl-navbar){
+       margin: 0;
+       margin-left: .313em;
+       margin-right: .313em;
+       padding: 0;     
+}      
+div#navigation-column{
+       
+       width: 50%;
+       -webkit-border-radius: 8px;
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+       z-index: 1000;
+       position: absolute; 
+       top: 2em;
+       background: black;
+       padding-right: .2em;
+       padding-left: .2em;
+       padding-top: .2em;
+       padding-bottom: .2em;
+       display: none;
+}
+div#contentcolumn{
+       padding-top: .313em;
+       margin-top: .313em;
+       padding: .313em;
+       margin-bottom: 1em;
+       position: absolute; 
+       top: .7em;
+       top: 1.2em;
+       top: 2em;
+}
+#content-text{
+       position: relative;
+       top: .7em;
+}
+
+       
+
+
+#content-contentwrapper{
+       height:100%;
+    position:relative; 
+       z-index:1000;                   
+       width:100%;
+       overflow:hidden;
+       
+}
+
+#leftcolumn{
+       float: left;
+       width: 17em;
+       margin-left: 0.313em;
+       margin-top:-0.625em;
+}
+
+#copyright{
+       font-size: 0.5em;
+}
+#gototop{
+       text-align: center;
+       color: #4B6B90;
+}
+
+#tools{
+       margin: 0 auto;
+       padding: 0.313em;
+       
+}
+
+
+/* ATutor Social Styles */
+div .profile_container {
+       background-color:#eee; 
+       border: 1px solid #8e8e8e; 
+       width:80%; 
+       padding:0.5em; 
+       margin-bottom: 0.5em;
+}
+
+div .profile_container .top_right {
+       float: right;
+}
+
+dl.public-profile dd{
+       margin-left:0;
+}
+dl.public-profile dt {
+       float: left;
+       font-weight: bold;
+       min-width:12em;
+}
+
+/* Search form */
+div .search_form {
+       margin-bottom: 1em;
+}
+
+div .search_form .row{
+       background-color: #DEDEC0;
+       padding: 0.5em;
+}
+div .button {
+       background-color: #eee;
+       border: 1px solid #aaa;
+}
+div .button:hover{
+       background-color: #cccccc;
+       color: #ffffff;
+}
+
+/* Side menu */
+ul.social_side_menu {
+       padding-left: 2em;
+}
+ul.social_side_menu li {
+       padding-bottom: 0.2em;
+       list-style: circle;
+}
+
+div .divider {
+       border-bottom:1px solid #C1C157; 
+       padding-bottom:0.5em; 
+       margin-bottom:0.5em;
+}
+
+.activity{
+       line-height:18pt;
+       font-size:.8em;
+}
+
+div.contentbox, input-form{
+       padding:.5em;
+       background-color: #ffffff;
+    overflow:hidden;
+    border: #A9ADB0 solid 1px;
+       -webkit-border-radius: 5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+}
+
+div.suggestions{
+       border:1px solid #a50707;
+       margin-left:0.625em; 
+       width:50%;
+}
+li.inlinelist{
+       display: inline; 
+       padding-right: 1em;
+}
+ul.social_inline_menu{
+       background-color: #eeeeee;
+       border:thin #cccccc solid;
+       padding:.5em;
+       width:90%;
+       margin:auto;
+}
+.results-hide-show-link-container{
+       border: #A9ADB0 solid 1px;
+       -webkit-border-radius: 5px;
+       -moz-border-radius: 5px;
+       border-radius: 5px;
+}
+#results-hide-show-link{
+       height: 100%;
+}
+
+#hide-show-container{
+       -webkit-border-radius:8px;
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+       margin-top: 0.875em;
+       margin-bottom: 0.875em;
+       padding: 0.875em;
+       padding-right: .2em;
+       background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#999), to(black));
+       background: -moz-linear-gradient(#999, black);
+}
+
+.hide-show-container h4{
+       border: #A9ADB0 solid 1px;
+       -webkit-border-radius:8px;
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+       margin-top: 0.875em;
+       margin-bottom: 0.875em;
+       padding: 0.875em;
+       padding-right: .2em;
+       background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#F8FAFB), to(#B6C0C6));
+       background: -moz-linear-gradient(#F8FAFB, #B6C0C6);
+       background: white; 
+}
+
+#hide-show-container a:link,
+#hide-show-container a:focus,
+#hide-show-container a:hover{
+       color: white;
+       text-decoration: none;
+       text-shadow: none;
+       display: block; 
+}
+
+.hide-show-container a:link:not(.fl-list-menu):not(.fl-list-brief),  
+.hide-show-container a:focus:not(.fl-list-menu):not(.fl-list-brief), 
+.hide-show-container a:hover:not(.fl-list-menu):not(.fl-list-brief),
+.hide-show-container a:active:not(.fl-list-menu):not(.fl-list-brief),
+#hide-show-container a:active{
+       color: white;
+       color: #4C566C;
+       text-decoration: none;
+       text-shadow: none;
+       display: block; 
+}
+
+.hide-show-container a>h4, .fl-theme-iphone a .results-hide-show-link{
+       color: white;
+}
+/* REBUILDING THE TOP NAVIGATION MENU */
+
+#navigation-bar{
+       height: 2; 
+    border-bottom: .5px solid black;    
+}
+
+/*Overrides above a:active, a:hover, a:focus so the "Navigation" button itself isn't highlighted when activated.
+Ensure styling matches that in fl-tabs.*/
+.topnavlistcontainer a:hover, .topnavlistcontainer a:active, .topnavlistcontainer a:focus{
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+}
+
+
+
+/*this CSS creates a button that looks exactly like a Mobile FSS tab.*/
+.navigation-bar-button{
+    border-width:5px;
+    -webkit-border-radius: 5px;
+    -moz-border-radius: 5px;
+       border-radius: 5px;
+       font-size: 18px;/*keep this in px*/
+       padding-left: .3em;
+       padding-right: .3em;
+       padding-top: .1em;
+       color: white;
+       position: relative;
+       top: .4em; 
+
+       
+    /* default mobile fss color scheme for tabs not AA compliant. Here is a compliant bg image: */
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+       background-color: #354D68;
+       -moz-border-image: url("images/navbar_normal_button_insetShadow.png") 5 5 5 5 stretch;
+       -webkit-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+       -moz-border-image:url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -webkit-border-left-image: none;
+    -moz-border-left-image: none;
+    -webkit-background-origin: border;
+    -moz-background-origin: border;
+    -webkit-background-clip: border;
+       -moz-background-clip: border;
+       margin-top: .3em;
+       margin-bottom: -1em;
+}
+
+
+/* hiding/showing course content */
+
+div#content-link-container{
+       list-style: none; 
+       padding-top: .316em;
+       float: right;
+}
+
+.content_link_tablet {
+       border-width:5px;
+    -webkit-border-radius: 5px;
+    -moz-border-radius: 5px;
+       border-radius: 5px;
+       font-size: 0.875em;/*keep this in px*/
+       font-size: 18px;
+       /*padding: .1em;*/
+       padding-left: .3em;
+       padding-right: .3em;
+       padding-top: .1em;
+       padding-bottom: .1em;
+       margin-right: .313em;
+
+       
+    /* default mobile fss color scheme for tabs not AA compliant. Here is a compliant bg image: */
+    background-image: -webkit-gradient(linear, left top, left bottom,
+       from(#3b5371),
+        color-stop(0.5, #374e6b),
+        color-stop(0.50, #354d68),
+        to(#354d68)
+    );
+       -webkit-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -moz-border-image: url(images/navbar_normal_button_insetShadow.png) 5 5 5 5 stretch;
+    -webkit-border-left-image: none;
+    -moz-border-left-image: none;
+    -webkit-background-origin: border;
+    -moz-background-origin: border;
+    -webkit-background-clip: border;
+    -moz-background-clip: border;
+    margin-bottom: -0.25em;
+
+
+}
+.flc-screenNavigator-navbar .content_link{
+       color: white;
+       text-decoration: none;
+       font-weight: bold;
+       background-color: #354D68;
+}
+.fl-theme-iphone .content_link_tablet_highlight{
+        color: #4c96f4;
+        font-weight: bold;
+       
+}
+
+#content{
+       position: absolute;
+       top: 2em; 
+       right: 0.313em;
+       width: 50%;
+       float: right;
+       -webkit-border-radius: 8px;
+       -moz-border-radius: 8px;
+       border-radius: 8px;
+       border: 4px solid black;
+       z-index: 1000;
+       display: none;
+}
+
+/*     hiding/showing top navigation and results-display */
+ul#topnavlist {
+       display: none;
+       position: relative;
+       top: 1.2em;
+       z-index: 1;
+}
+
+div#results-display, .results-display{
+       display: none;
+}
+
+ul#topnavlist li {
+       padding: 0;
+       margin: 0;
+}
+       
+ul#topnavlist>li:hover, ul#topnavlist>li:hover a,  ul#topnavlist>li:active, ul#topnavlist>li:active a,
+ul#topnavlist>li:focus, ul#topnavlist>li:focus a {
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+   -moz-linear-gradient(#4a94f4, #236de5);
+}
+
+ul#topnavlist li a  {
+       color: #4C566C;
+       text-decoration: none;
+}
+.content-expand {
+       background-image:url("images/plus.png");
+       background-position: 100% 100%;
+       background-repeat: no-repeat;
+}
+.content-closed{
+       background-image:url("images/minus.png");
+       background-position: 100% 100%;
+       background-repeat: no-repeat;   
+}
+
+/* SUBNAVLIST HIGHLIGHTING and Gmail-STYLE "more" button */
+ul#subnavlist li a{
+       color: black;
+}
+
+ul#subnavlist li a:active, ul#subnavlist li a:focus, ul#subnavlist li  a:hover {
+       color: red;     
+       border-bottom: #4C566C 2px solid;
+       text-decoration: none;
+}
+ul#subnavlist{
+       color: black;
+       padding: 0;
+       padding-bottom: 0.313em;
+       margin: 0;
+       font-size: 90%;
+       text-align: center;  
+}
+.selected{
+       color: red;
+       font-size: 0.875em;
+       border-bottom: #4C566C 2px solid;
+}
+#subnavlist-more .more-item{
+       font-size: 0.875em; list-style-type: bullet;
+       
+}
+.more-icon {
+       background-image:url('images/hidemenu.gif');
+       background-position: 100% 100%;
+       background-repeat: no-repeat;
+}
+.more-button{
+}
+.more-button-surround{
+}
+.subnavlist-more{
+       
+       display: block;
+       display: none;
+}
+ul#subnavlist li:not(#subnavlist-more){
+       display: inline;
+}
+
+ul#subnavlist li a, ul#subnavlist li a:visited {
+       color: black;
+}
+ul#subnavlist li a{
+       text-decoration: none;
+}
+
+ /*creates a little up-facing arrow to help mimick an ipad-style popover.  
+ See http://nicolasgallagher.com/pure-css-speech-bubbles/demo/ */
+.triangle-isosceles {
+     position: relative;
+}
+
+.triangle-isosceles:after {
+     border-style: solid;
+     content: "";
+     display: block;
+     position: absolute;
+}
+
+.triangle-isosceles.top:after {
+     border-color: black transparent;
+     border-width: 0pt 15px 15px;
+     bottom: auto;
+     left: auto;
+     left: 20%;
+     top: 95%;
+     z-index: 1000;
+}
+
+.triangle-isosceles.top.right:after {
+     border-color: black transparent;
+     border-width: 0pt 15px 15px;
+     bottom: auto;
+     left: auto;
+     right: 30%;
+     top: 98%;
+     z-index: 1000;
+}
+
+/*'Previous' and 'Next' buttons */
+.previous{
+       margin-left:3.125em;
+}
+
+.triangle-isosceles.previous:after {
+       top:1em; /* controls vertical position */
+       left:-3.125em; /* value = - border-left-width - border-right-width */
+       bottom:auto;
+       border-width:15px 50px 10px 0;
+       border-color:transparent #f3961c;
+       border-color: transparent #F3961C;
+    border-width: 10px 10px 10px 0pt;
+    bottom: auto;
+    left: -0.75em;
+    top: 0;
+}
+
+/* sequence links */
+#sequence-links{
+       float: left;
+       padding-right:0;
+       position: relative; 
+       right: -.313em;
+}
+
+#course-level-navigation, #sequence-links-course-navigation{   
+               float: right;
+}
+
+/************************************************************************************************/
+/*Adds arrows to Fluid Tabs. Here is a good guide for creating triangles with CSS: 
+http://jonrohan.me/guide/css/creating-triangles-in-css/ */
+/************************************************************************************************/
+
+ul.sequence-links li {
+    position:relative;
+    z-index:1;
+    overflow:hidden;
+    list-style:none;
+}
+
+ul.sequence-links li.back a:link, 
+ul.sequence-links li.back a:visited {
+    display:block;
+    padding-left:12px;
+    color:white;
+}
+
+ul.sequence-links li.forward a:link, 
+ul.sequence-links li.forward a:visited {
+    display:block;
+    padding-right:0.75em;
+    color:white;
+}
+/*WCAG*/
+ul.sequence-links li a:hover, ul.sequence-links li a:focus, ul.sequence-links li a:active,
+ul.sequence-links li.back a:hover, ul.sequence-links li.back a:focus, ul.sequence-links li.back a:active,
+ul.sequence-links li.forward a:hover, ul.sequence-links li.forward a:focus, ul.sequence-links li.forward a:active {
+    color: #4c96f4;
+    background:transparent;
+}
+
+
+ul.sequence-links li:before, 
+ul.sequence-links li:after,
+ul.sequence-links li a:before, 
+ul.sequence-links li a:after {
+    content:"";
+    position:absolute;
+    top:50%;
+   /* left:0;*/
+}
+
+ul.sequence-links li a:before, 
+ul.sequence-links li a:after {
+    margin:-0.5em 0 0;
+  }
+
+/*arrow that points to the left, beside the "Previous" text */
+.arrow.back a:after {/*arrow pointing to the left*/
+     background: none repeat scroll 0% 0% transparent;
+     border-color: transparent #FFFFFF;
+     border-style: solid;
+     border-width: 5px 0pt 5px 6px;
+     left: .5em;
+     margin-top: -0.438em;
+}
+
+/*left and right triangle icons change color*/
+.arrow a:hover:after, .arrow a:focus:after, .arrow a:active:after, 
+.arrow.forward a:hover:after, .arrow.forward a:focus:after, .arrow.forward a:active:after{
+       border-color: transparent #4c96f4;
+}
+
+.arrow.back a:after {
+     border-width: 6px 6px 6px 0pt;    
+     left: 0.188em;
+     
+     top: .75em;
+}
+
+}
+/*arrow that points to the right, beside the "Next" text */
+.arrow.forward a:after {
+     background: none repeat scroll 0% 0% transparent;
+     border-color: transparent #FFFFFF;
+     border-style: solid;
+     margin-top: -0.425em;
+   
+}
+.arrow.forward a:after {
+  
+      background: none repeat scroll 0% 0% transparent;
+     border-color: transparent transparent transparent white;
+        border-width: 6px;
+        border-style: solid;
+        width:0;
+        height:0;
+        right: -0.313em;
+        top: 0.85em;
+}
+/* style for "last modified" information of course content*/
+#content-info{
+       padding-top: 2em;
+       font-size: 80%;
+}
+
+ul.my-courses-list-ul > li:hover{
+       background-color: #4c96f4;
+       color: #fff;
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+    -webkit-gradient(linear, left top, left bottom, from(#4a94f4), to(#236de5));
+    background: url(../images/themes/iphone/listmenu_loader.gif) no-repeat 97% center,
+    -moz-linear-gradient(#4a94f4, #236de5);
+} 
+ul.my-courses-list-ul > li:hover a{
+       color: white;
+}
+#topnavlistcontainer {
+    float: left;
+}
+
+/* to be created as a separate desktop theme file. The classes below should be removed when 
+Mark McLaren's port of mobile fss to firefox is committed to infusion: 
+https://github.com/fluid-project/infusion/blob/25ad6755ef78347b414d60bd4037a0f197f9d09d/infusion-branch/src/webapp/framework/fss/css/fss-mobile-theme-firefox.css */ 
+.fl-tabs li:first-child {
+    border-bottom-left-radius: 5px;
+    border-top-left-radius: 5px;
+}
+
+.fl-theme-iphone .fl-tabs li {
+    -moz-border-image: url("images/navbar_normal_button_insetShadow.png") 5 5 5 5 stretch;
+    background-color: #354D68;
+}
+[class*="fl-container"] [class*="fl-list"] > li:first-child, [class*="fl-container"] [class*="fl-list"] > li:first-child a {
+    border-top-left-radius: 8px;
+    border-top-right-radius: 8px;
+}
+[class*="fl-container"] [class*="fl-list"] > li:last-child, [class*="fl-container"] [class*="fl-list"] > li:last-child a {
+    border-bottom-left-radius: 8px;
+    border-bottom-right-radius: 8px;
+}
+
+.fl-theme-iphone .fl-tabs .fl-tabs-active {
+    background-image: -moz-linear-gradient(
+        center top,
+        rgba(149, 184, 239,1),
+        rgba(35,109,229,1),
+        rgba(149, 184, 239,1)  50%,
+        rgba(75,148,244,1) 50%
+    );
+}
+
+/* A simulation for a:active on the device, requires JS */
+/* since .fl-list is for mixed material lists, dont include them in these effects */
+.fl-theme-iphone [class*=fl-list]:not(.fl-list):not(.fl-grid) a:active,
+.fl-theme-iphone [class*=fl-list]:not(.fl-list):not(.fl-grid) a.fl-link-hilight {
+    background: url(../images/themes/iphone/listmenu_arrow.png) no-repeat right -25px,
+                -moz-linear-gradient(#4a94f4, #236de5);
+}
diff --git a/docs/themes/simplified-desktop/test.html b/docs/themes/simplified-desktop/test.html
new file mode 100644 (file)
index 0000000..f91ff97
--- /dev/null
@@ -0,0 +1,109 @@
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="<?php echo $this->lang_code; ?>"> 
+
+<head>
+       <title><?php echo SITE_NAME; ?> : <?php echo $this->page_title; ?></title>
+       <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->lang_charset; ?>" />
+       <meta name="Generator" content="ATutor - Copyright 2005 by http://atutor.ca" />
+       <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0," />
+       <meta name="apple-mobile-web-app-capable" content="yes"/>
+       <base href="<?php echo $this->content_base_href; ?>" />
+       <link rel="shortcut icon" href="<?php echo $this->base_path; ?>favicon.ico" type="image/x-icon" /> 
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/print.css" type="text/css" media="print" />
+       <!-- mobile FSS -->
+       <link rel="stylesheet" href="<?php echo $this->base_path; ?>jscripts/infusion/framework/fss/css/fss-mobile-layout.css" type="text/css"/>
+       <link rel="stylesheet" href="<?php echo $this->base_path; ?>jscripts/infusion/framework/fss/css/fss-mobile-theme-iphone.css" type="text/css"/>  
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/styles.css" type="text/css"/>
+
+       
+       <!--[if IE]>
+         <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/ie_styles.css" type="text/css" />
+       <![endif]-->
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/forms.css" type="text/css" />
+               
+<?php echo $this->rtl_css; ?>
+<?php if (isset($this->course_id) && $system_courses[$this->course_id]['rss']): ?>
+       <link rel="alternate" type="application/rss+xml" title="<?php echo SITE_NAME; ?> - RSS 2.0" href="<?php echo $this->base_href; ?>get_rss.php?<?php echo $this->course_id; ?>-2" />
+       <link rel="alternate" type="application/rss+xml" title="<?php echo SITE_NAME; ?> - RSS 1.0" href="<?php echo $this->base_href; ?>get_rss.php?<?php echo $this->course_id; ?>-1" />
+<?php endif; ?>
+       <script src="<?php echo $this->base_path; ?>jscripts/infusion/InfusionAll.js" type="text/javascript"></script>
+       <script src="<?php echo $this->base_path; ?>jscripts/infusion/jquery.autoHeight.js" type="text/javascript"></script>
+       <script src="<?php echo $this->base_path; ?>jscripts/ATutor.js" type="text/javascript"></script>   
+       <script src="<?php echo $this->base_path; ?>jscripts/ATutorCourse.js" type="text/javascript"></script>   
+       <script src="<?php echo $this->base_path.'themes/'.$this->theme; ?>/iscroll.js" type="text/javascript"></script>
+       <script language="javascript" type="text/javascript">
+       //<!--
+       jQuery.noConflict();
+       //-->
+       </script>
+<script type="text/javascript">
+var myScroll;
+
+function setHeight() {
+       var headerH = document.getElementById('header').offsetHeight;
+       var footerH = document.getElementById('footer').offsetHeight;
+       var wrapperH = window.innerHeight - headerH - footerH;
+       document.getElementById('wrapper').style.height = wrapperH + 'px';
+}
+
+function loaded() {
+       setHeight();
+       myScroll = new iScroll('scroller', { checkDOMChanges: true, fadeScrollbar: false, vScrollbar: true, bounce: false, desktopCompatibility: true });
+}
+
+window.addEventListener('onorientationchange' in window ? 'orientationchange' : 'resize', setHeight, false); //destroy on horizontal? 
+document.addEventListener('touchmove', function(e){ e.preventDefault(); }, false);
+document.addEventListener('DOMContentLoaded', loaded, false);
+</script>
+
+
+<?php echo $this->custom_css; ?>
+</head>
+
+<body>
+<div id="header"><a href="http://cubiq.org/iscroll">iScroll</a></div>
+
+<div id="wrapper">
+       <div id="scroller">
+               <ul id="thelist">
+                       <li>Pretty content row 1</li>
+                       <li>Pretty content row 2</li>
+
+                       <li>Pretty content row 3</li>
+                       <li>Pretty content row 4</li>
+                       <li>Pretty content row 5</li>
+                       <li>Pretty content row 1</li>
+                       <li>Pretty content row 2</li>
+
+                       <li>Pretty content row 3</li>
+                       <li>Pretty content row 4</li>
+                       <li>Pretty content row 5</li>
+                       <li>Pretty content row 1</li>
+                       <li>Pretty content row 2</li>
+
+                       <li>Pretty content row 3</li>
+                       <li>Pretty content row 4</li>
+                       <li>Pretty content row 5</li>
+                       <li>Pretty content row 1</li>
+                       <li>Pretty content row 2</li>
+
+                       <li>Pretty content row 3</li>
+                       <li>Pretty content row 4</li>
+                       <li>Pretty content row 5</li>
+                       <li>Pretty content row 1</li>
+                       <li>Pretty content row 2</li>
+
+                       <li>Pretty content row 3</li>
+                       <li>Pretty content row 4</li>
+                       <li>Pretty content row 5</li>
+
+               </ul>
+       </div>
+</div>
+
+<div id="footer"></div>
+<div id="test"><div></div></div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/theme.cfg.php b/docs/themes/simplified-desktop/theme.cfg.php
new file mode 100644 (file)
index 0000000..b180cf4
--- /dev/null
@@ -0,0 +1,45 @@
+<?php
+/************************************************************************/
+/* ATutor                                                                                                                              */
+/************************************************************************/
+/* Copyright (c) 2002-2008 by Greg Gay, Joel Kronenberg & Heidi Hazelton*/
+/* Adaptive Technology Resource Centre / University of Toronto                 */
+/* http://atutor.ca                                                                                                            */
+/*                                                                                                                                             */
+/* This program is free software. You can redistribute it and/or               */
+/* modify it under the terms of the GNU General Public License                 */
+/* as published by the Free Software Foundation.                                               */
+/************************************************************************/
+
+// $Id: theme.cfg.php 2813 2004-12-12 15:37:46Z greg $
+
+/* This is the default configuration file for the default theme. */
+
+/* The theme's name. */
+       $_theme['name'] = 'AliMobile 2.0';
+
+/* The theme's version number. */
+       $_theme['version'] = '1.0';
+
+/* Which version of ATutor is this theme intended for. */
+       $_theme['atutor-version'] = '2.0';
+
+/* author information */
+       $_theme['author_name']  = 'Alison Benjamin';
+       $_theme['author_url']   = 'http://atutor.ca';
+       $_theme['author_email'] = 'alison.benjamin@gmail.com';
+
+/* theme default course banner styles: */
+/*
+       $_theme['banner']['font-family'] = 'Verdana, Arial, sans-serif';
+       $_theme['banner']['font-weight'] = 'bold';
+       $_theme['banner']['color']       = 'black';
+       $_theme['banner']['font-size']   = 'xx-large';
+       $_theme['banner']['text-align']  = 'center';
+
+       $_theme['banner']['background-color'] = 'white';
+       $_theme['banner']['background-image'] = '';
+       $_theme['banner']['vertical-align']   = 'middle';
+       $_theme['banner']['padding']          = '3px';*/
+
+?>
diff --git a/docs/themes/simplified-desktop/theme_info.xml b/docs/themes/simplified-desktop/theme_info.xml
new file mode 100644 (file)
index 0000000..6becef1
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>\r
+<!--This is an ATutor Theme Generator document-->\r
+<!--Created from the ATutor Themes Export Generator-->\r
+\r
+<theme>\r
+       <title>Mobile</title>\r
+       <version>1.0</version>\r
+       <type>Mobile</type>\r
+       <last_updated>2010-08-16</last_updated>\r
+       <extra_info>This is the default theme for Android and iPhone mobile devices.</extra_info>\r
+</theme>\r
+\r
diff --git a/docs/themes/simplified-desktop/users/browse.tmpl.php b/docs/themes/simplified-desktop/users/browse.tmpl.php
new file mode 100644 (file)
index 0000000..f46e947
--- /dev/null
@@ -0,0 +1,163 @@
+<?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
+<?php if ($this->mobile_device_type == IPAD_DEVICE): ?><!--  smartphone theme only -->
+<div class="column-login">
+<div class="input-form">
+
+
+
+<div id="hide-show-container" >
+       <h3><a id="results-hide-show-link" class="content-expand" href="javascript:void(0);" role="search"  aria-live="assertive"       tabindex="1" ><?php echo $this->num_results; echo " courses found."?></a></h3>
+</div>
+<div id="results-display">
+
+<fieldset class="group_form"><legend class="group_form"><?php echo "Filter by:"; ?></legend>
+               <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+                               <div class="row">
+                                       
+                                       <fieldset><legend><?php echo _AT('access'); ?></legend>
+                                       <input type="radio" name="access" value="private" id="s1" <?php if ($_GET['access'] == 'private') { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('private'); ?></label> 
+       
+                                       <input type="radio" name="access" value="protected" id="s2" <?php if ($_GET['access'] == 'protected') { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('protected'); ?></label>
+
+                                       <input type="radio" name="access" value="public" id="s3" <?php if ($_GET['access'] == 'public') { echo 'checked="checked"'; } ?> /><label for="s3"><?php echo _AT('public'); ?></label>
+
+                                       <input type="radio" name="access" value="" id="s" <?php if ($_GET['access'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
+                                       </fieldset>
+                               </div>
+
+                       <?php if ($this->has_categories): ?>
+                               <div class="row">
+                                       <label for="category"><?php echo _AT('category'); ?></label><br/>
+                                       <select name="category" id="category">
+                                               <option value="-1">- - - <?php echo _AT('cats_all'); ?> - - -</option>
+                                               <option value="0" <?php if ($_GET['category'] == 0) { echo 'selected="selected"'; } ?>>- - - <?php echo _AT('cats_uncategorized'); ?> - - -</option>
+                                               <?php echo $this->categories_select; ?>
+                                       </select>
+                               </div>
+                       <?php endif; ?>
+
+                       <div class="row">
+                               <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('title').', '._AT('description'); ?>)</label><br />
+
+                               <input type="text" name="search" id="search" size="30" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+                               <br/>
+                               
+                               <fieldset><legend><?php echo _AT('search_match'); ?>:</legend>
+                               <input type="radio" name="include" value="all" id="match_all" <?php echo $this->checked_include_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> 
+                               <input type="radio" name="include" value="one" id="match_one" <?php echo $this->checked_include_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
+                               </fieldset>
+                       </div>
+
+                       <div class="row buttons">
+                               <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>"/>
+                               <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>"/>
+                       </div>
+               
+               </form>
+
+</fieldset>
+</div>
+</div>
+</div>
+<div>
+<?php if (is_array($this->courses_rows)){ ?>
+       <?php foreach ($this->courses_rows as $row){ ?>
+           <?php  $counter++; ?>
+               <ul class="fl-list-menu fl-list-thumbnails">
+                <li>
+                               <h3 class="browse-courses"><a href="<?php echo url_rewrite('bounce.php?course='.$row['course_id'], true); ?>"><?php echo htmlentities($row['title'], ENT_QUOTES, 'UTF-8'); ?></a></h3>      
+                    
+                     <?php if ($row['description']): ?>
+                               <span class="fl-link-summary" title="<?php echo htmlentities($row['description']);?>"><?php echo substr(nl2br(htmlentities($row['description'], ENT_QUOTES, 'UTF-8')),0,150); 
+                               if(strlen($row['description']) > 150){
+                               echo "...";
+                               }
+                               ?>&nbsp;</span>
+                       <?php else: ?>
+                               <span class="fl-link-summary" title="<?php echo htmlentities($row['description']);?>">&nbsp;</span>
+                       <?php endif; ?>
+               
+               </li>
+       
+       </ul>         
+       <?php } // end foreach ?>
+<?php } // end if ?>
+</div>
+<?php endif; ?>
+<?php if ($this->mobile_device_type != IPAD_DEVICE): ?><!--  smartphone theme only -->
+<div class="column-login">
+<div class="input-form">
+<fieldset class="group_form"><legend class="group_form"><?php echo _AT('filter'); ?></legend>
+       <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+               
+                       <div class="row">
+                               <h3><?php echo _AT('results_found', $this->num_results); ?></h3>
+                       </div>
+                       <div class="row">
+                               <?php echo _AT('access'); ?><br />
+                               <input type="radio" name="access" value="private" id="s1" <?php if ($_GET['access'] == 'private') { echo 'checked="checked"'; } ?> /><label for="s1"><?php echo _AT('private'); ?></label> 
+
+                               <input type="radio" name="access" value="protected" id="s2" <?php if ($_GET['access'] == 'protected') { echo 'checked="checked"'; } ?> /><label for="s2"><?php echo _AT('protected'); ?></label>
+
+                               <input type="radio" name="access" value="public" id="s3" <?php if ($_GET['access'] == 'public') { echo 'checked="checked"'; } ?> /><label for="s3"><?php echo _AT('public'); ?></label>
+
+                               <input type="radio" name="access" value="" id="s" <?php if ($_GET['access'] == '') { echo 'checked="checked"'; } ?> /><label for="s"><?php echo _AT('all'); ?></label>
+                       </div>
+
+               <?php if ($this->has_categories): ?>
+                       <div class="row">
+                               <label for="category"><?php echo _AT('category'); ?></label><br/>
+                               <select name="category" id="category">
+                                       <option value="-1">- - - <?php echo _AT('cats_all'); ?> - - -</option>
+                                       <option value="0" <?php if ($_GET['category'] == 0) { echo 'selected="selected"'; } ?>>- - - <?php echo _AT('cats_uncategorized'); ?> - - -</option>
+                                       <?php echo $this->categories_select; ?>
+                               </select>
+                       </div>
+               <?php endif; ?>
+
+                       <div class="row">
+                               <label for="search"><?php echo _AT('search'); ?> (<?php echo _AT('title').', '._AT('description'); ?>)</label><br />
+
+                               <input type="text" name="search" id="search" size="30" value="<?php echo htmlspecialchars($_GET['search']); ?>" />
+                               <br/>
+                               <?php echo _AT('search_match'); ?>:
+                               <input type="radio" name="include" value="all" id="match_all" <?php echo $this->checked_include_all; ?> /><label for="match_all"><?php echo _AT('search_all_words'); ?></label> 
+                               <input type="radio" name="include" value="one" id="match_one" <?php echo $this->checked_include_one; ?> /><label for="match_one"><?php echo _AT('search_any_word'); ?></label>
+                       </div>
+
+                       <div class="row buttons">
+                               <input type="submit" name="filter" value="<?php echo _AT('filter'); ?>"/>
+                               <input type="submit" name="reset_filter" value="<?php echo _AT('reset_filter'); ?>"/>
+                       </div>
+               
+       </form>
+</fieldset>
+</div>
+</div>
+<div>
+<?php if (is_array($this->courses_rows)){ ?>
+       <?php foreach ($this->courses_rows as $row){ ?>
+           <?php  $counter++; ?>
+               <ul class="fl-list-menu fl-list-thumbnails">
+                <li>
+                               <h3 class="browse-courses"><a href="<?php echo url_rewrite('bounce.php?course='.$row['course_id'], true); ?>"><?php echo htmlentities($row['title'], ENT_QUOTES, 'UTF-8'); ?></a></h3>      
+                    
+                     <?php if ($row['description']): ?>
+                               <span class="fl-link-summary" title="<?php echo htmlentities($row['description']);?>"><?php echo substr(nl2br(htmlentities($row['description'], ENT_QUOTES, 'UTF-8')),0,150); 
+                               if(strlen($row['description']) > 150){
+                               echo "...";
+                               }
+                               ?>&nbsp;</span>
+                       <?php else: ?>
+                               <span class="fl-link-summary" title="<?php echo htmlentities($row['description']);?>">&nbsp;</span>
+                       <?php endif; ?>
+               
+               </li>
+       
+       </ul>         
+       <?php } // end foreach ?>
+<?php } // end if ?>
+</div>
+
+<?php endif; ?>
+<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/users/email_change.tmpl.php b/docs/themes/simplified-desktop/users/email_change.tmpl.php
new file mode 100644 (file)
index 0000000..f11d809
--- /dev/null
@@ -0,0 +1,39 @@
+<?php 
+global $onload;
+$onload = 'document.form.form_password.focus();';
+require(AT_INCLUDE_PATH.'header.inc.php'); 
+?>
+
+<script language="JavaScript" type="text/javascript" src="sha-1factory.js"></script>
+
+<script type="text/javascript">
+function encrypt_password()
+{
+       document.form.form_password_hidden.value = hex_sha1(document.form.form_password.value);
+       document.form.form_password.value = "";
+}
+</script>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+       <input type="hidden" name="form_password_hidden" value="" />
+
+       <div class="input-form" style="width:90%;">
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="form_password"><?php echo _AT('password'); ?></label><br />
+                       <input id="form_password" name="form_password" type="password" size="15" maxlength="15" value="" /><br />
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="email"><?php echo _AT('email_address'); ?></label><br />
+                       <input id="email" name="email" type="text" size="50" maxlength="50" value="<?php echo stripslashes(htmlspecialchars($_POST['email'])); ?>" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" onClick="encrypt_password()" />
+                       <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
+               </div>
+       </div>
+</form>
+
+<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/users/index.tmpl.php b/docs/themes/simplified-desktop/users/index.tmpl.php
new file mode 100644 (file)
index 0000000..2f41cda
--- /dev/null
@@ -0,0 +1,79 @@
+<?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
+
+<div id="my_courses_container">
+<ul class="my-courses-list-ul" >
+
+<?php foreach ($this->courses as $row):
+       static $counter;
+       $counter++;
+?>
+
+<li class="my-courses-list">
+  <?php echo '<a href="'.url_rewrite('bounce.php?course=' . $row['course_id']) . '"> '.htmlentities($row['title']).'</a>' ?>
+  <?php if ($row['last_cid']): ?>
+                 <a class="my-courses-resume" href="bounce.php?course=<?php echo $row['course_id'].SEP.'p='.urlencode('content.php?cid='.$row['last_cid']); ?>"><img src="<?php echo $_base_href;  ?>themes/default/images/resume.png" border="" alt="<?php echo _AT('resume'); ?>" title="<?php echo _AT('resume'); ?>" /></a>
+    <?php endif; ?>  
+
+       <div class="my-courses-links">
+    <?php if ($row['member_id'] != $_SESSION['member_id']  && $_config['allow_unenroll'] == 1): ?>
+        <a href="users/remove_course.php?course=<?php echo $row['course_id']; ?>"><?php echo _AT('unenroll_me'); ?></a>
+    <?php endif; ?>
+    <?php if ($row['tests']): ?>
+           <?php foreach ($row['tests'] as $test): ?>
+                  <a href="bounce.php?course=<?php echo $row['course_id'].SEP.'p='.urlencode('mods/_standard/tests/test_intro.php?tid='.$test['test_id']); ?>"><span title="<?php echo _AT('tests'); ?>:<?php echo $test['title']; ?>"><?php echo $test['title']; ?></span></a> 
+           <?php endforeach ;?>
+    <?php endif; ?>  
+    </div>
+   
+</li>
+
+<?php endforeach; ?>
+
+</ul>
+</div>
+
+<div class="current_box">
+<div class="current_head"> <h3><?php echo _AT('things_current'); ?></h3></div>
+    <?php
+               
+    //display current news
+
+    if($_GET['p'] == 0){
+      $p = 1;
+    }else{
+      $p = intval($_GET['p']);
+    }
+    if($_GET['p'] == "all"){
+      $perpage = count($this->all_news);
+    }else{
+      $perpage = 10;
+    }
+
+    $newscount = count($this->all_news);
+    $num_pages = (ceil($newscount/$perpage));;
+    $start = ($p-1)*$perpage;
+    $end = ($p*$perpage);
+
+    print_paginator($page, $num_pages, '', 1); 
+    for($i=$start;$i<=$end; $i++){
+       $count = $i;
+       if (isset($this->all_news)) {
+           echo '<ul class="current_list">';
+             if(isset($this->all_news[$i]['thumb'])){
+                   echo '<li><img src="'.$this->all_news[$i]['thumb'].'" alt="'.$this->all_news[$i]['alt'].'" title="'.$this->all_news[$i]['alt'].'"/> ' . $this->all_news[$i]['link'] .' <br />';
+                   if($this->all_news[$i]['object']['course_id']){
+                   echo '<span class="current_list_date_time">'.'Posted in&nbsp;'.'<a href="bounce.php?course='.$this->all_news[$i]['object']['course_id'].'">'.$this->all_news[$i]['course'].'</a>';
+                   }
+                   echo '&nbsp;on&nbsp;'.AT_DATE('%F %j, %g:%i',$this->all_news[$i]['time']).'</span></li>';
+               }
+           echo '</ul>';
+       }
+    }
+    if($perpage == count($this->all_news)){ ?>
+       <div id="show-pages"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=1"><?php echo _AT('show_pages'); ?></a></div>
+    <?php }else{ ?>
+       <div id="show-all"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?p=all"><?php echo "Show All"; ?></a></div>
+    <?php } ?>
+<br /><br />
+</div>  
+<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/users/password_change.tmpl.php b/docs/themes/simplified-desktop/users/password_change.tmpl.php
new file mode 100644 (file)
index 0000000..410fa72
--- /dev/null
@@ -0,0 +1,66 @@
+<?php 
+global $onload;
+$onload = 'document.form.old_password.focus();';
+
+require(AT_INCLUDE_PATH.'header.inc.php'); 
+?>
+
+<script language="JavaScript" src="sha-1factory.js" type="text/javascript"></script>
+
+<script type="text/javascript">
+function encrypt_password()
+{
+       document.form.password_error.value = "";
+
+       document.form.form_old_password_hidden.value = hex_sha1(document.form.old_password.value);
+       document.form.old_password.value = "";
+
+       // verify new password
+       err = verify_password(document.form.password.value, document.form.password2.value);
+       
+       if (err.length > 0)
+       {
+               document.form.password_error.value = err;
+       }
+       else
+       {
+               document.form.form_password_hidden.value = hex_sha1(document.form.password.value);
+               document.form.password.value = "";
+               document.form.password2.value = "";
+       }
+}
+</script>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
+       <input type="hidden" name="form_change" value="true" />
+       <input name="password_error" type="hidden" />
+       <input type="hidden" name="form_old_password_hidden" value="" />
+       <input type="hidden" name="form_password_hidden" value="" />
+
+       <div class="input-form" style="width:90%;">
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="old_password"><?php echo _AT('password_old'); ?></label><br />
+                       <input id="old_password" name="old_password" type="password" size="15" maxlength="15" /><br />
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password"><?php echo _AT('password'); ?></label><br />
+                       <input id="password" name="password" type="password" size="15" maxlength="15" /><br />
+                       <small>&middot; <?php echo _AT('combination'); ?><br />
+                                  &middot; <?php echo _AT('15_max_chars'); ?></small>
+               </div>
+
+               <div class="row">
+                       <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="password2"><?php echo _AT('password_again'); ?></label><br />
+                       <input id="password2" name="password2" type="password" size="15" maxlength="15" />
+               </div>
+
+               <div class="row buttons">
+                       <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" onClick="encrypt_password()" /> 
+                       <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
+               </div>
+       </div>
+</form>
+
+<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/users/pref_wizard/index.tmpl.php b/docs/themes/simplified-desktop/users/pref_wizard/index.tmpl.php
new file mode 100644 (file)
index 0000000..0d384b1
--- /dev/null
@@ -0,0 +1,73 @@
+<?php 
+global $savant;
+global $_base_path;
+global $msg;
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="<?php echo $this->lang_code; ?>">
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->lang_charset; ?>" />
+        <title><?php echo SITE_NAME; ?> : <?php echo _AT('preferences'); ?></title>
+        <script src="<?php echo $_base_path; ?>jscripts/infusion/InfusionAll.js" type="text/javascript"></script>
+               <script src="<?php echo $_base_path; ?>jscripts/lib/TILE.js" type="text/javascript"></script>
+        <link rel="shortcut icon" href="<?php echo $_base_path; ?>favicon.ico" type="image/x-icon" />
+        <link rel="stylesheet" href="<?php echo $_base_path ?>jscripts/infusion/framework/fss/css/fss-layout.css" type="text/css" />       
+        <link rel="stylesheet" href="<?php echo $_base_path; ?>themes/default/styles.css" type="text/css" />
+        <script src="<?php echo $_base_path; ?>jscripts/ATutor.js" type="text/javascript"></script>   
+        <style id="pref_style" type="text/css"></style>    
+    </head>
+    <body onload="<?php echo $this->onload; ?>">
+        <div class="fl-force-right"><br /><a href="javascript:window.close()"><?php echo _AT('close'); ?></a></div>
+        <a name="content"></a>
+
+        <h1><?php echo _AT('preferences') ?></h1>
+        <?php $msg->printAll(); ?>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form" enctype="multipart/form-data">
+<?php
+    if ($this->start_template != null) {
+        $savant->display($this->start_template);
+    }
+    else if ($this->pref_template != null) {
+       echo '<fieldset class="wizscreen">';
+        include_once($this->pref_template);
+
+        
+        foreach ($this->pref_wiz as $pref => $template) { 
+            echo '<input type="hidden" name="pref_wiz[]" value="'.$template.'" />';
+        }
+        echo '<input type="hidden" value="'.$this->pref_index.'" name="pref_index" id="pref_index" />';    
+        echo '<input type="hidden" value="'.$_SESSION['course_id'].'" name="course_id" id="course_id" />';
+        
+        echo '<div class="row buttons"><input class="button" type="submit" name="set_default" value="'._AT("reapply_default").'" accesskey="d" />';
+        echo '<span class="fl-force-right"><input type="submit" value="'._AT('previous').'" name="previous" id="previous" class="button"/>';
+        if ($this->pref_index < count($this->pref_wiz) - 1) echo '<input type="submit" value="'._AT('next').'" name="next" id="next" class="button"/>';
+        else echo '<input type="submit" value="'._AT('done').'" name="done" id="done" class="button"/>';
+        echo '</span></div>';
+        echo '</fieldset>';
+    }
+?>
+</form>
+<script type="text/javascript">
+//<!--
+    <?php 
+    if (isset($_POST['done']) || isset($_POST['set_default'])) {
+        echo 'ATutor.users.preferences.setStyles("'.$_SESSION["prefs"]["PREF_BG_COLOUR"].
+            '","'.$_SESSION["prefs"]["PREF_FG_COLOUR"].
+            '","'.$_SESSION["prefs"]["PREF_HL_COLOUR"].
+            '","'.$_SESSION["prefs"]["PREF_FONT_FACE"].
+            '","'.$_SESSION["prefs"]["PREF_FONT_TIMES"].'");';
+        
+    } 
+    if (isset($_POST['done'])) {
+        echo "window.close();";
+    }
+    require_once(AT_INCLUDE_PATH.'../jscripts/ATutor_js.php'); 
+    ?>
+//-->
+
+
+</script>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/users/pref_wizard/initialize.tmpl.php b/docs/themes/simplified-desktop/users/pref_wizard/initialize.tmpl.php
new file mode 100644 (file)
index 0000000..ed759cf
--- /dev/null
@@ -0,0 +1,47 @@
+<?php $prefs_set = isset($this->pref_wiz);?>
+
+<fieldset class="wizscreen"><legend><?php echo _AT('prefs_set_init_legend'); ?></legend>
+<div id="feedback">
+<?php echo _AT('prefs_set_init'); ?>
+</div>
+    <div>
+        <input type="checkbox" name="pref_wiz[]" value="<?php echo DISPLAY ?>" id="display" <?php if ($prefs_set && in_array(DISPLAY, $this->pref_wiz)) echo checked ?> />
+        <label for="display"><?php echo _AT('prefs_set_init_see'); ?></label>
+    </div>
+
+    <div>
+        <input type="checkbox" name="pref_wiz[]" value="<?php echo NAVIGATION ?>" id="navigation" <?php if ($prefs_set && in_array(NAVIGATION, $this->pref_wiz)) echo checked ?> />
+        <label for="navigation"><?php echo _AT('prefs_set_init_nav'); ?></label>
+    </div>
+
+    <div>
+        <input type="checkbox" name="pref_wiz[]" value="<?php echo ALT_TO_TEXT ?>" id="altToText" <?php if ($prefs_set && in_array(ALT_TO_TEXT, $this->pref_wiz)) echo checked ?> />
+        <label for="altToText"><?php echo _AT('prefs_set_init_text'); ?></label>
+    </div>
+
+    <div>
+        <input type="checkbox" name="pref_wiz[]" value="<?php echo ALT_TO_AUDIO ?>" id="altToAudio" <?php if ($prefs_set && in_array(ALT_TO_AUDIO, $this->pref_wiz)) echo checked ?> />
+        <label for="altToAudio"><?php echo _AT('prefs_set_init_audio'); ?></label>
+    </div>
+    
+    <div>
+        <input type="checkbox" name="pref_wiz[]" value="<?php echo ALT_TO_VISUAL ?>" id="altToVisual" <?php if ($prefs_set && in_array(ALT_TO_VISUAL, $this->pref_wiz)) echo checked ?> />
+        <label for="altToVisual"><?php echo _AT('prefs_set_init_visual'); ?></label>
+    </div>
+    
+    <div>
+        <input type="checkbox" name="pref_wiz[]" value="<?php echo SUPPORT ?>" id="support" <?php if ($prefs_set && in_array(SUPPORT, $this->pref_wiz)) echo checked ?> />
+        <label for="support"><?php echo _AT('prefs_set_init_tool'); ?></label>
+    </div>
+    
+    <div>
+        <input type="checkbox" name="pref_wiz[]" value="<?php echo ATUTOR ?>" id="atutor_pref" <?php if ($prefs_set && in_array(ATUTOR, $_POST['pref_wiz'])) echo checked ?> />
+        <label for="atutor_pref"><?php echo _AT('prefs_set_init_atutor'); ?></label>
+    </div>
+    
+    <input type="hidden" value="-1" name="pref_index" id="pref_index" /><br />
+    <input type="hidden" value="<?php echo $_SESSION['course_id']; ?>" name="course_id" id="course_id" /><br />
+    <input class="button" type="submit" name="set_default" value="<?php echo _AT("reapply_default"); ?>" accesskey="d" />
+    <input class="button" type="submit" value="<?php echo _AT('next'); ?>" name="next" id="next"/>
+
+</fieldset>
\ No newline at end of file
diff --git a/docs/themes/simplified-desktop/users/preferences.tmpl.php b/docs/themes/simplified-desktop/users/preferences.tmpl.php
new file mode 100644 (file)
index 0000000..640c96b
--- /dev/null
@@ -0,0 +1,280 @@
+
+<?php 
+
+$tabs = get_tabs();    
+$num_tabs = count($tabs);
+
+$current_tab = 0;  // set default tab
+$switch_tab = false;
+
+for ($i=0; $i < $num_tabs; $i++) 
+{
+       if (isset($_POST['button_'.$i]) && ($_POST['button_'.$i] != -1)) 
+       { 
+               $current_tab = $i;
+               $switch_tab = true;
+               break;
+       }
+}
+
+if (!$switch_tab && isset($_POST['current_tab'])) {
+       $current_tab = intval($_POST['current_tab']);
+}
+
+if ($current_tab == 1)
+{
+       global $_custom_head, $onload;
+       
+       $_custom_head = "<script language=\"JavaScript\" src=\"jscripts/lib/TILE.js\" type=\"text/javascript\"></script>";
+       $onload = "setPreviewFace(); setPreviewSize(); setPreviewColours();";
+}
+
+require(AT_INCLUDE_PATH.'header.inc.php'); 
+
+if($_SESSION['course_id'] == "-1"){
+echo '<div id="container"><br />';
+}
+
+?>
+
+<form action="<?php echo $_SERVER['PHP_SELF']; ?>"  method="post" name="form" enctype="multipart/form-data">
+
+
+               <?php output_tabs($current_tab, $changes_made); ?>
+
+
+       <div class="input-form">
+               <input type="hidden" name="current_tab" value="<?php echo $current_tab; ?>" />
+<?php
+       if ($current_tab != 0) 
+       {
+               // save selected options on tab 0 (ATutor settings)
+               if (isset($_POST['theme']))
+                       echo '  <input type="hidden" name="theme" value="'.$_POST['theme'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_THEME']))
+                       echo '  <input type="hidden" name="theme" value="'.$_SESSION['prefs']['PREF_THEME'].'" />'."\n\r";
+               
+               if (isset($_POST['mnot']))
+                       echo '  <input type="hidden" name="mnot" value="'.$_POST['mnot'].'" />'."\n\r";
+               else if (isset($this->notify))
+                       echo '  <input type="hidden" name="mnot" value="'.$this->notify.'" />'."\n\r";
+
+               if (isset($_POST['time_zone']))
+                       echo '  <input type="hidden" name="time_zone" value="'.$_POST['time_zone'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_TIMEZONE']))
+                       echo '  <input type="hidden" name="time_zone" value="'.$_SESSION['prefs']['PREF_TIMEZONE'].'" />'."\n\r";
+               
+               if (isset($_POST['numbering']))
+                       echo '  <input type="hidden" name="numbering" value="'.$_POST['numbering'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_NUMBERING']))
+                       echo '  <input type="hidden" name="numbering" value="'.$_SESSION['prefs']['PREF_NUMBERING'].'" />'."\n\r";
+               
+               if (isset($_POST['use_jump_redirect']))
+                       echo '  <input type="hidden" name="use_jump_redirect" value="'.$_POST['use_jump_redirect'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_JUMP_REDIRECT']))
+                       echo '  <input type="hidden" name="use_jump_redirect" value="'.$_SESSION['prefs']['PREF_JUMP_REDIRECT'].'" />'."\n\r";
+               
+               if (isset($_POST['auto']))
+                       echo '  <input type="hidden" name="auto" value="'.$_POST['auto'].'" />'."\n\r";
+               else if (isset($this->is_auto_login))
+                       echo '  <input type="hidden" name="auto" value="'.$this->is_auto_login.'" />'."\n\r";
+               
+               if (isset($_POST['form_focus']))
+                       echo '  <input type="hidden" name="form_focus" value="'.$_POST['form_focus'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_FORM_FOCUS']))
+                       echo '  <input type="hidden" name="form_focus" value="'.$_SESSION['prefs']['PREF_FORM_FOCUS'].'" />'."\n\r";
+               
+               if (isset($_POST['show_guide']))
+                       echo '  <input type="hidden" name="show_guide" value="'.$_POST['show_guide'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_SHOW_GUIDE']))
+                       echo '  <input type="hidden" name="show_guide" value="'.$_SESSION['prefs']['PREF_SHOW_GUIDE'].'" />'."\n\r";
+               
+               if (isset($_POST['content_editor']))
+                       echo '  <input type="hidden" name="content_editor" value="'.$_POST['content_editor'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_CONTENT_EDITOR']))
+                       echo '  <input type="hidden" name="content_editor" value="'.$_SESSION['prefs']['PREF_CONTENT_EDITOR'].'" />'."\n\r";
+       }
+
+       if ($current_tab != 1) 
+       {
+               // save selected options on tab 1 (display settings)
+               if (isset($_POST['fontface']))
+                       echo '  <input type="hidden" name="fontface" value="'.$_POST['fontface'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_FONT_FACE']))
+                       echo '  <input type="hidden" name="fontface" value="'.$_SESSION['prefs']['PREF_FONT_FACE'].'" />'."\n\r";
+
+               if (isset($_POST['font_times']))
+                       echo '  <input type="hidden" name="font_times" value="'.$_POST['font_times'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_FONT_TIMES']))
+                       echo '  <input type="hidden" name="font_times" value="'.$_SESSION['prefs']['PREF_FONT_TIMES'].'" />'."\n\r";
+
+               if (isset($_POST['fg']))
+                       echo '  <input type="hidden" name="fg" value="'.$_POST['fg'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_FG_COLOUR']))
+                       echo '  <input type="hidden" name="fg" value="'.$_SESSION['prefs']['PREF_FG_COLOUR'].'" />'."\n\r";
+
+               if (isset($_POST['bg']))
+                       echo '  <input type="hidden" name="bg" value="'.$_POST['bg'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_BG_COLOUR']))
+                       echo '  <input type="hidden" name="bg" value="'.$_SESSION['prefs']['PREF_BG_COLOUR'].'" />'."\n\r";
+
+               if (isset($_POST['hl']))
+                       echo '  <input type="hidden" name="hl" value="'.$_POST['hl'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_HL_COLOUR']))
+                       echo '  <input type="hidden" name="hl" value="'.$_SESSION['prefs']['PREF_HL_COLOUR'].'" />'."\n\r";
+       }
+               
+       if ($current_tab != 2) 
+       {
+               // save selected options on tab 2 (content settings)
+               if (isset($_POST['use_alternative_to_text']))
+                       echo '  <input type="hidden" name="use_alternative_to_text" value="'.$_POST['use_alternative_to_text'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_USE_ALTERNATIVE_TO_TEXT']))
+                       echo '  <input type="hidden" name="use_alternative_to_text" value="'.$_SESSION['prefs']['PREF_USE_ALTERNATIVE_TO_TEXT'].'" />'."\n\r";
+
+               if (isset($_POST['preferred_alt_to_text']))
+                       echo '  <input type="hidden" name="preferred_alt_to_text" value="'.$_POST['preferred_alt_to_text'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_ALT_TO_TEXT']))
+                       echo '  <input type="hidden" name="preferred_alt_to_text" value="'.$_SESSION['prefs']['PREF_ALT_TO_TEXT'].'" />'."\n\r";
+               
+               if (isset($_POST['alt_to_text_append_or_replace']))
+               echo '  <input type="hidden" name="alt_to_text_append_or_replace" value="'.$_POST['alt_to_text_append_or_replace'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_ALT_TO_TEXT_APPEND_OR_REPLACE']))
+               echo '  <input type="hidden" name="alt_to_text_append_or_replace" value="'.$_SESSION['prefs']['PREF_ALT_TO_TEXT_APPEND_OR_REPLACE'].'" />'."\n\r";
+               
+               if (isset($_POST['alt_text_prefer_lang']))
+               echo '  <input type="hidden" name="alt_text_prefer_lang" value="'.$_POST['alt_text_prefer_lang'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_ALT_TEXT_PREFER_LANG']))
+               echo '  <input type="hidden" name="alt_text_prefer_lang" value="'.$_SESSION['prefs']['PREF_ALT_TEXT_PREFER_LANG'].'" />'."\n\r";
+               
+               if (isset($_POST['use_alternative_to_audio']))
+               echo '  <input type="hidden" name="use_alternative_to_audio" value="'.$_POST['use_alternative_to_audio'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_USE_ALTERNATIVE_TO_AUDIO']))
+               echo '  <input type="hidden" name="use_alternative_to_audio" value="'.$_SESSION['prefs']['PREF_USE_ALTERNATIVE_TO_AUDIO'].'" />'."\n\r";
+               
+               if (isset($_POST['preferred_alt_to_audio']))
+               echo '  <input type="hidden" name="preferred_alt_to_audio" value="'.$_POST['preferred_alt_to_audio'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_ALT_TO_AUDIO']))
+               echo '  <input type="hidden" name="preferred_alt_to_audio" value="'.$_SESSION['prefs']['PREF_ALT_TO_AUDIO'].'" />'."\n\r";
+               
+               if (isset($_POST['alt_to_audio_append_or_replace']))
+               echo '  <input type="hidden" name="alt_to_audio_append_or_replace" value="'.$_POST['alt_to_audio_append_or_replace'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_ALT_TO_AUDIO_APPEND_OR_REPLACE']))
+               echo '  <input type="hidden" name="alt_to_audio_append_or_replace" value="'.$_SESSION['prefs']['PREF_ALT_TO_AUDIO_APPEND_OR_REPLACE'].'" />'."\n\r";
+               
+               if (isset($_POST['alt_audio_prefer_lang']))
+               echo '  <input type="hidden" name="alt_audio_prefer_lang" value="'.$_POST['alt_audio_prefer_lang'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_ALT_AUDIO_PREFER_LANG']))
+               echo '  <input type="hidden" name="alt_audio_prefer_lang" value="'.$_SESSION['prefs']['PREF_ALT_AUDIO_PREFER_LANG'].'" />'."\n\r";
+               
+               if (isset($_POST['use_alternative_to_visual']))
+               echo '  <input type="hidden" name="use_alternative_to_visual" value="'.$_POST['use_alternative_to_visual'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_USE_ALTERNATIVE_TO_VISUAL']))
+               echo '  <input type="hidden" name="use_alternative_to_visual" value="'.$_SESSION['prefs']['PREF_USE_ALTERNATIVE_TO_VISUAL'].'" />'."\n\r";
+               
+               if (isset($_POST['preferred_alt_to_visual']))
+               echo '  <input type="hidden" name="preferred_alt_to_visual" value="'.$_POST['preferred_alt_to_visual'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_ALT_TO_VISUAL']))
+               echo '  <input type="hidden" name="preferred_alt_to_visual" value="'.$_SESSION['prefs']['PREF_ALT_TO_VISUAL'].'" />'."\n\r";
+               
+               if (isset($_POST['alt_to_visual_append_or_replace']))
+               echo '  <input type="hidden" name="alt_to_visual_append_or_replace" value="'.$_POST['alt_to_visual_append_or_replace'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_ALT_TO_VISUAL_APPEND_OR_REPLACE']))
+               echo '  <input type="hidden" name="alt_to_visual_append_or_replace" value="'.$_SESSION['prefs']['PREF_ALT_TO_VISUAL_APPEND_OR_REPLACE'].'" />'."\n\r";
+               
+               if (isset($_POST['alt_visual_prefer_lang']))
+               echo '  <input type="hidden" name="alt_visual_prefer_lang" value="'.$_POST['alt_visual_prefer_lang'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_ALT_VISUAL_PREFER_LANG']))
+               echo '  <input type="hidden" name="alt_visual_prefer_lang" value="'.$_SESSION['prefs']['PREF_ALT_VISUAL_PREFER_LANG'].'" />'."\n\r";
+       }
+
+       if ($current_tab != 3) 
+       {
+               // save selected options on tab 3 (tool settings)
+               if (isset($_POST['dictionary_val']))
+                       echo '  <input type="hidden" name="dictionary_val" value="'.$_POST['dictionary_val'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_DICTIONARY']))
+                       echo '  <input type="hidden" name="dictionary_val" value="'.$_SESSION['prefs']['PREF_DICTIONARY'].'" />'."\n\r";
+
+               if (isset($_POST['thesaurus_val']))
+                       echo '  <input type="hidden" name="thesaurus_val" value="'.$_POST['thesaurus_val'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_THESAURUS']))
+                       echo '  <input type="hidden" name="thesaurus_val" value="'.$_SESSION['prefs']['PREF_THESAURUS'].'" />'."\n\r";
+
+               if (isset($_POST['encyclopedia_val']))
+                       echo '  <input type="hidden" name="encyclopedia_val" value="'.$_POST['encyclopedia_val'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_ENCYCLOPEDIA']))
+                       echo '  <input type="hidden" name="encyclopedia_val" value="'.$_SESSION['prefs']['PREF_ENCYCLOPEDIA'].'" />'."\n\r";
+
+               if (isset($_POST['atlas_val']))
+                       echo '  <input type="hidden" name="atlas_val" value="'.$_POST['atlas_val'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_ATLAS']))
+                       echo '  <input type="hidden" name="atlas_val" value="'.$_SESSION['prefs']['PREF_ATLAS'].'" />'."\n\r";
+
+               if (isset($_POST['note_taking_val']))
+                       echo '  <input type="hidden" name="note_taking_val" value="'.$_POST['note_taking_val'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_NOTE_TAKING']))
+                       echo '  <input type="hidden" name="note_taking_val" value="'.$_SESSION['prefs']['PREF_NOTE_TAKING'].'" />'."\n\r";
+
+               if (isset($_POST['calculator_val']))
+                       echo '  <input type="hidden" name="calculator_val" value="'.$_POST['calculator_val'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_CALCULATOR']))
+                       echo '  <input type="hidden" name="calculator_val" value="'.$_SESSION['prefs']['PREF_CALCULATOR'].'" />'."\n\r";
+
+               if (isset($_POST['abacus_val']))
+                       echo '  <input type="hidden" name="abacus_val" value="'.$_POST['abacus_val'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_ABACUS']))
+                       echo '  <input type="hidden" name="abacus_val" value="'.$_SESSION['prefs']['PREF_ABACUS'].'" />'."\n\r";
+       }
+       
+       if ($current_tab != 4) 
+       {
+               // save selected options on tab 4 (control settings)
+               if (isset($_POST['show_contents']))
+                       echo '  <input type="hidden" name="show_contents" value="'.$_POST['show_contents'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_SHOW_CONTENTS']))
+                       echo '  <input type="hidden" name="show_contents" value="'.$_SESSION['prefs']['PREF_SHOW_CONTENTS'].'" />'."\n\r";
+
+               if (isset($_POST['show_next_previous_buttons']))
+                       echo '  <input type="hidden" name="show_next_previous_buttons" value="'.$_POST['show_next_previous_buttons'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_SHOW_NEXT_PREVIOUS_BUTTONS']))
+                       echo '  <input type="hidden" name="show_next_previous_buttons" value="'.$_SESSION['prefs']['PREF_SHOW_NEXT_PREVIOUS_BUTTONS'].'" />'."\n\r";
+
+               if (isset($_POST['show_bread_crumbs']))
+                       echo '  <input type="hidden" name="show_bread_crumbs" value="'.$_POST['show_bread_crumbs'].'" />'."\n\r";
+               else if (isset($_SESSION['prefs']['PREF_SHOW_BREAD_CRUMBS']))
+                       echo '  <input type="hidden" name="show_bread_crumbs" value="'.$_SESSION['prefs']['PREF_SHOW_BREAD_CRUMBS'].'" />'."\n\r";
+       }
+
+       echo '<fieldset>';
+       include(AT_INCLUDE_PATH .'../users/'.$tabs[$current_tab][1]);
+       echo '</fieldset>';
+//     include(getcwd().'/'.$tabs[$current_tab][1]);
+
+?>
+       <div class="row buttons">
+<?php 
+if ($_SESSION['course_id'] == -1) // admin login 
+{
+?>
+               <input type="submit" name="set_default" value="<?php echo _AT('factory_default'); ?>" accesskey="d" />
+<?php 
+}
+else  // user login 
+{
+?>
+               <input type="submit" name="set_default" value="<?php echo _AT('reapply_default'); ?>" accesskey="d" title="<?php echo _AT('reapply_default'); ?> - Alt-d"/>
+<?php 
+}
+?>
+               <input type="submit" name="submit" value="<?php echo _AT('apply'); ?>" accesskey="s" />
+               <input type="reset" name="reset" value="<?php echo _AT('reset'); ?>" />
+       </div>
+</div>
+</form>        
+<?php
+if($_SESSION['course_id'] == "-1"){
+echo '</div>';
+}
+
+require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
diff --git a/docs/themes/simplified-desktop/users/profile.tmpl.php b/docs/themes/simplified-desktop/users/profile.tmpl.php
new file mode 100644 (file)
index 0000000..b8d9a48
--- /dev/null
@@ -0,0 +1,131 @@
+<?php require(AT_INCLUDE_PATH.'header.inc.php'); ?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
+<?php global $languageManager, $_config; ?>
+
+
+<div class="input-form">
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('required_information'); ?></legend>
+       <div class="row">
+               <h3><?php echo _AT('required_information'); ?></h3>
+       </div>
+
+       <div class="row">
+               <label for="login"><?php echo _AT('login_name'); ?></label><br />
+                               <span id="login"><?php echo stripslashes(htmlspecialchars($_POST['login'])); ?></span>
+                               <input name="member_id" type="hidden" value="<?php echo intval($_POST['member_id']); ?>" />
+                               <input name="login" type="hidden" value="<?php echo stripslashes(htmlspecialchars($_POST['login'])); ?>" />
+       </div>
+
+       <div class="row">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="first_name"><?php echo _AT('first_name'); ?></label><br />
+               <input id="first_name" name="first_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['first_name'])); ?>" />
+       </div>
+       <div class="row">
+               <?php echo _AT('email_address'); ?><br />
+               <?php echo stripslashes(htmlspecialchars($_POST['email'])); ?>
+               <input type="checkbox" id="priv" name="private_email" value="1" <?php if ($_POST['private_email']) { echo 'checked="checked"'; } ?> /><label for="priv"><?php echo _AT('keep_email_private');?></label>
+       </div>
+
+
+       <div class="row" id="last-row1">
+               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="last_name"><?php echo _AT('last_name'); ?></label><br />
+               <input id="last_name" name="last_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['last_name'])); ?>" />
+       </div>
+       
+       <?php if (admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE)): 
+                       if ($_POST['status'] == AT_STATUS_INSTRUCTOR) {
+                               $inst = ' checked="checked"';
+                       } else if ($_POST['status'] == AT_STATUS_STUDENT) {
+                               $stud = ' checked="checked"';
+                       }  else if ($_POST['status'] == AT_STATUS_DISABLED) {
+                               $disa = ' checked="checked"';
+                       } else {
+                               $uncon = ' checked="checked"';
+                       }?>
+                       <input type="hidden" name="id" value="<?php echo $_POST['member_id']; ?>" >
+                       <div class="row">
+                               <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('account_status'); ?><br />
+
+                               <input type="radio" name="status" value="0" id="disa" <?php echo $disa; ?> /><label for="disa"><?php echo _AT('disabled'); ?></label>
+                               <?php if (defined('AT_EMAIL_CONFIRMATION') && AT_EMAIL_CONFIRMATION): ?>
+                                       <input type="radio" name="status" value="1" id="uncon" <?php echo $uncon; ?> /><label for="uncon"><?php echo _AT('unconfirmed'); ?></label>
+                               <?php endif; ?>
+
+                               <input type="radio" name="status" value="2" id="stud" <?php echo $stud; ?> /><label for="stud"><?php echo _AT('student'); ?></label>
+
+                               <input type="radio" name="status" value="3" id="inst" <?php echo $inst; ?> /><label for="inst"><?php echo _AT('instructor'); ?></label>
+
+                               <input type="hidden" name="old_status" value="<?php echo $_POST['old_status']; ?>" />
+                       </div>
+       <?php endif; ?>
+       </fieldset>
+       <fieldset class="group_form"><legend class="group_form"><?php echo _AT('personal_information'); ?></legend>
+       <div class="row">
+               <h3><?php echo _AT('personal_information').' ('._AT('optional').')'; ?></h3>
+       </div>
+
+       <?php if (admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE) && defined('AT_MASTER_LIST') && AT_MASTER_LIST): ?>
+               <div class="row">
+                       <label for="student_id"><?php echo _AT('student_id'); ?></label><br />
+                               <input type="text" name="student_id" value="<?php echo $_POST['student_id']; ?>" size="20" /><br />
+               </div>
+               <div class="row">
+                       <label for="student_pin"><?php echo _AT('student_pin'); ?></label><br />
+                       <input id="student_pin" name="student_pin" type="password" size="15" maxlength="15" value="<?php echo stripslashes(htmlspecialchars($_POST['student_pin'])); ?>" /><br />
+               </div>
+       <?php endif; ?>
+
+       <div class="row">
+               <?php echo _AT('date_of_birth'); ?><br />
+               <label for="year"><?php echo _AT('year'); ?>: </label><input id="year" class="formfield" name="year" type="text" size="4" maxlength="4" value="<?php echo $_POST['year']; ?>" />  <label for="month"><?php echo _AT('month'); ?>: </label><input id="month" class="formfield" name="month" type="text" size="2" maxlength="2" value="<?php echo $_POST['month']; ?>" /> <label for="day"><?php echo _AT('day'); ?>: </label><input id="day" class="formfield" name="day" type="text" size="2" maxlength="2" value="<?php echo $_POST['day']; ?>" />
+       </div>
+
+       <div class="row">
+               <?php echo _AT('gender'); ?><br />
+               <input type="radio" name="gender" id="m" value="m" <?php if ($_POST['gender'] == 'm') { echo 'checked="checked"'; } ?> /><label for="m"><?php echo _AT('male'); ?></label> <input type="radio" value="f" name="gender" id="f" <?php if ($_POST['gender'] == 'f') { echo 'checked="checked"'; } ?> /><label for="f"><?php echo _AT('female'); ?></label>  <input type="radio" value="n" name="gender" id="ns" <?php if (($_POST['gender'] == 'n') || ($_POST['gender'] == '')) { echo 'checked="checked"'; } ?> /><label for="ns"><?php echo _AT('not_specified'); ?></label>
+       </div>
+
+       <div class="row">
+               <label for="address"><?php echo _AT('street_address'); ?></label><br />
+               <input id="address" name="address" size="30" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['address'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="postal"><?php echo _AT('postal_code'); ?></label><br />
+               <input id="postal" name="postal" size="7" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['postal'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="city"><?php echo _AT('city'); ?></label><br />
+               <input id="city" name="city" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['city'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="province"><?php echo _AT('province'); ?></label><br />
+               <input id="province" name="province" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['province'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="country"><?php echo _AT('country'); ?></label><br />
+               <input id="country" name="country" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['country'])); ?>" />
+       </div>
+
+       <div class="row">
+               <label for="phone"><?php echo _AT('phone'); ?></label><br />
+               <input size="11" name="phone" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['phone'])); ?>" id="phone" />
+       </div>
+
+       <div class="row" id="last-row">
+               <label for="website"><?php echo _AT('web_site'); ?></label><br />
+               <input id="website" name="website" size="30" type="text" value="<?php if ($_POST['website'] == '') { echo 'http://'; } else { echo stripslashes(htmlspecialchars($_POST['website'])); } ?>" />
+       </div>
+       </fieldset>
+       <div class="row-buttons">
+               <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" />
+               <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
+       </div>
+</div>
+</form>
+
+<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
diff --git a/docs/themes/tablet1/include/footer.tmpl.php b/docs/themes/tablet1/include/footer.tmpl.php
new file mode 100644 (file)
index 0000000..b874397
--- /dev/null
@@ -0,0 +1,44 @@
+<?php if (!defined('AT_INCLUDE_PATH')) { exit; } ?>
+
+               <?php if (isset($_SESSION['course_id']) && $_SESSION['course_id'] > 0): ?>
+                       <div style="clear: left; text-align:right;" id="gototop">               
+                               <br />
+                               <span style="font-size:smaller;padding-right:3px;"><a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#content" title="<?php echo _AT('goto_content'); ?> Alt-c" ><?php echo _AT('goto_top'); ?>
+                               
+                               
+                               </a>    </span>
+                       </div>  
+               <?php endif; ?> 
+
+       </div>
+</div>
+               <div class="sequence-links">
+               <?php if ($_SESSION["prefs"]["PREF_SHOW_NEXT_PREVIOUS_BUTTONS"]) { ?>
+                       <?php if ($this->sequence_links['resume']): ?>
+                                       <a style="color:white;" href="<?php echo $this->sequence_links['resume']['url']; ?>" accesskey="."><img src="<?php echo $this->img; ?>resume.png" border="0" title="<?php echo _AT('resume').': '.$this->sequence_links['resume']['title']; ?> Alt+." alt="<?php echo $this->sequence_links['resume']['title']; ?> Alt+." class="img1616"/></a>
+                       <?php else:
+                               if ($this->sequence_links['previous']): ?>
+                                       <a href="<?php echo $this->sequence_links['previous']['url']; ?>" title="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> Alt+," accesskey=","><img src="<?php echo $this->img; ?>previous.png" border="0" alt="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> Alt+," class="img1616" /></a>
+                               <?php endif;
+                               if ($this->sequence_links['next']): ?>
+                                       <a href="<?php echo $this->sequence_links['next']['url']; ?>" title="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?> Alt+." accesskey="."><img src="<?php echo $this->img; ?>next.png" border="0" alt="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?> Alt+." class="img1616" /></a>
+                               <?php endif; ?>
+                       <?php endif; ?>
+               <?php } ?>
+                       &nbsp;
+               </div>
+</div> <!-- end content -->
+<div data-role="footer">
+       <br /><br />
+       <?php require(AT_INCLUDE_PATH.'html/languages.inc.php'); ?>
+       <?php require(AT_INCLUDE_PATH.'html/copyright.inc.php'); ?>
+</div>
+</div> <!-- end page wrapper --> 
+<script language="javascript" type="text/javascript">
+//<!--
+    <?php require_once(AT_INCLUDE_PATH.'../jscripts/ATutor_js.php'); ?>
+//-->
+</script>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/themes/tablet1/include/header.tmpl.php b/docs/themes/tablet1/include/header.tmpl.php
new file mode 100644 (file)
index 0000000..d283c76
--- /dev/null
@@ -0,0 +1,333 @@
+<?php
+/************************************************************************/
+/* ATutor                                                                                                                              */
+/************************************************************************/
+/* Copyright (c) 2002-2010                                              */
+/* Inclusive Design Institute                                           */
+/* http://atutor.ca                                                     */
+/* This program is free software. You can redistribute it and/or        */
+/* modify it under the terms of the GNU General Public License          */
+/* as published by the Free Software Foundation.                        */
+/************************************************************************/
+// $Id: header.tmpl.php 3825 2005-03-11 15:35:51 joel $
+if (!defined('AT_INCLUDE_PATH')) { exit; }
+/* available header.tmpl.php variables:
+ * $this->lang_code                    the ISO language code
+ * SITE_NAME                           the site name from the config file
+ * $this->page_title           the name of this page to use in the <title>
+ * $this->lang_charset         the ISO language character set
+ * $this->content_base_href    the <base href> to use for this page
+ * $this->base_path                    the absolute path to this atutor installation
+ * $this->rtl_css                      if set, the path to the RTL style sheet
+ * $this->icon                 the path to a course icon
+ * $this->banner_style         -deprecated-
+ * $this->cats          array or course categories
+ * $this->theme                                the directory name of the current theme
+ * $this->base_href                    the full url to this atutor installation
+ * $this->onload                       javascript onload() calls
+ * $this->img                          the absolute path to this theme's images/ directory
+ * $this->sequence_links       associative array of 'previous', 'next', and/or 'resume' links
+ * $this->path                         associative array of path to this page: aka bread crumbs
+ * $this->rel_url                      the relative url from the installation root to this page
+ * $this->nav_courses          associative array of this user's enrolled courses
+ * $this->section_title                the title of this section (course, public, admin, my start page)
+ * $this->top_level_pages      associative array of the top level navigation
+ * $this->current_top_level_page       the full path to the current top level page with file name
+ * $this->sub_level_pages                      associate array of sub level navigation
+ * $this->back_to_page                         if set, the path and file name to the part of this page (if parent is not a top level nav)
+ * $this->current_sub_level_page       the full path to the current sub level page with file name
+ * $this->guide                                the full path and file name to the guide page
+ * $this->shortcuts         the array of tools' shortcuts to display at top right corner. Used by content.php and edit_content_folder.php
+ * ======================================
+ * top_level_pages           array(array('url', 'title'))     the top level pages. ATutor default creates tabs.
+ * section_title             string                           the name of the current section. either name of the course, administration, my start page, etc.
+ * page_title                string                           the title of the current page.
+ * path                      array(array('url', 'title'))     the path to the current page.
+ * back_to_page              array('url', 'title')            the link back to the part of the current page, if needed.
+ * current_top_level_page    string                           full url to the current top level page in "top_leve_pages"
+ * current_sub_level_page    string                           full url to the current sub level page in the "sub_level_pages"
+ * sub_level_pages           array(array('url', 'title'))     the sub level pages.
+ * is_mobile_device          true or false                    the request is from a mobile device or a desktop device
+ * mobile_device_type        One of the constants: IPOD_DEVICE, BLACKBERRY_DEVICE, ANDROID_DEVICE, UNKNOWN_DEVICE (@see include/lib/constants.inc.php)
+ */
+
+// will have to be moved to the header.inc.php
+global $system_courses, $_custom_css, $db;
+?>
+<!-- 
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+ -->
+<!DOCTYPE html > 
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="<?php echo $this->lang_code; ?>"> 
+<head>
+       <title><?php echo SITE_NAME; ?> : <?php echo $this->page_title; ?></title>
+       <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->lang_charset; ?>" />
+       <meta name="Generator" content="ATutor - Copyright 2010 by http://atutor.ca" />
+       <base href="<?php echo $this->content_base_href; ?>" />
+       <link rel="shortcut icon" href="<?php echo $this->base_path; ?>favicon.ico" type="image/x-icon" />
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/print.css" type="text/css" media="print" />
+    <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/forms.css" type="text/css" />
+       <link rel="stylesheet" type="text/css" href="<?php echo $this->base_path; ?>jscripts/infusion/framework/fss/css/fss-layout.css" />
+       <link rel="stylesheet" href="<?php echo $this->base_path.'themes/'.$this->theme; ?>/jquery.mobile-1.0b1.css" type="text/css"/>
+<?php if (isset($this->course_id) && $system_courses[$this->course_id]['rss']): ?>
+       <link rel="alternate" type="application/rss+xml" title="<?php echo SITE_NAME; ?> - RSS 2.0" href="<?php echo $this->base_href; ?>get_rss.php?<?php echo $this->course_id; ?>-2" />
+       <link rel="alternate" type="application/rss+xml" title="<?php echo SITE_NAME; ?> - RSS 1.0" href="<?php echo $this->base_href; ?>get_rss.php?<?php echo $this->course_id; ?>-1" />
+<?php endif; ?>
+       <!-- update -->
+       <script src="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.js"></script>
+       <script src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
+       <script src="<?php echo $this->base_path; ?>jscripts/infusion/InfusionAll.js" type="text/javascript"></script>
+       <script language="javascript" type="text/javascript">
+       //<!--
+       jQuery.noConflict();
+       //-->
+       </script>
+    <script src="<?php echo $this->base_path; ?>jscripts/ATutor.js" type="text/javascript"></script>   
+    <?php echo $this->custom_css; ?>
+    <?php echo $this->rtl_css; ?>
+    <style id="pref_style" type="text/css"></style> 
+</head>
+<body onload="<?php echo $this->onload; ?>" >
+<div date-role="page">
+<div data-role="header" data-theme="b" class="b">
+       <?php if (isset($_SESSION['valid_user']) && $_SESSION['valid_user']): 
+               echo '<div class="site-name">'.stripslashes(SITE_NAME).'</div>'; 
+       else:
+               echo '<br />';  
+       endif; ?>
+</div>
+<div data-role="content">
+       <div class="bypass">
+       <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#content" accesskey="c">
+       <img src="<?php echo $this->base_path; ?>images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AT('goto_content'); ?> ALT+c" /></a>          
+
+       <a href="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); ?>#menu<?php echo htmlentities_utf8($_REQUEST['cid']);  ?>"  accesskey="m"><img src="<?php echo $this->base_path; ?>images/clr.gif" height="1" width="1" border="0" alt="<?php echo _AT('goto_menu'); ?> ALT+m" /></a>
+       </div>  
+
+
+       <div id="top-links"> <!-- top help/search/login links -->
+                         <div id="top-links-jump">
+               <?php if (isset($_SESSION['member_id']) && $_SESSION['member_id']): ?>
+                       <?php if(!$this->just_social): ?>
+                       <!-- start the jump menu -->
+                       <?php if (empty($_GET)): ?>
+                               <form method="post" action="<?php echo $this->base_path; ?>bounce.php?p=<?php echo urlencode($this->rel_url); ?>" target="_top">
+                       <?php else: ?>
+                               <form method="post" action="<?php echo $this->base_path; ?>bounce.php" target="_top">
+                       <?php endif; ?>
+                       <label for="jumpmenu" accesskey="j"></label>
+                               <select name="course" id="jumpmenu" title="<?php echo _AT('jump'); ?>:  Alt-j">                                                 
+                                       <option value="0"><?php echo _AT('my_start_page'); ?></option>
+                                       <optgroup label="<?php echo _AT('courses_below'); ?>">
+                                               <?php foreach ($this->nav_courses as $this_course_id => $this_course_title): ?>
+                                                       <option value="<?php echo $this_course_id; ?>"><?php echo $this_course_title; ?></option>
+                                               <?php endforeach; ?>
+                                       </optgroup>
+                               </select> <input type="submit" name="jump" value="<?php echo _AT('jump'); ?>" class="button" /> </form>
+                       <!-- /end the jump menu -->
+                       <?php endif; ?>
+                       </div>
+                       <div id="top-links-text">
+                       <?php if ($_SESSION['is_super_admin']): ?>
+                               <a href="<?php echo $this->base_path; ?>bounce.php?admin"><?php echo _AT('return_to_admin_area'); ?></a> | 
+                       <?php endif; ?>
+
+                       <?php if ($this->course_id > -1): ?>
+                               <?php if (get_num_new_messages()): ?>
+                                       <a href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?> (<?php echo get_num_new_messages(); ?>)</a> 
+                               <?php else: ?>
+                                       <a href="<?php echo $this->base_path; ?>inbox/index.php"><?php echo _AT('inbox'); ?></a>
+                               <?php endif; ?>
+                       <?php endif; ?>
+               <?php endif; ?>
+               <?php if(!$this->just_social): ?>
+                       <a href="<?php echo $this->base_path; ?>search.php"><?php echo _AT('search'); ?></a> 
+               <?php endif; ?>
+               <a href="<?php echo $this->base_path; ?>help/index.php"><?php echo _AT('help'); ?></a>
+               </div>
+
+       </div>
+
+       <?php // if (!empty($this->icon)) { // if a course icon is available, display it here.  ?>
+               <!--<a href="<?php echo $this->base_path.url_rewrite('index.php'); ?>"><img src="<?php echo $this->icon; ?>" class="headicon" alt="<?php echo  _AT('home'); ?>" /></a>   -->
+       <?php // } ?>
+
+       <?php
+       // If there is a custom course banner in the file manager called banner.html, display it here
+       @readfile(AT_CONTENT_DIR . $this->course_id.'/banner.html'); 
+
+       /*
+       and example banner.html file might look like:
+       <div style="width: 760px; height: 42px; background: white;"><img src="http://[mysite]/atutor15rc3/banners/kart-camb.jpg"></div>
+       */
+
+       ?>
+       <!-- section title -->
+
+       <!-- Course Title -->
+       <div id="course_title_container" <?php if(empty($this->icon)){echo ' style="left:1em;"';}   ?>>
+       <h1 id="section-title"><?php echo $this->section_title; ?>
+               <?php if ((isset($this->course_id) && $this->course_id > 0) && ($_SESSION['enroll'] == AT_ENROLL_NO)) : ?> 
+                       - <small><a href="<?php echo $this->base_path; ?>enroll.php?course=<?php echo $this->course_id; ?>"><?php echo _AT('enroll_me'); ?></a></small>
+               <?php endif; ?>
+       </h1>
+       </div>
+
+
+
+
+<div id="topnavlistcontainer">
+<!-- the main navigation. in our case, tabs -->
+       <ul id="topnavlist">
+               <?php $accesscounter = 0; //initialize ?>
+               <?php foreach ($this->top_level_pages as $page): ?>
+                       <?php ++$accesscounter; $accesscounter = ($accesscounter == 10 ? 0 : $accesscounter); ?>
+                       <?php $accesskey_text = ($accesscounter < 10 ? 'accesskey="'.$accesscounter.'"' : ''); ?>
+                       <?php $accesskey_title = ($accesscounter < 10 ? ' Alt+'.$accesscounter : ''); ?>
+                       <?php if ($page['url'] == $this->current_top_level_page): ?>
+                               <li><a href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title'] . $accesskey_title; ?>" class="active"><?php echo $page['title']; ?></a></li>
+                       <?php else: ?>
+                               <li><a href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title'] . $accesskey_title; ?>"><?php echo $page['title']; ?></a></li>
+                       <?php endif; ?>
+                       <?php $accesscounter = ($accesscounter == 0 ? 11 : $accesscounter); ?>
+               <?php endforeach; ?>
+       </ul>
+</div>
+
+<div class="logoutbar">
+
+       <div>
+               <?php if (isset($_SESSION['valid_user']) && $_SESSION['valid_user']): ?>
+               <?php $path_parts = explode("/", $this->current_top_level_page); 
+                     $last_path_part = $path_parts[sizeof($path_parts) - 1];
+               if (!admin_authenticate(AT_ADMIN_PRIV_ADMIN, AT_PRIV_RETURN) && $last_path_part != 'preferences.php') {?>
+                   <a class="pref_wiz_launcher"><img border="0" alt="<?php echo _AT('preferences').' - '._AT('new_window'); ?>" src="<?php echo $this->base_href; ?>images/wand.png" class="img1616"/></a> |
+                   <?php } ?> 
+                       <strong><?php echo get_display_name($_SESSION['member_id']); ?></strong> | 
+                       <a href="<?php echo $this->base_path; ?>logout.php"><?php echo _AT('logout'); ?></a>
+               <?php else: ?>
+                        <a href="<?php echo $this->base_path; ?>login.php?course=<?php echo $this->course_id; ?>"><?php echo _AT('login'); ?></a> | <a href="<?php echo $this->base_path; ?>registration.php"><?php echo _AT('register'); ?></a>
+               <?php endif; ?>
+       </div>
+
+</div>
+
+         <?php if (isset($_SESSION["prefs"]["PREF_SHOW_BREAD_CRUMBS"]) && $_SESSION["prefs"]["PREF_SHOW_BREAD_CRUMBS"]) { ?>
+                 <!-- the bread crumbs -->
+               <div class="crumbcontainer">
+                 <div id="breadcrumbs">
+                         <?php foreach ($this->path as $page): ?>
+                                 <a href="<?php echo $page['url']; ?>"><?php echo htmlspecialchars($page['title'], ENT_COMPAT, "UTF-8"); ?></a> > 
+                         <?php endforeach; ?> <?php echo $this->page_title; ?>
+                 </div>
+         <?php } else { ?>
+          <div class="crumbcontainer" style="padding-bottom:1.2em;">
+         <?php } ?>
+                 <?php if (isset($this->guide) && isset($_SESSION["course_id"]) && $this->guide && ($_SESSION["prefs"]["PREF_SHOW_GUIDE"] || $_SESSION["course_id"] == "-1")) : ?>
+      <div id="guide_box">
+                         <a href="<?php echo $this->guide; ?>" id="guide" onclick="ATutor.poptastic('<?php echo $this->guide; ?>'); return false;" target="_new"><?php echo $this->page_title; ?></a>
+      </div>
+                 <?php endif; ?>
+      <?php if ($this->shortcuts): ?>
+      <div id="shortcuts">
+             <ul>
+                     <?php foreach ($this->shortcuts as $link): ?>
+                             <li><a href="<?php echo $link['url']; ?>"><img src="<?php echo $link['icon']; ?>" alt="<?php echo $link['title']; ?>"  title="<?php echo $link['title']; ?>" class="shortcut_icon"/><!-- <?php echo $link['title']; ?> --></a></li>
+                     <?php endforeach; ?>
+             </ul>
+      </div>
+      <?php endif; ?>
+      </div>
+
+<div id="contentwrapper" 
+               <?php if ($_SESSION["prefs"]["PREF_SHOW_BREAD_CRUMBS"] == 0):
+                       $style.='margin-top:-2em;';
+                       echo 'style="'.$style.'"';
+               endif; ?>>
+       <?php if (isset($this->course_id) && $this->course_id > 0 && $system_courses[$this->course_id]['side_menu']): ?>
+               <div id="leftcolumn">
+                 <a name="menu"></a>
+                    <div id="side-menu">
+                       <?php require(AT_INCLUDE_PATH.'side_menu.inc.php'); ?>
+                   </div>
+               </div>
+       <?php endif; ?>
+
+       <div id="contentcolumn">
+               <?php if (isset($this->course_id) && $this->course_id > 0 && $system_courses[$this->course_id]['side_menu']): ?>
+               <div id="menutoggle">
+                  <a href="javascript:void(0)" accesskey="n"><img src="" title="" alt="" border="0" class="img1616"/></a>
+               </div>
+
+               <div class="sequence-links">
+               <?php if ($_SESSION["prefs"]["PREF_SHOW_NEXT_PREVIOUS_BUTTONS"]) { ?>
+                       <?php if ($this->sequence_links['resume']): ?>
+                                       <a style="color:white;" href="<?php echo $this->sequence_links['resume']['url']; ?>" accesskey="."><img src="<?php echo $this->img; ?>resume.png" border="0" title="<?php echo _AT('resume').': '.$this->sequence_links['resume']['title']; ?> Alt+." alt="<?php echo $this->sequence_links['resume']['title']; ?> Alt+." class="img1616" /></a>
+                       <?php else:
+                               if ($this->sequence_links['previous']): ?>
+                                       <a href="<?php echo $this->sequence_links['previous']['url']; ?>" title="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> Alt+," accesskey=","><img src="<?php echo $this->img; ?>previous.png" border="0" alt="<?php echo _AT('previous_topic').': '. $this->sequence_links['previous']['title']; ?> Alt+," class="img1616" /></a>
+                               <?php endif;
+                               if ($this->sequence_links['next']): ?>
+                                       <a href="<?php echo $this->sequence_links['next']['url']; ?>" title="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?> Alt+." accesskey="."><img src="<?php echo $this->img; ?>next.png" border="0" alt="<?php echo _AT('next_topic').': '.$this->sequence_links['next']['title']; ?> Alt+." class="img1616" /></a>
+                               <?php endif; ?>
+                       <?php endif; ?>
+               <?php } ?>
+                       &nbsp;
+               </div>
+               <?php endif; ?>
+
+       <!-- the page title -->
+       <a name="content" title="<?php echo _AT('content'); ?>"></a>
+       <h2 class="page-title"><?php echo $this->page_title; ?></h2>
+       <?php global $msg; $msg->printAll(); $_base_href;?>
+
+       <?php if (count($this->sub_level_pages) > 0): ?>
+
+<!-- <div id="topnavlistcontainer">
+       <ul id="topnavlist">
+               <?php $accesscounter = 0; //initialize ?>
+               <?php foreach ($this->top_level_pages as $page): ?>
+                       <?php ++$accesscounter; $accesscounter = ($accesscounter == 10 ? 0 : $accesscounter); ?>
+                       <?php $accesskey_text = ($accesscounter < 10 ? 'accesskey="'.$accesscounter.'"' : ''); ?>
+                       <?php $accesskey_title = ($accesscounter < 10 ? ' Alt+'.$accesscounter : ''); ?>
+                       <?php if ($page['url'] == $this->current_top_level_page): ?>
+                               <li><a href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title'] . $accesskey_title; ?>" class="active"><?php echo $page['title']; ?></a></li>
+                       <?php else: ?>
+                               <li><a href="<?php echo $page['url']; ?>" <?php echo $accesskey_text; ?> title="<?php echo $page['title'] . $accesskey_title; ?>"><?php echo $page['title']; ?></a></li>
+                       <?php endif; ?>
+                       <?php $accesscounter = ($accesscounter == 0 ? 11 : $accesscounter); ?>
+               <?php endforeach; ?>
+       </ul>
+</div> -->
+
+               <div id="subnavlistcontainer">
+                       <div id="subnavbacktopage">
+                       <?php if (isset($this->back_to_page)): ?>
+                               <a href="<?php echo $this->back_to_page['url']; ?>">
+                               <img border="0" width="10" height="11" alt="<?php echo _AT('back_to').' '.htmlentities_utf8($this->back_to_page['title']); ?>" src="<?php echo $this->base_href; ?>images/arrowicon.gif" style="float:left;" class="img1111"/></a>&nbsp;
+                       <?php endif; ?>
+                       </div>
+
+                       <ul id="subnavlist">
+                       <?php $num_pages = count($this->sub_level_pages); 
+
+
+
+?>
+                       <?php for ($i=0; $i<$num_pages; $i++): ?>
+                               
+                               <?php if ($this->sub_level_pages[$i]['url'] == $this->current_sub_level_page): ?>
+                                     <li class="active"><?php echo htmlentities_utf8($this->sub_level_pages[$i]['title']); ?></li>
+                               <?php else: ?>
+                                       <li><a href="<?php echo $this->sub_level_pages[$i]['url']; ?>"><?php echo htmlentities_utf8($this->sub_level_pages[$i]['title']); ?></a></li>
+                               <?php endif; ?>
+                               <?php if ($i < $num_pages-1): 
+                                       echo " ";?>
+                               <?php endif; ?>
+                       <?php endfor; ?>
+                       </ul>
+               </div>
+       <?php endif; ?>
+
+<!-- the main navigation. in our case, tabs -->
diff --git a/docs/themes/tablet1/jquery.mobile-1.0b1.css b/docs/themes/tablet1/jquery.mobile-1.0b1.css
new file mode 100644 (file)
index 0000000..820a3b9
--- /dev/null
@@ -0,0 +1,1661 @@
+/*!
+ * jQuery Mobile v1.0b1
+ * http://jquerymobile.com/
+ *
+ * Copyright 2010, jQuery Project
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ */
+/*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
+* Note: Code is in draft form and is subject to change 
+*/
+
+
+/* A
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-bar-a {
+       border: 1px solid               #2A2A2A;
+       background:                     #111111;
+       color:                                  #ffffff;
+       font-weight: bold;
+       text-shadow: 0 -1px 1px #000000;
+       background-image: -moz-linear-gradient(top, 
+                                                       #3c3c3c, 
+                                                       #111111);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,   #3c3c3c),
+               color-stop(1,           #111111));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#3c3c3c', EndColorStr='#111111')";
+}
+.ui-bar-a, 
+.ui-bar-a input, 
+.ui-bar-a select, 
+.ui-bar-a textarea, 
+.ui-bar-a button {
+       font-family: Helvetica, Arial, sans-serif;
+}
+.ui-bar-a .ui-link-inherit {
+       color:                                  #fff;
+}
+.ui-bar-a .ui-link {
+       color:                                  #7cc4e7;
+       font-weight: bold;
+}
+.ui-body-a {
+       border: 1px solid               #2A2A2A;
+       background:                     #222222;
+       color:                                  #fff;
+        text-shadow: 0 1px 0   #000;
+       font-weight: normal;
+       background-image: -moz-linear-gradient(top, 
+                                                       #666666, 
+                                                       #222222);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #666666),
+               color-stop(1,           #222222));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#666666', EndColorStr='#222222)')";
+}
+.ui-body-a,
+.ui-body-a input,
+.ui-body-a select,
+.ui-body-a textarea,
+.ui-body-a button {
+       font-family: Helvetica, Arial, sans-serif;
+}
+.ui-body-a .ui-link-inherit {
+       color:                                  #fff;
+}
+.ui-body-a .ui-link {
+       color:                                  #2489CE;
+       font-weight: bold;
+}
+.ui-br {
+       border-bottom: rgb(130,130,130);
+       border-bottom: rgba(130,130,130,.3);
+       border-bottom-width: 1px;
+       border-bottom-style: solid;
+}
+.ui-btn-up-a {
+       border: 1px solid               #222;
+       background:                     #333333;
+       font-weight: bold;
+       color:                                  #fff;
+       text-shadow: 0 -1px 1px #000;
+       background-image: -moz-linear-gradient(top, 
+                                                       #555555, 
+                                                       #333333);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #555555),
+               color-stop(1,           #333333));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#555555', EndColorStr='#333333')";
+}
+.ui-btn-up-a a.ui-link-inherit {
+       color:                                  #fff;
+}
+.ui-btn-hover-a {
+       border: 1px solid               #000;
+       background:                     #444444;
+       font-weight: bold;
+       color:                                  #fff;
+       text-shadow: 0 -1px 1px #000;
+       background-image: -moz-linear-gradient(top, 
+                                                       #666666, 
+                                                       #444444);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #666666),
+               color-stop(1,           #444444));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#666666', EndColorStr='#444444')";
+}
+.ui-btn-hover-a a.ui-link-inherit {
+       color:                                  #fff;
+}
+.ui-btn-down-a {
+       border: 1px solid               #000;
+       background:                     #3d3d3d;
+       font-weight: bold;
+       color:                                  #fff;
+       text-shadow: 0 -1px 1px #000;
+       background-image: -moz-linear-gradient(top, 
+                                                       #333333, 
+                                                       #5a5a5a);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #333333),
+               color-stop(1,           #5a5a5a));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#333333', EndColorStr='#5a5a5a')";
+}
+.ui-btn-down-a a.ui-link-inherit {
+       color:                                  #fff;
+}
+.ui-btn-up-a,
+.ui-btn-hover-a,
+.ui-btn-down-a {
+       font-family: Helvetica, Arial, sans-serif;
+       text-decoration: none;
+}
+
+
+/* B
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-bar-b {
+       border: 1px solid               #456f9a;
+       background:                     #5e87b0;
+       color:                                  #fff;
+       font-weight: bold;
+       text-shadow: 0 -1px 1px #254f7a;
+       background-image: -moz-linear-gradient(top, 
+                                                       #81a8ce, 
+                                                       #5e87b0);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #81a8ce),
+               color-stop(1,           #5e87b0));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#81a8ce', EndColorStr='#5e87b0')";
+}
+.ui-bar-b,
+.ui-bar-b input,
+.ui-bar-b select,
+.ui-bar-b textarea,
+.ui-bar-b button {
+       font-family: Helvetica, Arial, sans-serif;
+}
+.ui-bar-b .ui-link-inherit {
+       color:                                  #fff;
+}
+.ui-bar-b .ui-link {
+       color:                                  #7cc4e7;
+       font-weight: bold;
+}
+
+.ui-body-b {
+       border: 1px solid               #C6C6C6;
+       background:                     #cccccc;
+       color:                                  #333333;
+       text-shadow: 0 1px 0    #fff;
+       font-weight: normal;
+       background-image: -moz-linear-gradient(top, 
+                                                       #e6e6e6, 
+                                                       #cccccc);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #e6e6e6),
+               color-stop(1,           #cccccc));
+        -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#e6e6e6', EndColorStr='#cccccc')";
+}
+.ui-body-b,
+.ui-body-b input,
+.ui-body-b select,
+.ui-body-b textarea,
+.ui-body-b button {
+       font-family: Helvetica, Arial, sans-serif;
+}
+.ui-body-b .ui-link-inherit {
+       color:                                  #333333;
+}
+.ui-body-b .ui-link {
+       color:                                  #2489CE;
+       font-weight: bold;
+}
+.ui-btn-up-b {
+       border: 1px solid               #145072;
+       background:                     #2567ab;
+       font-weight: bold;
+       color:                                  #fff;
+       text-shadow: 0 -1px 1px #145072;
+       background-image: -moz-linear-gradient(top, 
+                                                       #4e89c5, 
+                                                       #2567ab);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+                       color-stop(0,   #5f9cc5),
+                       color-stop(1,   #396b9e));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#4e89c5', EndColorStr='#2567ab')";
+}
+.ui-btn-up-b a.ui-link-inherit {
+       color:                                  #fff;
+}
+.ui-btn-hover-b {
+       border: 1px solid               #00516e;
+       background:                     #4b88b6;
+       font-weight: bold;
+       color:                                  #fff;
+       text-shadow: 0 -1px 1px #014D68;
+       background-image: -moz-linear-gradient(top, 
+                                                       #72b0d4, 
+                                                       #4b88b6);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+                       color-stop(0,   #72b0d4),
+                       color-stop(1,   #4b88b6));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#72b0d4', EndColorStr='#4b88b6')";
+}
+.ui-btn-hover-b a.ui-link-inherit {
+       color:                                  #fff;
+}
+.ui-btn-down-b {
+       border: 1px solid               #225377;
+       background:                     #4e89c5;
+       font-weight: bold;
+       color:                                  #fff;
+       text-shadow: 0 -1px 1px #225377;
+       background-image: -moz-linear-gradient(top, 
+                                                       #396b9e, 
+                                                       #4e89c5);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #396b9e),
+               color-stop(1,           #4e89c5));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#396b9e', EndColorStr='#4e89c5')";
+}
+.ui-btn-down-b a.ui-link-inherit {
+       color:                                  #fff;
+}
+.ui-btn-up-b,
+.ui-btn-hover-b,
+.ui-btn-down-b {
+       font-family: Helvetica, Arial, sans-serif;
+       text-decoration: none;
+}
+
+
+/* C
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-bar-c {
+       border: 1px solid               #B3B3B3;
+       background:                     #e9eaeb;
+       color:                                  #3E3E3E;
+       font-weight: bold;
+       text-shadow: 0 1px 1px  #fff;
+       background-image: -moz-linear-gradient(top, 
+                                                       #f0f0f0,
+                                                       #e9eaeb);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+                       color-stop(0,   #f0f0f0),
+                       color-stop(1,   #e9eaeb));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#f0f0f0', EndColorStr='#e9eaeb')";
+}
+.ui-bar-c,
+.ui-bar-c input,
+.ui-bar-c select,
+.ui-bar-c textarea,
+.ui-bar-c button {
+       font-family: Helvetica, Arial, sans-serif;
+}
+.ui-body-c {
+       border: 1px solid               #B3B3B3;
+       color:                                  #333333;
+       text-shadow: 0 1px 0    #fff;
+       background:                     #f0f0f0;
+       background-image: -moz-linear-gradient(top, 
+                                                       #eeeeee, 
+                                                       #dddddd);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #eeeeee),
+               color-stop(1,           #dddddd));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#eeeeee', EndColorStr='#dddddd')";
+}
+.ui-body-c,
+.ui-body-c input,
+.ui-body-c select,
+.ui-body-c textarea,
+.ui-body-c button {
+       font-family: Helvetica, Arial, sans-serif;
+}
+.ui-body-c .ui-link-inherit {
+       color:                                  #333333;
+}
+.ui-body-c .ui-link {
+       color:                                  #2489CE;
+       font-weight: bold;
+}
+
+.ui-btn-up-c {
+       border: 1px solid               #ccc;
+       background:                     #eee;
+       font-weight: bold;
+       color:                                  #444;
+       text-shadow: 0 1px 1px #f6f6f6;
+       background-image: -moz-linear-gradient(top, 
+                                                       #fefefe, 
+                                                       #eeeeee);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #fdfdfd),
+               color-stop(1,           #eeeeee));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#fdfdfd', EndColorStr='#eeeeee')";
+}
+.ui-btn-up-c a.ui-link-inherit {
+       color:                                  #2F3E46;
+}
+
+.ui-btn-hover-c {
+       border: 1px solid               #bbb;
+       background:                     #dadada;
+       font-weight: bold;
+       color:                                  #101010;
+       text-shadow: 0 1px 1px  #fff;
+       background-image: -moz-linear-gradient(top, 
+                                                       #ededed, 
+                                                       #dadada);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #ededed),
+               color-stop(1,           #dadada));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#ededed', EndColorStr='#dadada')";
+}
+.ui-btn-hover-c a.ui-link-inherit {
+       color:                                  #2F3E46;
+}
+.ui-btn-down-c {
+       border: 1px solid               #808080;
+       background:                     #fdfdfd;
+       font-weight: bold;
+       color:                                  #111111;
+       text-shadow: 0 1px 1px  #ffffff;
+       background-image: -moz-linear-gradient(top, 
+                                                       #eeeeee, 
+                                                       #fdfdfd);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #eeeeee),
+               color-stop(1,           #fdfdfd));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#eeeeee', EndColorStr='#fdfdfd')";
+}
+.ui-btn-down-c a.ui-link-inherit {
+       color:                                  #2F3E46;
+}
+.ui-btn-up-c,
+.ui-btn-hover-c,
+.ui-btn-down-c {
+       font-family: Helvetica, Arial, sans-serif;
+       text-decoration: none;
+}
+
+
+/* D
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-bar-d {
+       border: 1px solid               #ccc;
+       background:                     #bbb;
+       color:                                  #333;
+       text-shadow: 0 1px 0 #eee;
+       background-image: -moz-linear-gradient(top, 
+                                                       #ddd, 
+                                                       #bbb);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #ddd),
+               color-stop(1,           #bbb));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#dddddd', EndColorStr='#bbbbbb')";
+}
+.ui-bar-d,
+.ui-bar-d input,
+.ui-bar-d select,
+.ui-bar-d textarea,
+.ui-bar-d button {
+       font-family: Helvetica, Arial, sans-serif;
+}
+.ui-bar-d .ui-link-inherit {
+       color:                                  #333;
+}
+.ui-bar-d .ui-link {
+       color:                                  #2489CE;
+       font-weight: bold;
+}
+.ui-body-d {
+       border: 1px solid               #ccc;
+       color:                                  #333333;
+       text-shadow: 0 1px 0    #fff;
+       background:                     #ffffff;
+}
+.ui-body-d,
+.ui-body-d input,
+.ui-body-d select,
+.ui-body-d textarea,
+.ui-body-d button {
+       font-family: Helvetica, Arial, sans-serif;
+}
+.ui-body-d .ui-link-inherit {
+       color:                                  #333333;
+}
+.ui-body-d .ui-link {
+       color:                                  #2489CE;
+       font-weight: bold;
+}
+.ui-btn-up-d {
+       border: 1px solid               #ccc;
+       background:                     #fff;
+       font-weight: bold;
+       color:                                  #444;
+       text-shadow: 0 1px 1px #fff;
+}
+.ui-btn-up-d a.ui-link-inherit {
+       color:                                  #333;
+}
+.ui-btn-hover-d {
+       border: 1px solid               #aaa;
+       background:                     #eeeeee;
+       font-weight: bold;
+       color:                                  #222;
+       cursor: pointer;
+       text-shadow: 0 1px 1px  #fff;
+       background-image: -moz-linear-gradient(top, 
+                                                       #fdfdfd, 
+                                                       #eeeeee);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #fdfdfd),
+               color-stop(1,           #eeeeee));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#fdfdfd', EndColorStr='#eeeeee')";
+}
+.ui-btn-hover-d a.ui-link-inherit {
+       color:                                  #222;
+}
+.ui-btn-down-d {
+       border: 1px solid               #aaaaaa;
+       background:                     #ffffff;
+       font-weight: bold;
+       color:                                  #111;
+       text-shadow: 0 1px 1px  #ffffff;
+       background-image: -moz-linear-gradient(top, 
+                                                       #eeeeee, 
+                                                       #ffffff);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #eeeeee),
+               color-stop(1,           #ffffff));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#eeeeee', EndColorStr='#ffffff')";
+}
+.ui-btn-down-d a.ui-link-inherit {
+       color:                                  #111;
+}
+.ui-btn-up-d,
+.ui-btn-hover-d,
+.ui-btn-down-d {
+       font-family: Helvetica, Arial, sans-serif;
+       text-decoration: none;
+}
+
+
+/* E
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-bar-e {
+       border: 1px solid               #F7C942;
+       background:                     #fadb4e;
+       color:                                  #333;
+       text-shadow: 0 1px 0    #fff;
+       background-image: -moz-linear-gradient(top, 
+                                                       #fceda7, 
+                                                       #fadb4e);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #fceda7),
+               color-stop(1,           #fadb4e));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#fceda7', EndColorStr='#fadb4e')";
+}
+.ui-bar-e,
+.ui-bar-e input,
+.ui-bar-e select,
+.ui-bar-e textarea,
+.ui-bar-d button {
+       font-family: Helvetica, Arial, sans-serif;
+}
+.ui-bar-e .ui-link-inherit {
+       color:                                  #333;
+}
+.ui-bar-e .ui-link {
+       color:                                  #2489CE;
+       font-weight: bold;
+}
+.ui-body-e {
+       border: 1px solid               #F7C942;
+       color:                                  #333333;
+       text-shadow: 0 1px 0    #fff;
+       background:                     #faeb9e;
+       background-image: -moz-linear-gradient(top, 
+                                                       #fff, 
+                                                       #faeb9e);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #fff),
+               color-stop(1,           #faeb9e));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#faeb9e')";
+}
+.ui-body-e,
+.ui-body-e input,
+.ui-body-e select,
+.ui-body-e textarea,
+.ui-body-e button {
+       font-family: Helvetica, Arial, sans-serif;
+}
+.ui-body-e .ui-link-inherit {
+       color:                                  #333333;
+}
+.ui-body-e .ui-link {
+       color:                                  #2489CE;
+       font-weight: bold;
+}
+.ui-btn-up-e {
+       border: 1px solid               #F7C942;
+       background:                     #fadb4e;
+       font-weight: bold;
+       color:                                  #333;
+       text-shadow: 0 1px 0    #fff;
+       background-image: -moz-linear-gradient(top, 
+                                                       #fceda7, 
+                                                       #fadb4e);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #fceda7),
+               color-stop(1,           #fadb4e));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#fceda7', EndColorStr='#fadb4e')";
+}
+.ui-btn-up-e a.ui-link-inherit {
+       color:                                  #333;
+}
+.ui-btn-hover-e {
+       border: 1px solid               #e79952;
+       background:                     #fbe26f;
+       font-weight: bold;
+       color:                                  #111;
+       text-shadow: 0 1px 1px  #fff;
+       background-image: -moz-linear-gradient(top, 
+                                                       #fcf0b5, 
+                                                       #fbe26f);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #fcf0b5),
+               color-stop(1,           #fbe26f));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#fcf0b5', EndColorStr='#fbe26f')";
+}
+
+.ui-btn-hover-e a.ui-link-inherit {
+       color:                                  #333;
+}
+.ui-btn-down-e {
+       border: 1px solid               #F7C942;
+       background:                     #fceda7;
+       font-weight: bold;
+       color:                                  #111;
+       text-shadow: 0 1px 1px  #ffffff;
+       background-image: -moz-linear-gradient(top, 
+                                                       #fadb4e, 
+                                                       #fceda7);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #fadb4e),
+               color-stop(1,           #fceda7));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#fadb4e', EndColorStr='#fceda7')";
+}
+.ui-btn-down-e a.ui-link-inherit {
+       color:                                  #333;
+}
+.ui-btn-up-e,
+.ui-btn-hover-e,
+.ui-btn-down-e {
+       font-family: Helvetica, Arial, sans-serif;
+       text-decoration: none;
+}
+
+
+/* links within "buttons" 
+-----------------------------------------------------------------------------------------------------------*/
+
+a.ui-link-inherit {
+       text-decoration: none !important;
+}
+
+
+/* Active class used as the "on" state across all themes
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-btn-active {
+       border: 1px solid               #155678;
+       background:                     #4596ce;
+       font-weight: bold;
+       color:                                  #fff;
+       cursor: pointer;
+       text-shadow: 0 -1px 1px #145072;
+       text-decoration: none;
+       background-image: -moz-linear-gradient(top, 
+                                                       #85bae4, 
+                                                       #5393c5);
+       background-image: -webkit-gradient(linear,left top,left bottom,
+               color-stop(0,           #85bae4),
+               color-stop(1,           #5393c5));
+       -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#85bae4', EndColorStr='#5393c5')";
+       outline: none;
+}
+.ui-btn-active a.ui-link-inherit {
+       color:                                  #fff;
+}
+
+
+/* button inner top highlight
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-btn-inner {
+       border-top: 1px solid   #fff;
+       border-color:                   rgba(255,255,255,.3);
+}
+
+
+/* corner rounding classes
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-corner-tl {
+       -moz-border-radius-topleft:             .6em;
+       -webkit-border-top-left-radius:         .6em;
+       border-top-left-radius:                         .6em;
+}
+.ui-corner-tr {
+       -moz-border-radius-topright:            .6em;
+       -webkit-border-top-right-radius:        .6em;
+       border-top-right-radius:                        .6em;
+}
+.ui-corner-bl {
+       -moz-border-radius-bottomleft:          .6em;
+       -webkit-border-bottom-left-radius:      .6em;
+       border-bottom-left-radius:                      .6em;
+}
+.ui-corner-br {
+       -moz-border-radius-bottomright:         .6em;
+       -webkit-border-bottom-right-radius: .6em;
+       border-bottom-right-radius:             .6em;
+}
+.ui-corner-top {
+       -moz-border-radius-topleft:             .6em;
+       -webkit-border-top-left-radius:         .6em;
+       border-top-left-radius:                         .6em;
+       -moz-border-radius-topright:            .6em;
+       -webkit-border-top-right-radius:        .6em;
+       border-top-right-radius:                        .6em;
+}
+.ui-corner-bottom {
+       -moz-border-radius-bottomleft:          .6em;
+       -webkit-border-bottom-left-radius:      .6em;
+       border-bottom-left-radius:                      .6em;
+       -moz-border-radius-bottomright:         .6em;
+       -webkit-border-bottom-right-radius: .6em;
+       border-bottom-right-radius:             .6em;
+       }
+.ui-corner-right {
+       -moz-border-radius-topright:            .6em;
+       -webkit-border-top-right-radius:        .6em;
+       border-top-right-radius:                        .6em;
+       -moz-border-radius-bottomright:         .6em;
+       -webkit-border-bottom-right-radius: .6em;
+       border-bottom-right-radius:             .6em;
+}
+.ui-corner-left {
+       -moz-border-radius-topleft:             .6em;
+       -webkit-border-top-left-radius:         .6em;
+       border-top-left-radius:                         .6em;
+       -moz-border-radius-bottomleft:          .6em;
+       -webkit-border-bottom-left-radius:      .6em;
+       border-bottom-left-radius:                      .6em;
+}
+.ui-corner-all {
+       -moz-border-radius:                             .6em;
+       -webkit-border-radius:                          .6em;
+       border-radius:                                          .6em;
+}
+
+
+
+/* Interaction cues
+-----------------------------------------------------------------------------------------------------------*/
+.ui-disabled {
+       opacity:                                                        .3;
+}
+.ui-disabled,
+.ui-disabled a {
+       cursor: default;
+}
+
+/* Icons
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-icon {
+       background:                                             #666;
+       background:                                             rgba(0,0,0,.4);
+       background-image: url(images/icons-18-white.png);
+       background-repeat: no-repeat;
+       -moz-border-radius:                             9px;
+       -webkit-border-radius:                          9px;
+       border-radius:                                          9px;
+}
+
+
+/* Alt icon color
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-icon-alt {
+       background:                                             #fff;
+       background:                                             rgba(255,255,255,.3);
+       background-image: url(images/icons-18-black.png);
+       background-repeat: no-repeat;
+}
+
+/* HD/"retina" sprite
+-----------------------------------------------------------------------------------------------------------*/
+
+@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
+       only screen and (min--moz-device-pixel-ratio: 1.5),
+       only screen and (min-resolution: 240dpi) {
+       
+       .ui-icon-plus, .ui-icon-minus, .ui-icon-delete, .ui-icon-arrow-r,
+       .ui-icon-arrow-l, .ui-icon-arrow-u, .ui-icon-arrow-d, .ui-icon-check,
+       .ui-icon-gear, .ui-icon-refresh, .ui-icon-forward, .ui-icon-back,
+       .ui-icon-grid, .ui-icon-star, .ui-icon-alert, .ui-icon-info, .ui-icon-home, .ui-icon-search, 
+       .ui-icon-checkbox-off, .ui-icon-checkbox-on, .ui-icon-radio-off, .ui-icon-radio-on {
+               background-image: url(images/icons-36-white.png);
+               -moz-background-size: 776px 18px;
+               -o-background-size: 776px 18px;
+               -webkit-background-size: 776px 18px;
+               background-size: 776px 18px;
+       }
+       .ui-icon-alt {
+               background-image: url(images/icons-36-black.png);
+       }
+}
+
+/* plus minus */
+.ui-icon-plus {
+       background-position:    -0 50%;
+}
+.ui-icon-minus {
+       background-position:    -36px 50%;
+}
+
+/* delete/close */
+.ui-icon-delete {
+       background-position:    -72px 50%;
+}
+
+/* arrows */
+.ui-icon-arrow-r {
+       background-position:    -108px 50%;
+}
+.ui-icon-arrow-l {
+       background-position:    -144px 50%;
+}
+.ui-icon-arrow-u {
+       background-position:    -180px 50%;
+}
+.ui-icon-arrow-d {
+       background-position:    -216px 50%;
+}
+
+/* misc */
+.ui-icon-check {
+       background-position:    -252px 50%;
+}
+.ui-icon-gear {
+       background-position:    -288px 50%;
+}
+.ui-icon-refresh {
+       background-position:    -324px 50%;
+}
+.ui-icon-forward {
+       background-position:    -360px 50%;
+}
+.ui-icon-back {
+       background-position:    -396px 50%;
+}
+.ui-icon-grid {
+       background-position:    -432px 50%;
+}
+.ui-icon-star {
+       background-position:    -468px 50%;
+}
+.ui-icon-alert {
+       background-position:    -504px 50%;
+}
+.ui-icon-info {
+       background-position:    -540px 50%;
+}
+.ui-icon-home {
+       background-position:    -576px 50%;
+}
+.ui-icon-search {
+       background-position:    -612px 50%;
+}
+.ui-icon-checkbox-off {
+       background-position:    -684px 50%;
+}
+.ui-icon-checkbox-on {
+       background-position:    -648px 50%;
+}
+.ui-icon-radio-off {
+       background-position:    -756px 50%;
+}
+.ui-icon-radio-on {
+       background-position:    -720px 50%;
+}
+
+
+/* checks,radios */
+.ui-icon-checkbox-off,
+.ui-icon-checkbox-on,
+.ui-icon-radio-off,
+.ui-icon-radio-on {
+       background-color: transparent;
+       -moz-border-radius: 0;
+       -webkit-border-radius: 0;
+       border-radius: 0;
+}
+.ui-icon-searchfield {
+       background-image: url(images/icon-search-black.png);
+       background-size: 16px 16px;
+}
+
+/* loading icon */
+.ui-icon-loading {
+       background-image: url(images/ajax-loader.png);
+       width: 40px;
+       height: 40px;
+       -moz-border-radius: 20px;
+       -webkit-border-radius: 20px;
+       border-radius: 20px;
+       background-size: 35px 35px;
+}
+
+
+/* Button corner classes
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-btn-corner-tl {
+       -moz-border-radius-topleft:             1em;
+       -webkit-border-top-left-radius:         1em;
+       border-top-left-radius:                         1em;
+}
+.ui-btn-corner-tr {
+       -moz-border-radius-topright:            1em;
+       -webkit-border-top-right-radius:        1em;
+       border-top-right-radius:                        1em;
+}
+.ui-btn-corner-bl {
+       -moz-border-radius-bottomleft:          1em;
+       -webkit-border-bottom-left-radius:      1em;
+       border-bottom-left-radius:                      1em;
+}
+.ui-btn-corner-br {
+       -moz-border-radius-bottomright:         1em;
+       -webkit-border-bottom-right-radius: 1em;
+       border-bottom-right-radius:             1em;
+}
+.ui-btn-corner-top {
+       -moz-border-radius-topleft:             1em;
+       -webkit-border-top-left-radius:         1em;
+       border-top-left-radius:                         1em;
+       -moz-border-radius-topright:            1em;
+       -webkit-border-top-right-radius:        1em;
+       border-top-right-radius:                        1em;
+}
+.ui-btn-corner-bottom {
+       -moz-border-radius-bottomleft:          1em;
+       -webkit-border-bottom-left-radius:      1em;
+       border-bottom-left-radius:                      1em;
+       -moz-border-radius-bottomright:         1em;
+       -webkit-border-bottom-right-radius: 1em;
+       border-bottom-right-radius:             1em;
+}
+.ui-btn-corner-right {
+        -moz-border-radius-topright:           1em;
+       -webkit-border-top-right-radius:        1em;
+       border-top-right-radius:                        1em;
+       -moz-border-radius-bottomright:         1em;
+       -webkit-border-bottom-right-radius: 1em;
+       border-bottom-right-radius:             1em;
+}
+.ui-btn-corner-left {
+       -moz-border-radius-topleft:             1em;
+       -webkit-border-top-left-radius:         1em;
+       border-top-left-radius:                         1em;
+       -moz-border-radius-bottomleft:          1em;
+       -webkit-border-bottom-left-radius:      1em;
+       border-bottom-left-radius:                      1em;
+}
+.ui-btn-corner-all {
+       -moz-border-radius:                             1em;
+       -webkit-border-radius:                          1em;
+       border-radius:                                          1em;
+}
+
+/* radius clip workaround for cleaning up corner trapping */
+.ui-corner-tl,
+.ui-corner-tr,
+.ui-corner-bl, 
+.ui-corner-br,
+.ui-corner-top,
+.ui-corner-bottom, 
+.ui-corner-right,
+.ui-corner-left,
+.ui-corner-all,
+.ui-btn-corner-tl,
+.ui-btn-corner-tr,
+.ui-btn-corner-bl, 
+.ui-btn-corner-br,
+.ui-btn-corner-top,
+.ui-btn-corner-bottom, 
+.ui-btn-corner-right,
+.ui-btn-corner-left,
+.ui-btn-corner-all {
+  -webkit-background-clip: padding-box;
+     -moz-background-clip: padding-box;
+          background-clip: padding-box;
+}
+
+/* Overlay / modal
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-overlay {
+       background: #666;
+       opacity: .5;
+       filter: Alpha(Opacity=50);
+       position: absolute;
+       width: 100%;
+       height: 100%;
+}
+.ui-overlay-shadow {
+       -moz-box-shadow: 0px 0px 12px                   rgba(0,0,0,.6);
+       -webkit-box-shadow: 0px 0px 12px                rgba(0,0,0,.6);
+       box-shadow: 0px 0px 12px                                rgba(0,0,0,.6);
+}
+.ui-shadow {
+       -moz-box-shadow: 0px 1px 4px                    rgba(0,0,0,.3);
+       -webkit-box-shadow: 0px 1px 4px                 rgba(0,0,0,.3);
+       box-shadow: 0px 1px 4px                                 rgba(0,0,0,.3);
+}
+.ui-bar-a .ui-shadow,
+.ui-bar-b .ui-shadow ,
+.ui-bar-c .ui-shadow  {
+       -moz-box-shadow: 0px 1px 0                              rgba(255,255,255,.3);
+       -webkit-box-shadow: 0px 1px 0                   rgba(255,255,255,.3);
+       box-shadow: 0px 1px 0                                   rgba(255,255,255,.3);
+}
+.ui-shadow-inset {
+       -moz-box-shadow: inset 0px 1px 4px              rgba(0,0,0,.2);
+       -webkit-box-shadow: inset 0px 1px 4px   rgba(0,0,0,.2);
+       box-shadow: inset 0px 1px 4px                   rgba(0,0,0,.2);
+}
+.ui-icon-shadow {
+       -moz-box-shadow: 0px 1px 0                              rgba(255,255,255,.4);
+       -webkit-box-shadow: 0px 1px 0                   rgba(255,255,255,.4);
+       box-shadow: 0px 1px 0                                   rgba(255,255,255,.4);
+}
+
+
+/* Focus state - set here for specificity
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-focus {
+       -moz-box-shadow: 0px 0px 12px           #387bbe;
+       -webkit-box-shadow: 0px 0px 12px        #387bbe;
+       box-shadow: 0px 0px 12px                        #387bbe;
+}
+
+/* unset box shadow in browsers that don't do it right
+-----------------------------------------------------------------------------------------------------------*/
+
+.ui-mobile-nosupport-boxshadow * {
+       -moz-box-shadow: none !important;
+       -webkit-box-shadow: none !important;
+       box-shadow: none !important;
+}
+
+/* ...and bring back focus */
+.ui-mobile-nosupport-boxshadow .ui-focus {
+       outline-width: 2px;
+}/*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
+* Note: Code is in draft form and is subject to change 
+*/
+
+/* some unsets - more probably needed */
+.ui-mobile, .ui-mobile body { height: 100%; }
+.ui-mobile fieldset, .ui-page { padding: 0; margin: 0; }
+.ui-mobile a img, .ui-mobile fieldset { border: 0; }
+
+/* responsive page widths */
+.ui-mobile-viewport {  margin: 0; overflow-x: hidden; -webkit-text-size-adjust: none; -ms-text-size-adjust:none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
+
+/* "page" containers - full-screen views, one should always be in view post-pageload */
+.ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page { top: 0; left: 0; width: 100%; min-height: 100%; position: absolute; display: none; border: 0; } 
+.ui-mobile .ui-page-active { display: block; overflow: visible; }
+
+/*orientations from js are available */
+.portrait,
+.portrait .ui-page { min-height: 420px; }
+.landscape,
+.landscape .ui-page  { min-height: 300px; }
+
+/* loading screen */
+.ui-loading .ui-mobile-viewport { overflow: hidden !important; }
+.ui-loading .ui-loader { display: block; }
+.ui-loading .ui-page { overflow: hidden;  }
+.ui-loader { display: none; position: absolute; opacity: .85; z-index: 100; left: 50%; width: 200px; margin-left: -130px; margin-top: -35px; padding: 10px 30px; }
+.ui-loader h1 { font-size: 15px; text-align: center; }
+.ui-loader .ui-icon { position: static; display: block; opacity: .9; margin: 0 auto; width: 35px; height: 35px; background-color: transparent; }
+
+/*fouc*/
+.ui-mobile-rendering > * { visibility: hidden; }
+
+/*headers, content panels*/
+.ui-bar, .ui-body { position: relative; padding: .4em 15px;  overflow: hidden; display: block;  clear:both;  }
+.ui-bar { font-size: 16px; margin: 0; }
+.ui-bar h1, .ui-bar h2, .ui-bar h3, .ui-bar h4, .ui-bar h5, .ui-bar h6 { margin: 0; padding: 0; font-size: 16px; display: inline-block; }
+
+.ui-header, .ui-footer { display: block; }
+.ui-page .ui-header, .ui-page .ui-footer { position: relative; }
+.ui-header .ui-btn-left { position: absolute; left: 10px; top: .4em;  }
+.ui-header .ui-btn-right { position: absolute; right: 10px; top: .4em; }
+.ui-header .ui-title, .ui-footer .ui-title { min-height: 1.1em; text-align: center; font-size: 16px; display: block; margin: .6em 90px .8em;  padding: 0;  text-overflow: ellipsis; overflow: hidden; white-space: nowrap; outline: 0 !important; }
+
+/*content area*/
+.ui-content { border-width: 0; overflow: visible; overflow-x: hidden; padding: 15px; }
+.ui-page-fullscreen .ui-content { padding:0; }
+
+/* icons sizing */
+.ui-icon { width: 18px; height: 18px; }
+
+/* fullscreen class on ui-content div */
+.ui-fullscreen {  }
+.ui-fullscreen img { max-width: 100%; }
+
+/* non-js content hiding */
+.ui-nojs { position: absolute; left: -9999px; }
+/*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
+*/
+.spin  {
+       -webkit-transform: rotate(360deg);
+       -webkit-animation-name: spin;
+       -webkit-animation-duration: 1s;
+       -webkit-animation-iteration-count:  infinite;
+}
+@-webkit-keyframes spin {
+       from {-webkit-transform: rotate(0deg);}
+       to {-webkit-transform: rotate(360deg);}
+}
+
+/* Transitions from jQtouch (with small modifications): http://www.jqtouch.com/
+Built by David Kaneda and maintained by Jonathan Stark.
+*/
+.in, .out {
+       -webkit-animation-timing-function: ease-in-out;
+       -webkit-animation-duration: 350ms;
+}
+
+.slide.in {
+       -webkit-transform: translateX(0);
+       -webkit-animation-name: slideinfromright;
+}
+
+.slide.out {
+       -webkit-transform: translateX(-100%);
+       -webkit-animation-name: slideouttoleft;
+}
+
+.slide.in.reverse {
+       -webkit-transform: translateX(0);
+       -webkit-animation-name: slideinfromleft;
+}
+
+.slide.out.reverse {
+       -webkit-transform: translateX(100%);
+       -webkit-animation-name: slideouttoright;
+}
+
+.slideup.in {
+       -webkit-transform: translateY(0);
+       -webkit-animation-name: slideinfrombottom;
+       z-index: 10;
+}
+
+.slideup.out {
+       -webkit-animation-name: dontmove;
+       z-index: 0;
+}
+
+.slideup.out.reverse {
+       -webkit-transform: translateY(100%);
+       z-index: 10;
+       -webkit-animation-name: slideouttobottom;
+}
+
+.slideup.in.reverse {
+       z-index: 0;
+       -webkit-animation-name: dontmove;
+}
+.slidedown.in {
+       -webkit-transform: translateY(0);
+       -webkit-animation-name: slideinfromtop;
+       z-index: 10;
+}
+
+.slidedown.out {
+       -webkit-animation-name: dontmove;
+       z-index: 0;
+}
+
+.slidedown.out.reverse {
+       -webkit-transform: translateY(-100%);
+       z-index: 10;
+       -webkit-animation-name: slideouttotop;
+}
+
+.slidedown.in.reverse {
+       z-index: 0;
+       -webkit-animation-name: dontmove;
+}
+
+@-webkit-keyframes slideinfromright {
+    from { -webkit-transform: translateX(100%); }
+    to { -webkit-transform: translateX(0); }
+}
+
+@-webkit-keyframes slideinfromleft {
+    from { -webkit-transform: translateX(-100%); }
+    to { -webkit-transform: translateX(0); }
+}
+
+@-webkit-keyframes slideouttoleft {
+    from { -webkit-transform: translateX(0); }
+    to { -webkit-transform: translateX(-100%); }
+}
+
+@-webkit-keyframes slideouttoright {
+    from { -webkit-transform: translateX(0); }
+    to { -webkit-transform: translateX(100%); }
+}
+
+
+@-webkit-keyframes slideinfromtop {
+    from { -webkit-transform: translateY(-100%); }
+    to { -webkit-transform: translateY(0); }
+}
+
+@-webkit-keyframes slideinfrombottom {
+    from { -webkit-transform: translateY(100%); }
+    to { -webkit-transform: translateY(0); }
+}
+
+@-webkit-keyframes slideouttobottom {
+    from { -webkit-transform: translateY(0); }
+    to { -webkit-transform: translateY(100%); }
+}
+
+@-webkit-keyframes slideouttotop {
+    from { -webkit-transform: translateY(0); }
+    to { -webkit-transform: translateY(-100%); }
+}
+@-webkit-keyframes fadein {
+    from { opacity: 0; }
+    to { opacity: 1; }
+}
+
+@-webkit-keyframes fadeout {
+    from { opacity: 1; }
+    to { opacity: 0; }
+}
+
+.fade.in {
+       opacity: 1;
+       z-index: 10;
+       -webkit-animation-name: fadein;
+}
+.fade.out {
+       z-index: 0;
+       -webkit-animation-name: fadeout;
+}
+
+/* The properties in this rule are only necessary for the 'flip' transition.
+ * We need specify the perspective to create a projection matrix. This will add
+ * some depth as the element flips. The depth number represents the distance of
+ * the viewer from the z-plane. According to the CSS3 spec, 1000 is a moderate
+ * value.
+ */
+.viewport-flip {
+       -webkit-perspective: 1000;
+       position: absolute;
+}
+
+.ui-mobile-viewport-transitioning,
+.ui-mobile-viewport-transitioning .ui-page {
+       width: 100%;
+       height: 100%;
+       overflow: hidden;
+}
+
+.flip {
+       -webkit-animation-duration: .65s;
+       -webkit-backface-visibility:hidden;
+       -webkit-transform:translateX(0); /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
+}
+
+.flip.in {
+       -webkit-transform: rotateY(0) scale(1);
+       -webkit-animation-name: flipinfromleft;
+}
+
+.flip.out {
+       -webkit-transform: rotateY(-180deg) scale(.8);
+       -webkit-animation-name: flipouttoleft;
+}
+
+/* Shake it all about */
+
+.flip.in.reverse {
+       -webkit-transform: rotateY(0) scale(1);
+       -webkit-animation-name: flipinfromright;
+}
+
+.flip.out.reverse {
+       -webkit-transform: rotateY(180deg) scale(.8);
+       -webkit-animation-name: flipouttoright;
+}
+
+@-webkit-keyframes flipinfromright {
+    from { -webkit-transform: rotateY(-180deg) scale(.8); }
+    to { -webkit-transform: rotateY(0) scale(1); }
+}
+
+@-webkit-keyframes flipinfromleft {
+    from { -webkit-transform: rotateY(180deg) scale(.8); }
+    to { -webkit-transform: rotateY(0) scale(1); }
+}
+
+@-webkit-keyframes flipouttoleft {
+    from { -webkit-transform: rotateY(0) scale(1); }
+    to { -webkit-transform: rotateY(-180deg) scale(.8); }
+}
+
+@-webkit-keyframes flipouttoright {
+    from { -webkit-transform: rotateY(0) scale(1); }
+    to { -webkit-transform: rotateY(180deg) scale(.8); }
+}
+
+
+/* Hackish, but reliable. */
+
+@-webkit-keyframes dontmove {
+    from { opacity: 1; }
+    to { opacity: 1; }
+}
+
+.pop {
+       -webkit-transform-origin: 50% 50%;
+}
+
+.pop.in {
+       -webkit-transform: scale(1);
+    opacity: 1;
+       -webkit-animation-name: popin;
+       z-index: 10;
+}
+
+.pop.out.reverse {
+       -webkit-transform: scale(.2);
+       opacity: 0;
+       -webkit-animation-name: popout;
+       z-index: 10;
+}
+
+.pop.in.reverse {
+       z-index: 0;
+       -webkit-animation-name: dontmove;
+}
+
+@-webkit-keyframes popin {
+    from {
+        -webkit-transform: scale(.2);
+        opacity: 0;
+    }
+    to {
+        -webkit-transform: scale(1);
+        opacity: 1;
+    }
+}
+
+@-webkit-keyframes popout {
+    from {
+        -webkit-transform: scale(1);
+        opacity: 1;
+    }
+    to {
+        -webkit-transform: scale(.2);
+        opacity: 0;
+    }
+}/*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
+*/
+
+/* content configurations. */
+.ui-grid-a, .ui-grid-b, .ui-grid-c, .ui-grid-d { overflow: hidden; }
+.ui-block-a, .ui-block-b, .ui-block-c, .ui-block-d, .ui-block-e { margin: 0; padding: 0; border: 0; float: left; min-height:1px;}
+
+/* grid solo: 100 - single item fallback */
+.ui-grid-solo .ui-block-a { width: 100%; float: none; }
+
+/* grid a: 50/50 */
+.ui-grid-a .ui-block-a, .ui-grid-a .ui-block-b { width: 50%; }
+.ui-grid-a .ui-block-a { clear: left; }
+
+/* grid b: 33/33/33 */
+.ui-grid-b .ui-block-a, .ui-grid-b .ui-block-b, .ui-grid-b .ui-block-c { width: 33.333%; }
+.ui-grid-b .ui-block-a { clear: left; }
+
+/* grid c: 25/25/25/25 */
+.ui-grid-c .ui-block-a, .ui-grid-c .ui-block-b, .ui-grid-c .ui-block-c, .ui-grid-c .ui-block-d { width: 25%; }
+.ui-grid-c .ui-block-a { clear: left; }
+
+/* grid d: 20/20/20/20/20 */
+.ui-grid-d .ui-block-a, .ui-grid-d .ui-block-b, .ui-grid-d .ui-block-c, .ui-grid-d .ui-block-d, .ui-grid-d .ui-block-e { width: 20%; }
+.ui-grid-d .ui-block-a { clear: left; }
+/*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
+*/
+/* fixed page header & footer configuration */
+.ui-header, .ui-footer, .ui-page-fullscreen .ui-header, .ui-page-fullscreen .ui-footer  { position: absolute;  overflow: hidden; width: 100%; border-left-width: 0; border-right-width: 0; }
+.ui-header-fixed, .ui-footer-fixed {
+       z-index: 1000;
+       -webkit-transform: translateZ(0); /* Force header/footer rendering to go through the same rendering pipeline as native page scrolling. */
+}
+.ui-footer-duplicate, .ui-page-fullscreen .ui-fixed-inline { display: none; }
+.ui-page-fullscreen .ui-header, .ui-page-fullscreen .ui-footer { opacity: .9; }
+/*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
+*/
+.ui-navbar { overflow: hidden;  }
+.ui-navbar ul, .ui-navbar-expanded ul { list-style:none; padding: 0; margin: 0; position: relative; display: block; border: 0;}
+.ui-navbar-collapsed ul { float: left; width: 75%; margin-right: -2px; }
+.ui-navbar-collapsed .ui-navbar-toggle { float: left; width: 25%; }
+.ui-navbar li.ui-navbar-truncate { position: absolute; left: -9999px; top: -9999px; }
+.ui-navbar li .ui-btn, .ui-navbar .ui-navbar-toggle .ui-btn { display: block; font-size: 12px; text-align: center; margin: 0; border-right-width: 0; }
+.ui-navbar li .ui-btn {  margin-right: -1px; }
+.ui-navbar li .ui-btn:last-child { margin-right: 0; }
+.ui-header .ui-navbar li .ui-btn, .ui-header .ui-navbar .ui-navbar-toggle .ui-btn,
+.ui-footer .ui-navbar li .ui-btn, .ui-footer .ui-navbar .ui-navbar-toggle .ui-btn { border-top-width: 0; border-bottom-width: 0; }
+.ui-navbar .ui-btn-inner { padding-left: 2px; padding-right: 2px; }
+.ui-navbar-noicons li .ui-btn .ui-btn-inner, .ui-navbar-noicons .ui-navbar-toggle .ui-btn-inner { padding-top: .8em; padding-bottom: .9em; }
+/*expanded page styles*/
+.ui-navbar-expanded .ui-btn { margin: 0; font-size: 14px; }
+.ui-navbar-expanded .ui-btn-inner { padding-left: 5px; padding-right: 5px;  }
+.ui-navbar-expanded .ui-btn-icon-top .ui-btn-inner { padding: 45px 5px 15px; text-align: center; }
+.ui-navbar-expanded .ui-btn-icon-top .ui-icon { top: 15px; }
+.ui-navbar-expanded .ui-btn-icon-bottom .ui-btn-inner { padding: 15px 5px 45px; text-align: center; }
+.ui-navbar-expanded .ui-btn-icon-bottom .ui-icon { bottom: 15px; }
+.ui-navbar-expanded li .ui-btn .ui-btn-inner { min-height: 2.5em; }
+.ui-navbar-expanded .ui-navbar-noicons .ui-btn .ui-btn-inner { padding-top: 1.8em; padding-bottom: 1.9em; }
+/*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
+*/
+.ui-btn { display: block; text-align: center; cursor:pointer;  position: relative; margin: .5em 5px; padding: 0; }
+.ui-btn:focus, .ui-btn:active { outline: none; }
+.ui-header .ui-btn, .ui-footer .ui-btn, .ui-bar .ui-btn { display: inline-block; font-size: 13px; margin: 0; }
+.ui-btn-inline { display: inline-block; }
+.ui-btn-inner { padding: .6em 25px; display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; position: relative; }
+.ui-header .ui-btn-inner, .ui-footer .ui-btn-inner, .ui-bar .ui-btn-inner { padding: .4em 8px .5em; }
+.ui-btn-icon-notext { display: inline-block; width: 20px; height: 20px; padding: 2px 1px 2px 3px; text-indent: -9999px; }
+.ui-btn-icon-notext .ui-btn-inner { padding: 0; }
+.ui-btn-icon-notext .ui-btn-text { position: absolute; left: -999px; }
+.ui-btn-icon-left .ui-btn-inner { padding-left: 33px; }
+.ui-header .ui-btn-icon-left .ui-btn-inner,
+.ui-footer .ui-btn-icon-left .ui-btn-inner,
+.ui-bar .ui-btn-icon-left .ui-btn-inner { padding-left: 27px; }
+.ui-btn-icon-right .ui-btn-inner { padding-right: 33px; }
+.ui-header .ui-btn-icon-right .ui-btn-inner,
+.ui-footer .ui-btn-icon-right .ui-btn-inner,
+.ui-bar .ui-btn-icon-right .ui-btn-inner { padding-right: 27px; }
+.ui-btn-icon-top .ui-btn-inner { padding-top: 33px; }
+.ui-header .ui-btn-icon-top .ui-btn-inner,
+.ui-footer .ui-btn-icon-top .ui-btn-inner,
+.ui-bar .ui-btn-icon-top .ui-btn-inner { padding-top: 27px; }
+.ui-btn-icon-bottom .ui-btn-inner { padding-bottom: 33px; }
+.ui-header .ui-btn-icon-bottom .ui-btn-inner,
+.ui-footer .ui-btn-icon-bottom .ui-btn-inner,
+.ui-bar .ui-btn-icon-bottom .ui-btn-inner { padding-bottom: 27px; }
+
+/*btn icon positioning*/
+.ui-btn-icon-notext .ui-icon { display: block; }
+.ui-btn-icon-left .ui-icon, .ui-btn-icon-right .ui-icon { position: absolute; top: 50%; margin-top: -9px; }
+.ui-btn-icon-top .ui-icon, .ui-btn-icon-bottom .ui-icon { position: absolute; left: 50%;  margin-left: -9px; }
+.ui-btn-icon-left .ui-icon { left: 10px; }
+.ui-btn-icon-right .ui-icon {right: 10px; }
+.ui-header .ui-btn-icon-left .ui-icon,
+.ui-footer .ui-btn-icon-left .ui-icon,
+.ui-bar .ui-btn-icon-left .ui-icon { left: 4px; }
+.ui-header .ui-btn-icon-right .ui-icon,
+.ui-footer .ui-btn-icon-right .ui-icon,
+.ui-bar .ui-btn-icon-right .ui-icon { right: 4px; }
+.ui-header .ui-btn-icon-top .ui-icon,
+.ui-footer .ui-btn-icon-top .ui-icon,
+.ui-bar .ui-btn-icon-top .ui-icon { top: 4px; }
+.ui-header .ui-btn-icon-bottom .ui-icon,
+.ui-footer .ui-btn-icon-bottom .ui-icon,
+.ui-bar .ui-btn-icon-bottom .ui-icon { bottom: 4px; }
+.ui-btn-icon-top .ui-icon { top: 5px; }
+.ui-btn-icon-bottom .ui-icon { bottom: 5px; }
+/*hiding native button,inputs */
+.ui-btn-hidden {  position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-appearance: button; opacity: 0; cursor: pointer; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); background: transparent; }
+/*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
+*/
+.ui-collapsible-contain { margin: .5em 0; }
+.ui-collapsible-heading { font-size: 16px; display: block; margin: 0 -8px; padding: 0; border-width: 0 0 1px 0; position: relative; }
+.ui-collapsible-heading a { text-align: left; margin: 0;  }
+.ui-collapsible-heading a .ui-btn-inner { padding-left: 40px; }
+.ui-collapsible-heading a span.ui-btn { position: absolute; left: 6px; top: 50%; margin: -12px 0 0 0; width: 20px; height: 20px; padding: 1px 0px 1px 2px; text-indent: -9999px; }
+.ui-collapsible-heading a span.ui-btn .ui-btn-inner { padding: 10px 0; }
+.ui-collapsible-heading a span.ui-btn .ui-icon { left: 0; margin-top: -10px; }
+.ui-collapsible-heading-status { position:absolute; left:-9999px; }
+.ui-collapsible-content {  display: block; padding: 10px 0 10px 8px; }
+.ui-collapsible-content-collapsed { display: none; }
+
+.ui-collapsible-set { margin: .5em 0; }
+.ui-collapsible-set .ui-collapsible-contain { margin: -1px 0 0; }
+/*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
+*/
+.ui-controlgroup, fieldset.ui-controlgroup { padding: 0; margin: .5em 0 1em; }
+.ui-bar .ui-controlgroup { margin: 0 .3em; }
+.ui-controlgroup-label { font-size: 16px; line-height: 1.4; font-weight: normal; margin: 0 0 .3em; }
+.ui-controlgroup-controls { display: block; width: 95%;}
+.ui-controlgroup li { list-style: none; }
+.ui-controlgroup-vertical .ui-btn,
+.ui-controlgroup-vertical .ui-checkbox, .ui-controlgroup-vertical .ui-radio { margin: 0; border-bottom-width: 0;  }
+.ui-controlgroup-vertical .ui-controlgroup-last { border-bottom-width: 1px; }
+.ui-controlgroup-horizontal { padding: 0; }
+.ui-controlgroup-horizontal .ui-btn,
+.ui-controlgroup-horizontal .ui-checkbox, .ui-controlgroup-horizontal .ui-radio { display: inline-block; margin: 0 -5px 0 0; }
+.ui-controlgroup-horizontal .ui-checkbox, .ui-controlgroup-horizontal .ui-radio { display: inline; }
+.ui-controlgroup-horizontal .ui-checkbox .ui-btn, .ui-controlgroup-horizontal .ui-radio .ui-btn,
+.ui-controlgroup-horizontal .ui-checkbox:last-child, .ui-controlgroup-horizontal .ui-radio:last-child { margin-right: 0; }
+.ui-controlgroup-horizontal .ui-controlgroup-last { margin-right: 0; }
+.ui-controlgroup .ui-checkbox label, .ui-controlgroup .ui-radio label { font-size: 16px;  }
+/* conflicts with listview..
+.ui-controlgroup .ui-btn-icon-notext { width: 30px; height: 30px; text-indent: -9999px; }
+.ui-controlgroup .ui-btn-icon-notext .ui-btn-inner {  padding: 5px 6px 5px 5px; }
+*/
+
+@media all and (min-width: 450px){
+       .ui-controlgroup-label { vertical-align: top; display: inline-block;  width: 20%;  margin: 0 2% 0 0;  }
+       .ui-controlgroup-controls { width: 60%; display: inline-block; } 
+}      /*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
+*/
+.ui-dialog { min-height: 480px; }
+.ui-dialog .ui-header, .ui-dialog .ui-content,  .ui-dialog .ui-footer { margin: 15px; position: relative; }
+.ui-dialog .ui-header, .ui-dialog .ui-footer { z-index: 10; width: auto; }
+.ui-dialog .ui-content, .ui-dialog .ui-footer { margin-top: -15px;  }/*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
+*/
+.ui-checkbox, .ui-radio { position:relative;  margin: .2em 0 .5em; z-index: 1;  }
+.ui-checkbox .ui-btn, .ui-radio .ui-btn { margin: 0; text-align: left; z-index: 2; }
+.ui-checkbox .ui-btn-inner, .ui-radio .ui-btn-inner { white-space: normal; }
+.ui-checkbox .ui-btn-icon-left .ui-btn-inner,.ui-radio .ui-btn-icon-left .ui-btn-inner { padding-left: 45px; }
+.ui-checkbox .ui-btn-icon-right .ui-btn-inner, .ui-radio .ui-btn-icon-right .ui-btn-inner { padding-right: 45px; }
+.ui-checkbox .ui-icon, .ui-radio .ui-icon { top: 1.1em; }
+.ui-checkbox .ui-btn-icon-left .ui-icon, .ui-radio .ui-btn-icon-left .ui-icon {left: 15px; }
+.ui-checkbox .ui-btn-icon-right .ui-icon, .ui-radio .ui-btn-icon-right .ui-icon {right: 15px; }
+/* input, label positioning */
+.ui-checkbox input,.ui-radio input { position:absolute; left:20px; top:50%; width: 10px; height: 10px;  margin:-5px 0 0 0; outline: 0 !important; z-index: 1; }/*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
+*/
+.ui-field-contain { background: none; padding: 1.5em 0; margin: 0; border-bottom-width: 1px; overflow: visible; }
+.ui-field-contain:first-child { border-top-width: 0; }
+@media all and (min-width: 450px){
+       .ui-field-contain { border-width: 0; padding: 0; margin: 1em 0; }
+}      /*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
+*/
+.ui-select { display: block; position: relative; }
+.ui-select select { position: absolute; left: -9999px; top: -9999px; }
+.ui-select .ui-btn { overflow: hidden; }
+.ui-select .ui-btn select { cursor: pointer; -webkit-appearance: button; left: 0; top:0; width: 100%; height: 100%; opacity: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; filter: alpha(opacity=0); }
+@-moz-document url-prefix() {.ui-select .ui-btn select { opacity: 0.0001; }}
+.ui-select .ui-btn select.ui-select-nativeonly { opacity: 1; text-indent: 0; }
+
+.ui-select .ui-btn-icon-right .ui-btn-inner { padding-right: 45px; } 
+.ui-select .ui-btn-icon-right .ui-icon { right: 15px;  }
+
+/* labels */
+label.ui-select { font-size: 16px; line-height: 1.4;  font-weight: normal; margin: 0 0 .3em; display: block; }
+
+/*listbox*/
+.ui-select .ui-btn-text, .ui-selectmenu .ui-btn-text { display: inline-block; min-height: 1em; }
+.ui-select .ui-btn-text { text-overflow: ellipsis; overflow: hidden; display: block;}
+
+.ui-selectmenu { position: absolute; padding: 0; z-index: 100 !important; width: 80%; max-width: 350px; padding: 6px; }
+.ui-selectmenu .ui-listview { margin: 0; }
+.ui-selectmenu .ui-btn.ui-li-divider { cursor: default; }
+.ui-selectmenu-hidden { top: -9999px; left: -9999px; }
+.ui-selectmenu-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%;  z-index: 99; }
+.ui-screen-hidden, .ui-selectmenu-list .ui-li .ui-icon { display: none; }
+.ui-selectmenu-list .ui-li .ui-icon { display: block; }
+.ui-li.ui-selectmenu-placeholder { display: none; }
+.ui-selectmenu .ui-header .ui-title { margin: 0.6em 46px 0.8em; }
+
+@media all and (min-width: 450px){
+       label.ui-select { display: inline-block;  width: 20%;  margin: 0 2% 0 0; }
+       .ui-select { width: 60%; display: inline-block; }
+}      
+
+/* when no placeholder is defined in a multiple select, the header height doesn't even extend past the close button.  this shim's content in there */
+.ui-selectmenu .ui-header h1:after { content: '.'; visibility: hidden; }/*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
+*/
+label.ui-input-text { font-size: 16px; line-height: 1.4; display: block; font-weight: normal; margin: 0 0 .3em; }
+input.ui-input-text, textarea.ui-input-text { background-image: none; padding: .4em; line-height: 1.4; font-size: 16px; display: block; width: 95%; }
+input.ui-input-text { -webkit-appearance: none; }
+textarea.ui-input-text { height: 50px; -webkit-transition: height 200ms linear; -moz-transition: height 200ms linear; -o-transition: height 200ms linear; transition: height 200ms linear; }
+.ui-input-search { padding: 0 30px; width: 77%; background-position: 8px 50%; background-repeat: no-repeat; position: relative; }
+.ui-input-search input.ui-input-text { border: none; width: 98%; padding: .4em 0; margin: 0; display: block; background: transparent none; outline: 0 !important; }
+.ui-input-search .ui-input-clear { position: absolute; right: 0; top: 50%; margin-top: -14px; }
+.ui-input-search .ui-input-clear-hidden { display: none; }
+
+/* orientation adjustments - incomplete!*/
+@media all and (min-width: 450px){
+       label.ui-input-text  { vertical-align: top; display: inline-block;  width: 20%;  margin: 0 2% 0 0 }
+       input.ui-input-text, 
+       textarea.ui-input-text, 
+       .ui-input-search { width: 60%; display: inline-block; } 
+       .ui-input-search { width: 50%; }
+       .ui-input-search input.ui-input-text { width: 98%; /*echos rule from above*/ }
+}/*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
+*/
+.ui-listview { margin: 0; counter-reset: listnumbering; }
+.ui-content .ui-listview { margin: -15px; }
+.ui-content .ui-listview-inset { margin: 1em 0;  }
+.ui-listview, .ui-li { list-style:none; padding:0; }
+.ui-li, .ui-li.ui-field-contain { display: block; margin:0; position: relative; overflow: visible; text-align: left; border-width: 0; border-top-width: 1px; }
+.ui-li .ui-btn-text a.ui-link-inherit { text-overflow: ellipsis; overflow: hidden; white-space: nowrap;  }
+.ui-li-divider, .ui-li-static { padding: .5em 15px; font-size: 14px; font-weight: bold;  }
+.ui-li-divider { counter-reset: listnumbering;  }
+ol.ui-listview .ui-link-inherit:before, ol.ui-listview .ui-li-static:before, .ui-li-dec { font-size: .8em; display: inline-block; padding-right: .3em; font-weight: normal;counter-increment: listnumbering; content: counter(listnumbering) ". "; }
+ol.ui-listview .ui-li-jsnumbering:before { content: "" !important; } /* to avoid chance of duplication */
+.ui-listview-inset .ui-li { border-right-width: 1px; border-left-width: 1px; }
+.ui-li:last-child, .ui-li.ui-field-contain:last-child { border-bottom-width: 1px; }
+.ui-li>.ui-btn-inner { display: block; position: relative; padding: 0; }
+.ui-li .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li { padding: .7em 75px .7em 15px; display: block; }
+.ui-li-has-thumb .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-thumb  { min-height: 60px; padding-left: 100px; }
+.ui-li-has-icon .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-icon {  min-height: 20px; padding-left: 40px; }
+.ui-li-heading { font-size: 16px; font-weight: bold; display: block; margin: .6em 0; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;  }
+.ui-li-desc {  font-size: 12px; font-weight: normal; display: block; margin: -.5em 0 .6em; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
+.ui-li-thumb, .ui-li-icon { position: absolute; left: 1px; top: 0; max-height: 80px; max-width: 80px; }
+.ui-li-icon { max-height: 40px; max-width: 40px; left: 10px; top: .9em; }
+.ui-li-thumb, .ui-li-icon, .ui-li-content { float: left; margin-right: 10px; }
+
+.ui-li-aside { float: right; width: 50%; text-align: right; margin: .3em 0; }
+@media all and (min-width: 480px){
+        .ui-li-aside { width: 45%; }
+}       
+.ui-li-divider { cursor: default; }
+.ui-li-has-alt .ui-btn-inner a.ui-link-inherit, .ui-li-static.ui-li-has-alt { padding-right: 95px; }
+.ui-li-count { position: absolute; font-size: 11px; font-weight: bold; padding: .2em .5em; top: 50%; margin-top: -.9em; right: 38px; }
+.ui-li-divider .ui-li-count, .ui-li-static .ui-li-count { right: 10px; }
+.ui-li-has-alt .ui-li-count { right: 55px; }
+.ui-li-link-alt { position: absolute; width: 40px; height: 100%; border-width: 0; border-left-width: 1px; top: 0; right: 0; margin: 0; padding: 0; }
+.ui-li-link-alt .ui-btn { overflow: hidden; position: absolute; right: 8px; top: 50%; margin: -11px 0 0 0; border-bottom-width: 1px; }
+.ui-li-link-alt .ui-btn-inner { padding: 0; position: static; }
+.ui-li-link-alt .ui-btn .ui-icon { right: 50%; margin-right: -9px;  }
+
+.ui-listview-filter { border-width: 0; overflow: hidden; margin: -15px -15px 15px -15px }
+.ui-listview-filter .ui-input-search { margin: 5px; width: auto; display: block; }
+
+.ui-listview-filter-inset { margin: -15px -5px -15px -5px; background: transparent; }
+.ui-li.ui-screen-hidden{display:none;}
+/* Odd iPad positioning issue. */
+@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
+    .ui-li .ui-btn-text { overflow:  visible; }
+}/*
+* jQuery Mobile Framework
+* Copyright (c) jQuery Project
+* Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses.
+*/
+label.ui-slider { display: block; }
+input.ui-slider-input  { display: inline-block; width: 50px; }
+select.ui-slider-switch { display: none; }
+div.ui-slider { position: relative; display: inline-block; overflow: visible; height: 15px; padding: 0; margin: 0 2% 0 20px; top: 4px; width: 66%; }
+a.ui-slider-handle { position: absolute; z-index: 10;  top: 50%; width: 28px; height: 28px; margin-top: -15px; margin-left: -15px; }
+a.ui-slider-handle .ui-btn-inner { padding-left: 0; padding-right: 0; }
+@media all and (min-width: 480px){
+       label.ui-slider { display: inline-block;  width: 20%;  margin: 0 2% 0 0; }
+       div.ui-slider { width: 45%; }
+}      
+
+div.ui-slider-switch { height: 32px;  overflow: hidden; margin-left: 0; }
+div.ui-slider-inneroffset { margin-left: 50%; position: absolute; top: 1px; height: 100%; width: 50%; }
+div.ui-slider-handle-snapping { -webkit-transition: left 100ms linear; }
+div.ui-slider-labelbg { position: absolute; top:0; margin: 0; border-width: 0; }
+div.ui-slider-switch div.ui-slider-labelbg-a { width: 60%; height: 100%; left: 0; }
+div.ui-slider-switch div.ui-slider-labelbg-b { width: 60%; height: 100%; right: 0; }
+.ui-slider-switch-a div.ui-slider-labelbg-a, .ui-slider-switch-b div.ui-slider-labelbg-b { z-index: -1; }
+.ui-slider-switch-a div.ui-slider-labelbg-b, .ui-slider-switch-b div.ui-slider-labelbg-a { z-index: 0; }
+
+div.ui-slider-switch a.ui-slider-handle { z-index: 20;  width: 101%; height: 32px; margin-top: -18px; margin-left: -101%; }
+span.ui-slider-label { width: 100%; position: absolute;height: 32px;  font-size: 16px; text-align: center; line-height: 2; background: none; border-color: transparent; }
+span.ui-slider-label-a { left: -100%;  margin-right: -1px }
+span.ui-slider-label-b { right: -100%;  margin-left: -1px }
diff --git a/docs/themes/tablet1/readme.txt b/docs/themes/tablet1/readme.txt
new file mode 100644 (file)
index 0000000..af8061e
--- /dev/null
@@ -0,0 +1 @@
+create local copies of jquery css
\ No newline at end of file
diff --git a/docs/themes/tablet1/theme.cfg.php b/docs/themes/tablet1/theme.cfg.php
new file mode 100644 (file)
index 0000000..6c7ad3e
--- /dev/null
@@ -0,0 +1,44 @@
+<?php
+/************************************************************************/
+/* ATutor                                                                                                                              */
+/************************************************************************/
+/* Copyright (c) 2002-2010                                              */
+/* Inclusive Design Institute                                           */
+/* http://atutor.ca                                                     */
+/* This program is free software. You can redistribute it and/or        */
+/* modify it under the terms of the GNU General Public License          */
+/* as published by the Free Software Foundation.                        */
+/************************************************************************/
+
+// $Id: theme.cfg.php 2813 2004-12-12 15:37:46Z greg $
+
+/* This is the default configuration file for the default theme. */
+
+/* The theme's name. */
+       $_theme['name'] = 'tablet1';
+
+/* The theme's version number. */
+       $_theme['version'] = '1';
+
+/* Which version of ATutor is this theme intended for. */
+       $_theme['atutor-version'] = '2.0';
+
+/* author information */
+       $_theme['author_name']  = 'ATutor';
+       $_theme['author_url']   = 'http://atutor.ca';
+       $_theme['author_email'] = '';
+
+/* theme default course banner styles: */
+/*
+       $_theme['banner']['font-family'] = 'Verdana, Arial, sans-serif';
+       $_theme['banner']['font-weight'] = 'bold';
+       $_theme['banner']['color']       = 'black';
+       $_theme['banner']['font-size']   = 'xx-large';
+       $_theme['banner']['text-align']  = 'center';
+
+       $_theme['banner']['background-color'] = 'white';
+       $_theme['banner']['background-image'] = '';
+       $_theme['banner']['vertical-align']   = 'middle';
+       $_theme['banner']['padding']          = '3px';*/
+
+?>
diff --git a/docs/themes/tablet1/theme_info.xml b/docs/themes/tablet1/theme_info.xml
new file mode 100644 (file)
index 0000000..8d49e08
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--This is an ATutor Theme Generator document-->
+<!--Created from the ATutor Themes Export Generator-->
+
+<theme>
+       <title>tablet1</title>
+       <version>1.0</version>
+       <type>Desktop</type>
+       <last_updated>2011-07-13</last_updated>
+       <extra_info>plone-like.</extra_info>
+</theme>
+
index b655b27..aa1f870 100644 (file)
@@ -112,5 +112,6 @@ usort($all_news, 'all_news_cmp');
 $savant->assign('all_news', $all_news);
 $savant->assign('courses', $courses);
 
+
 $savant->display('users/index.tmpl.php');
 ?>
\ No newline at end of file