本文整理汇总了PHP中LessExtension函数的典型用法代码示例。如果您正苦于以下问题:PHP LessExtension函数的具体用法?PHP LessExtension怎么用?PHP LessExtension使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了LessExtension函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: LessExtension
$step = 2;
} else {
$step = 1;
}
} else {
$step = $_POST['frm_step'];
}
}
//dump(__LINE__);
//dump($step);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE><?php
print LessExtension(basename(__FILE__));
?>
</TITLE>
<META NAME="Description" CONTENT="Email to units and facilities">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<META HTTP-EQUIV="Expires" CONTENT="0">
<META HTTP-EQUIV="Cache-Control" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Pragma" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript">
<META HTTP-EQUIV="Script-date" CONTENT="6/13/09">
<LINK REL=StyleSheet HREF="stylesheet.php?version=<?php
print time();
?>
" TYPE="text/css"> <!-- 3/15/11 -->
<SCRIPT>
String.prototype.trim = function () {
示例2: list_responders
function list_responders($addon = '', $start)
{
global $u_types;
?>
<SCRIPT>
try {
parent.frames["upper"].document.getElementById("whom").innerHTML = "<?php
print $_SESSION['user'];
?>
";
parent.frames["upper"].document.getElementById("level").innerHTML = "<?php
print get_level_text($_SESSION['level']);
?>
";
parent.frames["upper"].document.getElementById("script").innerHTML = "<?php
print LessExtension(basename(__FILE__));
?>
";
}
catch(e) {
}
var color=0;
var colors = new Array ('odd', 'even');
var starting = false;
function $() { // 1/23/09
var elements = new Array();
for (var i = 0; i < arguments.length; i++) {
var element = arguments[i];
if (typeof element == 'string')
element = document.getElementById(element);
if (arguments.length == 1)
return element;
elements.push(element);
}
return elements;
}
function isNull(val) { // checks var stuff = null;
return val === null;
}
function do_aprs_window() { // 6/25/08
// echo '<a href="mycgi?foo=', urlencode($userinput), '">';
// var url = "http://www.openaprs.net?center=" + "<?php
print urlencode(get_variable('def_lat') . ',' . get_variable('def_lng'));
?>
";
var url = "http://www.openaprs.net?center=" + "<?php
print get_variable('def_lat') . ',' . get_variable('def_lng');
?>
";
var spec ="titlebar, resizable=1, scrollbars, height=640,width=640,status=0,toolbar=0,menubar=0,location=0, left=50,top=250,screenX=50,screenY=250";
newwindow=window.open(url, 'openaprs', spec);
if (isNull(newwindow)) {
alert ("APRS display requires popups to be enabled. Please adjust your browser options.");
return;
}
newwindow.focus();
} // end function
function do_track(callsign) {
if (parent.frames["upper"].logged_in()) {
map.closeInfoWindow();
var width = <?php
print get_variable('map_width');
?>
+360;
var spec ="titlebar, resizable=1, scrollbars, height=640,width=" + width + ",status=0,toolbar=0,menubar=0,location=0, left=100,top=300,screenX=100,screenY=300";
var url = "track_u.php?source="+callsign;
newwindow=window.open(url, callsign, spec);
if (isNull(newwindow)) {
alert ("Track display requires popups to be enabled. Please adjust your browser options.");
return;
}
// starting = false;
newwindow.focus();
}
} // end function
function hideGroup(color) {
for (var i = 0; i < gmarkers.length; i++) {
if (gmarkers[i]) {
if (gmarkers[i].id == color) {
gmarkers[i].show();
}
else {
gmarkers[i].hide();
}
} // end if (gmarkers[i])
} // end for ()
elem = document.getElementById("allIcons");
elem.style.visibility = "visible";
} // end function
function showAll() {
for (var i = 0; i < gmarkers.length; i++) {
if (gmarkers[i]) {
gmarkers[i].show();
//.........这里部分代码省略.........
示例3: is_user
// 10/31/09
$user = is_user();
// 5/11/10
?>
<SCRIPT>
var myuser = "<?php
print $_SESSION['user'] ? $_SESSION['user'] : "not";
?>
";
var mylevel = "<?php
print isset($_SESSION['level']) ? get_level_text($_SESSION['level']) : "na";
?>
";
var myscript = "<?php
print isset($_SESSION['user']) ? LessExtension(basename(__FILE__)) : "login";
?>
";
if (!(window.opener==null)){ // 1/12/09
try {
window.opener.parent.frames["upper"].$("whom").innerHTML = myuser;
window.opener.parent.frames["upper"].$("level").innerHTML = mylevel;
window.opener.parent.frames["upper"].$("script").innerHTML = myscript;
}
catch(e) {
}
}
function $() { // 1/12/09
var elements = new Array();
for (var i = 0; i < arguments.length; i++) {
示例4: intval
if (file_exists("./incs/modules.inc.php")) {
// 10/28/10
require_once './incs/modules.inc.php';
}
$temp = intval(get_variable('auto_poll'));
$poll_cycle_time = $temp > 0 ? $temp * 1000 : 15000;
// seconds to ms - 8/20/10
$browser = trim(checkBrowser(FALSE));
// 6/12/10
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<HEAD>
<TITLE><?php
print ucwords(LessExtension(basename(__FILE__)));
?>
</TITLE>
<META NAME="Author" CONTENT="" />
<META NAME="Keywords" CONTENT="" />
<META NAME="Description" CONTENT="" />
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" />
<META HTTP-EQUIV="Expires" CONTENT="0" />
<META HTTP-EQUIV="Cache-Control" CONTENT="NO-CACHE" />
<META HTTP-EQUIV="Pragma" CONTENT="NO-CACHE" />
<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript" />
<LINK REL=StyleSheet HREF="stylesheet.php?version=<?php
print time();
?>
" TYPE="text/css">