Etable/formType/末端指示元素:修訂版本之間的差異

出自六年制學程
跳轉到: 導覽搜尋
第 30 行: 第 30 行:
 
:*範例程式:待找
 
:*範例程式:待找
 
'''補充說明如何輸入欄值(使用者控制):'''
 
'''補充說明如何輸入欄值(使用者控制):'''
:end($this->formType["$lc_name"])['showColExplain']
+
#end($this->formType["$lc_name"])['showColExplain']
 +
#*用於 formType 為 auto 或 text 之欄;或
 +
#*相關諸方法
 +
#*#函式 addElements($i,$value):製造「插、編」表單,
 +
#*#* auto 或 text 欄中,增加欄位的注入說明
 +
#*#*隱藏欄的末端指示元素,同時設'formType'為 'auto' ,'showColExplain' 為欄位注入補充說明
 +
#end($this->formType["$lc_name"])['formType']
 +
#*用於隱藏欄非以預設函式賦值時(由使用者賦值),指定的表單元件型態。目前只定義了 auto 一種。
 +
#*相關諸方法
 +
#*:函式 addElements($i,$value):製造「插、編」表單,隱藏欄的末端指示元素,同時設'formType'為 'auto' ,'showColExplain' 為欄位注入補充說明

2024年5月2日 (四) 08:59的修訂版本

元素:
end($this->formType["$lc_name"])
有
end($this->formType["$lc_name"])['elementSeparator'] 用於複選 checkbox
end($this->formType["$lc_name"])['showColValueGuide'] 須為字串,代表 $字串(array('colOrder'=>$j,'value'=>$value,'row'=>$row))
end($this->formType["$lc_name"])['showColExplain'] 空字串或字串,用於文字區塊
第 1313 行,if 條件可能有錯

均優
\quality\2023\agenda\person.php(36):	'交通車'=>array('bitCheckbox',array(各交通車次),array('showColValueGuide'=>'f6')) 
\2023\agenda\personAM.php(38):		'交通車'=>array('bitCheckbox',array(各交通車次),array('showColValueGuide'=>'f6'))
\2023\agenda\editAgenda.php(14):'議程人員'=>array('auto',array('plain'),array('showColExplain'=>'<br/>議程人員填寫範例:⋯')),
\2023\agenda\person.php(28):	'社群聚會申請'=>array('text',array('showColExplain'=>'<br/>(請留言希望的時間與場地需求)')),
\2023\agenda\personAM.php(30):	'社群聚會申請'=>array('text',array('showColExplain'=>'<br/>(請留言希望的時間與場地需求)')),
DS218+
\ggp\course\trigger.php(18):	'內文'=>array('auto',array('wiki'),array('showColValueGuide'=>'f1')),
\ggp\course\trigger0.php(18):	'內文'=>array('auto',array('wiki'),array('showColValueGuide'=>'f1')),
\ggp\DEC\trigger.php(18):	'內文'=>array('auto',array('wiki'),array('showColValueGuide'=>'f1')),
\ggp\DEC\trigger0.php(18):	'內文'=>array('auto',array('wiki'),array('showColValueGuide'=>'f1')),
\ggp\signupDoings\20240414OST動員.php(17):	'連絡註記'=>array('auto',array('wiki'),array('showColExplain'=>'填寫提示')),

補充說明欄位含意(數據模型):

end($this->formType["$lc_name"])['elementSeparator']
  • 用於複選核取方塊
  • 相關諸方法
    1. 函式 fieldValue2sqlStr 中:決定欄值中諸選項的分隔符號
    2. 函式 colValue($j,$value,$row):將複選核取方塊諸項,由值轉成提示
    3. 函式 addElements($i,$value):製造「插、編」表單諸複選欄中,哪些欄值被預選
  • 範例程式:待找

補充說明如何輸入欄值(使用者控制):

  1. end($this->formType["$lc_name"])['showColExplain']
    • 用於 formType 為 auto 或 text 之欄;或
    • 相關諸方法
      1. 函式 addElements($i,$value):製造「插、編」表單,
        • auto 或 text 欄中,增加欄位的注入說明
        • 隱藏欄的末端指示元素,同時設'formType'為 'auto' ,'showColExplain' 為欄位注入補充說明
  2. end($this->formType["$lc_name"])['formType']
    • 用於隱藏欄非以預設函式賦值時(由使用者賦值),指定的表單元件型態。目前只定義了 auto 一種。
    • 相關諸方法
      函式 addElements($i,$value):製造「插、編」表單,隱藏欄的末端指示元素,同時設'formType'為 'auto' ,'showColExplain' 為欄位注入補充說明