PageName() public static method

public static PageName ( $strReference = null )
Ejemplo n.º 1
0
		<title>QCubed PHP 5 Development Framework - View Source</title>
		<link rel="stylesheet" type="text/css" href="<?php 
_p(__VIRTUAL_DIRECTORY__ . __CSS_ASSETS__ . '/styles.css');
?>
"></link>
		<link rel="stylesheet" type="text/css" href="<?php 
_p(__VIRTUAL_DIRECTORY__ . __EXAMPLES__ . '/includes/examples.css');
?>
"></link>
	</head>
	<body>
		<div id="page">
			<div id="header">
				<div id="headerLeft">
					<div id="pageName"><?php 
_p(Examples::PageName($strReference));
?>
 - View Source</div>
					<div id="pageLinks"><span class="headerSmall"><?php 
_p(Examples::CodeLinks($strReference, $strScript), false);
?>
</span></div>
				</div>
				<div id="headerRight">
					<div id="closeWindow"><a href="javascript:window.close()">Close Window</a></div>
				</div>
			<div>
			<div id="content">
<?php 
// Filename Cleanup
if ($strScript == 'header.inc.php' || $strScript == 'footer.inc.php' || $strScript == 'examples.css') {
		<link rel="stylesheet" type="text/css" href="<?php _p(__VIRTUAL_DIRECTORY__ . __CSS_ASSETS__ . '/styles.css'); ?>"></link>
		<link rel="stylesheet" type="text/css" href="<?php _p(__VIRTUAL_DIRECTORY__ . __EXAMPLES__ . '/includes/examples.css'); ?>"></link>
		<script type="text/javascript">
			function ViewSource(intCategoryId, intExampleId) {
				var objWindow = window.open("../view_source.php/" + intCategoryId + "/" + intExampleId, "ViewSource", "menubar=no,toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,width=1000,height=750,left=50,top=50");
				objWindow.focus();
			}
		</script>
	</head>
	<body> 

	<table border="0" cellspacing="0" width="100%">
		<tr>
			<td class="headingLeft"><span class="headingLeftSmall">
				<?php _p((Examples::GetCategoryId() + 1) . '. ' . Examples::$Categories[Examples::GetCategoryId()]['name'], false); ?><br/>
			</span>
				<?php _p(Examples::PageName(), false); ?><br/>
			<span class="headingLeftSmall">
				<?php _p(Examples::PageLinks(), false); ?>
			</span>
			</td>
			<td class="headingRight"><br/>
				<b><a href="javascript:ViewSource(<?php _p(Examples::GetCategoryId() . ',' . Examples::GetExampleId()); ?>);" class="headingLink">View Source</a></b>
<!--				<a href="#" onclick="window.open('http://localhost/validator/htdocs/check?uri=<?php _p(urlencode('http://qcodo/' . QApplication::$RequestUri)); ?>'); return false;" style="color: #ffffff;">Validate</a>-->
				<br/>
				<span class="headingLeftSmall">will open in a new window</span>
			</td>
		</tr>
	</table>
	
	<div class="page">
Ejemplo n.º 3
0
	</head>
	<body>
		<header>
			<div class="breadcrumb">
<?php 
if (!isset($mainPage)) {
    ?>
				<span class="category-name"><?php 
    _p(Examples::GetCategoryId() + 1 . '. ' . Examples::$Categories[Examples::GetCategoryId()]['name'], false);
    ?>
</span> / 
<?php 
}
?>
				<strong class="page-name"><?php 
_p(Examples::PageName(), false);
?>
</strong>
			</div>
			
<?php 
if (!isset($mainPage)) {
    ?>
			<nav class="page-links"><?php 
    _p(Examples::PageLinks(), false);
    ?>
</nav>
<?php 
}
?>
			
	$strReference = Examples::GetExampleScriptPath($intCategoryId, $intExampleId);
	$strName = Examples::GetExampleName($intCategoryId, $intExampleId);
	if (!$strScript)
		QApplication::Redirect(QApplication::$RequestUri . substr($strReference, strrpos($strReference, '/')));
?>
<html>
	<head>
		<title>Qcodo Development Framework - View Source | Staff Console</title>
		<link rel="stylesheet" type="text/css" href="<?php _p(__VIRTUAL_DIRECTORY__ . __EXAMPLES__ . '/includes/examples.css'); ?>"></link>
	</head>
	<body> 

	<table border="0" cellspacing="0" width="100%">
		<tr>
			<td nowrap="nowrap" class="headingLeft">
				<?php _p(Examples::PageName($strReference)); ?> - View Source<br/>
			<span class="headingLeftSmall">
				<?php _p(Examples::CodeLinks($strReference, $strScript), false); ?>
			</span>
			</td>
			<td nowrap="nowrap" class="headingRight"><br/>
				<b><a href="javascript:window.close()" class="headingLink">Close Window</a></b>
			</td>
		</tr>
	</table>

	<div class="page">
<?php
	// Filename Cleanup
	if (($strScript == 'header.inc.php') || ($strScript == 'footer.inc.php') || ($strScript == 'examples.css'))
		$strFilename = 'includes/' . $strScript;