From: <unl...@us...> - 2002-08-17 02:29:47
|
Update of /cvsroot/meshdb/www/deal/templates In directory usw-pr-cvs1:/tmp/cvs-serv22433/deal/templates Modified Files: index_page.tpl overall_footer.tpl overall_header.tpl stylesheet.css Log Message: Working on the templating design, going to start on the actual SQL of the system, with the templating system, then people will be able to have a look at how the functionality works and hack on it also. Notes to Dave: I don't believe there is any overkill at all. If my overkill you mean flexible, functional, stable, reusable, readable code/design. Then yes it probably is overkill. That's how I do stuff though. Index: index_page.tpl =================================================================== RCS file: /cvsroot/meshdb/www/deal/templates/index_page.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- index_page.tpl 16 Aug 2002 13:14:25 -0000 1.2 +++ index_page.tpl 17 Aug 2002 02:29:44 -0000 1.3 @@ -1,23 +1,42 @@ <span class="sectionheader">{SECTION_HEADER}</span><br /> <!-- Content // --> -<span class="text"> +<span class="gen"> -This is a user-contributed database of component prices that people have spotted in Australia. If you know of a great deal, or the price of a component that other people might be interested in, add it! <br /> +This is a user-contributed database of component prices that people have spotted in Australia. If you know of a great deal, or the price of a component that other people might be interested in, add it! <br /><br /> See also: <a href="http://www.wireless.org.au/tib/" class="genlink">The Incredible Bulk</a> - bulk orders organised by Melbourne Wireless. -<br /> -The table below is sorted by class, and then by price.<br /> - - -<!-- -<span class="header">Retail prices database</span><br /> -<span class="gentext"> -This is a user-contributed database of component prices that people have spotted in Australia. If you know of a great deal, or the price of a component that other people might be interested in, add it! <br /> -See also: <a href="http://www.wireless.org.au/tib/" class="genlink">The Incredible Bulk</a> - bulk orders organised by Melbourne Wireless -<br /> +<br /><br /> The table below is sorted by class, and then by price.<br /> +<!-- Prices Table --> +<table width="100%" cellpadding="2" cellspacing="1" border="0" class="table"> + <tr> + <th height="25" nowrap="nowrap"> {TH_CLASS} </th> + <th height="25" nowrap="nowrap"> {TH_PRODUCT} </th> + <th height="25" nowrap="nowrap"> {TH_OEM} </th> + <th height="25" nowrap="nowrap"> {TH_UNITPRICE} </th> + <th height="25" nowrap="nowrap"> {TH_MINQTY} </th> + <th height="25" nowrap="nowrap"> {TH_VENDOR} </th> + <th height="25" nowrap="nowrap"> {TH_SPOTTOR} </th> + <th height="25" nowrap="nowrap"> {TH_EXPIRES} </th> + <th height="25" nowrap="nowrap"> {TH_NOTE} </th> + </tr> + <!-- 1BEGIN products --> + <tr> + <td class="row1" align="center" valign="middle">{products.PRODUCT_CLASS}</td> + <td class="row1" width="100%" height="50"><a href="{PRODUCTS_DB_LINK}?product={products.PRODUCT_ID}" class="gen">{products.PRODUCT_NAME}</a></td> + <td class="row1" align="center" valign="middle">{products.PRODUCT_OEM}</td> + <td class="row1" align="center" valign="middle">{products.DEAL_UNITPRICE}</td> + <td class="row1" align="center" valign="middle">{products.DEAL_MINQTY}</td> + <td class="row1" align="center" valign="middle">{products.DEAL_VENDOR}</td> + <td class="row1" align="center" valign="middle">{products.DEAL_SPOTTOR}</td> + <td class="row1" align="center" valign="middle">{products.DEAL_EXPIRES}</td> + <td class="row1" align="center" valign="middle">{products.DEAL_NOTE}</td> + </tr> + + <!-- 1END products --> -{MESSAGE} <br /><br /> -{MESSAGE2} ---> + <tr> + <td class="row2" colspan="9"> </td> + </tr> +</table> \ No newline at end of file Index: overall_footer.tpl =================================================================== RCS file: /cvsroot/meshdb/www/deal/templates/overall_footer.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- overall_footer.tpl 16 Aug 2002 13:14:25 -0000 1.2 +++ overall_footer.tpl 17 Aug 2002 02:29:44 -0000 1.3 @@ -1,5 +1,5 @@ <hr> -<div align="right"><span class="textsmall"> +<div align="right"><span class="gensmall"> Technical enquiries about this web site should be directed to <a href="mailto:david.leonard+meshweb@itee.uq.edu.au"">David Leonard</a>. <br /> Kindly hosted by the <a href="/">Dept of Information Technology & Electrical Engineering, UQ</a>. <br /> <a href="http://www.itee.uq.edu.au/~mesh/logo/">Logo</a> designed by Matt Gleeson.</span> Index: overall_header.tpl =================================================================== RCS file: /cvsroot/meshdb/www/deal/templates/overall_header.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- overall_header.tpl 16 Aug 2002 13:14:25 -0000 1.2 +++ overall_header.tpl 17 Aug 2002 02:29:44 -0000 1.3 @@ -15,11 +15,11 @@ </tr> <tr> <td bgcolor="#DFDFDF" height="1" colspan="2"></td></tr> - <tr> <td colspan="2" class="text"> - <a href="{PRICES_DB_LINK}" class="text">{PRICES_DB}</a> : - <a href="{PRODUCTS_DB_LINK}" class="text">{PRODUCTS_DB}</a> : - <a href="{VENDORS_DB_LINK}" class="text">{VENDORS_DB}</a> :: - <a href="{HWPOOL_DB_LINK}" class="text">{HWPOOL_DB}</a> + <tr> <td colspan="2"> + <a href="{PRICES_DB_LINK}">{PRICES_DB}</a> : + <a href="{PRODUCTS_DB_LINK}">{PRODUCTS_DB}</a> : + <a href="{VENDORS_DB_LINK}">{VENDORS_DB}</a> :: + <a href="{HWPOOL_DB_LINK}">{HWPOOL_DB}</a> </td> </tr> Index: stylesheet.css =================================================================== RCS file: /cvsroot/meshdb/www/deal/templates/stylesheet.css,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- stylesheet.css 16 Aug 2002 13:14:25 -0000 1.2 +++ stylesheet.css 17 Aug 2002 02:29:44 -0000 1.3 @@ -11,19 +11,43 @@ .sectionheader { font-weight: bold; font-size: 18px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; - text-decoration: none; line-height : 120%; color : #006699; + text-decoration: none; line-height : 120%; color : #DD6900; } +/* General font families for common tags */ +font,th,td,p,span { font-family: Verdana, Arial, Helvetica, sans-serif; font-size : 12px; } +a:link,a:active,a:visited { color : #000000; text-decoration: underline; } +a:hover { color : #DD6900; } -.text { font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; } +/* Table Header cells */ +th { + color: #000000; font-size: 11px; + background-color: #DEE3E7; height: 25px; +} -.textsmall { font-size: 10px; font-family: Arial, Helvetica, sans-serif; } +/* Tables */ +.table { background-color: #FFFFFF; border: 1px #006699 solid; } -/* General font families for common tags */ -font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } -a:link,a:active,a:visited { color : #000000; } -a:hover { text-decoration: underline; color : #DD6900; } +/* Main table cell colours and backgrounds */ +td.row1 { background-color: #EFEFEF; } +td.row2 { background-color: #D1D7DC; } +td.row3 { background-color: #DEE3E7; } + + +/* The buttons used for styling in message post */ +.formfield { + background-color : #fefefe; + color : #000000; + font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif; +} + +/* General text */ +.gen { font-size : 12px; } +.genmed { font-size : 11px; } +.gensmall { font-size : 10px; } +.gen,.genmed,.gensmall { color : #000000; } + |