Location: PHPKode > projects > qEngine > module/page_gallery/window.php
<?php
// get param
$pid = mod_param ('page_id');
$title = mod_param ('title');
$summary = mod_param ('summary');
$body = mod_param ('body');
$link = mod_param ('link');

// get page
$row = sql_qquery ("SELECT * FROM ".$db_prefix."page WHERE page_id = '$pid' LIMIT 1");
if (empty ($row))
{
	$output = '<!-- invalid page_id -->';
}
else
{
	$output = '';
	if ($title) $output .= "<h1>$row[page_title]</h1>";
	if ($summary) $output .= "<div><i>$row[page_summary]</i></div>";
	if ($body) $output .= "<div>$row[page_body]</div>";
	if ($link) $output .= "<img src=\"skins/_common/images/arrow.gif\" alt=\"more\" /> <a href=\"page.php?pid=$row[page_id]\">More</a>";
}
?>
Return current item: qEngine