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


PHP curPageName函数代码示例

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


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

示例1: loadJS

function loadJS($file, $com = null)
{
    if ($com == null) {
        $path = $config['root'] . 'assets/js/' . $file;
    } else {
        // component is specified.. load JS file from the component/js folder
        $path = $config['root'] . 'components/com_' . $com . '/js/' . $file;
    }
    if (curPageName() == 'ajax.php') {
        echo "";
    } else {
        $xml = sprintf("<script src='%s'></script>", $path);
        echo $xml;
    }
}
开发者ID:tapuz,项目名称:alice,代码行数:15,代码来源:alice.php

示例2: layout

function layout($filename, $arr = null)
{
    #	echo get_include_contents('tpl/left.php')
    echo get_include_contents('tpl/header.php');
    if (curPageName() == 'index.php') {
        echo get_include_contents('tpl/index.php');
    } else {
        if (curPageName() == 'home.php') {
            echo get_include_contents('tpl/home.php');
        }
        if (curPageName() == 'addpicture.php') {
            echo get_include_contents('tpl/addpicture.php');
        }
        if (curPageName() == 'addpicture1.php') {
            echo get_include_contents('tpl/addpicture1.php');
        }
        if (curPageName() == 'adduser.php') {
            echo get_include_contents('tpl/adduser.php');
        }
        if (curPageName() == 'viewusers.php') {
            echo get_include_contents('tpl/viewusers.php');
        }
        if (curPageName() == 'newgallery.php') {
            echo get_include_contents('tpl/newgallery.php');
        }
        if (curPageName() == 'managegallery.php') {
            echo get_include_contents('tpl/managegallery.php');
        }
        if (curPageName() == 'users_account.php') {
            echo get_include_contents('tpl/users_account.php');
        }
        if (curPageName() == 'manage_login_detail.php') {
            echo get_include_contents('tpl/manage_login_detail.php');
        }
        if (curPageName() == 'addcontact_info.php') {
            echo get_include_contents('tpl/addcontact_info.php');
        }
        if (curPageName() == 'addsocial_links.php') {
            echo get_include_contents('tpl/addsocial_links.php');
        }
        if (curPageName() == 'users_account_update.php') {
            echo get_include_contents('tpl/users_account_update.php');
        }
    }
    echo get_include_contents('tpl/footer.php');
}
开发者ID:Kylemurray25,项目名称:wmlmusicguide,代码行数:46,代码来源:functions.php

示例3: PostSession

function PostSession($sessionid, $ruser, $AccessCode, $point, $pointno)
{
    include "dbitcon.php";
    //Set Variables
    $chkTrack = "";
    $ip_vistor = $_SERVER['REMOTE_ADDR'];
    $_SESSION['ip_vistor'] = $ip_vistor;
    $compname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
    $_SESSION['compname'] = $compname;
    $page = curPageName();
    $_SESSION['page'] = $page;
    $url = !empty($_SERVER['HTTPS']) ? "https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] : "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
    $_SESSION['url'] = $url;
    $time = date("g:i:s a");
    $date2 = date("F j, Y");
    //Write Session Variables
    $dname = $_SESSION['dname'];
    $role = $_SESSION['role'];
    $rid = $_SESSION['rid'];
    $sitelist = $_SESSION['sitelist'];
    $Email = $_SESSION['Email'];
    $domain = $_SESSION['domain'];
    $sessionStatus = $_SESSION['sessionStatus'];
    $TemplateAuthoring = $_SESSION['TemplateAuthoring'];
    $Role_ID = $_SESSION['Role_ID'];
    $ip = $_SERVER['REMOTE_ADDR'];
    $ruser = $_SESSION['ruser'];
    $NWLoginR = $_SESSION['NWLoginR'];
    $COMSLogin = $_SESSION['COMSLogin'];
    $mdws = $_SESSION['mdws'];
    //$AC = $_SESSION['AC'];
    //$VC = $_SESSION['VC'];
    $chkTrack = $_SESSION['chkTrack'];
    //Insert into SQL
    $tsql2 = "INSERT INTO COMS_Sessions (sessionid,compname,ref,username,winauth,point,pointno,time,date2,page,text,chkTrack,dname,role,rid,sitelist,Email,domain,sessionStatus,TemplateAuthoring,Role_ID,ip_vistor,ip,ruser,NWLoginR,COMSLogin,mdws) VALUES\n           ('{$sessionid}','{$compname}','{$url}','{$AccessCode}','{$ruser}','{$point}','{$pointno}','{$time}','{$date2}','{$page}','test','{$chkTrack}','{$dname}','{$role}','{$rid}','{$sitelist}','{$Email}','{$domain}','{$sessionStatus}','{$TemplateAuthoring}','{$Role_ID}','{$ip_vistor}','{$ip}','{$ruser}','{$NWLoginR}','{$COMSLogin}','{$mdws}')";
    //$postsession = sqlsrv_query($conn, $tsql2);
}
开发者ID:bciv,项目名称:COMS,代码行数:37,代码来源:track.php

