コード例 #1
0
ファイル: alice.php プロジェクト: tapuz/alice
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;
    }
}
コード例 #2
0
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');
}
コード例 #3
0
ファイル: track.php プロジェクト: bciv/COMS
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);
}
コード例 #4
0
ファイル: header.php プロジェクト: shaheeda622/vzapp
<?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;';
コード例 #5
0
ファイル: header.php プロジェクト: Kylemurray25/wmlmusicguide
		<!--[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>
コード例 #6
0
ファイル: functions.php プロジェクト: enoa7/petarung2
function charLimit()
{
    $pageName = curPageName();
    if ($pageName == 'berita.php') {
        $charLimit = 350;
        return $charLimit;
    } else {
        $charLimit = 100;
        return $charLimit;
    }
}
コード例 #7
0
ファイル: header-terms.php プロジェクト: shaheeda622/vzapp
<?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 ';
    }
    ?>
コード例 #8
0
ファイル: header.php プロジェクト: akelleher/taxi-app
    ?>
						<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>
コード例 #9
0
ファイル: footer2.php プロジェクト: nerfqxx/wowqxweb
						</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 
コード例 #10
0
ファイル: who-we-are.php プロジェクト: NaurozAhmad/Consilium
	<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>
コード例 #11
0
  
  
  
  </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>
コード例 #12
0
ファイル: header.php プロジェクト: asimriaz85/elaxy
<?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>
コード例 #13
0
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>";
                $pagination .= "..";
                for ($counter = $lastpage - (2 + $adjacents * 2); $counter <= $lastpage; $counter++) {
                    if ($counter == $pages) {
                        $pagination .= "<span class=\"current\">" . $counter . "</span>";
                    } else {
                        $pagination .= "<a href=\"{$targetpage}?{$url}&pages={$counter}\">" . $counter . "</a>";
                    }
                }
            }
        }
        //next button
        if ($pages < $counter - 1) {
            $pagination2 = "<a href=\"{$targetpage}?{$url}&pages={$next}\"> Next&nbsp;&raquo;</a>";
        } else {
            $pagination2 = "<span class=\"disabled\"> Next&nbsp;&raquo;</span>";
        }
        //next
        $pagination .= $pagination2;
        $pagination .= "</div>\n";
    }
    $P_ret_val .= "^" . $pagination;
    return $P_ret_val;
}
コード例 #14
0
	<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">
      
コード例 #15
0
ファイル: index.php プロジェクト: weltiberlin/VOLC2
#	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>
コード例 #16
0
				<li <?php 
if (curPageName() == 'manage_login_detail.php') {
    ?>
 class="sub_show" <?php 
}
?>
><a href="manage_login_detail.php">Change Password</a></li>
				<li <?php 
if (curPageName() == 'addcontact_info.php') {
    ?>
 class="sub_show" <?php 
}
?>
><a href="addcontact_info.php">Add/Update Contact Info</a></li>
				<li <?php 
if (curPageName() == 'addsocial_links.php') {
    ?>
 class="sub_show" <?php 
}
?>
><a href="addsocial_links.php">Add/Update Social Links</a></li>
			</ul>
		</div>
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>
		
	
		
コード例 #17
0
ファイル: header.php プロジェクト: Kylemurray25/wmlmusicguide
  class="select" <?php 
}
?>
><li><a href="#nogo"><b>Gallery</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
		<div class="select_sub show">
			<ul class="sub">
				<li <?php 
if (curPageName() == 'newgallery.php') {
    ?>
 class="sub_show" <?php 
}
?>
><a href="newgallery.php">New Gallery</a></li>
				<li <?php 
if (curPageName() == 'managegallery.php') {
    ?>
 class="sub_show" <?php 
}
?>
><a href="managegallery.php">Manage Gallery</a></li>
				
			</ul>
		</div>
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>
		
		<?php 
