cvs: phpdoc /htmlhelp/suppfiles/fixes IE6DisplayFix.reg /htmlhelp/suppfiles/html _atw.gif _body.gif _code.gif _google.gif _masterheader.jpg _note.gif
_pixel.gif _script.js _skin_hi.js _skin_lo.js _style_hi.css _style_lo.css _subheader.gif _warning.gif /htmlhelp/suppfiles/notes _index.html
_style.css /htmlhelp/suppfiles/prefs context.ini php_manual_prefs.js /htmlhelp/suppfiles/quickref php_manual.ico php_quickref.hta
/htmlhelp/suppfiles/skins/GreenLinks skin.js style.css /htmlhelp/suppfiles/skins/HeaderNostalgia phpdoc_bellowmenu.png phpdoc_bottomback.png
phpdoc_menu.png phpdoc_midback.png phpdoc_php.png phpdoc_upback.png skin.js style.css
| From: | Gabor Hojtsy | Date: | Thu, 26 Dec 2002 19:14:49 +0000 |
| Subject: | cvs: phpdoc /htmlhelp/suppfiles/fixes IE6DisplayFix.reg /htmlhelp/suppfiles/html _atw.gif _body.gif _code.gif _google.gif _masterheader.jpg _note.gif _pixel.gif _script.js _skin_hi.js _skin_lo.js _style_hi.css _style_lo.css _subheader.gif _warning.gif /htmlhelp/suppfiles/notes _index.html _style.css /htmlhelp/suppfiles/prefs context.ini php_manual_prefs.js /htmlhelp/suppfiles/quickref php_manual.ico php_quickref.hta /htmlhelp/suppfiles/skins/GreenLinks skin.js style.css /htmlhelp/suppfiles/skins/HeaderNostalgia phpdoc_bellowmenu.png phpdoc_bottomback.png phpdoc_menu.png phpdoc_midback.png phpdoc_php.png phpdoc_upback.png skin.js style.css |
||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969350401@lists.php.net to get a copy of this message | ||
goba Thu Dec 26 14:14:49 2002 EDT
Added files:
/phpdoc/htmlhelp/suppfiles/fixes IE6DisplayFix.reg
/phpdoc/htmlhelp/suppfiles/html _atw.gif _body.gif _code.gif
_google.gif _masterheader.jpg
_note.gif _pixel.gif _script.js
_skin_hi.js _skin_lo.js
_style_hi.css _style_lo.css
_subheader.gif _warning.gif
/phpdoc/htmlhelp/suppfiles/notes _index.html _style.css
/phpdoc/htmlhelp/suppfiles/prefs context.ini php_manual_prefs.js
/phpdoc/htmlhelp/suppfiles/quickref php_manual.ico php_quickref.hta
/phpdoc/htmlhelp/suppfiles/skins/GreenLinks skin.js style.css
/phpdoc/htmlhelp/suppfiles/skins/HeaderNostalgia
phpdoc_bellowmenu.png
phpdoc_bottomback.png
phpdoc_menu.png
phpdoc_midback.png
phpdoc_php.png
phpdoc_upback.png
skin.js style.css
Log:
Adding supporting files of the "new CHM" build system
Index: phpdoc/htmlhelp/suppfiles/fixes/IE6DisplayFix.reg +++ phpdoc/htmlhelp/suppfiles/fixes/IE6DisplayFix.reg REGEDIT4 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] "Friendly http errors"="yes" Index: phpdoc/htmlhelp/suppfiles/html/_script.js +++ phpdoc/htmlhelp/suppfiles/html/_script.js // ============================================================================= // Preference handling // Handle all the preferences, including online functions custom // context menus, and skins [this is called from php_manual_prefs.js] function prefHandler() { // Find out what file stores the skin JS code switch (prefs_skin) { // Internal low skin case "Low": skin_js_file = '_skin_lo.js'; break; // Internal high skin case "High": skin_js_file = '_skin_hi.js'; break; // An external skin with full path (escape it just // to make sure that paths with spaces and other // unusual chars will work - and turn back : to // it's original form) default: //escaped_skin = escape(prefs_skin); //escaped_skin = escaped_skin.replace(/%3A/, ':') skin_js_file = "file:///" + prefs_skin; break; } // Load in the skin JS code document.write('<script src="' + skin_js_file + '"><'+ '/script>'); // Write out context menu for the first time into it's div document.write('<div id="contextMenu">'); contextMenuRewrite(true); document.write('</div>'); // Assign our own event handlers to document events [req. IE5] document.oncontextmenu = contextMenu; document.onclick = contextMenuCloseTimeout; window.onblur = contextMenuCloseTimeout; } // ============================================================================= // CHM path detection - Thanks to Pete Lees and Jeff Hall for this code // Get the path and name of the CHM file and assign values function getCHMFile() { var a, X, Y, Z; a = location.href.search(/:/); Y = location.href.lastIndexOf("::"); if (a == 4) { // file: or http: Y = location.href.lastIndexOf("/"); chmfile_page = unescape(location.href.substring(Y+1)); if (location.href.substring(0,4) == "file") { chmfile_path = unescape(location.href.substring(8, Y+1)); } } else { if (a == 2) X = 14; // mk:@MSITStore: if (a == 7) X = 7; // ms-its: chmfile_fullname = unescape(location.href.substring(X, Y)); Z = chmfile_fullname.lastIndexOf("\\"); chmfile_path = unescape(chmfile_fullname.substring(0, Z+1)); chmfile_name = unescape(chmfile_fullname.substring(Z+1)); chmfile_page = unescape(location.href.substring(Y+3)); } //alert(location.href+"\n\n"+"fullname="+chmfile_fullname+"\n"+"path="+ //chmfile_path+"\n"+"name="+chmfile_name+"\n"+"page="+chmfile_page); } // ============================================================================= // Page display and online functions code // Go online to see this page in an external window [called when a user // clicks on the "this page oline" link] function thisPageOnline() { if (!prefs_online) { alert("You are in offline mode.\nThis functionality is not available"); } else { window.open(prefs_mirror + 'manual/' + this_lang + '/' + this_page_php); } } // Report bug on this manual page, using GET method URL tricks // [called when a user clicks on the "report bug on this page" link] function bugOnPage() { if (!prefs_online) { alert("You are in offline mode.\nThis functionality is not available"); } else { window.open( "http://bugs.php.net/report.php?" + escape("in[php_version]") + "=earlier&" + escape("in[bug_type]") + "=Documentation%20problem&" + escape("in[php_os]") + "=windows&" + escape("in[sdesc]") + "=" + escape("[chm] bug on " + this_page) + "&" + escape("in[ldesc]") + "=" + escape("I have found a bug on page " + this_page + "\n[chm date: " + this_date + "]...\n") ); } } // ============================================================================= // Handle user notes from an external CHM file // Copy user notes text from aan invisible IFRAME to a visible // DIV tag's content area [this is called from displayNotes() // which is defined in every HTML page to fix an old IE bug] function _displayNotes() { // Get the element from the "all" collection element = document.all['pageNotes']; // If we have that element, copy notes here if (element) { element.innerHTML = parent.nbuff.document.body.innerHTML; } else { alert("Error in user note inclusion"); } } // Load the user notes HTML file [this is called from the HTML // file directly on every page] Depends on UA version function loadNotes() { // Workaround for IE6 bug if (ie_version_major == 6) { document.write('<script src="mk:@MSITStore:' + chmfile_path + 'php_manual_notes.chm::/_filelist.js"></script>'); } // Load notes in otherwise else { notesIframe(); } } // Prints out the inline frame for the notes HTML file function notesIframe() { // Notes buffer for user notes to display on this page document.write( '<iframe name="nbuff" style="display:none" src="mk:@MSITStore:' + chmfile_path + 'php_manual_notes.chm::/' + chmfile_page + '"></iframe>' ); } // ============================================================================= // Context menu code // Rewrite context menu according to the current environment. The only parameter // indicates that this is the first display or not. [called once from // prefHandler() and then every time before a context menu needs to be displayed] function contextMenuRewrite(first) { // Set selection to null value (we will check // if there is a current selection now) context_selrange = null; // Our menu layer is invisible initially menuHTML = '<table width="150" cellspacing="2" cellpadding="0">'; // Write out a table row for all menu points for (i in prefs_context_names) { // Label and abstract implementation label = prefs_context_names[i]; impl = prefs_context_values[i]; // Special display items start with an underscore if (impl.substring(0,1) == "_") { // Find the special printout needed switch (impl) { // Menu separator case "_Separator_": menuHTML += '<tr><td bgcolor="#000000"><img src="_pixel.gif" ' + 'width="100%" height="1"></td></tr>'; break; // Google search box (only printed in online mode) case "_GoogleSearch_": if (prefs_online) { menuHTML += '<tr><td style="background-color: #f5f5f5;"><form action="http://www.google.com/search" class="thin"' + 'onsubmit="contextMenuClose()" method="GET" target="_blank">' + '<img src="_google.gif" align="absmiddle" alt="Google"><input type="text" name="q" ' + 'style="width:120px;"></form></td></tr>'; } break; // Alltheweb search box (only printed in online mode) case "_ATWSearch_": if (prefs_online) { menuHTML += '<tr><td style="background-color: #f5f5f5;"><form action="http://www.alltheweb.com/search" class="thin"' + 'onsubmit="contextMenuClose()" method="GET" target="_blank">' + '<img src="_atw.gif" align="absmiddle" alt="AlltheWeb"><input name="cat" type="hidden" value="web">' + '<input type="text" name="query" style="width:120px;"></form></td></tr>'; } break; // This should not be accessed in any valid situation, but // is here to at least print out something in case of error... default: menuHTML += contextLink(i, label); break; } } // Special functions that may need to be printed out conditionally else if (impl.substring(impl.length-2) == "()") { // Do something depending on function name switch (impl.substring(0, impl.length-2)) { // Copy selection case "copySelection": // For the first time there is actually no document... if (document.selection && !first) { context_selrange = document.selection.createRange(); if (context_selrange.text.length > 0) { menuHTML += contextLink(i, label); } } break; // Google or AlltheWeb search for selection (need to be in online mode) case "searchSelGoogle": case "searchSelATW": // For the first time there is actually no document... if (document.selection && !first) { context_selrange = document.selection.createRange(); if (context_selrange.text.length > 0 && prefs_online) { menuHTML += contextLink(i, label); } } break; // Misc functions like print() and selectAll() default: menuHTML += contextLink(i, label); break; } } // Not a special display or function, // so simply print out the line for this item else { menuHTML += contextLink(i, label); } } // End table menuHTML += '</table>'; // We do not have this element if this is the first run, but we // need to rewrite the element content if it's not the first time if (first) { document.write(menuHTML); } else { document.all['contextMenu'].innerHTML = menuHTML; } } // Write out one context menu link table row [called from contextMenuRewrite()] function contextLink (number, label) { return '<tr><td nowrap onmouseover="this.style.backgroundColor=\'#c0c0c0\';" ' + 'onmouseout="this.style.backgroundColor=\'#f5f5f5\';" ' + 'onclick="contextParse(' + number + ')" ' + 'style="cursor:hand; background-color: #f5f5f5;"><p class="context">' + label + '</p></td></tr>'; } // Parse the jump string, and do appropriate action [called when the user // clicks on a table row in the context menu] function contextParse(i) { var control = prefs_context_values[i]; // If the control string ends in (), then it is // a function, not a file name if (control.substring(control.length-2) == "()") { // Switch by function name switch (control.substring(0, control.length-2)) { // Print out this page case "print": print(); break; // Copy the selection from the current document case "copySelection": if (context_selrange != null) { context_selrange.execCommand("Copy"); } break; // Search for the selected text on Google case "searchSelGoogle": sel = contextGetSelection(); if (sel != '') { window.open('http://www.google.com/search?q=' + escape(sel)); } break; // Search for the selected text on AlltheWeb case "searchSelATW": sel = contextGetSelection(); if (sel != '') { window.open('http://www.alltheweb.com/search?cat=web&query=' + escape(sel)); } break; // Go back and forward in history case "back": history.back(); break; case "forward": history.forward(); break; // Refresh page dispplay case "refresh": window.location.reload(true); break; // Select all text in the document case "selectAll": document.body.createTextRange().select(); break; // View source of current page case "viewSource": window.location = "view-source:" + window.location.href; break; // This should never be accessed, but here to alert if there is an error default: alert('This context menu function is not supported'); break; } } // If this is not a "function call", then jump // to that page in the CHM or outside of it else { // Link with protocol if (control.indexOf(":") > 0) { window.open(control); } // Link without protocol else { location = control; } } } // Returns the current selection [called when a context menu // item is clicked involving an operation on a selection] function contextGetSelection() { // Test if anything is selected if (context_selrange != null && context_selrange.text.length > 0) { return context_selrange.text; } else { alert("Nothing is selected"); return ""; } } // Handle mousedown events in a document [called when a mouse click // is issued on a document] function contextMenu(e) { // Close context menu, if it was open before contextMenuClose(); // We enable the original context menu with the CTRL key if // then user selected to override it if (event.ctrlKey && prefs_context_override) { return true; } // We also enable the original one, if it is not overriden // and the user have not pressed the CTRL key else if (!event.ctrlKey && !prefs_context_override) { return true; } // Otherwise (overriden or overriden+CTRL) we display our menu else { // Rewrite contents of context menu contextMenuRewrite(false); // IE6+ is in standard compliant mode because of our !DOCTYPE // [ http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/doctype.asp ] // so we need to use the "html" tag instead of the "body" to measure scrolled distance. // For older browsers, we need to use the body. if (ie_version_major >= 6) { delement = document.body.parentElement; } else { delement = document.body; } // Find out if menu would be outside the window rightedge = delement.clientWidth - event.clientX; bottomedge = delement.clientHeight - event.clientY; // Shortcut for the context menu cmenu = document.all['contextMenu']; // Place menu to the right position, not to extend the window size if (rightedge < cmenu.offsetWidth) { cmenu.style.left = delement.scrollLeft + event.clientX - cmenu.offsetWidth; } else { cmenu.style.left = delement.scrollLeft + event.clientX; } if (bottomedge < cmenu.offsetHeight) { cmenu.style.top = delement.scrollTop + event.clientY - cmenu.offsetHeight; } else { cmenu.style.top = delement.scrollTop + event.clientY; } // Show menu cmenu.style.visibility = "visible"; return false; } } // Closes the context menu [called when the time is out] function contextMenuClose() { // Hide context menu document.all['contextMenu'].style.visibility = "hidden"; } // Sets timeout for menu close [called by document onclick event] function contextMenuCloseTimeout() { // Support for form focus event (form in context menu) if (document.activeElement.tagName != 'INPUT') { setTimeout('contextMenuClose()', 100); } } // ============================================================================= // Example clipboard copy links // Copy an example from a HTML container with id "example_" + number [called // when a user clicks on that copy link] function copyExample(number) { // moveToElementText is only supported in IE5 and up if (ie_version_major < 5) { alert("Example copy is not supported in this browser"); } else { BodyRange = document.body.createTextRange(); BodyRange.moveToElementText(document.all['example_' + number]); BodyRange.execCommand("Copy"); } } // ============================================================================= // Default skin functions // Display the page without online functions if they are disabled function defaultDisplayPage() { // Do not display online functions links if they are disabled if (!prefs_online) { document.all['navOnline'].style.display = 'none'; } // Show page container document.all['pageContent'].style.display = 'block'; } // ============================================================================= // Main JS program flow // Default vars for all the pages [generated] this_lang = 'en'; this_date = '2002-11-09'; // Vars for online menu of this particular page this_page = location.pathname.substring(location.pathname.lastIndexOf("/")+1); this_page_php = this_page.substring(0, this_page.lastIndexOf(".")) + '.php'; // Create the chmfile vars for this HTML page chmfile_fullname = ""; chmfile_name = ""; chmfile_path = ""; chmfile_page = ""; getCHMFile(); // Default values for preferences (no online functions, no // special context menu, low skin) prefs_online = false; prefs_context_override = false; prefs_skin = "Low"; // Support for selection sensitive context menus context_selrange = null; // Find out major and minor IE version number var ie_version_start = navigator.appVersion.indexOf("MSIE"); var ie_version_end = navigator.appVersion.indexOf(".", ie_version_start); ie_version_major = parseInt(navigator.appVersion.substring(ie_version_start+5, ie_version_end)); ie_version_minor = parseInt(navigator.appMinorVersion); // Get the preferences file from outside document.write('<script src="' + chmfile_path + 'php_manual_prefs.js"><'+ '/script>'); Index: phpdoc/htmlhelp/suppfiles/html/_skin_hi.js +++ phpdoc/htmlhelp/suppfiles/html/_skin_hi.js // This is an inline skin file for the "Hi" skin of the PHP Manual. // This file should be inside the Manual CHM file. // Get style sheet file document.write( // Get the lo style file '<link rel="stylesheet" type="text/css" href="_style_hi.css">' ); // Display the page to the user function displayPage() { defaultDisplayPage(); } Index: phpdoc/htmlhelp/suppfiles/html/_skin_lo.js +++ phpdoc/htmlhelp/suppfiles/html/_skin_lo.js // This is an inline skin file for the "Lo" skin of the PHP Manual. // This file should be inside the Manual CHM file. // Get style sheet file document.write( // Get the lo style file '<link rel="stylesheet" type="text/css" href="_style_lo.css">' ); // Display the page to the user function displayPage() { defaultDisplayPage(); } Index: phpdoc/htmlhelp/suppfiles/html/_style_hi.css +++ phpdoc/htmlhelp/suppfiles/html/_style_hi.css /* general body style */ body { background-color: #FFFFFF; color: #000000; margin: 0px 0px 0px 0px; } /* most of the page content use these fonts */ p, h1, h2, h3, h4, h5, td, tr, li, dt, dd, masterheader, .subheader, .formalhead, .seealso, .context, .codelink { font-family: Verdana, Arial, Helvetica, sans-serif; } /* most of the page text is 12px size */ p, h4, h5, td, tr, li, dt, dd, code, subheader, .formalhead, .seealso { font-size: 12px; } /* different size values for headings */ h1 { font-size: 18px; } h2 { font-size: 16px; } h3 { font-size: 14px; } /* black is the default color for all common text parts */ p, h1, h2, h3, h4, h5, code, formalhead, .subheader { /* HI (.masterheader deleted) */ color: #000000; } /* margin and style settings for headers */ h1, h2, h3, h4, h5, .formalhead { font-style: normal; font-weight: bold; margin-left: 10px; margin-top: 20px; } /* general paragraphs in text */ p { line-height: 16px; margin: 5px 10px 5px 10px; } /* .examplecode is used to print out PHP code, output, etc. .codelink is the link to copy the code to clipboard */ examplecode, .codelink { font-weight: normal; margin-right: 10px; margin-left: 10px; } examplecode { padding: 5px 5px 5px 50px; /* HI (20px => 50px) */ background-image: url(_code.gif); /* HI (new) */ background-repeat: no-repeat; /* HI (new) */ background-color: #dcdcdc; font-family: "Courier New", Courier, mono; } codelink { font-size: 10px; text-align: right; margin-bottom: 5px; } /* table rows and cells */ td, tr { font-style: normal; font-weight: normal; } /* colors for table rows and cells */ td { background-color: #DDDDDD; } tr { background-color: #CCCCCC; } /* list type elements */ li, dt { margin-bottom: 5px; } ul, dl { margin-top: 10px; margin-bottom: 10px; } dl dt, dt dl, dd dl, dl dd { margin-left: 10px; } /* for tables used to contain data */ datatable { margin-right: 20px; margin-left: 20px; } /* the absolute master header of a page */ masterheader { /* HI (borders deleted) */ font-size: 24px; /* HI (18px => 24px) */ font-weight: bold; background-color: #666699; /* HI (9999FF => 666699) */ padding: 10px 5px 10px 20px; /* HI (changed) */ margin: 0px 0px 0px 0px; color: #FFFFFF; /* HI (new) */ background-image: url(_masterheader.jpg); /* HI (new) */ background-repeat: repeat-x; /* HI (new) */ } /* subheader used on function and class pages */ subheader { font-style: normal; font-weight: bold; background-color: #DDDDFF; margin: 0px 0px 15px 0px; /* HI (changed) */ padding: 8px 5px 8px 20px; /* HI (changed) */ line-height: 20px; /* HI (changed) */ background-image: url(_subheader.gif); /* HI (new) */ background-repeat: repeat-x; /* HI (new) */ border-color: black black #666666; /* HI (new) */ border-style: solid; /* HI (new) */ border-width: 0px 0px 1px 0px; /* HI (new) */ } /* navigational table at the bottom of the pages */ navigation { background-color: #DDDDDD; border-color: #666666 black black; border-style: solid; border-width: 1px 0px 0px 0px; margin-top: 20px; } /* admonitional blocks */ note, .warning, .caution { margin: 20px 20px 20px 20px; border: 1px #333333 solid; border-style: solid; border-width: 1px 1px 1px 1px; padding: 5px 5px 5px 50px; /* HI (10 => 50) */ } note { background-image: url(_note.gif); /* HI (new) */ background-repeat: no-repeat; /* HI (new) */ } /* color for warning and caution boxes */ warning, .caution { background-color: #FFFF99; background-image: url(_warning.gif); /* HI (new) */ background-repeat: no-repeat; /* HI (new) */ } /* paragraphs inside notes */ note, .warning, .caution, .note p, .warning p, .caution p { font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14px; } /* see also lists, usually at the bottom of pages */ seealso { font-style: normal; font-weight: normal; color: #000000; background-color: #DDDDFF; margin: 20px 20px 0px 20px; /* HI (changed) */ padding: 5px 5px 5px 15px; /* HI (10px => 15px) */ } /* user note header text */ unheader { background-color: #CCCCCC; padding: 2px 10px 2px 15px; /* HI (changed) */ margin-bottom: 1px; margin-top: 5px; /* HI (new) */ } /* user note text */ untext { background-color: #DDDDDD; margin-top: 0px; margin-bottom: 10px; padding: 2px 10px 5px 15px; /* HI (changed) */ } /* colors for color code highliting */ cs { color: #CC0000 } /* string */ cc { color: #b8860b } /* comment */ ck { color: #006600 } /* keyword */ cd { color: #0000CC } /* default */ /* Style elements for the context menu */ context { font-size: 12px; color: #000000; margin: 2px 2px 2px 3px; line-height: 16px; } #contextMenu { position: absolute; width: 150; border: 1px solid #000000; visibility: hidden; background-color: #f5f5f5; } /* Form elements (used in context menu) */ form.thin { margin-bottom: 0px; margin-top: 0px; } /* Author group on frontpage */ div.authorgroup { text-align: center; } Index: phpdoc/htmlhelp/suppfiles/html/_style_lo.css +++ phpdoc/htmlhelp/suppfiles/html/_style_lo.css /* general body style */ body { background-color: #FFFFFF; color: #000000; margin: 0px 0px 0px 0px; } /* most of the page content use these fonts */ p, h1, h2, h3, h4, h5, td, tr, li, dt, dd, masterheader, .subheader, .formalhead, .seealso, .context, .codelink { font-family: Verdana, Arial, Helvetica, sans-serif; } /* most of the page text is 12px size */ p, h4, h5, td, tr, li, dt, dd, code, subheader, .formalhead, .seealso { font-size: 12px; } /* different size values for headings */ h1 { font-size: 18px; } h2 { font-size: 16px; } h3 { font-size: 14px; } /* black is the default color for all common text parts */ p, h1, h2, h3, h4, h5, code, .masterheader, formalhead, .subheader { color: #000000; } /* margin and style settings for headers */ h1, h2, h3, h4, h5, .formalhead { font-style: normal; font-weight: bold; margin-left: 10px; margin-top: 20px; } /* general paragraphs in text */ p { line-height: 16px; margin: 5px 10px 5px 10px; } /* .examplecode is used to print out PHP code, output, etc. .codelink is the link to copy the code to clipboard */ examplecode, .codelink { font-weight: normal; margin-right: 10px; margin-left: 10px; } examplecode { padding: 5px 5px 5px 20px; background-color: #dcdcdc; font-family: "Courier New", Courier, mono; } codelink { font-size: 10px; text-align: right; margin-bottom: 5px; } /* table rows and cells */ td, tr { font-style: normal; font-weight: normal; } /* colors for table rows and cells */ td { background-color: #DDDDDD; } tr { background-color: #CCCCCC; } /* list type elements */ li, dt { margin-bottom: 5px; } ul, dl { margin-top: 10px; margin-bottom: 10px; } dl { margin-left: 10px; } /* for tables used to contain data */ datatable { margin-right: 20px; margin-left: 20px; } /* the absolute master header of a page */ masterheader { font-size: 18px; font-weight: bold; background-color: #9999FF; padding: 5px 5px 5px 10px; border-color: black black #6666CC; border-style: solid; border-width: 0px 0px 1px 0px; margin: 0px 0px 0px 0px; } /* subheader used on function and class pages */ subheader { font-style: normal; font-weight: bold; background-color: #DDDDFF; margin: 0px 0px 5px 0px; padding: 5px 5px 5px 10px; line-height: 18px; } /* navigational table at the bottom of the pages */ navigation { background-color: #DDDDDD; border-color: #666666 black black; border-style: solid; border-width: 1px 0px 0px 0px; margin-top: 20px; } /* admonitional blocks */ note, .warning, .caution { margin: 20px 20px 20px 20px; border: #333333; border-style: solid; border-width: 1px 1px 1px 1px; padding: 5px 5px 5px 10px; } /* color for warning and caution boxes */ warning, .caution { background-color: #FFFF99 } /* paragraphs inside notes */ note, .warning, .caution, .note p, .warning p, .caution p { font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14px; } /* see also lists, usually at the bottom of pages */ seealso { font-style: normal; font-weight: normal; color: #000000; background-color: #DDDDFF; margin: 20px 0px 0px 0px; padding: 5px 5px 5px 10px; } /* user note header text */ unheader { background-color: #CCCCCC; padding: 1px 10px 1px 5px; margin-bottom: 1px } /* user note text */ untext { background-color: #DDDDDD; margin-top: 0px; padding: 2px 10px 2px 5px; } /* colors for color code highliting */ cs { color: #CC0000 } /* string */ cc { color: #b8860b } /* comment */ ck { color: #006600 } /* keyword */ cd { color: #0000CC } /* default */ /* Style elements for the context menu */ context { font-size: 12px; color: #000000; margin: 2px 2px 2px 3px; line-height: 16px; } #contextMenu { position: absolute; width: 150; border: 1px solid #000000; visibility: hidden; background-color: #f5f5f5; } /* Form elements (used in context menu) */ form.thin { margin-bottom: 0px; margin-top: 0px; } /* Author group on frontpage */ div.authorgroup { text-align: center; } Index: phpdoc/htmlhelp/suppfiles/notes/_index.html +++ phpdoc/htmlhelp/suppfiles/notes/_index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>PHP Manual - User Notes</title> </head> <body> <p> The objective of this file is to store PHP Manual User Notes on your machine. This file is not intended to be used for viewing. </p> <p> Please put this file into the directory of your local php_manual_LANG.chm, and so you will be able to read user notes viewing that file. </p> </body> </html> Index: phpdoc/htmlhelp/suppfiles/notes/_style.css +++ phpdoc/htmlhelp/suppfiles/notes/_style.css body { background-color: #FFFFFF; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px} unheader { background-color: #CCCCCC; padding-left: 5px; padding-top: 1px; padding-right: 10px; padding-bottom: 1px; margin-bottom: 1px} untext { background-color: #DDDDDD; margin-top: 0px; padding-top: 2px; padding-right: 10px; padding-bottom: 2px; padding-left: 5px} Index: phpdoc/htmlhelp/suppfiles/prefs/context.ini +++ phpdoc/htmlhelp/suppfiles/prefs/context.ini # ================================================= # PHP Manual CHM version context menu configuration # ================================================= # Genaral functions # ----------------- [context_item] display = "Copy selection to clipboard" implementation = "copySelection()" [context_item] display = "Select all" implementation = "selectAll()" [context_item] display = "Print page" implementation = "print()" [context_item] display = "Back" implementation = "back()" [context_item] display = "Forward" implementation = "forward()" [context_item] display = "Refresh" implementation = "refresh()" # Page jump options # ----------------- [context_item] display = "Manual TOC" implementation = "index.html" [context_item] display = "Function Reference" implementation = "funcref.html" [context_item] display = "HTML Help Edition" implementation = "chmonly.html" [context_item] display = "Functions Index" implementation = "indexes.html" [context_item] display = "PHP-GTK home" implementation = "http://gtk.php.net/" [context_item] display = "PEAR home" implementation = "http://pear.php.net/" # Search engine quickforms and selections # --------------------------------------- [context_item] display = "Google SearchBox" implementation = "_GoogleSearch_" [context_item] display = "Google Search Selection" implementation = "searchSelGoogle()" [context_item] display = "AlltheWeb SearchBox" implementation = "_ATWSearch_" [context_item] display = "AlltheWeb Search Selection" implementation = "searchSelATW()" Index: phpdoc/htmlhelp/suppfiles/prefs/php_manual_prefs.js +++ phpdoc/htmlhelp/suppfiles/prefs/php_manual_prefs.js prefs_online = true; prefs_mirror = "http://us.php.net/"; prefs_context_override = true; prefs_context_names = Array( "Manual TOC", "Function Reference", "Functions Index", "_Separator_", "Copy selection to clipboard", "Google Search Selection", "AlltheWeb SearchBox" ); prefs_context_values = Array( "index.html", "funcref.html", "indexes.html", "_Separator_", "copySelection()", "searchSelGoogle()", "_ATWSearch_" ); prefs_skin = "Low"; prefHandler(); Index: phpdoc/htmlhelp/suppfiles/quickref/php_manual.ico +++ phpdoc/htmlhelp/suppfiles/quickref/php_manual.ico h &
Index: phpdoc/htmlhelp/suppfiles/fixes/IE6DisplayFix.reg +++ phpdoc/htmlhelp/suppfiles/fixes/IE6DisplayFix.reg REGEDIT4 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] "Friendly http errors"="yes" Index: phpdoc/htmlhelp/suppfiles/html/_script.js +++ phpdoc/htmlhelp/suppfiles/html/_script.js // ============================================================================= // Preference handling // Handle all the preferences, including online functions custom // context menus, and skins [this is called from php_manual_prefs.js] function prefHandler() { // Find out what file stores the skin JS code switch (prefs_skin) { // Internal low skin case "Low": skin_js_file = '_skin_lo.js'; break; // Internal high skin case "High": skin_js_file = '_skin_hi.js'; break; // An external skin with full path (escape it just // to make sure that paths with spaces and other // unusual chars will work - and turn back : to // it's original form) default: //escaped_skin = escape(prefs_skin); //escaped_skin = escaped_skin.replace(/%3A/, ':') skin_js_file = "file:///" + prefs_skin; break; } // Load in the skin JS code document.write('<script src="' + skin_js_file + '"><'+ '/script>'); // Write out context menu for the first time into it's div document.write('<div id="contextMenu">'); contextMenuRewrite(true); document.write('</div>'); // Assign our own event handlers to document events [req. IE5] document.oncontextmenu = contextMenu; document.onclick = contextMenuCloseTimeout; window.onblur = contextMenuCloseTimeout; } // ============================================================================= // CHM path detection - Thanks to Pete Lees and Jeff Hall for this code // Get the path and name of the CHM file and assign values function getCHMFile() { var a, X, Y, Z; a = location.href.search(/:/); Y = location.href.lastIndexOf("::"); if (a == 4) { // file: or http: Y = location.href.lastIndexOf("/"); chmfile_page = unescape(location.href.substring(Y+1)); if (location.href.substring(0,4) == "file") { chmfile_path = unescape(location.href.substring(8, Y+1)); } } else { if (a == 2) X = 14; // mk:@MSITStore: if (a == 7) X = 7; // ms-its: chmfile_fullname = unescape(location.href.substring(X, Y)); Z = chmfile_fullname.lastIndexOf("\\"); chmfile_path = unescape(chmfile_fullname.substring(0, Z+1)); chmfile_name = unescape(chmfile_fullname.substring(Z+1)); chmfile_page = unescape(location.href.substring(Y+3)); } //alert(location.href+"\n\n"+"fullname="+chmfile_fullname+"\n"+"path="+ //chmfile_path+"\n"+"name="+chmfile_name+"\n"+"page="+chmfile_page); } // ============================================================================= // Page display and online functions code // Go online to see this page in an external window [called when a user // clicks on the "this page oline" link] function thisPageOnline() { if (!prefs_online) { alert("You are in offline mode.\nThis functionality is not available"); } else { window.open(prefs_mirror + 'manual/' + this_lang + '/' + this_page_php); } } // Report bug on this manual page, using GET method URL tricks // [called when a user clicks on the "report bug on this page" link] function bugOnPage() { if (!prefs_online) { alert("You are in offline mode.\nThis functionality is not available"); } else { window.open( "http://bugs.php.net/report.php?" + escape("in[php_version]") + "=earlier&" + escape("in[bug_type]") + "=Documentation%20problem&" + escape("in[php_os]") + "=windows&" + escape("in[sdesc]") + "=" + escape("[chm] bug on " + this_page) + "&" + escape("in[ldesc]") + "=" + escape("I have found a bug on page " + this_page + "\n[chm date: " + this_date + "]...\n") ); } } // ============================================================================= // Handle user notes from an external CHM file // Copy user notes text from aan invisible IFRAME to a visible // DIV tag's content area [this is called from displayNotes() // which is defined in every HTML page to fix an old IE bug] function _displayNotes() { // Get the element from the "all" collection element = document.all['pageNotes']; // If we have that element, copy notes here if (element) { element.innerHTML = parent.nbuff.document.body.innerHTML; } else { alert("Error in user note inclusion"); } } // Load the user notes HTML file [this is called from the HTML // file directly on every page] Depends on UA version function loadNotes() { // Workaround for IE6 bug if (ie_version_major == 6) { document.write('<script src="mk:@MSITStore:' + chmfile_path + 'php_manual_notes.chm::/_filelist.js"></script>'); } // Load notes in otherwise else { notesIframe(); } } // Prints out the inline frame for the notes HTML file function notesIframe() { // Notes buffer for user notes to display on this page document.write( '<iframe name="nbuff" style="display:none" src="mk:@MSITStore:' + chmfile_path + 'php_manual_notes.chm::/' + chmfile_page + '"></iframe>' ); } // ============================================================================= // Context menu code // Rewrite context menu according to the current environment. The only parameter // indicates that this is the first display or not. [called once from // prefHandler() and then every time before a context menu needs to be displayed] function contextMenuRewrite(first) { // Set selection to null value (we will check // if there is a current selection now) context_selrange = null; // Our menu layer is invisible initially menuHTML = '<table width="150" cellspacing="2" cellpadding="0">'; // Write out a table row for all menu points for (i in prefs_context_names) { // Label and abstract implementation label = prefs_context_names[i]; impl = prefs_context_values[i]; // Special display items start with an underscore if (impl.substring(0,1) == "_") { // Find the special printout needed switch (impl) { // Menu separator case "_Separator_": menuHTML += '<tr><td bgcolor="#000000"><img src="_pixel.gif" ' + 'width="100%" height="1"></td></tr>'; break; // Google search box (only printed in online mode) case "_GoogleSearch_": if (prefs_online) { menuHTML += '<tr><td style="background-color: #f5f5f5;"><form action="http://www.google.com/search" class="thin"' + 'onsubmit="contextMenuClose()" method="GET" target="_blank">' + '<img src="_google.gif" align="absmiddle" alt="Google"><input type="text" name="q" ' + 'style="width:120px;"></form></td></tr>'; } break; // Alltheweb search box (only printed in online mode) case "_ATWSearch_": if (prefs_online) { menuHTML += '<tr><td style="background-color: #f5f5f5;"><form action="http://www.alltheweb.com/search" class="thin"' + 'onsubmit="contextMenuClose()" method="GET" target="_blank">' + '<img src="_atw.gif" align="absmiddle" alt="AlltheWeb"><input name="cat" type="hidden" value="web">' + '<input type="text" name="query" style="width:120px;"></form></td></tr>'; } break; // This should not be accessed in any valid situation, but // is here to at least print out something in case of error... default: menuHTML += contextLink(i, label); break; } } // Special functions that may need to be printed out conditionally else if (impl.substring(impl.length-2) == "()") { // Do something depending on function name switch (impl.substring(0, impl.length-2)) { // Copy selection case "copySelection": // For the first time there is actually no document... if (document.selection && !first) { context_selrange = document.selection.createRange(); if (context_selrange.text.length > 0) { menuHTML += contextLink(i, label); } } break; // Google or AlltheWeb search for selection (need to be in online mode) case "searchSelGoogle": case "searchSelATW": // For the first time there is actually no document... if (document.selection && !first) { context_selrange = document.selection.createRange(); if (context_selrange.text.length > 0 && prefs_online) { menuHTML += contextLink(i, label); } } break; // Misc functions like print() and selectAll() default: menuHTML += contextLink(i, label); break; } } // Not a special display or function, // so simply print out the line for this item else { menuHTML += contextLink(i, label); } } // End table menuHTML += '</table>'; // We do not have this element if this is the first run, but we // need to rewrite the element content if it's not the first time if (first) { document.write(menuHTML); } else { document.all['contextMenu'].innerHTML = menuHTML; } } // Write out one context menu link table row [called from contextMenuRewrite()] function contextLink (number, label) { return '<tr><td nowrap onmouseover="this.style.backgroundColor=\'#c0c0c0\';" ' + 'onmouseout="this.style.backgroundColor=\'#f5f5f5\';" ' + 'onclick="contextParse(' + number + ')" ' + 'style="cursor:hand; background-color: #f5f5f5;"><p class="context">' + label + '</p></td></tr>'; } // Parse the jump string, and do appropriate action [called when the user // clicks on a table row in the context menu] function contextParse(i) { var control = prefs_context_values[i]; // If the control string ends in (), then it is // a function, not a file name if (control.substring(control.length-2) == "()") { // Switch by function name switch (control.substring(0, control.length-2)) { // Print out this page case "print": print(); break; // Copy the selection from the current document case "copySelection": if (context_selrange != null) { context_selrange.execCommand("Copy"); } break; // Search for the selected text on Google case "searchSelGoogle": sel = contextGetSelection(); if (sel != '') { window.open('http://www.google.com/search?q=' + escape(sel)); } break; // Search for the selected text on AlltheWeb case "searchSelATW": sel = contextGetSelection(); if (sel != '') { window.open('http://www.alltheweb.com/search?cat=web&query=' + escape(sel)); } break; // Go back and forward in history case "back": history.back(); break; case "forward": history.forward(); break; // Refresh page dispplay case "refresh": window.location.reload(true); break; // Select all text in the document case "selectAll": document.body.createTextRange().select(); break; // View source of current page case "viewSource": window.location = "view-source:" + window.location.href; break; // This should never be accessed, but here to alert if there is an error default: alert('This context menu function is not supported'); break; } } // If this is not a "function call", then jump // to that page in the CHM or outside of it else { // Link with protocol if (control.indexOf(":") > 0) { window.open(control); } // Link without protocol else { location = control; } } } // Returns the current selection [called when a context menu // item is clicked involving an operation on a selection] function contextGetSelection() { // Test if anything is selected if (context_selrange != null && context_selrange.text.length > 0) { return context_selrange.text; } else { alert("Nothing is selected"); return ""; } } // Handle mousedown events in a document [called when a mouse click // is issued on a document] function contextMenu(e) { // Close context menu, if it was open before contextMenuClose(); // We enable the original context menu with the CTRL key if // then user selected to override it if (event.ctrlKey && prefs_context_override) { return true; } // We also enable the original one, if it is not overriden // and the user have not pressed the CTRL key else if (!event.ctrlKey && !prefs_context_override) { return true; } // Otherwise (overriden or overriden+CTRL) we display our menu else { // Rewrite contents of context menu contextMenuRewrite(false); // IE6+ is in standard compliant mode because of our !DOCTYPE // [ http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/doctype.asp ] // so we need to use the "html" tag instead of the "body" to measure scrolled distance. // For older browsers, we need to use the body. if (ie_version_major >= 6) { delement = document.body.parentElement; } else { delement = document.body; } // Find out if menu would be outside the window rightedge = delement.clientWidth - event.clientX; bottomedge = delement.clientHeight - event.clientY; // Shortcut for the context menu cmenu = document.all['contextMenu']; // Place menu to the right position, not to extend the window size if (rightedge < cmenu.offsetWidth) { cmenu.style.left = delement.scrollLeft + event.clientX - cmenu.offsetWidth; } else { cmenu.style.left = delement.scrollLeft + event.clientX; } if (bottomedge < cmenu.offsetHeight) { cmenu.style.top = delement.scrollTop + event.clientY - cmenu.offsetHeight; } else { cmenu.style.top = delement.scrollTop + event.clientY; } // Show menu cmenu.style.visibility = "visible"; return false; } } // Closes the context menu [called when the time is out] function contextMenuClose() { // Hide context menu document.all['contextMenu'].style.visibility = "hidden"; } // Sets timeout for menu close [called by document onclick event] function contextMenuCloseTimeout() { // Support for form focus event (form in context menu) if (document.activeElement.tagName != 'INPUT') { setTimeout('contextMenuClose()', 100); } } // ============================================================================= // Example clipboard copy links // Copy an example from a HTML container with id "example_" + number [called // when a user clicks on that copy link] function copyExample(number) { // moveToElementText is only supported in IE5 and up if (ie_version_major < 5) { alert("Example copy is not supported in this browser"); } else { BodyRange = document.body.createTextRange(); BodyRange.moveToElementText(document.all['example_' + number]); BodyRange.execCommand("Copy"); } } // ============================================================================= // Default skin functions // Display the page without online functions if they are disabled function defaultDisplayPage() { // Do not display online functions links if they are disabled if (!prefs_online) { document.all['navOnline'].style.display = 'none'; } // Show page container document.all['pageContent'].style.display = 'block'; } // ============================================================================= // Main JS program flow // Default vars for all the pages [generated] this_lang = 'en'; this_date = '2002-11-09'; // Vars for online menu of this particular page this_page = location.pathname.substring(location.pathname.lastIndexOf("/")+1); this_page_php = this_page.substring(0, this_page.lastIndexOf(".")) + '.php'; // Create the chmfile vars for this HTML page chmfile_fullname = ""; chmfile_name = ""; chmfile_path = ""; chmfile_page = ""; getCHMFile(); // Default values for preferences (no online functions, no // special context menu, low skin) prefs_online = false; prefs_context_override = false; prefs_skin = "Low"; // Support for selection sensitive context menus context_selrange = null; // Find out major and minor IE version number var ie_version_start = navigator.appVersion.indexOf("MSIE"); var ie_version_end = navigator.appVersion.indexOf(".", ie_version_start); ie_version_major = parseInt(navigator.appVersion.substring(ie_version_start+5, ie_version_end)); ie_version_minor = parseInt(navigator.appMinorVersion); // Get the preferences file from outside document.write('<script src="' + chmfile_path + 'php_manual_prefs.js"><'+ '/script>'); Index: phpdoc/htmlhelp/suppfiles/html/_skin_hi.js +++ phpdoc/htmlhelp/suppfiles/html/_skin_hi.js // This is an inline skin file for the "Hi" skin of the PHP Manual. // This file should be inside the Manual CHM file. // Get style sheet file document.write( // Get the lo style file '<link rel="stylesheet" type="text/css" href="_style_hi.css">' ); // Display the page to the user function displayPage() { defaultDisplayPage(); } Index: phpdoc/htmlhelp/suppfiles/html/_skin_lo.js +++ phpdoc/htmlhelp/suppfiles/html/_skin_lo.js // This is an inline skin file for the "Lo" skin of the PHP Manual. // This file should be inside the Manual CHM file. // Get style sheet file document.write( // Get the lo style file '<link rel="stylesheet" type="text/css" href="_style_lo.css">' ); // Display the page to the user function displayPage() { defaultDisplayPage(); } Index: phpdoc/htmlhelp/suppfiles/html/_style_hi.css +++ phpdoc/htmlhelp/suppfiles/html/_style_hi.css /* general body style */ body { background-color: #FFFFFF; color: #000000; margin: 0px 0px 0px 0px; } /* most of the page content use these fonts */ p, h1, h2, h3, h4, h5, td, tr, li, dt, dd, masterheader, .subheader, .formalhead, .seealso, .context, .codelink { font-family: Verdana, Arial, Helvetica, sans-serif; } /* most of the page text is 12px size */ p, h4, h5, td, tr, li, dt, dd, code, subheader, .formalhead, .seealso { font-size: 12px; } /* different size values for headings */ h1 { font-size: 18px; } h2 { font-size: 16px; } h3 { font-size: 14px; } /* black is the default color for all common text parts */ p, h1, h2, h3, h4, h5, code, formalhead, .subheader { /* HI (.masterheader deleted) */ color: #000000; } /* margin and style settings for headers */ h1, h2, h3, h4, h5, .formalhead { font-style: normal; font-weight: bold; margin-left: 10px; margin-top: 20px; } /* general paragraphs in text */ p { line-height: 16px; margin: 5px 10px 5px 10px; } /* .examplecode is used to print out PHP code, output, etc. .codelink is the link to copy the code to clipboard */ examplecode, .codelink { font-weight: normal; margin-right: 10px; margin-left: 10px; } examplecode { padding: 5px 5px 5px 50px; /* HI (20px => 50px) */ background-image: url(_code.gif); /* HI (new) */ background-repeat: no-repeat; /* HI (new) */ background-color: #dcdcdc; font-family: "Courier New", Courier, mono; } codelink { font-size: 10px; text-align: right; margin-bottom: 5px; } /* table rows and cells */ td, tr { font-style: normal; font-weight: normal; } /* colors for table rows and cells */ td { background-color: #DDDDDD; } tr { background-color: #CCCCCC; } /* list type elements */ li, dt { margin-bottom: 5px; } ul, dl { margin-top: 10px; margin-bottom: 10px; } dl dt, dt dl, dd dl, dl dd { margin-left: 10px; } /* for tables used to contain data */ datatable { margin-right: 20px; margin-left: 20px; } /* the absolute master header of a page */ masterheader { /* HI (borders deleted) */ font-size: 24px; /* HI (18px => 24px) */ font-weight: bold; background-color: #666699; /* HI (9999FF => 666699) */ padding: 10px 5px 10px 20px; /* HI (changed) */ margin: 0px 0px 0px 0px; color: #FFFFFF; /* HI (new) */ background-image: url(_masterheader.jpg); /* HI (new) */ background-repeat: repeat-x; /* HI (new) */ } /* subheader used on function and class pages */ subheader { font-style: normal; font-weight: bold; background-color: #DDDDFF; margin: 0px 0px 15px 0px; /* HI (changed) */ padding: 8px 5px 8px 20px; /* HI (changed) */ line-height: 20px; /* HI (changed) */ background-image: url(_subheader.gif); /* HI (new) */ background-repeat: repeat-x; /* HI (new) */ border-color: black black #666666; /* HI (new) */ border-style: solid; /* HI (new) */ border-width: 0px 0px 1px 0px; /* HI (new) */ } /* navigational table at the bottom of the pages */ navigation { background-color: #DDDDDD; border-color: #666666 black black; border-style: solid; border-width: 1px 0px 0px 0px; margin-top: 20px; } /* admonitional blocks */ note, .warning, .caution { margin: 20px 20px 20px 20px; border: 1px #333333 solid; border-style: solid; border-width: 1px 1px 1px 1px; padding: 5px 5px 5px 50px; /* HI (10 => 50) */ } note { background-image: url(_note.gif); /* HI (new) */ background-repeat: no-repeat; /* HI (new) */ } /* color for warning and caution boxes */ warning, .caution { background-color: #FFFF99; background-image: url(_warning.gif); /* HI (new) */ background-repeat: no-repeat; /* HI (new) */ } /* paragraphs inside notes */ note, .warning, .caution, .note p, .warning p, .caution p { font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14px; } /* see also lists, usually at the bottom of pages */ seealso { font-style: normal; font-weight: normal; color: #000000; background-color: #DDDDFF; margin: 20px 20px 0px 20px; /* HI (changed) */ padding: 5px 5px 5px 15px; /* HI (10px => 15px) */ } /* user note header text */ unheader { background-color: #CCCCCC; padding: 2px 10px 2px 15px; /* HI (changed) */ margin-bottom: 1px; margin-top: 5px; /* HI (new) */ } /* user note text */ untext { background-color: #DDDDDD; margin-top: 0px; margin-bottom: 10px; padding: 2px 10px 5px 15px; /* HI (changed) */ } /* colors for color code highliting */ cs { color: #CC0000 } /* string */ cc { color: #b8860b } /* comment */ ck { color: #006600 } /* keyword */ cd { color: #0000CC } /* default */ /* Style elements for the context menu */ context { font-size: 12px; color: #000000; margin: 2px 2px 2px 3px; line-height: 16px; } #contextMenu { position: absolute; width: 150; border: 1px solid #000000; visibility: hidden; background-color: #f5f5f5; } /* Form elements (used in context menu) */ form.thin { margin-bottom: 0px; margin-top: 0px; } /* Author group on frontpage */ div.authorgroup { text-align: center; } Index: phpdoc/htmlhelp/suppfiles/html/_style_lo.css +++ phpdoc/htmlhelp/suppfiles/html/_style_lo.css /* general body style */ body { background-color: #FFFFFF; color: #000000; margin: 0px 0px 0px 0px; } /* most of the page content use these fonts */ p, h1, h2, h3, h4, h5, td, tr, li, dt, dd, masterheader, .subheader, .formalhead, .seealso, .context, .codelink { font-family: Verdana, Arial, Helvetica, sans-serif; } /* most of the page text is 12px size */ p, h4, h5, td, tr, li, dt, dd, code, subheader, .formalhead, .seealso { font-size: 12px; } /* different size values for headings */ h1 { font-size: 18px; } h2 { font-size: 16px; } h3 { font-size: 14px; } /* black is the default color for all common text parts */ p, h1, h2, h3, h4, h5, code, .masterheader, formalhead, .subheader { color: #000000; } /* margin and style settings for headers */ h1, h2, h3, h4, h5, .formalhead { font-style: normal; font-weight: bold; margin-left: 10px; margin-top: 20px; } /* general paragraphs in text */ p { line-height: 16px; margin: 5px 10px 5px 10px; } /* .examplecode is used to print out PHP code, output, etc. .codelink is the link to copy the code to clipboard */ examplecode, .codelink { font-weight: normal; margin-right: 10px; margin-left: 10px; } examplecode { padding: 5px 5px 5px 20px; background-color: #dcdcdc; font-family: "Courier New", Courier, mono; } codelink { font-size: 10px; text-align: right; margin-bottom: 5px; } /* table rows and cells */ td, tr { font-style: normal; font-weight: normal; } /* colors for table rows and cells */ td { background-color: #DDDDDD; } tr { background-color: #CCCCCC; } /* list type elements */ li, dt { margin-bottom: 5px; } ul, dl { margin-top: 10px; margin-bottom: 10px; } dl { margin-left: 10px; } /* for tables used to contain data */ datatable { margin-right: 20px; margin-left: 20px; } /* the absolute master header of a page */ masterheader { font-size: 18px; font-weight: bold; background-color: #9999FF; padding: 5px 5px 5px 10px; border-color: black black #6666CC; border-style: solid; border-width: 0px 0px 1px 0px; margin: 0px 0px 0px 0px; } /* subheader used on function and class pages */ subheader { font-style: normal; font-weight: bold; background-color: #DDDDFF; margin: 0px 0px 5px 0px; padding: 5px 5px 5px 10px; line-height: 18px; } /* navigational table at the bottom of the pages */ navigation { background-color: #DDDDDD; border-color: #666666 black black; border-style: solid; border-width: 1px 0px 0px 0px; margin-top: 20px; } /* admonitional blocks */ note, .warning, .caution { margin: 20px 20px 20px 20px; border: #333333; border-style: solid; border-width: 1px 1px 1px 1px; padding: 5px 5px 5px 10px; } /* color for warning and caution boxes */ warning, .caution { background-color: #FFFF99 } /* paragraphs inside notes */ note, .warning, .caution, .note p, .warning p, .caution p { font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14px; } /* see also lists, usually at the bottom of pages */ seealso { font-style: normal; font-weight: normal; color: #000000; background-color: #DDDDFF; margin: 20px 0px 0px 0px; padding: 5px 5px 5px 10px; } /* user note header text */ unheader { background-color: #CCCCCC; padding: 1px 10px 1px 5px; margin-bottom: 1px } /* user note text */ untext { background-color: #DDDDDD; margin-top: 0px; padding: 2px 10px 2px 5px; } /* colors for color code highliting */ cs { color: #CC0000 } /* string */ cc { color: #b8860b } /* comment */ ck { color: #006600 } /* keyword */ cd { color: #0000CC } /* default */ /* Style elements for the context menu */ context { font-size: 12px; color: #000000; margin: 2px 2px 2px 3px; line-height: 16px; } #contextMenu { position: absolute; width: 150; border: 1px solid #000000; visibility: hidden; background-color: #f5f5f5; } /* Form elements (used in context menu) */ form.thin { margin-bottom: 0px; margin-top: 0px; } /* Author group on frontpage */ div.authorgroup { text-align: center; } Index: phpdoc/htmlhelp/suppfiles/notes/_index.html +++ phpdoc/htmlhelp/suppfiles/notes/_index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>PHP Manual - User Notes</title> </head> <body> <p> The objective of this file is to store PHP Manual User Notes on your machine. This file is not intended to be used for viewing. </p> <p> Please put this file into the directory of your local php_manual_LANG.chm, and so you will be able to read user notes viewing that file. </p> </body> </html> Index: phpdoc/htmlhelp/suppfiles/notes/_style.css +++ phpdoc/htmlhelp/suppfiles/notes/_style.css body { background-color: #FFFFFF; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px} unheader { background-color: #CCCCCC; padding-left: 5px; padding-top: 1px; padding-right: 10px; padding-bottom: 1px; margin-bottom: 1px} untext { background-color: #DDDDDD; margin-top: 0px; padding-top: 2px; padding-right: 10px; padding-bottom: 2px; padding-left: 5px} Index: phpdoc/htmlhelp/suppfiles/prefs/context.ini +++ phpdoc/htmlhelp/suppfiles/prefs/context.ini # ================================================= # PHP Manual CHM version context menu configuration # ================================================= # Genaral functions # ----------------- [context_item] display = "Copy selection to clipboard" implementation = "copySelection()" [context_item] display = "Select all" implementation = "selectAll()" [context_item] display = "Print page" implementation = "print()" [context_item] display = "Back" implementation = "back()" [context_item] display = "Forward" implementation = "forward()" [context_item] display = "Refresh" implementation = "refresh()" # Page jump options # ----------------- [context_item] display = "Manual TOC" implementation = "index.html" [context_item] display = "Function Reference" implementation = "funcref.html" [context_item] display = "HTML Help Edition" implementation = "chmonly.html" [context_item] display = "Functions Index" implementation = "indexes.html" [context_item] display = "PHP-GTK home" implementation = "http://gtk.php.net/" [context_item] display = "PEAR home" implementation = "http://pear.php.net/" # Search engine quickforms and selections # --------------------------------------- [context_item] display = "Google SearchBox" implementation = "_GoogleSearch_" [context_item] display = "Google Search Selection" implementation = "searchSelGoogle()" [context_item] display = "AlltheWeb SearchBox" implementation = "_ATWSearch_" [context_item] display = "AlltheWeb Search Selection" implementation = "searchSelATW()" Index: phpdoc/htmlhelp/suppfiles/prefs/php_manual_prefs.js +++ phpdoc/htmlhelp/suppfiles/prefs/php_manual_prefs.js prefs_online = true; prefs_mirror = "http://us.php.net/"; prefs_context_override = true; prefs_context_names = Array( "Manual TOC", "Function Reference", "Functions Index", "_Separator_", "Copy selection to clipboard", "Google Search Selection", "AlltheWeb SearchBox" ); prefs_context_values = Array( "index.html", "funcref.html", "indexes.html", "_Separator_", "copySelection()", "searchSelGoogle()", "_ATWSearch_" ); prefs_skin = "Low"; prefHandler(); Index: phpdoc/htmlhelp/suppfiles/quickref/php_manual.ico +++ phpdoc/htmlhelp/suppfiles/quickref/php_manual.ico h &