mirror of
https://github.com/php/web-php.git
synced 2026-03-31 03:32:23 +02:00
120 lines
3.2 KiB
JavaScript
120 lines
3.2 KiB
JavaScript
// If your presentation is longer than 200 slides,
|
|
// you could change the array size below.
|
|
filename = new Array(200);
|
|
|
|
first_slide = 0;
|
|
last_slide = 0;
|
|
current_slide = 1;
|
|
slides_inserted = 0;
|
|
slides_deleted = 0;
|
|
show_slide_filename = 0;
|
|
|
|
|
|
/* function AddSlide adds a slide to the presentation at the end. */
|
|
/* */
|
|
/* parameter name is the name of the file, without the .php3 extension. */
|
|
|
|
function AddSlide(name)
|
|
{
|
|
last_slide++;
|
|
if(name == null) name = last_slide-slides_inserted+slides_deleted;
|
|
else {
|
|
slides_inserted++;
|
|
}
|
|
filename[last_slide] = name + ".php3";
|
|
}
|
|
|
|
|
|
// DON'T EDIT ANY OF THE TEXT ABOVE THIS LINE!!!
|
|
// It's source code you don't need to touch and should not touch.
|
|
//
|
|
// To add, delete, and reorder slides,
|
|
// just add, delete, and reorder the AddSlide("FILENAME")
|
|
// entries below. Each name in double quotes is the name
|
|
// of an HTML file in this presentation directory.
|
|
//
|
|
// If you want to include an HTML file which is in a subdirectory,
|
|
// separate the subdirectory name and the HTML file name with a
|
|
// forward slash like this: AddSlide("DIRECTORYNAME/FILENAME")
|
|
// (This works fine across platforms, even on Windows.)
|
|
//
|
|
// Within the quotes, don't include an extension like .htm or .html.
|
|
// This application automatically adds .htm to the name when it
|
|
// looks in the directory for the file. In the directory, the
|
|
// HTML file *must* have the three letter extension .htm.
|
|
|
|
|
|
// Means the preso is being set for placement on the web
|
|
// to be viewed directly (with no human speaker) by the end user.
|
|
var online = true
|
|
|
|
|
|
// Running online as Visual Tutorial with explanatory text.
|
|
var tutorialMode = false
|
|
|
|
|
|
// Keep these first three slides (Logopage, Title, S_agenda)
|
|
// in your presentation so we have a standard look and feel.
|
|
// (Edit the contents of the Title and S_agenda slide.)
|
|
|
|
if (!online) { AddSlide("logopage"); }
|
|
|
|
// Add *either* the tutorial title page or the presentation
|
|
// title page, depending on whether we're running in tutorialMode.
|
|
if (tutorialMode) { AddSlide("titletut") }
|
|
else AddSlide("title"); // title slide
|
|
|
|
// if (tutorialMode || online ) { AddSlide("howto"); }
|
|
// if (tutorialMode) { AddSlide("howtotu2"); }
|
|
// else if (online) { AddSlide("howto2"); }
|
|
|
|
//AddSlide("s_effic");
|
|
//AddSlide("s_effic2");
|
|
//AddSlide("s_effic3");
|
|
//AddSlide("s_effic4");
|
|
|
|
AddSlide("s_agenda1");
|
|
|
|
AddSlide("s_history");
|
|
AddSlide("s_usage");
|
|
|
|
// PHP Characteristics
|
|
AddSlide("s_chars");
|
|
AddSlide("s_htmlembed");
|
|
AddSlide("s_crossplatform");
|
|
|
|
// Language Overview
|
|
AddSlide("s_lang");
|
|
AddSlide("s_lang2");
|
|
AddSlide("s_lang3");
|
|
AddSlide("s_lang4");
|
|
// AddSlide("s_lang5");
|
|
AddSlide("s_lang6");
|
|
AddSlide("s_lang7");
|
|
AddSlide("s_function");
|
|
AddSlide("s_objinherit");
|
|
|
|
// Extensions
|
|
AddSlide("s_datetime");
|
|
AddSlide("s_regex");
|
|
AddSlide("s_encode");
|
|
AddSlide("s_filehandling");
|
|
AddSlide("s_filehandling2");
|
|
AddSlide("s_image");
|
|
AddSlide("s_pdf");
|
|
AddSlide("s_limits");
|
|
AddSlide("s_sql");
|
|
AddSlide("s_sqlexample");
|
|
AddSlide("s_other");
|
|
AddSlide("s_future");
|
|
|
|
AddSlide("s_session");
|
|
AddSlide("s_pear");
|
|
AddSlide("s_db");
|
|
AddSlide("s_phpjava");
|
|
|
|
// Keep this last slide (logopage) in your presentation
|
|
// so every presentation ends with the logo.
|
|
|
|
AddSlide("logopage"); //
|