Exemplo n.º 1
0
"></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') {
    $strFilename = 'includes/' . $strScript;
} else {
    if ($strScript == 'mysql_innodb.sql' || $strScript == 'sql_server.sql') {
        $strFilename = $strScript;
Exemplo n.º 2
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 rel="stylesheet" type="text/css" href="<?php 
_p(__VIRTUAL_DIRECTORY__ . __EXAMPLES__ . '/includes/examples.css');
?>
" />
	</head>
	<body>
		<div id="closeWindow"><a href="javascript:window.close()" class="close-window">Close this Window</a></div>
		<header><nav class="page-links"><span class="headerSmall"><?php 
_p(Examples::CodeLinks($strCategoryId, $strExampleId, $strSubId, $strScript), false);
?>
</nav></header>
		<section id="content">
<?php 
// Filename Cleanup
if ($strScript == 'header.inc.php' || $strScript == 'footer.inc.php' || $strScript == 'examples.css') {
    $strFilename = 'includes/' . $strScript;
} else {
    if ($strScript == 'mysql_innodb.sql' || $strScript == 'sql_server.sql') {
        $strFilename = $strScript;
    } else {
        if (substr($strScript, 0, 16) == '__CORE_CONTROL__') {
            $strFilename = __QCUBED__ . '/controls/' . str_replace('__CORE_CONTROL__', '', str_replace('/', '', $strScript));
        } else {
            if (substr($strScript, 0, 18) == '__CORE_FRAMEWORK__') {