[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/administrator/components/com_installer/module/ -> module.html.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @subpackage Installer
   5  * @author Mambo Foundation Inc see README.php
   6  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   7  * See COPYRIGHT.php for copyright notices and details.
   8  * @license GNU/GPL Version 2, see LICENSE.php
   9  *
  10  * Redistributions of files must retain the above copyright notice.
  11  *
  12  * 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  */
  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                  <?php echo T_('Installed Modules'); ?>
  30                  </th>
  31                  <td>
  32                  <?php echo T_('Filter:'); ?>
  33                  </td>
  34                  <td width="right">
  35                  <?php echo $lists['filter'];?>
  36                  </td>
  37              </tr>
  38              <tr>
  39                  <td colspan="3">
  40                  <?php echo T_('Only those Modules that can be uninstalled are displayed - some Core Modules cannot be removed.'); ?>
  41                  <br /><br />
  42                  </td>
  43              </tr>
  44              </table>
  45  
  46              <table class="adminlist">
  47              <tr>
  48                  <th width="20%" class="title">
  49                  <?php echo T_('Module File'); ?>
  50                  </th>
  51                  <th width="10%" align="left">
  52                  <?php echo T_('Client'); ?>
  53                  </th>
  54                  <th width="10%" align="left">
  55                  <?php echo T_('Author'); ?>
  56                  </th>
  57                  <th width="5%" align="center">
  58                  <?php echo T_('Version'); ?>
  59                  </th>
  60                  <th width="10%" align="center">
  61                  <?php echo T_('Date'); ?>
  62                  </th>
  63                  <th width="15%" align="left">
  64                  <?php echo T_('Author Email'); ?>
  65                  </th>
  66                  <th width="15%" align="left">
  67                  <?php echo T_('Author URL'); ?>
  68                  </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                      <?php echo $row->client_id == "0" ? T_('Site') : T_('Administrator'); ?>
  80                      </td>
  81                      <td>
  82                      <?php echo @$row->author != "" ? $row->author : "&nbsp;"; ?>
  83                      </td>
  84                      <td align="center">
  85                      <?php echo @$row->version != "" ? $row->version : "&nbsp;"; ?>
  86                      </td>
  87                      <td align="center">
  88                      <?php echo @$row->creationdate != "" ? $row->creationdate : "&nbsp;"; ?>
  89                      </td>
  90                      <td>
  91                      <?php echo @$row->authorEmail != "" ? $row->authorEmail : "&nbsp;"; ?>
  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>" : "&nbsp;"; ?>
  95                      </td>
  96                  </tr>
  97                  <?php
  98                  $rc = $rc == 0 ? 1 : 0;
  99              }
 100          } else {
 101              ?>
 102              <td class="small">
 103              <?php echo T_('No custom modules installed'); ?>
 104              </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  ?>