OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-registry Date: 24-Nov-2005 22:30:13
Branch: HEAD Handle: 2005112421301300
Modified files:
openpkg-registry registry-ui.pl
Log:
Page styling; remove debugs and whitespaces
Summary:
Revision Changes Path
1.15 +29 -42 openpkg-registry/registry-ui.pl
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-registry/registry-ui.pl
============================================================================
$ cvs diff -u -r1.14 -r1.15 registry-ui.pl
--- openpkg-registry/registry-ui.pl 24 Nov 2005 21:27:11 -0000 1.14
+++ openpkg-registry/registry-ui.pl 24 Nov 2005 21:30:13 -0000 1.15
@@ -70,7 +70,7 @@
$cfg->{db}->{registry}->{tablespace}="registry";
$cfg->{db}->{registry}->{host}="127.0.0.1";
$cfg->{db}->{session}->{dbfile}="$PREFIX/var/openpkg-registry/ui/session.db";
-$cfg->{canvas}->{url}="http://meta.openpkg.org"
+$cfg->{canvas}->{url}="http://meta.openpkg.org";
$cfg->{canvas}->{mark_head}="<!-- CANVAS: HEAD -->";
$cfg->{canvas}->{mark_body}="<!-- CANVAS: BODY -->";
@@ -323,8 +323,8 @@
$head .= &printjscheckallboxes();
$head .= $ase->canvas(-part => "head");
$head .= " </head>\n";
- $head .= " <body>\n";
- $head .= " <img src=\"http://www.openpkg.org/openpkg.gif\" alt=\"\"
width=\"148\" height=\"80\" align=\"right\">\n";
+ $head .= " <body class=\"registry\"><div class=\"registry\">\n";
+ $head .= " <img id=\"logo\"
src=\"http://www.openpkg.org/openpkg.gif\" alt=\"\" width=\"148\" height=\"80\"
align=\"right\">\n";
$head .= " <h1>OpenPKG Registry</h1>\n";
return $head;
}
@@ -332,7 +332,7 @@
sub viewhtmltail ()
{
my $tail = "";
- $tail .= " </body>\n";
+ $tail .= " </div></body>\n";
$tail .= "</html>\n";
return $tail;
}
@@ -344,67 +344,73 @@
$css .= "** registry-ui.pl - OpenPKG registration user interface\n";
$css .= "*/\n";
$css .= "\n";
- $css .= "HTML {\n";
+ $css .= "BODY.registry {\n";
$css .= " background: #cccccc;\n";
$css .= "}\n";
- $css .= "BODY {\n";
+ $css .= "DIV.registry {\n";
+ $css .= " font-family: sans-serif, helvetica, arial;\n";
+ $css .= "}\n";
+ $css .= "BODY.registry DIV.registry {\n";
$css .= " background-image: url($myurl?page=jpg&name=bg);\n";
$css .= " border: 1px solid #000000;\n";
$css .= " padding: 20px 20px 20px 20px;\n";
$css .= " font-family: sans-serif, helvetica, arial;\n";
$css .= "}\n";
- $css .= "INPUT {\n";
- $css .= " background: #ffffff;\n";
+ $css .= "img#logo {\n";
+ $css .= " display:none\n";
$css .= "}\n";
- $css .= "TABLE.bf {\n";
- $css .= " font-family: sans-serif, helvetica, arial;\n";
+ $css .= "BODY.registry img#logo {\n";
+ $css .= " display:block\n";
$css .= "}\n";
- $css .= "H1 {\n";
+ $css .= ".registry H1 {\n";
$css .= " font-family: tahoma, sans-serif, helvetica, arial;\n";
$css .= " font-weight: bold;\n";
$css .= " font-size: 300%;\n";
$css .= "}\n";
- $css .= "H2 {\n";
+ $css .= ".registry H2 {\n";
$css .= " font-family: sans-serif, helvetica, arial;\n";
$css .= " font-weight: bold;\n";
$css .= " font-size: 140%;\n";
$css .= "}\n";
- $css .= "A {\n";
+ $css .= ".registry A {\n";
$css .= " text-decoration: none;\n";
$css .= " color: #6666aa;\n";
$css .= "}\n";
- $css .= ".bf TD.browse {\n";
+ $css .= ".registry INPUT {\n";
+ $css .= " background: #ffffff;\n";
+ $css .= "}\n";
+ $css .= ".registry TD.browse {\n";
$css .= " width: 100%;\n";
$css .= " background: #d0d0d0;\n";
$css .= "}\n";
- $css .= ".bf TD.browse SPAN.title {\n";
+ $css .= ".registry TD.browse SPAN.title {\n";
$css .= " font-weight: bold;\n";
$css .= " font-size: 200%;\n";
$css .= " color: #000000;\n";
$css .= "}\n";
- $css .= ".bf TD.query {\n";
+ $css .= ".registry TD.query {\n";
$css .= " width: 100%;\n";
$css .= " background: #d0d0d0;\n";
$css .= "}\n";
- $css .= ".bf TD.query SPAN.title {\n";
+ $css .= ".registry TD.query SPAN.title {\n";
$css .= " font-weight: bold;\n";
$css .= " font-size: 200%;\n";
$css .= " color: #000000;\n";
$css .= "}\n";
- $css .= ".bf TD.view {\n";
+ $css .= ".registry TD.view {\n";
$css .= " width: 100%;\n";
$css .= " background: #d0d0d0;\n";
$css .= "}\n";
- $css .= ".bf TD.view SPAN.title {\n";
+ $css .= ".registry TD.view SPAN.title {\n";
$css .= " font-weight: bold;\n";
$css .= " font-size: 200%;\n";
$css .= " color: #000000;\n";
$css .= "}\n";
- $css .= ".bf TD.result {\n";
+ $css .= ".registry TD.result {\n";
$css .= " width: 100%;\n";
$css .= " background: #d0d0d0;\n";
$css .= "}\n";
- $css .= ".bf TD.result SPAN.title {\n";
+ $css .= ".registry TD.result SPAN.title {\n";
$css .= " font-weight: bold;\n";
$css .= " font-size: 200%;\n";
$css .= " color: #000000;\n";
@@ -903,8 +909,6 @@
{
my $html;
$html .= '';
- $html .= "<h1>OSSP ase client at OpenPKG Registry</h1>";
- $html .= sprintf("Session: SID %s<br>\n", $session->id());
$html .= $ase->canvas(-part => "body");
return $html;
}
@@ -1160,7 +1164,7 @@
die;
}
- $html .= "<table class=\"bf\">\n";
+ $html .= "<table class=\"association\">\n";
$html .= "<tr>";
$html .= "<td colspan=\"4\">";
$html .= $cgi->start_form();
@@ -1509,22 +1513,6 @@
sub printjscheckallboxes()
{
- #http://include.ebaystatic.com/js/e431/de/my_ebay/globals_e4311de.js
- #function checkAll(field) {
- # var value=field.checked;
- # var form=field.form;
- # var items=form.elements['LineID'];
- # if(items.length) {
- # var i;
- # for(i=0; i<items.length; i++)
- # if(!items[i].disabled)
- # items[i].checked=value;
- # }
- # else {
- # if(!items.disabled)
- # items.checked=value;
- # }
- # }
my $js;
$js = <<'EOT';
<SCRIPT language="JavaScript"><!--
@@ -1561,10 +1549,9 @@
$body =~ s|^.*<body[^>]*>||s;
$body =~ s|</body>.*||s;
-
(undef, undef, $canvas) = &fetchurlcached($cfg->{canvas}->{url});
if (not defined $canvas or $canvas eq "") {
- $canvas =
+ $canvas =
"<html>\n" .
" <head>\n" .
$cfg->{canvas}->{mark_head} . "\n" .
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]