提交按钮增加风格有效
This commit is contained in:
parent
58d78b760e
commit
6518ebbe12
@ -104,9 +104,16 @@
|
|||||||
$this->add_hidden_value('form_time',$_SESSION["final_submit"]);
|
$this->add_hidden_value('form_time',$_SESSION["final_submit"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function submit_end($submit_name)
|
public function submit_end()
|
||||||
{
|
{
|
||||||
echo '<input type="submit" value="'.$submit_name.'" class="btn btn-primary" style="margin: 4px;"/>';
|
$submit_name=func_get_arg(0);
|
||||||
|
|
||||||
|
if(func_num_args()>1)
|
||||||
|
$button_style=func_get_arg(1);
|
||||||
|
else
|
||||||
|
$button_style="primary";
|
||||||
|
|
||||||
|
echo '<input type="submit" value="'.$submit_name.'" class="btn btn-'.$button_style.'" style="margin: 4px;"/>';
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
|
||||||
if($this->panel_title)
|
if($this->panel_title)
|
||||||
|
26
tools.php
26
tools.php
@ -111,15 +111,37 @@
|
|||||||
echo get_span_label_html($style,$text);
|
echo get_span_label_html($style,$text);
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_icon_html($name)
|
function get_icon_html()
|
||||||
|
{
|
||||||
|
$name=func_get_arg(0);
|
||||||
|
|
||||||
|
if(func_num_args()>1)
|
||||||
|
{
|
||||||
|
$style=func_get_arg(1);
|
||||||
|
|
||||||
|
return '<i class="fa fa-'.$name.' '.$style.'" aria-hidden="true"></i>';
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
return '<i class="fa fa-'.$name.'" aria-hidden="true"></i>';
|
return '<i class="fa fa-'.$name.'" aria-hidden="true"></i>';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function echo_icon($name)
|
function echo_icon()
|
||||||
|
{
|
||||||
|
$name=func_get_arg(0);
|
||||||
|
|
||||||
|
if(func_num_args()>1)
|
||||||
|
{
|
||||||
|
$style=func_get_arg(1);
|
||||||
|
|
||||||
|
echo get_icon_html($name,$style);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
echo get_icon_html($name);
|
echo get_icon_html($name);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function get_badge_html()
|
function get_badge_html()
|
||||||
{
|
{
|
||||||
|
@ -11,5 +11,5 @@
|
|||||||
foreach($value_list as $key=>$value)
|
foreach($value_list as $key=>$value)
|
||||||
$ui->add_hidden_value($key,$value);
|
$ui->add_hidden_value($key,$value);
|
||||||
|
|
||||||
$ui->submit_end($button_text);
|
$ui->submit_end($button_text,$button_style);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user