本文整理汇总了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>
示例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();
?>
|
<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();
示例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",
示例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#');
示例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 **/
}
示例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";