Exemplo n.º 1
0
    function _getItemHTML($item)
    {
        if (!is_null($item['onclick'])) {
            $anchorTags = 'onclick="' . $item['onclick'] . '"';
        } else {
            $anchorTags = 'href="' . $item['link'] . '"';
        }
        $imageHTML = JoomlapackCommonHTML::getImageURI($item['image']);
        $imageHTML = '<img src="' . $imageHTML . '" border="0" width="32" height="32" />';
        $text = $item['text'];
        $out = <<<ENDOFHTML
\t\t\t<div style="float:left;">
\t\t\t\t<div class="icon">
\t\t\t\t\t<a {$anchorTags} >{$imageHTML}<br/>
\t\t\t\t\t<span>{$text}</span>
\t\t\t\t\t</a>
\t\t\t\t</div>
\t\t\t</div>
ENDOFHTML;
        return $out;
    }
Exemplo n.º 2
0
    /**
     * Outputs an error condition. Used by the JavaScript Redirects backup method.
     * It displays all errors found in the class' _errorStack array.
     * 
     * @access private
     * @since 1.2.b1
     */
    function _echoHTML_Redirects_Error()
    {
        ?>
<div id="Main">
	<div id="Timeout" style="display:none; margin-top: 10px;" class="sitePack">
		<table border="0" width="100%">
			<tr>
				<td valign="top">
					<img src="<?php 
        echo JoomlapackCommonHTML::getImageURI('error_big');
        ?>
" border="0" />
				</td>
			</tr>
<?php 
        foreach ($this->_errorStack as $errorString) {
            ?>
			<tr>
				<td>
					<p><?php 
            echo $errorString;
            ?>
</p>
				</td>
			</tr>
<?php 
        }
        ?>
			<tr>
				<td>&nbsp;</td>
				<td>
					<a href="<?php 
        echo JoomlapackAbstraction::JPLink('log');
        ?>
">
						<div class="jpbutton">
							<img src="<?php 
        echo JoomlapackCommonHTML::getImageURI('log');
        ?>
" border="0" />
							<p><?php 
        echo JoomlapackLangManager::_('CPANEL_LOG');
        ?>
</p>
						</div>
					</a>					
				</td>
			</tr>
		</table>
	</div>
</div>
<?php 
    }