Thread: [phpWebApp-commits] CVS: documentation/templates submenu.css,NONE,1.1.2.1 submenu.html,NONE,1.1.2.1
Brought to you by:
dashohoxha
Update of /cvsroot/phpwebapp/documentation/templates In directory usw-pr-cvs1:/tmp/cvs-serv20719/templates Modified Files: Tag: gablin_1 developer_docs.html main.html styles.css Added Files: Tag: gablin_1 submenu.css submenu.html submenu.js submenu.php Log Message: --- NEW FILE: submenu.css --- #submenu-tabs { float: left; padding: 5px; border: none; } .submenu-between-tabs { } .submenu-tab { font-size: 80%; border: outset 2px rgb(255,255,255); padding: 0; margin: 0 4px; width: 156px; } .submenu-tab-current { font-size: 80%; border: outset 2px rgb(239,223,255); padding: 0; margin: 0 4px; width: 156px; } .submenu-tab a { display: block; font-family: sans-serif; width: 150px; margin: 0; padding: 3px; color: rgb(0,0,127); background-color: rgb(255,255,255); text-transform: none; text-decoration: none; } .submenu-tab-current a { display: block; font-family: sans-serif; width: 150px; margin: 0; padding: 3px; color: rgb(0,0,0); background-color: rgb(239,223,255); text-transform: none; text-decoration: none; } .submenu-tab-current a:after { content: " > "; text-decoration: none; color: rgb(128,128,128); } .submenu-tab a:hover { border: inset 3px rgb(255,255,255); padding: 0; } .submenu-tab-current a:hover { border: inset 3px rgb(239,223,255); padding: 0; } --- NEW FILE: submenu.html --- <WebBox ID="submenu"> <script language="javascript" src="{{dotslash}}submenu.js"></script> <link rel="stylesheet" type="text/css" href="{{./}}submenu.css" /> {{submenu_html}} </WebBox> --- NEW FILE: submenu.js --- function submenuGo(tab_id) { GoTo("thisPage?event=submenu.select(tab="+tab_id+")"); } --- NEW FILE: submenu.php --- <? function submenu_eventHandler($event) { global $session; switch ($event->name) { case "select": $tab_id = $event->args["tab"]; $session->Vars["submenuSelectedTab"] = $tab_id; break; } } function submenu_onLoad() { global $session; $current_url = WebApp::getVar("./"); $current_url = str_replace(APP_PATH,"",$current_url); $current_url = APP_URL.$current_url; $cu = ereg_replace("/[^/]+/\.\./","/",$current_url); while ( $cu != $current_url ) { $current_url = $cu; $cu = ereg_replace("/[^/]+/\.\./","/",$current_url); } $session->Vars["dotslash"] = $current_url; if (!isset($session->Vars["submenuBaseURL"])) { // no base URL was preset $current_path = WebApp::getVar("./"); $session->Vars["submenuBaseURL"] = $current_path; } if (!isset($session->Vars["submenuSelectedTab"])) { //read the tab items $path = $session->Vars["submenuBaseURL"]; include $path."submenu_items.php"; //set the first tab item as selected $first_tab_item = key($tab_items); $session->Vars["submenuSelectedTab"] = $first_tab_item; } } function submenu_onRender() { $tabs = get_tabs_html(); WebApp::addVar("submenu_html", $tabs); } function get_tabs_html() { global $session; //read the tab items $path = $session->Vars["submenuBaseURL"]; include $path."submenu_items.php"; $selected = $session->Vars["submenuSelectedTab"]; $tabs = "<div id=\"submenu-tabs\">\n"; while ( list($id,$item) = each($tab_items) ) { $tabs .= "\t<div class=\""; $tabs .= ($id==$selected ? "submenu-tab-current" : "submenu-tab"); $tabs .= "\"><a href=\"javascript:submenuGo('".$id."')\">"; $tabs .= $item."</a></div>\n"; } $tabs .= "</div>\n"; return $tabs; } ?> Index: developer_docs.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/developer_docs.html,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -C2 -d -r1.1 -r1.1.4.1 *** developer_docs.html 15 Dec 2001 06:04:25 -0000 1.1 --- developer_docs.html 13 Apr 2002 19:18:03 -0000 1.1.4.1 *************** *** 1,5 **** ! <br> ! <li> <a href="{{APP_URL}}uml_model/phpWebApp.html" target="new"> ! Logical View (UML Model)</a> ! <li> . . . ! --- 1,8 ---- ! <ul> ! <!--li><a href="{{APP_URL}}uml_model/phpWebApp.html" target="_new" ! >Logical View (UML Model)</a></li--> ! <li><a href="javascript:alert('Sorry... not available, yet.');" ! >Logical View (UML Model)</a></li> ! </ul> ! <hr /> ! <b>.<br />.<br />.</b> Index: main.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/main.html,v retrieving revision 1.2.4.1 retrieving revision 1.2.4.2 diff -C2 -d -r1.2.4.1 -r1.2.4.2 *** main.html 1 Apr 2002 22:46:44 -0000 1.2.4.1 --- main.html 13 Apr 2002 19:18:04 -0000 1.2.4.2 *************** *** 6,17 **** </head><body> ! <img src="http://sourceforge.net/sflogo.php?group_id=41147" ! width="88" height="31" border="0" alt="SourceForge Logo" id="sf-logo" /> ! <!--img src="graphics/white.gif" width="88" height="31" border="0" alt="SourceForge Logo" id="sf-logo" /--> <Include SRC="{{./}}mainMenu/mainMenu.html" /> - - <!--table width="100%" align="center" cellspacing="0" cellpadding="0" border="0" --> <div id="content"> <Include SRC="{{./}}{{content_file}}" /> --- 6,15 ---- </head><body> ! <!--img src="http://sourceforge.net/sflogo.php?group_id=41147" width="88" height="31" border="0" alt="SourceForge Logo" id="sf-logo" /--> + <img src="graphics/white.gif" + width="88" height="31" border="0" alt="SourceForge Logo" id="sf-logo" /> <Include SRC="{{./}}mainMenu/mainMenu.html" /> <div id="content"> <Include SRC="{{./}}{{content_file}}" /> Index: styles.css =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/styles.css,v retrieving revision 1.1.1.1.4.1 retrieving revision 1.1.1.1.4.2 diff -C2 -d -r1.1.1.1.4.1 -r1.1.1.1.4.2 *** styles.css 1 Apr 2002 22:46:44 -0000 1.1.1.1.4.1 --- styles.css 13 Apr 2002 19:18:04 -0000 1.1.1.1.4.2 *************** *** 6,23 **** position: fixed; float: right; ! top: 5px; ! right: 5px; z-index: 10; } #content { ! position: absolute; ! z-index: 0; ! left: 5px; ! right: 5px; ! top: 65px; ! padding: 10px 2px 2px 2px; border: 1px solid rgb(0,0,0); background-color: rgb(239,239,255); } h2 { text-align: left; --- 6,24 ---- position: fixed; float: right; ! top: 4px; ! right: 4px; z-index: 10; } #content { ! margin: 0 4px; ! padding-left: 2px; ! padding-right: 2px; ! padding-bottom: 2px; border: 1px solid rgb(0,0,0); background-color: rgb(239,239,255); } + div#content { /* not read by Netscape 4.xx */ + padding-top: 80px; + } h2 { text-align: left; *************** *** 25,31 **** font-weight: 600; font-family: sans-serif; ! padding: 0; background-color: rgb(239,223,255); } a { color: rgb(92,64,255); --- 26,70 ---- font-weight: 600; font-family: sans-serif; ! padding: 4px; ! color: rgb(0,0,0); background-color: rgb(239,223,255); } + h3 { + text-align: center; + font-size: 1.2em; + font-weight: 600; + font-family: sans-serif; + padding: 1px; + margin: 0 20px; + color: rgb(0,0,0); + border: groove 4px rgb(239,223,255); + letter-spacing: -0.1ex; + } + h4 { + text-align: left; + font-size: 1.0em; + font-weight: 600; + font-family: sans-serif; + padding: 0; + margin-left: 20px; + color: rgb(0,0,0); + } + h5 { + text-align: left; + font-size: 0.8em; + font-weight: 600; + font-family: sans-serif; + padding: 0; + margin-left: 20px; + color: rgb(0,0,0); + letter-spacing: -0.1ex; + } + h2 a, h3 a, h4 a, h5 a { + color: rgb(92,64,255); + text-decoration: none; + } + h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover { + text-decoration: underline; + } a { color: rgb(92,64,255); *************** *** 37,38 **** --- 76,93 ---- background-color: rgb(223,239,255); } + hr { + clear: both; + } + td { + vertical-align: top; + } + pre, code { + font-family: monospace; + font-size: 90%; + color: rgb(63,255,255); + background-color: rgb(31,15,127); + } + pre { + padding: 1px 20px; + margin: 0 1px; + } \ No newline at end of file |