Source for file module.html.php

Documentation is available at module.html.php

  1. <?php
  2. /**
  3. @package Mambo
  4. @subpackage Installer
  5. @copyright  Refer to copyright.php
  6. @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
  7. @author Mambo Foundation Inc see README.php
  8. */
  9.  
  10. /** ensure this file is being included by a parent file */
  11. defined'_VALID_MOS' or die'Direct Access to this location is not allowed.' );
  12.  
  13. class HTML_module {
  14.  
  15.     function showInstalledModules&$rows$option&$xmlfile&$lists {
  16.         if (count($rows)) {
  17.             ?>
  18.             <form action="index2.php" method="post" name="adminForm">
  19.             <table class="adminheading">
  20.             <tr>
  21.                 <th class="install">
  22.                 <?php echo T_('Installed Modules')?>
  23.                 </th>
  24.                 <td>
  25.                 <?php echo T_('Filter:')?>
  26.                 </td>
  27.                 <td width="right">
  28.                 <?php echo $lists['filter'];?>
  29.                 </td>
  30.             </tr>
  31.             <tr>
  32.                 <td colspan="3">
  33.                 <?php echo T_('Only those Modules that can be uninstalled are displayed - some Core Modules cannot be removed.')?>
  34.                 <br /><br />
  35.                 </td>
  36.             </tr>
  37.             </table>
  38.  
  39.             <table class="adminlist">
  40.             <tr>
  41.                 <th width="20%" class="title">
  42.                 <?php echo T_('Module File')?>
  43.                 </th>
  44.                 <th width="10%" align="right">
  45.                 <?php echo T_('Client')?>
  46.                 </th>
  47.                 <th width="10%" align="right">
  48.                 <?php echo T_('Author')?>
  49.                 </th>
  50.                 <th width="5%" align="center">
  51.                 <?php echo T_('Version')?>
  52.                 </th>
  53.                 <th width="10%" align="center">
  54.                 <?php echo T_('Date')?>
  55.                 </th>
  56.                 <th width="15%" align="right">
  57.                 <?php echo T_('Author Email')?>
  58.                 </th>
  59.                 <th width="15%" align="right">
  60.                 <?php echo T_('Author URL')?>
  61.                 </th>
  62.             </tr>
  63.             <?php
  64.             $rc 0;
  65.             for ($i 0$n count$rows )$i $n$i++{
  66.                 $row =$rows[$i];
  67.                 ?>
  68.                 <tr class="<?php echo "row$rc"?>">
  69.                     <td>
  70.                     <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>
  71.                     <td>
  72.                     <?php echo $row->client_id == "0" T_('Site'T_('Administrator')?>
  73.                     </td>
  74.                     <td>
  75.                     <?php echo @$row->author != "" $row->author "&nbsp;"?>
  76.                     </td>
  77.                     <td align="center">
  78.                     <?php echo @$row->version != "" $row->version "&nbsp;"?>
  79.                     </td>
  80.                     <td align="center">
  81.                     <?php echo @$row->creationdate != "" $row->creationdate "&nbsp;"?>
  82.                     </td>
  83.                     <td>
  84.                     <?php echo @$row->authorEmail != "" $row->authorEmail "&nbsp;"?>
  85.                     </td>
  86.                     <td>
  87.                     <?php echo @$row->authorUrl != "" "<a href=\"" .(substr$row->authorUrl07== 'http://' $row->authorUrl 'http://'.$row->authorUrl."\" target=\"_blank\">$row->authorUrl</a>"&nbsp;"?>
  88.                     </td>
  89.                 </tr>
  90.                 <?php
  91.                 $rc $rc == 0;
  92.             }
  93.         else {
  94.             ?>
  95.             <td class="small">
  96.             <?php echo T_('No custom modules installed')?>
  97.             </td>
  98.             <?php
  99.         }
  100.         ?>
  101.         </table>
  102.  
  103.         <input type="hidden" name="task" value="" />
  104.         <input type="hidden" name="boxchecked" value="0" />
  105.         <input type="hidden" name="option" value="com_installer" />
  106.         <input type="hidden" name="element" value="module" />
  107.         </form>
  108.         <?php
  109.     }
  110. }
  111. ?>

Documentation generated on Mon, 05 May 2008 16:21:12 +0400 by phpDocumentor 1.4.0