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


PHP View::includeResources方法代码示例

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


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

示例1: array

<div class="login">
    <?php 
echo \Core\View::includeResources("resources/core/bootstrap/bootstrap-3.3.5/css/bootstrap.min.css", array("scoped" => null));
?>
    <form id="form_<?php 
echo $randId;
?>
" onsubmit="return false;" method="post" action="#">
        <fieldset class="form-group">
            <legend>
                <trans>Authentication</trans>
            </legend>
        
            <div class="message-container message-container_<?php 
echo $randId;
?>
"></div>

            <label>
                <trans>Username</trans>
            </label>
            <input type="text" class="form-control" placeholder="<trans>Username</trans>" value="" name="login">
            <br />
             
            <label><trans>Password</trans></label>
            <input type="password" class="form-control" placeholder="<trans>Password</trans>" value="" name="password">
            <br />
             
            <label>
                <input type="checkbox" name="autologin" value="1">
                <trans>Remember Me</trans>
开发者ID:solofo-ralitera,项目名称:oron,代码行数:31,代码来源:form.php

示例2:

<?php

$randId = \Core\CString::rand();
echo \Core\View::includeResources("resources/core/jquery/jquery-1.11.3.min.js");
?>
<div class="login">
    <trans>You are logged as</trans> <?php 
echo \Core\Security::UserName();
?>
    &nbsp;|&nbsp;
    <a href="#" id="logout_<?php 
echo $randId;
?>
"><trans>logout</trans></a>
</div>
<script type="text/javascript">
    $(function() {
        // Edit link
        $("#logout_<?php 
echo $randId;
?>
").click(function() {
            $.ajax({
                url: "<?php 
echo APP_URI . "index.php/" . \Core\Request::getClassUri($self) . "/logout";
?>
/",
                method : "POST",
                data : {
                    "moduleId" : "<?php 
echo $self->id();
开发者ID:solofo-ralitera,项目名称:oron,代码行数:31,代码来源:logged.php

示例3: encodeURIComponent

                            color: #fff;
                            display: inline-block;
                            padding: 0;
                            text-decoration: none;                    
                        ">
                            PostgreSQL
                        </a>
                    </div>
                </div>            
            </footer>
            <?php 
// Script
echo \Core\View::includeResources("resources/core/jquery/jquery-1.11.3.min.js");
echo \Core\View::includeResources("resources/core/jquery/jquery.addons.js");
echo \Core\View::includeResources("resources/core/bootstrap/bootstrap-3.3.5/js/bootstrap.min.js");
echo \Core\View::includeResources("resources/core/bootstrap/treeview/bootstrap-treeview.js");
?>

            <script>
                $(function() {
                    $(".printpdf").click(function() {
                        $.redirectPost("<?php 
echo APP_URI;
?>
", {
                            outputformat : "pdf",
                            outputpdfcontent : encodeURIComponent("<!DOCTYPE HTML><html>" + document.documentElement.innerHTML + "</html>"),
                            outputpdfparams : encodeURIComponent(JSON.stringify({
                                "0":"no-outline",
                                "1":"disable-smart-shrinking",
                                //"2" : "grayscale",
开发者ID:solofo-ralitera,项目名称:oron,代码行数:31,代码来源:index.php

示例4: array

            echo \Core\View::includeResources($tinymce);
            $tinymceJq = "resources/core/editor/tinymce_jquery/js/tinymce/jquery.tinymce.min.js";
            echo \Core\View::includeResources($tinymceJq);
            break;
        default:
            break;
    }
}
// bootstrap theme
/*
echo \Core\View::includeResources("resources/core/bootstrap/bootstrap-3.3.5/bootstrap.css", array(
    "scoped" => null,
));
*/
// FA
echo \Core\View::includeResources("resources/core/font-awesome-4.4.0/css/font-awesome.min.css");
// Custom js for extends ?
echo \Core\View::includeModuleResources($self, "resources/js/tableManager.js");
// Module css
echo \Core\View::includeModuleResources($self, "resources/css/tableManager.css", array("scoped" => null));
echo \Core\View::includeModuleResources($self, "resources/css/index.css", array("scoped" => null));
echo \Core\View::includeModuleResources($self, "resources/css/edit.css", array("scoped" => null));
echo \Core\View::includeModuleResources($self, "resources/css/listContent.css", array("scoped" => null));
?>
    <script type="text/javascript">
        $(document).ready(function(){
            //$('.modules_core_admin_tablemanager_tablemanager .date').mask('00/00/0000');
            //$('.modules_core_admin_tablemanager_tablemanager .time').mask('00:00:00');
            //$('.modules_core_admin_tablemanager_tablemanager .datetime').mask('00/00/0000 00:00:00');
            //$('.modules_core_admin_tablemanager_tablemanager .number').mask('0#');
            
开发者ID:solofo-ralitera,项目名称:oron,代码行数:30,代码来源:index.php

示例5: array

echo \Core\View::includeResources("resources/core/jquery/jquery-1.11.3.min.js");
?>
    <?php 
echo \Core\View::includeResources("resources/core/jquery/jquery.addons.js");
?>

    <?php 
echo \Core\View::includeResources("resources/core/bootstrap/bootstrap-3.3.5/css/bootstrap.min.css");
?>

    <?php 
echo \Core\View::includeResources("resources/core/jquery/jquery-sortable.js");
?>

    <?php 
echo \Core\View::includeResources("resources/core/bootstrap/bootstrap.vertical-tabs.css", array("scoped" => null));
?>

    <style scoped="scoped">
        body.dragging, body.dragging * {
            cursor: move !important;
        }
        .dragged {
            position: absolute;
            opacity: 0.5;
            z-index: 2000;
        }
        ol.example li.placeholder {
            position: relative;
            /** More li styles **/
        }
开发者ID:solofo-ralitera,项目名称:oron,代码行数:31,代码来源:index.php

示例6: array

<?php

$randId = \Core\CString::rand();
echo \Core\View::includeResources("resources/core/jquery/jquery-1.11.3.min.js");
?>

<?php 
echo \Core\View::includeResources("resources/core/jquery/modalPopLite1.3.0/modalPopLite1.3.0.min.js");
echo \Core\View::includeResources("resources/core/jquery/modalPopLite1.3.0/modalPopLite1.3.0.css");
?>

<?php 
echo \Core\View::renderModule($self, "templates/form", array("randId" => $randId));
?>
<script type="text/javascript">
    $(function() {
        
        // $('#popup-wrapper').modalPopLite({ openButton: '#clicker', closeButton: '#close-btn' });
        
        // Edit link
        $("#submit_<?php 
echo $randId;
?>
").click(function() {
            var frm = $("#form_<?php 
echo $randId;
?>
");
            $.ajax({
                url: "<?php 
echo APP_URI . "index.php/" . \Core\Request::getClassUri($self) . "/Login";
开发者ID:solofo-ralitera,项目名称:oron,代码行数:31,代码来源:index.php


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