From 375b270c9f5ddc5c488f8f79b61130c1913f0e2d Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Sun, 29 Dec 2013 01:49:32 +0100 Subject: haproxy-devel, -ability to NOT have a default_backend (if all frontends in a group use acl's) -allow selecting multiple certificates for a single frontend -support for configuring new 'agent-check' -refactoring of html row_helper(), javascript table editing, field definition -create 'valid' HTML (closing tags/javascript blocks/styles in head) --- config/haproxy-devel/haproxy_htmllist.inc | 246 ++++++++++++++++++++++++++++++ 1 file changed, 246 insertions(+) create mode 100644 config/haproxy-devel/haproxy_htmllist.inc (limited to 'config/haproxy-devel/haproxy_htmllist.inc') diff --git a/config/haproxy-devel/haproxy_htmllist.inc b/config/haproxy-devel/haproxy_htmllist.inc new file mode 100644 index 00000000..2e93ca2a --- /dev/null +++ b/config/haproxy-devel/haproxy_htmllist.inc @@ -0,0 +1,246 @@ + + "; + foreach($items as $item){ + echo "{$item['columnheader']}"; + } + echo " + "; + if (is_array($values)){ + foreach($values as $value){ + if (!$editstate) { + echo ""; + $leftitem = true; + foreach($items as $item){ + $tdclass = $leftitem ? "vtable listlr" : "vtable listr"; + echo ""; + $itemname = $item['name']; + $itemtype = $item['type']; + $itemvalue = $value[$itemname]; + if ($itemtype == "select"){ + echo $item['items'][$itemvalue]['name']; + } else + if ($itemtype == "checkbox"){ + echo $itemvalue=='yes' ? gettext('yes') : gettext('no'); + } else + echo $itemvalue; + echo ""; + $leftitem = false; + } + echo " + + + + +
+ + + + + +
+ "; + echo ""; + } + $displaystyle = $editstate ? "" : "display: none;"; + echo ""; + foreach($items as $item){ + $itemname = $item['name']; + $itemtype = $item['type']; + $itemvalue = $value[$itemname]; + $itemnamenr = $itemname.$counter; + echo ""; + if ($itemtype == "select"){ + echo_html_select($itemnamenr, $item['items'], $itemvalue,"","updatevisibility();", "width:{$item['size']}"); + } else + if ($itemtype == "checkbox"){ + $checked = $itemvalue=='yes' ? " checked" : ""; + echo ""; + + } else + echo ""; + echo ""; + } + echo " + + + +
+ + + +
+ "; + echo ""; + $counter++; + } + } + echo " + + + "; +} + +function haproxy_htmllist_js(){ +?> -- cgit v1.2.3