:::
XOOPS使用討論區

请教服務學習管理系統项目修改

discuss pic 2014-03-24 02:28:29
老师好,服務學習管理系統有些项目需要修改,请教如何做:
将新增推荐下的“班级”和“座号”由下拉选单改为手动填写。谢谢
如图
discuss pic 2014-03-24 16:06:15
可以在
模組資料夾下的include/function.php
中找到

function YaohSL_RegEditForm
$formElementClassRadio=new XoopsFormSelect(_MD_FUNCTION_YAOH_SL_TRANS_TASK_INFO_CLASS,"class",$row['class']);
$formElementClassRadio->addOptionArray(array('101','102','103','104','105','106','107','108','109','110','111','112','113','114','115','116','117','118','119','120','201','202','203','204','205','206','207','208','209','210','211','212','213','214','215','216','217','218','219','220','301','302','303','304','305','306','307','308','309','310','311','312','313','314','315','316','317','318','319','320'));
$form->addElement($formElementClassRadio);
$formElementNumberRadio=new XoopsFormSelect(_MD_FUNCTION_YAOH_SL_TRANS_TASK_INFO_CLASS_NUMBER,"class_number",$row['class_number']);
$formElementNumberRadio->addOptionArray(array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40));
$form->addElement($formElementNumberRadio);


換成
$form->addElement(new XoopsFormText(_MD_FUNCTION_YAOH_SL_TRANS_TASK_INFO_CLASS,"class",50,50,$row['class']),false);
$form->addElement(new XoopsFormText(_MD_FUNCTION_YAOH_SL_TRANS_TASK_INFO_CLASS_NUMBER,"class_number",50,50,$row['class_number']),false);
試試看

discuss pic 2014-03-25 00:40:29
谢谢老师,测试过了,可以使用。
一万年太久,只争朝夕,努力向老师们学习。
:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.net%2Fmodules%2Ftad_discuss%2Fdiscuss.php%3FBoardID%3D17%26DiscussID%3D29810

線上使用者

90人線上 (70人在瀏覽討論留言)

會員: 0

訪客: 90

更多…