本文整理汇总了PHP中getJS函数的典型用法代码示例。如果您正苦于以下问题:PHP getJS函数的具体用法?PHP getJS怎么用?PHP getJS使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getJS函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getMainTemplate
function getMainTemplate()
{
global $settings, $sql;
// Haupt-Template
$template = '{..doctype..}
<html lang="' . $settings['language'] . '">
<head>
{..title..}{..meta..}{..link..}{..script..}
</head>
{..body..}
</html>';
// Dynamischen Titel laden
$template_title = getTitle();
// Metadaten laden
$template_meta = '
<meta name="title" content="' . $template_title . '">
<meta name="description" content="' . $settings['description'] . '">
<meta name="keywords" lang="' . $settings['language'] . '" content="' . $settings['keywords'] . '">
<meta name="robots" content="index,follow">
<meta name="Revisit-after" content="3 days">
<meta http-equiv="content-language" content="' . $settings['language'] . '">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="DC.Title" content="' . $template_title . '">
<meta name="DC.Description" content="' . $settings['description'] . '">
<meta name="DC.Language" content="' . $settings['language'] . '">
<meta name="DC.Format" content="text/html">
';
// link's + CSS einbinden
$template_link = '
<link rel="shortcut icon" href="style/icons/favicon.ico">' . getCSS();
// Platzhalter ersetzen
$template = str_replace("{..title..}", "<title>" . $template_title . "</title>", $template);
$template = str_replace("{..meta..}", $template_meta, $template);
$template = str_replace("{..link..}", $template_link, $template);
$template = str_replace("{..script..}", getJS(), $template);
// Haupt-Template zurückgeben
return $template;
}
开发者ID:rancor2k,项目名称:bierBill,代码行数:40,代码来源:inc_functions.php
示例2: function
window.alert = function () {};
window.onbeforeunload = function(){
$(document).unbind().die(); //remove listeners on document
$(document).find('*').unbind().die(); //remove listeners on all nodes
}
</script>
<script type="text/javascript">
try {
<?php
echo getJS();
?>
} catch (e) {
console.error(e.message);
parent.window.onDifferent('Error');
}
$(function () {
<?php
@(include "{$path}/unit-tests.js");
?>
});
</script>
</head>
开发者ID:cxt521,项目名称:highcharts.com,代码行数:31,代码来源:compare-iframe.php
示例3: getJS
return $css;
}
function getJS()
{
$js = '';
$file = "js/flickr_photo_search-min.js";
if (file_exists($file)) {
$js = file_get_contents($file);
}
$scripts = <<<SCRIPTS
<script type="text/javascript" src="http://yui.yahooapis.com/2.8.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript">
{$js}
</script>
SCRIPTS;
return $scripts;
}
/* End of Functions */
/* Being Markup Preparetion */
$css = getCSS();
$js = getJS();
$html = <<<MARKUP
<head>
{$css}
</head>
<body>
{$result}
{$js}
</body>
MARKUP;
echo $html;
开发者ID:ravikiranj,项目名称:flickr-yap-demo,代码行数:31,代码来源:flickr_yap_fullview.php
示例4: getBadge
* contact [email protected] or call 888-300-4546 for assistance. *
****************************************************************************************************/
#FOR SERVER EDITION
define("MOD_PATH", ".");
define("IMG_PATH", MOD_PATH."/images");
if(!isset($_GET['mode']) || $_GET['mode'] == 'ajax'){
define("IMG_PATH", "images");
$isIE7 = (bool)(strpos($_SERVER['HTTP_USER_AGENT'], "MSIE 7") !== false);
$popup_div = false;
$badge = getBadge(null, $popup_div, $isIE7);
echo " <HTML>
<head>
".getJS($popup_div)."
</head>
<body style='background: #D00000;'>
</body>
</HTML>";
}
if(!class_exists('adminFuncs')){
class adminFuncs{
public $connected;
public $config_fp;
public function sl_get_path(){
$filepath = "false";
if($this->config_exists()){
include($this->config_fp);
开发者ID:realfluid,项目名称:umbaugh,代码行数:31,代码来源:sl_verify.php
示例5: getMeta
$validar = $_SESSION['username'];
if (!isset($validar)) {
?>
<script type="text/javascript" language="javascript">window.location="../acceso/";</script>
<?php
} else {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php
include_once 'functions.php';
getMeta();
getTitle();
getCss();
getJS();
?>
</head>
<body>
<div class="navbar navbar-inverse" role="navigation">
<div class="navbar-header">
<a class="navbar-brand" href="../inicio/"><img src="../images/logo.png" alt="Londinium"></a>
<a class="sidebar-toggle"><i class="icon-paragraph-justify2"></i></a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-icons">
<span class="sr-only">Toggle navbar</span>
<i class="icon-grid3"></i>
</button>
<button type="button" class="navbar-toggle offcanvas">
<span class="sr-only">Toggle navigation</span>
<i class="icon-paragraph-justify2"></i>
</button>
开发者ID:alexMH01,项目名称:invent,代码行数:31,代码来源:header.php
示例6: getLoginUserDetail
<?php
$this->load->view('common/header');
$user = getLoginUserDetail();
?>
<script type="text/javascript" src="<?php
echo getJS('jquery.ui.timepicker.js');
?>
"></script>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#eventStartTime').timepicker({
showPeriod: true,
showNowButton: true,
showDeselectButton: true,
showCloseButton: true,
showLeadingZero: true
});
jQuery('#eventEndTime').timepicker({
showPeriod: true,
showNowButton: true,
showDeselectButton: true,
showCloseButton: true,
showLeadingZero: true
});
});
</script>
<script language="javascript" type="text/javascript" src="<?php
echo base_url();
?>
assets/tiny_mce/tiny_mce.js"></script>
开发者ID:benoastler,项目名称:Clubband,代码行数:31,代码来源:add_event.php
示例7: sl_widget
function sl_widget($args){
extract($args);
$options = explode('#sl#', get_option('sl_badge_widget'));
$base_url = plugins_url() . '/' . dirname(plugin_basename(__FILE__)) . '/';
#Get $params
{
$arr = array('sl_badge_series','sl_badge_type','sl_badge_color','sl_position','custom_pad_top','custom_pad_right','custom_pad_left','custom_pad_bottom','custom_margin_top','custom_margin_right','custom_margin_left','custom_margin_bottom','custom_position','custom_zindex','sl_popup','moduleclass_sfx');
$params = new ParamWrapper();
for($i=0;$i<count($arr);$i++){
$params->set($arr[$i],$options[$i]);
}
}
$isIE7 = (bool)(strpos($_SERVER['HTTP_USER_AGENT'], "MSIE 7") !== false);
$popup_div = false;
$badge = getBadge($params, $popup_div, $isIE7);
echo $before_widget;
echo getJS($popup_div);
echo $badge;
echo $after_widget;
}
开发者ID:realfluid,项目名称:umbaugh,代码行数:23,代码来源:securepress.php
示例8: apache_request_headers
<?php
$headers = apache_request_headers();
$client_time = isset($headers['If-Modified-Since']) ? strtotime($headers['If-Modified-Since']) : 0;
$now = gmmktime();
$now_list = gmmktime() - 60 * 5;
if ($client_time < $now and $client_time > $now_list) {
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $client_time) . 'GMT', true, 304);
} else {
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $now) . ' GMT', true, 200);
}
$js['sh'] = array('/static/scripts/shCore.js', '/static/scripts/shBrushBash.js', '/static/scripts/shBrushCpp.js', '/static/scripts/shBrushCSharp.js', '/static/scripts/shBrushCss.js', '/static/scripts/shBrushDelphi.js', '/static/scripts/shBrushDiff.js', '/static/scripts/shBrushGroovy.js', '/static/scripts/shBrushJava.js', '/static/scripts/shBrushJScript.js', '/static/scripts/shBrushPhp.js', '/static/scripts/shBrushPlain.js', '/static/scripts/shBrushPython.js', '/static/scripts/shBrushRuby.js', '/static/scripts/shBrushScala.js', '/static/scripts/shBrushSql.js', '/static/scripts/shBrushVb.js', '/static/scripts/shBrushXml.js');
define("WEBPATH", realpath('../'));
if (isset($_GET['file'])) {
echo getJS(explode('|', $_GET['file']));
} elseif (isset($_GET['g'])) {
echo getJS($js[$_GET['g']]);
}
function getJS($files)
{
$js = '';
foreach ($files as $f) {
$js .= file_get_contents(WEBPATH . $f);
$js .= "\n";
}
return $js;
}
开发者ID:netstao,项目名称:swoole.com,代码行数:27,代码来源:js.php
示例9: getJS
form
{
width: 100%;
}
#status
{
text-align: center;
font-size: 15px;
margin: 15px auto;
width: 450px;
}
</style>
<?echo getJS($a);?>
</head>
<body>
<?echo getBody($a);?>
</body>
</html>
<?
function getTitle($a)
{
$id = $_GET["id"];
if(!(isset($id)) || strlen($id)<11 || strlen($id)>11)
unset($a);
开发者ID:henocdz,项目名称:Tutoriales,代码行数:30,代码来源:index.php
示例10: getActivePackages
$menuPath = '/view/site/dashboard/user/menu.php';
$sitePath = '/view/site/dashboard/user/contacts.php';
break;
default:
// DASHBOARD
// Model
require_once APP_PATH . 'model/getActivePackages.php';
require_once APP_PATH . 'model/getAllPackages.php';
require_once APP_PATH . 'model/bookPackage.php';
require_once APP_PATH . 'model/sendBill.php';
require_once APP_PATH . 'model/getJs.php';
// PDF MAKER
require_once APP_PATH . 'lib/fpdf.php';
require_once APP_PATH . 'lib/pdf.php';
require_once APP_PATH . 'lib/phpmailer.php';
// controller
require_once APP_PATH . 'control/haendlerDashboardController.php';
// call models
$activePackages = getActivePackages($_SESSION['user_id'], $db);
if ($activePackages) {
$_SESSION['user_has_package'] = true;
} else {
$_SESSION['user_has_package'] = false;
}
$packages = getAllPackages($db);
$scripts = getJS($allScripts, ['booking' => 1], true);
// Template
$menuPath = '/view/site/dashboard/user/menu.php';
$sitePath = '/view/site/dashboard/user/dashboard.php';
break;
}
开发者ID:bassels,项目名称:moebel-mafia,代码行数:31,代码来源:haendlerController.php
注:本文中的getJS函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论