From 19d34f7cadd83a0d9dd7b5abffc3d53c7102cc31 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 16 Feb 2017 12:15:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0create=5Fform=5Fbutton?= =?UTF-8?q?=E5=87=BD=E6=95=B0=EF=BC=8C=E7=94=A8=E4=BA=8E=E7=AE=80=E5=8D=95?= =?UTF-8?q?=E7=9A=84=E5=88=9B=E5=BB=BA=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phptools.php | 1 + tools.php | 1 - tools_button.php | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 tools_button.php diff --git a/phptools.php b/phptools.php index 6b54ca7..725a930 100644 --- a/phptools.php +++ b/phptools.php @@ -6,6 +6,7 @@ require_once 'tools_time.php'; require_once 'tools_file.php'; require_once 'tools_sql.php'; + require_once 'tools_button.php'; require_once 'form/form_select.php'; require_once 'form/form_radio.php'; diff --git a/tools.php b/tools.php index ac3d8c7..b879b97 100644 --- a/tools.php +++ b/tools.php @@ -93,7 +93,6 @@ echo $text.''; } - function echo_span_label($style,$text) { echo ''.$text.''; diff --git a/tools_button.php b/tools_button.php new file mode 100644 index 0000000..177c3d6 --- /dev/null +++ b/tools_button.php @@ -0,0 +1,15 @@ +start(); + foreach($value_list as $key=>$value) + $ui->add_hidden_value($key,$value); + + $ui->submit_end($button_text); + } \ No newline at end of file