[xiph-commits] r9860 - in trunk: . iSpliceWebPage
iSpliceWebPage/images iSpliceWebPage/internal
iSpliceWebPage/internal/images iSpliceWebPage/javascript
davidb at svn.xiph.org
davidb at svn.xiph.org
Mon Aug 29 13:37:44 PDT 2005
Author: davidb
Date: 2005-08-29 13:37:26 -0700 (Mon, 29 Aug 2005)
New Revision: 9860
Added:
trunk/iSpliceWebPage/
trunk/iSpliceWebPage/LicenseAgreement.php
trunk/iSpliceWebPage/downloads.php
trunk/iSpliceWebPage/htm.clss
trunk/iSpliceWebPage/iSplice1.jpg
trunk/iSpliceWebPage/iSpliceLicense.php
trunk/iSpliceWebPage/iSpliceScreens.php
trunk/iSpliceWebPage/iSplicefull.jpg
trunk/iSpliceWebPage/images/
trunk/iSpliceWebPage/images/font_large.gif
trunk/iSpliceWebPage/images/font_medium.gif
trunk/iSpliceWebPage/images/font_small.gif
trunk/iSpliceWebPage/index.php
trunk/iSpliceWebPage/internal/
trunk/iSpliceWebPage/internal/htm.clss
trunk/iSpliceWebPage/internal/iSpliceList.php
trunk/iSpliceWebPage/internal/images/
trunk/iSpliceWebPage/internal/images/font_large.gif
trunk/iSpliceWebPage/internal/images/font_medium.gif
trunk/iSpliceWebPage/internal/images/font_small.gif
trunk/iSpliceWebPage/internal/index.php
trunk/iSpliceWebPage/internal/skidoo_too.css
trunk/iSpliceWebPage/internal/skidoo_too_print.css
trunk/iSpliceWebPage/javascript/
trunk/iSpliceWebPage/javascript/ruthsarian_utilities.js
trunk/iSpliceWebPage/licenseprocess.php
trunk/iSpliceWebPage/phpinfo.php
trunk/iSpliceWebPage/skidoo_too.css
trunk/iSpliceWebPage/skidoo_too_print.css
trunk/iSpliceWebPage/template.php
Log:
Check in the first iSplice Web Site incarnation
Added: trunk/iSpliceWebPage/LicenseAgreement.php
===================================================================
--- trunk/iSpliceWebPage/LicenseAgreement.php 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/LicenseAgreement.php 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,265 @@
+<?php
+
+include( "htm.clss");
+
+#create objects
+$sht = new htm();
+$message = "iSplice Annodex Creator";
+$sht->html_begin($message,null);
+
+$header = "<h1>iSplice: The Annodex Creator</h1>";
+
+$sht->html_top($header, null);
+
+#<!--- middle (main content) column begin -->
+
+
+$message = '
+ <h2>CSIRO COMMERCIAL SOFTWARE LICENCE</h2>
+
+ <h2>FOR THE SOFTWARE KNOWN AS "iSplice"</h2>
+
+<p><br><b>1. Meaning of Words</b><b></b>
+<p><b>\'CSIRO\'</b> means the Commonwealth Scientific and Industrial Research
+Organisation of Limestone Avenue, Campbell, Australian Capital Territory,
+Australia acting through its Division of Mathematical and Information Sciences,
+Building E6B, Macquarie University Campus, Herring Road, North Ryde NSW 2113,
+Australia
+<br>
+<br><b>\'Fee\'</b> means the amount of upfront payment in Australian dollars
+that CSIRO charges for providing the Software as published on the Software
+website at <a href="http://www.aidabrowser.com/iSplice">http://www.aidabrowser.com/iSplice</a><a href="http://www.aidabrowser.com/iSplice"></a>
+
+<p><b>\'Intellectual Property\'</b> means any copyright work or other work
+(including any work or item created in the future), patentable invention,
+design, circuit layout, new plant variety, trademark, know-how or confidential
+information and any other intellectual property defined in Article 2 of
+the Convention establishing the the world Intellectual Property Organisation
+of July 1967.
+<p><b>\'Licence\'</b> means this licence agreement between You and CSIRO
+comprising (a) the terms that You accept by selecting the "I Agree" icon
+and submitting the Registration to CSIRO; and (b) the Purchase Order Form
+if used. This licence agreement covers both the single server network
+and multiple platform uses.
+<p><b>\'Purchase Order Form\'</b> means the iSplice Software order form available
+at the Software website at <a href="http://www.aidabrowser.com/iSplice">http://www.aidabrowser.com/iSplice</a>
+which You are to complete, sign and return to CSIRO for a manual purchase
+order.
+<p><b>\'Payment Arrangements\'</b> means the method by which You wish to
+pay for the Software and which is either (a) the online purchase method
+using the secure payment gateway at the Software website or (b) the payment
+method You are to nominate when You return the signed Purchase Order Form
+to CSIRO.
+
+<p><b>\'Software\'</b> means the Annodex Creation package known
+as <b>"iSplice"</b>, comprising executable files, dynamic link libraries and
+documentation, implemented as a package for the multimedia
+environment.
+<p><b>\'Registration\'</b> means the registration with CSIRO which You submit
+to CSIRO by providing the information and details requested on the Software
+website at <a href="http://www.aidabrowser.com/iSplice">http://www.aidabrowser.com/iSplice</a>
+<p><b>\'You\'</b> means you the licensee and any permitted user(s) of the
+Software.
+
+<p><b>2. The Licence CSIRO grants to You</b>
+<p>CSIRO grants You a non-exclusive, non-transferable, perpetual licence
+to use the Software in the Field for your research and/or business purposes
+in accordance with the terms of this Licence only.
+<p>CSIRO reserves the right to refuse to licence the Software to any person
+without giving reasons thereof. If CSIRO does not approve the Registration
+or Purchase Order Form submitted by You, your sole remedy will be the refund
+of any Fee paid to CSIRO.
+<p>If CSIRO accepts your Registration and Purchase Order Form under these
+Licence terms, CSIRO will provide the Software as soon as practicable by
+sending You an email to your specified email address (or as otherwise nominated
+by You) to allow download of the Software for your selected platform.
+<br>
+<br>This Licence is formed when You have clicked the "I Agree" icon, submitted
+the Registration and Purchase Order Form and CSIRO approves by validating
+your Registration.
+<p><b>3. What you must do to submit the Registration and Purchase Order
+Form</b>
+<p>You must provide and ensure the accuracy and completeness of your Registration
+and Purchase Order Form.
+<p>You must select the "I Agree" icon at the end of this Licence to indicate
+your agreement to the terms of the Licence. You must submit the Registration
+after You have selected the "I Agree" button to register for the provision
+of Software. You must complete and return the Purchase Order Form
+to CSIRO.
+
+<p>You agree that CSIRO may retain all Registration and Purchase Order
+Form data provided by You for its record-keeping purposes and You must
+read CSIRO\'s privacy statement and policy on the use of its websites which
+is made available to You at the Software website.
+<p> If You are employed and intend using the Software in connection
+with your employment duties then You should only accept this Licence if
+your employer has authorised You to do so on its behalf. By accepting
+this Licence You are warranting to CSIRO that You are authorised to do
+so on behalf of your employer.
+<p><b>4. Use of names</b>
+<p>You must not without CSIRO\'s written permission use the name, any trademark
+or logo of CSIRO to claim any sponsorship, endorsement, approval or affiliation
+or other association with CSIRO by virtue of this Licence.
+<p><b>5. Proprietary rights</b>
+<p>Title, ownership and Intellectual Property rights in the Software shall
+remain with CSIRO. Nothing in this Licence transfers to You ownership
+of Intellectual rights in the Software. You must not remove or alter
+any logo, copyright or other proprietary notices, symbols or labels in
+the Software.
+<p><b>6. Fee and Payment</b>
+<p>You must pay CSIRO the Fee in accordance with the Payment Arrangements.
+
+You should note that the Fee is in Australian dollars and does not cover
+any upgrades or new versions of the Software.
+<p><b>7. Your rights to use the Software</b>
+<p>You may use the Software for the Purpose strictly in accordance with
+the terms of the Licence only. You may make copies of the Software
+only as reasonably required for backup purposes.
+<p>You must not:
+<br>(a) reverse engineer, decompile or disassemble the Software;
+<br>(b) adapt, extend, enhance or make any other improvements to the Software
+without CSIRO\'s prior written consent;
+<br>(c) distribute, sell, sublicense or otherwise make the whole or part
+of the Software available for use by a third party;
+<br>(d) allow the Software to be combined with or incorporated into other
+software; or
+<br>(e) release the Software on the Internet or any other public communication
+network.
+<br>
+<p><b>8. Conditions on multiple simultaneous users</b>
+
+<p>For multiple platform use of the Software, You undertake to ensure that
+the permitted users are aware of the terms of this Licence prior to use
+and comply with all the obligations imposed by this Licence. Permitted
+users must be the licensee\'s employees, contractors, agents or students
+only and You remain at all times responsible for their actions or omissions
+in relation to use of the Software.
+<p>You must not allow more than the permitted number of users covered by
+the Fee to use the Software at any one time during the term of this Licence.
+<p>If CSIRO requests in writing, You must provide CSIRO with:
+<br>(a) relevant information and records for the sole purpose of monitoring
+your compliance with this Licence; or
+<br>(b) a complete record to date of the permitted users to whom You have
+allow access and use of the Software.
+<p><b>9. Software Support</b>
+<p>Software support will be your responsibility and CSIRO has no obligation
+to provide to You any bug fix support services in relation to the Software.
+However, CSIRO will reasonably respond at its absolute discretion during
+business hours to incident reports emailed by You to admin at www.annodex.net
+<p>Where CSIRO addresses a defect or provides a new feature through the
+release of a new version of the Software, You may make separate arrangements
+to purchase the new version.
+<p><b>10. CSIRO limits its liability</b>
+
+<p>You are responsible for determining that the Software is suitable for
+your own use or purpose.
+<p>You assume all risk for any loss or damage resulting directly or indirectly
+from your use of or inability to use the Software.
+<p>TO THE EXTENT PERMITTED BY LAW, CSIRO EXCLUDES ALL LIABILITY FOR ANY
+LOSS OR DAMAGE (INCLUDING DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL LOSS
+OR DAMAGE) ARISING FROM YOUR USE OF THE SOFTWARE OR OTHERWISE IN CONNECTION
+WITH THIS LICENCE.
+<p>WHERE ANY STATUTE OR LAW IMPLIES WARRANTIES OR CONDITIONS INTO THIS
+LICENCE, WHICH CANNOT BE LAWFULLY MODIFIED OR EXCLUDED UNDER THIS LICENCE
+(\'NON-EXCLUDABLE CONDITION\') THEN THIS LICENCE WILL BE READ SUBJECT TO
+SUCH NON-EXCLUDABLE CONDITION. WHERE SUCH STATUTE OR LAW PERMITS,
+CSIRO LIMITS ITS LIABILITY TO YOU FOR BREACH OF SUCH NON-EXCLUDABLE CONDITION
+AT ITS OPTION TO:
+<p>(I) RE-SUPPLYING THE SOFTWARE; OR
+<br>(II) REFUNDING THE AMOUNTS PAID BY YOU FOR THE SOFTWARE.
+<p><b>11. CSIRO makes no representations</b>
+<p>CSIRO warrants that for 30 days following the date of supply of the
+Software, it will operate substantially in accordance with the Software
+documentation. If during this warranty period the Software fails
+to operate substantially in accordance with the Software documentation,
+CSIRO will supply another copy of the Software at its cost.
+<p>Except as expressly warranted above, CSIRO does not warrant or make
+any representations:
+<br>(a) that the Software is of merchantable quality, suitable for your
+use, or is fit for any other purpose;
+<br>(b) that operation of the Software will be-uninterrupted or that the
+Software is error-free;
+<br>(c) regarding the results of any use of the whole or any part of the
+Software;
+
+<br>(d) as to the accuracy, reliability or content of any data, information,
+service or goods obtained through any use of the whole or any part of the
+Software;
+<br>(e) as to the accuracy, reliability or content of any Internet sites
+addressed by the URLs in the database forming part of the Software; or
+<br>(f) that the use of the Software will not infringe the intellectual
+property rights of a third party.
+<p><b>12. The end of the Licence</b>
+<p>This Licence ends if You and CSIRO by mutual agreement in writing end
+it.
+<p>CSIRO may terminate this Licence immediately by giving You notice if
+You breach any provision of this Licence and fail to remedy the breach
+within 30 days of CSIRO requiring You to do so.
+<p>CSIRO may also terminate this Licence immediately by giving You written
+notice if You attempt to assign any of the rights arising out of this Licence
+to a third party or if You are subject to any form of insolvency administration.
+<p>On termination, all your rights to use the Software cease and You must
+destroy all copies of the Software in your possession.
+<p><b>13. Resolving disputes</b>
+<p>In any dispute arising out of or in connection with this Licence, You
+agree to first negotiate in good faith with a senior CSIRO officer to resolve
+it. If the dispute is not resolved by those negotiations within 30
+days, You agree that the matter may be referred to the Australian Commercial
+Dispute Centre Limited (\'ACDC\') for resolution by mediation and if necessary
+by arbitration in accordance with the Conciliation Rules of the ACDC.
+<p><b>14. The governing law</b>
+<p>This Licence is governed by and construed in accordance with the laws
+of New South Wales, Australia.
+
+<p><b>15. The entire licence</b>
+<p>This Licence overrides the provisions of any purchase order, invoice
+or other documentation that You may issue in relation to the Software.
+<p>
+';
+
+ $UI = $_GET['UI'];
+ $location = "iSpliceLicense.php?UI=$UI";
+
+ $message .= '
+ <br><br>
+<!-- <a href="iSplicelicence_terms_5Aug2005.pdf"><b>View printable Licence</b></a> in PDF format -->
+ </p>
+ <form>
+ <p> By pressing the accept button the user acknowledges that they<br>
+ have read and agree to the terms and conditions of the licence agreement.
+ </p>
+ <p>
+ <input type="button" value="I Accept" name="accept" onclick="location = \''.$location.'\';">
+ <input type="button" value="Reject" name="reject" onclick="location = \'index.html\';">
+ </p>
+ </form>
+
+ </p> </p>
+ ';
+
+$message .= '
+ <p align="center"><font size="2">
+ <b> Last updated: </b>August 05, 2005.<br><br> Copyright 2005, CSIRO Australia
+ <br>Use of this web site and information available from<br>
+ it is subject to our
+ <a href="http://www.csiro.au/legalnotices/disclaimer.html">
+ <font size="2">Legal Notice and Disclaimer</font> </a>
+ and <a href="http://www.csiro.au/index.asp?type=aboutCSIRO&xml=privacy&stylesheet=generic">
+ <font size="2">Privacy Statement</font></a></p></font>
+';
+
+$sht->html_middle($message);
+
+#do left column
+
+$sht->html_left(null);
+
+# right column
+
+$sht->html_right(null);
+
+#footer
+
+$sht->html_footer();
+
+?>
\ No newline at end of file
Added: trunk/iSpliceWebPage/downloads.php
===================================================================
--- trunk/iSpliceWebPage/downloads.php 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/downloads.php 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,46 @@
+<?php
+
+include( "htm.clss");
+
+#create objects
+$sht = new htm();
+$sht->html_begin("iSplice Annodex Creator",null);
+
+$sht->html_top("<h1>iSplice: The Annodex Creator</h1>", null);
+
+#<!--- middle (main content) column begin -->
+$middle = "
+<h2>iSplice Downloads</h2>
+<p>
+<table border=1 cellpadding=5>
+<tr>
+ <td>Version</td><td>Release Date</td><td>Link</td>
+</tr>
+<tr>
+ <td>iSplice 1.10</td><td>20th August 2005</td><td><a href=\"./iSplice-1.10.zip\">download</a></td>
+</tr>
+</table>
+</p>
+<BR>
+You will need a license key if you don't already have one.<BR>
+<BR>
+To get a license key you will need to enter the MAC address of the PC you will be installing the software on.<BR><BR>
+If you know your MAC address you can go directly to the license page and enter it there. Alternatively, you can install
+the iSplice software, follow the links within the application to get a license, and we will fill in the MAC address for you.
+
+<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
+";
+
+$sht->html_middle($middle);
+
+$sht->html_left(null);
+
+#<!--- right column begin -->
+
+$sht->html_right(null);
+
+#<!--- right column end -->
+
+$sht->html_footer();
+
+?>
\ No newline at end of file
Added: trunk/iSpliceWebPage/htm.clss
===================================================================
--- trunk/iSpliceWebPage/htm.clss 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/htm.clss 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,243 @@
+<?php
+# This class provdes methods
+# for creating html pages
+
+class htm
+ {
+
+
+ #function for printing html header tags
+ function html_begin($title, $anyscript)
+ {
+
+$message = '
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <style type="text/css"><!--
+ @import "skidoo_too.css";
+ --></style>
+ <link rel="stylesheet" href="./skidoo_too_print.css" type="text/css" media="print">
+ <script type="text/javascript" src="./javascript/ruthsarian_utilities.js"></script>
+ <script type="text/javascript">
+';
+
+$message .= "
+ <!--
+ var font_sizes = new Array( 100, 110, 120 );
+ var current_font_size = 0;
+ if ( ( typeof( NN_reloadPage ) ).toLowerCase() != 'undefined' ) { NN_reloadPage( true ); }
+ if ( ( typeof( opacity_init ) ).toLowerCase() != 'undefined' ) { opacity_init(); }
+ if ( ( typeof( set_min_width ) ).toLowerCase() != 'undefined' ) { set_min_width( 'pageWrapper' , 600 ); }
+ if ( ( typeof( loadFontSize ) ).toLowerCase() != 'undefined' ) { event_attach( 'onload' , loadFontSize ); }
+ //-->
+ </script>
+";
+
+ echo $message;
+
+ if ($title)
+ {
+ print ("<title>". $title ."</title>\n");
+ }
+
+ if ($anyscript)
+ {
+ print ("$anyscript");
+ }
+
+ print("</head>\n");
+ }
+
+#function for printing the html top menu items
+#uses default if $toplist is null
+function html_top($header, $toplist)
+{
+ if ($toplist == null)
+ {
+ # use default
+ $toplist = '
+ <ul
+ ><li class="hide"
+ ><a class="hide" href="../../">Hidden</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href=".?UI='.$_GET['UI'].'">Home</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href="./downloads.php?UI='.$_GET['UI'].'">Download</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href="./LicenseAgreement.php?UI='.$_GET['UI'].'">Licenses</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href="./iSpliceScreens.php?UI='.$_GET['UI'].'">Screen Shots</a
+ ><span class="divider"> : </span
+ ></li
+
+ ></ul>
+ ';
+ }
+
+ $message = '
+ <body>
+ <div id="pageWrapper">
+ <div id="masthead" class="inside">
+
+<!-- masthead content begin -->
+ '.$header.'
+
+<!-- masthead content end -->
+
+ <hr class="hide">
+ </div>
+ <div class="hnav">
+
+<!--
+ you must preserve the (lack of) whitespace between elements when creating
+ your own horizontal navigation elements, otherwise the extra whitespace
+ will break the visual layout. although how it breaks (tiny spaces between
+ each element) is an effect that some may desire.
+-->
+ '.$toplist.'
+ <hr class="hide">
+ </div>
+ ';
+
+ echo $message;
+}
+
+#function for printing the html top middle section
+function html_middle($middle)
+{
+ $message = '
+ <div id="outerColumnContainer">
+ <div id="innerColumnContainer">
+ <div id="SOWrap">
+ <div id="middleColumn">
+ <div class="inside">
+ '.$middle.'
+ <hr class="hide">
+ </div>
+ </div>
+ ';
+
+ echo $message;
+}
+
+
+#function for printing the html left menu items
+function html_left($leftlist)
+{
+ # put start in
+ $message = '
+ <div id="leftColumn">
+ <div class="inside">
+ <div class="vnav">
+ '.$leftlist.'
+ </div>
+ ';
+
+ # only include resizing if there are items in the left column
+ #if ($leftlist == "")
+ {
+ $message .= "
+ <script type=\"text/javascript\">
+ <!--
+ var browser = new browser_detect();
+ if ( browser.versionMajor > 4 || !( browser.isIE || browser.isNS ) )
+ {
+ /* only offer style/font changing to version 5 and later browsers
+ * which have javascript enabled. curiously, if you print this out
+ * in NS4, NS4 breaks for some reason.
+ */
+ document.write(' \
+ <p class=\"fontsize-set\"> \
+ <a href=\"#\" onclick=\"setFontSize(0); return false;\" \
+ ><img src=\"images/font_small.gif\" width=\"17\" height=\"21\" \
+ alt=\"Small Font\" title=\"Small Font\" \
+ /><\/a> \
+ <a href=\"#\" onclick=\"setFontSize(1); return false;\" \
+ ><img src=\"images/font_medium.gif\" width=\"17\" height=\"21\" \
+ alt=\"Medium Font\" title=\"Medium Font\" \
+ /><\/a> \
+ <a href=\"#\" onclick=\"setFontSize(2); return false;\" \
+ ><img src=\"images/font_large.gif\" width=\"17\" height=\"21\" \
+ alt=\"Large Font\" title=\"Large Font\" \
+ /><\/a> \
+ <\/p> \
+ ');
+ }
+ }
+ //-->
+ </script>
+ ";
+ }
+
+ # And finish off
+ $message .= '
+ <hr class="hide">
+ </div>
+ </div>
+ <div class="clear">
+ </div>
+ </div>
+ ';
+
+ echo $message;
+}
+
+
+#function for printing html right
+function html_right($rightlist)
+{
+ $message = '
+ <div id="rightColumn">
+ <div class="inside">
+ '.$rightlist.'
+ <hr class="hide">
+ </div>
+ </div>
+ ';
+
+ echo $message;
+}
+
+
+#function for printing html footer
+function html_footer()
+{
+ $message = '
+ <div class="clear"></div>
+ </div>
+ </div>
+
+ <div id="footer" class="inside">
+
+ <!-- footer begin -->
+
+ <p style="margin:0;">
+ © CSIRO 2005.<br>
+ </p>
+
+ <!-- footer end -->
+
+ <hr class="hide">
+ </div>
+ </div>
+ </body>
+</html>
+';
+ echo $message;
+}
+
+}
+
+?>
\ No newline at end of file
Added: trunk/iSpliceWebPage/iSplice1.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/iSpliceWebPage/iSplice1.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/iSpliceWebPage/iSpliceLicense.php
===================================================================
--- trunk/iSpliceWebPage/iSpliceLicense.php 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/iSpliceLicense.php 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,133 @@
+<?php
+include( "htm.clss");
+
+#create objects
+$sht = new htm();
+$message = "iSplice Annodex Creator";
+$sht->html_begin($message,null);
+
+#change top menus here if you need to
+$header = "<h1>iSplice: The Annodex Creator</h1>";
+
+$sht->html_top($header, null);
+
+#do middle
+
+$message = '
+<p>Welcome to the iSplice Registration Page</p>
+<p>
+
+<form action="LicenseProcess.php" method="post">
+
+MAC Address is: ';
+
+$message .= $_GET['UI'];
+
+$message .= '
+<BR>
+ <input type="text" name="MACAddress" value=
+ ';
+
+$message .= $_GET['UI'];
+$message .= '
+ >
+
+ <p>Product: iSplice</p>
+<table>
+<tr>
+ <td align=right>* first name:</td>
+ <td><input type="text" name="first_name" size=40 /></td>
+</td>
+<tr>
+ <td align=right>* last name:</td>
+ <td><input type="text" name="last_name" size=40 /></td>
+</tr>
+<tr>
+ <td align=right>* company:</td>
+ <td><input type="text" name="company" size=40 /></td>
+</tr>
+<tr>
+ <td align=right>contact number:</td>
+ <td><input type="text" name="contact_number" size=40 /></td>
+</tr>
+<tr>
+ <td align=right>* country:</td>
+ <td><input type="text" name="country" size=40 /></td>
+</tr>
+<tr>
+ <td align=right>* email address:</td>
+ <td><input type="text" name="email_address_1" size=40 /></td>
+</tr>
+<tr>
+ <td align=right>* email address (again):</td>
+ <td><input type="text" name="email_address_2" size=40 /></td>
+</tr>
+<tr>
+ <td align=right></td>
+ <td><input type="checkbox" name="annodex_emails" size=40 />Please email me update information related to Annodex/iSplice</td>
+</tr>
+<tr></tr>
+';
+
+ if ($_POST[SourceInput] != 'iSpliceAdministrator')
+ {
+ $message .= '
+ <tr>
+ <td></td>
+ <td><input type="submit" Value="Get 30 day Trial License" /></td>
+ </tr>
+ <tr>
+ <td><input type="hidden" align=right value=30 name="number_of_days" /> </td>
+ <td><input type="hidden" align=right value=50 name="number_of_runs" /></td>
+ <td><input type="hidden" value="false" name="admin_request"/></td>
+ </tr>
+ ';
+ }
+ else
+ {
+ $message .= '
+ <tr height=20>
+ </tr>
+ <tr>
+ <td align=right style="color:red">* number of days (0=full license)</td>
+ <td><input type="text" align=right value=30 name="number_of_days" size=5 style="color:red;background-color:#ffcccc"/></td>
+ </tr>
+ <tr>
+ <td align=right style="color:red">* number of runs (0=full license)</td>
+ <td><input type="text" align=right value=50 name="number_of_runs" size=5 style="color:red;background-color:#ffcccc"/></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><input type="submit" Value="Get Special License"/></td>
+ </tr>
+ <tr>
+ <td><input type="hidden" value="true" name="admin_request"/></td>
+ </tr>
+ ';
+ }
+
+$message .= '
+</table>
+
+</form>
+
+Contact us: <a href="mailto:administrator at annodex.net">iSplice Administrator</a>
+
+<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
+';
+
+$sht->html_middle($message);
+
+#do left column
+
+$sht->html_left(null);
+
+# right column
+
+$sht->html_right(null);
+
+#footer
+
+$sht->html_footer();
+
+?>
\ No newline at end of file
Added: trunk/iSpliceWebPage/iSpliceScreens.php
===================================================================
--- trunk/iSpliceWebPage/iSpliceScreens.php 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/iSpliceScreens.php 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,38 @@
+<?php
+include( "htm.clss");
+
+#create objects
+$sht = new htm();
+$message = "iSplice Annodex Creator";
+$sht->html_begin($message,null);
+
+#change top menus here if you need to
+$header = "<h1>iSplice: The Annodex Creator</h1>";
+
+$sht->html_top($header, null);
+
+#<!--- middle (main content) column begin -->
+$middle = "
+ <h2>iSplice Screen Shots</h2>
+ <p>
+ <img src=isplice1.jpg>
+ </p>
+ <BR>
+ <BR><BR><BR><BR><BR><BR><BR><BR>
+ ";
+
+$sht->html_middle($middle);
+
+#do left column
+
+$sht->html_left(null);
+
+# right column
+
+$sht->html_right(null);
+
+#footer
+
+$sht->html_footer();
+
+?>
\ No newline at end of file
Added: trunk/iSpliceWebPage/iSplicefull.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/iSpliceWebPage/iSplicefull.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/iSpliceWebPage/images/font_large.gif
===================================================================
(Binary files differ)
Property changes on: trunk/iSpliceWebPage/images/font_large.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/iSpliceWebPage/images/font_medium.gif
===================================================================
(Binary files differ)
Property changes on: trunk/iSpliceWebPage/images/font_medium.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/iSpliceWebPage/images/font_small.gif
===================================================================
(Binary files differ)
Property changes on: trunk/iSpliceWebPage/images/font_small.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/iSpliceWebPage/index.php
===================================================================
--- trunk/iSpliceWebPage/index.php 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/index.php 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,64 @@
+<?php
+
+include( "htm.clss");
+
+#create objects
+$sht = new htm();
+$sht->html_begin("iSplice Annodex Creator",null);
+
+$sht->html_top("<h1>iSplice: The Annodex Creator</h1>", null);
+
+#<!--- middle (main content) column begin -->
+$middle = "
+<h2>iSplice is here!</h2>
+<p>
+iSplice the Anoodex creator is now here and available for download. At this stage,
+30 day trial licenses are available, and we will be making full licenses available
+in the not too distant future.
+</p>
+
+<h2>Latest News</h2>
+<p>
+iSplice version 1.10 was released 20th August 2005.
+</p>
+<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
+";
+
+$sht->html_middle($middle);
+
+#do left
+$leftlist = '
+ <h3>Links</h3>
+ <ul
+ ><li
+ ><a href="http://www.csiro.au">CSIRO</a
+ ></li
+ ><li
+ ><a href="http://www.centie.net.au">CeNTie</a
+ ></li
+ ><li
+ ><a href="http://www.annodex.net">Annodex</a
+ ></li
+ ></ul>
+ ';
+
+
+$sht->html_left($leftlist);
+
+#do right
+$rightlist = '
+<p>
+iSplice is a web authoring tool to help you create Annodex files. To learn more about Annodex
+<a href="http://www.annodex.net">click here</a>.
+</p>
+<P>
+The Current version of iSplice can be found <a href="./downloads.php?UI='.$_GET['UI'].'">here</a>
+</p>
+';
+
+$sht->html_right($rightlist);
+
+#do footer
+$sht->html_footer();
+
+?>
\ No newline at end of file
Added: trunk/iSpliceWebPage/internal/htm.clss
===================================================================
--- trunk/iSpliceWebPage/internal/htm.clss 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/internal/htm.clss 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,243 @@
+<?php
+# This class provdes methods
+# for creating html pages
+
+class htm
+ {
+
+
+ #function for printing html header tags
+ function html_begin($title, $anyscript)
+ {
+
+$message = '
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <style type="text/css"><!--
+ @import "skidoo_too.css";
+ --></style>
+ <link rel="stylesheet" href="./skidoo_too_print.css" type="text/css" media="print">
+ <script type="text/javascript" src="./javascript/ruthsarian_utilities.js"></script>
+ <script type="text/javascript">
+';
+
+$message .= "
+ <!--
+ var font_sizes = new Array( 100, 110, 120 );
+ var current_font_size = 0;
+ if ( ( typeof( NN_reloadPage ) ).toLowerCase() != 'undefined' ) { NN_reloadPage( true ); }
+ if ( ( typeof( opacity_init ) ).toLowerCase() != 'undefined' ) { opacity_init(); }
+ if ( ( typeof( set_min_width ) ).toLowerCase() != 'undefined' ) { set_min_width( 'pageWrapper' , 600 ); }
+ if ( ( typeof( loadFontSize ) ).toLowerCase() != 'undefined' ) { event_attach( 'onload' , loadFontSize ); }
+ //-->
+ </script>
+";
+
+ echo $message;
+
+ if ($title)
+ {
+ print ("<title>". $title ."</title>\n");
+ }
+
+ if ($anyscript)
+ {
+ print ("$anyscript");
+ }
+
+ print("</head>\n");
+ }
+
+#function for printing the html top menu items
+#uses default if $toplist is null
+function html_top($header, $toplist)
+{
+ if ($toplist == null)
+ {
+ # use default
+ $toplist = '
+ <ul
+ ><li class="hide"
+ ><a class="hide" href="../../">Hidden</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href=".?UI='.$_GET['UI'].'">Home</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href="./downloads.php?UI='.$_GET['UI'].'">Download</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href="./LicenseAgreement.php?UI='.$_GET['UI'].'">Licenses</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href="./iSpliceScreens.php?UI='.$_GET['UI'].'">Screen Shots</a
+ ><span class="divider"> : </span
+ ></li
+
+ ></ul>
+ ';
+ }
+
+ $message = '
+ <body>
+ <div id="pageWrapper">
+ <div id="masthead" class="inside">
+
+<!-- masthead content begin -->
+ '.$header.'
+
+<!-- masthead content end -->
+
+ <hr class="hide">
+ </div>
+ <div class="hnav">
+
+<!--
+ you must preserve the (lack of) whitespace between elements when creating
+ your own horizontal navigation elements, otherwise the extra whitespace
+ will break the visual layout. although how it breaks (tiny spaces between
+ each element) is an effect that some may desire.
+-->
+ '.$toplist.'
+ <hr class="hide">
+ </div>
+ ';
+
+ echo $message;
+}
+
+#function for printing the html top middle section
+function html_middle($middle)
+{
+ $message = '
+ <div id="outerColumnContainer">
+ <div id="innerColumnContainer">
+ <div id="SOWrap">
+ <div id="middleColumn">
+ <div class="inside">
+ '.$middle.'
+ <hr class="hide">
+ </div>
+ </div>
+ ';
+
+ echo $message;
+}
+
+
+#function for printing the html left menu items
+function html_left($leftlist)
+{
+ # put start in
+ $message = '
+ <div id="leftColumn">
+ <div class="inside">
+ <div class="vnav">
+ '.$leftlist.'
+ </div>
+ ';
+
+ # only include resizing if there are items in the left column
+ #if ($leftlist == "")
+ {
+ $message .= "
+ <script type=\"text/javascript\">
+ <!--
+ var browser = new browser_detect();
+ if ( browser.versionMajor > 4 || !( browser.isIE || browser.isNS ) )
+ {
+ /* only offer style/font changing to version 5 and later browsers
+ * which have javascript enabled. curiously, if you print this out
+ * in NS4, NS4 breaks for some reason.
+ */
+ document.write(' \
+ <p class=\"fontsize-set\"> \
+ <a href=\"#\" onclick=\"setFontSize(0); return false;\" \
+ ><img src=\"images/font_small.gif\" width=\"17\" height=\"21\" \
+ alt=\"Small Font\" title=\"Small Font\" \
+ /><\/a> \
+ <a href=\"#\" onclick=\"setFontSize(1); return false;\" \
+ ><img src=\"images/font_medium.gif\" width=\"17\" height=\"21\" \
+ alt=\"Medium Font\" title=\"Medium Font\" \
+ /><\/a> \
+ <a href=\"#\" onclick=\"setFontSize(2); return false;\" \
+ ><img src=\"images/font_large.gif\" width=\"17\" height=\"21\" \
+ alt=\"Large Font\" title=\"Large Font\" \
+ /><\/a> \
+ <\/p> \
+ ');
+ }
+ }
+ //-->
+ </script>
+ ";
+ }
+
+ # And finish off
+ $message .= '
+ <hr class="hide">
+ </div>
+ </div>
+ <div class="clear">
+ </div>
+ </div>
+ ';
+
+ echo $message;
+}
+
+
+#function for printing html right
+function html_right($rightlist)
+{
+ $message = '
+ <div id="rightColumn">
+ <div class="inside">
+ '.$rightlist.'
+ <hr class="hide">
+ </div>
+ </div>
+ ';
+
+ echo $message;
+}
+
+
+#function for printing html footer
+function html_footer()
+{
+ $message = '
+ <div class="clear"></div>
+ </div>
+ </div>
+
+ <div id="footer" class="inside">
+
+ <!-- footer begin -->
+
+ <p style="margin:0;">
+ © CSIRO 2005.<br>
+ </p>
+
+ <!-- footer end -->
+
+ <hr class="hide">
+ </div>
+ </div>
+ </body>
+</html>
+';
+ echo $message;
+}
+
+}
+
+?>
\ No newline at end of file
Added: trunk/iSpliceWebPage/internal/iSpliceList.php
===================================================================
--- trunk/iSpliceWebPage/internal/iSpliceList.php 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/internal/iSpliceList.php 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,105 @@
+<?php
+include( "htm.clss");
+
+#create objects
+$sht = new htm();
+$message = "iSplice Annodex Creator";
+$sht->html_begin($message,null);
+
+#change top menus here if you need to
+$header = "<h1>iSplice: The Annodex Creator (internal)</h1>";
+
+
+$toplist =
+ '
+ <ul
+ ><li class="hide"
+ ><a class="hide" href="../../">Hidden</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href="..">iSplice Home</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href=".">Internal Home</a
+ ><span class="divider"> : </span
+ ></li
+ ></ul>
+ ';
+
+$sht->html_top($header, $toplist);
+
+#do middle
+
+ $middle = null;
+
+ $user = "anxcreator";
+ $password = "csiro";
+ $database = "AnxCreator";
+
+ $mysql_access = mysql_connect("localhost", $user, $password) or die ("Couldn't connect to Database!");
+ mysql_select_db($database, $mysql_access) or die ("Failed to access Database!");
+
+ $bGotLicenseTable = false;
+ $result = mysql_query("SHOW tables", $mysql_access) or die ("Couldn't access Database Tables!");
+ while($result && $row = mysql_fetch_row($result))
+ {
+ $middle .= "$row[0]<br>";
+ if (strcasecmp($row[0], "AnxCreatorLicenses") == 0)
+ {
+ $bGotLicenseTable = true;
+ }
+ }
+
+ // OK, by now we have a valid database and table. See if we already have a license for this MAC Address
+ $query = "SELECT EntryRow, SerialNumber, MACAddress, LicenseStartDate, LicenseExpiryDate, LicenseType, EmailAddress FROM AnxCreatorLicenses";
+ //$query = "SELECT * FROM AnxCreatorLicenses";
+ $result = mysql_query($query, $mysql_access);
+ if ($result && $row = mysql_fetch_row($result))
+ {
+ do
+ {
+ $middle .= "Row:$row[0], $row[1], $row[2], $row[3], $row[4], $row[5], $row[6]<BR>";
+ }
+ while ($row = mysql_fetch_row($result));
+
+ }
+ mysql_close($mysql_access);
+
+ $sht->html_middle($middle);
+
+#do left column
+
+$leftlist = '
+ <div class="vnav">
+ <h3>Internal</h3>
+
+ <ul
+ ><li
+ ><a href="iSpliceList.php">Get iSplice Client List</a
+
+ ></li
+ ></ul>
+
+ <h3>Special</h3>
+
+ <form action="../iSpliceLicense.php" method="POST" >
+ <input type="submit" Value="Get Special License"/>
+ <input type="hidden" name="SourceInput" Value="iSpliceAdministrator"/>
+ </form>
+
+ </div>
+ ';
+
+$sht->html_left($leftlist);
+
+# right column
+
+$sht->html_right(null);
+
+#footer
+
+$sht->html_footer();
+
+?>
\ No newline at end of file
Added: trunk/iSpliceWebPage/internal/images/font_large.gif
===================================================================
(Binary files differ)
Property changes on: trunk/iSpliceWebPage/internal/images/font_large.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/iSpliceWebPage/internal/images/font_medium.gif
===================================================================
(Binary files differ)
Property changes on: trunk/iSpliceWebPage/internal/images/font_medium.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/iSpliceWebPage/internal/images/font_small.gif
===================================================================
(Binary files differ)
Property changes on: trunk/iSpliceWebPage/internal/images/font_small.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/iSpliceWebPage/internal/index.php
===================================================================
--- trunk/iSpliceWebPage/internal/index.php 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/internal/index.php 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,80 @@
+<?php
+include( "htm.clss");
+
+#create objects
+$sht = new htm();
+$message = "iSplice Annodex Creator";
+$sht->html_begin($message,null);
+
+#change top menus here if you need to
+$header = "<h1>iSplice: The Annodex Creator (internal)</h1>";
+
+
+$toplist =
+ '
+ <ul
+ ><li class="hide"
+ ><a class="hide" href="../../">Hidden</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href="..">iSplice Home</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href=".">Internal Home</a
+ ><span class="divider"> : </span
+ ></li
+ ></ul>
+ ';
+
+$sht->html_top($header, $toplist);
+
+#do middle
+
+$middle = '
+ <h2>iSplice is here!</h2>
+ <p>
+ You are in the <strong>internal</strong> iSplice page.
+ </p>
+
+ <BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
+ ';
+
+$sht->html_middle($middle);
+
+#do left column
+
+
+$leftlist = '
+ <div class="vnav">
+ <h3>Internal</h3>
+
+ <ul
+ ><li
+ ><a href="iSpliceList.php">Get iSplice Client List</a
+
+ ></li
+ ></ul>
+
+ <h3>Special</h3>
+
+ <form action="../iSpliceLicense.php" method="POST" >
+ <input type="submit" Value="Get Special License"/>
+ <input type="hidden" name="SourceInput" Value="iSpliceAdministrator"/>
+ </form>
+
+ </div>
+ ';
+
+$sht->html_left($leftlist);
+
+# right column
+
+$sht->html_right(null);
+
+#footer
+
+$sht->html_footer();
+
+?>
\ No newline at end of file
Added: trunk/iSpliceWebPage/internal/skidoo_too.css
===================================================================
--- trunk/iSpliceWebPage/internal/skidoo_too.css 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/internal/skidoo_too.css 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,431 @@
+ at charset "iso-8859-1";
+
+/*******************************************************************************
+* skidoo_too.css : 2005.06.28
+* -----------------------------------------------------------------------------
+* A remake of the skidoo layout with the middle column appearing first in
+* source ordering.
+*******************************************************************************/
+
+/* begin with generic selectors so that they can be overridden if needed
+ * by classes deeper in the stylesheet
+ */
+.clear
+{
+ clear: both;
+ padding-bottom: 1px; /* for Gecko-based browsers */
+ margin-bottom: -1px; /* for Gecko-based browsers */
+}
+.hide
+{
+ display: none;
+}
+.inside
+{
+ /* glitch in IE caused by vertical padding in this class, so 0 padding is
+ * set here and those blocks that need the vertical padding must be
+ * applied to the parent element. the purpose of this class is to provide
+ * horizontal padding without using hacks to get around IE's broken box
+ * model. so it's okay to apply vertical padding to the parent element,
+ * just not horizontal padding.
+ */
+ padding: 0 1em;
+}
+
+/* margin values and font sizes for headings, and margins on paragraphs
+ * and lists are not consistent across browser platforms. to achieve a
+ * consistent look we need to explicity set these values here. it may
+ * seem an odd way to declare the margins like this but you never
+ * know what kind of horizontal padding a browser may be using on an
+ * element, and I only want to change the vertical padding.
+ *
+ * pixels are used here, rather than ems, because I want a consistent
+ * margin on the different headings. if I use ems, 1em for an h1 element
+ * is much larger than 1em on an h6 element. I don't wnat this.
+ *
+ * salt to taste
+ */
+ul, ol, dl, p, h1, h2, h3, h4, h5, h6
+{
+ margin-top: 14px;
+ margin-bottom: 14px;
+ padding-top: 0;
+ padding-bottom: 0;
+}
+h1
+{
+ font-size: 220%;
+}
+h2
+{
+ font-size: 190%;
+}
+h3
+{
+ font-size: 160%;
+}
+h4
+{
+ font-size: 130%;
+}
+h5
+{
+ font-size: 100%;
+}
+h6
+{
+ font-size: 70%;
+}
+
+/* alter some HTML elements' default style
+ */
+a, a:link, a:visited, a:active
+{
+ text-decoration: underline;
+}
+a:hover
+{
+ text-decoration: none;
+}
+code
+{
+ font-family: "Courier New", Courier, monospace;
+}
+label
+{
+ cursor: pointer;
+}
+table
+{
+ font-size: 100%;
+}
+td, th
+{
+ vertical-align: top;
+}
+
+/* now we craft the core layout of the page. this includes positioning and
+ * gutter space. colors and fonts should not come into play at this point.
+ * when defining a border, default its color to white which is probably
+ * the safest thing to do.
+ */
+body
+{
+ margin: 25px 4%; /* margin instead of padding for the gutterspace around
+ the layout because IE breaks the layout when
+ horizontal padding is applied to the body element.
+ % over pixels for that horizontal gutterspace so that
+ it automatically goes below 20px on low-res browsers
+ to create more space for the content. */
+ font-size: 100.1%; /* resolve some font size issues in some layouts for
+ some browsers. (in other words, i got no clue.) */
+}
+#pageWrapper
+{
+ border: solid 1px #fff;
+ border-width: 0 1px;
+ min-width: 40em; /* IE doens't understand this property. EMs are used
+ so that as the font size increases, the proportional
+ limitations (min-width) increase with it, rather
+ than creating a middle column that can only fit
+ 3 or 4 characters in it. */
+ width: auto;
+}
+* html #pageWrapper
+{
+ /* \*/
+ word-wrap: break-word;
+ /* invalid CSS but keeps IE from breaking horribly under narrow viewports */
+}
+#masthead
+{
+ border: solid 1px #fff;
+ border-width: 1px 0;
+ padding: 0.5em;
+}
+#masthead h1
+{
+ padding: 0;
+ margin: 0;
+}
+#outerColumnContainer
+{
+ /* reserves space for the left and right columns. you can use either
+ * padding, margins, or borders, depending on your needs. however you
+ * can use the border method to create a background color for both left
+ * and right columns
+ */
+ border-left: solid 14em #fff;
+ border-right: solid 14em #fff;
+}
+#innerColumnContainer
+{
+ border: solid 1px #fff;
+ border-width: 0 1px;
+ margin: 0 -1px; /* compensate for the borders because of
+ 100% width declaration */
+ width: 100%;
+ z-index: 1;
+}
+#leftColumn, #middleColumn, #rightColumn, * html #SOWrap
+{
+ overflow: visible; /* fix for IE italics bug */
+ position: relative; /* fix some rendering issues */
+}
+#SOWrap
+{
+ float: left;
+ margin: 0 -1px 0 0;
+ width: 100%;
+ z-index: 3;
+}
+#middleColumn
+{
+ float: right;
+ margin: 0 0 0 -1px;
+ width: 100%;
+ z-index: 5;
+}
+#leftColumn
+{
+ float: left;
+ margin: 0 1px 0 -14em;
+ width: 14em;
+ z-index: 4;
+}
+#rightColumn
+{
+ float: right;
+ width: 14em;
+ margin: 0 -14em 0 1px;
+ z-index: 2;
+}
+#footer
+{
+ border: solid 1px #fff;
+ border-width: 1px 0;
+ padding: 0.5em;
+}
+
+p.fontsize-set
+{
+ text-align: center;
+}
+p.fontsize-set img
+{
+ border-width: 0;
+}
+
+
+/* vertical navigation stuff. mostly exactly as seen in the vnav.css styleheet
+ * in the original skidoo layout.
+ */
+
+.vnav
+{
+ margin: 1em 0;
+}
+.vnav ul, .vnav ul li
+{
+ margin: 0;
+ padding: 0;
+ list-style-type: none;
+ display: block;
+}
+.vnav ul
+{
+ border: solid 1px #fff;
+ border-bottom-width: 0;
+}
+.vnav ul li
+{
+ border-bottom: solid 1px #fff;
+}
+.vnav ul li, .vnav ul li a
+{
+ margin: 0;
+ display: block;
+ padding: 0;
+ line-height: normal;
+}
+.vnav ul li a
+{
+ display: block;
+ padding: 2px 5px 3px 5px;
+}
+.vnav ul li a, .vnav ul li a:link, .vnav ul li a:visited, .vnav ul li a:active, .vnav ul li a:hover
+{
+ text-decoration: none;
+ cursor: pointer;
+}
+.vnav h3
+{
+ margin-bottom: 0;
+ padding-bottom: 0;
+ font-size: 126%;
+}
+* html .vnav ul li a/* hide from IE5.0/Win & IE5/Mac */
+{
+ height: 0.01%;
+}
+* html .vnav ul
+{
+ position: relative; /* IE needs this to fix a rendering problem */
+}
+
+/* horizontal navigation stuff. mostly exactly as seen in the hnav.css styleheet
+ * in the original skidoo layout.
+ */
+
+.hnav
+{
+ border-bottom: solid 1px #fff;
+ margin: 0;
+ padding: 3px 0 4px 0;
+ white-space: nowrap;
+}
+.hnav ul span.divider
+{
+ display: none;
+}
+* html .hnav/* Hide from IE5/Mac (& IE5.0/Win) */
+{
+ height: 0.01%; /* holly hack to fix a render bug in IE6/Win */
+}
+* html .HNAV
+{
+ height: auto; /* above IE6/Win holly hack breaks IE5/Win when page
+ length get beyond the point that 1% height is taller
+ than the text height. IE5/Win does not need this
+ holly hack so we remove it here */
+ padding: 0; /* IE5/Win will resize #hnav to fit the heights of its
+ inline children that have vertical padding. So this
+ incorrect case selector will remove that padding */
+}
+.hnav ul
+{
+ text-align: center;
+ list-style-type: none;
+ line-height: normal;
+ margin: 0;
+ padding: 0;
+}
+.hnav ul li
+{
+ display: inline;
+ white-space: nowrap;
+ margin: 0;
+}
+.hnav ul li a, .hnav ul li a:link, .hnav ul li a:visited, .hnav ul li a:active
+{
+ text-decoration: none;
+ margin: 0 -1px 0 0;
+ padding: 3px 10px 4px 10px;
+ border-left: solid 1px #000;
+ border-right: solid 1px #000;
+}
+* html .HNAV ul li a
+{
+ /* \*/
+ width: 1%;
+ /* holly hack for IE5/Win inline padding. this hack fixes different
+ * rendering bugs in 5.0 and 5.5. Width is used instead of height
+ * because if the document is too long, these elements become very tall
+ * and disrupt the look of the document. too wide an element is better,
+ * visually, than too tall. */
+}
+.hnav ul li a:hover
+{
+ text-decoration: none;
+}
+
+/* everything below this point is related to the page's "theme" and could be
+ * placed in a separate stylesheet to allow for multiple color/font scemes on
+ * the layout. you should probably leave a default theme within this stylesheet
+ * just to be on the safe side.
+ */
+#pageWrapper, #masthead, #innerColumnContainer, #footer, .vnav ul, .vnav ul li, .hnav, .hnav ul li a
+{
+ border-color: #565;
+}
+html, body
+{
+ /* note that both html and body elements are in the selector.
+ * this is because we have margins applied to the body element
+ * and the HTML's background property will show through if
+ * it is ever set. _DO_NOT_ apply a font-size value to the
+ * html or body elements, set it in #pageWrapper.
+ */
+ background-color: #eee;
+ color: #000;
+ font-family: arial, helvetica, sans-serif;
+}
+#pageWrapper
+{
+ font-size: 80%; /* set your default font size here. */
+}
+#masthead
+{
+ background-color: #898;
+ color: #fff;
+}
+.hnav
+{
+ background-color: #aba;
+ color: #fff;
+}
+#outerColumnContainer
+{
+ border-left-color: #ded; /* left column background color */
+ border-right-color: #cdc; /* right column background color */
+ background-color: #fff; /* set the background color for the
+ middle column here */
+}
+.vnav ul li a:link, .vnav ul li a:visited, .vnav ul li a:active
+{
+ text-decoration: none;
+ background-color: #cdc;
+ color: #000;
+}
+#rightColumn .vnav ul li a:link, #rightColumn .vnav ul li a:visited, #rightColumn .vnav ul li a:active
+{
+ background-color: #ded;
+}
+.vnav ul li a:hover, #rightColumn .vnav ul li a:hover
+{
+ text-decoration: none;
+ background-color: #898;
+ color: #fff;
+}
+.hnav ul li a:link, .hnav ul li a:visited
+{
+ background-color: #bcb;
+ color: #000;
+}
+.hnav ul li a:hover
+{
+ background-color: #787;
+ color: #fff;
+}
+#rightColumn .inside
+{
+ /* if you apply a font size to just #rightColumn, then its width,
+ * which is specified in EMs, will also be affected. you don't want
+ * that. so apply font size changes to the .inside element which exists
+ * inside underneath all three columns
+ */
+ font-size: 90%;
+}
+#rightColumn .inside .vnav
+{
+ font-size: 110%;
+}
+#footer
+{
+ background-color: #898;
+ color: #fff;
+ text-align: center;
+}
+
+/******************************************************************************/
+
Added: trunk/iSpliceWebPage/internal/skidoo_too_print.css
===================================================================
--- trunk/iSpliceWebPage/internal/skidoo_too_print.css 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/internal/skidoo_too_print.css 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,60 @@
+ at charset "iso-8859-1";
+
+/*******************************************************************************
+* skidoo_too_print.css : 2004.11.26
+* -----------------------------------------------------------------------------
+* Print media stylesheet that removes the left and right columns as well as
+* the horizontal navigational element from a printed copy of the webpage.
+*******************************************************************************/
+
+#leftColumn, #rightColumn, #contentColumn, #SOWrap
+{
+ float: none; /* since left and right columns are being hidden,
+ there's no need to float any columns. */
+}
+html>body #SOWrap
+{
+ width: auto; /* help Opera out */
+}
+#rightColumn, #leftColumn, .hnav, .printHide
+{
+ display: none; /* hide the left and right columns as well as the
+ horizontal navigation element(s). also hide any
+ designated elements that should not be pritned */
+}
+#outerColumnContainer, #innerColumnContainer, #pageWrapper
+{
+ border-width: 0; /* hide various borders, including those used
+ to create the backgrounds for the left and
+ right columns */
+}
+#masthead, #footer
+{
+ border: solid 1px #000;
+ border-width: 1px 0;
+ padding: 0.5em; /* add some borders to the masthead and footer
+ for presentation */
+}
+* html #footer
+{
+ /* \*/
+ margin-top: 1em;
+ /* help IE print space between the content and footer */
+}
+a, a:link, a:visited
+{
+ text-decoration: none;
+ background-color: inherit;
+ color: inherit; /* we're printing, so there's no need to
+ differentiate links from regular text. so
+ remove any formatting the links get. */
+}
+body *
+{
+ background-color: #fff;
+ color: #000; /* simple catch-all to make sure we have no
+ colored items in the print out. delete this
+ if you want. */
+}
+
+/******************************************************************************/
\ No newline at end of file
Added: trunk/iSpliceWebPage/javascript/ruthsarian_utilities.js
===================================================================
--- trunk/iSpliceWebPage/javascript/ruthsarian_utilities.js 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/javascript/ruthsarian_utilities.js 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,382 @@
+/*******************************************************************************
+* ruthsarian_utilities.js : 2005.06.28
+* -----------------------------------------------------------------------------
+* A group of useful JavaScript utilities that can aid in the development
+* of webpages.
+*******************************************************************************/
+
+/* event_attach() takes care of attaching event handlers (functions) to events.
+ * this simplifies the process of attaching multiple handlers to a single event
+ *
+ * NOTE: the onload stack is executed in a LIFO manner to mimic
+ * IE's window.attachEvent function. However, Opera also has its own
+ * window.attachEvent function which executes the onload stack in a
+ * FIFO manner. FIFO is better, but IE has a larger user base, so
+ * LIFO is the way we go.
+ */
+function event_attach( event , func )
+{
+ if ( window.attachEvent )
+ {
+ window.attachEvent( event , func );
+ }
+ else
+ {
+ if ( ( typeof( func ) ).toLowerCase() != 'function' )
+ {
+ return;
+ }
+ if ( ( typeof( document.event_handlers ) ).toLowerCase() == 'undefined' )
+ {
+ document.event_handlers = new Array();
+ }
+ if ( ( typeof( document.event_handlers[ event ] ) ).toLowerCase() == 'undefined' )
+ {
+ document.event_handlers[ event ] = new Array();
+ }
+ if ( ( typeof( eval( 'window.' + event ) ) ).toLowerCase() != 'function' )
+ {
+ eval( 'window.' + event + ' = function () { if ( ( typeof( document.event_handlers[ \'' + event + '\' ] ) ).toLowerCase() != \'undefined\' ) { for ( i = document.event_handlers[ \'' + event + '\' ].length - 1 ; i >= 0 ; i-- ) { document.event_handlers[ \'' + event + '\' ][ i ](); } } } ' );
+ }
+ document.event_handlers[ event ][ document.event_handlers[ event ].length ] = func;
+ }
+}
+
+/* Browser Detect v2.1.6
+ * documentation: http://www.dithered.com/javascript/browser_detect/index.html
+ * license: http://creativecommons.org/licenses/by/1.0/
+ * code by Chris Nott (chris[at]dithered[dot]com)
+ *
+ * modified to include Dreamcast
+ */
+function browser_detect()
+{
+ var ua = navigator.userAgent.toLowerCase();
+ this.isGecko = (ua.indexOf('gecko') != -1 && ua.indexOf('safari') == -1);
+ this.isAppleWebKit = (ua.indexOf('applewebkit') != -1);
+ this.isKonqueror = (ua.indexOf('konqueror') != -1);
+ this.isSafari = (ua.indexOf('safari') != - 1);
+ this.isOmniweb = (ua.indexOf('omniweb') != - 1);
+ this.isDreamcast = (ua.indexOf("dreamcast") != -1);
+ this.isOpera = (ua.indexOf('opera') != -1);
+ this.isIcab = (ua.indexOf('icab') != -1);
+ this.isAol = (ua.indexOf('aol') != -1);
+ this.isIE = (ua.indexOf('msie') != -1 && !this.isOpera && (ua.indexOf('webtv') == -1));
+ this.isMozilla = (this.isGecko && ua.indexOf('gecko/') + 14 == ua.length);
+ this.isFirebird = (ua.indexOf('firebird/') != -1);
+ this.isNS = ((this.isGecko) ? (ua.indexOf('netscape') != -1) : ((ua.indexOf('mozilla') != -1) && !this.isOpera && !this.isSafari && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1)));
+ this.isIECompatible = ((ua.indexOf('msie') != -1) && !this.isIE);
+ this.isNSCompatible = ((ua.indexOf('mozilla') != -1) && !this.isNS && !this.isMozilla);
+ this.geckoVersion = ((this.isGecko) ? ua.substring((ua.lastIndexOf('gecko/') + 6), (ua.lastIndexOf('gecko/') + 14)) : -1);
+ this.equivalentMozilla = ((this.isGecko) ? parseFloat(ua.substring(ua.indexOf('rv:') + 3)) : -1);
+ this.appleWebKitVersion = ((this.isAppleWebKit) ? parseFloat(ua.substring(ua.indexOf('applewebkit/') + 12)) : -1);
+ this.versionMinor = parseFloat(navigator.appVersion);
+ if (this.isGecko && !this.isMozilla) {
+ this.versionMinor = parseFloat(ua.substring(ua.indexOf('/', ua.indexOf('gecko/') + 6) + 1));
+ }
+ else if (this.isMozilla) {
+ this.versionMinor = parseFloat(ua.substring(ua.indexOf('rv:') + 3));
+ }
+ else if (this.isIE && this.versionMinor >= 4) {
+ this.versionMinor = parseFloat(ua.substring(ua.indexOf('msie ') + 5));
+ }
+ else if (this.isKonqueror) {
+ this.versionMinor = parseFloat(ua.substring(ua.indexOf('konqueror/') + 10));
+ }
+ else if (this.isSafari) {
+ this.versionMinor = parseFloat(ua.substring(ua.lastIndexOf('safari/') + 7));
+ }
+ else if (this.isOmniweb) {
+ this.versionMinor = parseFloat(ua.substring(ua.lastIndexOf('omniweb/') + 8));
+ }
+ else if (this.isOpera) {
+ this.versionMinor = parseFloat(ua.substring(ua.indexOf('opera') + 6));
+ }
+ else if (this.isIcab) {
+ this.versionMinor = parseFloat(ua.substring(ua.indexOf('icab') + 5));
+ }
+ this.versionMajor = parseInt(this.versionMinor);
+ this.isDOM1 = (document.getElementById);
+ this.isDOM2Event = (document.addEventListener && document.removeEventListener);
+ this.mode = document.compatMode ? document.compatMode : 'BackCompat';
+ this.isWin = (ua.indexOf('win') != -1);
+ this.isWin32 = (this.isWin && (ua.indexOf('95') != -1 || ua.indexOf('98') != -1 || ua.indexOf('nt') != -1 || ua.indexOf('win32') != -1 || ua.indexOf('32bit') != -1 || ua.indexOf('xp') != -1));
+ this.isMac = (ua.indexOf('mac') != -1);
+ this.isUnix = (ua.indexOf('unix') != -1 || ua.indexOf('sunos') != -1 || ua.indexOf('bsd') != -1 || ua.indexOf('x11') != -1)
+ this.isLinux = (ua.indexOf('linux') != -1);
+ this.isNS4x = (this.isNS && this.versionMajor == 4);
+ this.isNS40x = (this.isNS4x && this.versionMinor < 4.5);
+ this.isNS47x = (this.isNS4x && this.versionMinor >= 4.7);
+ this.isNS4up = (this.isNS && this.versionMinor >= 4);
+ this.isNS6x = (this.isNS && this.versionMajor == 6);
+ this.isNS6up = (this.isNS && this.versionMajor >= 6);
+ this.isNS7x = (this.isNS && this.versionMajor == 7);
+ this.isNS7up = (this.isNS && this.versionMajor >= 7);
+ this.isIE4x = (this.isIE && this.versionMajor == 4);
+ this.isIE4up = (this.isIE && this.versionMajor >= 4);
+ this.isIE5x = (this.isIE && this.versionMajor == 5);
+ this.isIE55 = (this.isIE && this.versionMinor == 5.5);
+ this.isIE5up = (this.isIE && this.versionMajor >= 5);
+ this.isIE6x = (this.isIE && this.versionMajor == 6);
+ this.isIE6up = (this.isIE && this.versionMajor >= 6);
+ this.isIE4xMac = (this.isIE4x && this.isMac);
+}
+
+/* Opacity Displayer, Version 1.0 - http://old.alistapart.com/stories/pngopacity/
+ * Copyright Michael Lovitt, 6/2002.
+ */
+function opacity( strId , strPath , intWidth , intHeight , strClass , strAlt )
+{
+ if ( document.pngAlpha )
+ {
+ document.write( '<div style="height:'+intHeight+'px;width:'+intWidth+'px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+strPath+'.png\', sizingMethod=\'scale\')" id="'+strId+'" class="'+strClass+'"></div>' );
+ }
+ else if ( document.pngNormal )
+ {
+ document.write( '<img src="'+strPath+'.png" width="'+intWidth+'" height="'+intHeight+'" name="'+strId+'" border="0" class="'+strClass+'" alt="'+strAlt+'" />' );
+ }
+ else if ( document.layers )
+ {
+ return( '<img src="'+strPath+'.gif" width="'+intWidth+'" height="'+intHeight+'" name="'+strId+'" border="0" class="'+strClass+'" alt="'+strAlt+'" />' );
+ }
+ else
+ {
+ document.write( '<img src="'+strPath+'.gif" width="'+intWidth+'" height="'+intHeight+'" name="'+strId+'" border="0" class="'+strClass+'" alt="'+strAlt+'" />' );
+ }
+ return( '' );
+}
+function opacity_init()
+{
+ var browser = new browser_detect();
+ document.pngAlpha = false;
+ document.pngNormal = false;
+ document.strExt = ".gif";
+
+ if ( ( browser.isIE55 || browser.isIE6up ) && browser.isWin32 )
+ {
+ document.pngAlpha = true;
+ document.strExt = ".png";
+ }
+ else if (
+ ( browser.isGecko ) ||
+ ( browser.isIE5up && browser.isMac ) ||
+ ( browser.isOpera && browser.isWin && browser.versionMajor >= 6 ) ||
+ ( browser.isOpera && browser.isUnix && browser.versionMajor >= 6 ) ||
+ ( browser.isOpera && browser.isMac && browser.versionMajor >= 5 ) ||
+ ( browser.isOmniweb && browser.versionMinor >= 3.1 ) ||
+ ( browser.isIcab && browser.versionMinor >= 1.9 ) ||
+ ( browser.isWebtv ) ||
+ ( browser.isDreamcast )
+ )
+ {
+ document.pngNormal = true;
+ document.strExt = ".png";
+ }
+}
+
+/* handler for Netscape Navigator clients that screw up the display
+ * of CSS pages when reloaded
+ */
+function NN_reloadPage( init )
+{
+ if ( init == true ) with ( navigator )
+ {
+ if ( ( appName == "Netscape" ) && ( parseInt ( appVersion ) == 4 ) )
+ {
+ document.NN_pgW = innerWidth;
+ document.NN_pgH = innerHeight;
+ event_attach ( 'onresize' , NN_reloadPage );
+ }
+ }
+ else if ( innerWidth != document.NN_pgW || innerHeight != document.NN_pgH )
+ {
+ location.reload();
+ }
+}
+
+/* Min Width v1.1.3 by PVII-www.projectseven.com
+ * http://www.projectseven.com/tutorials/css/minwidth/index.htm
+ *
+ * modified for readability and ability to limit application to
+ * IE only so CSS min-width property may be used by compliant
+ * browsers.
+ *
+ * NOTE: horizontal spacing (margins, padding, borders) set in
+ * % values may cause IE to crash when using this script.
+ */
+function set_min_width( obj_name , min_width , ieOnly )
+{
+ if ( ( typeof( ieOnly ) ).toLowerCase() == 'undefined' )
+ {
+ ieOnly = true;
+ }
+ if ( ieOnly == false || ( document.getElementById && navigator.appVersion.indexOf( "MSIE" ) > -1 && !window.opera ) )
+ {
+ document.min_width_obj_name = obj_name;
+ document.min_width_size = min_width;
+ document.resizing = false;
+ event_attach( 'onload' , control_min_width );
+ event_attach( 'onresize' , control_min_width );
+ }
+}
+function control_min_width()
+{
+ var cw , w , pl , pr , ml , mr , br , bl , ad , theDiv = document.min_width_obj_name;
+ var g = document.getElementById( theDiv );
+ w = parseInt(document.min_width_size);
+ if ( g && document.body && document.body.clientWidth )
+ {
+ gs = g.currentStyle;
+ cw = parseInt( document.body.clientWidth );
+ pl = parseInt( gs.paddingLeft );
+ pr = parseInt( gs.paddingRight );
+ ml = parseInt( gs.marginLeft );
+ mr = parseInt( gs.marginRight );
+ bl = parseInt( gs.borderLeftWidth );
+ br = parseInt( gs.borderRightWidth );
+ ml = ml ? ml : 0;
+ mr = mr ? mr : 0;
+ pl = pl ? pl : 0;
+ pr = pr ? pr : 0;
+ bl = bl ? bl : 0;
+ br = br ? br : 0;
+ ad = pl + pr + ml + mr + bl + br;
+ if ( cw <= w )
+ {
+ w -= ad;
+ g.style.width = w + "px";
+ }
+ else
+ {
+ g.style.width = "auto";
+ }
+ }
+}
+
+/* Cookie API v1.0.1
+ * documentation: http://www.dithered.com/javascript/cookies/index.html
+ * license: http://creativecommons.org/licenses/by/1.0/
+ * code (mostly) by Chris Nott (chris[at]dithered[dot]com)
+ */
+function setCookie( name, value, expires, path, domain, secure )
+{
+ var curCookie = name + "=" + escape(value) +
+ ((expires) ? "; expires=" + expires.toGMTString() : "") +
+ ((path) ? "; path=" + path : "") +
+ ((domain) ? "; domain=" + domain : "") +
+ ((secure) ? "; secure" : "");
+ document.cookie = curCookie;
+}
+function getCookie( name )
+{
+ var dc = document.cookie;
+ var prefix = name + "=";
+ var begin = dc.indexOf( "; " + prefix );
+ if ( begin == -1 )
+ {
+ begin = dc.indexOf(prefix);
+ if (begin != 0) return null;
+ }
+ else
+ {
+ begin += 2;
+ }
+ var end = document.cookie.indexOf( ";", begin );
+ if ( end == -1 )
+ {
+ end = dc.length;
+ }
+ return unescape(dc.substring(begin + prefix.length, end));
+}
+function deleteCookie( name, path, domain )
+{
+ var value = getCookie( name );
+ if ( value != null )
+ {
+ document.cookie = name + "=" +
+ ((path) ? "; path=" + path : "") +
+ ((domain) ? "; domain=" + domain : "") +
+ "; expires=Thu, 01-Jan-70 00:00:01 GMT";
+ }
+ return value;
+}
+
+/* font size functions operate on the body element's
+ * style and defines sizes in percentages. because
+ * the default font size is set to 0 in the array,
+ * the first value in the font_sizes array should
+ * _ALWAYS_ be 100.
+ *
+ * var font_sizes = new Array( 100, 110, 120 );
+ * var current_font_size = 0;
+ * event_attach( 'onload' , loadFontSize );
+ */
+function loadFontSize ()
+{
+ current_font_size = parseInt( '0' + getCookie ( "font_size" ) );
+ setFontSize ( current_font_size );
+}
+function setFontSize( size )
+{
+ if( size >= 0 && size < font_sizes.length )
+ {
+ current_font_size = size;
+ }
+ else if( ++current_font_size >= font_sizes.length )
+ {
+ current_font_size = 0;
+ }
+ if ( document.body )
+ {
+ document.body.style.fontSize = font_sizes[ current_font_size ] + '%';
+ setCookie( "font_size" , current_font_size );
+ }
+}
+
+/* standard trim function to remove leading and trailing
+ * whitespace from a given string
+ */
+function trim( str )
+{
+ return str.replace(/^\s*|\s*$/g,"");
+}
+
+/* stylesheets should be defined in the HTML via a LINK tag
+ * and rel attribute set to "alternate stylesheet". the title
+ * attribute is then set in the format of "title : group"
+ * this function will disable all but the stylesheet specified
+ * by title in the group specified by group.
+ *
+ * Based on code by Paul Sowden
+ * http://www.alistapart.com/articles/alternate/
+ */
+function setActiveStyleSheet( title , group )
+{
+ var i, a, b, g, t;
+ if ( !title || !group )
+ {
+ return;
+ }
+ for ( i = 0; ( a = document.getElementsByTagName( "link" )[ i ] ); i++ )
+ {
+ if ( a.getAttribute( "rel" ).indexOf( "style" ) != -1 && a.getAttribute( "title" ) )
+ {
+ b = ( a.getAttribute( "title" ) ).split( ":" );
+ g = trim( b[ b.length - 1 ] );
+ if ( g.toLowerCase() == group.toLowerCase() )
+ {
+ a.disabled = true;
+ t = trim( ( a.getAttribute( "title" ) ).substring( 0, a.getAttribute( "title" ).length - b[ b.length - 1 ].length - 1 ) );
+ if( t.toLowerCase() == title.toLowerCase() )
+ {
+ a.disabled = false;
+ }
+ }
+ setCookie( "style_" + g.toLowerCase() , title );
+ }
+ }
+}
+function getPreferredStylesheet ( group )
+{
+ return ( getCookie ( "style_" + group ) );
+}
Added: trunk/iSpliceWebPage/licenseprocess.php
===================================================================
--- trunk/iSpliceWebPage/licenseprocess.php 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/licenseprocess.php 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,368 @@
+<?php
+
+include( "htm.clss");
+
+#useful functions
+function rijndael_encrypt($key, $encrypt) {
+ srand((double) microtime() * 1000000); //for sake of MCRYPT_RAND
+ $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC), MCRYPT_RAND);
+ // $iv = "0123456789012345";
+
+ $passcrypt = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $encrypt, MCRYPT_MODE_CBC, $iv);
+ $encode = $iv.$passcrypt;
+
+ return $encode;
+ }
+
+function rijndael_decrypt($key, $decrypt) {
+ //$iv = "0123456789012345";
+
+ $iv = substr($decrypt,0,16); // Get IV off the front of the message
+ $message = substr($decrypt,16,strlen($decrypt)-16);
+
+ $passcrypt = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $message, MCRYPT_MODE_CBC, $iv);
+ $decode = $passcrypt;
+ return $decode;
+ }
+
+function hexbin($hex){
+ $bin='';
+ for($i=0;$i<strlen($hex);$i++)
+ $bin.=str_pad(decbin(hexdec($hex{$i})),4,'0',STR_PAD_LEFT);
+ return $bin;
+}
+
+#create objects
+$sht = new htm();
+$sht->html_begin("iSplice Annodex Creator",null);
+
+$sht->html_top("<h1>iSplice: The Annodex Creator</h1>", null);
+
+#<!--- middle (main content) column begin -->
+
+ $middle = "<BR>";
+
+ if ($email_address_1 != $email_address_2)
+ {
+ $middle .= 'The email addresses don\'t match';
+
+ $sht->html_middle($middle);
+ return;
+ }
+
+ // Store the POST data more conveniently
+ $MACAddress = $_POST['MACAddress'];
+ $first_name = $_POST['first_name'];
+ $email_address_1 = $_POST['email_address_1'];
+ $email_address_2 = $_POST['email_address_2'];
+ $country = $_POST['country'];
+ $company = $_POST['company'];
+ $ContactNumber = $_POST['ContactNumber'];
+ $first_name = $_POST['first_name'];
+ $last_name = $_POST['last_name'];
+ $annodex_emails = $_POST['annodex_emails'];
+ $admin_request = $_POST['admin_request'];
+
+ if ($email_address_1 == NULL ||
+ $email_address_2 == NULL ||
+ $country == NULL ||
+ $company == NULL ||
+ $first_name == NULL ||
+ $last_name == NULL)
+ {
+ $middle .= '<BR>Please fill in all required (*) fields<BR>';
+ $sht->html_middle($middle);
+ return;
+ }
+
+ $LicenseDays=$_POST[number_of_days];
+ $LicenseUsageCount=$_POST[number_of_runs];
+ $Product="iSplice";
+ $Version=1.05;
+ $ExpiryDate = date("Y-m-d"); // default to expiring today
+
+// $y=date("Y");
+// $m=date("m");
+// $d=date("d");
+// $d += $LicenseDays;
+// $ExpiryDate=date("Y-m-d",mktime(0,0,0,$m,$d,$y));
+
+ //$middle .= '<p>Verify MAC Address</p>';
+ $middle .= 'Mac Address: '.$MACAddress."<BR>";
+ $middle .= '<BR>';
+ $middle .= 'Name: '.$first_name.' '.$last_name."<BR>";
+ $middle .= 'Company: '.$company."<BR>";
+ $middle .= 'Country: '.$country."<BR>";
+ $middle .= 'Email Address: '.$email_address_1."<BR>";
+
+ $user = "anxcreator";
+ $password = "csiro";
+ $database = "AnxCreator";
+
+ $mysql_access = mysql_connect("localhost", $user, $password) or die ("Couldn't connect to Database!");
+ if (!mysql_select_db($database, $mysql_access))
+ {
+ // if it's not already there, create it.
+ //mysql_create_db($database);
+ $query = 'CREATE DATABASE '.$database;
+ mysql_query($query, $mysql_access);
+
+ mysql_select_db($database, $mysql_access) or die ("Failed to Create Database!");
+ }
+
+ $bGotLicenseTable = false;
+ $result = mysql_query("SHOW tables", $mysql_access) or die ("Couldn't access Database Tables!");
+ while($result && $row = mysql_fetch_row($result))
+ {
+ // $middle .= "$row[0]<br>";
+ if (strcasecmp($row[0], "AnxCreatorLicenses") == 0)
+ {
+ $bGotLicenseTable = true;
+ }
+ }
+
+ if ($bGotLicenseTable == false)
+ {
+ // not there, so create an empty table
+
+ // Add: LicenseKey VARCHAR(255),
+
+ $query = "CREATE TABLE AnxCreatorLicenses (
+ EntryRow INT AUTO_INCREMENT,
+ SerialNumber INT,
+ MACAddress VARCHAR(20),
+ IPAddress VARCHAR(20),
+ EmailAddress VARCHAR(255),
+ FirstName VARCHAR(64),
+ LastName VARCHAR(64),
+ CompanyName VARCHAR(64),
+ ContactNumber VARCHAR(32),
+ Country VARCHAR(32),
+ LicenseStartDate DATE,
+ LicenseExpiryDate DATE,
+ LicenseType VARCHAR(64),
+ LicenseUsagesAllowed INT,
+ LicenseVersion VARCHAR(16),
+ UpdateInfoRequested VARCHAR(1),
+ AnnodexInfoRequested VARCHAR(1),
+ PRIMARY KEY (EntryRow)
+ )";
+
+ mysql_query($query, $mysql_access) or die ("Couldn't Create Database Table!");
+ }
+
+ // OK, by now we have a valid database and table. See if we already have a license for this MAC Address
+ $query = "SELECT MACAddress,EmailAddress FROM AnxCreatorLicenses WHERE MACAddress='".$MACAddress."'";
+ $result = mysql_query($query, $mysql_access);
+
+ // admin requests can always add, no matter what was there before
+ if ($admin_request == 'true' && $result && $row = mysql_fetch_row($result))
+ {
+ // it is true (the MAC Address exists)
+ $middle .= "<strong>$MACAddress</strong> already exists in the database.<BR>";
+ $middle .= "<BR><strong>License Addition Failed!</strong><BR>";
+ $middle .= "Re-sending existing license to: ".$email_address_1."<BR>";
+
+ $existing_email = false;
+ do
+ {
+ //printf("Row:%s.%s<BR>", $row[0], $row[1]);
+ if (strcasecmp ($row[1],$email_address_1) == 0)
+ {
+ $existing_email = true;
+ }
+ }
+ while ($row = mysql_fetch_row($result));
+
+ if ($existing_email == false)
+ {
+ $query = "SELECT EntryRow,MACAddress,EMailAddress,LicenseExpiryDate FROM AnxCreatorLicenses WHERE MACAddress = '".$MACAddress."'";
+ $result = mysql_query($query, $mysql_access) or die ("Couldn't add to database");
+ $row = mysql_fetch_row($result) or die ("Couldn't find row");
+
+ // Only copy one of the rows to create our new row.
+ $query = "INSERT INTO AnxCreatorLicenses (
+ SerialNumber,
+ MACAddress,
+ IPAddress,
+ FirstName,
+ LastName,
+ CompanyName,
+ ContactNumber,
+ Country,
+ LicenseStartDate,
+ LicenseExpiryDate,
+ LicenseType,
+ LicenseUsagesAllowed,
+ LicenseVersion,
+ UpdateInfoRequested,
+ AnnodexInfoRequested
+ ) SELECT
+ SerialNumber,
+ MACAddress,
+ IPAddress,
+ FirstName,
+ LastName,
+ CompanyName,
+ ContactNumber,
+ Country,
+ LicenseStartDate,
+ LicenseExpiryDate,
+ LicenseType,
+ LicenseUsagesAllowed,
+ LicenseVersion,
+ UpdateInfoRequested,
+ AnnodexInfoRequested
+ FROM AnxCreatorLicenses WHERE MACAddress = '".$MACAddress."' AND EntryRow = '".$row[0]."'";
+
+ $result = mysql_query($query, $mysql_access) or die ("Couldn't update database");
+ // and update.
+ $query = "UPDATE AnxCreatorLicenses SET EmailAddress='".$email_address_1."'
+ WHERE MACAddress = '".$MACAddress."' AND EmailAddress IS NULL";
+ $result = mysql_query($query, $mysql_access) or die ("Couldn't update database");
+ }
+ // and read the relevant information
+ $query = "SELECT MACAddress,LicenseExpiryDate,LicenseType,LicenseUsagesAllowed FROM AnxCreatorLicenses WHERE MACAddress = '".$MACAddress."'";
+ $result = mysql_query($query, $mysql_access) or die ("Couldn't add to database");
+ $row = mysql_fetch_row($result) or die ("Couldn't find row");
+ $ExpiryDate = $row[1];
+ $LicenseDays = $row[2];
+ $LicenseUsageCount = $row[3];
+
+ $middle .= "Expiry: ".$ExpiryDate."<BR>";
+ $middle .= "Days: ".$LicenseDays."<BR>";
+ $middle .= "Usage: ".$LicenseUsageCount."<BR>";
+ }
+ else
+ {
+ // OK. MAC Address not already in Database. Add a new entry with a new Serial Number.
+ $query = "Select Max(SerialNumber) FROM AnxCreatorLicenses";
+ $result = mysql_query($query, $mysql_access);
+ $SN = 0;
+ if ($result && $row = mysql_fetch_row($result))
+ {
+ $SN = $row[0];
+ $SN += 1;
+ }
+ //printf("Serial:%s\n",$SN);
+
+ $y=date("Y");
+ $m=date("m");
+ $d=date("d");
+ $StartDate = date("Y-m-d",mktime(0,0,0,$m,$d,$y));
+ //$d += $LicenseDays;
+ //$ExpiryDate=date("Y-m-d",mktime(0,0,0,$m,$d,$y));
+ if ($LicenseDays != 0)
+ {
+ $ExpiryDate = date("Y-m-d",mktime(0,0,0,$m,$d+$LicenseDays,$y));
+ $middle .= "Expiry: ".$ExpiryDate."<BR>";
+ }
+ else
+ {
+ $ExpiryDate = 0; // no expiry. Full license.
+ }
+
+ // trials currently limited to 50 uses
+ $query = "INSERT INTO AnxCreatorLicenses
+ VALUES (
+ NULL,
+ '$SN',
+ '$MACAddress',
+ 'IP Address',
+ '$email_address_1',
+ '$first_name',
+ '$last_name',
+ '$company',
+ '$ContactNumber',
+ '$Country',
+ '$StartDate',
+ '$ExpiryDate',
+ '$LicenseDays',
+ '$LicenseUsageCount',
+ NULL,
+ NULL,
+ '$annodex_emails'
+ )";
+
+ // print($query); // For debugging only
+
+ $result = mysql_query($query, $mysql_access);
+ if (!$result)
+ {
+ $middle .= "<BR><strong>License Addition Failed!</strong> Contact administrator<BR>";
+ mysql_close($mysql_access);
+
+ $sht->html_middle($middle);
+ return;
+ }
+ else
+ {
+ $middle .= "<BR><strong>License Addition Successful!</strong><BR>";
+ $middle .= "Sending license information to: ".$email_address_1."<BR>";
+ }
+ }
+
+ mysql_close($mysql_access);
+
+ $message = $MACAddress.','.$Product.','.$Version.','.$LicenseDays.','.$LicenseUsageCount.','.$ExpiryDate;
+
+
+ // And encode it
+ // gives us a 128 bit key. Ideal for Rijndael 128. 1 means give it as raw binary.
+ // Result is: 0xd014c9f49a972c0b2493dfbe830b67aa
+ $keyprep = "CSIRO ICT Centre";
+ // PHP4 used on riddick.cent.net.au doesn't allow a second parameter in md5
+ // so, use sinlge paramter then convert it
+ //$key = md5($keyprep, 1);
+ $keymd5 = md5($keyprep);
+ $key = pack("H*", $keymd5);
+
+ //print("Key is: $key<BR>");
+
+ //$key = "CSIRO ICT Centre";
+
+ //$middle .= "<BR><BR>$key<BR><BR>";
+
+ $enc = rijndael_encrypt($key, $message);
+ $enc64 = base64_encode($enc);
+ //$middle .= "<BR>RIJNDAEL Test Encrypted: ".$enc64."<BR>";
+
+ // Test decrypt
+ //$dec64 = base64_decode($enc64);
+ //$dec = rijndael_decrypt($key, $dec64);
+ //$middle .= "<BR>RIJNDAEL Test Decrypted: ".$dec."<BR>";
+
+ $MailSubject = "CSIRO Product License Key for ".$Product;
+ $MailBody = "Please cut and paste the license key attached into the license key entry field in the application.\n\nLicense Key:\n\n".
+ $enc64."\n";
+
+ //print ($MailSubject);
+ //$middle .= "<BR>";
+ //print ($MailBody);
+
+ if (!mail($email_address_1,$MailSubject,$MailBody))
+ {
+ $sht->html_middle("Couldn't send email");
+ return;
+ }
+
+ $middle .= "Your license key has been emailed to ".$email_address_1.".<BR>";
+ $middle .= "Please cut and paste the license key from the email into the license key entry field in the application.<BR>";
+
+ $middle .= "<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>";
+
+ $sht->html_middle($middle);
+
+#do left column
+
+$sht->html_left(null);
+
+# right column
+
+$sht->html_right(null);
+
+#footer
+
+$sht->html_footer();
+
+?>
\ No newline at end of file
Added: trunk/iSpliceWebPage/phpinfo.php
===================================================================
--- trunk/iSpliceWebPage/phpinfo.php 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/phpinfo.php 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,11 @@
+<html>
+<head>
+ <title>PHP Info</title>
+</head>
+
+<body>
+
+ <?php phpinfo(); ?>
+
+</body>
+</html>
\ No newline at end of file
Added: trunk/iSpliceWebPage/skidoo_too.css
===================================================================
--- trunk/iSpliceWebPage/skidoo_too.css 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/skidoo_too.css 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,431 @@
+ at charset "iso-8859-1";
+
+/*******************************************************************************
+* skidoo_too.css : 2005.06.28
+* -----------------------------------------------------------------------------
+* A remake of the skidoo layout with the middle column appearing first in
+* source ordering.
+*******************************************************************************/
+
+/* begin with generic selectors so that they can be overridden if needed
+ * by classes deeper in the stylesheet
+ */
+.clear
+{
+ clear: both;
+ padding-bottom: 1px; /* for Gecko-based browsers */
+ margin-bottom: -1px; /* for Gecko-based browsers */
+}
+.hide
+{
+ display: none;
+}
+.inside
+{
+ /* glitch in IE caused by vertical padding in this class, so 0 padding is
+ * set here and those blocks that need the vertical padding must be
+ * applied to the parent element. the purpose of this class is to provide
+ * horizontal padding without using hacks to get around IE's broken box
+ * model. so it's okay to apply vertical padding to the parent element,
+ * just not horizontal padding.
+ */
+ padding: 0 1em;
+}
+
+/* margin values and font sizes for headings, and margins on paragraphs
+ * and lists are not consistent across browser platforms. to achieve a
+ * consistent look we need to explicity set these values here. it may
+ * seem an odd way to declare the margins like this but you never
+ * know what kind of horizontal padding a browser may be using on an
+ * element, and I only want to change the vertical padding.
+ *
+ * pixels are used here, rather than ems, because I want a consistent
+ * margin on the different headings. if I use ems, 1em for an h1 element
+ * is much larger than 1em on an h6 element. I don't wnat this.
+ *
+ * salt to taste
+ */
+ul, ol, dl, p, h1, h2, h3, h4, h5, h6
+{
+ margin-top: 14px;
+ margin-bottom: 14px;
+ padding-top: 0;
+ padding-bottom: 0;
+}
+h1
+{
+ font-size: 220%;
+}
+h2
+{
+ font-size: 190%;
+}
+h3
+{
+ font-size: 160%;
+}
+h4
+{
+ font-size: 130%;
+}
+h5
+{
+ font-size: 100%;
+}
+h6
+{
+ font-size: 70%;
+}
+
+/* alter some HTML elements' default style
+ */
+a, a:link, a:visited, a:active
+{
+ text-decoration: underline;
+}
+a:hover
+{
+ text-decoration: none;
+}
+code
+{
+ font-family: "Courier New", Courier, monospace;
+}
+label
+{
+ cursor: pointer;
+}
+table
+{
+ font-size: 100%;
+}
+td, th
+{
+ vertical-align: top;
+}
+
+/* now we craft the core layout of the page. this includes positioning and
+ * gutter space. colors and fonts should not come into play at this point.
+ * when defining a border, default its color to white which is probably
+ * the safest thing to do.
+ */
+body
+{
+ margin: 25px 4%; /* margin instead of padding for the gutterspace around
+ the layout because IE breaks the layout when
+ horizontal padding is applied to the body element.
+ % over pixels for that horizontal gutterspace so that
+ it automatically goes below 20px on low-res browsers
+ to create more space for the content. */
+ font-size: 100.1%; /* resolve some font size issues in some layouts for
+ some browsers. (in other words, i got no clue.) */
+}
+#pageWrapper
+{
+ border: solid 1px #fff;
+ border-width: 0 1px;
+ min-width: 40em; /* IE doens't understand this property. EMs are used
+ so that as the font size increases, the proportional
+ limitations (min-width) increase with it, rather
+ than creating a middle column that can only fit
+ 3 or 4 characters in it. */
+ width: auto;
+}
+* html #pageWrapper
+{
+ /* \*/
+ word-wrap: break-word;
+ /* invalid CSS but keeps IE from breaking horribly under narrow viewports */
+}
+#masthead
+{
+ border: solid 1px #fff;
+ border-width: 1px 0;
+ padding: 0.5em;
+}
+#masthead h1
+{
+ padding: 0;
+ margin: 0;
+}
+#outerColumnContainer
+{
+ /* reserves space for the left and right columns. you can use either
+ * padding, margins, or borders, depending on your needs. however you
+ * can use the border method to create a background color for both left
+ * and right columns
+ */
+ border-left: solid 14em #fff;
+ border-right: solid 14em #fff;
+}
+#innerColumnContainer
+{
+ border: solid 1px #fff;
+ border-width: 0 1px;
+ margin: 0 -1px; /* compensate for the borders because of
+ 100% width declaration */
+ width: 100%;
+ z-index: 1;
+}
+#leftColumn, #middleColumn, #rightColumn, * html #SOWrap
+{
+ overflow: visible; /* fix for IE italics bug */
+ position: relative; /* fix some rendering issues */
+}
+#SOWrap
+{
+ float: left;
+ margin: 0 -1px 0 0;
+ width: 100%;
+ z-index: 3;
+}
+#middleColumn
+{
+ float: right;
+ margin: 0 0 0 -1px;
+ width: 100%;
+ z-index: 5;
+}
+#leftColumn
+{
+ float: left;
+ margin: 0 1px 0 -14em;
+ width: 14em;
+ z-index: 4;
+}
+#rightColumn
+{
+ float: right;
+ width: 14em;
+ margin: 0 -14em 0 1px;
+ z-index: 2;
+}
+#footer
+{
+ border: solid 1px #fff;
+ border-width: 1px 0;
+ padding: 0.5em;
+}
+
+p.fontsize-set
+{
+ text-align: center;
+}
+p.fontsize-set img
+{
+ border-width: 0;
+}
+
+
+/* vertical navigation stuff. mostly exactly as seen in the vnav.css styleheet
+ * in the original skidoo layout.
+ */
+
+.vnav
+{
+ margin: 1em 0;
+}
+.vnav ul, .vnav ul li
+{
+ margin: 0;
+ padding: 0;
+ list-style-type: none;
+ display: block;
+}
+.vnav ul
+{
+ border: solid 1px #fff;
+ border-bottom-width: 0;
+}
+.vnav ul li
+{
+ border-bottom: solid 1px #fff;
+}
+.vnav ul li, .vnav ul li a
+{
+ margin: 0;
+ display: block;
+ padding: 0;
+ line-height: normal;
+}
+.vnav ul li a
+{
+ display: block;
+ padding: 2px 5px 3px 5px;
+}
+.vnav ul li a, .vnav ul li a:link, .vnav ul li a:visited, .vnav ul li a:active, .vnav ul li a:hover
+{
+ text-decoration: none;
+ cursor: pointer;
+}
+.vnav h3
+{
+ margin-bottom: 0;
+ padding-bottom: 0;
+ font-size: 126%;
+}
+* html .vnav ul li a/* hide from IE5.0/Win & IE5/Mac */
+{
+ height: 0.01%;
+}
+* html .vnav ul
+{
+ position: relative; /* IE needs this to fix a rendering problem */
+}
+
+/* horizontal navigation stuff. mostly exactly as seen in the hnav.css styleheet
+ * in the original skidoo layout.
+ */
+
+.hnav
+{
+ border-bottom: solid 1px #fff;
+ margin: 0;
+ padding: 3px 0 4px 0;
+ white-space: nowrap;
+}
+.hnav ul span.divider
+{
+ display: none;
+}
+* html .hnav/* Hide from IE5/Mac (& IE5.0/Win) */
+{
+ height: 0.01%; /* holly hack to fix a render bug in IE6/Win */
+}
+* html .HNAV
+{
+ height: auto; /* above IE6/Win holly hack breaks IE5/Win when page
+ length get beyond the point that 1% height is taller
+ than the text height. IE5/Win does not need this
+ holly hack so we remove it here */
+ padding: 0; /* IE5/Win will resize #hnav to fit the heights of its
+ inline children that have vertical padding. So this
+ incorrect case selector will remove that padding */
+}
+.hnav ul
+{
+ text-align: center;
+ list-style-type: none;
+ line-height: normal;
+ margin: 0;
+ padding: 0;
+}
+.hnav ul li
+{
+ display: inline;
+ white-space: nowrap;
+ margin: 0;
+}
+.hnav ul li a, .hnav ul li a:link, .hnav ul li a:visited, .hnav ul li a:active
+{
+ text-decoration: none;
+ margin: 0 -1px 0 0;
+ padding: 3px 10px 4px 10px;
+ border-left: solid 1px #000;
+ border-right: solid 1px #000;
+}
+* html .HNAV ul li a
+{
+ /* \*/
+ width: 1%;
+ /* holly hack for IE5/Win inline padding. this hack fixes different
+ * rendering bugs in 5.0 and 5.5. Width is used instead of height
+ * because if the document is too long, these elements become very tall
+ * and disrupt the look of the document. too wide an element is better,
+ * visually, than too tall. */
+}
+.hnav ul li a:hover
+{
+ text-decoration: none;
+}
+
+/* everything below this point is related to the page's "theme" and could be
+ * placed in a separate stylesheet to allow for multiple color/font scemes on
+ * the layout. you should probably leave a default theme within this stylesheet
+ * just to be on the safe side.
+ */
+#pageWrapper, #masthead, #innerColumnContainer, #footer, .vnav ul, .vnav ul li, .hnav, .hnav ul li a
+{
+ border-color: #565;
+}
+html, body
+{
+ /* note that both html and body elements are in the selector.
+ * this is because we have margins applied to the body element
+ * and the HTML's background property will show through if
+ * it is ever set. _DO_NOT_ apply a font-size value to the
+ * html or body elements, set it in #pageWrapper.
+ */
+ background-color: #eee;
+ color: #000;
+ font-family: arial, helvetica, sans-serif;
+}
+#pageWrapper
+{
+ font-size: 80%; /* set your default font size here. */
+}
+#masthead
+{
+ background-color: #898;
+ color: #fff;
+}
+.hnav
+{
+ background-color: #aba;
+ color: #fff;
+}
+#outerColumnContainer
+{
+ border-left-color: #ded; /* left column background color */
+ border-right-color: #cdc; /* right column background color */
+ background-color: #fff; /* set the background color for the
+ middle column here */
+}
+.vnav ul li a:link, .vnav ul li a:visited, .vnav ul li a:active
+{
+ text-decoration: none;
+ background-color: #cdc;
+ color: #000;
+}
+#rightColumn .vnav ul li a:link, #rightColumn .vnav ul li a:visited, #rightColumn .vnav ul li a:active
+{
+ background-color: #ded;
+}
+.vnav ul li a:hover, #rightColumn .vnav ul li a:hover
+{
+ text-decoration: none;
+ background-color: #898;
+ color: #fff;
+}
+.hnav ul li a:link, .hnav ul li a:visited
+{
+ background-color: #bcb;
+ color: #000;
+}
+.hnav ul li a:hover
+{
+ background-color: #787;
+ color: #fff;
+}
+#rightColumn .inside
+{
+ /* if you apply a font size to just #rightColumn, then its width,
+ * which is specified in EMs, will also be affected. you don't want
+ * that. so apply font size changes to the .inside element which exists
+ * inside underneath all three columns
+ */
+ font-size: 90%;
+}
+#rightColumn .inside .vnav
+{
+ font-size: 110%;
+}
+#footer
+{
+ background-color: #898;
+ color: #fff;
+ text-align: center;
+}
+
+/******************************************************************************/
+
Added: trunk/iSpliceWebPage/skidoo_too_print.css
===================================================================
--- trunk/iSpliceWebPage/skidoo_too_print.css 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/skidoo_too_print.css 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,60 @@
+ at charset "iso-8859-1";
+
+/*******************************************************************************
+* skidoo_too_print.css : 2004.11.26
+* -----------------------------------------------------------------------------
+* Print media stylesheet that removes the left and right columns as well as
+* the horizontal navigational element from a printed copy of the webpage.
+*******************************************************************************/
+
+#leftColumn, #rightColumn, #contentColumn, #SOWrap
+{
+ float: none; /* since left and right columns are being hidden,
+ there's no need to float any columns. */
+}
+html>body #SOWrap
+{
+ width: auto; /* help Opera out */
+}
+#rightColumn, #leftColumn, .hnav, .printHide
+{
+ display: none; /* hide the left and right columns as well as the
+ horizontal navigation element(s). also hide any
+ designated elements that should not be pritned */
+}
+#outerColumnContainer, #innerColumnContainer, #pageWrapper
+{
+ border-width: 0; /* hide various borders, including those used
+ to create the backgrounds for the left and
+ right columns */
+}
+#masthead, #footer
+{
+ border: solid 1px #000;
+ border-width: 1px 0;
+ padding: 0.5em; /* add some borders to the masthead and footer
+ for presentation */
+}
+* html #footer
+{
+ /* \*/
+ margin-top: 1em;
+ /* help IE print space between the content and footer */
+}
+a, a:link, a:visited
+{
+ text-decoration: none;
+ background-color: inherit;
+ color: inherit; /* we're printing, so there's no need to
+ differentiate links from regular text. so
+ remove any formatting the links get. */
+}
+body *
+{
+ background-color: #fff;
+ color: #000; /* simple catch-all to make sure we have no
+ colored items in the print out. delete this
+ if you want. */
+}
+
+/******************************************************************************/
\ No newline at end of file
Added: trunk/iSpliceWebPage/template.php
===================================================================
--- trunk/iSpliceWebPage/template.php 2005-08-29 01:16:02 UTC (rev 9859)
+++ trunk/iSpliceWebPage/template.php 2005-08-29 20:37:26 UTC (rev 9860)
@@ -0,0 +1,243 @@
+<?php
+# This class provdes methods
+# for creating html pages
+
+class htm
+ {
+
+
+ #function for printing html header tags
+ function html_begin($title, $anyscript)
+ {
+
+$message = '
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <style type="text/css"><!--
+ @import "skidoo_too.css";
+ --></style>
+ <link rel="stylesheet" href="./skidoo_too_print.css" type="text/css" media="print">
+ <script type="text/javascript" src="./javascript/ruthsarian_utilities.js"></script>
+ <script type="text/javascript">
+';
+
+$message .= "
+ <!--
+ var font_sizes = new Array( 100, 110, 120 );
+ var current_font_size = 0;
+ if ( ( typeof( NN_reloadPage ) ).toLowerCase() != 'undefined' ) { NN_reloadPage( true ); }
+ if ( ( typeof( opacity_init ) ).toLowerCase() != 'undefined' ) { opacity_init(); }
+ if ( ( typeof( set_min_width ) ).toLowerCase() != 'undefined' ) { set_min_width( 'pageWrapper' , 600 ); }
+ if ( ( typeof( loadFontSize ) ).toLowerCase() != 'undefined' ) { event_attach( 'onload' , loadFontSize ); }
+ //-->
+ </script>
+";
+
+ echo $message;
+
+ if ($title)
+ {
+ print ("<title>". $title ."</title>\n");
+ }
+
+ if ($anyscript)
+ {
+ print ("$anyscript");
+ }
+
+ print("</head>\n");
+ }
+
+#function for printing the html top menu items
+#uses default if $toplist is null
+function html_top($header, $toplist)
+{
+ if ($toplist == null)
+ {
+ # use default
+ $toplist = '
+ <ul
+ ><li class="hide"
+ ><a class="hide" href="../../">Hidden</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href=".?UI='.$_GET['UI'].'">Home</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href="./downloads.php?UI='.$_GET['UI'].'">Download</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href="./LicenseAgreement.php?UI='.$_GET['UI'].'">Licenses</a
+ ><span class="divider"> : </span
+ ></li
+ ><li
+ ><a href="./iSpliceScreens.php?UI='.$_GET['UI'].'">Screen Shots</a
+ ><span class="divider"> : </span
+ ></li
+
+ ></ul>
+ ';
+ }
+
+ $message = '
+ <body>
+ <div id="pageWrapper">
+ <div id="masthead" class="inside">
+
+<!-- masthead content begin -->
+ '.$header.'
+
+<!-- masthead content end -->
+
+ <hr class="hide">
+ </div>
+ <div class="hnav">
+
+<!--
+ you must preserve the (lack of) whitespace between elements when creating
+ your own horizontal navigation elements, otherwise the extra whitespace
+ will break the visual layout. although how it breaks (tiny spaces between
+ each element) is an effect that some may desire.
+-->
+ '.$toplist.'
+ <hr class="hide">
+ </div>
+ ';
+
+ echo $message;
+}
+
+#function for printing the html top middle section
+function html_middle($middle)
+{
+ $message = '
+ <div id="outerColumnContainer">
+ <div id="innerColumnContainer">
+ <div id="SOWrap">
+ <div id="middleColumn">
+ <div class="inside">
+ '.$middle.'
+ <hr class="hide">
+ </div>
+ </div>
+ ';
+
+ echo $message;
+}
+
+
+#function for printing the html left menu items
+function html_left($leftlist)
+{
+ # put start in
+ $message = '
+ <div id="leftColumn">
+ <div class="inside">
+ <div class="vnav">
+ '.$leftlist.'
+ </div>
+ ';
+
+ # only include resizing if there are items in the left column
+ #if ($leftlist == "")
+ {
+ $message .= "
+ <script type=\"text/javascript\">
+ <!--
+ var browser = new browser_detect();
+ if ( browser.versionMajor > 4 || !( browser.isIE || browser.isNS ) )
+ {
+ /* only offer style/font changing to version 5 and later browsers
+ * which have javascript enabled. curiously, if you print this out
+ * in NS4, NS4 breaks for some reason.
+ */
+ document.write(' \
+ <p class=\"fontsize-set\"> \
+ <a href=\"#\" onclick=\"setFontSize(0); return false;\" \
+ ><img src=\"images/font_small.gif\" width=\"17\" height=\"21\" \
+ alt=\"Small Font\" title=\"Small Font\" \
+ /><\/a> \
+ <a href=\"#\" onclick=\"setFontSize(1); return false;\" \
+ ><img src=\"images/font_medium.gif\" width=\"17\" height=\"21\" \
+ alt=\"Medium Font\" title=\"Medium Font\" \
+ /><\/a> \
+ <a href=\"#\" onclick=\"setFontSize(2); return false;\" \
+ ><img src=\"images/font_large.gif\" width=\"17\" height=\"21\" \
+ alt=\"Large Font\" title=\"Large Font\" \
+ /><\/a> \
+ <\/p> \
+ ');
+ }
+ }
+ //-->
+ </script>
+ ";
+ }
+
+ # And finish off
+ $message .= '
+ <hr class="hide">
+ </div>
+ </div>
+ <div class="clear">
+ </div>
+ </div>
+ ';
+
+ echo $message;
+}
+
+
+#function for printing html right
+function html_right($rightlist)
+{
+ $message = '
+ <div id="rightColumn">
+ <div class="inside">
+ '.$rightlist.'
+ <hr class="hide">
+ </div>
+ </div>
+ ';
+
+ echo $message;
+}
+
+
+#function for printing html footer
+function html_footer()
+{
+ $message = '
+ <div class="clear"></div>
+ </div>
+ </div>
+
+ <div id="footer" class="inside">
+
+ <!-- footer begin -->
+
+ <p style="margin:0;">
+ © CSIRO 2005.<br>
+ </p>
+
+ <!-- footer end -->
+
+ <hr class="hide">
+ </div>
+ </div>
+ </body>
+</html>
+';
+ echo $message;
+}
+
+}
+
+?>
\ No newline at end of file
More information about the commits
mailing list