コード例 #1
0
ファイル: default.php プロジェクト: grlf/eyedock
<?php

/*
	ini_set('display_errors', 1); 
ini_set('log_errors', 1); 
ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); 
error_reporting(E_ALL);
ini_set('html_errors', 'On'); */
defined('_JEXEC') or die('Restricted access');
include_once $_SERVER['DOCUMENT_ROOT'] . '/utilities/is_subscriber.php';
//only show certain features to users
$subscriber = isUserASubscriber();
$user =& JFactory::getUser();
//$document = JFactory::getDocument();
//$document->addStyleSheet('components/com_pnlenses/css/display.css');
//print_r ($this->lens);
?>
 
<div class="edas-ld-content">
	<div class="edas-ld-titleheader <?php 
if ($this->lens['discontinued'] == 1) {
    echo 'detail-discontinued';
}
?>
">
		<div class="ed-ld-lenstitle"><?php 
echo $this->lens['name'];
?>
	
		
		<?php 
コード例 #2
0
ファイル: powers.php プロジェクト: grlf/eyedock
		<?php 
    if (!empty($this->lenses)) {
        foreach ($this->lenses as $l) {
            ?>
		 <tr  class="<?php 
            echo $l['discontinued'] ? 'discontinuedCol' : '';
            ?>
"  onclick="setDetailsHash(<?php 
            echo $l['pn_tid'];
            ?>
);">	
			
		<?php 
            //subscriber only--------
            if (isUserASubscriber() == 1) {
                ?>
	
			
			<td class="userFavCol">
				<div style="display:none"><?php 
                echo $l['favorite'] == 1 ? 1 : 0;
                ?>
</div>
				<a class="rating<?php 
                if ($l['favorite'] == 1) {
                    echo ' on';
                }
                ?>
" href="#1" title="favorite" id="paramlist-star<?php 
                echo $l['pn_tid'];