add action in table_section_tabs
Posted: Mon Jul 07, 2008 7:41 am
is possible to add action on menu table_section!
[/img]
[/img]
Put a face on your database
http://xataface.com/forum/
function block__tables_menu_head(){
$app =& Dataface_Application::getInstance();
$query =& $app->getQuery();
$options = array(
array(
'label'=>'Home',
'url' => DATAFACE_SITE_HREF.'?-action=home',
'selected'=> ( ( @$query['-action'] == 'home' ) ? ' class="selected"':'')
),
array(
'label'=>'Forum',
'url' => DATAFACE_SITE_URL.'/forum/index.php',
'selected'=> ((@$query['-action'] == 'a_z_index' ) ? ' class="selected"':'')
),
array(
'label'=>'Documentation',
'url' => DATAFACE_SITE_URL.'/documentation',
'selected'=> (preg_match('/^\/documentation/', $_SERVER['REQUEST_URI']) ? ' class="selected"':'')
),
array(
'label'=>'Bug Tracker',
'url' => 'http://bugs.weblite.ca',
'selected'=> false
)
);
foreach ($options as $option){
echo '<li '.$option['selected'].'><a href="'.htmlspecialchars($option['url']).'"'.$option['selected'].'>'.htmlspecialchars($option['label']).'</a></li>';
}
return null;
}
function block__tables_menu_options(){
if ( isAdmin() ) return PEAR::raiseError('Admin doesnt override this', DATAFACE_E_REQUEST_NOT_HANDLED);
echo '';
}
function block__tables_menu_tail()
{
echo "<li><a href='http://inmilss007/GestPatologia/index.php?-action=reports'>Reports</a></li>";
}