html header and footer
This commit is contained in:
@@ -22,6 +22,7 @@ do
|
|||||||
# " > ${HTML_FILE}
|
# " > ${HTML_FILE}
|
||||||
|
|
||||||
# sqlplus -s "/ as sysdba" @rapport_html.sql >> ${HTML_FILE}
|
# sqlplus -s "/ as sysdba" @rapport_html.sql >> ${HTML_FILE}
|
||||||
|
cat sql/00_html_header.html >> ${HTML_FILE}
|
||||||
for f in sql/*.sql
|
for f in sql/*.sql
|
||||||
do
|
do
|
||||||
# sqlplus -s "/ as sysdba" @$f >> ${HTML_FILE}
|
# sqlplus -s "/ as sysdba" @$f >> ${HTML_FILE}
|
||||||
@@ -30,5 +31,7 @@ do
|
|||||||
|
|
||||||
sed -i 's/<table.*>$/<table class="table table-striped">/g' ${HTML_FILE}
|
sed -i 's/<table.*>$/<table class="table table-striped">/g' ${HTML_FILE}
|
||||||
|
|
||||||
|
cat sql/99_html_footer.html >> ${HTML_FILE}
|
||||||
|
|
||||||
echo Rapport dans le fichier html : ${HTML_FILE}
|
echo Rapport dans le fichier html : ${HTML_FILE}
|
||||||
done
|
done
|
||||||
|
|||||||
31
Daily/sql/00_html_header.html
Normal file
31
Daily/sql/00_html_header.html
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
|
<!-- $Header: DB Report -->
|
||||||
|
<!-- Author: yacine.oumghar@axiome.io -->
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
|
<title>DB Report</title>
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
body {font:10pt Arial,Helvetica,Geneva,sans-serif; color:black; background:white;}
|
||||||
|
h1 {font-size:16pt; font-weight:bold; color:#336699; border-bottom:1px solid #336699; margin-top:0pt; margin-bottom:0pt; padding:0px 0px 0px 0px;}
|
||||||
|
h2 {font-size:14pt; font-weight:bold; color:#336699; margin-top:4pt; margin-bottom:0pt;}
|
||||||
|
h3 {font-size:12pt; font-weight:bold; color:#336699; margin-top:4pt; margin-bottom:0pt;}
|
||||||
|
pre {font:8pt monospace,Monaco,"Courier New",Courier;}
|
||||||
|
a {color:#663300;}
|
||||||
|
table {font-size:8pt; border-collapse:collapse; empty-cells:show; white-space:nowrap; border:1px solid #336699;}
|
||||||
|
li {font-size:8pt; color:black; padding-left:4px; padding-right:4px; padding-bottom:2px;}
|
||||||
|
th {font-weight:bold; color:white; background:#0066CC; padding-left:4px; padding-right:4px; padding-bottom:2px;}
|
||||||
|
tr {color:black; background:white;}
|
||||||
|
tr:hover {color:white; background:#0066CC;}
|
||||||
|
tr.main {color:black; background:white;}
|
||||||
|
tr.main:hover {color:black; background:white;}
|
||||||
|
td {vertical-align:top; border:1px solid #336699;}
|
||||||
|
td.c {text-align:center;}
|
||||||
|
font.n {font-size:8pt; font-style:italic; color:#336699;}
|
||||||
|
font.f {font-size:8pt; color:#999999; border-top:1px solid #336699; margin-top:30pt;}
|
||||||
|
div.google-chart {width:&&edb360_chart_width.; height:500px;}
|
||||||
|
</style>
|
||||||
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
PRO <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
||||||
PRO <html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
PRO
|
|
||||||
PRO <!-- $Header: DB Report -->
|
|
||||||
PRO <!-- Author: yacine.oumghar@axiome.io -->
|
|
||||||
PRO
|
|
||||||
PRO <head>
|
|
||||||
PRO <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
||||||
PRO <title>DB Report</title>
|
|
||||||
PRO
|
|
||||||
PRO <style type="text/css">
|
|
||||||
PRO body {font:10pt Arial,Helvetica,Geneva,sans-serif; color:black; background:white;}
|
|
||||||
PRO h1 {font-size:16pt; font-weight:bold; color:#336699; border-bottom:1px solid #336699; margin-top:0pt; margin-bottom:0pt; padding:0px 0px 0px 0px;}
|
|
||||||
PRO h2 {font-size:14pt; font-weight:bold; color:#336699; margin-top:4pt; margin-bottom:0pt;}
|
|
||||||
PRO h3 {font-size:12pt; font-weight:bold; color:#336699; margin-top:4pt; margin-bottom:0pt;}
|
|
||||||
PRO pre {font:8pt monospace,Monaco,"Courier New",Courier;}
|
|
||||||
PRO a {color:#663300;}
|
|
||||||
PRO table {font-size:8pt; border-collapse:collapse; empty-cells:show; white-space:nowrap; border:1px solid #336699;}
|
|
||||||
PRO li {font-size:8pt; color:black; padding-left:4px; padding-right:4px; padding-bottom:2px;}
|
|
||||||
PRO th {font-weight:bold; color:white; background:#0066CC; padding-left:4px; padding-right:4px; padding-bottom:2px;}
|
|
||||||
PRO tr {color:black; background:white;}
|
|
||||||
PRO tr:hover {color:white; background:#0066CC;}
|
|
||||||
PRO tr.main {color:black; background:white;}
|
|
||||||
PRO tr.main:hover {color:black; background:white;}
|
|
||||||
PRO td {vertical-align:top; border:1px solid #336699;}
|
|
||||||
PRO td.c {text-align:center;}
|
|
||||||
PRO font.n {font-size:8pt; font-style:italic; color:#336699;}
|
|
||||||
PRO font.f {font-size:8pt; color:#999999; border-top:1px solid #336699; margin-top:30pt;}
|
|
||||||
PRO div.google-chart {width:&&edb360_chart_width.; height:500px;}
|
|
||||||
PRO </style>
|
|
||||||
PRO
|
|
||||||
4
Daily/sql/99_html_footer.html
Normal file
4
Daily/sql/99_html_footer.html
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
<br />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
PRO
|
|
||||||
PRO <br />
|
|
||||||
PRO </body>
|
|
||||||
PRO </html>
|
|
||||||
Reference in New Issue
Block a user