Annotation of /mambo/trunk/administrator/components/com_installer/mambot/mambot.html.php
Parent Directory
|
Revision Log
Revision 1 - (view) (download)
| 1 : | root | 1 | <?php |
| 2 : | /** | ||
| 3 : | * @version $Id: mambot.html.php,v 1.1 2005/07/22 01:52:31 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_mambot { | ||
| 19 : | /** | ||
| 20 : | * Displays the installed non-core Mambot | ||
| 21 : | * @param array An array of mambot object | ||
| 22 : | * @param strong The URL option | ||
| 23 : | */ | ||
| 24 : | function showInstalledMambots( &$rows, $option ) { | ||
| 25 : | ?> | ||
| 26 : | <table class="adminheading"> | ||
| 27 : | <tr> | ||
| 28 : | <th class="install"> | ||
| 29 : | Installed Mambots | ||
| 30 : | </th> | ||
| 31 : | </tr> | ||
| 32 : | <tr> | ||
| 33 : | <td> | ||
| 34 : | Only those Mambots that can be uninstalled are displayed - some Core Mambots cannot be removed. | ||
| 35 : | <br /><br /> | ||
| 36 : | </td> | ||
| 37 : | </tr> | ||
| 38 : | </table> | ||
| 39 : | <?php | ||
| 40 : | if ( count( $rows ) ) { ?> | ||
| 41 : | <form action="index2.php" method="post" name="adminForm"> | ||
| 42 : | <table class="adminlist"> | ||
| 43 : | <tr> | ||
| 44 : | <th width="20%" class="title"> | ||
| 45 : | Mambot | ||
| 46 : | </th> | ||
| 47 : | <th width="10%" class="title"> | ||
| 48 : | Type | ||
| 49 : | </th> | ||
| 50 : | <!-- | ||
| 51 : | Currently Unsupported | ||
| 52 : | <th width="10%" align="left"> | ||
| 53 : | Client | ||
| 54 : | </th> | ||
| 55 : | --> | ||
| 56 : | <th width="10%" align="left"> | ||
| 57 : | Author | ||
| 58 : | </th> | ||
| 59 : | <th width="5%" align="center"> | ||
| 60 : | Version | ||
| 61 : | </th> | ||
| 62 : | <th width="10%" align="center"> | ||
| 63 : | Date | ||
| 64 : | </th> | ||
| 65 : | <th width="15%" align="left"> | ||
| 66 : | Author Email | ||
| 67 : | </th> | ||
| 68 : | <th width="15%" align="left"> | ||
| 69 : | Author URL | ||
| 70 : | </th> | ||
| 71 : | </tr> | ||
| 72 : | <?php | ||
| 73 : | $rc = 0; | ||
| 74 : | $n = count( $rows ); | ||
| 75 : | for ($i = 0; $i < $n; $i++) { | ||
| 76 : | $row =& $rows[$i]; | ||
| 77 : | ?> | ||
| 78 : | <tr class="<?php echo "row$rc"; ?>"> | ||
| 79 : | <td> | ||
| 80 : | <input type="radio" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row->id; ?>" onclick="isChecked(this.checked);"> | ||
| 81 : | <span class="bold"> | ||
| 82 : | <?php echo $row->name; ?> | ||
| 83 : | </span> | ||
| 84 : | </td> | ||
| 85 : | <td> | ||
| 86 : | <?php echo $row->folder; ?> | ||
| 87 : | </td> | ||
| 88 : | <!-- | ||
| 89 : | Currently Unsupported | ||
| 90 : | <td> | ||
| 91 : | <?php //echo $row->client_id == "0" ? 'Site' : 'Administrator'; ?> | ||
| 92 : | </td> | ||
| 93 : | --> | ||
| 94 : | <td> | ||
| 95 : | <?php echo @$row->author != '' ? $row->author : " "; ?> | ||
| 96 : | </td> | ||
| 97 : | <td align="center"> | ||
| 98 : | <?php echo @$row->version != '' ? $row->version : " "; ?> | ||
| 99 : | </td> | ||
| 100 : | <td align="center"> | ||
| 101 : | <?php echo @$row->creationdate != '' ? $row->creationdate : " "; ?> | ||
| 102 : | </td> | ||
| 103 : | <td> | ||
| 104 : | <?php echo @$row->authorEmail != '' ? $row->authorEmail : " "; ?> | ||
| 105 : | </td> | ||
| 106 : | <td> | ||
| 107 : | <?php echo @$row->authorUrl != "" ? "<a href=\"" .(substr( $row->authorUrl, 0, 7) == 'http://' ? $row->authorUrl : 'http://'.$row->authorUrl). "\" target=\"_blank\">$row->authorUrl</a>" : " ";?> | ||
| 108 : | </td> | ||
| 109 : | </tr> | ||
| 110 : | <?php | ||
| 111 : | $rc = 1 - $rc; | ||
| 112 : | } | ||
| 113 : | ?> | ||
| 114 : | </table> | ||
| 115 : | |||
| 116 : | <input type="hidden" name="task" value="" /> | ||
| 117 : | <input type="hidden" name="boxchecked" value="0" /> | ||
| 118 : | <input type="hidden" name="option" value="com_installer" /> | ||
| 119 : | <input type="hidden" name="element" value="mambot" /> | ||
| 120 : | </form> | ||
| 121 : | <?php | ||
| 122 : | } else { | ||
| 123 : | ?> | ||
| 124 : | There are no non-core, custom mambots installed. | ||
| 125 : | <?php | ||
| 126 : | } | ||
| 127 : | } | ||
| 128 : | } | ||
| 129 : | ?> |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

