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: Matt M. <pro...@us...> - 2004-11-26 01:02:46
|
Update of /cvsroot/webschool/webschool/theme/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10259/theme/templates Modified Files: index.tpl menu.tpl Log Message: Index: menu.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/menu.tpl,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** menu.tpl 25 Nov 2004 19:47:24 -0000 1.8 --- menu.tpl 26 Nov 2004 01:02:36 -0000 1.9 *************** *** 4,12 **** --> ! <table summary="Menu" width="120" align="top" cellpadding="0" cellspacing="0" border="0" bordercolor="#333399"> <tr class="" cellpadding="0" cellspacing="0" > <td class="WS-topleft"></td> <td class="WS-top" valign="top" align="center"> ! <table><tr><td class="header">Menu</td></tr></table></td> <td class="WS-topright"></td> </tr> --- 4,12 ---- --> ! <table summary="Menu" width="130" valign="top" cellpadding="0" cellspacing="0" border="0" bordercolor="#333399"> <tr class="" cellpadding="0" cellspacing="0" > <td class="WS-topleft"></td> <td class="WS-top" valign="top" align="center"> ! <table><tr><td class="header">{$lang.menu.caption}</td></tr></table></td> <td class="WS-topright"></td> </tr> *************** *** 31,36 **** <tr><td class="WS-left"></td><td><hr></td><td class="WS-right"></td></tr> {if $user.id != 1} ! <tr><td class="WS-left"></td><td><i>Welcome <b>{$user.fname}</b></i></td><td class="WS-right"></td></tr> ! <tr><td class="WS-left"></td><td><a href="admin.php?action=logout">Logout</a></td><td class="WS-right"></td></tr> {else} <form method="post" action="admin.php?action=login"> --- 31,36 ---- <tr><td class="WS-left"></td><td><hr></td><td class="WS-right"></td></tr> {if $user.id != 1} ! <tr><td class="WS-left"></td><td><i>{$lang.menu.welcome} <b>{$user.fname}</b></i></td><td class="WS-right"></td></tr> ! <tr><td class="WS-left"></td><td><a href="admin.php?action=logout">{$lang.menu.logout}</a></td><td class="WS-right"></td></tr> {else} <form method="post" action="admin.php?action=login"> *************** *** 38,46 **** <table width="100%"> <tr><td> ! <span style="font-family: sans; font-size: 12px; font-weight: bold; ">Username:</span><br> ! <center><input size="10" type="text" name="username" id="username"></center><br> ! <span style="font-size: 12px; font-weight: bold; font-family: sans;">Password:</span><br> ! <center><input size="10" type="password" name="pass"></center><br> ! <center><input type="submit" value="Login"></center> </td></tr> </table> --- 38,46 ---- <table width="100%"> <tr><td> ! <span style="font-family: sans; font-size: 12px; font-weight: bold; ">{$lang.menu.username}:</span><br> ! <center><input size="6" type="text" name="username" id="username"></center><br> ! <span style="font-size: 12px; font-weight: bold; font-family: sans;">{$lang.menu.password}:</span><br> ! <center><input size="6" type="password" name="pass"></center><br> ! <input type="submit" value="{$lang.menu.login}"> </td></tr> </table> Index: index.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/index.tpl,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** index.tpl 23 Nov 2004 02:29:06 -0000 1.10 --- index.tpl 26 Nov 2004 01:02:36 -0000 1.11 *************** *** 18,37 **** {/if} ! {section name=indexloop loop=$pages_title} {include file="tablehead.tpl" tbtitle="Home"} ! <font size="+2">{$pages_title[indexloop]}</font><br> ! <br /> ! {$pages_content[indexloop]} <br /> ! <center><font size="-2">Last Update: {$pages_lastupdate[indexloop]|date_format:"%A, %B %e, %Y %H:%M"}</font></center> {include file="tablefoot.tpl"} ! {/section} <center><table><tr><td> {include file="tablehead.tpl" tbwidth="310" tbtitle=$lang.index.recentnews} {foreach from=$recentnews item=v key=k} ! {$v.published|date_format}: <a href="mod.php?mod=News&op=view&id={$v.id}">{$v.prettytitle}</a>{if $v.published != $v.lastupdate}($lang.index.updated){/if}<br/> {/foreach} {include file="tablefoot.tpl"} --- 18,37 ---- {/if} ! {foreach from=$onindex item=v key=k} {include file="tablehead.tpl" tbtitle="Home"} ! <font size="+2">{$v.prettytitle}</font><br> ! <br> ! {$v.content} <br /> ! <center><font size="-2">Last Update: {$v.lastupdate|date_format:"%A, %B %e, %Y %H:%M"}</font></center> {include file="tablefoot.tpl"} ! {/foreach} <center><table><tr><td> {include file="tablehead.tpl" tbwidth="310" tbtitle=$lang.index.recentnews} {foreach from=$recentnews item=v key=k} ! {$v.published|date_format}: <a href="mod.php?mod=News&op=view&id={$v.id}">{$v.prettytitle}</a>{if $v.published != $v.lastupdate}($lang.index.updated){/if}<br> {/foreach} {include file="tablefoot.tpl"} *************** *** 39,43 **** {include file="tablehead.tpl" tbwidth="310" tbtitle=$lang.index.recentarticles} {foreach from=$recentarticles item=v key=k} ! {$v.published|date_format}: <a href="mod.php?mod=Articles&op=view&id={$v.id}">{$v.prettytitle}</a>{if $v.published != $v.lastupdate}($lang.index.updated){/if}<br/> {/foreach} {include file="tablefoot.tpl"} --- 39,43 ---- {include file="tablehead.tpl" tbwidth="310" tbtitle=$lang.index.recentarticles} {foreach from=$recentarticles item=v key=k} ! {$v.published|date_format}: <a href="mod.php?mod=Articles&op=view&id={$v.id}">{$v.prettytitle}</a>{if $v.published != $v.lastupdate}{$lang.index.updated}{/if}<br> {/foreach} {include file="tablefoot.tpl"} *************** *** 46,50 **** {include file="tablehead.tpl" tbwidth="324" tbtitle=$lang.index.recentpages} {foreach from=$recentpages item=v key=k} ! {$v.published|date_format}: <a href="mod.php?mod=Pages&op=view&id={$v.id}">{$v.prettytitle}</a>{if $v.published != $v.lastupdate}($lang.index.updated){/if}<br/> {/foreach} {include file="tablefoot.tpl"} --- 46,50 ---- {include file="tablehead.tpl" tbwidth="324" tbtitle=$lang.index.recentpages} {foreach from=$recentpages item=v key=k} ! {$v.published|date_format}: <a href="mod.php?mod=Pages&op=view&id={$v.id}">{$v.prettytitle}</a>{if $v.published != $v.lastupdate}($lang.index.updated){/if}<br> {/foreach} {include file="tablefoot.tpl"} |
From: Matt M. <pro...@us...> - 2004-11-26 01:02:45
|
Update of /cvsroot/webschool/webschool/theme/templates/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10259/theme/templates/admin Modified Files: config.tpl Added Files: files.add.tpl files.tpl Log Message: --- NEW FILE: files.tpl --- {include file=tablehead.tpl tbtitle=$lang.news.tbtitle} {if $perm.pictures <= 0 || $denied == true} {$lang.auth_denied} {else} <p class="over-title">{if $perm.pictures == 1}{$lang.pictures.your} {/if} {$lang.pictures.activepictures} </p> <table width=100%> <tr class="title"> <td>{$lang.pictures.title}</td> <td>{$lang.pictures.id}</td> <td>{$lang.pictures.view}</td> <td>{$lang.pictures.views}</td> <td>{$lang.pictures.description}</td> {if $perm.articles >= 2} <td>{$lang.pictures.owner}</td> {/if} <td>{$lang.pictures.dimensions}</td> <td>{$lang.pictures.size}</td> <td>{$lang.pictures.delete}</td> <td>{$lang.pictures.remove_symbol}</td> </tr> {section name=iv loop=$active} <tr> <td>{$active[iv].title}</td> <td>{$active[iv].id}</td> <td><a href="pic.php?id={$active[iv].id}">{$lang.pictures.view_symbol}</a> <td><center>{$active[iv].views}</center></td> <td>{$active[iv].description}</td> {if $perm.pictures >= 2} <td>{$active[iv].owner}</td> {/if} <td>{$active[iv].dimensions}</td> <td>{$active[iv].size} Kb</td> <td><center><a href="{$AMOD}&op=delete&id={$active[iv].id}">{$lang.pictures.delete_symbol}</a></center></td> <td><a href="{$AMOD}&op=remove&id={$active[iv].id}">{$lang.pictures.remove_symbol}</a></td> </tr> {/section} </table> <br><br> <p class="over-title">{if $perm.articles == 1}{$lang.pictures.your} {/if} {$lang.pictures.picturespending} </p> <table width=100%> <tr class="title"> <td>{$lang.pictures.title}</td> <td>{$lang.pictures.id}</td> <td>{$lang.pictures.view}</td> <td>{$lang.pictures.description}</td> {if $perm.articles >= 2} <td>{$lang.pictures.owner}</td> {/if} <td>{$lang.pictures.dimensions}</td> <td>{$lang.pictures.size}</td> <td>{$lang.pictures.delete}</td> <td>{$lang.pictures.approve}</td> </tr> {section name=iv loop=$pending} <tr> <td>{$pending[iv].title}</td> <td>{$pending[iv].id}</td> <td><a href="pic.php?id={$pending[iv].id}">{$lang.pictures.view_symbol}</a> <td>{$pending[iv].description}</td> {if $perm.pictures >= 2} <td>{$pending[iv].owner}</td> {/if} <td>{$pending[iv].dimensions}</td> <td>{$pending[iv].size} Kb</td> <td><center><a href="{$AMOD}&op=delete&id={$pending[iv].id}">{$lang.pictures.delete_symbol}</a></center></td> <td><a href="{$AMOD}&op=approve&id={$pending[iv].id}">{$lang.pictures.approve_symbol}</a></td> </tr> {/section} </table> <br><br> <a href="{$AMOD}&op=add&htmlarea=1"> {$lang.pictures.addpictures} </a> {/if} {include file=tablefoot.tpl} Index: config.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/config.tpl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** config.tpl 24 Nov 2004 02:54:15 -0000 1.5 --- config.tpl 26 Nov 2004 01:02:35 -0000 1.6 *************** *** 33,37 **** <input type="text" value="{$v.value}"> {elseif $v.type == "lang"} ! {/if} </td><td>{$v.description}</td></tr> --- 33,41 ---- <input type="text" value="{$v.value}"> {elseif $v.type == "lang"} ! <select name="{$v.name}" id="{$v.name}"> ! {foreach from=$langs item=iv} ! <option value="{$iv}" {if $v.value == $iv} selected="selected"{/if}>{$iv}</option> ! {/foreach} ! </select> {/if} </td><td>{$v.description}</td></tr> --- NEW FILE: files.add.tpl --- {include file="tablehead.tpl" tbtitle="Add Picture"} <br> <center> Add A Picture </center> <hr> <form action="{$AMOD}&op=add&upload=1" method="post" enctype="multipart/form-data"> <br>Picture Name:<input type='text' name="picname" id="picname"><br> <br>Description: <br> <textarea name="descrip" id="pic" cols="55" rows="4"> </textarea> <br>Picture: <input type="file" name="pic" id="pic"> <br><button type="submit">Submit</button> </form> {include file="tablefoot.tpl"} |
From: Matt M. <pro...@us...> - 2004-11-26 01:02:43
|
Update of /cvsroot/webschool/webschool/mysql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10259/mysql Modified Files: webschool.sql Log Message: Index: webschool.sql =================================================================== RCS file: /cvsroot/webschool/webschool/mysql/webschool.sql,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** webschool.sql 24 Nov 2004 02:54:14 -0000 1.54 --- webschool.sql 26 Nov 2004 01:02:34 -0000 1.55 *************** *** 26,30 **** ) TYPE=MyISAM AUTO_INCREMENT=2 ; ! INSERT INTO `table_articles` VALUES (1, 'Introduction to WebSchool', '2', 'I''m working on it.<br /><br />Comming soon.', '1095390146', '1097898346'); --- 26,30 ---- ) TYPE=MyISAM AUTO_INCREMENT=2 ; ! INSERT INTO `table_articles` VALUES (1, 'Introduction to WebSchool', '2', 'I''m working on it.<br /><br />Comming soon.', '1095390146', '1097898346', 0); *************** *** 63,75 **** `tree` varchar(25) NOT NULL default '', PRIMARY KEY (`id`) ! ) TYPE=MyISAM AUTO_INCREMENT=8 ; INSERT INTO `table_menu` VALUES (1, 0, '<[TEXT]>', 'Home', 'index.php', ''); ! INSERT INTO `table_menu` VALUES (2, 6, '<[TEXT]>', 'Admin', 'admin.php', ''); ! INSERT INTO `table_menu` VALUES (3, 1, '<[TEXT]>', 'Academia', 'mod.php?mod=Academia', ''); ! INSERT INTO `table_menu` VALUES (4, 4, '<[TEXT]>', 'News', 'mod.php?mod=News', ''); ! INSERT INTO `table_menu` VALUES (5, 2, '<[TEXT]>', 'SOTM', 'mod.php?mod=SOTM', ''); ! INSERT INTO `table_menu` VALUES (6, 5, '<[SEPERATOR]>', '<[SEPERATOR]>', 'javascript:void', ''); ! INSERT INTO `table_menu` VALUES (7, 3, '<[TEXT]>', 'Articles', 'mod.php?mod=Articles', ''); --- 63,78 ---- `tree` varchar(25) NOT NULL default '', PRIMARY KEY (`id`) ! ) TYPE=MyISAM AUTO_INCREMENT=9 ; INSERT INTO `table_menu` VALUES (1, 0, '<[TEXT]>', 'Home', 'index.php', ''); ! INSERT INTO `table_menu` VALUES (2, 1, '<[TEXT]>', 'Academia', 'mod.php?mod=Academia', ''); ! INSERT INTO `table_menu` VALUES (3, 2, '<[TEXT]>', 'SOTM', 'mod.php?mod=SOTM', ''); ! INSERT INTO `table_menu` VALUES (4, 3, '<[TEXT]>', 'Articles', 'mod.php?mod=Articles', ''); ! INSERT INTO `table_menu` VALUES (5, 4, '<[TEXT]>', 'News', 'mod.php?mod=News', ''); ! INSERT INTO `table_menu` VALUES (6, 5, '<[TEXT]>', 'Pages', 'mod.php?mod=Pics', ''); ! INSERT INTO `table_menu` VALUES (7, 6, '<[TEXT]>', 'Newsletters', 'mod.php?mod=Newsletters', ''); ! INSERT INTO `table_menu` VALUES (8, 7, '<[SEPERATOR]>', '', '', ''); ! INSERT INTO `table_menu` VALUES (9, 8, '<[TEXT]>', 'Admin', 'admin.php', ''); ! *************** *** 144,147 **** --- 147,151 ---- `size` int(11) NOT NULL default '0', `filename` varchar(255) NOT NULL default '', + `category` varchar(255) NOT NULL default '', PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; *************** *** 158,162 **** `downloads` int(11) NOT NULL default '0', `size` int(11) NOT NULL default '0', ! `filename` varchar(255) NOT NULL default '', PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; --- 162,166 ---- `downloads` int(11) NOT NULL default '0', `size` int(11) NOT NULL default '0', ! `category` varchar(255) NOT NULL default '', PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=1 ; *************** *** 252,256 **** PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ! ) TYPE=MyISAM AUTO_INCREMENT=12 ; INSERT INTO `table_amods` VALUES (1, 'News', 'The News aModule', 'news', 'news.php'); --- 256,260 ---- PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ! ) TYPE=MyISAM AUTO_INCREMENT=13 ; INSERT INTO `table_amods` VALUES (1, 'News', 'The News aModule', 'news', 'news.php'); *************** *** 266,270 **** INSERT INTO `table_amods` VALUES (11, 'Academia', 'The Academia Editor', 'academia', 'academia.php'); INSERT INTO `table_amods` VALUES (12, 'Modules', 'The Module Configuration Editor', 'modules', 'modules.php'); ! DROP TABLE IF EXISTS `table_mods`; --- 270,274 ---- INSERT INTO `table_amods` VALUES (11, 'Academia', 'The Academia Editor', 'academia', 'academia.php'); INSERT INTO `table_amods` VALUES (12, 'Modules', 'The Module Configuration Editor', 'modules', 'modules.php'); ! INSERT INTO `table_amods` VALUES (13, 'Files', 'The file aMod', 'files', 'files.php'); DROP TABLE IF EXISTS `table_mods`; *************** *** 315,319 **** CREATE TABLE `table_calender` ( `id` int(11) NOT NULL default '', ! `unixdate` varchar(25) NOT NULL default '', `event_type` varchar(15) NOT NULL default '', `month` int(11) NOT NULL default '', --- 319,323 ---- CREATE TABLE `table_calender` ( `id` int(11) NOT NULL default '', ! `date` varchar(25) NOT NULL default '', `event_type` varchar(15) NOT NULL default '', `month` int(11) NOT NULL default '', |
From: jsvoyager <jsv...@us...> - 2004-11-25 19:47:46
|
Update of /cvsroot/webschool/webschool/mods/TeacherCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11895/mods/TeacherCenter Modified Files: maindex_include.php Removed Files: index.php Log Message: Got academia amod working, less files... Index: maindex_include.php =================================================================== RCS file: /cvsroot/webschool/webschool/mods/TeacherCenter/maindex_include.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** maindex_include.php 1 Nov 2004 23:06:40 -0000 1.1 --- maindex_include.php 25 Nov 2004 19:47:24 -0000 1.2 *************** *** 20,24 **** /* 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 */ --- 20,24 ---- /* This file contains the logic behind making data show up in the teacher center on the WebSchool index. ! This is really just a front end to the Academia Amod */ *************** *** 30,42 **** $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']; --- 30,36 ---- $i=$j=0; //Get Classes and their assignments ! $query = "SELECT * FROM "._ACADEMIA_." WHERE instructor='" . $user['id'] . "'"; db2(__FILE__, __LINE__, $query); ! while ($class = dbr2()){ $classes[$i]['classname'] = $class['classname']; *************** *** 46,54 **** //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']; --- 40,47 ---- //Get Assignments for that class ! $query = "SELECT * FROM "._ASSIGNMENTS_." WHERE aid='" . $class['id'] . "' AND due >='" . date("%Y/%m/%d") . "'"; db4(__FILE__,__LINE__,$query); while ($assignment = dbr4()){ $assignments[$j]['classname'] = $class['classname']; $assignments[$j]['aid'] = $class['id']; --- index.php DELETED --- |
From: jsvoyager <jsv...@us...> - 2004-11-25 19:47:43
|
Update of /cvsroot/webschool/webschool/lang/english/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11895/lang/english/admin Modified Files: academia.lang.php Log Message: Got academia amod working, less files... Index: academia.lang.php =================================================================== RCS file: /cvsroot/webschool/webschool/lang/english/admin/academia.lang.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** academia.lang.php 10 Nov 2004 05:15:16 -0000 1.2 --- academia.lang.php 25 Nov 2004 19:47:23 -0000 1.3 *************** *** 41,43 **** --- 41,53 ---- $lang['aca']['teachfiles'] = "Teacher's Attached Files"; + //Delete Filter + $lang['aca']['del']['title'] = "Delete Filter"; + $lang['aca']['del']['explain'] = "Use this utility to delete items based on given criteria. Leave a field blank to disable it."; + $lang['aca']['del']['del_assign_date'] = "Delete Assignments Due Before"; + $lang['aca']['del']['del_file_date'] = "Delete Files Submitted Before"; + $lang['aca']['del']['del_assign'] = "Delete Assignments"; + $lang['aca']['del']['del_file'] = "Delete Files"; + + //Import the TC lang files... + include ("lang/{$config['lang']}/tc.lang.php"); ?> \ No newline at end of file |
From: jsvoyager <jsv...@us...> - 2004-11-25 19:47:41
|
Update of /cvsroot/webschool/webschool/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11895/admin Modified Files: academia.php Log Message: Got academia amod working, less files... Index: academia.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/academia.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** academia.php 21 Nov 2004 20:19:24 -0000 1.3 --- academia.php 25 Nov 2004 19:47:22 -0000 1.4 *************** *** 31,35 **** $smarty->assign("lang", $lang); ! if ($perm['academia'] >= 0){ //////////////////////////// // Once again, here we are --- 31,35 ---- $smarty->assign("lang", $lang); ! if ($perm['academia'] > 0){ //////////////////////////// // Once again, here we are *************** *** 40,44 **** //Add Class if (isset($_POST['name'])){ ! //Add Class to DB/Update class $modify = false; if (isset($_POST['aid'])){ --- 40,44 ---- //Add Class if (isset($_POST['name'])){ ! //Add Class to DB -or- Update class $modify = false; if (isset($_POST['aid'])){ *************** *** 69,77 **** } }elseif ($_GET['op'] == "addassign"){ ! //Add assignment ! ! //(As of current, assignments are added by TeacherCenter. UhOh. We might change ! // this latter. For right now, direct to TC's utility) ! Header("Location: mod.php?mod=TC&op=addassign"); }elseif ($_GET['op'] == "modify"){ if (isset($_GET['aid'])){ --- 69,113 ---- } }elseif ($_GET['op'] == "addassign"){ ! //Add assignment -or- update assignment ! //Note: This used to be in TC (mods/TeacherCenter/index.php (now deleted)). ! if (isset($_POST['aid'])){ ! //Figure out if we're modifying or adding ! $modify = (isset($_POST['assignid'])) ? (true) : (false); ! ! ! if ($modify){ ! //Update the database ! $query = "UPDATE "._ASSIGNMENTS_." SET aid='{$_POST['aid']}', due='{$_POST['due']}', " . ! "title='{$_POST['title']}', description='{$_POST['desc']}' WHERE id='{$_POST['assignid']}'"; ! }else{ ! //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 to the index as needed ! if (isset($_REQUEST['ref'])){ ! Header("Location: index.php"); ! } ! }else{ ! //Get their classes ! $i = 0; ! $query = "SELECT * FROM "._ACADEMIA_; ! if ($perm['academia'] <= 2){ ! $query .= " 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->assign("overtitle", $lang['tc']['add_assign']); ! $smarty->display("admin/academia.addassign.tpl"); ! } }elseif ($_GET['op'] == "modify"){ if (isset($_GET['aid'])){ *************** *** 91,95 **** }elseif (isset($_GET['assign'])){ //Modify an assignment ! echo ("Still debating what I want to do..."); }else{ error(__FILE__,__LINE__,"Unknown: What to modify", -1, true); --- 127,158 ---- }elseif (isset($_GET['assign'])){ //Modify an assignment ! $query = "SELECT * FROM "._ASSIGNMENTS_." WHERE id='{$_GET['assign']}' LIMIT 0,1"; ! db2(__FILE__,__LINE__,$query); ! ! $assign = dbr2(); ! ! //Get their classes ! $i = 0; ! $query = "SELECT * FROM "._ACADEMIA_; ! if ($perm['academia'] <= 2){ ! $query .= " 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("ref", $_GET['ref']); ! $smarty->assign("classes", $classes); ! $smarty->assign("aid", $assign['aid']); ! $smarty->assign("assignid", $assign['id']); ! $smarty->assign("due", $assign['due']); ! $smarty->assign("title", $assign['title']); ! $smarty->assign("desc", $assign['description']); ! $smarty->assign("overtitle", $lang['tc']['mod_assign']); ! $smarty->display("admin/academia.addassign.tpl"); }else{ error(__FILE__,__LINE__,"Unknown: What to modify", -1, true); *************** *** 108,136 **** } }elseif ($_GET['op'] == "clearassign"){ ! if (isset($_GET['aid'])){ ! //Delete all assignments from a class ! $query = "DELETE FROM "._ASSIGNMENTS_." WHERE aid='" . $_GET['aid'] . "'"; ! dbn(__FILE__,__LINE__,$query); ! }elseif (isset($_GET['assign'])){ ! //Delete a single assignments ! $query = "DELETE FROM "._ASSIGNMENTS_." WHERE id='" . $_GET['assign'] . "'"; ! dbn(__FILE__,__LINE__,$query); }else{ ! //No specific given, so clear all assignments from all (owned) classes ! //Get owned classes, if not admin ! if ($perm['academia'] < 3){ ! $query2 = "SELECT * FROM "._ACADEMIA_." WHERE instructor='" . $user['id'] . "'"; ! }else{ ! $query2 = "SELECT * FROM "._ACADEMIA_; } - db(__FILE__,__LINE__,$query2); ! $query3 = "DELETE FROM "._ASSIGNMENTS_." WHERE "; ! while ($class = dbr()){ ! $query3 .= "aid='" . $class['id'] . "' OR "; ! } ! $query3 .= " id='-1'"; ! dbn(__FILE__,__LINE__,$query3); ! } }elseif ($_GET['op'] == "clearfile"){ if (isset($_GET['aid'])){ --- 171,213 ---- } }elseif ($_GET['op'] == "clearassign"){ ! //See if they know the deletion criteria ! if (!isset($_POST['submit'])){ ! //Show the form ! if (isset($_GET['aid'])){ ! $smarty->assign("aid", $_GET['aid']); ! } ! $smarty->assign("op", "clearassign"); ! $smarty->display("admin/academia.clearfilter.tpl"); }else{ ! //Figure out the additional info from the filtered delete form ! if (isset($_POST['date'])){ ! $addquery .= " AND due < '{$_POST['date']}'"; } ! ! //Now actually do some deleting ! if (isset($_POST['aid'])){ ! //Delete all assignments from a class ! $query = "DELETE FROM "._ASSIGNMENTS_." WHERE aid='" . $_POST['aid'] . "'" . $addquery; ! dbn(__FILE__,__LINE__,$query); ! }else{ ! //No specific given, so clear all assignments from all (owned) classes ! //Get owned classes, if not admin ! if ($perm['academia'] < 3){ ! $query2 = "SELECT * FROM "._ACADEMIA_." WHERE instructor='" . $user['id'] . "'"; ! }else{ ! $query2 = "SELECT * FROM "._ACADEMIA_; ! } ! db(__FILE__,__LINE__,$query2); ! ! $query3 = "DELETE FROM "._ASSIGNMENTS_." WHERE ("; ! while ($class = dbr()){ ! $query3 .= "aid='" . $class['id'] . "' OR "; ! } ! $query3 = substr($query3, 0, (strlen($query3) - 4)); //Remove traling " OR "; ! $query3 .= " ) " . $addquery; ! dbn(__FILE__,__LINE__,$query3); ! } ! } }elseif ($_GET['op'] == "clearfile"){ if (isset($_GET['aid'])){ *************** *** 163,167 **** $name = $name['fname'] . " " . $name['lname']; $classes[$i]['teacher'] = $name; ! $assignment_classes[$class['id']] = $class['classname']; //Use below in the assignments section $i++; --- 240,244 ---- $name = $name['fname'] . " " . $name['lname']; $classes[$i]['teacher'] = $name; ! $assignment_classes[$class['id']] = $class['classname']; //Used below in the assignments section $i++; *************** *** 177,183 **** $query .= " WHERE aid='"; foreach($assignment_classes as $aid => $classname){ ! $query .= $aid . ","; } ! $query .= $assignment_classes[0] . "'"; } $query .= " ORDER BY aid ASC"; --- 254,260 ---- $query .= " WHERE aid='"; foreach($assignment_classes as $aid => $classname){ ! $query .= $aid . "' OR aid='"; } ! $query = substr($query, 0, (strlen($query) - 9)); //Remove the traling " OR aid='" from the query } $query .= " ORDER BY aid ASC"; |
From: jsvoyager <jsv...@us...> - 2004-11-25 19:47:40
|
Update of /cvsroot/webschool/webschool/theme/templates/mods In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11895/theme/templates/mods Modified Files: tc.index.tpl Removed Files: tc.addassign.tpl Log Message: Got academia amod working, less files... --- tc.addassign.tpl DELETED --- Index: tc.index.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/mods/tc.index.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tc.index.tpl 1 Nov 2004 23:06:57 -0000 1.1 --- tc.index.tpl 25 Nov 2004 19:47:24 -0000 1.2 *************** *** 12,16 **** <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> --- 12,15 ---- *************** *** 18,22 **** {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> --- 17,20 ---- *************** *** 32,36 **** <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> --- 30,33 ---- *************** *** 39,52 **** {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> --- 36,47 ---- {section name=i2 loop=$assignments} <tr> ! {if $assignments[i2].classname == $assignments[i2.index_prev].classname} {* Blank Spaces Beause it's the same class as last time *} <td> </td> {else} {*New Class, put in the info*} <td><a href="mod.php?mod=Academia&viewclass={$assignments[i2].aid}">{$assignments[i2].classname}</a></td> {/if} ! <td><a href="admin.php?amod=academia&op=modify&ref=1&assign={$assignments[i2].id}">{$assignments[i2].title}</a></td> <td>{$assignments[i2].due|date_format:"%a %b %e, %Y"}</td> </tr> *************** *** 54,58 **** <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> --- 49,53 ---- <tr><td colspan="4"><i>{$lang.tc.no_assign}</i></td></tr> {/section} ! <tr><td colspan="4"><a href="admin.php?amod=academia&op=addassign&ref=1">{$lang.tc.add_assign}</a></td></tr> </table> |
From: jsvoyager <jsv...@us...> - 2004-11-25 19:47:39
|
Update of /cvsroot/webschool/webschool/lang/english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11895/lang/english Modified Files: tc.lang.php Log Message: Got academia amod working, less files... Index: tc.lang.php =================================================================== RCS file: /cvsroot/webschool/webschool/lang/english/tc.lang.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tc.lang.php 1 Nov 2004 23:06:38 -0000 1.1 --- tc.lang.php 25 Nov 2004 19:47:23 -0000 1.2 *************** *** 15,17 **** --- 15,18 ---- $lang['tc']['desc'] = "Directions"; $lang['tc']['add_assign'] = "Add Assignment"; + $lang['tc']['mod_assign'] = "Modify Assignmnet"; ?> \ No newline at end of file |
From: jsvoyager <jsv...@us...> - 2004-11-25 19:47:39
|
Update of /cvsroot/webschool/webschool/theme/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11895/theme/templates Modified Files: menu.tpl Log Message: Got academia amod working, less files... Index: menu.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/menu.tpl,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** menu.tpl 24 Nov 2004 02:54:14 -0000 1.7 --- menu.tpl 25 Nov 2004 19:47:24 -0000 1.8 *************** *** 4,8 **** --> ! <table summary="Menu" width="130" align="top" cellpadding="0" cellspacing="0" border="0" bordercolor="#333399"> <tr class="" cellpadding="0" cellspacing="0" > <td class="WS-topleft"></td> --- 4,8 ---- --> ! <table summary="Menu" width="120" align="top" cellpadding="0" cellspacing="0" border="0" bordercolor="#333399"> <tr class="" cellpadding="0" cellspacing="0" > <td class="WS-topleft"></td> *************** *** 38,45 **** <table width="100%"> <tr><td> ! <span style="font-family: sans; font-size: -1; font-weight: bold; ">Username:</span><br> ! <center><input size="12" type="text" name="username" id="username"></center><br> ! <span style="font-size: -1; font-weight: bold; font-family: sans;">Password:</span><br> ! <center><input size="12" type="password" name="pass"></center><br> <center><input type="submit" value="Login"></center> </td></tr> --- 38,45 ---- <table width="100%"> <tr><td> ! <span style="font-family: sans; font-size: 12px; font-weight: bold; ">Username:</span><br> ! <center><input size="10" type="text" name="username" id="username"></center><br> ! <span style="font-size: 12px; font-weight: bold; font-family: sans;">Password:</span><br> ! <center><input size="10" type="password" name="pass"></center><br> <center><input type="submit" value="Login"></center> </td></tr> |
From: jsvoyager <jsv...@us...> - 2004-11-25 19:47:37
|
Update of /cvsroot/webschool/webschool/theme/templates/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11895/theme/templates/admin Added Files: academia.addassign.tpl academia.clearfilter.tpl Log Message: Got academia amod working, less files... --- NEW FILE: academia.clearfilter.tpl --- {* This file is used to filter delete both files and assignments *} {include file="tablehead.tpl" tbtitle=$lang.aca.del.title} <p>{$lang.aca.del.explain}</p> <form action="{$AMOD}&op={$op}" method="post"> {if $aid != ""} <input type="hidden" name="aid" value="{$aid}"> {/if} <table width="100%" border="0"> <tr><td class="field-title" width="40%"> {if $op == "clearassign"} {$lang.aca.del.del_assign_date}: {elseif $op == "clearfile"} {$lang.aca.del.del_file_date}: {/if} </td><td><input type="text" name="date"></td></tr> <tr><td colspan="2"> {if $op == "clearassign"} <input type="submit" name="submit" value="{$lang.aca.del.del_assign}"> {elseif $op == "clearfile"} <input type="submit" name="submit" value="{$lang.aca.del.del_file}"> {/if} </td></tr> </table> </form> {include file="tablefoot.tpl"} --- NEW FILE: academia.addassign.tpl --- {include file="tablehead.tpl" tbtitle=$overtitle} <form action="{$AMOD}&op=addassign" method="post"> {if $assignid != ""} {* We've got a modify going down *} <input type="hidden" name="assignid" value="{$assignid}"> {/if} {if ($ref != "") || ($smarty.get.ref != "")} {*The index refered to here, we'll need to return there when done. *} <input type="hidden" name="ref" value="1"> {/if} <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 $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="{$due}" {* disabled="disabled" *}></td> </tr> <tr> <td class="field-title">{$lang.tc.title}:</td> <td><input type="text" name="title" value="{$title}" size="31"></td> </tr> <tr> <td class="field-title">{$lang.tc.desc}:</td> <td><textarea name="desc" rows="4" cols="30">{$desc}</textarea></td> </tr> <tr> <td><input type="submit" value="{$overtitle}"></td> </tr> </table> </form> {include file="tablefoot.tpl"} |
From: Matt M. <pro...@us...> - 2004-11-24 03:38:11
|
Update of /cvsroot/webschool/webschool/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11261/admin Modified Files: config.php Log Message: XHTML bug fixes AND various bug fixes and feature implementations. Index: config.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/config.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** config.php 30 Oct 2004 22:34:42 -0000 1.3 --- config.php 24 Nov 2004 02:54:12 -0000 1.4 *************** *** 43,47 **** while( $configval = dbr() ) { ! $smarty->append("configvals", $configval); } $smarty->display("admin/config.tpl"); --- 43,47 ---- while( $configval = dbr() ) { ! $smarty->append("dbconfig", $configval); } $smarty->display("admin/config.tpl"); *************** *** 74,77 **** --- 74,80 ---- } header("Location: "._AMOD_); + } elseif ( $_REQUEST['op'] == "dbconfig" ) { + + } ?> \ No newline at end of file |
From: Matt M. <pro...@us...> - 2004-11-24 03:23:14
|
Update of /cvsroot/webschool/webschool/theme/templates/mods In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11261/theme/templates/mods Modified Files: articles.read.tpl sc.addclass.tpl sotm.tpl tc.addassign.tpl Log Message: XHTML bug fixes AND various bug fixes and feature implementations. Index: sotm.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/mods/sotm.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sotm.tpl 27 Oct 2004 00:56:45 -0000 1.1 --- sotm.tpl 24 Nov 2004 02:54:15 -0000 1.2 *************** *** 9,13 **** <!-- Begin Main Section --> ! <td> {include file="tablehead.tpl" title="$tbheader"} <center><table> --- 9,13 ---- <!-- Begin Main Section --> ! <td valign="top"> {include file="tablehead.tpl" title="$tbheader"} <center><table> Index: articles.read.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/mods/articles.read.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** articles.read.tpl 20 Nov 2004 01:50:52 -0000 1.2 --- articles.read.tpl 24 Nov 2004 02:54:15 -0000 1.3 *************** *** 10,24 **** <!-- Begin Main Section --> ! {include file="tablehead.tpl" title="$tbheader"} ! <font size=+3>{$prettytitle}</font><br> ! By: {ResolveUserID ID=$author} <br> ! Published: {$published|date_format:"%A, %B %d, %Y"} <hr> <br> ! {$content} <br> ! <center><font size=-2>Last Update: {$updated|date_format:"%A, %B %d, %Y"}</font></center> ! {include file="tablefoot.tpl} </td> --- 10,27 ---- <!-- Begin Main Section --> ! {include file="tablehead.tpl" title="$article.tbheader"} ! {if $user.perm.articles > 1 || $user.id == $article.owner} ! <a href="admin.php?amod=Articles&htmlarea=1&op=modify&id={$article.id}">Modify</a><br> ! {/if} ! <font size=+3>{$article.prettytitle}</font><br> ! By: {ResolveUserID ID=$article.author} <br> ! Published: {$article.published|date_format:"%A, %B %d, %Y"} <hr> <br> ! {$article.content} <br> ! <center><font size=-2>Last Update: {$article.updated|date_format:"%A, %B %d, %Y"}</font></center> ! {include file="tablefoot.tpl} </td> Index: tc.addassign.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/mods/tc.addassign.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tc.addassign.tpl 1 Nov 2004 23:06:57 -0000 1.1 --- tc.addassign.tpl 24 Nov 2004 02:54:15 -0000 1.2 *************** *** 25,29 **** <tr> <td class="field-title">{$lang.tc.due}:</td> ! <td><input type="text" name="due" value="{$smarty.post.due}" {* disabled="disabled" *} /></td> </tr> <tr> --- 25,29 ---- <tr> <td class="field-title">{$lang.tc.due}:</td> ! <td><input type="text" name="due" value="{$smarty.post.due}" {* disabled="disabled" *}></td> </tr> <tr> *************** *** 36,40 **** </tr> <tr> ! <td><input type="submit" value="{$lang.tc.add_assign}" /></td> </tr> </table> --- 36,40 ---- </tr> <tr> ! <td><input type="submit" value="{$lang.tc.add_assign}"></td> </tr> </table> Index: sc.addclass.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/mods/sc.addclass.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sc.addclass.tpl 1 Nov 2004 03:33:50 -0000 1.1 --- sc.addclass.tpl 24 Nov 2004 02:54:15 -0000 1.2 *************** *** 26,33 **** <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> --- 26,33 ---- <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> |
Update of /cvsroot/webschool/webschool/theme/templates/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11261/theme/templates/admin Modified Files: academia.addclass.tpl articles.add.tpl articles.modify.tpl articles.read.tpl config.tpl menu.tpl news.add.tpl news.modify.tpl news.read.tpl newsletters.add.tpl pages.add.tpl pages.modify.tpl pages.read.tpl pages.tpl pictures.add.tpl sotm.add.tpl sotm.tpl users.add.tpl users.changepass.tpl users.delete.tpl Log Message: XHTML bug fixes AND various bug fixes and feature implementations. Index: news.modify.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/news.modify.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** news.modify.tpl 6 Nov 2004 01:16:20 -0000 1.2 --- news.modify.tpl 24 Nov 2004 02:54:15 -0000 1.3 *************** *** 1,6 **** {include file="tablehead.tpl"} ! <center>Modify an Article</center><hr /> <form name="modarticle" action="{$AMOD}&op=modify&id={$modify.id}" method="post"> ! Title: <input type="text" name="title" value="{$modify.prettytitle}" /><input type="hidden" name="add" value="1" /><br /> <textarea id="ta" name="ta" style="width:100%" rows="20" cols="100"> {$modify.content} --- 1,6 ---- {include file="tablehead.tpl"} ! <center>Modify an Article</center><hr> <form name="modarticle" action="{$AMOD}&op=modify&id={$modify.id}" method="post"> ! Title: <input type="text" name="title" value="{$modify.prettytitle}"><input type="hidden" name="add" value="1"><br> <textarea id="ta" name="ta" style="width:100%" rows="20" cols="100"> {$modify.content} Index: pages.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/pages.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pages.tpl 27 Oct 2004 00:56:44 -0000 1.1 --- pages.tpl 24 Nov 2004 02:54:15 -0000 1.2 *************** *** 27,31 **** <td>{$active[iv].title}</td> {if $perm.articles == 2} ! <td>{$active[iv].owner}</td> {/if} <td>{$active[iv].published}</td> --- 27,31 ---- <td>{$active[iv].title}</td> {if $perm.articles == 2} ! <td>{ResolveUserID ID=$active[iv].owner pretty=true}</td> {/if} <td>{$active[iv].published}</td> *************** *** 73,77 **** <td>{$active[iv].title}</td> {if $perm.articles >= 2} ! <td>{$pending[iv].owner}</td> {/if} <td>{$pending[iv].submitted}</td> --- 73,77 ---- <td>{$active[iv].title}</td> {if $perm.articles >= 2} ! <td>{ResolveUserID ID=$pending[iv].owner}</td> {/if} <td>{$pending[iv].submitted}</td> Index: articles.add.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/articles.add.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** articles.add.tpl 27 Oct 2004 00:56:44 -0000 1.1 --- articles.add.tpl 24 Nov 2004 02:54:15 -0000 1.2 *************** *** 1,6 **** {include file="tablehead.tpl" tbtitle="Add an article"} ! <center>Add Article</center><hr /> <form name="addarticle" action=""._AMOD_."&op=add" method="post"> ! Title: <input type="text" id="title" name="title" /><input type="hidden" name="add" value="1" /><br /> <textarea id="ta" name="ta" style="width:100%" rows="20" cols="10"> </textarea> --- 1,6 ---- {include file="tablehead.tpl" tbtitle="Add an article"} ! <center>Add Article</center><hr> <form name="addarticle" action=""._AMOD_."&op=add" method="post"> ! Title: <input type="text" id="title" name="title"><input type="hidden" name="add" value="1"><br> <textarea id="ta" name="ta" style="width:100%" rows="20" cols="10"> </textarea> Index: sotm.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/sotm.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sotm.tpl 6 Nov 2004 02:41:41 -0000 1.3 --- sotm.tpl 24 Nov 2004 02:54:15 -0000 1.4 *************** *** 17,21 **** <option value="12">{$lang.months.december}</option> </select> ! <input type="Text" name="year" id="year" maxlength="4" size="4"" value="{$smarty.now|date_format:"%Y"}" /> <button type="submit">{$lang.sotm.add}</button> </form> --- 17,21 ---- <option value="12">{$lang.months.december}</option> </select> ! <input type="Text" name="year" id="year" maxlength="4" size="4"" value="{$smarty.now|date_format:"%Y"}"> <button type="submit">{$lang.sotm.add}</button> </form> *************** *** 23,27 **** <p class="over-title">{$lang.sotm.current_sotms}</p> {foreach from=$records item=v} ! <a href="{$AMOD}&op=edit&month={$v|date_format:"%m"}&year={$v|date_format:"%Y"}">{$v|date_format:"%B %Y"}<br /> {/foreach} </center> --- 23,27 ---- <p class="over-title">{$lang.sotm.current_sotms}</p> {foreach from=$records item=v} ! <a href="{$AMOD}&op=edit&month={$v|date_format:"%m"}&year={$v|date_format:"%Y"}">{$v|date_format:"%B %Y"}<br> {/foreach} </center> Index: pages.add.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/pages.add.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pages.add.tpl 27 Oct 2004 00:56:44 -0000 1.1 --- pages.add.tpl 24 Nov 2004 02:54:15 -0000 1.2 *************** *** 1,6 **** {include file="tablehead.tpl" tbtitle="Add page"} ! <center>Add Page</center><hr /> <form name="addpage" action="{$AMOD}&op=add" method="post"> ! Title: <input type="text" id="title" name="title"><input type="hidden" id="add" name="add" value="1"><br /> <textarea id="ta" name="ta" style="width:100%" rows="20" cols="100"> </textarea> --- 1,6 ---- {include file="tablehead.tpl" tbtitle="Add page"} ! <center>Add Page</center><hr> <form name="addpage" action="{$AMOD}&op=add" method="post"> ! Title: <input type="text" id="title" name="title"><input type="hidden" id="add" name="add" value="1"><br> <textarea id="ta" name="ta" style="width:100%" rows="20" cols="100"> </textarea> Index: articles.modify.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/articles.modify.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** articles.modify.tpl 27 Oct 2004 00:56:44 -0000 1.1 --- articles.modify.tpl 24 Nov 2004 02:54:15 -0000 1.2 *************** *** 2,6 **** <center>Modify an Article</center><hr /> <form name="modarticle" action="{$AMOD}&op=modify&id={$modifyid}" method="post"> ! Title: <input type="text" name="title" id="title" value="{$modifyprettytitle}"><input type="hidden" name="add" id="add" value="1"><br /> <textarea id="ta" name="ta" style="width:100%" rows="20" cols="100"> {$modifycontent} --- 2,6 ---- <center>Modify an Article</center><hr /> <form name="modarticle" action="{$AMOD}&op=modify&id={$modifyid}" method="post"> ! Title: <input type="text" name="title" id="title" value="{$modifyprettytitle}"><input type="hidden" name="add" id="add" value="1"><br> <textarea id="ta" name="ta" style="width:100%" rows="20" cols="100"> {$modifycontent} Index: pages.read.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/pages.read.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pages.read.tpl 27 Oct 2004 00:56:44 -0000 1.1 --- pages.read.tpl 24 Nov 2004 02:54:15 -0000 1.2 *************** *** 7,17 **** <h2>Page Info</h2> ! <br /> ! Owner: {$readpage.owner} <br /> ! PrettyName: {$readpage.prettyname} <br /> ! Submitted: {$readpage.submitted} <br /> ! Published: {$readpage.published} <br /> ! Last Update: {$readpage.lastupdate} <br /> ! <hr /> {$content} {/if} --- 7,17 ---- <h2>Page Info</h2> ! <br> ! Owner: {$readpage.owner} <br> ! PrettyName: {$readpage.prettyname} <br> ! Submitted: {$readpage.submitted} <br> ! Published: {$readpage.published} <br> ! Last Update: {$readpage.lastupdate} <br> ! <hr> {$content} {/if} Index: pictures.add.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/pictures.add.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pictures.add.tpl 4 Nov 2004 04:03:32 -0000 1.2 --- pictures.add.tpl 24 Nov 2004 02:54:15 -0000 1.3 *************** *** 8,14 **** <form action="{$AMOD}&op=add&upload=1" method="post" enctype="multipart/form-data"> ! <br>Picture Name:<input type='text' name="picname" id="picname" /><br> ! <br>Description: <br> <textarea name="descrip" id="pic" cols="55" rows="4" /> </textarea> ! <br>Picture: <input type="file" name="pic" id="pic" /> <br><button type="submit">Submit</button> </form> --- 8,14 ---- <form action="{$AMOD}&op=add&upload=1" method="post" enctype="multipart/form-data"> ! <br>Picture Name:<input type='text' name="picname" id="picname"><br> ! <br>Description: <br> <textarea name="descrip" id="pic" cols="55" rows="4"> </textarea> ! <br>Picture: <input type="file" name="pic" id="pic"> <br><button type="submit">Submit</button> </form> Index: config.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/config.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** config.tpl 30 Oct 2004 22:34:43 -0000 1.4 --- config.tpl 24 Nov 2004 02:54:15 -0000 1.5 *************** *** 1,19 **** {include file="tablehead.tpl" tbtitle=$lang.config.title} ! <form action="{$AMOD}" method="POST"> <input type="hidden" value="configfile" name="op" id="op" /> <table> ! <tr><td class="field-title">{$lang.config.db_server}</td><td><input id="db_server" name="db_server" type="text" value="{$db_server}" /></td></tr> ! <tr><td class="field-title">{$lang.config.db_user}</td><td><input id="db_user" name="db_user" type="text" value="{$db_user}" /></td></tr> ! <tr><td class="field-title">{$lang.config.db_pass}</td><td><input id="db_pass" name="db_pass" type="text" value="{$db_pass}" /></td></tr> ! <tr><td class="field-title">{$lang.config.db_db}</td><td><input id="db_table" name="db_table" type="text" value="{$db}" /></td></tr> ! <tr><td class="field-title">{$lang.config.db_prefix}</td><td><input id="db_prefix" name="db_prefix" type="text" value="{$db_prefix}" /></td></tr> ! <tr><td class="field-title">{$lang.config.db_persistant}</td><td><input id="db_persistant" name="db_persistant" type="checkbox" value="true"{if $db_persistant == true} checked="checked" {/if} /></td></tr> ! <tr><td class="field-title">{$lang.config.db_prefmon}</td><td><input id="db_prefmon" name="db_prefmon" type="checkbox" value="true"{if $db_prefmon == true} checked="checked" {/if}/></td></tr> ! <tr><td class="field-title">{$lang.config.db_debug}</td><td><input id="db_debug" name="db_debug" value="true" {if $db_debug == true} checked="checked" {/if} type="checkbox" /></td></tr> ! <tr><td class="field-title">{$lang.config.debug}</td><td><input id="debug" name="debug" type="checkbox" value="true" {if $debug == true} checked="checked" {/if} /></td></tr> ! <tr><td class="field-title">{$lang.config.file_root}</td><td><input id="fileroot" name="fileroot" type="text" value="{$fileroot}" /></td></tr> </table> <input type="submit" value="Change"/> </form> {include file="tablefoot.tpl"} \ No newline at end of file --- 1,43 ---- {include file="tablehead.tpl" tbtitle=$lang.config.title} ! <form action="{$AMOD}?op=configfile" method="POST"> <input type="hidden" value="configfile" name="op" id="op" /> <table> ! <tr><td class="field-title">{$lang.config.db_server}</td><td><input id="db_server" name="db_server" type="text" value="{$db_server}"></td></tr> ! <tr><td class="field-title">{$lang.config.db_user}</td><td><input id="db_user" name="db_user" type="text" value="{$db_user}"></td></tr> ! <tr><td class="field-title">{$lang.config.db_pass}</td><td><input id="db_pass" name="db_pass" type="text" value="{$db_pass}"></td></tr> ! <tr><td class="field-title">{$lang.config.db_db}</td><td><input id="db_table" name="db_table" type="text" value="{$db}"></td></tr> ! <tr><td class="field-title">{$lang.config.db_prefix}</td><td><input id="db_prefix" name="db_prefix" type="text" value="{$db_prefix}"></td></tr> ! <tr><td class="field-title">{$lang.config.db_persistant}</td><td><input id="db_persistant" name="db_persistant" type="checkbox" value="true"{if $db_persistant == true} checked="checked" {/if}></td></tr> ! <tr><td class="field-title">{$lang.config.db_prefmon}</td><td><input id="db_prefmon" name="db_prefmon" type="checkbox" value="true"{if $db_prefmon == true} checked="checked" {/if}></td></tr> ! <tr><td class="field-title">{$lang.config.db_debug}</td><td><input id="db_debug" name="db_debug" value="true" {if $db_debug == true} checked="checked" {/if} type="checkbox"></td></tr> ! <tr><td class="field-title">{$lang.config.debug}</td><td><input id="debug" name="debug" type="checkbox" value="true" {if $debug == true} checked="checked" {/if} ></td></tr> ! <tr><td class="field-title">{$lang.config.file_root}</td><td><input id="fileroot" name="fileroot" type="text" value="{$fileroot}"></td></tr> </table> <input type="submit" value="Change"/> </form> + + + + <form action="{$AMOD}" method="POST"> + <table> + + + {foreach from=$dbconfig item=v key=k} + <tr><td class="field-title">{$v.name}</td><td> + {if $v.type == "int"} + <input type="text" maxlength="10" value="{$v.value}"> + {elseif $v.type == "bool"} + <select><option>True</option><option>False</option> </select> + {elseif $v.type == "str"} + <input type="text" value="{$v.value}"> + {elseif $v.type == "lang"} + + {/if} + </td><td>{$v.description}</td></tr> + {/foreach} + + </table> + <input type="submit" value="Change"> + </form> {include file="tablefoot.tpl"} \ No newline at end of file Index: newsletters.add.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/newsletters.add.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** newsletters.add.tpl 18 Nov 2004 01:30:21 -0000 1.3 --- newsletters.add.tpl 24 Nov 2004 02:54:15 -0000 1.4 *************** *** 18,22 **** </td> <td> ! <input type="text" value="{$smarty.get.finduname}" name="moderator" id="moderator" /> <a href="javascript:popUp('admin.php?action=finduser&referer={$AMOD}?op=add',300,150)">Find User</a> </td> --- 18,22 ---- </td> <td> ! <input type="text" value="{$smarty.get.finduname}" name="moderator" id="moderator"> <a href="javascript:popUp('admin.php?action=finduser&referer={$AMOD}?op=add',300,150)">Find User</a> </td> Index: users.add.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/users.add.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** users.add.tpl 30 Oct 2004 02:59:36 -0000 1.2 --- users.add.tpl 24 Nov 2004 02:54:15 -0000 1.3 *************** *** 2,12 **** <form action="admin.php?op=adduser&amod=Users" method="post"> <table width="100%"> ! <input type="hidden" name="add" value="1" /> ! <tr><td><span class="field-title">{$lang.users.username}: </span></td><td><input type="text" name="username" value="{$smarty.post.username}" /></td></tr> ! <tr><td><span class="field-title">{$lang.users.password}: </span></td><td><input type="password" name="password" /> </td></tr> ! <tr><td><span class="field-title">{$lang.users.passwordretype}: </span></td><td><input type="password" name="passcheck" /> <i>(Leave blank for autogen)</i></td></tr> ! <tr><td><span class="field-title">{$lang.users.email}:</span></td><td><input type="text" name="email" value="{$smarty.post.email}" /></td></tr> ! <tr><td><span class="field-title">{$lang.users.fname}:</span></td><td><input type="text" name="fname" value="{$smarty.post.fname}" /></td></tr> ! <tr><td><span class="field-title">{$lang.users.lname}:</span></td><td><input type="text" name="lanme" value="{$smarty.post.lname}" /></td></tr> <tr><td><button type="submit">Add</button></td></tr>" </table></form> --- 2,12 ---- <form action="admin.php?op=adduser&amod=Users" method="post"> <table width="100%"> ! <input type="hidden" name="add" value="1"> ! <tr><td><span class="field-title">{$lang.users.username}: </span></td><td><input type="text" name="username" value="{$smarty.post.username}"></td></tr> ! <tr><td><span class="field-title">{$lang.users.password}: </span></td><td><input type="password" name="password"> </td></tr> ! <tr><td><span class="field-title">{$lang.users.passwordretype}: </span></td><td><input type="password" name="passcheck"> <i>(Leave blank for autogen)</i></td></tr> ! <tr><td><span class="field-title">{$lang.users.email}:</span></td><td><input type="text" name="email" value="{$smarty.post.email}"></td></tr> ! <tr><td><span class="field-title">{$lang.users.fname}:</span></td><td><input type="text" name="fname" value="{$smarty.post.fname}"></td></tr> ! <tr><td><span class="field-title">{$lang.users.lname}:</span></td><td><input type="text" name="lanme" value="{$smarty.post.lname}"></td></tr> <tr><td><button type="submit">Add</button></td></tr>" </table></form> Index: users.delete.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/users.delete.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** users.delete.tpl 27 Oct 2004 00:56:44 -0000 1.1 --- users.delete.tpl 24 Nov 2004 02:54:15 -0000 1.2 *************** *** 7,11 **** <br><font color="red">WARNING, Deleting users is highly unstable right now and can cause many problems. Also, recreating the user with the same username will not restore this user, though may cause more problems. It is recommended that you instead lock this user. This action is irreversable.</font> <form action="{$AMOD}&op=delete&id={$smarty.get.id}" method='post'> ! <input type="hidden" id="confirm" name="confirm" value="1" /> <button type="submit">Delete</button> </form> --- 7,11 ---- <br><font color="red">WARNING, Deleting users is highly unstable right now and can cause many problems. Also, recreating the user with the same username will not restore this user, though may cause more problems. It is recommended that you instead lock this user. This action is irreversable.</font> <form action="{$AMOD}&op=delete&id={$smarty.get.id}" method='post'> ! <input type="hidden" id="confirm" name="confirm" value="1"> <button type="submit">Delete</button> </form> Index: menu.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/menu.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** menu.tpl 8 Nov 2004 09:52:09 -0000 1.3 --- menu.tpl 24 Nov 2004 02:54:15 -0000 1.4 *************** *** 24,34 **** {if $menuedit[iter].mode == "<[TEXT]>" } ! <td><input type="text" size="16" name="{$menuedit[iter].id}_prettytitle" value="{$menuedit[iter].prettytitle}" /></td> ! <td><input type="text" name="{$menuedit[iter].id}_url" value="{$menuedit[iter].url}" /></td> <td><center><a href="{$AMOD}&op=up&id={$menuedit[iter].id}">{$lang.menu.up_symbol}</a><br><a href="{$AMOD}&op=down&id={$menuedit[iter].id}">{$lang.menu.down_symbol}</a></center></td> <td><center><a href="{$AMOD}&op=delete&id={$menuedit[iter].id}">{$lang.menu.delete_symbol}</a></center></td> {/if} {if $menuedit[iter].mode == "<[TREE]>"} ! <td><input type="text" size="16" name="{$menuedit[iter].id}_treename" value="{$menuedit[iter].prettytitle}" /></td> <td></td> <td><center><a href="{$AMOD}&op=up&id={$menuedit[iter].id}">{$lang.menu.up_symbol}</a><br><a href="{$AMOD}&op=down&id={$menuedit[iter].id}">{$lang.menu.down_symbol}</a></center></td> --- 24,34 ---- {if $menuedit[iter].mode == "<[TEXT]>" } ! <td><input type="text" size="16" name="{$menuedit[iter].id}_prettytitle" value="{$menuedit[iter].prettytitle}"></td> ! <td><input type="text" name="{$menuedit[iter].id}_url" value="{$menuedit[iter].url}"></td> <td><center><a href="{$AMOD}&op=up&id={$menuedit[iter].id}">{$lang.menu.up_symbol}</a><br><a href="{$AMOD}&op=down&id={$menuedit[iter].id}">{$lang.menu.down_symbol}</a></center></td> <td><center><a href="{$AMOD}&op=delete&id={$menuedit[iter].id}">{$lang.menu.delete_symbol}</a></center></td> {/if} {if $menuedit[iter].mode == "<[TREE]>"} ! <td><input type="text" size="16" name="{$menuedit[iter].id}_treename" value="{$menuedit[iter].prettytitle}"></td> <td></td> <td><center><a href="{$AMOD}&op=up&id={$menuedit[iter].id}">{$lang.menu.up_symbol}</a><br><a href="{$AMOD}&op=down&id={$menuedit[iter].id}">{$lang.menu.down_symbol}</a></center></td> *************** *** 48,54 **** {/foreach} </select> ! <input type="text" size="10" name="{$menuedit[iter].id}_prettytitle" value="{$menuedit[iter].prettytitle}" /> </td> ! <td><input type="text" name="{$menuedit[iter].id}_url" value="{$menuedit[iter].url}" /></td> <td><center><a href="{$AMOD}&op=up&id={$menuedit[iter].id}">{$lang.menu.up_symbol}</a><br><a href="{$AMOD}&op=down&id={$menuedit[iter].id}">{$lang.menu.down_symbol}</a></center></td> <td><center><a href="{$AMOD}&op=delete&id={$menuedit[iter].id}">{$lang.menu.delete_symbol}</a></center></td> --- 48,54 ---- {/foreach} </select> ! <input type="text" size="10" name="{$menuedit[iter].id}_prettytitle" value="{$menuedit[iter].prettytitle}"> </td> ! <td><input type="text" name="{$menuedit[iter].id}_url" value="{$menuedit[iter].url}"></td> <td><center><a href="{$AMOD}&op=up&id={$menuedit[iter].id}">{$lang.menu.up_symbol}</a><br><a href="{$AMOD}&op=down&id={$menuedit[iter].id}">{$lang.menu.down_symbol}</a></center></td> <td><center><a href="{$AMOD}&op=delete&id={$menuedit[iter].id}">{$lang.menu.delete_symbol}</a></center></td> *************** *** 62,66 **** <form action="{$AMOD}&op=additem" method="post"> <p class="over-title">{$lang.menu.addnew}</p> ! <input type="hidden" name="lastplace" value="{$lastplace}" /> <span class="field-title">{$lang.menu.type}:</span><select name="add_mode"> --- 62,66 ---- <form action="{$AMOD}&op=additem" method="post"> <p class="over-title">{$lang.menu.addnew}</p> ! <input type="hidden" name="lastplace" value="{$lastplace}"> <span class="field-title">{$lang.menu.type}:</span><select name="add_mode"> *************** *** 71,76 **** </select><br> ! <span class="field-title">{$lang.menu.prettytitle}:</span> <input type="text" name="add_prettytitle" /><br> ! <span class="field-title">{$lang.menu.url}:</span> <input type="text" size="50" name="add_url" /><br> <button type="submit">{$lang.menu.add}</button> </form> --- 71,76 ---- </select><br> ! <span class="field-title">{$lang.menu.prettytitle}:</span> <input type="text" name="add_prettytitle"><br> ! <span class="field-title">{$lang.menu.url}:</span> <input type="text" size="50" name="add_url"><br> <button type="submit">{$lang.menu.add}</button> </form> Index: news.add.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/news.add.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** news.add.tpl 27 Oct 2004 00:56:44 -0000 1.1 --- news.add.tpl 24 Nov 2004 02:54:15 -0000 1.2 *************** *** 1,6 **** {include file="tablehead.tpl" tbtitle="Add News"} ! <center>Add News</center><hr /> <form name="addarticle" action=""._AMOD_."&op=add" method="post"> ! Title: <input type="text" id="title" name="title" /><input type="hidden" name="add" id="add" value="1" /><br> <textarea id="ta" name="ta" style="width:100%" rows="20" cols="100"> </textarea> --- 1,6 ---- {include file="tablehead.tpl" tbtitle="Add News"} ! <center>Add News</center><hr> <form name="addarticle" action=""._AMOD_."&op=add" method="post"> ! Title: <input type="text" id="title" name="title"><input type="hidden" name="add" id="add" value="1"><br> <textarea id="ta" name="ta" style="width:100%" rows="20" cols="100"> </textarea> Index: sotm.add.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/sotm.add.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** sotm.add.tpl 6 Nov 2004 02:41:41 -0000 1.2 --- sotm.add.tpl 24 Nov 2004 02:54:15 -0000 1.3 *************** *** 1,18 **** {include file="tablehead.tpl" tbtitle="Adding SOTM"} ! Add Student Of the Months<br /><hr /> <form action="{$AMOD}&op=new" method="post" enctype="multipart/form-data"> ! <input type="hidden" name="add" value="1" /> Month: {$smarty.request.month} <INPUT type="hidden" name="month" value="{$smarty.request.month}"> Year: {$smarty.request.year}<INPUT type="hidden" name="year" value="{$smarty.request.year}"> ! <br /><br /> ! <b>{$lang.sotm.freshman} {$lang.sotm.sotm}:</b> <br /> ! <table><tr><td>{$lang.sotm.name}: </td><td><input type="text" name="fname" /></td></tr> <br> <tr><td>{$lang.sotm.picture}: </td><td><input type="file" name="fpic" /></td></tr></table><br> ! <b>{$lang.sotm.sophmore} {$lang.sotm.sotm}:</b> <br /> ! <table><tr><td>{$lang.sotm.name}: </td><td><input type="text" name="sopname" /></td></tr> <br> <tr><td>{$lang.sotm.picture}: </td><td><input type="file" name="soppic" /></td></tr></table><br> ! <b>{$lang.sotm.junior} {$lang.sotm.sotm}:</b> <br /> ! <table><tr><td>{$lang.sotm.name}: </td><td><input type="text" name="jname" /></td></tr> <br> <tr><td>{$lang.sotm.picture}: </td><td><input type="file" name="jpic" /></td></tr></table><br> ! <b>{$lang.sotm.senior} {$lang.sotm.sotm}:</b> <br /> ! <table><tr><td>{$lang.sotm.name}: </td><td><input type="text" name="sename" /></td></tr> <br> <tr><td>{$lang.sotm.picture}: </td><td><input type="file" name="sepic" /></td></tr></table><br> <button type="submit">{$lang.sotm.add}</button> --- 1,18 ---- {include file="tablehead.tpl" tbtitle="Adding SOTM"} ! Add Student Of the Months<br><hr> <form action="{$AMOD}&op=new" method="post" enctype="multipart/form-data"> ! <input type="hidden" name="add" value="1"> Month: {$smarty.request.month} <INPUT type="hidden" name="month" value="{$smarty.request.month}"> Year: {$smarty.request.year}<INPUT type="hidden" name="year" value="{$smarty.request.year}"> ! <br><br> ! <b>{$lang.sotm.freshman} {$lang.sotm.sotm}:</b> <br> ! <table><tr><td>{$lang.sotm.name}: </td><td><input type="text" name="fname"></td></tr> <br> <tr><td>{$lang.sotm.picture}: </td><td><input type="file" name="fpic"></td></tr></table><br> ! <b>{$lang.sotm.sophmore} {$lang.sotm.sotm}:</b> <br> ! <table><tr><td>{$lang.sotm.name}: </td><td><input type="text" name="sopname"></td></tr> <br> <tr><td>{$lang.sotm.picture}: </td><td><input type="file" name="soppic"></td></tr></table><br> ! <b>{$lang.sotm.junior} {$lang.sotm.sotm}:</b> <br> ! <table><tr><td>{$lang.sotm.name}: </td><td><input type="text" name="jname"></td></tr> <br> <tr><td>{$lang.sotm.picture}: </td><td><input type="file" name="jpic"></td></tr></table><br> ! <b>{$lang.sotm.senior} {$lang.sotm.sotm}:</b> <br> ! <table><tr><td>{$lang.sotm.name}: </td><td><input type="text" name="sename"></td></tr> <br> <tr><td>{$lang.sotm.picture}: </td><td><input type="file" name="sepic"></td></tr></table><br> <button type="submit">{$lang.sotm.add}</button> Index: articles.read.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/articles.read.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** articles.read.tpl 27 Oct 2004 00:56:44 -0000 1.1 --- articles.read.tpl 24 Nov 2004 02:54:15 -0000 1.2 *************** *** 1,9 **** {include file="tablehead.tpl" tbtitle="Read an Article"} ! <br /><br /><center> {$read_prettytitle} </center><br /><hr /> ! {$lang.articles.read_author} {$read_author}<br /> ! {$lang.articles.read_published} {$read_published}<br /> ! {$lang.articles.read_updated} {$read_updated}<br /> ! <br /> {$read_content} --- 1,9 ---- {include file="tablehead.tpl" tbtitle="Read an Article"} ! <br><br><center> {$read_prettytitle} </center><br><hr> ! {$lang.articles.read_author} {$read_author}<br> ! {$lang.articles.read_published} {$read_published}<br> ! {$lang.articles.read_updated} {$read_updated}<br> ! <br> {$read_content} Index: users.changepass.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/users.changepass.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** users.changepass.tpl 18 Nov 2004 01:30:21 -0000 1.2 --- users.changepass.tpl 24 Nov 2004 02:54:15 -0000 1.3 *************** *** 11,18 **** <table> {if $user.id == $smarty.get.id} ! <tr><td>{$lang.users.currentpass}:</td><td><input type="password" name="currentpass" id="currentpass" /></td></tr> {/if} ! <tr><td>{$lang.users.newpassword}:</td><td><input type="password" name="newpass" id="newpass" /></td></tr> ! <tr><td>{$lang.users.newpasswordagain}:</td><td><input type="password" name="checkpass" id="checkpass" /></td><tr></table> <button type="submit">{$lang.users.change}</button></form> {/if} --- 11,18 ---- <table> {if $user.id == $smarty.get.id} ! <tr><td>{$lang.users.currentpass}:</td><td><input type="password" name="currentpass" id="currentpass"></td></tr> {/if} ! <tr><td>{$lang.users.newpassword}:</td><td><input type="password" name="newpass" id="newpass"></td></tr> ! <tr><td>{$lang.users.newpasswordagain}:</td><td><input type="password" name="checkpass" id="checkpass"></td><tr></table> <button type="submit">{$lang.users.change}</button></form> {/if} Index: academia.addclass.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/academia.addclass.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** academia.addclass.tpl 10 Nov 2004 05:15:16 -0000 1.2 --- academia.addclass.tpl 24 Nov 2004 02:54:15 -0000 1.3 *************** *** 16,20 **** <tr> <td class="field-title" width="25%">{$lang.aca.class_name}:</td> ! <td><input type="text" name="name" value="{$name}" size="50" /></td> </tr> <tr> --- 16,20 ---- <tr> <td class="field-title" width="25%">{$lang.aca.class_name}:</td> ! <td><input type="text" name="name" value="{$name}" size="50"></td> </tr> <tr> *************** *** 24,36 **** <tr> <td class="field-title">{$lang.aca.grades}:</td> ! <td><input type="text" name="grades" value="{$grades}" size="30" /></td> </tr> <tr> <td class="field-title">{$lang.aca.credits}:</td> ! <td><input type="text" name="credits" value="{$credits}" size="30" /></td> </tr> <tr> <td class="field-title">{$lang.aca.short} {$lang.aca.desc}:</td> ! <td><input type="text" name="shortdesc" value="{$shortdesc}" size="50" /></td> </tr> <tr> --- 24,36 ---- <tr> <td class="field-title">{$lang.aca.grades}:</td> ! <td><input type="text" name="grades" value="{$grades}" size="30"></td> </tr> <tr> <td class="field-title">{$lang.aca.credits}:</td> ! <td><input type="text" name="credits" value="{$credits}" size="30"></td> </tr> <tr> <td class="field-title">{$lang.aca.short} {$lang.aca.desc}:</td> ! <td><input type="text" name="shortdesc" value="{$shortdesc}" size="50"></td> </tr> <tr> *************** *** 39,43 **** </tr> <tr> ! <td colspan="2"><input type="submit" value="{if $aid!=""}{$lang.aca.modify_class}{else}{$lang.aca.add_class}{/if}" /></td> </tr> </table> --- 39,43 ---- </tr> <tr> ! <td colspan="2"><input type="submit" value="{if $aid!=""}{$lang.aca.modify_class}{else}{$lang.aca.add_class}{/if}"></td> </tr> </table> Index: pages.modify.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/pages.modify.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pages.modify.tpl 27 Oct 2004 00:56:44 -0000 1.1 --- pages.modify.tpl 24 Nov 2004 02:54:15 -0000 1.2 *************** *** 1,7 **** {include file="tablehead.tpl" tbtitle="Modify"} ! <center>Modify Page</center><hr /> <form name="modarticle" action="{$AMOD}&op=modify&id={$smarty.request.id}" method="post"> ! Title: <input type="text" id="title" name="title" value="{$prettytitle}" /><input type="hidden" name="add" id="add" value="1" /><br /> <textarea id="ta" name="ta" style="width:100%" rows="20" cols="100"> {$content} --- 1,7 ---- {include file="tablehead.tpl" tbtitle="Modify"} ! <center>Modify Page</center><hr> <form name="modarticle" action="{$AMOD}&op=modify&id={$smarty.request.id}" method="post"> ! Title: <input type="text" id="title" name="title" value="{$prettytitle}"><input type="hidden" name="add" id="add" value="1"><br> <textarea id="ta" name="ta" style="width:100%" rows="20" cols="100"> {$content} Index: news.read.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/news.read.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** news.read.tpl 27 Oct 2004 00:56:44 -0000 1.1 --- news.read.tpl 24 Nov 2004 02:54:15 -0000 1.2 *************** *** 1,9 **** {include file="tablehead.tpl" tbtitle="Read an Article"} ! <br /><br /><center> {$read_prettytitle} </center><br /><hr /> ! {$lang.articles.read_author} {$read_author}<br /> ! {$lang.articles.read_published} {$read_published}<br /> ! {$lang.articles.read_updated} {$read_updated}<br /> ! <br /> {$read_content} --- 1,9 ---- {include file="tablehead.tpl" tbtitle="Read an Article"} ! <br><br><center> {$read_prettytitle} </center><br><hr> ! {$lang.articles.read_author} {$read_author}<br> ! {$lang.articles.read_published} {$read_published}<br> ! {$lang.articles.read_updated} {$read_updated}<br> ! <br> {$read_content} |
From: Matt M. <pro...@us...> - 2004-11-24 02:56:24
|
Update of /cvsroot/webschool/webschool/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11261/lib Modified Files: mainfile.php Log Message: XHTML bug fixes AND various bug fixes and feature implementations. Index: mainfile.php =================================================================== RCS file: /cvsroot/webschool/webschool/lib/mainfile.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** mainfile.php 23 Nov 2004 01:24:02 -0000 1.9 --- mainfile.php 24 Nov 2004 02:54:13 -0000 1.10 *************** *** 55,58 **** --- 55,67 ---- require("auth.php"); + //is the site disabled? + if( $config['sitedisabled'] === true) { + //are they admin or logging in? + if( !eregi("admin.php", $_SERVER['PHP_SELF']) || $userid != 2 ) { + systemmessage("Site is currently disabled"); + } + + } + include("lang/".$config['lang']."/lang.php"); include("lang/".$config['lang']."/errors.lang.php"); *************** *** 93,96 **** --- 102,106 ---- Function systemmessage($msg, $log=false) { global $smarty; + include("lib/header.php"); $smarty->assign("error_msg", $msg); $smarty->display("systemmessage.tpl"); |
From: Matt M. <pro...@us...> - 2004-11-24 02:56:09
|
Update of /cvsroot/webschool/webschool/mysql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11261/mysql Modified Files: webschool.sql Log Message: XHTML bug fixes AND various bug fixes and feature implementations. Index: webschool.sql =================================================================== RCS file: /cvsroot/webschool/webschool/mysql/webschool.sql,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** webschool.sql 23 Nov 2004 03:23:39 -0000 1.53 --- webschool.sql 24 Nov 2004 02:54:14 -0000 1.54 *************** *** 50,54 **** INSERT INTO `table_config` VALUES ('recentpages', '5', 'int', ''); INSERT INTO `table_config` VALUES ('recentnews', '5', 'int', ''); ! --- 50,54 ---- INSERT INTO `table_config` VALUES ('recentpages', '5', 'int', ''); INSERT INTO `table_config` VALUES ('recentnews', '5', 'int', ''); ! INSERT INTO `table_config` VALUES ('sitedisabled', 'false', 'bool', ''); |
From: Matt M. <pro...@us...> - 2004-11-24 02:56:09
|
Update of /cvsroot/webschool/webschool/mods/SOTM In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11261/mods/SOTM Modified Files: index.php Log Message: XHTML bug fixes AND various bug fixes and feature implementations. Index: index.php =================================================================== RCS file: /cvsroot/webschool/webschool/mods/SOTM/index.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** index.php 10 Nov 2004 00:41:17 -0000 1.6 --- index.php 24 Nov 2004 02:54:14 -0000 1.7 *************** *** 20,86 **** if( !defined("_AUTHLOADED_") ) { ! die(); } ! switch($_GET['op']){ ! default: ! main(); ! break; ! ! case "getpic": ! getpic(); ! break; } - Function main() { - global $smarty, $user, $perm; - - if( !isset( $_GET['month'] ) ) { - $thedate = mktime(0,0,0,date("m"),1,date("Y")); - $smarty->assign("thedate", $thedate); - db(__FILE__,__LINE__, "Select * From "._SOTM_." Where date='".$thedate."'"); - $res = dbr(); - $smarty->assign("fname", $res['fname']); - $smarty->assign("sopname", $res['sopname']); - $smarty->assign("jname", $res['jname']); - $smarty->assign("sename", $res['sename']); - } else { - $thedate = mktime(0,0,0,$_GET['month'],1,$_GET['year']); - $smarty->assign("thedate", $thedate); - - db(__FILE__,__LINE__, "Select * From "._SOTM_." Where date='".$thedate."'"); - $res = dbr(); - $smarty->assign("fname", $res['fname']); - $smarty->assign("sopname", $res['sopname']); - $smarty->assign("jname", $res['jname']); - $smarty->assign("sename", $res['sename']); - } - db(__FILE__,__LINE__,"Select date From "._SOTM_.""); - $i = 0; - $months = ""; - while( $row = dbr() ) { - $months[$i] = $row['date']; - $i = $i +1; - } - - $smarty->assign("months", $months); - $smarty->display("mods/sotm.tpl"); } ! Function getpic() { ! ! db(__FILE__,__LINE__,"Select ".$_GET['grade']."pic, ".$_GET['grade']."type From "._SOTM_." Where date='".$_GET['date']."'"); ! $res = dbr(); ! header("Content-Type: " . $res[''.$_GET['grade'].'type']); ! ! $handle = fopen(_fileroot_."images/sotm/".$res[''.$_GET['grade'].'pic'], "r"); ! echo fread($handle, filesize(_fileroot_."images/sotm/".$res[''.$_GET['grade'].'pic'])); ! fclose($handle); - } ?> \ No newline at end of file --- 20,73 ---- if( !defined("_AUTHLOADED_") ) { ! die(); } ! if( isset($_GET['getpic']) ) { + db(__FILE__,__LINE__,"Select ".$_GET['grade']."pic, ".$_GET['grade']."type From "._SOTM_." Where date='".$_GET['date']."'"); + $res = dbr(); + header("Content-Type: " . $res[''.$_GET['grade'].'type']); + $handle = fopen(_fileroot_."images/sotm/".$res[''.$_GET['grade'].'pic'], "r"); + echo fread($handle, filesize(_fileroot_."images/sotm/".$res[''.$_GET['grade'].'pic'])); + fclose($handle); + die(); } + + if( !isset( $_GET['month'] ) ) { + $thedate = mktime(0,0,0,date("m"),1,date("Y")); + $smarty->assign("thedate", $thedate); + db(__FILE__,__LINE__, "Select * From "._SOTM_." Where date='".$thedate."'"); + $res = dbr(); + $smarty->assign("fname", $res['fname']); + $smarty->assign("sopname", $res['sopname']); + $smarty->assign("jname", $res['jname']); + $smarty->assign("sename", $res['sename']); + } else { + $thedate = mktime(0,0,0,$_GET['month'],1,$_GET['year']); + $smarty->assign("thedate", $thedate); + + db(__FILE__,__LINE__, "Select * From "._SOTM_." Where date='".$thedate."'"); + $res = dbr(); + $smarty->assign("fname", $res['fname']); + $smarty->assign("sopname", $res['sopname']); + $smarty->assign("jname", $res['jname']); + $smarty->assign("sename", $res['sename']); + } + db(__FILE__,__LINE__,"Select date From "._SOTM_.""); + $i = 0; + $months = ""; + while( $row = dbr() ) { + $months[$i] = $row['date']; + $i = $i +1; } ! $smarty->assign("months", $months); ! $smarty->display("mods/sotm.tpl"); ! ?> \ No newline at end of file |
From: Matt M. <pro...@us...> - 2004-11-24 02:55:58
|
Update of /cvsroot/webschool/webschool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11261 Modified Files: mod.php Log Message: XHTML bug fixes AND various bug fixes and feature implementations. Index: mod.php =================================================================== RCS file: /cvsroot/webschool/webschool/mod.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** mod.php 21 Nov 2004 20:19:23 -0000 1.18 --- mod.php 24 Nov 2004 02:54:13 -0000 1.19 *************** *** 32,54 **** while (false !== ( $item = readdir($handle) ) ) { if($item != "index.html" && $item != "." && $item != ".." && $item != "CVS") { - if ( is_file(_fileroot_."mods/".$item)){ //what is a file doing here? } elseif ( is_dir(_fileroot_."mods/".$item) ){ - } elseif ( is_dir(_fileroot_."mods/".$item) ){ - /* foreach ($modules as $k=>$v) { ! if ($v['dirname'] == $item) { $modules[$k]['found'] = 1; } } ! ! foreach ($modules as $k=>$v) { ! if( $modules[$k]['found'] !== true ) { ! echo "PROBLEM in $v"; ! } ! } ! */ } --- 32,45 ---- while (false !== ( $item = readdir($handle) ) ) { if($item != "index.html" && $item != "." && $item != ".." && $item != "CVS") { if ( is_file(_fileroot_."mods/".$item)){ //what is a file doing here? } elseif ( is_dir(_fileroot_."mods/".$item) ){ foreach ($modules as $k=>$v) { ! if ($modules[$k]['dirname'] == $item) { $modules[$k]['found'] = 1; } } ! } *************** *** 56,60 **** } foreach ($modules as $k=>$v) { ! if( $modules[$k]['found'] != true ) { echo "A problem has occured in: ".$v['name']; } --- 47,51 ---- } foreach ($modules as $k=>$v) { ! if( $modules[$k]['found'] != 1 ) { echo "A problem has occured in: ".$v['name']; } *************** *** 65,69 **** - if($_REQUEST['mod'] == "") { echo "!NO MOD DECLARED!"; --- 56,59 ---- |
From: Matt M. <pro...@us...> - 2004-11-24 02:55:49
|
Update of /cvsroot/webschool/webschool/theme/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11261/theme/templates Modified Files: admin.lostpass.tpl error.tpl footer.tpl menu.tpl Log Message: XHTML bug fixes AND various bug fixes and feature implementations. Index: error.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/error.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** error.tpl 29 Oct 2004 16:42:50 -0000 1.1 --- error.tpl 24 Nov 2004 02:54:14 -0000 1.2 *************** *** 2,10 **** {$error} ! <br /> ! <br /> {$lang.error[$errorcode]} {if $error_inescapable == true} ! <br /> {$lang.error.inescapable} {/if} --- 2,10 ---- {$error} ! <br> ! <br> {$lang.error[$errorcode]} {if $error_inescapable == true} ! <br> {$lang.error.inescapable} {/if} Index: menu.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/menu.tpl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** menu.tpl 7 Nov 2004 23:55:58 -0000 1.6 --- menu.tpl 24 Nov 2004 02:54:14 -0000 1.7 *************** *** 1,11 **** <table summary="Menu" width="130" align="top" cellpadding="0" cellspacing="0" border="0" bordercolor="#333399"> ! <tr class="WS-top" cellpadding="0" cellspacing="0" ><td class="header" valign="top" align="center">Menu</td></tr> {foreach from=$menuarray item=curr_menu} {if $curr_menu.mode == "<[TEXT]>"} ! <tr><td class="WS-menuitem"><center> <a href="{$curr_menu.url}">{$curr_menu.prettytitle}</a> </center></td></tr> {/if} {if $curr_menu.mode == "<[SEPERATOR]>"} ! <tr><td><hr></td></tr> {/if} {if $curr_menu.mode == "<[TREE]>"} --- 1,22 ---- + <!-- Needs major revision. MAJOR + I even get confused when looking at this... + Also need to support treeing. I was thinking cookies?? + --> + <table summary="Menu" width="130" align="top" cellpadding="0" cellspacing="0" border="0" bordercolor="#333399"> ! <tr class="" cellpadding="0" cellspacing="0" > ! <td class="WS-topleft"></td> ! <td class="WS-top" valign="top" align="center"> ! <table><tr><td class="header">Menu</td></tr></table></td> ! <td class="WS-topright"></td> ! </tr> ! {foreach from=$menuarray item=curr_menu} {if $curr_menu.mode == "<[TEXT]>"} ! <tr><td class="WS-left"></td><td class="WS-menuitem"><a href="{$curr_menu.url}">{$curr_menu.prettytitle}</a></td><td class="WS-right"></td></tr> {/if} {if $curr_menu.mode == "<[SEPERATOR]>"} ! <tr><td class="WS-left"></td><td><hr></td><td class="WS-right"></td></tr> {/if} {if $curr_menu.mode == "<[TREE]>"} *************** *** 18,28 **** ! <tr><td><hr></td></tr> {if $user.id != 1} ! <tr><td><i>Welcome <b>{$user.fname}</b></i></td></tr> ! <tr><td><a href="admin.php?action=logout">Logout</a></td></tr> {else} <form method="post" action="admin.php?action=login"> ! <tr><td> <table width="100%"> <tr><td> --- 29,39 ---- ! <tr><td class="WS-left"></td><td><hr></td><td class="WS-right"></td></tr> {if $user.id != 1} ! <tr><td class="WS-left"></td><td><i>Welcome <b>{$user.fname}</b></i></td><td class="WS-right"></td></tr> ! <tr><td class="WS-left"></td><td><a href="admin.php?action=logout">Logout</a></td><td class="WS-right"></td></tr> {else} <form method="post" action="admin.php?action=login"> ! <tr><td class="WS-left"></td><td> <table width="100%"> <tr><td> *************** *** 34,39 **** </td></tr> </table> ! </td></tr> </form> {/if} </table> \ No newline at end of file --- 45,51 ---- </td></tr> </table> ! </td><td class="WS-right"></td></tr> </form> {/if} + <tr><td class="WS-bottomleft"></td><td class="WS-bottom"></td><td class="WS-bottomright"></td></tr> </table> \ No newline at end of file Index: admin.lostpass.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin.lostpass.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** admin.lostpass.tpl 23 Nov 2004 01:24:03 -0000 1.2 --- admin.lostpass.tpl 24 Nov 2004 02:54:14 -0000 1.3 *************** *** 1,9 **** {if $recoveredusername == ""} ! {$lang.passrecover.lost}<br /> <form action="admin.php?action=lostpass" method="POST"> ! <b>{$lang.login_username}</b> <input type="text" name="username" id="username"><br /> <center><input type="submit" value="{$lang.passrecover.recievenewpass}"></center> {else} ! {$lang.passrecover.sent}<b>{$recoveredusername}</b><br /> <center><input type="button" value="{$lang.close}" onclick="javascript:window.close();"></center> {/if} --- 1,9 ---- {if $recoveredusername == ""} ! {$lang.passrecover.lost}<br> <form action="admin.php?action=lostpass" method="POST"> ! <b>{$lang.login_username}</b> <input type="text" name="username" id="username"><br> <center><input type="submit" value="{$lang.passrecover.recievenewpass}"></center> {else} ! {$lang.passrecover.sent}<b>{$recoveredusername}</b><br> <center><input type="button" value="{$lang.close}" onclick="javascript:window.close();"></center> {/if} Index: footer.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/footer.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** footer.tpl 23 Nov 2004 01:24:03 -0000 1.2 --- footer.tpl 24 Nov 2004 02:54:14 -0000 1.3 *************** *** 14,18 **** <center> ! <br /><br /> <table border="1" cellspacing="5" cellpadding="5"> <tr><td> --- 14,18 ---- <center> ! <br><br> <table border="1" cellspacing="5" cellpadding="5"> <tr><td> *************** *** 28,33 **** <table><tr><td> ! <a href="http://validator.w3.org/check/referer"><img src="http://www.w3schools.com/images/vxhtml.gif" border="0" alt="XHTML Checker" /></a> ! <a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="http://www.w3schools.com/images/vcss.gif" border="0" alt="CSS Checker" /></a> </td></tr></table> {if $debug == "true"} --- 28,33 ---- <table><tr><td> ! <a href="http://validator.w3.org/check/referer"><img src="http://www.w3schools.com/images/vxhtml.gif" border="0" alt="XHTML Checker"></a> ! <a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="http://www.w3schools.com/images/vcss.gif" border="0" alt="CSS Checker"></a> </td></tr></table> {if $debug == "true"} |
From: Matt M. <pro...@us...> - 2004-11-24 02:55:38
|
Update of /cvsroot/webschool/webschool/mods/Articles In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11261/mods/Articles Modified Files: index.php Log Message: XHTML bug fixes AND various bug fixes and feature implementations. Index: index.php =================================================================== RCS file: /cvsroot/webschool/webschool/mods/Articles/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 20 Nov 2004 01:50:51 -0000 1.2 --- index.php 24 Nov 2004 02:54:13 -0000 1.3 *************** *** 35,43 **** $result = dbr(); ! $smarty->assign("prettytitle", $result['prettytitle']); ! $smarty->assign("author", $result['owner'] ); ! $smarty->assign("published", $result['published']); ! $smarty->assign("content", $result['content']); ! $smarty->assign("updated", $result['lastupdate'] ); $smarty->display("mods/articles.read.tpl"); } --- 35,39 ---- $result = dbr(); ! $smarty->assign("article", $result); $smarty->display("mods/articles.read.tpl"); } |
From: Matt M. <pro...@us...> - 2004-11-23 03:23:50
|
Update of /cvsroot/webschool/webschool/mysql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9520/mysql Modified Files: webschool.sql Log Message: Index: webschool.sql =================================================================== RCS file: /cvsroot/webschool/webschool/mysql/webschool.sql,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** webschool.sql 23 Nov 2004 02:29:06 -0000 1.52 --- webschool.sql 23 Nov 2004 03:23:39 -0000 1.53 *************** *** 126,132 **** ) TYPE=MyISAM; ! INSERT INTO `table_permissions` VALUES ('2', 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1); ! INSERT INTO `table_permissions` VALUES ('3', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); ! INSERT INTO `table_permissions` VALUES ('4', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); --- 126,132 ---- ) TYPE=MyISAM; ! INSERT INTO `table_permissions` VALUES ('2', 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3); ! INSERT INTO `table_permissions` VALUES ('3', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); ! INSERT INTO `table_permissions` VALUES ('4', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); |
From: Matt M. <pro...@us...> - 2004-11-23 02:29:32
|
Update of /cvsroot/webschool/webschool/files In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31410/files Added Files: index.html Log Message: Tried to take a stab at XHTML Transitional Compat. HAHAHAHAHAHAHAHA --- NEW FILE: index.html --- <html><head></head><body></body></html> |
From: Matt M. <pro...@us...> - 2004-11-23 02:29:32
|
Update of /cvsroot/webschool/webschool/theme In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31410/theme Modified Files: theme.css Log Message: Tried to take a stab at XHTML Transitional Compat. HAHAHAHAHAHAHAHA Index: theme.css =================================================================== RCS file: /cvsroot/webschool/webschool/theme/theme.css,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** theme.css 7 Nov 2004 23:55:59 -0000 1.3 --- theme.css 23 Nov 2004 02:29:07 -0000 1.4 *************** *** 89,107 **** } ! A:hover { background-color: aqua; } ! A:visited { ! color:Blue; } ! TABLE { font-size: 10pt; } ! INPUT { font-size: 10pt; } ! IMG { ! border: None 0 0; } --- 89,126 ---- } ! A:hover ! { ! color: yellow; background-color: aqua; } ! A:visited ! { ! color: #0a1fff; ! border-top-style: none; ! border-right-style: none; ! border-left-style: none; ! border-bottom-style: none; } ! TABLE ! { font-size: 10pt; } ! INPUT ! { ! border-right: thin solid; ! border-top: thin solid; font-size: 10pt; + float: none; + border-left: thin solid; + border-bottom: thin solid; + background-color: #ffffff; } ! IMG ! { ! border-right: 0px; ! border-top: 0px; ! border-left: 0px; ! border-bottom: 0px; } *************** *** 124,126 **** .field-title { font-family: sans-serif; ! } \ No newline at end of file --- 143,146 ---- .field-title { font-family: sans-serif; ! } ! |
From: Matt M. <pro...@us...> - 2004-11-23 02:29:31
|
Update of /cvsroot/webschool/webschool/theme/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31410/theme/templates Modified Files: header.tpl index.tpl Log Message: Tried to take a stab at XHTML Transitional Compat. HAHAHAHAHAHAHAHA Index: header.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/header.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** header.tpl 31 Oct 2004 19:21:03 -0000 1.4 --- header.tpl 23 Nov 2004 02:29:06 -0000 1.5 *************** *** 1,10 **** ! <!DOCTYPE html ! PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ! "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" /> <html> <head> ! <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1" /> ! <link href="theme/theme.css" rel="stylesheet" type="text/css" /> <title>{$title}</title> --- 1,8 ---- ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> ! <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> ! <link href="theme/theme.css" rel="stylesheet" type="text/css"> <title>{$title}</title> *************** *** 69,73 **** <!-- END CONDITIONAL HTMLAREA SECTION --> ! </HEAD> <!-- BEGIN POP FUNCTION --> --- 67,71 ---- <!-- END CONDITIONAL HTMLAREA SECTION --> ! </head> <!-- BEGIN POP FUNCTION --> Index: index.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/index.tpl,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** index.tpl 23 Nov 2004 01:24:03 -0000 1.9 --- index.tpl 23 Nov 2004 02:29:06 -0000 1.10 *************** *** 33,37 **** {include file="tablehead.tpl" tbwidth="310" tbtitle=$lang.index.recentnews} {foreach from=$recentnews item=v key=k} ! {$v.published|date_format}: <a href="mod.php?mod=News&op=view&id={$v.id}">{$v.prettytitle}</a>{if $v.published != $v.lastupdate}($lang.index.updated){/if}<br> {/foreach} {include file="tablefoot.tpl"} --- 33,37 ---- {include file="tablehead.tpl" tbwidth="310" tbtitle=$lang.index.recentnews} {foreach from=$recentnews item=v key=k} ! {$v.published|date_format}: <a href="mod.php?mod=News&op=view&id={$v.id}">{$v.prettytitle}</a>{if $v.published != $v.lastupdate}($lang.index.updated){/if}<br/> {/foreach} {include file="tablefoot.tpl"} *************** *** 39,43 **** {include file="tablehead.tpl" tbwidth="310" tbtitle=$lang.index.recentarticles} {foreach from=$recentarticles item=v key=k} ! {$v.published|date_format}: <a href="mod.php?mod=Articles&op=view&id={$v.id}">{$v.prettytitle}</a>{if $v.published != $v.lastupdate}($lang.index.updated){/if}<br> {/foreach} {include file="tablefoot.tpl"} --- 39,43 ---- {include file="tablehead.tpl" tbwidth="310" tbtitle=$lang.index.recentarticles} {foreach from=$recentarticles item=v key=k} ! {$v.published|date_format}: <a href="mod.php?mod=Articles&op=view&id={$v.id}">{$v.prettytitle}</a>{if $v.published != $v.lastupdate}($lang.index.updated){/if}<br/> {/foreach} {include file="tablefoot.tpl"} *************** *** 46,50 **** {include file="tablehead.tpl" tbwidth="324" tbtitle=$lang.index.recentpages} {foreach from=$recentpages item=v key=k} ! {$v.published|date_format}: <a href="mod.php?mod=Pages&op=view&id={$v.id}">{$v.prettytitle}</a>{if $v.published != $v.lastupdate}($lang.index.updated){/if}<br> {/foreach} {include file="tablefoot.tpl"} --- 46,50 ---- {include file="tablehead.tpl" tbwidth="324" tbtitle=$lang.index.recentpages} {foreach from=$recentpages item=v key=k} ! {$v.published|date_format}: <a href="mod.php?mod=Pages&op=view&id={$v.id}">{$v.prettytitle}</a>{if $v.published != $v.lastupdate}($lang.index.updated){/if}<br/> {/foreach} {include file="tablefoot.tpl"} |
From: Matt M. <pro...@us...> - 2004-11-23 02:29:30
|
Update of /cvsroot/webschool/webschool/mysql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31410/mysql Modified Files: webschool.sql Log Message: Tried to take a stab at XHTML Transitional Compat. HAHAHAHAHAHAHAHA Index: webschool.sql =================================================================== RCS file: /cvsroot/webschool/webschool/mysql/webschool.sql,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** webschool.sql 23 Nov 2004 01:41:04 -0000 1.51 --- webschool.sql 23 Nov 2004 02:29:06 -0000 1.52 *************** *** 122,125 **** --- 122,126 ---- `config` tinyint(1) NOT NULL default '0', `modules` tinyint(1) NOT NULL default '0', + `files` tinyint(1) NOT NULL default '0', PRIMARY KEY (`userid`) ) TYPE=MyISAM; *************** *** 147,150 **** --- 148,166 ---- + DROP TABLE IF EXISTS `table_files`; + CREATE TABLE `table_files` ( + `id` int(11) NOT NULL auto_increment, + `owner` int(11) NOT NULL default '', + `description` varchar(255) NOT NULL default '', + `type` varchar(25) NOT NULL default '', + `name` varchar(25) NOT NULL default '', + `approved` varchar(25) NOT NULL default '', + `downloads` int(11) NOT NULL default '0', + `size` int(11) NOT NULL default '0', + `filename` varchar(255) NOT NULL default '', + PRIMARY KEY (`id`) + ) TYPE=MyISAM AUTO_INCREMENT=1 ; + + DROP TABLE IF EXISTS `table_sotm`; CREATE TABLE `table_sotm` ( |
From: Matt M. <pro...@us...> - 2004-11-23 02:29:28
|
Update of /cvsroot/webschool/webschool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31410 Modified Files: file.php pic.php Log Message: Tried to take a stab at XHTML Transitional Compat. HAHAHAHAHAHAHAHA Index: file.php =================================================================== RCS file: /cvsroot/webschool/webschool/file.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** file.php 23 Nov 2004 01:41:04 -0000 1.1 --- file.php 23 Nov 2004 02:29:05 -0000 1.2 *************** *** 17,21 **** --- 17,89 ---- (license.txt) */ + require("lib/config.php"); + require("lib/db.php"); + $db = db_connect(_db_server_, _db_user_, _db_pass_, _db_, _db_type_, _db_perfmon_, _db_persistent_, _db_debug_) or die();; + require("lib/auth.php"); + + if( isset( $_GET['id'] ) ) { + db(__FILE__,__LINE__,"SELECT * FROM "._FILES_." WHERE id=".$_GET['id'].""); + $res = dbr(); + + if($res['approved'] == 1 || $perm['files'] == 2 || $res['owner'] == $user['id']) { + + //construct filepath + $filepath = _fileroot_."files/"; + + if( file_exists($filepath."".$res['filename']) ) { + //send the file type header + header("Content-Type: " . $res['type']); + $handle = fopen($filepath."".$res['filename'], "r"); + echo fread( $handle, filesize($filepath."".$res['filename']) ); + fclose($handle); + dbn(__FILE__,__LINE__,"UPDATE "._FILES_." SET downloads=downloads+1 Where id='".$_GET['id']."'"); + } else { + header("Content-Type: image/png"); + $handle = fopen(_fileroot_."images/picnotfound.png","r"); + echo fread( $handle, filesize($filepath."".$res['filename']) ); + fclose($handle); + } + } else { + header("Content-Type: image/png"); + $handle = fopen(_fileroot_."images/picnotfound.png","r"); + echo fread( $handle, filesize(_fileroot_."images/picnotfound.png") ); + fclose($handle); + } + } + if( isset($_GET['uname']) && isset($_GET['fname']) ){ + + db(__FILE__, __LINE__, "SELECT id FROM "._USERS_." WHERE username='".$_GET['uname']."' LIMIT 1"); + $userid = dbr(); + + db(__FILE__,__LINE__,"SELECT * FROM "._FILES_." WHERE owner='".$userid['id']."' & name='".$_GET['fname']."'"); + $res = dbr(); + + if($res['approved'] == 1 || $perm['files'] == 2 || $res['owner'] == $user['id']) { + + + //construct filepath + $filepath = _fileroot_."files/"; + + if( file_exists($filepath."".$res['filename']) ) { + //send the file type header + header("Content-Type: " . $res['type']); + $handle = fopen($filepath."".$res['filename'], "r"); + echo fread( $handle, filesize($filepath."".$res['filename']) ); + fclose($handle); + dbn(__FILE__,__LINE__,"UPDATE "._FILES_." SET downloads=downloads+1 WHERE id='".$_GET['id']."'"); + } else { + header("Content-Type: image/png"); + $handle = fopen(_fileroot_."images/picnotfound.png","r"); + echo fread( $handle, filesize($filepath."".$res['filename']) ); + fclose($handle); + } + } else { + header("Content-Type: image/png"); + $handle = fopen(_fileroot_."images/picnotfound.png","r"); + echo fread( $handle, filesize(_fileroot_."images/picnotfound.png") ); + fclose($handle); + } + } ?> \ No newline at end of file Index: pic.php =================================================================== RCS file: /cvsroot/webschool/webschool/pic.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** pic.php 4 Nov 2004 04:03:31 -0000 1.13 --- pic.php 23 Nov 2004 02:29:05 -0000 1.14 *************** *** 17,21 **** (license.txt) */ ! require("config.php"); require("lib/db.php"); $db = db_connect(_db_server_, _db_user_, _db_pass_, _db_, _db_type_, _db_perfmon_, _db_persistent_, _db_debug_) or die();; --- 17,21 ---- (license.txt) */ ! require("lib/config.php"); require("lib/db.php"); $db = db_connect(_db_server_, _db_user_, _db_pass_, _db_, _db_type_, _db_perfmon_, _db_persistent_, _db_debug_) or die();; *************** *** 27,32 **** if($res['approved'] == 1 || $perm['news'] == 2 || $res['owner'] == $user['id']) { ! //send the file type header ! header("Content-Type: " . $res['type']); //construct filepath --- 27,31 ---- if($res['approved'] == 1 || $perm['news'] == 2 || $res['owner'] == $user['id']) { ! //construct filepath *************** *** 34,42 **** if( file_exists($filepath."".$res['filename']) ) { $handle = fopen($filepath."".$res['filename'], "r"); echo fread( $handle, filesize($filepath."".$res['filename']) ); fclose($handle); ! dbn(__FILE__,__LINE__,"Update pics SET views= views+1 Where id='".$_GET['id']."'"); } else { $handle = fopen(_fileroot_."images/picnotfound.png","r"); echo fread( $handle, filesize($filepath."".$res['filename']) ); --- 33,44 ---- if( file_exists($filepath."".$res['filename']) ) { + //send the file type header + header("Content-Type: " . $res['type']); $handle = fopen($filepath."".$res['filename'], "r"); echo fread( $handle, filesize($filepath."".$res['filename']) ); fclose($handle); ! dbn(__FILE__,__LINE__,"UPDATE "._PICS_." SET views= views+1 Where id='".$_GET['id']."'"); } else { + header("Content-Type: image/png"); $handle = fopen(_fileroot_."images/picnotfound.png","r"); echo fread( $handle, filesize($filepath."".$res['filename']) ); |