From 463bf37cf24b2866e19917338c1f6478f33da1c8 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 18 Jun 2014 00:15:50 +0200 Subject: [PATCH] Add LSattr_html::select_box --- .../class/class.LSattr_html_select_box.php | 38 ++++++++++++++++++ .../class/class.LSformElement_select_box.php | 39 +++++++++++++++++++ .../default/LSformElement_select_box.tpl | 19 +++++++++ 3 files changed, 96 insertions(+) create mode 100644 public_html/includes/class/class.LSattr_html_select_box.php create mode 100644 public_html/includes/class/class.LSformElement_select_box.php create mode 100644 public_html/templates/default/LSformElement_select_box.tpl diff --git a/public_html/includes/class/class.LSattr_html_select_box.php b/public_html/includes/class/class.LSattr_html_select_box.php new file mode 100644 index 00000000..bd295ae5 --- /dev/null +++ b/public_html/includes/class/class.LSattr_html_select_box.php @@ -0,0 +1,38 @@ + type checkbox + * for multiple values selection and type radio for single value + * selection. + * + * @author Benjamin Renard + */ +class LSattr_html_select_box extends LSattr_html_select_list { + + var $LSformElement_type = 'select_box'; + +} diff --git a/public_html/includes/class/class.LSformElement_select_box.php b/public_html/includes/class/class.LSformElement_select_box.php new file mode 100644 index 00000000..c72a27ea --- /dev/null +++ b/public_html/includes/class/class.LSformElement_select_box.php @@ -0,0 +1,39 @@ + + */ + +class LSformElement_select_box extends LSformElement_select { + + var $template = 'LSformElement_select_box.tpl'; + var $fieldTemplate = 'LSformElement_select_box.tpl'; + +} diff --git a/public_html/templates/default/LSformElement_select_box.tpl b/public_html/templates/default/LSformElement_select_box.tpl new file mode 100644 index 00000000..d97e5ac8 --- /dev/null +++ b/public_html/templates/default/LSformElement_select_box.tpl @@ -0,0 +1,19 @@ +