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


PHP js_asset函数代码示例

本文整理汇总了PHP中js_asset函数的典型用法代码示例。如果您正苦于以下问题:PHP js_asset函数的具体用法?PHP js_asset怎么用?PHP js_asset使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: js_asset

echo js_asset("jquery.tablesorter.js") . PHP_EOL;
echo js_asset("jquery.tablesorter.pager.js") . PHP_EOL;
echo js_asset("jquery.ufvalidator-1.0.4.js") . PHP_EOL;
echo js_asset("nav.js") . PHP_EOL;
echo js_asset("tablesort.js") . PHP_EOL;
echo js_asset("RGraph.common.core.js", "rgraph") . PHP_EOL;
echo js_asset("RGraph.common.adjusting.js", "rgraph") . PHP_EOL;
echo js_asset("RGraph.common.annotate.js", "rgraph") . PHP_EOL;
echo js_asset("RGraph.common.context.js", "rgraph") . PHP_EOL;
echo js_asset("RGraph.common.effects.js", "rgraph") . PHP_EOL;
echo js_asset("RGraph.common.resizing.js", "rgraph") . PHP_EOL;
echo js_asset("RGraph.common.tooltips.js", "rgraph") . PHP_EOL;
echo js_asset("RGraph.common.zoom.js", "rgraph") . PHP_EOL;
echo js_asset("RGraph.bar.js", "rgraph") . PHP_EOL;
echo js_asset("RGraph.hbar.js", "rgraph") . PHP_EOL;
echo js_asset("RGraph.pie.js", "rgraph") . PHP_EOL;
?>
<!-- Favicon -->
    <link type="image/x-icon" href="<?php 
echo base_url();
?>
favicon.png" rel="shortcut icon"/>
	
	<script src="<?php 
echo base_url();
?>
assets/js/Highcharts-4.0.4/js/highcharts.js"></script>
<script src="<?php 
echo base_url();
?>
assets/js/Highcharts-4.0.4/js/modules/exporting.js"></script>
开发者ID:wiliamdecosta,项目名称:channel_management,代码行数:31,代码来源:v_head.php

示例2: loadFunction

<?php

