%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/lightco1/www/administrator/components/com_magic360/views/default/tmpl/
Upload File :
Create Path :
Current File : /home/lightco1/www/administrator/components/com_magic360/views/default/tmpl/default.php

<?php

/*------------------------------------------------------------------------
# com_magic360 - Magic 360 for Joomla
# ------------------------------------------------------------------------
# Magic Toolbox
# Copyright 2011 MagicToolbox.com. All Rights Reserved.
# @license - http://www.opensource.org/licenses/artistic-license-2.0  Artistic License 2.0 (GPL compatible)
# Website: http://www.magictoolbox.com/magic360/modules/joomla/
# Technical Support: http://www.magictoolbox.com/contact/
/*-------------------------------------------------------------------------*/

// no direct access
defined('_JEXEC') or die('Restricted access.');

//NOTE: load tooltip behavior
JHtml::_('behavior.tooltip');

$excludedParams = array('enable-effect', 'thumb-max-width', 'thumb-max-height', 'selector-max-width', 'selector-max-height', 'square-images', 'image-quality', 'imagemagick', 'use-original-file-names');

?>
<form action="<?php echo JRoute::_('index.php?option=com_magic360'); ?>" method="post" name="adminForm" id="adminForm" >
<input type="hidden" name="task" value="" />
<?php echo JHtml::_('form.token'); ?>
<div id="container"<?php if(JVERSION_16) echo ' class="jommla-ver-16"'; ?>>
<ul class="magic_tabs">
<?php foreach($this->profiles as $profileId => $profileTitle) { ?>
<li><a id="<?php echo $profileId; ?>" onclick="return magic_changeTab(this);" <?php if($profileId == $this->tab) echo 'class="tabactive" '; ?>href="#"><?php echo $profileTitle; ?></a></li>
<?php } ?>
</ul>
<div class="magic_tabContWrapper">
<?php foreach($this->paramsMap as $profileId => $groups) {
    $this->tool->params->setProfile($profileId);
?>
<div id="<?php echo $profileId; ?>_content" class="magic_tabCont<?php if($profileId == $this->tab) echo ' magic_active'; ?>">
    <?php foreach($groups as $groupTitle => $params) { ?>
    <fieldset>
    <legend><?php echo $groupTitle; ?></legend>


        <?php foreach($params as $paramId) {
            $paramValue = $this->tool->params->getValue($paramId);
            $paramEnable = true;
        ?>
        <label for="<?php echo $profileId.'-'.$paramId; ?>"><?php echo $this->tool->params->getLabel($paramId); ?></label>
        <div class="margin-form">
        <?php
        switch($this->tool->params->getType($paramId)) {
            case "array":
                if($this->tool->params->getSubType($paramId, $this->tool->params->generalProfile) == 'radio') {
                    foreach($this->tool->params->getValues($paramId) as $value) {
                        ?><input type="radio" value="<?php echo $value; ?>"<?php echo (($paramValue == $value)?' checked="checked"':''); ?><?php echo $paramEnable ? '' : ' disabled="disabled"'; ?> name="magic360<?php echo "[{$profileId}][{$paramId}]"; ?>" id="<?php echo $profileId.'-'.$paramId.'-'.$value; ?>" /><?php
                        ?><label class="t" for="<?php echo $profileId.'-'.$paramId.'-'.$value; ?>"><?php
                        $valueLower = strtolower($value);
                        if($valueLower == "yes")
                            echo '<img src="'.$this->imageUrl.'yes.gif" alt="Enabled" title="Enabled" />';
                        else if($valueLower == "no")
                            echo '<img src="'.$this->imageUrl.'no.gif" alt="Disabled" title="Disabled" />';
                        else if($valueLower == "left")
                            echo '<img src="'.$this->imageUrl.'left.gif" alt="Left" title="Left" />';
                        else if($valueLower == "right")
                            echo '<img src="'.$this->imageUrl.'right.gif" alt="Right" title="Right" />';
                        else if($valueLower == "top")
                            echo '<img src="'.$this->imageUrl.'top.gif" alt="Top" title="Top" />';
                        else if($valueLower == "bottom")
                            echo '<img src="'.$this->imageUrl.'bottom.gif" alt="Bottom" title="Bottom" />';
                        else echo $value;
                        ?></label><?php
                    }
                } else if($this->tool->params->getSubType($paramId, $this->tool->params->generalProfile) == 'select') {
                    ?><select name="magic360<?php echo "[{$profileId}][{$paramId}]"; ?>" id="<?php echo $profileId.'-'.$paramId; ?>"<?php echo $paramEnable ? '' : ' disabled="disabled"'; ?>><?php
                    foreach($this->tool->params->getValues($paramId) as $value) {
                        ?><option value="<?php echo $value; ?>"<?php echo (($paramValue==$value)?' selected="selected"':''); ?>><?php echo $value; ?></option><?php
                    }
                    ?></select><?php
                } else {
                    ?><input type="text" name="magic360<?php echo "[{$profileId}][{$paramId}]"; ?>" id="<?php echo $profileId.'-'.$paramId; ?>" value="<?php echo $paramValue; ?>"<?php echo $paramEnable ? '' : ' disabled="disabled"'; ?> /><?php
                }
                break;
            case "num":
            case "text":
            default:
                ?><input type="text" name="magic360<?php echo "[{$profileId}][{$paramId}]"; ?>" id="<?php echo $profileId.'-'.$paramId; ?>" value="<?php echo $paramValue; ?>"<?php echo $paramEnable ? '' : ' disabled="disabled"'; ?> /><?php
        }
        $hint = '';
        if($this->tool->params->getDescription($paramId))
            $hint = $this->tool->params->getDescription($paramId);
        if($this->tool->params->getType($paramId) != "array" && $this->tool->params->valuesExists($paramId, '', false)) {
            if($hint != '') $hint .= "<br />";
            $hint .= "#allowed values: ".implode(", ",$this->tool->params->getValues($paramId));
        }
        if($hint != '') {
            ?><p class="magic_hint clear"><?php echo $hint; ?></p><?php
        }
        ?>
        </div>
        <div class="clear pspace"></div>
        <?php } ?>
    </fieldset>
    <?php } ?>
</div>
<?php } ?>
</div>
<input type="hidden" id="magic_tabs_current" name="magic_tabs_current" value="<?php echo $this->tab; ?>" />
<script type="text/javascript">
//<![CDATA[
var magic_tabs_current = '<?php echo $this->tab; ?>';
function magic_changeTab(elm) {
    if(document.getElementById(magic_tabs_current)) {
        document.getElementById(magic_tabs_current).className = '';
        document.getElementById(magic_tabs_current+'_content').className = 'magic_tabCont';
    }
    magic_tabs_current = document.getElementById('magic_tabs_current').value = elm.id;
    document.getElementById(magic_tabs_current).className = 'tabactive';
    document.getElementById(magic_tabs_current+'_content').className = 'magic_tabCont magic_active';
    elm.blur();
    return false;
}
//]]>
</script>
<div class="clear"></div>

</div>
</form>

Zerion Mini Shell 1.0