Code Search for Developers
 
 
  

index.php from ECP (EliteCore Project) at Krugle


Show index.php syntax highlighted

<?php
global $Config;
$modules = array();
$num_published = 0;
$TA = new TA();
$TA->addQuery(TA::SELECT,"xcs_engine_modules");
$TA->WHERE("`base`='articles' AND `block`='none'");
$TA->Execute();
while ($object = $TA->Result()->FetchObject()) {
	$modules[] = $object;
}
foreach ($modules as $module) {
	$TA->removeQuery();
	if ($module->instance_name == "none") $module->instance_name=$module->base;
	$TA->addQuery(TA::SELECT,"xcs_module_".$module->instance_name);
	$TA->WHERE("`author`='".User::$profile->id."'");
	$TA->Execute();
	$num_published += $TA->Result()->NumRows();
}
$TA->End();
?>
<!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">
<head>
	<title><?=$XCS->getPageTitle() ?></title>
    <?=$XCS->includeMetaTags() ?>
	<?=$XCS->includeCSStyles() ?>
    <?=$XCS->includeJavascript() ?>
</head>

<body>
	<div id="pageholder">

		<div id="header">
			<div id="logo">
			<h1>HRAJE.se</h1>
			<span class="user"><?=User::$profile->name?> (<?=User::$profile->nick?>)</span>
			<span class="user_info">Publikoval <?=$num_published?> článků</span>
			<a href="index.php?logout=true" title="Odhlásit">Odhlásit se</a>
			</div>
		</div>
<div style="width: 25%; float: left;">
		<div id="left">
			<div id="main_navigation">
				<div id="menu_top"></div>
				<?=$XCS->printContent(1)?>
			</div>
			<div id="menu_end"></div>
		</div>
</div>
<div style="width: 75%; float: left;">
		<div id="content">
				<?=$XCS->printContent(2)?>
				<?=$XCS->printContent(18) ?>
		</div>
</div>
	</div>
</body>
</html>



See more files for this project here

ECP (EliteCore Project)

EliteCore Project is a PHP5.1/Javascript/AJAX/XHTML/CSS framework for creating WEB 2.0 applications and services.The basic open-source instalation can be also used as an interactive personal page or BLOG.This project uses the latest features available.

Project homepage: http://sourceforge.net/projects/elitecore
Programming language(s): JavaScript,PHP,XML
License: cpl

  images/
    background.png
    logo.jpg
    menu_active.jpg
    menu_end.jpg
    menu_module.jpg
    menu_slice.jpg
    menu_top.jpg
    top.jpg
  content.css
  index.php
  main.css
  main.xml