echo loadFunction("validate");
echo js_asset("plugin/date.format.js");
echo js_asset("plugin/json2/json2.js");
echo js_asset("plugin/store/store.min.js");
echo loadFunction("quicksearch");
?>
<script>
	$(function(){
		var act_link="<?php 
echo substr(trim($this->module), 0, -1);
?>
";
		//alert(act_link);
		var currLink=window.location.pathname;
		var removeStr=currLink.split("<?php 
echo $this->module;
?>
")[1];
		currLink=act_link+"/"+removeStr;
		var arrCurrLink=currLink.split("/");
		currLink=arrCurrLink.join("/");
		currLink = currLink.replace(/^\/|\/$/g, '');
		//alert(currLink);
		var el=$(".sidebar-menu").find("a[href*='"+currLink+"']:first");
		if(el.length<1){
			var el=$(".sidebar-menu").find("a[href*='"+act_link+"']:first");
		}
		//console.log(el);
		$(".sidebar-menu").find("li.active").removeClass("active");
开发者ID:TrinataBhayanaka,项目名称:damkar,代码行数:31,代码来源:footer_js.php

示例3: loadFunction

    <br />
</div>

<?php 
echo loadFunction("colorbox");
echo js_asset("plugin/form/jquery.form.js");
loadFunction("json");
echo js_asset("jquery.tmpl.min.js");
echo js_asset("jquery.tmplPlus.min.js");
echo js_asset("plugin/amplify/amplify.min.js");
?>
	<?php 
echo js_asset("plugin/amplify/amplify.contrib.js");
?>
    <?php 
echo js_asset("plugin/amplify/amplify_store_ext.js");
?>

<script id="tmp_file" type="text/x-jquery-tmpl">
	<tr id="file_${idx}" data-file_id="${idx}" class='file_row'>
	<td><a href="./${relative_path}" class='file_open' target='_blank'><i class="icon-search"></i> </a><input type="hidden" name="file_id[]" value="${idx}"/></a><input type="hidden" name="tipe_doc[]" value="${tipe_doc}"/></td><td><input name='dasar_surat[]' value="${file_name}" type="hidden" style='width:300px' class="required form-control input-sm"/><label style='height:auto;'>${file_name}</td><td><a href="" class='file_remove red'><i class="icon-remove"></i> </a></td></tr>
</script>

<script id="tmp_file_upload" type="text/x-jquery-tmpl">
	<tr class='file_row' id="file_upload_${idx}" data-file_id="${idx}">
	<td><input type="hidden" name="upload_file_id[]" value="${idx}"/><a href="./${relative_path}" class='file_open' target='_blank'><i class="icon-search"></i> </a></td><td>
	<label style='height:auto;'>${file_name}</label></td><td><a href="" class='upload_file_remove red'><i class="icon-remove"></i> </a></td></tr>
</script>
    
    
开发者ID:TrinataBhayanaka,项目名称:damkar,代码行数:28,代码来源:v_add.php

示例4: js_asset

</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 2.2.0 -->
<?php 
echo js_asset('jQuery-2.2.0.min.js', 'admin');
?>
<!-- Bootstrap 3.3.5 -->
<?php 
echo js_asset('bootstrap.min.js', 'bootstrap');
?>
 
<!-- AdminLTE App -->
<?php 
echo js_asset('app.min.js', 'admin');
?>

<script>
  $('#confirm-delete').on('show.bs.modal', function(e) {
    $(this).find('.btn-ok').attr('href', $(e.relatedTarget).data('href'));
  });
</script>
<!-- Optionally, you can add Slimscroll and FastClick plugins.
     Both of these plugins are recommended to enhance the
     user experience. Slimscroll is required when using the
     fixed layout. -->
</body>
</html>
开发者ID:rittidate,项目名称:sbobet-dev,代码行数:30,代码来源:admin.php

示例5: js_asset

        <div class="col-md-12">
        <div class="form-actions col-md-12">
        	<button class="btn btn-primary save" type="submit"><i class="icon-book icon-white"></i> Save </button>
        	<button type="reset" class="btn btn-warning "><i class="icon-refresh"></i> Reset </button>
        </div>
        </div>
        </div>
        
    </form>-->   
	</div>
	</div>
</div>

<?php 
echo js_asset("jquery.tmpl.min.js");
echo js_asset("jquery.tmplPlus.min.js");
?>

<script id="tmp_file" type="text/x-jquery-tmpl">
	<tr id="file_${idx}" data-file_id="${idx}" class='file_row'>
	<td><a href="./${relative_path}" class='file_open' target='_blank'><i class="icon-search"></i> </a><input type="hidden" name="file_id[]" value="${idx}"/></a><input type="hidden" name="tipe_doc[]" value="${tipe_doc}"/></td><td><input name='dasar_surat[]' value="${file_name}" type="hidden" style='width:300px' class="form-control input-sm"/><label style='height:auto;'>${file_name}</td><td><a href="" class='file_remove red'><i class="icon-remove"></i> </a></td></tr>
</script>


<script id="tmp_file_peta" type="text/x-jquery-tmpl">
	<tr class='file_row' id="file_peta_${idx}" data-file_id="${idx}">
	<td><input type="hidden" name="peta_file_id[]" value="${idx}"/><a href="./${relative_path}" class='file_open' target='_blank'><i class="icon-search"></i> </a></td><td>
	<label style='height:auto;'>${file_name}</label></td><td><a href="" class='peta_file_remove red'><i class="icon-remove"></i> </a></td></tr>
</script>

<script id="tmp_file_upload" type="text/x-jquery-tmpl">
开发者ID:TrinataBhayanaka,项目名称:damkar,代码行数:31,代码来源:v_edit_dok.php

示例6: css_asset

			}
			
			if((pp)&&(pp!=25)){
				data.push("pp="+pp);
			}
			var param='';
			if(data){
				param="?"+data.join("&");
			}
			var url=document.URL.split("?")[0];
			location=url+param;
	}
</script>
<?php 
echo css_asset("plugin/select2.css");
echo js_asset("plugin/select2.js");
?>
<script>
	$(function(){
		$(".select2").select2();
	});
</script>

<script>
	$(function(){
		var act_link="<?php 
echo $this->module;
?>
link";		
		$(".sdb_h_active").next().find("a[href*='"+act_link+"']").parent("li").addClass("active");
	})
开发者ID:TrinataBhayanaka,项目名称:damkar,代码行数:31,代码来源:link_list.php

示例7: js_asset

<?php

$this->load->view("admin_layout/lookup_header");
echo js_asset("jquery.cookie.js");
echo js_asset("lingkar/app.pack.js");
?>
        
<div class="row">
	<div class="col-sm-offset-3 col-sm-6">
    
    <form id="frmlogin" class="form-horizontal form-search" action="<?php 
echo base_url() . "login/auth/";
?>
" method="post">
		<div class="form-group">
			<label for="inputEmail" class="control-label col-xs-3">Username</label>
				<div class="col-xs-9">
					<input type="text" name="username" class="form-control" id="username" placeholder="User Name">
				</div>
		</div>

        <div class="form-group">
		    <label for="inputPassword" class="control-label col-xs-3">Password</label>
        	    <div class="col-xs-9">
            	    <input type="password" name="password" class="form-control" id="password" placeholder="Password">
            	</div>
		</div>

        <div class="form-group">
    		<div class="col-md-offset-3 col-md-9">
	                <div class="checkbox">
开发者ID:TrinataBhayanaka,项目名称:damkar,代码行数:31,代码来源:loginxx.php

示例8: css_asset

		<!-- Image Picker -->
		<?php 
echo css_asset("image-picker.css");
?>
		<!-- My style -->
		<?php 
echo css_asset("style.css");
?>

		<!-- JQuery -->
		<?php 
echo js_asset("bower_components/jquery/dist/jquery.js");
?>
		<!-- Image Picker -->
		<?php 
echo js_asset("image-picker.js");
?>
		<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
		<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/r/dt/dt-1.10.9/datatables.min.css"/>
 
		<script type="text/javascript" src="https://cdn.datatables.net/r/dt/dt-1.10.9/datatables.min.js"></script>
		<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
		<script>
			$(function() {
				$("#datepicker").datepicker();
			});
		</script>
	</head>

	<body>
		<!-- Fixed navbar -->
开发者ID:AI2558,项目名称:farmerwarning,代码行数:31,代码来源:header.php

示例9: js_asset

echo js_asset('jquery-ui-min.js');
echo js_asset('contact.js');
echo js_asset('swipe.js');
echo js_asset('swipebox.js');
echo js_asset('colorbox.js');
?>

<?php 
echo js_asset('retina.js');
echo js_asset('custom.js');
?>

<?php 
echo js_asset('snap.svg-min.js');
echo js_asset('classie.js');
echo js_asset('svgLoader.js');
?>


<script type="text/javascript">
    $(document).ready(function(){

    $('#edit_user_profile').click(function(){
         var url1=$('#url1').val()+'index.php/main_con/chang';
          $('#page-1').load(url1,{});
    });

    $('#add_to_system').click(function(){
         var url1=$('#url1').val()+'index.php/main_con/add_to_system';
          $('#page-1').load(url1,{});
开发者ID:Clickmycom-TK,项目名称:Funeral,代码行数:30,代码来源:profile_dead.php

示例10: css_asset

?>
	<?php 
echo css_asset('admin.css', $this->config->item('EASYHOTSPOT_THEME'));
?>
	<?php 
echo css_asset('billing.css', $this->config->item('EASYHOTSPOT_THEME'));
?>
	<link rel="shortcut icon" href="<?php 
echo other_asset_url('favicon.ico', 'default', 'image');
?>
" />
	<?php 
echo js_asset('jquery.js');
?>
	<?php 
echo js_asset('flash.js	');
?>
	<title>EasyHotspot : <?php 
echo $title;
?>
</title>
</head>

<body>
<div id="container">
<div id="header">
	<div id="logo"><span>EasyHotspot</span></div>
	<div id="version"><?php 
echo $this->config->item('EASYHOTSPOT_VERSION');
?>
</div>
开发者ID:wrtcoder,项目名称:EasyHotspot,代码行数:31,代码来源:header.php

示例11: js_asset

<?php

$this->load->view('admin/header');
?>
<!-- Restore to default JS -->
<?php 
echo js_asset('chillispot_restore_default.js');
?>
<h1><?php 
echo $action;
?>
</h1>

<?php 
echo $this->validation->error_string;
echo form_open('admin/chillispot');
?>
<ul>
	
	
	<li><label>Radius Server 1</label>
	<?php 
echo form_input(array('name' => 'radiusserver1', 'value' => $chilli_configuration['radiusserver1'], 'id' => 'radiusserver1'));
?>
 <acronym title="Address of primary RADIUS server, default 127.0.0.1">?</acronym></li>
	
	<li><label>Radius Server 2</label>
	<?php 
echo form_input(array('name' => 'radiusserver2', 'value' => $chilli_configuration['radiusserver2'], 'id' => 'radiusserver2'));
?>
 <acronym title="Address of secondary RADIUS server, default 127.0.0.1">?</acronym></li>
开发者ID:wrtcoder,项目名称:EasyHotspot,代码行数:31,代码来源:freeradius_view.php

示例12: loadCss

</style>
<?php 
loadCss("form");
loadCss("styles");
?>

<!-- LOAD LIBRARY JQUERY/JAVASCRIPT -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>
    window.jQuery || document.write('<script src="<?php 
echo base_url();
?>
assets/js/1.7.2/jquery.min.js"><\/script>');
</script>
<?php 
echo js_asset("jquery.cookie.js");
?>
<script>
	$(document).ready(function(){
		$('#username').val($.cookie('username'));
		$('#password').val($.cookie('password'));
		if($.cookie('check')==1){
			$('#check').attr("checked",true);
		}else{
			$('#check').attr("checked",false);
		}
		
		$("#a_login").click(function(e){
			e.preventDefault();
			var username= $('#username').val();
			var password = $('#password').val();
开发者ID:TrinataBhayanaka,项目名称:damkar,代码行数:31,代码来源:login_old.php

示例13: css_asset

		<meta charset="utf-8">
		<title>ยินดีต้อนรับสู่ปฏิทินล้นเกวียน</title>

		<!-- Bootstrap core CSS -->
		<?php 
echo css_asset('lavish-bootstrap.css');
?>

		<!-- Custom styles for this template -->
		<?php 
echo css_asset("navbar-fixed-top.css");
?>

		<!-- JQuery -->
		<?php 
echo js_asset("bower_components/jquery/dist/jquery.js");
?>
		<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
		<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
		<script>
			$(function() {
				$("#datepicker").datepicker();
			});
		</script>
	</head>

	<body>
		<!-- Fixed navbar -->
		<?php 
$page = $this->session->userdata('page');
?>
开发者ID:AI2558,项目名称:farmercalendar,代码行数:31,代码来源:header.php

示例14: js_asset

?>

		<!-- JQuery -->
		<?php 
echo js_asset("bower_components/jquery/dist/jquery.js");
?>
		<!-- Image Picker -->
		<?php 
echo js_asset("image-picker.js");
?>
		<!-- js_bootstrap-->
		<?php 
echo js_asset("bootstrap.js");
?>
		<?php 
echo js_asset("prettify.js");
?>
		
		<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
		<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/r/dt/dt-1.10.9/datatables.min.css"/>

		<!-- don't forget to change key -->
 		<script src="http://api.longdo.com/map/?key=00410fdfc5efa66c94f340b3cfed5bd5"></script>

		<script type="text/javascript" src="https://cdn.datatables.net/r/dt/dt-1.10.9/datatables.min.js"></script>
		<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
		<script>
			$(function() {
				$("#datepicker").datepicker();
			});
		</script>
开发者ID:AI2558,项目名称:DoctorHerbicide,代码行数:31,代码来源:header.php

示例15: viewClose

    function viewClose()
    {
        ?>
    <!-- JavaScript at the bottom for fast page loading -->
    <?php 
        echo js_asset('libs/jquery-1.5.1.min.js');
        ?>
    <!-- scripts concatenated and minified via ant build script -->
    <?php 
        echo js_asset('plugins.js');
        ?>
    <?php 
        echo js_asset('script.js');
        ?>
    <!-- end scripts-->

    <!--[if lt IE 7 ]>
    <script src="js/libs/dd_belatedpng.js"></script>
    <script>DD_belatedPNG.fix("img, .png_bg"); // Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb </script>
    <![endif]-->

    </body>
    </html>
<?php 
    }
开发者ID:nireno,项目名称:College-Manager,代码行数:25,代码来源:view_helper.php


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