Annotation of /mambo/branches/4.6/administrator/components/com_installer/module/module.html.php
Parent Directory
|
Revision Log
Revision 1756 - (view) (download)
| 1 : | root | 1 | <?php |
| 2 : | /** | ||
| 3 : | elpie | 964 | * @package Mambo |
| 4 : | root | 1 | * @subpackage Installer |
| 5 : | elpie | 964 | * @author Mambo Foundation Inc see README.php |
| 6 : | elpie | 1756 | * @copyright (C) 2000 - 2009 Mambo Foundation Inc. |
| 7 : | ocs_cms | 1396 | * See COPYRIGHT.php for copyright notices and details. |
| 8 : | * @license GNU/GPL Version 2, see LICENSE.php | ||
| 9 : | elpie | 1756 | * |
| 10 : | * Redistributions of files must retain the above copyright notice. | ||
| 11 : | * | ||
| 12 : | ocs_cms | 1396 | * Mambo is free software; you can redistribute it and/or |
| 13 : | * modify it under the terms of the GNU General Public License | ||
| 14 : | * as published by the Free Software Foundation; version 2 of the License. | ||
| 15 : | root | 1 | */ |
| 16 : | |||
| 17 : | /** ensure this file is being included by a parent file */ | ||
| 18 : | defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); | ||
| 19 : | |||
| 20 : | class HTML_module { | ||
| 21 : | |||
| 22 : | function showInstalledModules( &$rows, $option, &$xmlfile, &$lists ) { | ||
| 23 : | if (count($rows)) { | ||
| 24 : | ?> | ||
| 25 : | <form action="index2.php" method="post" name="adminForm"> | ||
| 26 : | <table class="adminheading"> | ||
| 27 : | <tr> | ||
| 28 : | <th class="install"> | ||
| 29 : | neilt | 616 | <?php echo T_('Installed Modules'); ?> |
| 30 : | root | 1 | </th> |
| 31 : | <td> | ||
| 32 : | neilt | 616 | <?php echo T_('Filter:'); ?> |
| 33 : | root | 1 | </td> |
| 34 : | <td width="right"> | ||
| 35 : | <?php echo $lists['filter'];?> | ||
| 36 : | </td> | ||
| 37 : | </tr> | ||
| 38 : | <tr> | ||
| 39 : | <td colspan="3"> | ||
| 40 : | neilt | 616 | <?php echo T_('Only those Modules that can be uninstalled are displayed - some Core Modules cannot be removed.'); ?> |
| 41 : | root | 1 | <br /><br /> |
| 42 : | </td> | ||
| 43 : | </tr> | ||
| 44 : | </table> | ||
| 45 : | |||
| 46 : | <table class="adminlist"> | ||
| 47 : | <tr> | ||
| 48 : | <th width="20%" class="title"> | ||
| 49 : | neilt | 616 | <?php echo T_('Module File'); ?> |
| 50 : | root | 1 | </th> |
| 51 : | <th width="10%" align="left"> | ||
| 52 : | neilt | 616 | <?php echo T_('Client'); ?> |
| 53 : | root | 1 | </th> |
| 54 : | <th width="10%" align="left"> | ||
| 55 : | neilt | 616 | <?php echo T_('Author'); ?> |
| 56 : | root | 1 | </th> |
| 57 : | <th width="5%" align="center"> | ||
| 58 : | neilt | 616 | <?php echo T_('Version'); ?> |
| 59 : | root | 1 | </th> |
| 60 : | <th width="10%" align="center"> | ||
| 61 : | neilt | 616 | <?php echo T_('Date'); ?> |
| 62 : | root | 1 | </th> |
| 63 : | <th width="15%" align="left"> | ||
| 64 : | neilt | 616 | <?php echo T_('Author Email'); ?> |
| 65 : | root | 1 | </th> |
| 66 : | <th width="15%" align="left"> | ||
| 67 : | neilt | 616 | <?php echo T_('Author URL'); ?> |
| 68 : | root | 1 | </th> |
| 69 : | </tr> | ||
| 70 : | <?php | ||
| 71 : | $rc = 0; | ||
| 72 : | for ($i = 0, $n = count( $rows ); $i < $n; $i++) { | ||
| 73 : | $row =& $rows[$i]; | ||
| 74 : | ?> | ||
| 75 : | <tr class="<?php echo "row$rc"; ?>"> | ||
| 76 : | <td> | ||
| 77 : | <input type="radio" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->id; ?>" onclick="isChecked(this.checked);"><span class="bold"><?php echo $row->module; ?></span></td> | ||
| 78 : | <td> | ||
| 79 : | csouza | 149 | <?php echo $row->client_id == "0" ? T_('Site') : T_('Administrator'); ?> |
| 80 : | root | 1 | </td> |
| 81 : | <td> | ||
| 82 : | <?php echo @$row->author != "" ? $row->author : " "; ?> | ||
| 83 : | </td> | ||
| 84 : | <td align="center"> | ||
| 85 : | <?php echo @$row->version != "" ? $row->version : " "; ?> | ||
| 86 : | </td> | ||
| 87 : | <td align="center"> | ||
| 88 : | <?php echo @$row->creationdate != "" ? $row->creationdate : " "; ?> | ||
| 89 : | </td> | ||
| 90 : | <td> | ||
| 91 : | <?php echo @$row->authorEmail != "" ? $row->authorEmail : " "; ?> | ||
| 92 : | </td> | ||
| 93 : | <td> | ||
| 94 : | <?php echo @$row->authorUrl != "" ? "<a href=\"" .(substr( $row->authorUrl, 0, 7) == 'http://' ? $row->authorUrl : 'http://'.$row->authorUrl) ."\" target=\"_blank\">$row->authorUrl</a>" : " "; ?> | ||
| 95 : | </td> | ||
| 96 : | </tr> | ||
| 97 : | <?php | ||
| 98 : | $rc = $rc == 0 ? 1 : 0; | ||
| 99 : | } | ||
| 100 : | } else { | ||
| 101 : | ?> | ||
| 102 : | <td class="small"> | ||
| 103 : | neilt | 616 | <?php echo T_('No custom modules installed'); ?> |
| 104 : | root | 1 | </td> |
| 105 : | <?php | ||
| 106 : | } | ||
| 107 : | ?> | ||
| 108 : | </table> | ||
| 109 : | |||
| 110 : | <input type="hidden" name="task" value="" /> | ||
| 111 : | <input type="hidden" name="boxchecked" value="0" /> | ||
| 112 : | <input type="hidden" name="option" value="com_installer" /> | ||
| 113 : | <input type="hidden" name="element" value="module" /> | ||
| 114 : | </form> | ||
| 115 : | <?php | ||
| 116 : | } | ||
| 117 : | } | ||
| 118 : | ?> |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

