joomla菜单访问 - 用户不在观众上

时间:2015-12-15 04:50:17

标签: php joomla

你好家伙我在joomla php代码的这个菜单中有问题 我希望观众和用户都可以访问货币按钮。 登录用户没有问题

<?php
/**
 * @version     1.0.4
 * @package     Joomla
 * @subpackage  EShop
 * @author      Giang Dinh Truong
 * @copyright   Copyright (C) 2011 Ossolution Team
 * @license     GNU/GPL, see LICENSE.php
*/
// no direct access
defined('_JEXEC') or die;
?>
<form method="post" action="<?php JURI::base(); ?>index.php?option=com_eshop&task=currency.change">
<div id="currency" class="eshop-currency<?php echo $params->get( 'moduleclass_sfx' ); ?>">
    <?php
    for ($i = 0; $n = count($currencies), $i < $n; $i++)
    {
        $currency = $currencies[$i];
        if ($currency->currency_code == $currencyCode)
        {
            ?>
            <a title="<?php echo $currency->currency_name; ?>">
                <b><?php echo $currency->currency_code; ?></b>
            </a>
            <?php
        }
        else 
        {
            ?>
            <a onclick="jQuery('input[name=\'currency_code\']').attr('value', '<?php echo $currency->currency_code; ?>'); jQuery(this).parent().parent().submit();" title="<?php echo $currency->currency_name; ?>">
                <?php echo $currency->currency_code; ?>
            </a>
            <?php
        }
    }
    ?>
    <input type="hidden" value="" name="currency_code" />
    <input type="hidden" value="<?php echo base64_encode(JURI::getInstance()->toString()); ?>" name="return" />
</div>

这里链接www.skitty.com.ph 尝试将php更改为美元货币

0 个答案:

没有答案