線上書籍

Home

php-bootstrap-form

require_once XOOPS_ROOT_PATH."/modules/ugm_tools/class/php-bootstrap-form/PFBC/Form.php"; //----- 日期選單 -----------------/ $xoTheme->addScript('modules/tadtools/My97DatePicker/WdatePicker.js'); ob_start(); Form::open("myForm", "",["view" => "Vertical","action" => $_SERVER['PHP_SELF'],"noLabel" => true]);// //echo "<legend>每週課程設定</legend>";

 

Form::Button('儲存', 'submit'); Form::Hidden("op", "courseDetailsInsert"); Form::Hidden("sn",$sn); Form::close(false); $form = ob_get_contents(); ob_end_clean(); $xoopsTpl->assign( "form" , $form) ;

基本架構

<div class='col-sm-6'> <div class=' form-group elem-xxx'> <label for='xxx'>表單用途</label> </div> </div>