コード例 #18
0
  
  
  
  </head>

  <body>


    <div class="container-narrow">

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

      <hr>

      <div class="jumbotron">
        <h1>Online PHP Obfuscator</h1>
        
コード例 #19
0
    ?>
class="active"<?php 
}
?>
><a href="home.php">Home</a></li>
          <li <?php 
if (curPageName() == 'screens.php') {
    ?>
class="active"<?php 
}
?>
><a href="screens.php">Screens</a></li>
          <li <?php 
if (curPageName() == 'plugins.php') {
    ?>
class="active"<?php 
}
?>
><a href="plugins.php">Plugins</a></li>
          <li <?php 
if (curPageName() == 'analytics.php') {
    ?>
class="active"<?php 
}
?>
><a href="analytics.php">Analytics</a></li>
        </ul>
      </div><!--/.nav-collapse -->
    </div>
  </div>
</div>
コード例 #20
0
ファイル: paging.php プロジェクト: AamAadmiParty/emc3
<?php

$currentpage = curPageName();
$pagingid = isset($_SESSION['pagingid']) ? $_SESSION['pagingid'] : '';
$ss = $pagingid == '' ? '?' : '&';
$pagingid = $pagingid . $ss;
$currentpage = $currentpage . $pagingid;
if ($total_pages > 1) {
    ?>

<div id="paging" class="pagination pagination-centered" style="width:400px; float:left">
<ul>
               

                                                <?php 
    if ($total_pages != 0) {
    }
    $str = "";
    $diff = $total_pages - $page_per_set;
    if ($diff > 0) {
        $start = $page - floor($page_per_set / 2);
        if ($start <= 0) {
            $start = 1;
            $end = $start + $page_per_set - 1;
        } else {
            $start = $page - floor($page_per_set / 2);
            $end = $start + $page_per_set - 1;
            if ($end > $total_pages) {
                $end = $total_pages;
                $start = $end - $page_per_set + 1;
            }
コード例 #21
0
ファイル: header.php プロジェクト: emilymaskin/cheese
			<img src="images/cheeses/blue.jpg" alt="" />
			<img src="images/cheeses/curd.jpg" alt="" />
			<img src="images/cheeses/goat.jpg" alt="" />
			<img src="images/cheeses/parmesan.jpg" alt="" />
			<img src="images/cheeses/feta.jpg" alt="" />
			<img src="images/cheeses/swiss.jpg" alt="" />
			<div style="clear:both"></div>
		</div>
		<div class="content">
			<div class="left_rail">
				<img class="logo" src="images/logo.png" alt="NYC Cheese of the Month Club">
				<ul class="nav">
					<li><a <?php 
echo curPageName() == 'index.php' ? 'class="current"' : 'href="index.php"';
?>
">Home</a></li>
					<li><a <?php 
echo curPageName() == 'faq.php' ? 'class="current"' : 'href="faq.php"';
?>
">FAQ</a></li>
					<li><a <?php 
echo curPageName() == 'signup.php' ? 'class="current"' : 'class="last" href="signup.php"';
?>
>Sign Up</a></li>
					<li><a <?php 
echo curPageName() == 'contact.php' ? 'class="current last"' : 'class="last" href="contact.php"';
?>
>Contact</a></li>
				</ul>
			</div>
			<div class="description">
コード例 #22
0
ファイル: header.php プロジェクト: Kylemurray25/wmlmusicguide
  class="select" <?php 
}
?>
><li><a href="#nogo"><b>Post</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
		<div class="select_sub show">
			<ul class="sub">
				<li <?php 
if (curPageName() == 'post_form.php') {
    ?>
 class="sub_show" <?php 
}
?>
><a href="post_form.php">New Post</a></li>
				<li <?php 
if (curPageName() == 'post.php') {
    ?>
 class="sub_show" <?php 
}
?>
><a href="post.php">Manage Post</a></li>
				
			</ul>
		</div>
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>
		<div class="clear"></div>
		</div>
		<div class="clear"></div>
		</div>
コード例 #23
0
ファイル: header.php プロジェクト: Kylemurray25/wmlmusicguide
		<!-- start nav-right -->
		<div id="nav-right">
		
			<div class="nav-divider">&nbsp;</div>
			<a href="logincontroller.php?act=logout" id="logout"><img src="images/shared/nav/nav_logout.gif" width="64" height="14" alt="" /></a>
			<div class="clear">&nbsp;</div>
		
		</div>
		<!-- end nav-right -->


		<!--  start nav -->
		<div class="nav">
			<div class="table">		
				<ul<?php 
if (curPageName() == 'home.php') {
    ?>
 class="current" <?php 
} else {
    ?>
  class="select" <?php 
}
?>
>
					<li><a href="home.php"><b>Home</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>
				<?php 
コード例 #24
0
ファイル: constants2.php プロジェクト: AamAadmiParty/emc3
<?php

$action = get('action');
$action1 = get('action1');
$page = get('page');
$pagename = curPageName();
$pageurl = CurPageQS();
$date = date("Y-m-d H:i:s");
$date2 = date("Y-m-d");
$thisyear = date("Y");
$page_per_set = 6;
$getconnected = array("", "Yes", "Wrong Number", "Call Later", "Not Reached");
$vote4aap = array("No", "Yes", "Undecided");
$mstatus = array("No", "Yes", "Block");
コード例 #25
0
ファイル: antibot.php プロジェクト: kozzmen/antibot
/**
 * Block access
 */
function blocked($get_msg, $langcode, $lang_output, $actionname)
{
    $data = array('lang_output' => $lang_output, 'curPageName' => curPageName(), 'actionname' => $actionname, 'query_string' => $_SERVER['QUERY_STRING']);
    $content = replace_vars($get_msg[$langcode], $data);
    header("HTTP/1.0 404 Not Found");
    die(_get_header() . $content . _get_footer());
}
コード例 #26
0
<?php

require_once "../../includes/functions.php";
$curPage = curPageName();
?>
View : <select name="rec_view" onChange="location.href=this.value">
			<option value="view_profile.php?rec_id=<?php 
echo $_GET['rec_id'];
?>
" <?php 
if ($curPage == 'view_profile.php') {
    echo 'selected';
}
?>
>Recruiter/Employer Profile</option>
			<option value="posted_jobs.php?rec_id=<?php 
echo $_GET['rec_id'];
?>
" <?php 
if ($curPage == 'posted_jobs.php') {
    echo 'selected';
}
?>
>Posted Jobs</option>
			<option value="bookmark_jobseekers.php?rec_id=<?php 
echo $_GET['rec_id'];
?>
" <?php 
if ($curPage == 'bookmark_jobseekers.php') {
    echo 'selected';
}
コード例 #27
0
            } else {
                header("location: login.php");
                exit;
            }
        }
    } else {
        //TUTTE LE PAGINE RAGGIUNGIBILI DA NON SESSSATO
        if (curPageName() == 'login.php' || curPageName() == 'register.php' || curPageName() == 'index.php') {
        } else {
            header("location: login.php");
            exit;
        }
    }
} else {
    //TUTTE LE PAGINE NON RAGGIUNGIBILI DA SESSSATO
    if (curPageName() == 'login.php' || curPageName() == 'register.php') {
        header("location: account.php");
        exit;
    }
}
function activate()
{
    $codice = $_REQUEST['codice'];
    $id = $_REQUEST['id'];
    if (!isset($codice) || !isset($id)) {
        header("location: login.php?fx=error&value=NoUser");
        exit;
    } else {
        $QUERY = executeQuery("select * from utenti where CODICE_CONFERMA='{$codice}' and ID={$id}");
        if ($QUERY) {
            $QUERY = executeQuery("update utenti SET ACCETTATO = '1' WHERE ID = {$id};");