form增加add_file_upload功能

This commit is contained in:
hyzboy 2017-03-15 11:33:23 +08:00
parent 8d9d0da3d4
commit cc8015f59d

View File

@ -67,6 +67,11 @@
echo '<input type="text" name="'.$flag.'" value="'.date("Y-m-d H:i").'"/>'; echo '<input type="text" name="'.$flag.'" value="'.date("Y-m-d H:i").'"/>';
} }
function add_file_upload($id,$name)
{
echo '<input type="file" name="'.$name.'" id="'.$id.'"/>';
}
public function start() public function start()
{ {
if($this->width>0) if($this->width>0)
@ -96,6 +101,7 @@
{ {
echo '<input type="submit" value="'.$submit_name.'" class="btn btn-primary" style="margin: 4px;"/>'; echo '<input type="submit" value="'.$submit_name.'" class="btn btn-primary" style="margin: 4px;"/>';
echo '</form>'; echo '</form>';
if($this->panel_title) if($this->panel_title)
echo '</div></div>'; echo '</div></div>';
@ -106,9 +112,12 @@
public function end() public function end()
{ {
echo '</form>'; echo '</form>';
if($this->panel_title) if($this->panel_title)
echo '</div></div>'; echo '</div></div>';
echo '</div>';
if($this->width>0)
echo '</div>';
} }
};//class UIForm };//class UIForm