账号通
    

账号  

密码  

3788

查看

4

回复
主题:[分享]KesionCMS X1.5后台自定义日期字段增加日期选择器的修改 [收藏主题] 转到:  
科汛官方 当前离线

47268

主题

145

广播

405

粉丝
添加关注
级别:管理员

用户积分:101604 分
登录次数:7935 次
注册时间:2006/12/7
最后登录:2023/12/14
科汛官方 发表于:2015/11/16 10:59:54   | 显示全部帖子 查看该作者主题 楼主 
科汛在线考试系统(NET)

修改后自定义日期字段效果:

点击查看原图




修改代码如下:


打开ks_cls/kesion.administratorcls.asp


找到

427行


          GetDiyField=GetDiyField & "<input placeholder="""& Node.SelectSingleNode("tips").text&""" maxlength=""" &MaxLength &""" type=""text"" class=""textbox"" style=""width:" & XWidth & "px"" name=""" & fieldname & """ id=""" & fieldname & """ value=""" & F_Value & """>"


改成


if fieldtype=5 then
          GetDiyField=GetDiyField & "<inputWdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});"" placeholder="""& Node.SelectSingleNode("tips").text&""" maxlength=""" &MaxLength &""" type=""text"" class=""textbox Wdate"" style=""width:" & XWidth & "px"" name=""" & fieldname & """ id=""" & fieldname & """ value=""" & F_Value & """>"
         Else
          GetDiyField=GetDiyField & "<input placeholder="""& Node.SelectSingleNode("tips").text&""" maxlength=""" &MaxLength &""" type=""text"" class=""textbox"" style=""width:" & XWidth & "px"" name=""" & fieldname & """ id=""" & fieldname & """ value=""" & F_Value & """>"
         end if

 
KesionCMS,,
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.06445秒 powered by KesionCMS 9.0