示例4: curPageName

<?php

$myPageNameAp = curPageName();
$findmeAp = 'cation';
$posAp = strpos($myPageNameAp, $findmeAp);
?>
<div<?php 
echo $embed ? ' id="main_content"' : ' class="container"';
?>
style="  height:1450px !important;   ">
<?php 
if (!$embed) {
    ?>
	<div class="row" style="height:15px;"></div>
<div class="row app_header"
  style="width:102% !important;   height:70px !important; ">
  <div class="col-xs-12 col-sm-4 logo"><img src="<?php 
    echo url();
    ?>
/licappres/assets/images/logo.jpg" width="405" alt="logo" /></div>
  <div class="visible-xs hidden-sm hidden-md hidden-lg">&nbsp;</div>

  <div class="col-xs-12 col-sm-8 app_name" >
      <div class="col-xs-11 col-sm-11 trd_license"
      style="font-size:24px; font-weight:bold; background:#dcd7d2 !important;">

      <?php 
    $back_color = 'background: #fdcf08;';
    if ($page == 4) {
        echo 'DECLARATION';
        $back_color = 'background: #2E3192;';
开发者ID:shaheeda622,项目名称:vzapp,代码行数:31,代码来源:header.php

示例5: curPageName

		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>		
		<div class="nav-divider">&nbsp;</div>
		<ul <?php 
    echo curPageName() == 'about_wml.php' ? 'class="current"' : 'class="select"';
    ?>
><li><a href="about_wml.php"><b>About WML</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
		
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>		
		<div class="nav-divider">&nbsp;</div>
		<ul <?php 
    echo curPageName() == 'directory_page.php' ? 'class="current"' : 'class="select"';
    ?>
><li><a href="directory_page.php"><b>Directory</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
		
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>		
		<div class="nav-divider">&nbsp;</div>
		<ul class="select" ><li><a href="m"><b>Mobile</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
		
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>		
		<div class="nav-divider">&nbsp;</div>
开发者ID:Kylemurray25,项目名称:wmlmusicguide,代码行数:31,代码来源:header.php

示例6: charLimit

function charLimit()
{
    $pageName = curPageName();
    if ($pageName == 'berita.php') {
        $charLimit = 350;
        return $charLimit;
    } else {
        $charLimit = 100;
        return $charLimit;
    }
}
开发者ID:enoa7,项目名称:petarung2,代码行数:11,代码来源:functions.php

示例7: curPageName

<?php

function curPageName()
{
    return substr($_SERVER["SCRIPT_NAME"], strrpos($_SERVER["SCRIPT_NAME"], "/") + 1);
}
$myPageName = curPageName();
$findme = 'price';
$pos = strpos($myPageName, $findme);
?>
<div<?php 
echo $embed ? ' id="main_content"' : ' class="container"';
?>
style="  height:1426px !important; margin-top:0px !important;">
<?php 
if (!$embed) {
    ?>
<div class="row app_header"
  style="width:102% !important;   height:70px !important; ">
  <div class="col-xs-12 col-sm-4 logo"><img src="images/logo.jpg" width="405" alt="logo" /></div>
  <div class="visible-xs hidden-sm hidden-md hidden-lg">&nbsp;</div>
  <div class="col-xs-12 col-sm-8 app_name" >
      <div class="col-xs-11 col-sm-11 trd_license"
      style="font-size:32px; background:#dcd7d2 !important;">
      <?php 
    if ($pos) {
        echo 'PRICE LIST';
    } else {
        echo 'TERMS & CONDITIONS ';
    }
    ?>
开发者ID:shaheeda622,项目名称:vzapp,代码行数:31,代码来源:header-terms.php

示例8:

    ?>
						<li><a href="Driver.php" <?php 
    if (curPageName() === 'Driver.php') {
        ?>
class="current" <?php 
    }
    ?>
>Driver</a></li>
			<?php 
}
?>
			<?php 
if ($_SESSION['user']->getIsDispatcher()) {
    ?>
						<li><a href="Dispatcher.php" <?php 
    if (curPageName() === 'Dispatcher.php') {
        ?>
 class="current" <?php 
    }
    ?>
>Dispatcher</a></li>
			<?php 
}
?>




		</ul>
	</nav>
</header>
开发者ID:akelleher,项目名称:taxi-app,代码行数:31,代码来源:header.php

示例9: curPageName

						</script>
					</div>
				</div>
			</div>
			<span class="clear">
			<!-- -->
			</span>
		</div>
		<div id="copyright">
			<?php 
function curPageName()
{
    return substr($_SERVER["SCRIPT_NAME"], strrpos($_SERVER["SCRIPT_NAME"], "/") + 1);
}
echo '<a tabindex="100" id="change-language" ';
if (strtoupper(curPageName()) != 'ADVANCED.PHP' && strtoupper(curPageName()) != 'THREED.PHP') {
    echo ' href="javascript:;"';
}
echo '>';
?>
			<span><?php 
echo TITLE . $Wow3['Wow3'];
?>
</span>
			</a>
			<span class="clear">
			<!-- -->
			</span>
			<div id="international" style=": block; ">
				<div class="column">
					<h3 style="padding-left:12px;"><?php 
开发者ID:nerfqxx,项目名称:wowqxweb,代码行数:31,代码来源:footer2.php

示例10: curPageName

	<link rel="stylesheet" href="./assets/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="./assets/css/custom.min.css">

</head>
<body class="wwa-body">
	<?php 
require_once 'includes/header.html';
?>
	<div class="c-container">
		<?php 
require_once 'includes/curPageScript.php';
if (isset($_SESSION['username']) && $_SESSION['access'] === "admin") {
    ?>
			<div id="edit-page" class="pull-right">
				<a href="redirect-to.php?redirect-to=<?php 
    echo curPageName();
    ?>
">Edit Page</a> | <a href="admin/index.php">Admin Panel</a>
			</div>
			
			<?php 
}
?>
		<div class="banner">
			<div class="main-image-overlay">
				<div class="banner-word">"Helping people learn the lessons of Leadership can create a more connected, integrated and prosperous world."</div>
			</div>
		</div>
		<div class="container">
			<div class="heading-container">
		      <h2>Who We Are</h2>
开发者ID:NaurozAhmad,项目名称:Consilium,代码行数:31,代码来源:who-we-are.php

示例11:

  
  
  
  </head>

  <body>


    <div class="container-narrow">

	  
      <div class="masthead">
        <ul class="nav nav-pills pull-right">
          <li ><a href="index.php">Home</a></li>
          <li <?php 
if (curPageName() == 'contact.php') {
    echo 'class="active"';
}
?>
 ><a href="contact.php">Contact</a></li>
        </ul>
        <h3 class="muted">PHP Obfuscator</h3>
      </div>
      

      <hr>
      
      <script src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.pack.js" type="text/javascript"></script>

      <div class="jumbotron">
        <h3>Contact Form</h3>
开发者ID:ASDAFF,项目名称:online-php-obfuscator,代码行数:28,代码来源:contact.php

示例12: error_reporting

<?php

error_reporting(0);
include "include/session.php";
$admin_name = $_SESSION['username'];
if (!isset($_SESSION['username'])) {
    header("location:index.php?error=Please Login");
}
function curPageName()
{
    return substr($_SERVER["SCRIPT_NAME"], strrpos($_SERVER["SCRIPT_NAME"], "/") + 1);
}
$page_name = curPageName();
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title>Elaxy | backend admin user interface</title>
	<link href="style.css" rel="stylesheet" media="all" />
	<link href="" rel="stylesheet" title="style" media="all" />
	<!--<script type="text/javascript" src="js/jquery-1.3.2.js"></script>-->
    <!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>-->
    <script src="js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="js/superfish.js"></script>
	<script type="text/javascript" src="js/jquery-ui-1.7.2.js"></script>
	<script type="text/javascript" src="js/tooltip.js"></script>
	<script type="text/javascript" src="js/tablesorter.js"></script>
开发者ID:asimriaz85,项目名称:elaxy,代码行数:31,代码来源:header.php

示例13: Pagingurl

function Pagingurl($Ptable, $Pquery, $Psql, $PLimit, $url)
{
    //echo $Ptable,"<br>", $Pquery,"<br>", $PLimit,"<br>";
    $tbl_name = $Ptable;
    //your table name
    // How many adjacent pages should be shown on each side?
    $adjacents = 2;
    /* 
       First get total number of rows in data table. 
       If you have a WHERE clause in your query, make sure you mirror it here.
    */
    $query = $Pquery;
    $total_pages = mysql_fetch_array(mysql_query($query));
    $total_pages = $total_pages[num];
    /* Setup vars for query. */
    $targetpage = curPageName();
    //your file name  (the name of this file)
    $limit = $PLimit;
    //how many items to show per page
    $pages = $_GET['pages'];
    if ($pages) {
        $start = ($pages - 1) * $limit;
    } else {
        $start = 0;
    }
    //if no page var is given, set start to 0
    /* Get data. */
    $sql = $Psql;
    $sql .= " LIMIT {$start}, {$limit}";
    //echo $sql;
    $Presult = $sql;
    $P_ret_val = $Presult;
    /* Setup page vars for display. */
    if ($pages == 0) {
        $pagess = 1;
    }
    //if no pages var is given, default to 1.
    $prev = $pages - 1;
    //previous pages is pages - 1
    $next = $pages + 1;
    //next pages is pages + 1
    $lastpage = ceil($total_pages / $limit);
    //lastpage is = total pages / items per page, rounded up.
    $lpm1 = $lastpage - 1;
    //last page minus 1
    /* 
    	Now we apply our rules and draw the pagination object. 
    	We're actually saving the code to a variable in case we want to draw it more than once.
    */
    $pagination = "";
    $pagination2 = "";
    if ($lastpage > 1) {
        $pagination .= "<div class=\"pagination\">";
        //previous button
        if ($pages > 1) {
            $pagination2 .= "<a href=\"{$targetpage}?{$url}&pages={$prev}\">&laquo;&nbsp;Prev </a>";
        } else {
            $pagination2 .= "<span class=\"disabled\">&laquo;&nbsp;Prev </span>";
        }
        //previous
        //pages
        $pagination .= $pagination2;
        if ($lastpage < 5 + $adjacents * 2) {
            for ($counter = 1; $counter <= $lastpage; $counter++) {
                if ($counter == $pages) {
                    $pagination .= "<span class=\"current\">" . $counter . " </span>";
                } else {
                    $pagination .= "<a href=\"{$targetpage}?{$url}&pages={$counter}\">" . $counter . " </a>";
                }
            }
        } elseif ($lastpage > 5 + $adjacents * 2) {
            //close to beginning; only hide later pages
            if ($pages < 1 + $adjacents * 2) {
                for ($counter = 1; $counter < 3 + $adjacents * 2; $counter++) {
                    if ($counter == $pages) {
                        $pagination .= "<span class=\"current\">" . $counter . "</span>";
                    } else {
                        $pagination .= "<a href=\"{$targetpage}?{$url}&pages={$counter}\">" . $counter . "</a>";
                    }
                }
                $pagination .= "..";
                //$pagination.= "<a href=\"$targetpage?$url&pages=$lpm1\">".BanglaNum($lpm1).",</a>";
                //$pagination.= "<a href=\"$targetpage?$url&pages=$lastpage\">".BanglaNum($lastpage).",</a>";
            } elseif ($lastpage - $adjacents * 2 > $pages && $pages > $adjacents * 2) {
                //$pagination.= "<a href=\"$targetpage?$url&pages=1\">".BanglaNum(1).",</a>";
                //$pagination.= "<a href=\"$targetpage?$url&pages=2\">".BanglaNum(2).",</a>";
                $pagination .= "..";
                for ($counter = $pages - $adjacents; $counter <= $pages + $adjacents; $counter++) {
                    if ($counter == $pages) {
                        $pagination .= "<span class=\"current\">" . $counter . "</span>";
                    } else {
                        $pagination .= "<a href=\"{$targetpage}?{$url}&pages={$counter}\">" . $counter . "</a>";
                    }
                }
                $pagination .= "..";
                //$pagination.= "<a href=\"$targetpage?$url&pages=$lpm1\">".BanglaNum($lpm1).",</a>";
                //$pagination.= "<a href=\"$targetpage?$url&pages=$lastpage\">".BanglaNum($lastpage).",</a>";
            } else {
                //$pagination.= "<a href=\"$targetpage?$url&pages=1\">".BanglaNum(1).",</a>";
                //$pagination.= "<a href=\"$targetpage?$url&pages=2\">".BanglaNum(2).",</a>";
//.........这里部分代码省略.........
开发者ID:ShashangkaShekhar,项目名称:MCQ-Systems-PHP,代码行数:101,代码来源:functions.php

示例14: htmlentities

	<link type="text/css" href="site-ie.css" rel="stylesheet" title="Style Sheet"/>
	<![endif]-->

    
    <link type="text/css" href="/custom/site.css" rel="stylesheet" title="Style Sheet"/> <!-- project custom -->
    <style type="text/css"><?php 
echo htmlentities(getMessage("header.custom.css"));
?>
 </style>


<?php 
undercon();
echoHeaderContent("keywords", curPageName());
echoHeaderContent("description", curPageName());
echoHeaderContent("verify-v1", curPageName());
?>
    
    <link rel="SHORTCUT ICON" href="favicon.ico"/>

    <META NAME="AUTHOR" CONTENT="Richard G. Riley"/>
      <meta name="copyright" content="Copyright Richard G. Riley 2009" />


    
  </head>
  
  <body  id="body">

    <div id="wcbg">
      
开发者ID:le1boy,项目名称:deepin-emacs,代码行数:30,代码来源:rr-090923-header.php

示例15: count

#	print $c.": ".$volcano_name[$c]."<br/>\n";
#}
# 2012/04/23 Removed by GT
#print "<a href=\"$public_site\"><img id=\"logo\" src=\"$logo_src\" alt=\"$logo_alt\"/></a>\n";
#print "<img id=\"req2Logo\" src=\"$banner_src\" alt=\"$banner_alt\"/>\n";
$previndex = $vindex - 1;
if ($previndex < 0) {
    $previndex = count($volcano_name) - 1;
}
$prevvolcano = $volcano_name[$previndex];
$nextindex = $vindex + 1;
if ($nextindex >= count($volcano_name)) {
    $nextindex = 0;
}
$nextvolcano = $volcano_name[$nextindex];
$thisPage = curPageName();
if ($volcano == "All") {
    print "All volcanoes\n";
} else {
    print "{$volcano}\n";
}
#print "<a href=\"https://docs.google.com/a/alaska.edu/document/d/1j-cg2ykDBHgpYk-QXXW0Az9QwR6alEOraJtETZNUjzE/edit\" target=\"_new\">Issues/Comments</a><br/>\n";
?>
		</div>
		<div class = "clear"></div>
		<div id = "time">File updated: <span></span></div>

	
		<hr/>
		<div id = "leftCol"> 
			<div id="map"><noscript><p>This application runs on the Google Map API and must have Javascript enabled in order to run. It appears that your have disabled your Javascript or you are using a very outdated browser. To enable Javascript, click on your browser options and select "Enable JavaScript."</p></noscript></div>
开发者ID:weltiberlin,项目名称:VOLC2,代码行数:31,代码来源:index.php


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