Example #1
0
 public function getPage4()
 {
     return array('title' => Yii::t('admin', 'Finally, enter your email server settings. {Lightspeed} Click for standard settings for: <a href=\'javascript:setupMail("smtp");\'>Standard SMTP</a>, <a href=\'javascript:setupMail("gmail");\'>Gmail</a>, <a href=\'javascript:setupMail("godaddy");\'>Godaddy</a>', array('{Lightspeed}' => _xls_get_conf('LIGHTSPEED_CLOUD', 0) > 0 ? '' : "These are generally identical to Lightspeed's setup in Tools->Setup->Advanced->Email.")), 'elements' => array('EMAIL_SMTP_SERVER' => array('type' => 'text', 'maxlength' => 64), 'EMAIL_SMTP_PORT' => array('type' => 'text', 'maxlength' => 64), 'EMAIL_SMTP_USERNAME' => array('type' => 'text', 'maxlength' => 64, 'size' => 60), 'EMAIL_SMTP_PASSWORD' => array('type' => 'password', 'maxlength' => 64, 'size' => 60), 'EMAIL_SMTP_SECURITY_MODE' => array('type' => 'dropdownlist', 'items' => Configuration::getAdminDropdownOptions('EMAIL_SMTP_SECURITY_MODE')), 'page' => array('type' => 'hidden', 'value' => $this->page)));
 }
Example #2
0
        case "PINT":
            echo CHtml::activeTextField($item, "[{$i}]key_value", array('title' => $item->helper_text, 'id' => $item->key_name));
            break;
        case "EMAIL":
            echo CHtml::activeEmailField($item, "[{$i}]key_value", array('title' => $item->helper_text, 'id' => $item->key_name, 'pattern' => '^[a-zA-Z0-9!#$%&\'*+\\/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&\'*+\\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'));
            break;
        case "PASSWORD":
            echo CHtml::activePasswordField($item, "[{$i}]key_value", array('title' => $item->helper_text, 'id' => $item->key_name));
            break;
        case "BOOL":
            echo '<div class="onoff" id="' . $item->id . '" title="' . $item->helper_text . '"></div>';
            //Create On/Off
            echo CHtml::activeHiddenField($item, "[{$i}]key_value");
            break;
        default:
            echo CHtml::activeDropDownList($item, "[{$i}]key_value", Configuration::getAdminDropdownOptions($item->options), array('title' => $item->helper_text, 'id' => $item->key_name));
    }
    ?>
</div>
                    <div class="span1">
	                    <?php 
    if (!empty($item->helper_text)) {
        ?>
<img src="<?php 
        echo $this->assetUrl;
        ?>
/img/help.png" title="<?php 
        echo $item->helper_text;
        ?>
"/><?php 
    }
        case null:
        case "NULL":
        case "INT":
        case "PINT":
            echo CHtml::activeTextField($item, "[{$i}]key_value", array('title' => 'Hover to help image'));
            break;
        case "PASSWORD":
            echo CHtml::activePasswordField($item, "[{$i}]key_value", array('title' => 'Hover to help image'));
            break;
        case "BOOL":
            echo '<div class="onoff" id="' . $item->id . '" title="Hover to help image"></div>';
            //Create On/Off
            echo CHtml::activeHiddenField($item, "[{$i}]key_value");
            break;
        default:
            echo CHtml::activeDropDownList($item, "[{$i}]key_value", Configuration::getAdminDropdownOptions($item->options), array('title' => 'Hover to help image'));
    }
    ?>
</div>
                    <div class="span1 wrap-help">
	                    <?php 
    if (!empty($item->helper_text)) {
        ?>
<img src="<?php 
        echo $this->assetUrl;
        ?>
/img/help.png" title=""/><div class="help-hover">
							<?php 
        if (strpos($item->helper_text, 'css/zoomproduct/css') >= 0) {
            ?>
							<img src="<?php