當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。