$image['reports']['path'] = 'pix/report.png';
$image['reports']['width'] = 218;
$image['reports']['height'] = 200;
+$image['help']['path'] = 'pix/help.png';
+$image['help']['width'] = 218;
+$image['help']['height'] = 200;
$image['reserve']['path'] = 'pix/stop.png';
$image['reserve']['width'] = 16;
$image['reserve']['height'] = 16;
<h1><a href='<? echo $root; ?>?page=reports'>Reports<br>
<? printImageHREF ('reports'); ?></a></h1>
</td>
+ <td>
+ <h1><a href='<? echo $root; ?>?page=help'>Help<br>
+ <? printImageHREF ('help'); ?></a></h1>
+ </td>
</tr>
</table>
</div>
}
}
+function renderHelpContents ()
+{
+ echo 'Hello there. All existing help snippets scattered across other tabs are going to be gathered here. Soon.';
+}
+
?>
$page['reports']['parent'] = 'index';
$tab['reports']['default'] = 'View';
+$page['help']['title'] = 'static_title';
+$page['help']['handler'] = 'handler_help';
+$page['help']['parent'] = 'index';
+$tab['help']['default'] = 'Contents';
+
// This function returns array if page numbers leading to the target page
// plus page number of target page itself. The first element is the target
// page number and the last element is the index page number.
}
}
+function handler_help ($tabno)
+{
+ switch ($tabno)
+ {
+ case 'default':
+ renderHelpContents();
+ break;
+ default:
+ showError ("Invalid tab '${tabno}' requested in handler_help().");
+ }
+}
+
?>
case 'reports':
$ret['name'] = 'Reports';
break;
+ case 'help':
+ $ret['name'] = 'Help';
+ break;
default:
$ret['name'] = 'UNKNOWN';
break;