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

出自六年制學程
跳轉到: 導覽搜尋
 
(未顯示同用戶所作出之14次版本)
第 1 行: 第 1 行:
[[分類:Etable]][[分類:LiteSite]]<pre>
+
[[分類:Etable]][[分類:LiteSite]]
元素:
+
'''補充說明欄位含意(M,數據模型):'''
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'=>'填寫提示')),
+
</pre>
+
'''補充說明欄位含意(數據模型):'''
+
 
:end($this->formType["$lc_name"])['elementSeparator']
 
:end($this->formType["$lc_name"])['elementSeparator']
 
:*用於複選核取方塊
 
:*用於複選核取方塊
 
:*相關諸方法
 
:*相關諸方法
 
:*#函式 fieldValue2sqlStr 中:決定欄值中諸選項的分隔符號
 
:*#函式 fieldValue2sqlStr 中:決定欄值中諸選項的分隔符號
:*#函式 colValue($j,$value,$row):將複選核取方塊諸項,由值轉成提示
+
:*#函式 colValue(欄序,原始欄值,$row):將複選核取方塊諸項,由值轉成提示
 
:*#函式 addElements($i,$value):製造「插、編」表單諸複選欄中,哪些欄值被預選
 
:*#函式 addElements($i,$value):製造「插、編」表單諸複選欄中,哪些欄值被預選
:*範例程式:待找
+
:*範例程式:
'''補充說明如何輸入欄值(使用者控制):'''
+
:*#[http://gogopublic.net/ggp/OSJA/OSJAhelper.php http://gogopublic.net/ggp/OSJA/OSJAhelper.php],施采邑,兩者都不選,應住入空白,但注入 0
:end($this->formType["$lc_name"])['showColExplain']
+
'''補充說明如何輸入欄值(C,使用者控制):'''
 +
#end($this->formType["$lc_name"])['showColExplain']
 +
#*用於 formType 為 auto 或 text 之欄;或
 +
#*相關諸方法
 +
#:函式 addElements($i,$value):製造「插、編」表單,
 +
#:* auto 或 text 欄中,增加欄位的注入說明
 +
#:*隱藏欄的末端指示元素,同時設'formType'為 'auto' ,'showColExplain' 為欄位注入補充說明
 +
#*範例程式:
 +
#*# [http://quality-learning.net/2023/agenda/person.php 看議程人員有沒有要申請社群聚會時段]
 +
#*# http://quality-learning.net/2023/agenda/editAgenda.php 不可用,缺表 2023AgendaMaker
 +
#end($this->formType["$lc_name"])['formType']
 +
#*用於隱藏欄非以預設函式賦值時(由使用者賦值),指定的表單元件型態。目前只定義了 auto 一種。
 +
#*相關諸方法
 +
#:函式 addElements($i,$value):製造「插、編」表單,隱藏欄的末端指示元素,同時設'formType'為 'auto' ,'showColExplain' 為欄位注入補充說明
 +
#*範例程式:
 +
#*#[http://gogopublic.net/ggp/DEC/trigger1.php http://gogopublic.net/ggp/DEC/trigger1.php]
 +
'''指示欄值顯示函式(V,view):'''
 +
:end($this->formType["$lc_name"])['showColValueGuide']須為字串,為自訂函式名稱
 +
:*用於所有欄位
 +
:*相關諸方法
 +
::函式 colValue(欄序,原始欄值,$row):按自定函數表現欄值<br/>函式的引數為陣列,形式如:<br/>函式名(array('colOrder'=>欄序,'value'=>原始欄值,'row'=>$row))
 +
:*範例程式:
 +
:*# http://urclass.net/AL/course.php?workControl&#91;cid&#93;=197, searchSelect 型的欄可以指示 showColValueGuide
 +
:*#*修改 formsome.php 中的 function XoopsFormSearchSelect(…) ,依指示生成 $valuePrompt ,且 $j->addOptionArray 時可以送 $value=>$valuePrompt
 +
:*#[http://gogopublic.net/ggp/DEC/trigger.php http://gogopublic.net/ggp/DEC/trigger.php]
 +
:*#[http://gogopublic.net/ggp/DEC/trigger0.php http://gogopublic.net/ggp/DEC/trigger0.php]
 +
:*#[http://quality-learning.net/2022/agenda/person.php http://quality-learning.net/2022/agenda/person.php 的交通車欄]
 +
:*#[http://quality-learning.net/2022/agenda/personAM.php http://quality-learning.net/2022/agenda/personAM.php]

2024年5月15日 (三) 16:55的最新修訂版本

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

end($this->formType["$lc_name"])['elementSeparator']
  • 用於複選核取方塊
  • 相關諸方法
    1. 函式 fieldValue2sqlStr 中:決定欄值中諸選項的分隔符號
    2. 函式 colValue(欄序,原始欄值,$row):將複選核取方塊諸項,由值轉成提示
    3. 函式 addElements($i,$value):製造「插、編」表單諸複選欄中,哪些欄值被預選
  • 範例程式:
    1. http://gogopublic.net/ggp/OSJA/OSJAhelper.php,施采邑,兩者都不選,應住入空白,但注入 0

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

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

指示欄值顯示函式(V,view):

end($this->formType["$lc_name"])['showColValueGuide']須為字串,為自訂函式名稱
  • 用於所有欄位
  • 相關諸方法
函式 colValue(欄序,原始欄值,$row):按自定函數表現欄值
函式的引數為陣列,形式如:
函式名(array('colOrder'=>欄序,'value'=>原始欄值,'row'=>$row))