Templated files from docs/
authoralison benjamin <radiocontrolled@gmail.com>
Thu, 5 May 2011 14:52:21 +0000 (14:52 -0000)
committeralison benjamin <radiocontrolled@gmail.com>
Thu, 5 May 2011 14:52:21 +0000 (14:52 -0000)
18 files changed:
.project [new file with mode: 0644]
docs/about.php
docs/confirm.php
docs/contact_instructor.php
docs/content/backups/index.html [new file with mode: 0644]
docs/content/chat/index.html [new file with mode: 0644]
docs/content/feeds/index.html [new file with mode: 0644]
docs/content/file_storage/index.html [new file with mode: 0644]
docs/content/import/index.html [new file with mode: 0644]
docs/content/index.html [new file with mode: 0644]
docs/content/profile_pictures/index.html [new file with mode: 0644]
docs/include/config.inc.php [new file with mode: 0644]
docs/search.php
docs/themes/default/about.tmpl.php [new file with mode: 0644]
docs/themes/default/admin/index.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/search.tmpl.php [new file with mode: 0644]

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 d934a90..a49f51f 100644 (file)
@@ -164,24 +164,8 @@ if (isset($_REQUEST['auto_login']))
 
 require(AT_INCLUDE_PATH.'header.inc.php'); ?>
 
-<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>
-
-<?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
\ No newline at end of file
+
+
+<?php
+$savant->display('confirm.tmpl.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
diff --git a/docs/content/backups/index.html b/docs/content/backups/index.html
new file mode 100644 (file)
index 0000000..945c9b4
--- /dev/null
@@ -0,0 +1 @@
+.
\ No newline at end of file
diff --git a/docs/content/chat/index.html b/docs/content/chat/index.html
new file mode 100644 (file)
index 0000000..945c9b4
--- /dev/null
@@ -0,0 +1 @@
+.
\ No newline at end of file
diff --git a/docs/content/feeds/index.html b/docs/content/feeds/index.html
new file mode 100644 (file)
index 0000000..945c9b4
--- /dev/null
@@ -0,0 +1 @@
+.
\ No newline at end of file
diff --git a/docs/content/file_storage/index.html b/docs/content/file_storage/index.html
new file mode 100644 (file)
index 0000000..945c9b4
--- /dev/null
@@ -0,0 +1 @@
+.
\ No newline at end of file
diff --git a/docs/content/import/index.html b/docs/content/import/index.html
new file mode 100644 (file)
index 0000000..945c9b4
--- /dev/null
@@ -0,0 +1 @@
+.
\ No newline at end of file
diff --git a/docs/content/index.html b/docs/content/index.html
new file mode 100644 (file)
index 0000000..945c9b4
--- /dev/null
@@ -0,0 +1 @@
+.
\ No newline at end of file
diff --git a/docs/content/profile_pictures/index.html b/docs/content/profile_pictures/index.html
new file mode 100644 (file)
index 0000000..945c9b4
--- /dev/null
@@ -0,0 +1 @@
+.
\ No newline at end of file
diff --git a/docs/include/config.inc.php b/docs/include/config.inc.php
new file mode 100644 (file)
index 0000000..57b27b3
--- /dev/null
@@ -0,0 +1,54 @@
+<?php 
+/************************************************************************/
+/* ATutor                                                               */
+/************************************************************************/
+/* Copyright (c) 2002-2010                                              */
+/* 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.                        */
+/************************************************************************/
+/* This file was generated by the ATutor 2.0.2 installation script.     */
+/* File generated 2011-03-29 17:03:53                                   */
+/************************************************************************/
+/************************************************************************/
+/* the database user name                                               */
+define('DB_USER',                      'root');
+
+/* the database password                                                */
+define('DB_PASSWORD',                  'root');
+
+/* the database host                                                    */
+define('DB_HOST',                      'localhost');
+
+/* the database tcp/ip port                                             */
+define('DB_PORT',                      '8889');
+
+/* the database name                                                    */
+define('DB_NAME',                      'atutor');
+
+/* The prefix to add to table names to avoid conflicts with existing    */
+/* tables. Default: AT_                                                 */
+define('TABLE_PREFIX',                 'AT_');
+
+/* Where the course content files are located.  This includes all file  */
+/* manager and imported files.  If security is a concern, it is         */
+/* recommended that the content directory be moved outside of the web  */
+/* accessible area.                                                                                                            */
+define('AT_CONTENT_DIR', '/Applications/MAMP/htdocs/GSoC2011/docs/content/');
+
+/* Whether or not to use the default php.ini SMTP settings.             */
+/* If false, then mail will try to be sent using sendmail.              */
+define('MAIL_USE_SMTP', false);
+
+/* Whether or not to use the AT_CONTENT_DIR as a protected directory.   */
+/* If set to FALSE then the content directory will be hard coded        */
+/* to ATutor_install_dir/content/ and AT_CONTENT_DIR will be ignored.   */
+/* This option is used for compatability with IIS and Apache 2.         */
+define('AT_FORCE_GET_FILE', TRUE);
+
+/* DO NOT ALTER THIS LAST LINE                                          */
+define('AT_INSTALL', TRUE);
+
+?>
\ 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/index.tmpl.php b/docs/themes/default/admin/index.tmpl.php
new file mode 100644 (file)
index 0000000..e69de29
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>
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