more ui work for the reporter
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 14 Dec 2005 15:15:32 +0000 (15:15 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 14 Dec 2005 15:15:32 +0000 (15:15 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2369 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/reporter/templates/header.ttk
Open-ILS/src/reporter/templates/stage3.ttk

index 28e7de9..3361d24 100644 (file)
@@ -4,9 +4,27 @@
        <!-- Load our JS libs -->
        <script language='javascript' src='/opac/common/js/Cookie.js'> </script>
        <script language='javascript' src='/opac/common/js/md5.js'> </script>
+       <script language='javascript' src='/opac/common/js/config.js'> </script>
        <script language='javascript' src='/opac/common/js/utils.js'> </script>
+       <script language='javascript' src='/opac/common/js/opac_utils.js'> </script>
        <script language='javascript' src='/opac/common/js/JSON.js'> </script>
        <script language='javascript' src='/opac/common/js/RemoteRequest.js'> </script>
+       <script language="javascript" src="/opac/common/js/slimtree.js"></script>
+       <script language="javascript">
+               stpicopen  = '/opac/images/slimtree/folder.gif';
+               stpicclose = '/opac/images/slimtree/folderopen.gif';
+               stpicblank = '/opac/images/slimtree/page.gif';
+               stpicline  = '/opac/images/slimtree/line.gif';
+               stpicjoin  = '/opac/images/slimtree/join.gif';
+               stpicjoinb = '/opac/images/slimtree/joinbottom.gif';
+
+               stimgopen   = elem('img',{src:stpicopen,border:0});
+               stimgclose  = elem('img',{src:stpicclose,border:0});
+               stimgblank  = elem('img',{src:stpicblank,border:0});
+               stimgline   = elem('img',{src:stpicline,border:0});
+               stimgjoin   = elem('img',{src:stpicjoin,border:0, style:'display:inline;'});
+
+       </script>
 
        <title>[% title %]</title>
 
index 3bf3cd7..f9193ac 100644 (file)
@@ -270,6 +270,7 @@ BLOCK view_stage3;
                '<b>Report Runs:</b>';
                run_q = DBI.prepare("SELECT * FROM reporter.output WHERE stage3 = ? ORDER BY queue_time DESC");
                FOR run = run_q.execute(rpt.id);
+                       "<a name='$run.id'>";
                        WRAPPER html/table style="border-collapse:collapse";
                                WRAPPER html/row;
                                        INCLUDE html/cell content="<b>Current State</b>" style="border:solid gray 1px;" width="20%";
@@ -335,7 +336,7 @@ BLOCK view_stage3;
                                        END;
                                END;
                        END;
-                       '<br><br>';
+                       '</a><br><br>';
                END;
        END;
 END;