source: ccsweb/trunk/ccs_mods/graphs/config-part-div.tpl @ 1341

Last change on this file since 1341 was 1341, checked in by ckb6, 6 years ago

Added the last graph part types to the web interface

  • Property svn:keywords set to Id
File size: 6.6 KB
Line 
1{* Copyright (C) 2006  The University of Waikato
2 *
3 * This file is part of ccsweb - CRCnet Configuration System Web Interface
4 *
5 * Graph manipulation interface
6 *
7 * Author:       Chris Browning <ckb6@cs.waikato.ac.nz>
8 * Version:      $Id$
9 *
10 * ccsweb is free software; you can redistribute it and/or modify it under the
11 * terms of the GNU General Public License version 2 as published by the Free
12 * Software Foundation.
13 *
14 * ccsweb is distributed in the hope that it will be useful, but WITHOUT ANY
15 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17 * details.
18 *
19 * You should have received a copy of the GNU General Public License along with
20 * ccsweb; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
22 *}
23
24<tr> 
25    <th width="200" >Type</th><td>
26        <select id="type" name="type" />
27            <option value="DEF" {if $part.type == "DEF"}selected="selected"{/if}>DEF</option>
28            <option value="CDEF" {if $part.type == "CDEF"}selected="selected"{/if}>CDEF</option>
29            <option value="PRINT" {if $part.type == "PRINT"}selected="selected"{/if}>PRINT</option>
30            <option value="GPRINT" {if $part.type == "GPRINT"}selected="selected"{/if}>GPRINT</option>
31            <option value="COMMENT" {if $part.type == "COMMENT"}selected="selected"{/if}>COMMENT</option>
32            <option value="VRULE" {if $part.type == "VRULE"}selected="selected"{/if}>VRULE</option>
33            <option value="HRULE" {if $part.type == "HRULE"}selected="selected"{/if}>HRULE</option>
34            <option value="LINE1" {if $part.type == "LINE1"}selected="selected"{/if}>LINE1</option>
35            <option value="LINE2" {if $part.type == "LINE2"}selected="selected"{/if}>LINE2</option>
36            <option value="LINE3" {if $part.type == "LINE3"}selected="selected"{/if}>LINE3</option>
37            <option value="SHIFT" {if $part.type == "SHIFT"}selected="selected"{/if}>SHIFT</option>
38            <option value="STACK" {if $part.type == "STACK"}selected="selected"{/if}>STACK</option>
39            <option value="AREA" {if $part.type == "AREA"}selected="selected"{/if}>AREA</option>
40        </select></td>   
41</tr>
42<tr>    
43    <th width="200">Order</th>
44    <td><input type="text" name="graph_order" id="graph_order" value="{$part.graph_order}"/>This field controls the order in which they are used during rendering. If two numbers are the same it is undefined what order they will be used.</td>
45</tr>
46{if $part.type == "LINE1" || $part.type == "LINE2" || $part.type == "LINE2" || $part.type == "AREA" || $part.type == "STACK"}
47<tr>    
48    <th width="200">Variable</th><td>
49        <select name="varname" id="varname">
50        {foreach from=$vars item=var}
51            <option value="{$var.varname}" {if $var.varname == $part.varname}selected="selected"{/if}>{$var.varname}</option>
52        {/foreach}
53        </select>
54</td></tr>
55<tr>    
56    <th width="200">Colour</th>
57    <td><input type="text" name="colour" id="colour" value="{$part.colour}"/>The draw colour</td>
58</tr>
59<tr>    
60    <th width="200">Legend</th>
61    <td><input type="text" name="text" id="text" value="{$part.text}"/></td>
62</tr>
63
64{/if}
65{if $part.type == "HRULE"}
66<tr>    
67    <th width="200">Value</th>
68    <td><input type="text" name="varname" id="varname" value="{$part.varname}"/></td>
69</tr>
70<tr>    
71    <th width="200">Colour</th>
72    <td><input type="text" name="colour" id="colour" value="{$part.colour}"/>The draw colour</td>
73</tr>
74<tr>    
75    <th width="200">Legend</th>
76    <td><input type="text" name="text" id="text" value="{$part.text}"/></td>
77</tr>
78{/if}
79{if $part.type == "VRULE"}
80<tr>    
81    <th width="200">Time</th>
82    <td><input type="text" name="varname" id="varname" value="{$part.varname}"/>In seconds since 1 Jan 1970</td>
83</tr>
84<tr>    
85    <th width="200">Colour</th>
86    <td><input type="text" name="colour" id="colour" value="{$part.colour}"/>The draw colour</td>
87</tr>
88<tr>    
89    <th width="200">Legend</th>
90    <td><input type="text" name="text" id="text" value="{$part.text}"/></td>
91</tr>
92
93{/if}
94{if $part.type == "PRINT" || $part.type == "GPRINT"}
95<tr>    
96    <th width="200">Variable</th><td>
97        <select name="varname" id="varname">
98        {foreach from=$vars item=var}
99            <option value="{$var.varname}" {if $var.varname == $part.varname}selected="selected"{/if}>{$var.varname}</option>
100        {/foreach}
101        </select>
102</td></tr>
103<tr>    
104    <th width="200">CF</th><td>
105        <select id="cf" name="cf" />
106            <option value="AVERAGE" {if $part.cf == "AVERAGE"}selected="selected"{/if}>AVERAGE</option>
107            <option value="LAST" {if $part.cf == "LAST"}selected="selected"{/if}>LAST</option>
108            <option value="MAX" {if $part.cf == "MAX"}selected="selected"{/if}>MAX</option>
109            <option value="MIN" {if $part.cf == "MIN"}selected="selected"{/if}>MIN</option>
110        </select></td>       
111</tr>
112<tr>    
113    <th width="200">Statement</th>
114    <td><input type="text" name="text" id="text" value="{$part.text}"/></td>
115</tr>
116{/if}
117{if $part.type == "COMMENT"}
118<tr>    
119    <th width="200">Comment</th>
120    <td><input type="text" name="text" id="text" value="{$part.text}"/></td>
121</tr>
122{/if}
123{if $part.type == "DEF"}
124<tr>    
125    <th width="200">Variable</th>
126    <td><input type="text" name="varname" id="varname" value="{$part.varname}"/>The variable name</td>
127</tr>
128<tr>    
129    <th width="200">RRD Item</th><td>
130        <select name="text" id="text">
131        {foreach from=$items item=item}
132            <option value="{$item.name}" {if $part.text == $item.name}selected="selected"{/if}>{$item.name}</option>
133        {/foreach}
134        </select>
135</td></tr>   
136<tr>    
137    <th width="200">CF</th><td>
138        <select id="cf" name="cf" />
139            <option value="AVERAGE" {if $part.cf == "AVERAGE"}selected="selected"{/if}>AVERAGE</option>
140            <option value="LAST" {if $part.cf == "LAST"}selected="selected"{/if}>LAST</option>
141            <option value="MAX" {if $part.cf == "MAX"}selected="selected"{/if}>MAX</option>
142            <option value="MIN" {if $part.cf == "MIN"}selected="selected"{/if}>MIN</option>
143        </select></td>       
144</tr>
145
146{/if}
147{if $part.type == "CDEF"}
148<tr>    
149    <th width="200">Variable</th>
150    <td><input type="text" name="varname" id="varname" value="{$part.varname}"/>The variable name</td>
151</tr>
152<tr>    
153    <th width="200">Chain</th>
154    <td><input type="text" name="text" id="text" value="{$part.text}"/></td>
155</td></tr> 
156{/if}
157<tr>    
158    <td colspan=2>
159    <input type="submit" name="submit" id="submit" value="Update Part Type &gt;&gt;">
160    </td>
161</tr>
Note: See TracBrowser for help on using the repository browser.