迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
请问一下,留言功能怎么添加实现
网站表单性能和内容模块一样,支持百万级数据,附表按5万为基数自动分表。网站表单可以做什么...
{"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"}
全局表单
网站表单性能和内容模块一样,支持百万级数据,附表按5万为基数自动分表。网站表单可以做什么...
前端提交留言界面:http://www.xxxx.com/index.php?s=form&c=feedback&m=post 然后自己美化界面就行了