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


PHP js_url函数代码示例

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


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

示例1: ajouter_js

 public function ajouter_js($nom)
 {
     if (is_string($nom) and !empty($nom) and file_exists('./assets/js/' . $nom . '.js')) {
         $this->var['js'][] = js_url($nom);
         return true;
     }
     return false;
 }
开发者ID:sylvrebos5123,项目名称:intranet_v2,代码行数:8,代码来源:layout.php

示例2: js_push

 public function js_push($e)
 {
     if ($this->js_url != '') {
         array_push($this->jsfiles, $this->js_url . $e . '.js');
     } else {
         array_push($this->jsfiles, js_url($e));
     }
 }
开发者ID:RodolfoSilva,项目名称:tendoo-cms,代码行数:8,代码来源:File.Class.php

示例3: get_default_js

/**
 * returns an array of js file needed to be included in the whole application.
 * This is basically jquery and bootstrap in case of this template
 */
function get_default_js()
{
    $js = array();
    $js[] = js_url('jquery-1.10.2');
    $js[] = js_url('bootstrap.min');
    $js[] = js_url('plugins/metisMenu/jquery.metisMenu');
    $js[] = js_url('jquery.noty.packaged.min');
    return $js;
}
开发者ID:bishopgodsey,项目名称:cathedral,代码行数:13,代码来源:default_helper.php

示例4: errorlog_theme

function errorlog_theme()
{
    global $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $list, $done, $filename, $error_log_data, $log_cleared;
    softheader($l['<title>']);
    echo '<br /><center class="sai_heading"><img src="' . $theme['images'] . 'error_log.gif" />&nbsp;' . $l['errorlog_head'] . '</center><br />';
    error_handle($error);
    echo '<script language="javascript" src="' . js_url('js/combined.js') . '" type="text/javascript"></script>

<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
function confirm_reset(){
	var r = confirm("' . $l['reset_confirm'] . '");
	if(r != true){
		return false;
	}else{
		//alert(window.location+"&reset=' . basename($filename) . '");
		//return false;
		window.location  += "&clear_log=' . basename($filename) . '";
	}
}
	
// ]]></script>';
    if (!empty($log_cleared)) {
        echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
	alert("' . $l['refresh_after_clear'] . '");
	window.location = "' . $globals['index'] . 'act=errorlog";
// ]]></script>';
    } else {
        echo '<form accept-charset="' . $globals['charset'] . '" name="errorlogform" method="post" action="" id="errorlogform">
		<center>
			<table border="0" cellpadding="5" cellspacing="0" width="700px" align="center" class="sai_reviewform">
				<tr>
					<td><span class="sai_head">' . $filename . (!empty($error_log_data['file_size']) ? ' (' . $error_log_data['file_size'] . ')' : '') . '</span></td>
				</tr>
			</table>
		</center>
		<br /><br />

	<div style="height:410px; width:700px; overflow:auto; border: 2px solid #CCC; margin:0px auto; position:relative" >
		<table border="0" cellpadding="0" cellspacing="0" width="700px" align="center" class="sai_reviewform">
			<tr>
				<td nowrap="nowrap"><textarea style="font-size:15px;color:#06C; border:none; resize:none;" name="errorlog_data" id="errorlog_data" rows="20" cols="250" readonly="readonly">' . $error_log_data['error_data'] . '</textarea>
				</td>
			</tr>
		</table>
	</div><br />
	
<p align="center">
	<input type="button" value="' . $l['clear_log'] . '" name="clear_log" class="sai_graybluebut" onClick="confirm_reset();"/>
</p>
</form>';
    }
    softfooter();
}
开发者ID:Hezkibel,项目名称:soft,代码行数:53,代码来源:errorlog_theme.php

示例5: __construct

 function __construct()
 {
     parent::__construct();
     // SECURITÉ
     $this->session_lib->isConnected(TRUE);
     // NE SURTOUT PAS ENLEVER ICI !!!
     if ($this->permissions[\Entity\gmb\right::SUPERADMIN] === FALSE) {
         redirect("");
         die;
     }
     $this->load->helper(array('url', 'file', 'language', 'form'));
     //load this helpers if youre not doing it in autoload
     $this->preload_views(array("js" => array(js_url("linguanosor.js"))));
     // on pourra utiliser $header pour appeler la vue header...
     $this->config->load('linguanosor');
     $this->default_lang = "english";
     $this->lang_abbr = $this->config->item('linguanosor_uri_abbr');
     $this->lang->load('language');
 }
开发者ID:arnouxor,项目名称:linguanosor,代码行数:19,代码来源:Linguanosor.php

示例6: img_url

" id="submit1" value="Connexion">
					<input type="image" src="<?php 
echo img_url('submit.png');
?>
" id="submit2" value="Connexion">
				</div>
			</form>
		</div>
		<div id="wrapperbottom"></div>
		<div id="powered">
		<p>Powered by <a href="http://jeunesscience.com">Association Jeunes Science Tunisie</a></p>
		</div>
	</div>
	
	<!-- Load Javascript -->
	<script type="text/javascript" src="<?php 
echo js_url("jquery");
?>
"></script>
	<script type="text/javascript" src="<?php 
echo js_url("query-2.1.7");
?>
"></script>
	<script type="text/javascript" src="<?php 
echo js_url("rainbows");
?>
"></script>
	<!-- // Load Javascipt -->
	
</body>
</html>
开发者ID:hassenING,项目名称:gestionActivitee,代码行数:31,代码来源:connexion.php

示例7: bower_url

    <script src="<?php 
echo bower_url('jquery/dist/jquery.min.js');
?>
"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="<?php 
echo bower_url('bootstrap/dist/js/bootstrap.min.js');
?>
"></script>

     <!-- Metis Menu Plugin JavaScript -->
    <script src="<?php 
