View of /mambo/trunk/administrator/components/com_installer/component/component.html.php
Parent Directory
|
Revision Log
Revision 1 -
(download)
(annotate)
Tue Dec 13 03:45:47 2005 UTC (7 years, 5 months ago) by root
File size: 2833 byte(s)
Tue Dec 13 03:45:47 2005 UTC (7 years, 5 months ago) by root
File size: 2833 byte(s)
Initial repository layout
<?php /** * @version $Id: component.html.php,v 1.1 2005/07/22 01:52:30 eddieajau Exp $ * @package Mambo * @subpackage Installer * @copyright (C) 2000 - 2005 Miro International Pty Ltd * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * Mambo is Free Software */ /** ensure this file is being included by a parent file */ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); /** * @package Mambo * @subpackage Installer */ class HTML_component { /** * @param array An array of records * @param string The URL option */ function showInstalledComponents( $rows, $option ) { if (count( $rows )) { ?> <form action="index2.php" method="post" name="adminForm"> <table class="adminheading"> <tr> <th class="install"> Installed Components </th> </tr> </table> <table class="adminlist"> <tr> <th width="20%" class="title"> Currently Installed </th> <th width="20%" class="title"> Component Menu Link </th> <th width="10%" align="left"> Author </th> <th width="5%" align="center"> Version </th> <th width="10%" align="center"> Date </th> <th width="15%" align="left"> Author Email </th> <th width="15%" align="left"> Author URL </th> </tr> <?php $rc = 0; for ($i = 0, $n = count( $rows ); $i < $n; $i++) { $row =& $rows[$i]; ?> <tr class="<?php echo "row$rc"; ?>"> <td align="left"> <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->name; ?> </span> </td> <td align="left"> <?php echo @$row->link != "" ? $row->link : " "; ?> </td> <td align="left"> <?php echo @$row->author != "" ? $row->author : " "; ?> </td> <td align="center"> <?php echo @$row->version != "" ? $row->version : " "; ?> </td> <td align="center"> <?php echo @$row->creationdate != "" ? $row->creationdate : " "; ?> </td> <td> <?php echo @$row->authorEmail != "" ? $row->authorEmail : " "; ?> </td> <td> <?php echo @$row->authorUrl != "" ? "<a href=\"" .(substr( $row->authorUrl, 0, 7) == 'http://' ? $row->authorUrl : 'http://'.$row->authorUrl). "\" target=\"_blank\">$row->authorUrl</a>" : " ";?> </td> </tr> <?php $rc = 1 - $rc; } } else { ?> <td class="small"> There are no custom components installed </td> <?php } ?> </table> <input type="hidden" name="task" value="" /> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="option" value="com_installer" /> <input type="hidden" name="element" value="component" /> </form> <?php } } ?>
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

