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


PHP view::load_js方法代码示例

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


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

示例1: url

<?php

require view::dir() . 'head.php';
view::load_js('login');
?>
<div class="top-content">
  <div class="inner-bg">
    <div class="container">
      <div class="row">
        <div class="col-sm-6 col-sm-offset-3 form-box">
          <div class="form-bottom">
            <form role="form" action="<?php 
echo url('login', 'login');
?>
" method="post" class="login-form">
              <div class="form-group">
                <label class="sr-only" for="username">Username</label>
                <input type="text" name="username" class="form-username form-control" id="form-username" placeholder="登录名..." autocomplete="off">
              </div>
              <div class="form-group">
                <label class="sr-only" for="password">Password</label>
                <input type="password" name="password" class="form-password form-control" id="form-password" placeholder="登录密码..." autocomplete="off">
              </div>
              <button type="submit" class="btn">登录</button>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
开发者ID:luozhanhong,项目名称:share,代码行数:31,代码来源:login.php

示例2: parseInt

view::load_css('xenon-skins');
view::load_css('form-elements');
view::load_css('style');
view::load_js('jquery-2.2.1.min');
view::load_js('bootstrap.min');
view::load_js('TweenMax.min');
view::load_js('resizeable');
view::load_js('joinable');
view::load_js('xenon-api');
view::load_js('xenon-toggles');
view::load_js('xenon-widgets');
view::load_js('toastr.min');
view::load_js('globalize.min');
view::load_js('dx.chartjs');
view::load_js('xenon-custom');
view::load_js('jquery.validate.min');
view::load_js('jquery.backstretch.min');
view::load_js('kindeditor-all-min');
view::load_js('kindeditor-zh_CN');
view::load_js('common');
?>
<title>我的博客管理后台</title>
</head>
<body class="page-body">
<div class="page-container">
<script type="text/javascript">
var time = parseInt('<?php 
echo $now;
?>
000');
</script>
开发者ID:luozhanhong,项目名称:share,代码行数:31,代码来源:head.php

示例3: function

<title><?php 
echo SITE_TITLE;
?>
</title>
<?php 
view::load_short_icon();
view::load_css('bootstrap.min');
view::load_css('metisMenu.min');
view::load_css('timeline');
view::load_css('sb-admin-2');
view::load_css('morris');
view::load_css('font-awesome.min');
view::load_js('jquery.min');
view::load_js('bootstrap.min');
view::load_js('metisMenu.min');
view::load_js('sb-admin-2');
?>
<script type="text/javascript">
$(function(){
	$(':input').attr('autocomplete', 'off');
	change_right_div_width = function(){
		var clientHeight = parseInt(document.documentElement.clientHeight) - 70;
		$('#iframe').css('height',clientHeight+'px');
	}
	window.onresize = function(){
		change_right_div_width();
	}
	change_right_div_width();
})
</script>
</head>
开发者ID:luozhanhong,项目名称:share,代码行数:31,代码来源:head.php

示例4: url

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo CHARSET_HTML;
?>
" />
<?php 
view::load_short_icon();
view::keywords(SYSTEM_TITLE);
view::description(SYSTEM_TITLE);
view::load_css('css');
view::load_js('jquery');
view::load_js('highcharts');
view::load_js('rcalendar');
view::load_js('function');
?>
<title><?php 
echo SYSTEM_TITLE;
?>
</title>
</head>
<body>
<!--logo-->
<div id="logo">
  <h2><a href="<?php 
echo url();
?>
" title="<?php 
echo SYSTEM_TITLE;
?>
"><?php 
开发者ID:kansifang,项目名称:share,代码行数:31,代码来源:head.php


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