📄 help-box.php3
字号:
<?php// Simon's Rock Web Calendar// Copyright (C) 1999-2000 Ryan Krebs and Simon's Rock College of Bard// Please read the accompanying files "COPYING" and "COPYRIGHT"// for more informationif( !isSet( $HELP_BOX_INCLUDED ) ) { $HELP_BOX_INCLUDED = 1; include( 'box.php3' ); class SRCHelpBox extends SRCBox { var $login_required, $action_url, $session_var, $uses_headers, $error, $during; function SRCHelpBox( $new_action_url = "", $new_session_var = "", $new_login_req = 0 ) { $this->action_url = $new_action_url; $this->login_required = $new_login_req; $this->session_var = $new_session_var; $this->uses_headers = 0; $this->error = ""; }// The form action may place the action variable in the url, or it could// be placed in a hidden input. Things like searches should use the url// so they can be bookmarked function outputBox() {?><A HREF="<?php echo $this->action_url ?>"><BIG>Help</BIG></A><?php }// This will probably be used on the right side of the page function outputResults() { global $boxes, $topic; $this->outputContents(); if( isSet( $boxes[$topic] ) ) $boxes[$topic]->outputHelp(); else $this->outputHelp(); } function outputHelp() {?><P>Welcome to the <?php echo $GLOBALS["config_shortname"]; ?> Event Calendar.</P><P>You can browse events using the calendar to the left. You can also searchfor events by keyword using the "Search" box. In order to doanything else, like submitting events, you'll need to log in. This calendarsystem uses the <I><?php echo $GLOBALS["config_computername"]; ?></I> user accounts for submitting and edittingevents, so if you don't have a <?php echo $GLOBALS["config_computername"]; ?> account, you'll only be able to browseand search for events.</P><P>There are currently two features that require cookies to be enabled in yourbrowser. Those are logging in and viewing unapproved events. If you havecookies disabled, these features may appear to work at first, but will not lastwhen you follow another link.</P><?php }// give us a list of help topics function outputContents() { $boxes = $GLOBALS["boxes"]; $i = 0; for( ;$current_box = each( $boxes ); ) { if( $current_box["value"]->help_available ) { $help_topics[$i++] = $current_box["key"]; } } echo( "<BIG>Help</BIG><BR>\n" ); if( count($help_topics) ) { echo( "<P>Help is available for the following topics:\n" ); echo( "<UL>\n<LI><A HREF=\"$this->action_url" . "&topic=help\">" . "General help</A></LI>\n" ); for( $i=0; $i<count($help_topics); $i++ ) { echo( "<LI><A HREF=\"$this->action_url" . "&topic=" . $help_topics[$i] . "\">" . $boxes[$help_topics[$i]]->help_topic . "</A></LI>\n" ); } echo( "</UL>\n" ); } } }}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -