You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(183) |
Dec
(82) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(16) |
Feb
(3) |
Mar
|
Apr
(8) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: jsvoyager <jsv...@us...> - 2004-11-01 23:07:19
|
Update of /cvsroot/webschool/webschool/mysql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14762/mysql Modified Files: webschool.sql Log Message: Added TeacherCenter Index: webschool.sql =================================================================== RCS file: /cvsroot/webschool/webschool/mysql/webschool.sql,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** webschool.sql 1 Nov 2004 03:33:49 -0000 1.36 --- webschool.sql 1 Nov 2004 23:06:40 -0000 1.37 *************** *** 268,272 **** PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ! ) TYPE=MyISAM AUTO_INCREMENT=8 ; INSERT INTO `table_mods` VALUES (1, 'Academia', 'The Academia Module', 'Academia', ''); --- 268,272 ---- PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ! ) TYPE=MyISAM AUTO_INCREMENT=9 ; INSERT INTO `table_mods` VALUES (1, 'Academia', 'The Academia Module', 'Academia', ''); *************** *** 277,280 **** --- 277,281 ---- INSERT INTO `table_mods` VALUES (6, 'Newsletters', 'The Newsletter Module', 'Newsletters', ''); INSERT INTO `table_mods` VALUES (7, 'SC', 'The StudentCenter Index AddOn Module', 'StudentCenter', ''); + INSERT INTO `table_mods` VALUES (8, 'TC', 'The TeacherCenter Index AddOn Module', 'TeacherCenter', ''); *************** *** 285,293 **** `due` date NOT NULL default '0000-00-00', `title` varchar(50) NOT NULL default '', ! `desc` text NOT NULL, PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=1; ! DROP TABLE IF EXISTS `table_stud_academia`; CREATE TABLE `table_stud_academia` ( `uid` int(11) NOT NULL default '0', --- 286,294 ---- `due` date NOT NULL default '0000-00-00', `title` varchar(50) NOT NULL default '', ! `description` text NOT NULL, PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=1; ! DROP TABLE IF EXISTS `table_user_academia`; CREATE TABLE `table_stud_academia` ( `uid` int(11) NOT NULL default '0', *************** *** 296,300 **** ) TYPE=MyISAM; ! INSERT INTO `table_stud_academia` VALUES (3, 1, '1'); ! INSERT INTO `table_stud_academia` VALUES (3, 2, '2'); ! INSERT INTO `table_stud_academia` VALUES (3, 3, '3'); \ No newline at end of file --- 297,301 ---- ) TYPE=MyISAM; ! INSERT INTO `table_user_academia` VALUES (3, 1, '1'); ! INSERT INTO `table_user_academia` VALUES (3, 2, '2'); ! INSERT INTO `table_user_academia` VALUES (3, 3, '3'); \ No newline at end of file |
From: jsvoyager <jsv...@us...> - 2004-11-01 23:07:19
|
Update of /cvsroot/webschool/webschool/mods/StudentCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14762/mods/StudentCenter Modified Files: maindex_include.php Log Message: Added TeacherCenter Index: maindex_include.php =================================================================== RCS file: /cvsroot/webschool/webschool/mods/StudentCenter/maindex_include.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** maindex_include.php 31 Oct 2004 04:21:47 -0000 1.5 --- maindex_include.php 1 Nov 2004 23:06:39 -0000 1.6 *************** *** 30,34 **** //Get the student's classes' info and hwk /////////////////////////////// ! db4(__FILE__,__LINE__,"SELECT * FROM "._STUD_ACADEMIA_." WHERE uid='" . $user['id'] . "' ORDER BY period ASC"); $i=$j=$k=0; //All our array pointers while ($result = dbr4()) { --- 30,34 ---- //Get the student's classes' info and hwk /////////////////////////////// ! db4(__FILE__,__LINE__,"SELECT * FROM "._USER_ACADEMIA_." WHERE uid='" . $user['id'] . "' ORDER BY period ASC"); $i=$j=$k=0; //All our array pointers while ($result = dbr4()) { |
From: jsvoyager <jsv...@us...> - 2004-11-01 23:07:18
|
Update of /cvsroot/webschool/webschool/mods/Academia In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14762/mods/Academia Modified Files: index.php Log Message: Added TeacherCenter Index: index.php =================================================================== RCS file: /cvsroot/webschool/webschool/mods/Academia/index.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** index.php 31 Oct 2004 01:02:03 -0000 1.11 --- index.php 1 Nov 2004 23:06:39 -0000 1.12 *************** *** 21,28 **** } ! //not viewing class? List them ! if( !isset($_GET['viewclass']) ) { $sort1['0'] = "Instructors"; db(__FILE__,__LINE__,"SELECT * FROM "._USERS_." WHERE role='instructor'"); --- 21,60 ---- } + if( isset($_GET['viewclass'])) { ! //View Class ! db(__FILE__,__LINE__,"SELECT * FROM "._ACADEMIA_." WHERE id=".$_GET['viewclass']); ! $result = dbr(); ! ! //$smarty->assign("class", mysql_result($result, 0, "classname")); ! $smarty->assign("class", $result['classname']); ! $smarty->assign("instructor", ResolveUserID($result['instructor'])); ! $smarty->assign("grades", $result['grades']); ! $smarty->assign("credits", $result['credits']); ! $smarty->assign("longdescription", $result['longdescription']); ! $smarty->assign("mode", "show"); ! }elseif( isset($_GET['assign'])){ ! //Get Info from DB ! $query = "SELECT * FROM "._ASSIGNMENTS_." WHERE id='" . $_GET['assign'] . "' LIMIT 0,1"; ! db(__FILE__,__LINE__,$query); ! $assignment = dbr(); ! ! $query = "SELECT * FROM "._ACADEMIA_." WHERE id='" . $assignment['aid'] . "' LIMIT 0,1"; ! db2(__FILE__,__LINE__,$query); ! $class = dbr2(); ! ! //Put it in smarty ! $smarty->assign("title",$assignment['title']); ! $smarty->assign("class",$class['classname']); ! $smarty->assign("aid",$class['id']); ! $name = ResolveUserID($class['instructor'], ture); ! $name = $name['fname'] . " " . $name['lname']; ! $smarty->assign("teacher",$name); ! $smarty->assign("due",strtotime($assignment['due'])); ! $smarty->assign("desc",$assignment['description']); ! $smarty->assign("mode","assign"); + } else { + //not viewing class nor assignment? List them $sort1['0'] = "Instructors"; db(__FILE__,__LINE__,"SELECT * FROM "._USERS_." WHERE role='instructor'"); *************** *** 40,44 **** ! db(__FILE__,__LINE__,"Select * From academia"); $i = 0; --- 72,76 ---- ! db(__FILE__,__LINE__,"SELECT * FROM "._ACADEMIA_); $i = 0; *************** *** 84,109 **** $smarty->assign("sort1id", $sort1id); $smarty->assign("sort2", $sort2); ! ! ! //view class ! } else { ! db(__FILE__,__LINE__,"Select * From academia Where id=".$_GET['viewclass']); ! $result = dbr(); ! ! //$smarty->assign("class", mysql_result($result, 0, "classname")); ! $smarty->assign("class", $result['classname']); ! $smarty->assign("instructor", ResolveUserID($result['instructor'])); ! $smarty->assign("grades", $result['grades']); ! $smarty->assign("credits", $result['credits']); ! $smarty->assign("longdescription", $result['longdescription']); } - if(!isset($_GET['viewclass'])){ - $smarty->assign("mode", "list"); - } else { - $smarty->assign("mode", "show"); - } - $smarty->display("mods/academia.tpl"); --- 116,123 ---- $smarty->assign("sort1id", $sort1id); $smarty->assign("sort2", $sort2); ! $smarty->assign("mode", "list"); } $smarty->display("mods/academia.tpl"); |
From: jsvoyager <jsv...@us...> - 2004-11-01 23:07:17
|
Update of /cvsroot/webschool/webschool/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14762/lib Modified Files: db.php Log Message: Added TeacherCenter Index: db.php =================================================================== RCS file: /cvsroot/webschool/webschool/lib/db.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** db.php 31 Oct 2004 01:02:02 -0000 1.5 --- db.php 1 Nov 2004 23:06:38 -0000 1.6 *************** *** 35,39 **** DEFINE("_AMODS_", _db_prefix_."amods"); DEFINE("_MODS_", _db_prefix_."mods"); ! DEFINE("_STUD_ACADEMIA_", _db_prefix_."stud_academia"); DEFINE("_ASSIGNMENTS_", _db_prefix_."assignments"); --- 35,39 ---- DEFINE("_AMODS_", _db_prefix_."amods"); DEFINE("_MODS_", _db_prefix_."mods"); ! DEFINE("_USER_ACADEMIA_", _db_prefix_."user_academia"); DEFINE("_ASSIGNMENTS_", _db_prefix_."assignments"); |
From: jsvoyager <jsv...@us...> - 2004-11-01 23:07:17
|
Update of /cvsroot/webschool/webschool/lang/english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14762/lang/english Modified Files: sc.lang.php Added Files: tc.lang.php Log Message: Added TeacherCenter Index: sc.lang.php =================================================================== RCS file: /cvsroot/webschool/webschool/lang/english/sc.lang.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sc.lang.php 1 Nov 2004 03:33:48 -0000 1.3 --- sc.lang.php 1 Nov 2004 23:06:38 -0000 1.4 *************** *** 15,18 **** $lang['sc']['get_class'] = "Find Class in Academia Roster"; $lang['sc']['add_sched'] = "Add To Schedual"; ! ?> \ No newline at end of file --- 15,18 ---- $lang['sc']['get_class'] = "Find Class in Academia Roster"; $lang['sc']['add_sched'] = "Add To Schedual"; ! $lang['sc']['no_classes'] = "You have no classes. To add some, please click on the link below"; ?> \ No newline at end of file --- NEW FILE: tc.lang.php --- <? //Teahcer Center Language File $lang['tc']['teacher_center'] = "Teacher Center"; $lang['tc']['your_classes'] = "Your Classes"; $lang['tc']['period'] = "Period"; $lang['tc']['class_name'] = "Class's Name"; $lang['tc']['class_desc'] = "Class's Description"; $lang['tc']['your_assign'] = "Your Assignmets"; $lang['tc']['assign'] = "Assignment"; $lang['tc']['due'] = "Date Due"; $lang['tc']['no_classes'] = "You have no classes. Please contact the Administrator for further assistance."; $lang['tc']['no_assign'] = "You have no current assignments in any of your classes. Use the link below to add an assignment."; $lang['tc']['add_assign'] = "Add an Assignment"; $lang['tc']['title'] = "Assignment Title"; $lang['tc']['desc'] = "Directions"; $lang['tc']['add_assign'] = "Add Assignment"; ?> |
From: jsvoyager <jsv...@us...> - 2004-11-01 23:07:17
|
Update of /cvsroot/webschool/webschool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14762 Modified Files: admin.php index.php Log Message: Added TeacherCenter Index: admin.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** admin.php 31 Oct 2004 04:21:46 -0000 1.26 --- admin.php 1 Nov 2004 23:06:37 -0000 1.27 *************** *** 86,91 **** Header("Location: admin.php"); } elseif ($user['role'] == "instructor") { ! //Send them to the admin panel ! Header("Location: admin.php"); } elseif ($user['role'] == "student") { //Send them to the student center --- 86,91 ---- Header("Location: admin.php"); } elseif ($user['role'] == "instructor") { ! //Send them to the TeacherCenter ! Header("Location: index.php"); } elseif ($user['role'] == "student") { //Send them to the student center Index: index.php =================================================================== RCS file: /cvsroot/webschool/webschool/index.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** index.php 31 Oct 2004 04:21:46 -0000 1.25 --- index.php 1 Nov 2004 23:06:37 -0000 1.26 *************** *** 59,65 **** $smarty->assign("recentpages", $recentpages); ! //Student Center Data if ($user['role'] == "student"){ include ("mods/StudentCenter/maindex_include.php"); } --- 59,67 ---- $smarty->assign("recentpages", $recentpages); ! //_____ Center Data if ($user['role'] == "student"){ include ("mods/StudentCenter/maindex_include.php"); + }elseif ($user['role'] == "instructor"){ + include ("mods/TeacherCenter/maindex_include.php"); } |
From: jsvoyager <jsv...@us...> - 2004-11-01 23:07:09
|
Update of /cvsroot/webschool/webschool/theme/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14762/theme/templates Modified Files: index.tpl Log Message: Added TeacherCenter Index: index.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/index.tpl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** index.tpl 1 Nov 2004 03:33:49 -0000 1.6 --- index.tpl 1 Nov 2004 23:06:40 -0000 1.7 *************** *** 13,16 **** --- 13,19 ---- <!-- Student Center --> {include file="mods/sc.index.tpl"} + {elseif $user.role == "instructor"} + <!-- Teacher Center --> + {include file="mods/tc.index.tpl"} {/if} |
From: jsvoyager <jsv...@us...> - 2004-11-01 23:07:08
|
Update of /cvsroot/webschool/webschool/theme/templates/mods In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14762/theme/templates/mods Modified Files: academia.tpl sc.index.tpl Added Files: tc.addassign.tpl tc.index.tpl Log Message: Added TeacherCenter Index: academia.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/mods/academia.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** academia.tpl 1 Nov 2004 03:33:49 -0000 1.2 --- academia.tpl 1 Nov 2004 23:06:57 -0000 1.3 *************** *** 87,90 **** --- 87,110 ---- {$longdescription} + {elseif $mode=="assign"} + <p class="over-title">{$title}</p> + <table width="100%" border="0"> + <tr> + <td width="25%" class="title">Class:</td> + <td><a href="mod.php?mod=Academia&viewclass={$aid}">{$class}</a></td> + </tr> + <tr> + <td class="title">Instructor:</td> + <td>{$teacher}</td> + </tr> + <tr> + <td class="title">Due:</td> + <td>{$due|date_format:"%A %B %e, %Y"} + </tr> + <tr> + <td class="title">Directions:</td> + <td>{$desc}</td> + </tr> + </table> {else} Hello, if you are seeing this, there is a bug in my code! Index: sc.index.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/mods/sc.index.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sc.index.tpl 1 Nov 2004 03:33:50 -0000 1.1 --- sc.index.tpl 1 Nov 2004 23:06:57 -0000 1.2 *************** *** 19,22 **** --- 19,24 ---- <td>{$classes[i].instructor}</td> </tr> + {sectionelse} + <tr><td colspan="3">{$lang.sc.no_classes}</td></tr> {/section} <tr><td colspan="3"><a href="mod.php?mod=SC&op=addclass">{$lang.sc.new_class}...</a></td></tr> *************** *** 42,46 **** <td><a href="mod.php?mod=Academia&viewclass={$hwk_today[i2].aid}">{$hwk_today[i2].name}</a></td> {/if} ! <td><a href="mod.php?mod=???&assign={$hwk_today[i2].id}">{$hwk_today[i2].assignment}</a></td> </tr> {sectionelse} --- 44,48 ---- <td><a href="mod.php?mod=Academia&viewclass={$hwk_today[i2].aid}">{$hwk_today[i2].name}</a></td> {/if} ! <td><a href="mod.php?mod=Academia&assign={$hwk_today[i2].id}">{$hwk_today[i2].assignment}</a></td> </tr> {sectionelse} *************** *** 67,71 **** <td><a href="mod.php?mod=Academia&viewclass={$hwk_tmr[i3].aid}">{$hwk_tmr[i3].name}</a></td> {/if} ! <td><a href="mod.php?mod=???&assign={$hwk_tmr[i3].id}">{$hwk_tmr[i3].assignment}</a></td> </tr> {sectionelse} --- 69,73 ---- <td><a href="mod.php?mod=Academia&viewclass={$hwk_tmr[i3].aid}">{$hwk_tmr[i3].name}</a></td> {/if} ! <td><a href="mod.php?mod=Academia&assign={$hwk_tmr[i3].id}">{$hwk_tmr[i3].assignment}</a></td> </tr> {sectionelse} --- NEW FILE: tc.addassign.tpl --- {include file="header.tpl" title="$header"} <table summary="Main Table"> <tr> <!-- Begin the menu section on right --> <td valign="top"> {include file="menu.tpl"} </td> <!-- Begin Main Section --> <td valign="top"> {include file="tablehead.tpl" tbtitle=$lang.tc.add_assign} <form action="mod.php?mod=TC&op=addassign" method="post"> <table width="100%" border="0"> <tr> <td class="field-title">{$lang.tc.class_name}:</td> <td> <select name="aid" size="0"> {section name=i loop=$classes} <option value="{$classes[i].aid}" {if $smarty.post.aid == $classes[i].aid} selected="selected" {/if} >{$classes[i].name}</option> {/section} </select> </td> </tr> <tr> <td class="field-title">{$lang.tc.due}:</td> <td><input type="text" name="due" value="{$smarty.post.due}" {* disabled="disabled" *} /></td> </tr> <tr> <td class="field-title">{$lang.tc.title}:</td> <td><input type="text" name="title" value="{$smarty.post.title}" size="31"></td> </tr> <tr> <td class="field-title">{$lang.tc.desc}:</td> <td><textarea name="desc" rows="4" cols="30"></textarea></td> </tr> <tr> <td><input type="submit" value="{$lang.tc.add_assign}" /></td> </tr> </table> </form> {include file="tablefoot.tpl"} </td> </tr> --- NEW FILE: tc.index.tpl --- {include file="tablehead.tpl" tbtitle=$lang.tc.teacher_center} <table width ="100%" border = "0"> <tr> <td><i>Welcome <b>{$user.fname} {$user.lname}</b></i></td> <td align="right"><a href="admin.php?action=logout">Logout</a></td> </tr> </table> <!-- Classes --> <p class="over-title">{$lang.tc.your_classes}</p> <table width="100%" border="0"> <tr class="title"> <td width="65">{$lang.tc.period}</td> <td width="125">{$lang.tc.class_name}</td> <td>{$lang.tc.class_desc}</td> </tr> {section name=i loop=$classes} <tr> <td><b>{$classes[i].period}</b></td> <td><a href="mod.php?mod=Academia&viewclass={$classes[i].id}">{$classes[i].classname}</a></td> <td>{$classes[i].desc}</td> </tr> {sectionelse} <tr><td colspan="3"><i>{$lang.tc.no_classes}</i></td></tr> {/section} </table> <!-- Assignments --> <p class="over-title">{$lang.tc.your_assign}</p> <table width="100%" border="0"> <tr class="title"> <td width="65">{$lang.tc.period}</td> <td width="125">{$lang.tc.class_name}</td> <td>{$lang.tc.assign}</td> <td>{$lang.tc.due}</td> </tr> {section name=i2 loop=$assignments} <tr> {if $assignments[i2].period == $assignments[i2.index_prev].period} {* Blank Spaces Beause it's the same class as last time *} <td> </td> <td> </td> {else} {*New Class, put in the info*} <td><b>{$assignments[i2].period}</b></td> <td><a href="mod.php?mod=Academia&viewclass={$assignments[i2].aid}">{$assignments[i2].classname}</a></td> {/if} <td><a href="mod.php?mod=Academia&assign={$assignmetns[i2].id}">{$assignments[i2].title}</a></td> <td>{$assignments[i2].due|date_format:"%a %b %e, %Y"}</td> </tr> {sectionelse} <tr><td colspan="4"><i>{$lang.tc.no_assign}</i></td></tr> {/section} <tr><td colspan="4"><a href="mod.php?mod=TC&op=addassign">{$lang.tc.add_assign}</a></td></tr> </table> {include file="tablefoot.tpl"} |
From: jsvoyager <jsv...@us...> - 2004-11-01 23:06:49
|
Update of /cvsroot/webschool/webschool/mods/TeacherCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14762/mods/TeacherCenter Added Files: index.php maindex_include.php Log Message: Added TeacherCenter --- NEW FILE: maindex_include.php --- <?PHP /* Webschool Copyright (C) 2004 ProgrammerMatt Developers & Contributors: ProgrammerMatt pro...@bl... jsvoyager Gen...@gm... 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; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. (license.txt) */ /* This file contains the logic behind making data show up in the teacher center on the WebSchool index. Most other student center logic is handeled by index.php */ //load language include(_fileroot_."/lang/".$config['lang']."/tc.lang.php"); $smarty->assign("lang", $lang); //Our array pointers $i=$j=0; //Get Classes and their assignments $query = "SELECT * FROM "._USER_ACADEMIA_." WHERE uid='" . $user['id'] . "' ORDER BY period ASC"; db2(__FILE__, __LINE__, $query); while ($result = dbr2()){ //Get Class infomration $query = "SELECT * FROM "._ACADEMIA_." WHERE id='" . $result['aid'] . "' AND instructor='" . $user['id'] /*Shouldn't be neccasary, but never can be too careful */ . "' LIMIT 0,1"; db3(__FILE__,__LINE__,$query); $class = dbr3(); $classes[$i]['classname'] = $class['classname']; $classes[$i]['id'] = $class['id']; $classes[$i]['desc'] = $class['shortdescription']; $classes[$i]['period'] = $result['period']; //Get Assignments for that class $query = "SELECT * FROM "._ASSIGNMENTS_." WHERE aid='" . $result['aid'] . "' AND due>='" . date("%Y/%m/%d") . "'"; db4(__FILE__,__LINE__,$query); while ($assignment = dbr4()){ $assignments[$j]['period'] = $result['period']; $assignments[$j]['classname'] = $class['classname']; $assignments[$j]['aid'] = $class['id']; $assignments[$j]['title'] = $assignment['title']; $assignments[$j]['id'] = $assignment['id']; $assignments[$j]['due'] = strtotime($assignment['due']); $j++; } $i++; } $smarty->assign("classes", $classes); $smarty->assign("assignments", $assignments); ?> --- NEW FILE: index.php --- <?PHP /* Webschool Copyright (C) 2004 ProgrammerMatt Developers & Contributors: jsvoyager Gen...@gm... 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; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. (license.txt) */ //load language include(_fileroot_."/lang/".$config['lang']."/tc.lang.php"); $smarty->assign("lang", $lang); //////////////////////// // Structre to figure // out what we need to // do /////////////////////// if ($user['role'] != "instructor"){ die("Fruitful PIG!!"); } if ($_GET['op'] == "addassign"){ if (isset($_POST['aid'])){ //Go ahead and add stuff to database $query = "INSERT INTO "._ASSIGNMENTS_." (aid,due,title,description) VALUES ('" . $_POST['aid'] . "','" . $_POST['due'] . "','" . $_POST['title'] . "','" . $_POST['desc'] . "')"; dbn(__FILE__,__LINE__,$query); //Redirecrt Home Header("Location: index.php"); }else{ //Get their classes $i = 0; $query = "SELECT * FROM "._ACADEMIA_." WHERE instructor='" . $user['id'] . "'"; db(__FILE__,__LINE__,$query); while ($class = dbr()){ $classes[$i]['name'] = $class['classname']; $classes[$i]['aid'] = $class['id']; $i++; } //Show Form $smarty->assign("classes", $classes); $smarty->display("mods/tc.addassign.tpl"); } } ?> |
From: jsvoyager <jsv...@us...> - 2004-11-01 23:03:57
|
Update of /cvsroot/webschool/webschool/mods/TeacherCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14271/mods/TeacherCenter Log Message: Directory /cvsroot/webschool/webschool/mods/TeacherCenter added to the repository |
From: jsvoyager <jsv...@us...> - 2004-11-01 03:34:02
|
Update of /cvsroot/webschool/webschool/mods/StudentCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23238/mods/StudentCenter Modified Files: index.php Log Message: More work on SC Index: index.php =================================================================== RCS file: /cvsroot/webschool/webschool/mods/StudentCenter/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 30 Oct 2004 22:34:43 -0000 1.1 --- index.php 1 Nov 2004 03:33:49 -0000 1.2 *************** *** 18,20 **** --- 18,51 ---- */ + //load language + include(_fileroot_."/lang/".$config['lang']."/sc.lang.php"); + $smarty->assign("lang", $lang); + + /////////////////////////////////// + // Your favorite and mine, that + // ever clasic, omnipresent, + // didn't-see-that-one-comming + // control structure to figure + // what the user wants to do!!! (OMG) + ////////////////////////////////// + + if ($_GET['op'] == "addclass"){ + if (isset($_POST['period']) && isset($_POST['aid'])){ + //Add the given class to their schedule + $query = "INSERT INTO "._STUD_ACADEMIA_." (uid,aid,period) VALUES ('" . $user['id'] . "','" . + $_REQUEST['aid'] . "','" . $_REQUEST['period'] . "')"; + dbn(__FILE__,__LINE__, $query); + header("Location: index.php"); + }else{ + //Could have been sent by academia mod, if so, we need to get the passed acadmia id's + // classname + $query = "SELECT * FROM "._ACADEMIA_." WHERE id='" . $_REQUEST['aid'] . "' LIMIT 0,1"; + db(__FILE__,__LINE__,$query); + $result = dbr(); + $smarty->assign("classname", $result['classname']); + //Show the add class form + $smarty->display("mods/sc.addclass.tpl"); + } + } + ?> \ No newline at end of file |
From: jsvoyager <jsv...@us...> - 2004-11-01 03:34:02
|
Update of /cvsroot/webschool/webschool/lang/english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23238/lang/english Modified Files: sc.lang.php Log Message: More work on SC Index: sc.lang.php =================================================================== RCS file: /cvsroot/webschool/webschool/lang/english/sc.lang.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** sc.lang.php 31 Oct 2004 01:58:54 -0000 1.2 --- sc.lang.php 1 Nov 2004 03:33:48 -0000 1.3 *************** *** 4,10 **** $lang['sc']['student_center'] = "Student Center"; $lang['sc']['your_classes'] = "Your Schedule"; ! $lang['sc']['new_class'] = "Add New Class to Schedual..."; $lang['sc']['period'] = "Period"; ! $lang['sc']['name'] = "Class Name"; $lang['sc']['instructor'] = "Instructor"; $lang['sc']['hwk_today'] = "Homework Due Today"; --- 4,10 ---- $lang['sc']['student_center'] = "Student Center"; $lang['sc']['your_classes'] = "Your Schedule"; ! $lang['sc']['new_class'] = "Add New Class to Schedual"; $lang['sc']['period'] = "Period"; ! $lang['sc']['name'] = "Class's Name"; $lang['sc']['instructor'] = "Instructor"; $lang['sc']['hwk_today'] = "Homework Due Today"; *************** *** 13,16 **** --- 13,18 ---- $lang['sc']['nohwk_today'] = "No Homework Due Today :-)"; $lang['sc']['nohwk_tmr'] = "No Homework Due Tomorrow :-)"; + $lang['sc']['get_class'] = "Find Class in Academia Roster"; + $lang['sc']['add_sched'] = "Add To Schedual"; ?> \ No newline at end of file |
From: jsvoyager <jsv...@us...> - 2004-11-01 03:34:02
|
Update of /cvsroot/webschool/webschool/theme/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23238/theme/templates Modified Files: index.tpl Removed Files: sc.index.tpl Log Message: More work on SC --- sc.index.tpl DELETED --- Index: index.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/index.tpl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** index.tpl 31 Oct 2004 01:59:06 -0000 1.5 --- index.tpl 1 Nov 2004 03:33:49 -0000 1.6 *************** *** 12,16 **** {if $user.role == "student"} <!-- Student Center --> ! {include file="sc.index.tpl"} {/if} --- 12,16 ---- {if $user.role == "student"} <!-- Student Center --> ! {include file="mods/sc.index.tpl"} {/if} |
From: jsvoyager <jsv...@us...> - 2004-11-01 03:34:01
|
Update of /cvsroot/webschool/webschool/mysql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23238/mysql Modified Files: webschool.sql Log Message: More work on SC Index: webschool.sql =================================================================== RCS file: /cvsroot/webschool/webschool/mysql/webschool.sql,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** webschool.sql 31 Oct 2004 04:21:47 -0000 1.35 --- webschool.sql 1 Nov 2004 03:33:49 -0000 1.36 *************** *** 268,272 **** PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ! ) TYPE=MyISAM AUTO_INCREMENT=10 ; INSERT INTO `table_mods` VALUES (1, 'Academia', 'The Academia Module', 'Academia', ''); --- 268,272 ---- PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ! ) TYPE=MyISAM AUTO_INCREMENT=8 ; INSERT INTO `table_mods` VALUES (1, 'Academia', 'The Academia Module', 'Academia', ''); *************** *** 276,279 **** --- 276,280 ---- INSERT INTO `table_mods` VALUES (5, 'News', 'The News Module', 'News', ''); INSERT INTO `table_mods` VALUES (6, 'Newsletters', 'The Newsletter Module', 'Newsletters', ''); + INSERT INTO `table_mods` VALUES (7, 'SC', 'The StudentCenter Index AddOn Module', 'StudentCenter', ''); *************** *** 286,300 **** `desc` text NOT NULL, PRIMARY KEY (`id`) ! ) TYPE=MyISAM AUTO_INCREMENT=8 ; ! ! INSERT INTO `table_assignments` VALUES (1, 2, '2004-10-30', 'Homework Assignment 1', 'Oh Yeah Baby'); ! INSERT INTO `table_assignments` VALUES (2, 2, '2004-10-30', 'hwk 1', 'dasdfsadf'); ! INSERT INTO `table_assignments` VALUES (3, 2, '2004-10-30', 'hwk 2', 'dafdfasfasfdfgrfdfscs'); ! INSERT INTO `table_assignments` VALUES (4, 1, '2004-10-31', 'hwk 3', 'asdff wefwdwer efwe '); ! INSERT INTO `table_assignments` VALUES (5, 1, '2004-10-31', 'hwk 4', 'asdf efwwer dff asfd afs aw'); ! INSERT INTO `table_assignments` VALUES (6, 1, '2004-10-30', 'After Math one', 'sdfajh'); ! INSERT INTO `table_assignments` VALUES (7, 3, '2004-10-31', 'Goo Goo Gahh Gahh', 'Do some work'); ! ! DROP TABLE IF EXISTS `table_stud_academia`; --- 287,291 ---- `desc` text NOT NULL, PRIMARY KEY (`id`) ! ) TYPE=MyISAM AUTO_INCREMENT=1; DROP TABLE IF EXISTS `table_stud_academia`; |
From: jsvoyager <jsv...@us...> - 2004-11-01 03:34:01
|
Update of /cvsroot/webschool/webschool/theme/templates/mods In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23238/theme/templates/mods Modified Files: academia.tpl Added Files: sc.addclass.tpl sc.index.tpl Log Message: More work on SC Index: academia.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/mods/academia.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** academia.tpl 27 Oct 2004 00:56:44 -0000 1.1 --- academia.tpl 1 Nov 2004 03:33:49 -0000 1.2 *************** *** 55,58 **** --- 55,61 ---- <td width="35%"> <a href="mod.php?mod=Academia&viewclass={$class[looper].id}">{$class[looper].classname}</a> + {if $user.role == "student"} + (<a href="mod.php?mod=SC&op=addclass&aid={$class[looper].id}">Add to my Schedual</a>) + {/if} </td> <td width="20%"> --- NEW FILE: sc.index.tpl --- {include file="tablehead.tpl" tbtitle=$lang.sc.student_center} <table width="100%" border="0"> <tr><td><i>Welcome <b>{$user.fname} {$user.lname}</b></i></td> <td align="right"><a href="admin.php?action=logout">Logout</a></td></tr> </table> {*Classes' Links *} <p class="over-title">{$lang.sc.your_classes}</p> <table width="100%" border="0"> <tr class="title"> <td width="65">{$lang.sc.period}</td> <td width="175">{$lang.sc.name}</td> <td>{$lang.sc.instructor}</td> </tr> {section name=i loop=$classes} <tr> <td><b>{$classes[i].period}</b></td> <td><a href="mod.php?mod=Academia&viewclass={$classes[i].aid}">{$classes[i].name}</a></td> <td>{$classes[i].instructor}</td> </tr> {/section} <tr><td colspan="3"><a href="mod.php?mod=SC&op=addclass">{$lang.sc.new_class}...</a></td></tr> </table> {*Today's hwk *} <p class="over-title">{$lang.sc.hwk_today}</p> <table width="100%" border="0"> <tr class="title"> <td width="65">{$lang.sc.period}</td> <td width="175">{$lang.sc.name}</td> <td>{$lang.sc.assignment}</td> </tr> {section name=i2 loop=$hwk_today} <tr> {if $hwk_today[i2].period == $hwk_today[i2.index_prev].period} {*Same as last time, so keep first two ones blank *} <td> </td> <td> </td> {else} <td><b>{$hwk_today[i2].period}</b></td> <td><a href="mod.php?mod=Academia&viewclass={$hwk_today[i2].aid}">{$hwk_today[i2].name}</a></td> {/if} <td><a href="mod.php?mod=???&assign={$hwk_today[i2].id}">{$hwk_today[i2].assignment}</a></td> </tr> {sectionelse} <tr><td colspan="3"><i>{$lang.sc.nohwk_today}</i></td></tr> {/section} </table> {*Tomorrow's hwk *} <p class="over-title">{$lang.sc.hwk_tmr}</p> <table width="100%" border="0"> <tr class="title"> <td width="65">{$lang.sc.period}</td> <td width="175">{$lang.sc.name}</td> <td>{$lang.sc.assignment}</td> </tr> {section name=i3 loop=$hwk_tmr} <tr> {if $hwk_tmr[i3].period == $hwk_tmr[i3.index_prev].period} {*Same as last time, so keep first two ones blank *} <td> </td> <td> </td> {else} <td><b>{$hwk_tmr[i3].period}</b></td> <td><a href="mod.php?mod=Academia&viewclass={$hwk_tmr[i3].aid}">{$hwk_tmr[i3].name}</a></td> {/if} <td><a href="mod.php?mod=???&assign={$hwk_tmr[i3].id}">{$hwk_tmr[i3].assignment}</a></td> </tr> {sectionelse} <tr><td colspan="3"><i>{$lang.sc.nohwk_tmr}</i></td></tr> {/section} </table> {include file="tablefoot.tpl"} --- NEW FILE: sc.addclass.tpl --- {include file="header.tpl" title="$header"} <table summary="Main Table"> <tr> <!-- Begin the menu section on right --> <td valign="top"> {include file="menu.tpl"} </td> <!-- Begin Main Section --> <td valign="top"> {include file="tablehead.tpl" tbtitle=$lang.sc.new_class} <form action="mod.php?mod=SC&op=addclass" method="post"> <table width="100%" border="0"> <tr> <td class="field-title" width="33%">{$lang.sc.name}:</td> <td> {if $smarty.get.aid == ""} <a href="mod.php?mod=Academia">{$lang.sc.get_class}</a> {else} {$classname} <input type="hidden" name="aid" value="{$smarty.get.aid}"> {/if} </td> </tr> <tr> <td class="field-title">{$lang.sc.period}:</td> <td><input type="text" name="period" value="{$smarty.get.period}" size="5" /></td> </tr> <tr> <td><input type="submit" value="{$lang.sc.add_sched}" /></td> </tr> </table> </form> {include file="tablefoot.tpl"} </td> </tr> |
From: Matt M. <pro...@us...> - 2004-11-01 03:20:03
|
Update of /cvsroot/webschool/webschool/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21509/install Modified Files: theme.php Log Message: Installer Theme Fix Index: theme.php =================================================================== RCS file: /cvsroot/webschool/webschool/install/theme.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** theme.php 24 Oct 2004 03:27:39 -0000 1.3 --- theme.php 1 Nov 2004 03:19:47 -0000 1.4 *************** *** 17,21 **** */ Function InitTheme() { ! echo "<link href=\"../theme/aquinas.css\" rel=\"stylesheet\" type=\"text/css\">\n"; } --- 17,21 ---- */ Function InitTheme() { ! echo "<link href=\"../theme/theme.css\" rel=\"stylesheet\" type=\"text/css\">\n"; } |
From: Matt M. <pro...@us...> - 2004-11-01 01:34:37
|
Update of /cvsroot/webschool/webschool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4983 Modified Files: pic.php Log Message: pic update Index: pic.php =================================================================== RCS file: /cvsroot/webschool/webschool/pic.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** pic.php 31 Oct 2004 04:21:46 -0000 1.11 --- pic.php 1 Nov 2004 01:34:28 -0000 1.12 *************** *** 23,27 **** if(isset( $_GET['id'] ) ){ ! db(__FILE__,__LINE__,"Select * From pics Where id=".$_GET['id'].""); $res = dbr(); --- 23,27 ---- if(isset( $_GET['id'] ) ){ ! db(__FILE__,__LINE__,"SELECT * FROM "._PICS_." WHERE id=".$_GET['id'].""); $res = dbr(); |