View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/
Update of /cvsroot/dqsd/dqsdweb
In directory usw-pr-cvs1:/tmp/cvs-serv5528
Modified Files:
searchtoc.pl
Log Message:
changed css styles, modified the function name to be a hyperlink to the <link> text in
the search.
Index: searchtoc.pl
===================================================================
RCS file: /cvsroot/dqsd/dqsdweb/searchtoc.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** searchtoc.pl 20 Sep 2002 15:21:09 -0000 1.1
--- searchtoc.pl 25 Sep 2002 17:21:20 -0000 1.2
***************
*** 26,85 ****
<head>
<title>DQSD Searches</title>
<style>
- body,tr,td
- {
- font-family: Verdana;
- font-size: x-small;
- padding-left:4px;
- }
- table
- {
- vertical-align: top;
- border: 1px inset;
- border-collapse:collapse;
- border-spacing:0;
- }
th
{
- background: #fcfcfc;
- color: #000050;
text-align: left;
font-weight: bold;
border: 1px outset;
! padding-left:4px;
! }
! tr
! {
! background: #fcfcfc;
! color: #206090;
! vertical-align:top;
! border: 0px;
! }
! a {
! text-decoration: none;
! padding-right: 4px;
! }
! a:hover {
! text-decoration: underline;
! padding-right: 4px;
}
!
! table.helpboxDescTable,tr
{
- border-width:0px;
- border-collapse:collapse;
- border-spacing:0;
- color:#206090;
vertical-align:top;
- padding: 0px;
- }
- .helpboxDescLabels
- {
- color:#206090;
}
.funcName
{
color: #600000;
- padding-right: 4px;
}
.description
--- 26,45 ----
<head>
<title>DQSD Searches</title>
+ <link rel='stylesheet' type='text/css'
+href='http://cvs.dqsd.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/dqsd/dqsd/search.css?rev=HEAD&content-type=text/plain'>
<style>
th
{
text-align: left;
font-weight: bold;
border: 1px outset;
! padding-left:2px;
}
! td
{
vertical-align:top;
}
.funcName
{
color: #600000;
}
.description
***************
*** 93,108 ****
color: #a07040;
padding-right: 4px;
! }
! .categorylink
! {
! font-size: x-small;
! text-decoration: none;
! }
! .lineNumbers
! {
! background: #fcfcfc;
! color: #000000;
! padding-left: 4px;
! padding-right: 4px;
}
</style>
--- 53,57 ----
color: #a07040;
padding-right: 4px;
! vertical-align:top;
}
</style>
***************
*** 120,133 ****
#generate a record for each xml file
foreach $datafile (@datafiles) {
! my ($name,$desctext,$category)=();
my $filedata=read_file("$searchdir/$datafile");
for ($t=0; $t<scalar(@$filedata); $t++) {
#----------------------------------------------
! #trigger if the line contains the name tags
if (@$filedata[$t]=~/<name.+\<\/name/i) {
$name=(split(/<*\/*name>*/i,"@$filedata[$t]"))[1];
}#if
#----------------------------------------------
! #trigger if the line contains the <description tag
if (@$filedata[$t]=~/\<description/i) {
if (@$filedata[$t]=~/\/description *>/i) {
--- 69,82 ----
#generate a record for each xml file
foreach $datafile (@datafiles) {
! my ($name,$desctext,$category,$link)=();
my $filedata=read_file("$searchdir/$datafile");
for ($t=0; $t<scalar(@$filedata); $t++) {
#----------------------------------------------
! #trigger if the line contains the <name> tags
if (@$filedata[$t]=~/<name.+\<\/name/i) {
$name=(split(/<*\/*name>*/i,"@$filedata[$t]"))[1];
}#if
#----------------------------------------------
! #trigger if the line contains the <description> tag
if (@$filedata[$t]=~/\<description/i) {
if (@$filedata[$t]=~/\/description *>/i) {
***************
*** 149,154 ****
}#if
}#for
! push(@html,"<td class=\"category\"><a
name=\"$category\">$category</a></td>\n<td><a
href=\"http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/dqsd/dqsd/searches/$datafile?rev=HEAD&content-type=text/xml\">$datafile</a></td>\n<td
class=\"funcName\">$name</td>\n<td
class=description>$desctext<br><br>\n</td>\n</tr>");
}#foreach
--- 98,110 ----
}#if
+ #----------------------------------------------
+ #trigger if the line contains the link tags
+ if (@$filedata[$t]=~/<link.+\<\/link/i) {
+ $link=(split(/<*\/*link>*/i,"@$filedata[$t]"))[1];
+ $link="<a href=\"$link\"</a>";
+ }#if
+
}#for
! push(@html,"<td class=\"category\"><a
name=\"$category\">$category</a></td>\n<td><a
href=\"http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/dqsd/dqsd/searches/$datafile?rev=HEAD&content-type=text/xml\">$datafile</a></td>\n<td
class=\"funcNamehelpboxCommands\">$link$name</td>\n<td
class=description>$desctext<br>\n</td>\n</tr>");
}#foreach
***************
*** 162,171 ****
for ($t=0; $t<=scalar(@categories); $t++) {
next if ($categories[$t]=~/^ *$/);
! $categorylink .="\n<a class=\"categorylink\"
href=\"\#$categories[$t]\">$categories[$t]</a>";
}
print "<center><h3>DQSD Searches</h3>$categorylink";
print
"<table>\n<th></th><th>Category</th><th>File</th><th>Name</th><th>Description</th>";
for ($t=1; $t<=scalar(@html); $t++) {
! print "\n<tr>\n<td class=\"lineNumbers\">$t</td>$html[$t-1]";
}
--- 118,127 ----
for ($t=0; $t<=scalar(@categories); $t++) {
next if ($categories[$t]=~/^ *$/);
! $categorylink .="\n<a class=\"helpboxLink\"
href=\"\#$categories[$t]\">$categories[$t]</a>";
}
print "<center><h3>DQSD Searches</h3>$categorylink";
print
"<table>\n<th></th><th>Category</th><th>File</th><th>Name</th><th>Description</th>";
for ($t=1; $t<=scalar(@html); $t++) {
! print "\n<tr>\n<td class=\"body\">$t</td>\n$html[$t-1]";
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/