From: Florian G. <re...@us...> - 2006-09-14 14:02:12
|
Update of /cvsroot/perfparse/_perfparse-phpgui/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5652/templates Modified Files: graph.tpl.html Log Message: graph page works half - with some debug enabled Index: graph.tpl.html =================================================================== RCS file: /cvsroot/perfparse/_perfparse-phpgui/templates/graph.tpl.html,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** graph.tpl.html 8 Apr 2006 23:59:47 -0000 1.10 --- graph.tpl.html 14 Sep 2006 14:02:06 -0000 1.11 *************** *** 48,54 **** </td></tr></table></td> </tr> ! <tr><td align="center" colspan="7"><input type="submit" value="<{tr}>Draw graph<{/tr}>" /></td></tr> ! <!-- loop through graphs --> ! <{foreach from=$graphs key=host_name item=hostarray}> <!-- host <{$host_name}> --> <{foreach from=$hostarray key=service item=servicearray}> --- 48,59 ---- </td></tr></table></td> </tr> ! <tr><td align="center" colspan="7"><input type="submit" value="<{tr}>Draw graph<{/tr}>" /> ! <!-- save the graphs array --> ! <{foreach from=$graphs key=mid item=bla}> ! <input type="hidden" name="graphs[<{$mid}>]" value="<{$bla}>" /> ! <{/foreach}> ! </td></tr> ! <!-- loop through displaygraphs --> ! <{foreach from=$displaygraphs key=host_name item=hostarray}> <!-- host <{$host_name}> --> <{foreach from=$hostarray key=service item=servicearray}> *************** *** 73,77 **** <td align=right><font face="Arial, Helvetica" size=2><{tr}>Scale<{/tr}>:</td> <td> ! <select name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][scale]"> <option value="1" <{if $metricarray.scale == 1}>selected="selected"<{/if}>><{tr}>User<{/tr}>: <option value="0" <{if $metricarray.scale == 0}>selected="selected"<{/if}>><{tr}>User, Rounded<{/tr}>: --- 78,82 ---- <td align=right><font face="Arial, Helvetica" size=2><{tr}>Scale<{/tr}>:</td> <td> ! <select name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][scale]"> <option value="1" <{if $metricarray.scale == 1}>selected="selected"<{/if}>><{tr}>User<{/tr}>: <option value="0" <{if $metricarray.scale == 0}>selected="selected"<{/if}>><{tr}>User, Rounded<{/tr}>: *************** *** 89,93 **** </td> <td> ! <input type=text name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][minin]" value="<{$metricarray.minin}>" size=12 maxlength=12> </td> <td align=right><font face="Arial, Helvetica" size=2> --- 94,98 ---- </td> <td> ! <input type=text name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][minin]" value="<{$metricarray.minin}>" size=12 maxlength=12> </td> <td align=right><font face="Arial, Helvetica" size=2> *************** *** 95,99 **** </td> <td> ! <input type=text name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][maxin]" value="<{$metricarray.maxin}>" size=12 maxlength=12> </td> </tr> --- 100,104 ---- </td> <td> ! <input type=text name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][maxin]" value="<{$metricarray.maxin}>" size=12 maxlength=12> </td> </tr> *************** *** 101,125 **** <tr> <td align=right rowspan=2><font face="Arial, Helvetica" size=2><{tr}>Period<{/tr}>:</td> ! <td valign=middle><font face="Arial, Helvetica" size=2> <input type=radio name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][timerange]" value="r" onclick="javascript:isAbsRelVisible(this,'<{$host_name}>_<{$service}>_<{$metric}>')" id="RelSwitch" <{if $metricarray.timerange=="r"}>checked="checked"<{/if}> ><{tr}>Relative<{/tr}></td> <td align=right id="Rel_<{$host_name}>_<{$service}>_<{$metric}>"><font face="Arial, Helvetica" size=2><{tr}>Rel Period<{/tr}>:</td> ! <td valign=middle id="Rel_<{$host_name}>_<{$service}>_<{$metric}>"><font face="Arial, Helvetica" size=2> <input type=text name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][relativedays]" value="<{$metricarray.relativedays}>" size=2 maxlength=4> <{tr}>Days<{/tr}> </td> <td align=right id="Rel_<{$host_name}>_<{$service}>_<{$metric}>"><font face="Arial, Helvetica" size=2> <{tr}>And Hours<{/tr}>: </td> <td id="Rel_<{$host_name}>_<{$service}>_<{$metric}>"><font face="Arial, Helvetica" size=2> ! <input type=text name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][relativetime]" value="<{$metricarray.relativetime}>" size=5 maxlength=5> <{tr}>HH:MM<{/tr}> </td> </tr> <tr> <td><font face="Arial, Helvetica" size=2> ! <input type=radio name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][timerange]" value="a" onclick="javascript:isAbsRelVisible(this,'<{$host_name}>_<{$service}>_<{$metric}>')" id="AbsSwitch" <{if $metricarray.timerange=="a"}>checked="checked"<{/if}>><{tr}>Absolute<{/tr}> </td> <td align=right id="Abs_<{$host_name}>_<{$service}>_<{$metric}>"><font face="Arial, Helvetica" size=2><{tr}>Abs From<{/tr}>:</td> ! <td id="Abs_<{$host_name}>_<{$service}>_<{$metric}>"><input type=text name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][from]" value="<{$metricarray.from}>" size=17 maxlength=20></td> <td align=right id="Abs_<{$host_name}>_<{$service}>_<{$metric}>"><font face="Arial, Helvetica" size=2><{tr}>Abs To<{/tr}>:</td> ! <td id="Abs_<{$host_name}>_<{$service}>_<{$metric}>"><input type=text name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][to]" value="<{$metricarray.to}>" size=17 maxlength=20></td> </tr> <tr><td colspan=6 height=4><hr height=4></td></tr> <tr> <td align=right><font face="Arial, Helvetica" size=2><{tr}>Output<{/tr}>:</td> ! <td><select name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][output]"> <option value="Histogram" <{if $metricarray.output=="Histogram"}>selected="selected"<{/if}>><{tr}>Histogram<{/tr}> <option value="Average" <{if $metricarray.output=="Average"}>selected="selected"<{/if}>><{tr}>Daily Average<{/tr}> --- 106,130 ---- <tr> <td align=right rowspan=2><font face="Arial, Helvetica" size=2><{tr}>Period<{/tr}>:</td> ! <td valign=middle><font face="Arial, Helvetica" size=2> <input type=radio name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][timerange]" value="r" onclick="javascript:isAbsRelVisible(this,'<{$host_name}>_<{$service}>_<{$metric}>')" id="RelSwitch" <{if $metricarray.timerange=="r"}>checked="checked"<{/if}> ><{tr}>Relative<{/tr}></td> <td align=right id="Rel_<{$host_name}>_<{$service}>_<{$metric}>"><font face="Arial, Helvetica" size=2><{tr}>Rel Period<{/tr}>:</td> ! <td valign=middle id="Rel_<{$host_name}>_<{$service}>_<{$metric}>"><font face="Arial, Helvetica" size=2> <input type=text name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][relativedays]" value="<{$metricarray.relativedays}>" size=2 maxlength=4> <{tr}>Days<{/tr}> </td> <td align=right id="Rel_<{$host_name}>_<{$service}>_<{$metric}>"><font face="Arial, Helvetica" size=2> <{tr}>And Hours<{/tr}>: </td> <td id="Rel_<{$host_name}>_<{$service}>_<{$metric}>"><font face="Arial, Helvetica" size=2> ! <input type=text name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][relativetime]" value="<{$metricarray.relativetime}>" size=5 maxlength=5> <{tr}>HH:MM<{/tr}> </td> </tr> <tr> <td><font face="Arial, Helvetica" size=2> ! <input type=radio name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][timerange]" value="a" onclick="javascript:isAbsRelVisible(this,'<{$host_name}>_<{$service}>_<{$metric}>')" id="AbsSwitch" <{if $metricarray.timerange=="a"}>checked="checked"<{/if}>><{tr}>Absolute<{/tr}> </td> <td align=right id="Abs_<{$host_name}>_<{$service}>_<{$metric}>"><font face="Arial, Helvetica" size=2><{tr}>Abs From<{/tr}>:</td> ! <td id="Abs_<{$host_name}>_<{$service}>_<{$metric}>"><input type=text name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][from]" value="<{$metricarray.from}>" size=17 maxlength=20></td> <td align=right id="Abs_<{$host_name}>_<{$service}>_<{$metric}>"><font face="Arial, Helvetica" size=2><{tr}>Abs To<{/tr}>:</td> ! <td id="Abs_<{$host_name}>_<{$service}>_<{$metric}>"><input type=text name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][to]" value="<{$metricarray.to}>" size=17 maxlength=20></td> </tr> <tr><td colspan=6 height=4><hr height=4></td></tr> <tr> <td align=right><font face="Arial, Helvetica" size=2><{tr}>Output<{/tr}>:</td> ! <td><select name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][output]"> <option value="Histogram" <{if $metricarray.output=="Histogram"}>selected="selected"<{/if}>><{tr}>Histogram<{/tr}> <option value="Average" <{if $metricarray.output=="Average"}>selected="selected"<{/if}>><{tr}>Daily Average<{/tr}> *************** *** 129,133 **** <td colspan=2> </td> <td align=right><font face="Arial, Helvetica" size=2><{tr}>Size<{/tr}>:</td> ! <td><select name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][size]"> <option value="400x200" <{if $metricarray.size=="400x200"}>selected="selected"<{/if}>><{tr}>Small<{/tr}> <option value="585x300" <{if $metricarray.size=="585x300"}>selected="selected"<{/if}>><{tr}>Normal<{/tr}> --- 134,138 ---- <td colspan=2> </td> <td align=right><font face="Arial, Helvetica" size=2><{tr}>Size<{/tr}>:</td> ! <td><select name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][size]"> <option value="400x200" <{if $metricarray.size=="400x200"}>selected="selected"<{/if}>><{tr}>Small<{/tr}> <option value="585x300" <{if $metricarray.size=="585x300"}>selected="selected"<{/if}>><{tr}>Normal<{/tr}> *************** *** 138,146 **** <td align=right><font face="Arial, Helvetica" size=2><{tr}>Plot<{/tr}>:</td> <td colspan=5><font face="Arial, Helvetica" size="2"> ! <input type=checkbox name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][s_val]" value="1" <{if $metricarray.s_val}>checked="checked"<{/if}>> <{tr}>Value<{/tr}> ! <input type=checkbox name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][s_smo]" value="1" <{if $metricarray.s_smo}>checked="checked"<{/if}>> <{tr}>Smooth<{/tr}>* ! <input type=checkbox name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][s_war]" value="1" <{if $metricarray.s_war}>checked="checked"<{/if}>> <{tr}>Warning<{/tr}> ! <input type=checkbox name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][s_cri]" value="1" <{if $metricarray.s_cri}>checked="checked"<{/if}>> <{tr}>Critical<{/tr}> ! <input type=checkbox name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][s_sta]" value="1" <{if $metricarray.s_sta}>checked="checked"<{/if}>> <{tr}>Stan. Dev<{/tr}>* </font> <font face="Arial, Helvetica" size="1">(* <{tr}>Where Used<{/tr}>)</font> </td> --- 143,151 ---- <td align=right><font face="Arial, Helvetica" size=2><{tr}>Plot<{/tr}>:</td> <td colspan=5><font face="Arial, Helvetica" size="2"> ! <input type=checkbox name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][s_val]" value="1" <{if $metricarray.s_val}>checked="checked"<{/if}>> <{tr}>Value<{/tr}> ! <input type=checkbox name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][s_smo]" value="1" <{if $metricarray.s_smo}>checked="checked"<{/if}>> <{tr}>Smooth<{/tr}>* ! <input type=checkbox name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][s_war]" value="1" <{if $metricarray.s_war}>checked="checked"<{/if}>> <{tr}>Warning<{/tr}> ! <input type=checkbox name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][s_cri]" value="1" <{if $metricarray.s_cri}>checked="checked"<{/if}>> <{tr}>Critical<{/tr}> ! <input type=checkbox name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][s_sta]" value="1" <{if $metricarray.s_sta}>checked="checked"<{/if}>> <{tr}>Stan. Dev<{/tr}>* </font> <font face="Arial, Helvetica" size="1">(* <{tr}>Where Used<{/tr}>)</font> </td> *************** *** 154,158 **** </font></td> <td colspan=2> ! <input type="text" name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][title]" value="<{$metricarray.title}>" size=60 maxlength=80> </td> </tr> --- 159,163 ---- </font></td> <td colspan=2> ! <input type="text" name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][title]" value="<{$metricarray.title}>" size=60 maxlength=80> </td> </tr> *************** *** 162,166 **** </td> <td colspan=2><nobr> ! <input type="text" name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][g_sigma]" value="<{$metricarray.g_sigma}>" size=5 maxlength=5> <font face="Arial, Helvetica" size=1>(<{tr}>Large = Slow, see<{/tr}> <a href="http://perfparse.sourceforge.net/faq.php#gaussian"><{tr}>FAQ<{/tr}></a>)</font> </td> --- 167,171 ---- </td> <td colspan=2><nobr> ! <input type="text" name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][g_sigma]" value="<{$metricarray.g_sigma}>" size=5 maxlength=5> <font face="Arial, Helvetica" size=1>(<{tr}>Large = Slow, see<{/tr}> <a href="http://perfparse.sourceforge.net/faq.php#gaussian"><{tr}>FAQ<{/tr}></a>)</font> </td> *************** *** 170,177 **** <{tr}>Save graph for future reference<{/tr}>: </font></td> ! <td><input type=checkbox name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][save_graph]" value="<{$metricarray.save_graph}>"></td> <td align=right><font face="Arial, Helvetica" size=2><nobr> <{tr}>Save with Title<{/tr}>: ! <input type="text" name="graphs[<{$host_name}>][<{$service}>][<{$metric}>][graph_name]" value="<{$metricarray.graph_name}>" size=40 maxlength=80> </font></td> </tr> --- 175,182 ---- <{tr}>Save graph for future reference<{/tr}>: </font></td> ! <td><input type=checkbox name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][save_graph]" value="<{$metricarray.save_graph}>"></td> <td align=right><font face="Arial, Helvetica" size=2><nobr> <{tr}>Save with Title<{/tr}>: ! <input type="text" name="displaygraphs[<{$host_name}>][<{$service}>][<{$metric}>][graph_name]" value="<{$metricarray.graph_name}>" size=40 maxlength=80> </font></td> </tr> |