| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
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_component { 21 /** 22 * @param array An array of records 23 * @param string The URL option 24 */ 25 function showInstalledComponents( $rows, $option ) { 26 if (count( $rows )) { 27 ?> 28 <form action="index2.php" method="post" name="adminForm"> 29 <table class="adminheading"> 30 <tr> 31 <th class="install"> 32 <?php echo T_('Installed Components'); ?> 33 </th> 34 </tr> 35 </table> 36 37 <table class="adminlist"> 38 <tr> 39 <th width="20%" class="title"> 40 <?php echo T_('Currently Installed'); ?> 41 </th> 42 <th width="20%" class="title"> 43 <?php echo T_('Component Menu Link'); ?> 44 </th> 45 <th width="10%" align="left"> 46 <?php echo T_('Author'); ?> 47 </th> 48 <th width="5%" align="center"> 49 <?php echo T_('Version'); ?> 50 </th> 51 <th width="10%" align="center"> 52 <?php echo T_('Date'); ?> 53 </th> 54 <th width="15%" align="left"> 55 <?php echo T_('Author Email'); ?> 56 </th> 57 <th width="15%" align="left"> 58 <?php echo T_('Author URL'); ?> 59 </th> 60 </tr> 61 <?php 62 $rc = 0; 63 for ($i = 0, $n = count( $rows ); $i < $n; $i++) { 64 $row =& $rows[$i]; 65 ?> 66 <tr class="<?php echo "row$rc"; ?>"> 67 <td align="left"> 68 <input type="radio" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->id; ?>" onclick="isChecked(this.checked);"> 69 <span class="bold"> 70 <?php echo $row->name; ?> 71 </span> 72 </td> 73 <td align="left"> 74 <?php echo @$row->link != "" ? $row->link : " "; ?> 75 </td> 76 <td align="left"> 77 <?php echo @$row->author != "" ? $row->author : " "; ?> 78 </td> 79 <td align="center"> 80 <?php echo @$row->version != "" ? $row->version : " "; ?> 81 </td> 82 <td align="center"> 83 <?php echo @$row->creationdate != "" ? $row->creationdate : " "; ?> 84 </td> 85 <td> 86 <?php echo @$row->authorEmail != "" ? $row->authorEmail : " "; ?> 87 </td> 88 <td> 89 <?php echo @$row->authorUrl != "" ? "<a href=\"" .(substr( $row->authorUrl, 0, 7) == 'http://' ? $row->authorUrl : 'http://'.$row->authorUrl). "\" target=\"_blank\">$row->authorUrl</a>" : " ";?> 90 </td> 91 </tr> 92 <?php 93 $rc = 1 - $rc; 94 } 95 } else { 96 ?> 97 <td class="small"> 98 <?php echo T_('There are no custom components installed'); ?> 99 </td> 100 <?php 101 } 102 ?> 103 </table> 104 105 <input type="hidden" name="task" value="" /> 106 <input type="hidden" name="boxchecked" value="0" /> 107 <input type="hidden" name="option" value="com_installer" /> 108 <input type="hidden" name="element" value="component" /> 109 </form> 110 <?php 111 } 112 } 113 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |