From: Eric F. <wg...@us...> - 2004-08-11 00:18:52
|
Update of /cvsroot/phpliteadmin/phpLiteAdmin/style In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3171/style Modified Files: tbl_browse.css tbl_browse.xsl Log Message: Optimized and fixed CSS issues. Still has one problem with CSS in tables with many fields. Index: tbl_browse.xsl =================================================================== RCS file: /cvsroot/phpliteadmin/phpLiteAdmin/style/tbl_browse.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- tbl_browse.xsl 10 Aug 2004 23:04:20 -0000 1.2 +++ tbl_browse.xsl 11 Aug 2004 00:18:42 -0000 1.3 @@ -9,49 +9,55 @@ <link rel="stylesheet" href="style/tbl_browse.css" type="text/css" /> </head> <body> - <h1>Database: <xsl:value-of select="/rows/row/db" /><br />Table: <xsl:value-of select="/rows/row/tbl" /></h1> + <h1>Database: <a><xsl:attribute name="href">db.php5?db=<xsl:value-of select="/rows/db" /></xsl:attribute><xsl:value-of select="/rows/db" /></a> + <br /> + Table: <xsl:value-of select="/rows/tbl" /> + </h1> <div id="nav"> <div class="nav_option"> - <a><xsl:attribute name="href">tbl.php5?db=<xsl:value-of select="/rows/row/db" />&tbl=<xsl:value-of select="/rows/row/tbl" /></xsl:attribute>Structure</a> + <a><xsl:attribute name="href">tbl.php5?db=<xsl:value-of select="/rows/db" />&tbl=<xsl:value-of select="/rows/tbl" /></xsl:attribute>Structure</a> </div> <div class="nav_option"> - <a><xsl:attribute name="href">tbl.php5?mode=sql&db=<xsl:value-of select="/rows/row/db" />&tbl=<xsl:value-of select="/rows/row/tbl" /></xsl:attribute>SQL</a> + <a><xsl:attribute name="href">tbl.php5?mode=sql&db=<xsl:value-of select="/rows/db" />&tbl=<xsl:value-of select="/rows/tbl" /></xsl:attribute>SQL</a> </div> <div class="nav_option"> - <a><xsl:attribute name="href">tbl.php5?mode=export&db=<xsl:value-of select="/rows/row/db" />&tbl=<xsl:value-of select="/rows/row/tbl" /></xsl:attribute>Export</a> + <a><xsl:attribute name="href">tbl.php5?mode=export&db=<xsl:value-of select="/rows/db" />&tbl=<xsl:value-of select="/rows/tbl" /></xsl:attribute>Export</a> </div> <div class="nav_option"> - <a><xsl:attribute name="href">tbl.php5?mode=empty&db=<xsl:value-of select="/rows/row/db" />&tbl=<xsl:value-of select="/rows/row/tbl" /></xsl:attribute>Empty</a> + <a><xsl:attribute name="href">tbl.php5?mode=empty&db=<xsl:value-of select="/rows/db" />&tbl=<xsl:value-of select="/rows/tbl" /></xsl:attribute>Empty</a> </div> <div class="nav_option"> - <a><xsl:attribute name="href">tbl.php5?mode=drop&db=<xsl:value-of select="/rows/row/db" />&tbl=<xsl:value-of select="/rows/row/tbl" /></xsl:attribute>Drop</a> + <a><xsl:attribute name="href">tbl.php5?mode=drop&db=<xsl:value-of select="/rows/db" />&tbl=<xsl:value-of select="/rows/tbl" /></xsl:attribute>Drop</a> </div> </div> <br /> - <div id="table"> - <div id="columns"> - <xsl:for-each select="/rows/columns"> - <div class="column_name"> - <xsl:value-of select="name" /> - </div> - </xsl:for-each> + <div class="column"> + <div class="column_name"> + Actions </div> - - <br /> - - <div id="records"> - <xsl:for-each select="/rows/row"> + <xsl:for-each select="/rows/number"> + <div class="value"> + <a><xsl:attribute name="href">record.php5?mode=edit&db=<xsl:value-of select="/rows/db" />&tbl=<xsl:value-of select="/rows/tbl" /></xsl:attribute>Edit</a> | <a><xsl:attribute name="href">record.php5?mode=delete&db=<xsl:value-of select="/rows/db" />&tbl=<xsl:value-of select="/rows/tbl" /></xsl:attribute>Delete</a> + </div> + </xsl:for-each> + </div> + <xsl:for-each select="/rows/column"> + <div class="column"> + <div class="column_name"> + <xsl:value-of select="@name" /> + </div> + <xsl:for-each select="row"> <div class="value"> - <xsl:value-of select="column" /> + <xsl:value-of select="value" /> </div> - <br /> </xsl:for-each> </div> - </div> + </xsl:for-each> </body> + </html> </xsl:template> Index: tbl_browse.css =================================================================== RCS file: /cvsroot/phpliteadmin/phpLiteAdmin/style/tbl_browse.css,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- tbl_browse.css 9 Aug 2004 22:14:43 -0000 1.1 +++ tbl_browse.css 11 Aug 2004 00:18:42 -0000 1.2 @@ -3,6 +3,8 @@ font-size: 10pt; background: #EEFDEE; color: black; + white-space: nowrap; + overflow: auto; } h1 { @@ -26,29 +28,32 @@ } #table { - width: 100%; + width: auto; + height: auto; + white-space: nowrap; + border: 1px #FF0000 solid; } -#columns { - width: 100%; - height: 25px; +.column { + width: 100px; + height: auto; + float: left; } .column_name { - float: left; + width: auto; + height: auto; padding: 5px; margin: 0px; border: 1px #000000 solid; -} - -#records { - width: 100%; + font-weight: bold; + text-align: center; } .value { - float: left; + width: auto; + height: auto; padding: 5px; margin: 0px; border: 1px #000000 solid; - height: 25px; } \ No newline at end of file |