当前位置: 首页>>代码示例>>PHP>>正文


PHP AuxLib::getIEVer方法代码示例

本文整理汇总了PHP中AuxLib::getIEVer方法的典型用法代码示例。如果您正苦于以下问题:PHP AuxLib::getIEVer方法的具体用法?PHP AuxLib::getIEVer怎么用?PHP AuxLib::getIEVer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AuxLib的用法示例。


在下文中一共展示了AuxLib::getIEVer方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getIEDefaultPackages

 public function getIEDefaultPackages()
 {
     if (AuxLib::getIEVer() >= 9) {
         return array();
     }
     return array();
     //        return array(
     //            'aight' => array(
     //                'baseUrl' => Yii::app()->request->baseUrl,
     //                'js' => array(
     //                    'js/lib/aight/aight.js',
     //                ),
     //                'depends' => array('jquery'),
     //            ),
     //        );
 }
开发者ID:shuvro35,项目名称:X2CRM,代码行数:16,代码来源:X2ClientScript.php

示例2: array

?>
                <div class='row'>
                <?php 
if (AuxLib::getIEVer() < 10) {
    echo $form->label($model, 'username', array('style' => $profile ? 'display: none;' : ''));
}
if ($profile) {
    echo $form->hiddenField($model, 'username');
} else {
    echo $form->textField($model, 'username', array('placeholder' => Yii::t('app', 'Username'), 'value' => $_GET['username']));
}
?>
                </div>
                <div class='row'>
                <?php 
if (AuxLib::getIEVer() < 10) {
    echo $form->label($model, 'password', array('style' => 'margin-top:5px;'));
}
echo $form->passwordField($model, 'password', array('placeholder' => Yii::t('app', 'Password'), 'value' => $_GET['username']));
echo $form->error($model, 'password');
?>
                </div>
                <?php 
if ($model->useCaptcha && CCaptcha::checkRequirements()) {
    ?>
                <div class="row captcha-row">
                    <?php 
    echo '<div id="captcha-container">';
    $this->widget('CCaptcha', array('clickableImage' => true, 'showRefreshButton' => false, 'imageOptions' => array('id' => 'captcha-image', 'style' => 'display:block;cursor:pointer;', 'title' => Yii::t('app', 'Click to get a new image'))));
    echo '</div>';
    echo '<p class="hint">' . Yii::t('app', 'Please enter the letters in the image above.') . '</p>';
开发者ID:THHTnhom2,项目名称:Tich-Hop-He-Thong-Nhom-2,代码行数:31,代码来源:login.php

示例3: array

    ?>
                <div id='full-name'><?php 
    echo $fullName;
    ?>
</div>
                <?php 
}
if (AuxLib::isIE() && AuxLib::getIEVer() < 10) {
    echo $form->label($model, 'username', array('style' => $hasProfile ? 'display: none;' : ''));
}
if ($hasProfile) {
    echo $form->hiddenField($model, 'username');
} else {
    echo $form->textField($model, 'username', array('placeholder' => Yii::t('app', 'Username')));
}
if (AuxLib::isIE() && AuxLib::getIEVer() < 10) {
    echo $form->label($model, 'password', array('style' => 'margin-top:5px;'));
}
echo $form->passwordField($model, 'password', array('placeholder' => Yii::t('app', 'Password')));
echo $form->error($model, 'password');
if ($model->useCaptcha && CCaptcha::checkRequirements()) {
    ?>
                <div class="row captcha-row">
                    <?php 
    echo '<div id="captcha-container">';
    $this->widget('CCaptcha', array('clickableImage' => true, 'showRefreshButton' => false, 'imageOptions' => array('id' => 'captcha-image', 'style' => 'display:block;cursor:pointer;', 'title' => Yii::t('app', 'Click to get a new image'))));
    echo '</div>';
    echo '<p class="hint">' . Yii::t('app', 'Please enter the letters in the image above.') . '</p>';
    echo $form->textField($model, 'verifyCode');
    ?>
                </div><?php 
开发者ID:keyeMyria,项目名称:CRM,代码行数:31,代码来源:login.php

示例4: mb_internal_encoding

 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2Engine".
 *****************************************************************************************/
mb_internal_encoding('UTF-8');
mb_regex_encoding('UTF-8');
Yii::app()->params->profile = Profile::model()->findByPk(1);
// use the admin's profile since the user hasn't logged in
$jsVersion = '?' . Yii::app()->params->buildDate;
// blueprint CSS framework
$themeURL = Yii::app()->theme->getBaseUrl();
Yii::app()->clientScript->registerCssFile($themeURL . '/css/screen.css' . $jsVersion, 'screen, projection');
Yii::app()->clientScript->registerCssFile($themeURL . '/css/print.css' . $jsVersion, 'print');
Yii::app()->clientScript->registerCssFile($themeURL . '/css/main.css' . $jsVersion, 'screen, projection');
Yii::app()->clientScript->registerCssFile($themeURL . '/css/form.css' . $jsVersion, 'screen, projection');
Yii::app()->clientScript->registerCssFile($themeURL . '/css/ui-elements.css' . $jsVersion, 'screen, projection');
if (AuxLib::getIEVer() < 9) {
    Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/lib/aight/aight.js');
}
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/lib/jquery-migrate-1.2.1.js');
$backgroundImg = '';
$defaultOpacity = 1;
$themeCss = '';
$checkResult = false;
$checkFiles = array('themes/x2engine/images/x2footer.png' => '1393e4af54ababdcf76fac7f075b555b', 'themes/x2engine/images/x2-mini-icon.png' => '153d66b514bf9fb0d82a7521a3c64f36');
foreach ($checkFiles as $key => $value) {
    if (!file_exists($key) || hash_file('md5', $key) != $value) {
        $checkResult = true;
    }
}
$theme2Css = '';
if ($checkResult) {
开发者ID:keyeMyria,项目名称:CRM,代码行数:31,代码来源:login.php

示例5: IEBanner

 public static function IEBanner($ver = 9, $echo = true)
 {
     if (AuxLib::getIEVer() >= $ver) {
         return false;
     }
     $htmlOptions = array('class' => 'ie-banner');
     $message = Yii::t('app', 'This feature does not support your version of Internet Explorer');
     if ($echo) {
         echo self::tag('h2', $htmlOptions, Yii::t('app', $message));
         return true;
     } else {
         return self::tag('h2', $htmlOptions, Yii::t('app', $message));
     }
 }
开发者ID:shuvro35,项目名称:X2CRM,代码行数:14,代码来源:X2Html.php


注:本文中的AuxLib::getIEVer方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。