联系官方销售客服
1835022288
028-61286886
企业网站一般都会有留言反馈提交页面,推荐使用“全局网站表单”来实现。
第一步:安装“全局网站表单”插件。
第二步:创建“留言反馈”表单
第三步:创建需要的字段
比如添加“姓名”、手机、邮箱、留言内容等字段。
这里准备了一个现成的,可以直接导入
{"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"}
复制这段代码,导入即可
导入后,就有了留言反馈表单,并且设置好了 权限
同时也创建了几个常用字段了
也可以新增删除字段。
前端提交留言的URL地址:http://www.xxxx.com/index.php?s=form&c=feedback&m=post