Thread: [Openfirst-cvscommit] SF.net SVN: openfirst: [181] trunk/src/config/modules.php
Brought to you by:
xtimg
From: <ast...@us...> - 2006-06-22 16:33:16
|
Revision: 181 Author: astronouth7303 Date: 2006-06-22 09:33:11 -0700 (Thu, 22 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=181&view=rev Log Message: ----------- - more calls to htmlentities() - XHTML-style tags - added <thead> and <tbody> to the table. Modified Paths: -------------- trunk/src/config/modules.php Modified: trunk/src/config/modules.php =================================================================== --- trunk/src/config/modules.php 2006-06-22 02:27:31 UTC (rev 180) +++ trunk/src/config/modules.php 2006-06-22 16:33:11 UTC (rev 181) @@ -73,35 +73,40 @@ if (count($mods) == 0) { echo "<p class='error'>Please install modules before administrating them! [ <a href='install.php'>Install Component</a> ]</p>"; - include($footer); + include($ogFooter); die; } ?> <form method="post" action="modules.php"> <table> - <tr> - <th>Module Name</th> - <th>Activate</th> - <th>Show Menu</th> - </tr> + <thead> + <tr> + <th>Module Name</th> + <th>Activate</th> + <th>Show Menu</th> + </tr> + </thead> + <tbody> <?php foreach($mods as $dir) { $mod = $ogModuleManager->getModuleFromDir($dir); $show = $mod->getShowOnMenu(); $act = $mod->getActive(); + $edir = htmlentities($mod->getDir()); ?> - <tr> - <td><input name="<?php echo $mod->getDir(); ?>-modulename" type="text" id="modulename" value="<?php echo $mod->getName(); ?>"></td> - <td bgcolor='<?php if ($act ) { echo "lime"; } else { echo "red"; } ?>'><input name="<?php echo $mod->getDir(); ?>-active" type="checkbox" id="<?php echo $mod->getDir(); ?>-active" value="checkbox" <?php if ($act) { echo "checked='checked'"; } ?>></td> - <td bgcolor='<?php if ($show) { echo "lime"; } else { echo "red"; } ?>'><input name="<?php echo $mod->getDir(); ?>-showonmenu" type="checkbox" id="<?php echo $mod->getDir(); ?>-showonmenu" value="checkbox" <?php if ($show) { echo "checked='checked'"; } ?>></td> - </tr> + <tr> + <td><input name="<?php echo $edir; ?>-modulename" type="text" id="modulename" value="<?php echo htmlentities($mod->getName()); ?>" /></td> + <td bgcolor='<?php if ($act ) { echo "lime"; } else { echo "red"; } ?>'><input name="<?php echo $edir; ?>-active" type="checkbox" id="<?php echo $edir; ?>-active" value="checkbox" <?php if ($act) { echo "checked='checked'"; } ?> /></td> + <td bgcolor='<?php if ($show) { echo "lime"; } else { echo "red"; } ?>'><input name="<?php echo $edir; ?>-showonmenu" type="checkbox" id="<?php echo $edir; ?>-showonmenu" value="checkbox" <?php if ($show) { echo "checked='checked'"; } ?> /></td> + </tr> <?php } ?> + </tbody> </table> - <br> + <br /> <input type="submit" name="update" value="Update Values" /> </form> <?php - include($ogFooter); ?> \ No newline at end of file + include($ogFooter); ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2006-06-23 04:49:57
|
Revision: 191 Author: astronouth7303 Date: 2006-06-22 21:49:53 -0700 (Thu, 22 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=191&view=rev Log Message: ----------- Added small comment. Modified Paths: -------------- trunk/src/config/modules.php Modified: trunk/src/config/modules.php =================================================================== --- trunk/src/config/modules.php 2006-06-23 01:58:25 UTC (rev 190) +++ trunk/src/config/modules.php 2006-06-23 04:49:53 UTC (rev 191) @@ -69,7 +69,7 @@ <?php // Get module information and output values $mods = $ogModuleManager->getDirs(); - // Make sure that module exists (bug #124) + // Make sure that modules exists (bug #124) if (count($mods) == 0) { echo "<p class='error'>Please install modules before administrating them! [ <a href='install.php'>Install Component</a> ]</p>"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ast...@us...> - 2007-04-06 21:13:01
|
Revision: 219 http://svn.sourceforge.net/openfirst/?rev=219&view=rev Author: astronouth7303 Date: 2007-04-06 14:13:01 -0700 (Fri, 06 Apr 2007) Log Message: ----------- Fixed another $Footer reference Modified Paths: -------------- trunk/src/config/modules.php Modified: trunk/src/config/modules.php =================================================================== --- trunk/src/config/modules.php 2007-04-06 21:10:28 UTC (rev 218) +++ trunk/src/config/modules.php 2007-04-06 21:13:01 UTC (rev 219) @@ -56,7 +56,7 @@ // Successful creation response and die with footers. echo "<p>Module information has been updated, thank you. [ <a href='modules.php'>Modules</a> ]</p>"; - include($Footer); + include($ogFooter); die; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |