联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
留言功能怎么添加实现
类型:迅睿CMS 更新时间:2022-04-14 13:30:14

请问一下,留言功能怎么添加实现

回帖
  • 帝云网络-长期接单
    #1楼    帝云网络-长期接单
    2022-04-14 11:18:39
    Edge 0
    • 全局表单

      网站表单性能和内容模块一样,支持百万级数据,附表按5万为基数自动分表。网站表单可以做什么...

    安装【全局网站表单】插件来实现。创建一个 留言反馈的 表单即可。
  • 小进
    #2楼    小进
    2022-04-14 11:32:30
    Chrome 0
    帝云网络-长期接单 能否发一个简单的留言表单参考一下
  • 帝云网络-长期接单
    #3楼    帝云网络-长期接单
    2022-04-14 12:05:45
    Edge 0
    复制代码导入表单:
    image
    {"id":"2","name":"留言反馈","table":"feedback","setting":{"post_add":["1"],"post_code":["1"],"seo":{"title":"{title}{join}{formname}{join}{SITE_NAME}","keywords":"","description":""},"icon":"","dev":"0","rt_text":"","rt_text2":"","rt_url":"","list_field":{"title":{"use":"1","name":"主题","width":"0","func":"title"},"email":{"use":"1","name":"您的邮箱","width":"","func":""},"dianhua":{"use":"1","name":"您的电话","width":"","func":""},"uid":{"use":"1","name":"账号","width":"100","func":"uid"},"inputtime":{"use":"1","name":"录入时间","width":"160","func":"datetime"},"id":{"name":"Id","width":"","func":""},"displayorder":{"name":"排列值","width":"","func":""},"content":{"name":"留言内容","width":"","func":""}},"notice":{"is_send":"0","username":""}},"field":[{"id":"59","name":"您的称呼","fieldname":"title","fieldtype":"Text","relatedid":"2","relatedname":"form-1","isedit":"1","ismain":"1","issystem":"1","ismember":"1","issearch":"0","disabled":"0","setting":"{\"option\":{\"fieldtype\":\"VARCHAR\",\"fieldlength\":\"255\",\"value\":\"\",\"width\":\"400\",\"css\":\"\"},\"validate\":{\"required\":\"1\",\"pattern\":\"\",\"errortips\":\"\",\"xss\":\"1\",\"check\":\"\",\"filter\":\"\",\"tips\":\"\",\"formattr\":\" placeholder=\\\"请输入您的称呼\\\"\"},\"is_right\":\"0\"}","displayorder":"0"},{"id":"60","name":"您的邮箱","fieldname":"email","fieldtype":"Text","relatedid":"2","relatedname":"form-1","isedit":"1","ismain":"1","issystem":"0","ismember":"1","issearch":"0","disabled":"0","setting":"{\"option\":{\"fieldtype\":\"\",\"fieldlength\":\"\",\"value\":\"\",\"width\":\"400\",\"css\":\"\"},\"validate\":{\"required\":\"1\",\"pattern\":\"\\\/^[\\\\w\\\\-\\\\.]+@[\\\\w\\\\-\\\\.]+(\\\\.\\\\w+)+$\\\/\",\"errortips\":\"\",\"check\":\"\",\"filter\":\"\",\"tips\":\"\",\"formattr\":\" placeholder=\\\"请输入您的邮箱\\\"\"},\"is_right\":\"0\"}","displayorder":"0"},{"id":"63","name":"作者","fieldname":"author","fieldtype":"Text","relatedid":"2","relatedname":"form-1","isedit":"1","ismain":"1","issystem":"1","ismember":"1","issearch":"1","disabled":"1","setting":"{\"is_right\":1,\"option\":{\"width\":200,\"fieldtype\":\"VARCHAR\",\"fieldlength\":\"255\"},\"validate\":{\"xss\":1}}","displayorder":"0"},{"id":"71","name":"您的手机","fieldname":"phone","fieldtype":"Text","relatedid":"2","relatedname":"form-1","isedit":"1","ismain":"1","issystem":"0","ismember":"1","issearch":"0","disabled":"0","setting":"{\"option\":{\"fieldtype\":\"\",\"fieldlength\":\"\",\"value\":\"\",\"width\":\"\",\"css\":\"\"},\"validate\":{\"xss\":\"1\",\"required\":\"0\",\"pattern\":\"\",\"errortips\":\"\",\"check\":\"\",\"filter\":\"\",\"tips\":\"\",\"formattr\":\"\"},\"is_right\":\"0\"}","displayorder":"0"},{"id":"62","name":"留言内容","fieldname":"content","fieldtype":"Textarea","relatedid":"2","relatedname":"form-1","isedit":"1","ismain":"1","issystem":"0","ismember":"1","issearch":"0","disabled":"0","setting":"{\"option\":{\"value\":\"\",\"width\":\"400\",\"height\":\"\",\"css\":\"\"},\"validate\":{\"required\":\"1\",\"pattern\":\"\",\"errortips\":\"\",\"check\":\"\",\"filter\":\"\",\"tips\":\"\",\"formattr\":\" placeholder=\\\"请输入详情内容\\\"\"},\"is_right\":\"0\"}","displayorder":"10"}],"sql":"DROP TABLE IF EXISTS `{table}`;\nCREATE TABLE IF NOT EXISTS `{table}` (\n  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,\n  `uid` int(10) unsigned DEFAULT '0' COMMENT '录入者uid',\n  `author` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '录入者账号',\n  `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '主题',\n  `inputip` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '录入者ip',\n  `inputtime` int(10) unsigned NOT NULL COMMENT '录入时间',\n  `status` tinyint(1) DEFAULT NULL COMMENT '状态值',\n  `displayorder` int(11) NOT NULL DEFAULT '0' COMMENT '排序值',\n  `tableid` smallint(5) unsigned NOT NULL COMMENT '附表id',\n  `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '您的邮箱',\n  `content` text COLLATE utf8mb4_unicode_ci COMMENT '留言内容',\n  `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '您的手机',\n  PRIMARY KEY (`id`),\n  KEY `uid` (`uid`),\n  KEY `status` (`status`),\n  KEY `inputtime` (`inputtime`),\n  KEY `displayorder` (`displayorder`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='留言反馈表单表';\nDROP TABLE IF EXISTS `{table}_data_0`;\nCREATE TABLE IF NOT EXISTS `{table}_data_0` (\n  `id` int(10) unsigned NOT NULL,\n  `uid` int(10) unsigned DEFAULT '0' COMMENT '录入者uid',\n  UNIQUE KEY `id` (`id`),\n  KEY `uid` (`uid`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='留言反馈表单附表';\n"}
    前端提交留言界面:http://www.xxxx.com/index.php?s=form&c=feedback&m=post 然后自己美化界面就行了
    满意答案
  • 小进
    #4楼    小进
    2022-04-14 13:30:14
    Chrome 0
    @帝云网络-长期接单:大哥就是厉害