Annotation of /mambo/trunk/administrator/components/com_installer/component/component.html.php
Parent Directory
|
Revision Log
Revision 1 - (view) (download)
| 1 : | root | 1 | <?php |
| 2 : | /** | ||
| 3 : | * @version $Id: component.html.php,v 1.1 2005/07/22 01:52:30 eddieajau Exp $ | ||
| 4 : | * @package Mambo | ||
| 5 : | * @subpackage Installer | ||
| 6 : | * @copyright (C) 2000 - 2005 Miro International Pty Ltd | ||
| 7 : | * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL | ||
| 8 : | * Mambo is Free Software | ||
| 9 : | */ | ||
| 10 : | |||
| 11 : | /** ensure this file is being included by a parent file */ | ||
| 12 : | defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); | ||
| 13 : | |||
| 14 : | /** | ||
| 15 : | * @package Mambo | ||
| 16 : | * @subpackage Installer | ||
| 17 : | */ | ||
| 18 : | class HTML_component { | ||
| 19 : | /** | ||
| 20 : | * @param array An array of records | ||
| 21 : | * @param string The URL option | ||
| 22 : | */ | ||
| 23 : | function showInstalledComponents( $rows, $option ) { | ||
| 24 : | if (count( $rows )) { | ||
| 25 : | ?> | ||
| 26 : | <form action="index2.php" method="post" name="adminForm"> | ||
| 27 : | <table class="adminheading"> | ||
| 28 : | <tr> | ||
| 29 : | <th class="install"> | ||
| 30 : | Installed Components | ||
| 31 : | </th> | ||
| 32 : | </tr> | ||
| 33 : | </table> | ||
| 34 : | |||
| 35 : | <table class="adminlist"> | ||
| 36 : | <tr> | ||
| 37 : | <th width="20%" class="title"> | ||
| 38 : | Currently Installed | ||
| 39 : | </th> | ||
| 40 : | <th width="20%" class="title"> | ||
| 41 : | Component Menu Link | ||
| 42 : | </th> | ||
| 43 : | <th width="10%" align="left"> | ||
| 44 : | Author | ||
| 45 : | </th> | ||
| 46 : | <th width="5%" align="center"> | ||
| 47 : | Version | ||
| 48 : | </th> | ||
| 49 : | <th width="10%" align="center"> | ||
| 50 : | Date | ||
| 51 : | </th> | ||
| 52 : | <th width="15%" align="left"> | ||
| 53 : | Author Email | ||
| 54 : | </th> | ||
| 55 : | <th width="15%" align="left"> | ||
| 56 : | Author URL | ||
| 57 : | </th> | ||
| 58 : | </tr> | ||
| 59 : | <?php | ||
| 60 : | $rc = 0; | ||
| 61 : | for ($i = 0, $n = count( $rows ); $i < $n; $i++) { | ||
| 62 : | $row =& $rows[$i]; | ||
| 63 : | ?> | ||
| 64 : | <tr class="<?php echo "row$rc"; ?>"> | ||
| 65 : | <td align="left"> | ||
| 66 : | <input type="radio" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->id; ?>" onclick="isChecked(this.checked);"> | ||
| 67 : | <span class="bold"> | ||
| 68 : | <?php echo $row->name; ?> | ||
| 69 : | </span> | ||
| 70 : | </td> | ||
| 71 : | <td align="left"> | ||
| 72 : | <?php echo @$row->link != "" ? $row->link : " "; ?> | ||
| 73 : | </td> | ||
| 74 : | <td align="left"> | ||
| 75 : | <?php echo @$row->author != "" ? $row->author : " "; ?> | ||
| 76 : | </td> | ||
| 77 : | <td align="center"> | ||
| 78 : | <?php echo @$row->version != "" ? $row->version : " "; ?> | ||
| 79 : | </td> | ||
| 80 : | <td align="center"> | ||
| 81 : | <?php echo @$row->creationdate != "" ? $row->creationdate : " "; ?> | ||
| 82 : | </td> | ||
| 83 : | <td> | ||
| 84 : | <?php echo @$row->authorEmail != "" ? $row->authorEmail : " "; ?> | ||
| 85 : | </td> | ||
| 86 : | <td> | ||
| 87 : | <?php echo @$row->authorUrl != "" ? "<a href=\"" .(substr( $row->authorUrl, 0, 7) == 'http://' ? $row->authorUrl : 'http://'.$row->authorUrl). "\" target=\"_blank\">$row->authorUrl</a>" : " ";?> | ||
| 88 : | </td> | ||
| 89 : | </tr> | ||
| 90 : | <?php | ||
| 91 : | $rc = 1 - $rc; | ||
| 92 : | } | ||
| 93 : | } else { | ||
| 94 : | ?> | ||
| 95 : | <td class="small"> | ||
| 96 : | There are no custom components 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="component" /> | ||
| 107 : | </form> | ||
| 108 : | <?php | ||
| 109 : | } | ||
| 110 : | } | ||
| 111 : | ?> |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

