]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed html and css issue in report page - Fixed in report.tpl and report_...
authorDavide Franco <bacula-dev@dflc.ch>
Fri, 22 Oct 2010 16:37:36 +0000 (18:37 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 2 Nov 2010 07:20:32 +0000 (08:20 +0100)
gui/bacula-web/templates/report.tpl
gui/bacula-web/templates/report_select.tpl

index 0b33d1665321d6f35c0c22125b8b0cc85520e243..e0dba5726e69c774243f227098edeacfdabadd1c 100644 (file)
@@ -3,17 +3,12 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
   "http://www.w3.org/TR/html4/loose.dtd">
 <html lang="en">
-
 <head>
-{popup_init src="js/overlib.js"}
 <title>{t}Stats Bacula: Job{/t} {$smarty.get.server}</title>
-
 <link rel="stylesheet" type="text/css" href="style/default.css" />
-
 </head>
-
 <body>
-
+{popup_init src="js/overlib.js"}
 <table width=100% border=1 class=back>
 <tr>
        <td width=65% valign=top>
                                <tr>
                                        <td colspan=2>
                                                {if $smarty.get.server==""}
-                                                       <img src=stats.php?server={$smarty.get.server|escape:"url"}&tipo_dato=69&title=AnĂ¡lisis%20general&modo_graph=lines>
+                                                       <img src=stats.php?server={$smarty.get.server|escape:"url"}&amp;tipo_dato=69&amp;title=AnĂ¡lisis%20general&amp;modo_graph=lines>
                                                {elseif $smarty.get.default == 1}
-                                                       <img src=stats.php?server={$smarty.get.server|escape:"url"}&tipo_dato=3&title={$smarty.get.server|escape:"url"}&modo_graph=bars&StartDateMonth={$startperiod|date_format:"%m"}&StartDateDay={$startperiod|date_format:"%d"}&StartDateYear={$startperiod|date_format:"%Y"}&EndDateMonth={$endperiod|date_format:"%m"}&EndDateDay={$endperiod|date_format:"%d"}&EndDateYear={$endperiod|date_format:"%Y"}>                                                
+                                                       <img src=stats.php?server={$smarty.get.server|escape:"url"}&amp;tipo_dato=3&amp;title={$smarty.get.server|escape:"url"}&amp;modo_graph=bars&amp;StartDateMonth={$startperiod|date_format:"%m"}&amp;StartDateDay={$startperiod|date_format:"%d"}&amp;StartDateYear={$startperiod|date_format:"%Y"}&amp;EndDateMonth={$endperiod|date_format:"%m"}&amp;EndDateDay={$endperiod|date_format:"%d"}&amp;EndDateYear={$endperiod|date_format:"%Y"}>                                            
                                                {else}
-                                                       <img src=stats.php?server={$smarty.get.server|escape:"url"}&tipo_dato={$smarty.get.tipo_dato}&title={$smarty.get.server|escape:"url"}&modo_graph={$smarty.get.modo_graph}&StartDateMonth={$smarty.get.StartDateMonth}&StartDateDay={$smarty.get.StartDateDay}&StartDateYear={$smarty.get.StartDateYear}&EndDateMonth={$smarty.get.EndDateMonth}&EndDateDay={$smarty.get.EndDateDay}&EndDateYear={$smarty.get.EndDateYear}>
+                                                       <img src=stats.php?server={$smarty.get.server|escape:"url"}&amp;tipo_dato={$smarty.get.tipo_dato}&amp;title={$smarty.get.server|escape:"url"}&amp;modo_graph={$smarty.get.modo_graph}&amp;StartDateMonth={$smarty.get.StartDateMonth}&StartDateDay={$smarty.get.StartDateDay}&StartDateYear={$smarty.get.StartDateYear}&EndDateMonth={$smarty.get.EndDateMonth}&EndDateDay={$smarty.get.EndDateDay}&EndDateYear={$smarty.get.EndDateYear}>
                                                {/if}
                                        </td>
                                </tr>           
                        <td>  
                                <table width=100% border=0 class=genmed cellpadding=0 cellspacing=2>
                                <tr class=titulo2>
-                                       <td background="images/bg7.gif" height=25>{t}JobID{/t}</td>
-                                       <td background="images/bg7.gif" height=25>{t}Date{/t}</td>
-                                       <td background="images/bg7.gif" height=25>{t}Elapsed{/t}</td>
-                                       <td background="images/bg7.gif" height=25>{t}Level{/t}</td>
-                                       <td background="images/bg7.gif" height=25 align=center>{t}Bytes{/t}</td>
-                                       <td background="images/bg7.gif" height=25 width=1%>{t}Status{/t}</td>
+                                       <td style="background-image: url('images/bg7.gif'); height: 25px;">{t}JobID{/t}</td>
+                                       <td style="background-image: url('images/bg7.gif'); height: 25px;">{t}Date{/t}</td>
+                                       <td style="background-image: url('images/bg7.gif'); height: 25px;">{t}Elapsed{/t}</td>
+                                       <td style="background-image: url('images/bg7.gif'); height: 25px;">{t}Level{/t}</td>
+                                       <td style="background-image: url('images/bg7.gif'); height: 25px;">{t}Bytes{/t}</td>
+                                       <td style="background-image: url('images/bg7.gif'); height: 25px;">{t}Status{/t}</td>
                                </tr>
                                {section name=job loop=$jobs}
                                <tr class={cycle values="table1,table2"}>
index 820ff4d5a0fac849e4f71c5aafabbd6f81c6e4b1..ff9177f066e16ea69ff8f4ab678a7fa97443e040 100644 (file)
@@ -1,9 +1,11 @@
+<form method=get action=report.php {if !isset($smarty.get.default) }target=_blank{/if}>
 <table width=100% border=0>
- <tr><td align=center colspan=3 class=titulo background="images/bg8.png">
+ <tr>
+       <td colspan="3" style="text-align: center; background-image: url('images/bg8.png');" class="titulo">
        {t}SELECT NEW REPORT{/t}
  </td></tr>
  <tr class=table1><td align=left>
-       <form method=get action=report.php {if !isset($smarty.get.default) }target=_blank{/if}>
+       
        <input type=hidden name=default value=2>
        {t}Select a job:{/t}
        </td>
        <option value="area">{t}area{/t}</option>
        </select>
        
- </td>
- </tr>
- <tr class=table1>
-       <td>
-       {t}Data to show:{/t}
        </td>
-       <td align=right>
-       <select name="tipo_dato">
-       <option value="3" selected>{t}Transferred bytes{/t}</option>
-       </select>
-       </td>   
- </tr>
- <tr class=table2>
-  <td align=left>
-       {t}Start period:{/t}
-  </td>
-  <td align=right>
- {html_select_date prefix="StartDate" time=$time2 field_order="DMY" start_year="-1" end_year="+1" display_days=true}
-  </td>
- </tr>
- <tr class=table1>
-  <td align=left>{t}End period:{/t}
-  </td>
-  <td align=right>
-  {html_select_date prefix="EndDate" time=$time field_order="DMY" start_year="-1" end_year="+1" display_days=true}
-  </td>
- </tr>
- <tr>  
-       <td colspan=3 align=center>
-       <input type=submit value="{t}Create report{/t}">
-       </form>
-       </td>
- </tr>
- </table>
\ No newline at end of file
+       </tr>
+       <tr class=table1>
+               <td>
+               {t}Data to show:{/t}
+               </td>
+               <td align=right>
+                       <select name="tipo_dato">
+                               <option value="3" selected>{t}Transferred bytes{/t}</option>
+                       </select>
+               </td>   
+       </tr>
+       <tr class=table2>
+               <td align=left>
+                       {t}Start period:{/t}
+               </td>
+               <td align=right>
+                       {html_select_date prefix="StartDate" time=$time2 field_order="DMY" start_year="-1" end_year="+1" display_days=true}
+               </td>
+                       </tr>
+                       <tr class=table1>
+                               <td align=left>{t}End period:{/t}</td>
+                               <td align=right>
+                                       {html_select_date prefix="EndDate" time=$time field_order="DMY" start_year="-1" end_year="+1" display_days=true}
+                               </td>
+                       </tr>
+                       <tr>    
+                               <td colspan=3 align=center>
+                                       <input type=submit value="{t}Create report{/t}" />
+                       </td>
+               </tr>
+       </table>
+ </form>
\ No newline at end of file