echo bower_url('metisMenu/dist/metisMenu.min.js');
?>
"></script>
	
    <!-- Custom Theme JavaScript -->
    <script src="<?php 
echo js_url('sb-admin-2.js');
?>
"></script>
	
    <?php 
echo $template['js_footer'];
?>

</body>

</html>
开发者ID:ardissoebrata,项目名称:ci-beam,代码行数:30,代码来源:clean.php

示例8: check_before_submit

"><?php 
    echo $row["wfw_function"];
    ?>
</li>
<?php 
}
?>
</ol>
<input type="hidden" id="hd_worker_id" name="hd_worker_id">

<input type="submit" value="Save" onclick="return check_before_submit();">
<?php 
echo form_close();
?>
<script src="<?php 
echo js_url();
?>
jquery-sortable.js"></script>
<style type="text/css">
	body.dragging, body.dragging * {
	  cursor: move !important;
	}

	.dragged {
	  position: absolute;
	  opacity: 0.5;
	  z-index: 2000;
	}

	ol.example li.placeholder {
	  position: relative;
开发者ID:KanexKane,项目名称:hrsystem,代码行数:31,代码来源:process_add.php

示例9: add_js

 public function add_js($file_name)
 {
     if (is_string($file_name) and !empty($file_name)) {
         if (file_exists('./assets/js/' . $file_name) or file_exists('./assets/js/' . $file_name . '.js')) {
             $this->params['js'][] = js_url($file_name);
             return true;
         }
         return false;
     } else {
         if (is_array($file_name)) {
         }
     }
     return false;
 }
开发者ID:bishopgodsey,项目名称:cathedral,代码行数:14,代码来源:layout.php

示例10: tagjs

 function tagjs($nom)
 {
     return '<script type="text/javascript" src="' . js_url($nom) . '"></script>';
 }
开发者ID:keyanmca,项目名称:webtv,代码行数:4,代码来源:assets_helper.php

示例11: js_url

		<div style="clear:both"></div>

		
		<script>
		<?php 
if ($this->session->userdata('currentRoom') !== false) {
    echo 'var idRoomToLoad = ' . $this->session->userdata('currentRoom');
} else {
    echo 'var idRoomToLoad = 1';
}
?>
		</script>

		<script src="<?php 
echo js_url('chatbox');
?>
"></script>
		
		<?php 
if (!isset($onlyCB)) {
    ?>
			<br />
			<h2>Top membres</h2>
			
			<?php 
    foreach ($topGils as $key => $user) {
        ?>
		
				<div class="lineUserTop">
					<?php 
开发者ID:kidaa,项目名称:ffunivers,代码行数:30,代码来源:community.php

示例12: js_url

	</script>

	<?php 
if ($page == 'add_content') {
    echo js_url('bootstrap-datepicker');
    ?>

	<script>
		$('#datetimepicker input').datepicker({
	});
	</script>

	<?php 
}
if ($page == 'add_content' or $page == 'edit_content' or $page == 'home') {
    echo js_url('redactor.min');
    ?>
	<script>
		function deleteContentConfirm() {
			var a = confirm("Etes-vous sur de vouloir supprimer cet article ?!");
			if (a){
				return true;
			}
			else{
				return false;
			}
		}
	</script>
	<script>
		$('.show_img').css('cursor', 'pointer');
		$('.display_img').css('display', 'none');
开发者ID:kimoudev,项目名称:blogigniter,代码行数:31,代码来源:view_dashboard.php

示例13: css_url

" rel="stylesheet">
    <link href="<?php 
echo css_url("maintain_menu/bootstrap-combined.min.css");
?>
" rel="stylesheet">
    <!-- jQuery -->
    <script src="<?php 
echo js_url("jquery2.0.2.js");
?>
"></script>
    <script src="<?php 
echo js_url("bootstrap.min.js");
?>
"></script>
    <script src="<?php 
echo js_url("public_program/classes.js");
?>
"></script>

    <script>
        <?php 
if (isset($rtn_message)) {
    ?>
        alert('<?php 
    echo $rtn_message;
    ?>
');
        <?php 
}
?>
    </script>
开发者ID:RickChaos,项目名称:manage-rick-chaos.huhu.tw,代码行数:31,代码来源:classes_add.php

示例14: form_close

    </div>

</div>
<?php 
echo form_close();
?>



<!-- jQuery -->
<script src="<?php 
echo js_url("manage_template/jquery.js");
?>
"></script>
<!-- 月曆套件 -->
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.9.1.js" ></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js" ></script>
<script src="<?php 
echo js_url("jquery-ui-i18n.js");
?>
" charset = "utf-8"></script>
<!-- Bootstrap Core JavaScript -->
<script src="<?php 
echo js_url("manage_template/bootstrap.min.js");
?>
"></script>
</body>

</html>
开发者ID:RickChaos,项目名称:manage-rick-chaos.huhu.tw,代码行数:30,代码来源:employee_mdy_password.php

示例15: js_url

	<script src="<?php 
echo js_url('chosen.jquery.min');
?>
"></script>
	<script src="<?php 
echo js_url('bootstrap.min');
?>
"></script>
	<script src="<?php 
echo js_url('bootstrap-datepicker');
?>
"></script>
	<script src="http://tablesorter.com/__jquery.tablesorter.min.js"></script>

	<!-- Scripts specific to this page -->
	<!-- Validate Plugin -->
	<script src="<?php 
echo js_url('jqBootstrapValidation');
?>
"></script>
	<script>var urlajax = '<?php 
echo site_url('admin/saveOrder');
?>
';</script>
	<script src="<?php 
echo js_url('script');
?>
"></script>
</body>
</html>
开发者ID:keyanmca,项目名称:webtv,代码行数:30,代码来源:template.php


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