示例#1
0
 public function init()
 {
     parent::init();
     $this->libUrl = Resource::getCommonUrl() . '/libs/kindeditor';
 }
示例#2
0
 public function init()
 {
     parent::init();
     $this->libUrl = Resource::getCommonUrl() . '/libs/kindeditor';
     $this->defaultParams['width'] = '"' . $this->width . '"';
 }
示例#3
0
    /**
     * 加载静态资源
     */
    public function registerStatics()
    {
        LsYii::getView()->registerJsFile(Resource::getCommonUrl('/libs/jquery.treeview/lib/jquery.cookie.js'), ['depends' => 'yii\\web\\YiiAsset']);
        LsYii::getView()->registerJsFile(Resource::getCommonUrl('/libs/jquery.treeview/jquery.treeview.js'), ['depends' => 'yii\\web\\YiiAsset']);
        LsYii::getView()->registerCssFile(Resource::getCommonUrl('/libs/jquery.treeview/jquery.treeview.css'), ['depends' => 'yii\\bootstrap\\BootstrapAsset']);
        LsYii::getView()->registerJs(<<<EOD
          \$("#{$this->treeOptions['id']}").treeview({
                persist: "{$this->presist}",
                collapsed: {$this->collapsed},
                unique: {$this->unique},
                animated: "{$this->animated}",
            });      
EOD
, \yii\web\View::POS_END);
    }
示例#4
0
文件: main.php 项目: sym660/lulucms2
/js/jquery.min.js?ver=1419744126'></script>
    <script type='text/javascript' src='<?php 
echo Resource::getInstallUrl();
?>
/js/jquery-migrate.min.js?ver=1419744126'></script>
    <script type='text/javascript' src='<?php 
echo Resource::getInstallUrl();
?>
/js/jquery.dropkick.min.js?ver=1419744126'></script>

    <script type='text/javascript' src='<?php 
echo Resource::getCommonUrl();
?>
/libs/jquery.validate/jquery.validate.min.js'></script>
    <script type='text/javascript' src='<?php 
echo Resource::getCommonUrl();
?>
/libs/jquery.validate/localization/messages_zh.min.js'></script>

    <!--[if lt IE 9]>
<script src="<?php 
echo Resource::getInstallUrl();
?>
/js/html5.js"></script>
<script src="<?php 
echo Resource::getInstallUrl();
?>
/js/selectivizr.js"></script>
<script src="<?php 
echo Resource::getInstallUrl();
?>
示例#5
0
            <td>
                <input value="" type="email" name="email" id="email" class="class_input email required" />
                <span class="email"></span>
            </td>
        </tr>
<!--        <tr>
            <th height="30" align="right">安装测试数据:</th>
            <td>
                <input value="Y" type="checkbox" name="testData" style="margin-left: 5px;" id="testData" />
                是
            </td>
        </tr>
        <tr>
            <th height="30" align="right">&nbsp;</th>
            <td>
                <p class="red">全新安装会覆盖旧数据 </p>
            </td>
        </tr>-->
    </table>
    <div class="inst_btn_area">
        <button type="button" onclick="history.go(-1);return false;" class="button">返 回</button>
        &nbsp;
        <button type="submit" class="button">下一步</button>
    </div>
    <?php 
ActiveForm::end();
?>
</div>
<?php 
Resource::jsFile(Resource::getCommonUrl('/js/jquery.min.js'));
Resource::jsFile(Resource::getInstallUrl("/js/jquery.db.validate.js"));