Add HTML and php pages
[twirssi-net-twitter-lite.git] / html / index.php
diff --git a/html/index.php b/html/index.php
new file mode 100644 (file)
index 0000000..f1c5fb1
--- /dev/null
@@ -0,0 +1,133 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\r
+       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
+\r
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\r
+<head>\r
+       <title>Twirssi: a twitter script for irssi</title>\r
+       <style type="text/css" media="all">\r
+\r
+       code {\r
+               font-size: medium;\r
+       }\r
+       \r
+       body {\r
+               font: 0.8em arial, helvetica, sans-serif;\r
+       }\r
+       \r
+    #header ul {\r
+               list-style: none;\r
+               padding: 0;\r
+               margin: 0;\r
+    }\r
+    \r
+       #header li {\r
+               float: left;\r
+               border: 1px solid white;\r
+               margin: 0;\r
+               font-weight: bold;\r
+               font-size: larger;\r
+               border-left-width: 0;\r
+    }\r
+    \r
+       #header a {\r
+               text-decoration: none;\r
+               display: block;\r
+               background: #70a0f0;\r
+               padding: 0.24em 1em;\r
+               color: white;\r
+               width: 8em;\r
+               text-align: center;\r
+    }\r
+\r
+       #header a:visited {\r
+               color: white;\r
+       }\r
+       \r
+       #header a:hover {\r
+               background: #3c68e5;\r
+       }\r
+       \r
+       #header #selected {\r
+       }\r
+       \r
+       #header #selected a {\r
+               position: relative;\r
+               background: white;\r
+               color: black;\r
+       }\r
+       \r
+       #content {\r
+               clear: both;\r
+               padding: 0.5em 1em;\r
+\r
+       }\r
+       \r
+       h1 {\r
+               margin: 0;\r
+               padding: 0 0 1em 0;\r
+       }\r
+\r
+       </style>\r
+       \r
+</head>\r
+\r
+<body bgcolor="#80a0ff">\r
+\r
+\r
+\r
+<p id="title" height="150">\r
+       <a href="index.php"><img src="twirssibird.png" alt="Twirssi logo" style="float:left;margin-right:5px" border="0"/></a>\r
+       <font size="6" color="white"><b>Twirssi</b></font>\r
+       <font size="5"><div style="text-indent:1em;color:#3c68e5">a twitter script for irssi</div></font>\r
+</p>\r
+\r
+<div id="header">\r
+       <ul>\r
+               <?php\r
+                       $about = $installing = $using = $history = "";\r
+                       if (isset($_GET['installing'])) {\r
+                               $installing = "id=\"selected\"";\r
+                               $content = "installing.html";\r
+                       } elseif (isset($_GET['using'])) {\r
+                               $using = "id=\"selected\"";\r
+                               $content = "using.html";\r
+                       } elseif (isset($_GET['history'])) {\r
+                               $history = "id=\"selected\"";\r
+                               $content = "history.html";\r
+                       } elseif (isset($_GET['tweets'])) {\r
+                               $tweets = "id=\"selected\"";\r
+                               $content = "tweets.html";\r
+                       } elseif (isset($_GET['merch'])) {\r
+                               $content = "merch.html";\r
+                       } else {\r
+                               $about = "id=\"selected\"";\r
+                               $content = "about.html";\r
+                       }\r
+               ?>\r
+               <li <?=$about?> style="border-left-width: 1px"><a href="index.php">About</a></li>\r
+               <li <?=$installing?>><a href="?installing">Installing</a></li>\r
+               <li <?=$using?>><a href="?using">Using</a></li>\r
+               <li <?=$history?>><a href="?history">Version History</a></li>\r
+               <li <?=$tweets?>><a href="?tweets">Recent Tweets</a></li>\r
+       </ul>\r
+</div>\r
+\r
+\r
+<div id="content" style="background:white">\r
+       <p>\r
+       <?=file_get_contents($content)?>\r
+       </p>\r
+</div>\r
+\r
+<script type="text/javascript">\r
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");\r
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));\r
+</script>\r
+<script type="text/javascript">\r
+try {\r
+    var pageTracker = _gat._getTracker("UA-190820-2");\r
+    pageTracker._trackPageview();\r
+} catch(err) {}</script>\r
+</body>\r
+</html>\r
+\r