From 4a6b85d18a947fcdcf00d7d9c03b50004d7d7e4f Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Tue, 16 Oct 2012 16:20:04 +0000 Subject: [PATCH] *** empty log message *** --- cts/htdocs/{thresh => old}/hitcounter.pl | 0 cts/htdocs/{thresh => old}/tdcregs.htm | 0 cts/htdocs/old/test.pl | 42 ++++++++++++++++++++++++ cts/htdocs/old/test2.pl | 2 ++ cts/htdocs/thresh/styles.css | 20 ++++++++++- cts/htdocs/thresh/tdc.htm | 14 +++++--- 6 files changed, 73 insertions(+), 5 deletions(-) rename cts/htdocs/{thresh => old}/hitcounter.pl (100%) rename cts/htdocs/{thresh => old}/tdcregs.htm (100%) create mode 100755 cts/htdocs/old/test.pl create mode 100755 cts/htdocs/old/test2.pl diff --git a/cts/htdocs/thresh/hitcounter.pl b/cts/htdocs/old/hitcounter.pl similarity index 100% rename from cts/htdocs/thresh/hitcounter.pl rename to cts/htdocs/old/hitcounter.pl diff --git a/cts/htdocs/thresh/tdcregs.htm b/cts/htdocs/old/tdcregs.htm similarity index 100% rename from cts/htdocs/thresh/tdcregs.htm rename to cts/htdocs/old/tdcregs.htm diff --git a/cts/htdocs/old/test.pl b/cts/htdocs/old/test.pl new file mode 100755 index 0000000..beed5e4 --- /dev/null +++ b/cts/htdocs/old/test.pl @@ -0,0 +1,42 @@ +&htsponse(200, "OK"); +print "Content-type: text/html\r\n\r\n"; + + +use HADES::TrbNet; +use Data::Dumper; + +my $header = qq$ + + + + + +Hmon $.$ENV{'QUERY_STRING'}.qq$ + + +$; +print $header; + + + if (!defined &trb_init_ports()) { + die("can not connect to trbnet-daemon on the $ENV{'DAQOPSERVER'}"); + } + + +print "

Available Boards

\n
BoardTypeDescription\n"; +my $ids = trb_register_read(0xffff,0x42); +my $type = trb_register_read(0xffff,0x42); +foreach my $b (sort keys %$type) { + my $desc = ""; + $desc .= "TRB3 central, " if(($type->{$b} & 0xff000000) == 0x90000000); + $desc .= "TRB3 peripheral, " if(($type->{$b} & 0xff000000) == 0x91000000); + $desc .= "CBM RICH, " if(($type->{$b} & 0xff000000) == 0x92000000); + printf("
0x%04x0x%08x%s\n",$b,$type->{$b},$desc); + } +print "
"; + + + +print ""; +exit 1; + diff --git a/cts/htdocs/old/test2.pl b/cts/htdocs/old/test2.pl new file mode 100755 index 0000000..d46a429 --- /dev/null +++ b/cts/htdocs/old/test2.pl @@ -0,0 +1,2 @@ + +print "Test\n"; diff --git a/cts/htdocs/thresh/styles.css b/cts/htdocs/thresh/styles.css index d691798..74beb51 100644 --- a/cts/htdocs/thresh/styles.css +++ b/cts/htdocs/thresh/styles.css @@ -1,5 +1,5 @@ body { - background:#def; + background:#eef; } @@ -47,3 +47,21 @@ div#bar2 div { text-align:center; font-weight:bold; } + + +.odd { + background:#f0f0f8; +} + +.odd:hover, .even:hover { + background:#ffe; +} + +.even { + background:#e0e0e8; +} + +.head { + background:#334; + color:#eef; +} \ No newline at end of file diff --git a/cts/htdocs/thresh/tdc.htm b/cts/htdocs/thresh/tdc.htm index 206319b..25bb695 100644 --- a/cts/htdocs/thresh/tdc.htm +++ b/cts/htdocs/thresh/tdc.htm @@ -42,7 +42,10 @@ function update(data) { if(!document.getElementById("content").innerHTML) return; var b = data.split("&"); var c = {}; - o = "Channel"; + o = ""; +// for(j=0;jChannel"; for(j=0;j"+(i-1); for(j=0;j"; + o += "RegisterContent"; for(j=0;j"+regs[i]; switch(i) { case 0: o += "debug
channels
ref input"; -- 2.43.0