ID is blk.
Text Formatted Code
if (empty($_GET['blk'])){
return '';
} else {
$retval .= '<div class="centerblock">';
//$retval .= '<p>This is a static page centerblock set to display on the';
// $retval .= ' homepage only. Using a bit of PHP, it should only be';
// $retval .= ' viewable when the appropriate link is clicked. This';
//$retval .= ' block is designated ';
if ($_GET['blk'] == 'st1'){
//you can call other blocks here or just different code--whatever.
$retval .= '<strong>BLOCK #1</strong>.';
} elseif ($_GET['blk'] == 'st2'){
//you can call other blocks here or just different code--whatever.
$retval .= '<strong>BLOCK #2</strong>.';
} elseif ($_GET['blk'] == 'st3') {
//you can call other blocks here or just different code--whatever.
$retval .= '<strong>BLOCK #3</strong>.';
} elseif ($_GET['blk'] == 'st4') {
//you can call other blocks here or just different code--whatever.
include ($_CONF['site_url'].'/teetime.php');
}
//$retval .= ' Click the other block links to see the block change.</p>';
$retval .= '</div>';
$retval .= '<table class="block-divider" align="center" cellpadding="0" cellspacing="0" width="100%"><tr><td</td></tr></table>';
return $retval;
}
Text Formatted Code
function phpblock_rapp_test2() {
global $_CONF, $_TABLES, $_USER, $LANG01;
$retval = '';
$retval .= '<a href="'.$_CONF['site_url'].'/index.php?blk=st1">Mather Mon.</a>';
$retval .= '<a href="'.$_CONF['site_url'].'/index.php?blk=st2">Landpark Tues.</a>';
$retval .= '<a href="'.$_CONF['site_url'].'/index.php?blk=st3">Landpark Wednesday.</a>';
$retval .= '<a href="'.$_CONF['site_url'].'/index.php?blk=st4">TEST</a>';
return $retval;
}
I'm setting up something to display tee times, sorry if my labels suck as decriptions.
Text Formatted Code
<?php
// This is teetime.php
print "CUSTOM INCLUDED PAGE"
?>