dedecms自定义留言板
dedecms自定义留言板,插入数据库
-- phpMyAdmin SQL Dump -- version 3.3.7 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2015 年 10 月 13 日 15:31 -- 服务器版本: 5.1.63 -- PHP 版本: 5.2.17p1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- 数据库: `qiye032` -- -- -------------------------------------------------------- -- -- 表的结构 `sk_diyform1` -- CREATE TABLE IF NOT EXISTS `sk_diyform1` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ifcheck` tinyint(1) NOT NULL DEFAULT '0', `s_name` varchar(250) NOT NULL DEFAULT '', `s_title` varchar(250) NOT NULL DEFAULT '', `s_phone` varchar(250) NOT NULL DEFAULT '', `s_email` varchar(250) NOT NULL DEFAULT '', `s_content` mediumtext, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- 转存表中的数据 `sk_diyform1` -- INSERT INTO `sk_diyform1` (`id`, `ifcheck`, `s_name`, `s_title`, `s_phone`, `s_email`, `s_content`) VALUES (1, 1, 'aaaaa', 'bbbb', 'ccc', 'cdd', 'ddd'); -- phpMyAdmin SQL Dump -- version 3.3.7 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2015 年 10 月 13 日 15:32 -- 服务器版本: 5.1.63 -- PHP 版本: 5.2.17p1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- 数据库: `qiye032` -- -- -------------------------------------------------------- -- -- 表的结构 `sk_diyforms` -- CREATE TABLE IF NOT EXISTS `sk_diyforms` ( `diyid` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', `posttemplate` varchar(50) NOT NULL, `viewtemplate` varchar(50) NOT NULL, `listtemplate` varchar(50) NOT NULL, `table` varchar(50) NOT NULL DEFAULT '', `info` text, `public` tinyint(1) NOT NULL DEFAULT '1', PRIMARY KEY (`diyid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ; -- -- 转存表中的数据 `sk_diyforms` -- INSERT INTO `sk_diyforms` (`diyid`, `name`, `posttemplate`, `viewtemplate`, `listtemplate`, `table`, `info`, `public`) VALUES (1, '在线留言', 'post_diyform1.htm', 'view_diyform1.htm', 'list_diyform1.htm', 'sk_diyform1', '\n<field:s_name itemname="姓名" autofield="1" type="text" isnull="true" default="" maxlength="250" page="">\r\n</field:s_name>\r\n\n<field:s_title itemname="标题" autofield="1" type="text" isnull="true" default="" maxlength="250" page="">\r\n</field:s_title>\r\n\n<field:s_phone itemname="电话" autofield="1" type="text" isnull="true" default="" maxlength="250" page="">\r\n</field:s_phone>\r\n\n<field:s_email itemname="邮箱" autofield="1" type="text" isnull="true" default="" maxlength="250" page="">\r\n</field:s_email>\r\n\n<field:s_content itemname="内容" autofield="1" type="multitext" isnull="true" default="" maxlength="250" page="">\r\n</field:s_content>\r\n', 1);插入html代码
<iframe frameborder="0" id="iframepage" marginheight="0" marginwidth="0" onload="iFrameHeight()" scrolling="no" src="http://www.njlyx.com/plus/diy.php?action=list&diyid=1"></iframe><script type="text/javascript" language="javascript"> function iFrameHeight() { var ifm= document.getElementById("iframepage"); var subWeb = document.frames ? document.frames["iframepage"].document : ifm.contentDocument; if(ifm != null && subWeb != null) { ifm.height = subWeb.body.scrollHeight; ifm.width = subWeb.body.scrollWidth; } } </script> <form action="/plus/diy.php" enctype="multipart/form-data" method="post"> <input name="action" type="hidden" value="post" /> <input name="diyid" type="hidden" value="1" /> <input name="do" type="hidden" value="2" /> <input name="dede_fields" type="hidden" value="s_name,text;s_title,text;s_phone,text;s_email,text;s_content,multitext" /><input name="dede_fieldshash" type="hidden" value="9a4d6a38f673a57a56301bfce3368241" /> <table cellpadding="0" cellspacing="1" style="width:97%;"> <tbody> <tr> <td align="right" valign="top"> 姓名:</td> <td> <input class="intxt" id="s_name" name="s_name" style="width:250px" type="text" value="" /></td> </tr> <tr> <td align="right" valign="top"> 标题:</td> <td> <input class="intxt" id="s_title" name="s_title" style="width:250px" type="text" value="" /></td> </tr> <tr> <td align="right" valign="top"> 电话:</td> <td> <input class="intxt" id="s_phone" name="s_phone" style="width:250px" type="text" value="" /></td> </tr> <tr> <td align="right" valign="top"> 邮箱:</td> <td> <input class="intxt" id="s_email" name="s_email" style="width:250px" type="text" value="" /></td> </tr> <tr> <td align="right" valign="top"> 内容:</td> <td> <textarea id="s_content" name="s_content" style="width:90%;height:80"></textarea></td> </tr> </tbody> </table> <div align="center" style="height:30px;padding-top:10px;"> <input class="coolbg" name="submit" type="submit" value="提 交" /> <input class="coolbg" name="reset" type="reset" value="重 置" /></div> </form>
aaaaaaaa