[Phpfreechat-svn] SF.net SVN: phpfreechat: [463] trunk
Status: Beta
Brought to you by:
kerphi
From: <ne...@us...> - 2006-04-24 14:01:33
|
Revision: 463 Author: nemako Date: 2006-04-24 07:01:11 -0700 (Mon, 24 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=463&view=rev Log Message: ----------- Add pfc website templates for index.php and demo/index.php Modified Paths: -------------- trunk/demo/index.php trunk/index.php Added Paths: ----------- trunk/style/ trunk/style/bulle.png trunk/style/check_off.png trunk/style/check_on.png trunk/style/content.css trunk/style/footer.css trunk/style/generic.css trunk/style/header.css trunk/style/logo_88x31.gif trunk/style/menu.css trunk/style/show.js trunk/style/valid-css.png trunk/style/valid-xhtml.png Modified: trunk/demo/index.php =================================================================== --- trunk/demo/index.php 2006-04-20 20:26:36 UTC (rev 462) +++ trunk/demo/index.php 2006-04-24 14:01:11 UTC (rev 463) @@ -1,12 +1,53 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> + <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>phpFreeChat Demos</title> + <link rel="stylesheet" title="classic" type="text/css" href="../style/generic.css"> + <link rel="stylesheet" title="classic" type="text/css" href="../style/header.css"> + <link rel="stylesheet" title="classic" type="text/css" href="../style/footer.css"> + <link rel="stylesheet" title="classic" type="text/css" href="../style/menu.css"> + <link rel="stylesheet" title="classic" type="text/css" href="../style/content.css"> + </head> + <body> + +<div class="header"> + <h1>phpFreeChat - Demos</h1> + <img alt="logo bulle" src="../style/bulle.png" class="logo2"> +</div> + +<div class="menu"> + <ul> + <li class="sub title">General</li> + <li> + <ul class="sub"> + <li class="item"> + <a href="../index.php">PFC Index</a> + </li> + </ul> + </li> + <li class="sub title">Demos</li> + <li> + <ul class="sub"> + <li class="item"> + <a href="#Miscellaneous">Miscellaneous</a> + </li> + <li class="item"> + <a href="#Themes">Themes</a> + </li> + <li class="item"> + <a href="#Translations">Translations</a> + </li> + </ul> + </li> + </ul> + <p class="partner"> + <a href="http://www.phpfreechat.net"><img alt="logo big" src="../style/logo_88x31.gif"></a> + </p> +</div> + +<div class="content"> - <head> - <meta http-equiv="content-type" content="text/html; charset=utf-8" /> - <title>phpFreeChat demos</title> - </head> - - <body> <h2>Miscellaneous</h2> <ul> @@ -68,6 +109,18 @@ <li><a href="demo41_in_greek.php">demo41 - the greek translation of the chat</a></li> <li><a href="demo42_in_chinese_from_taiwan.php">demo42 - the Chinese from taiwan (traditional Chinese) translation of the chat</a></li> </ul> - </body> - -</html> + +</div> + +<div class="footer"> + <div class="valid"> + <a href="http://validator.w3.org/check?uri=referer"> + <img alt="Valid XHTML 1.0!" src="../style/valid-xhtml.png"> + </a> + <a href="http://jigsaw.w3.org/css-validator/check/referer"> + <img alt="Valid CSS!" src="../style/valid-css.png"> + </a> + </div> + <p>\xA92006 phpFreeChat</p> + </div> +</body></html> \ No newline at end of file Modified: trunk/index.php =================================================================== --- trunk/index.php 2006-04-20 20:26:36 UTC (rev 462) +++ trunk/index.php 2006-04-24 14:01:11 UTC (rev 463) @@ -7,29 +7,77 @@ $chat = new phpFreeChat( $params ); ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" - "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <meta http-equiv="content-type" content="text/html; charset=utf-8" /> - <title>phpFreeChat sources index</title> - <?php $chat->printJavascript(); ?> - <?php $chat->printStyle(); ?> - </head> - - <body> - <ul> - <li><a href="demo/">Demos</a></li> - <li><a href="README.en">Documentation - readme [en]</a></li> - <li><a href="README.fr">Documentation - readme [fr]</a></li> - <li><a href="INSTALL.en">Documentation - install [en]</a></li> - <li><a href="INSTALL.fr">Documentation - install [fr]</a></li> - </ul> - - <p>See the quick demo :</p> - <?php $chat->printChat(); ?> - - </body> - -</html> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=utf-8"> + <title>phpFreeChat Sources Index</title> + <link rel="stylesheet" title="classic" type="text/css" href="style/generic.css"> + <link rel="stylesheet" title="classic" type="text/css" href="style/header.css"> + <link rel="stylesheet" title="classic" type="text/css" href="style/footer.css"> + <link rel="stylesheet" title="classic" type="text/css" href="style/menu.css"> + <link rel="stylesheet" title="classic" type="text/css" href="style/content.css"> + <?php $chat->printJavascript(); ?> + <?php $chat->printStyle(); ?> + </head> + <body> + +<div class="header"> + <h1>phpFreeChat - Sources Index</h1> + <img alt="logo bulle" src="style/bulle.png" class="logo2"> +</div> + +<div class="menu"> + <ul> + <li class="sub title">General</li> + <li> + <ul class="sub"> + <li class="item"> + <a href="demo/">Demos</a> + </li> + <li class="item"> + <a href="admin/">Administration</a> + </li> + </ul> + </li> + <li class="sub title">Documentation</li> + <li> + <ul> + <li class="item"> + <a href="README.en">readme [en]</a> + </li> + <li class="item"> + <a href="README.fr">readme [fr]</a> + </li> + <li class="item"> + <a href="INSTALL.en">install [en]</a> + </li> + <li class="item"> + <a href="INSTALL.fr">install [fr]</a> + </li> + </ul> + </li> + </ul> + <p class="partner"> + <a href="http://www.phpfreechat.net"><img alt="logo big" src="style/logo_88x31.gif"></a> + </p> +</div> + +<div class="content"> + <h2>See the quick demo</h2> + <?php $chat->printChat(); ?> +</div> + +<div class="footer"> + <div class="valid"> + <a href="http://validator.w3.org/check?uri=referer"> + <img alt="Valid XHTML 1.0!" src="style/valid-xhtml.png"> + </a> + <a href="http://jigsaw.w3.org/css-validator/check/referer"> + <img alt="Valid CSS!" src="style/valid-css.png"> + </a> + </div> + <p>\xA92006 phpFreeChat</p> + </div> +</body></html> \ No newline at end of file Added: trunk/style/bulle.png =================================================================== (Binary files differ) Property changes on: trunk/style/bulle.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/style/check_off.png =================================================================== (Binary files differ) Property changes on: trunk/style/check_off.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/style/check_on.png =================================================================== (Binary files differ) Property changes on: trunk/style/check_on.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/style/content.css =================================================================== --- trunk/style/content.css (rev 0) +++ trunk/style/content.css 2006-04-24 14:01:11 UTC (rev 463) @@ -0,0 +1,22 @@ +/* --- CONTENT --- */ +div.content { + margin: 0.5em; + padding: 1em; + margin-left: 12.2em; + background-color: #FFF; + border: 1px #acd233 solid; + min-height: 40em; +} +div.content * { margin-top: 0.5em; margin-bottom: 0.5em; } +div.content h2 { border-bottom: 1px #444 solid; } +div.content h3 { text-decoration: underline; font-size: 100%; margin: 1em 0 1em 0; } +div.content a:link, div.content a:visited, div.content a:hover, div.content a:visited{ color: #0081ac; } +div.content code { background-color: #EFE; border: 1px #444 dotted; } +div.content pre { padding: 1em; background-color: #EFE; border: 1px #444 dotted; } +div.content ul { margin-left: 3em; } +div.content ol { margin-left: 3em; } +div.content dd { margin-left: 3em; } +div.content dt { font-weight: bold; margin: 2em 0 2em 0; } +div.content .abstract { border: 2px #999 solid; background-color: #EEE; padding: 1em; color: #000; text-align: justify; } + + Added: trunk/style/footer.css =================================================================== --- trunk/style/footer.css (rev 0) +++ trunk/style/footer.css 2006-04-24 14:01:11 UTC (rev 463) @@ -0,0 +1,21 @@ +/* --- FOOTER --- */ +div.footer { + position: relative; + text-align: center; + background-color: #99cc33; + color: #FFF; + border-top: 1px #acd233 solid; + border-bottom: 1px #acd233 solid; + font-size: 80%; + clear: both; + padding-left: 12em; +} +div.footer div.valid { + display: inline; + float: right; +} +div.footer div.rss { + position: absolute; + left: 5px; + float: left; +} Added: trunk/style/generic.css =================================================================== --- trunk/style/generic.css (rev 0) +++ trunk/style/generic.css 2006-04-24 14:01:11 UTC (rev 463) @@ -0,0 +1,20 @@ +/* --- GENERIC --- */ +* { padding: 0; margin: 0; } +a img { border: none; } +body { + color: #000000; + background: #339933; + font-family: Verdana, Sans-Serif; + font-size: 100%; + padding: 0; + margin: 0; +} + +a:link, a:visited, a:hover { + font-weight: bold; + text-decoration: none; +} +a:hover { + text-decoration: underline; +} +.nospace { word-spacing: -0.35em; } Added: trunk/style/header.css =================================================================== --- trunk/style/header.css (rev 0) +++ trunk/style/header.css 2006-04-24 14:01:11 UTC (rev 463) @@ -0,0 +1,23 @@ +/* --- HEADER --- */ +div.header { + position: relative; + display: block; + background-color: #99cc33; + border-bottom: 1px #acd233 solid; + height: 45px; +} +div.header h1 { + color: #FFF; + text-align: center; +} +div.header .logo2 { + position: absolute; + bottom: 0; + right: 0; +} +div.header .flags { + position: absolute; + bottom: 2px; + left: 0px; +} +div.header .flags a { margin-left: 0.5em; } Added: trunk/style/logo_88x31.gif =================================================================== (Binary files differ) Property changes on: trunk/style/logo_88x31.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/style/menu.css =================================================================== --- trunk/style/menu.css (rev 0) +++ trunk/style/menu.css 2006-04-24 14:01:11 UTC (rev 463) @@ -0,0 +1,63 @@ +/* --- MENU --- */ +div.menu { + position: absolute; + top: 55px; + left: 0.5em; +/* float: left; + margin-top: 0.5em; + margin-left: 0.4em;*/ + color: #FFF; + width: 11em; + text-align: center; +} +div.menu * { font-size: 95%; } +div.menu ul { + background-color: #99cc33; + border: 1px #acd233 solid; + text-align: left; + list-style: none; +} +div.menu li { + display: inline; +} +div.menu img { margin-top: 10px; } +div.menu .title { + padding: 4px; + text-align: center; + color: #888; + background-color: #FFF; +} +div.menu li.sub { + font-weight: bold; + padding: 0; + margin: 0; + display: block; +} +div.menu li a { + display: block; + margin: 0px; + padding: 4px; + padding-left: 10px; + width: auto; +} +div.menu li.item { + display: inline; +} +div.menu a:link, div.menu a:visited, div.menu a:hover { color: #FFF; } +div.menu a:visited { color: #FFF; } +div.menu li.item a:hover, div.menu ul.sub li.item a:hover { + display: block; + background-color: #acd233; + text-decoration: none; +} + +div.menu .partner { + margin-top: 5px; +} +div.menu div.rating { + margin-top: 10px; +} +div.menu div.rating table, div.menu div.rating table td { + text-align: center; + margin: auto; +} Added: trunk/style/show.js =================================================================== --- trunk/style/show.js (rev 0) +++ trunk/style/show.js 2006-04-24 14:01:11 UTC (rev 463) @@ -0,0 +1,34 @@ +function getE(id) +{ + if(document.getElementById) { + return document.getElementById(id); + } else if(document.all) { + return document.all[id]; + } else return; +} + +function openClose(id,mode) +{ + element = getE(id); + img = getE('img_'+id); + + if(element.style) { + if(mode == 0) { + if(element.style.display == 'block' ) { + element.style.display = 'none'; + img.src = 'pics/plus.gif'; + } else { + element.style.display = 'block'; + img.src = 'pics/moins.gif'; + } + } else if(mode == 1) { + element.style.display = 'block'; + img.src = 'pics/moins.gif'; + } else if(mode == -1) { + element.style.display = 'none'; + img.src = 'pics/plus.gif'; + } + } +} + + Added: trunk/style/valid-css.png =================================================================== (Binary files differ) Property changes on: trunk/style/valid-css.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/style/valid-xhtml.png =================================================================== (Binary files differ) Property changes on: trunk/style/valid-xhtml.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |