增加create_form_button函数,用于简单的创建按钮
This commit is contained in:
parent
c7475d1a35
commit
19d34f7cad
@ -6,6 +6,7 @@
|
|||||||
require_once 'tools_time.php';
|
require_once 'tools_time.php';
|
||||||
require_once 'tools_file.php';
|
require_once 'tools_file.php';
|
||||||
require_once 'tools_sql.php';
|
require_once 'tools_sql.php';
|
||||||
|
require_once 'tools_button.php';
|
||||||
|
|
||||||
require_once 'form/form_select.php';
|
require_once 'form/form_select.php';
|
||||||
require_once 'form/form_radio.php';
|
require_once 'form/form_radio.php';
|
||||||
|
@ -93,7 +93,6 @@
|
|||||||
echo $text.'</a>';
|
echo $text.'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function echo_span_label($style,$text)
|
function echo_span_label($style,$text)
|
||||||
{
|
{
|
||||||
echo '<span class="label label-'.$style.'">'.$text.'</span>';
|
echo '<span class="label label-'.$style.'">'.$text.'</span>';
|
||||||
|
15
tools_button.php
Normal file
15
tools_button.php
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
require_once "form/form.php";
|
||||||
|
require_once "form/form_button.php";
|
||||||
|
|
||||||
|
function create_form_button($form_name,$link,$type,$value_list,$button_text,$button_style)
|
||||||
|
{
|
||||||
|
$ui=new UIForm($form_name,$type,$link);
|
||||||
|
|
||||||
|
$ui->start();
|
||||||
|
foreach($value_list as $key=>$value)
|
||||||
|
$ui->add_hidden_value($key,$value);
|
||||||
|
|
||||||
|
$ui->submit_end($button_text);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user