网站首页
栏目列表
内容详情
表单搜索
其他杂项
迅睿官方标签生成器
网站表单
相关标签
电脑站幻灯大图
{form form=slide num=10}{/form}
手机站幻灯大图
{form form=mslide num=10}{/form}
导入电脑站幻灯大图
{"id":"1","name":"电脑端幻灯大图","table":"slide","setting":{"seo":{"title":"{title}{join}{formname}{join}{SITE_NAME}","keywords":"","description":""},"icon":"","dev":"0","is_close_post":"1","rt_text":"","rt_text2":"","rt_url":"","list_field":{"id":{"use":"1","name":"Id","width":"50","center":"1","func":""},"title":{"use":"1","name":"主题","width":"0","func":"title"},"thumb":{"use":"1","name":"大图","width":"70","func":"my_dr_thumb"},"url":{"use":"1","name":"链接","width":"","func":""},"inputtime":{"use":"1","name":"录入时间","width":"160","func":"datetime"},"uid":{"name":"账号","width":"100","func":"uid"},"displayorder":{"name":"排列值","width":"","func":""},"author":{"name":"作者","width":"","func":""}},"notice":{"username":""}},"field":[{"id":"38","name":"主题","fieldname":"title","fieldtype":"Text","relatedid":"1","relatedname":"form-1","isedit":"1","ismain":"1","issystem":"1","ismember":"1","issearch":"1","disabled":"0","setting":"{\"option\":{\"width\":300,\"fieldtype\":\"VARCHAR\",\"fieldlength\":\"255\"},\"validate\":{\"xss\":1,\"required\":1}}","displayorder":"0"},{"id":"39","name":"作者","fieldname":"author","fieldtype":"Text","relatedid":"1","relatedname":"form-1","isedit":"1","ismain":"1","issystem":"1","ismember":"1","issearch":"1","disabled":"0","setting":"{\"is_right\":1,\"option\":{\"width\":200,\"fieldtype\":\"VARCHAR\",\"fieldlength\":\"255\"},\"validate\":{\"xss\":1}}","displayorder":"0"},{"id":"40","name":"大图","fieldname":"thumb","fieldtype":"File","relatedid":"1","relatedname":"form-1","isedit":"1","ismain":"1","issystem":"0","ismember":"1","issearch":"0","disabled":"0","setting":"{\"option\":{\"fieldtype\":\"\",\"fieldlength\":\"\",\"input\":\"1\",\"ext\":\"jpg,gif,png,jpeg,svg,webp\",\"size\":\"10\",\"attachment\":\"0\",\"image_reduce\":\"\",\"is_ext_tips\":\"0\",\"css\":\"\"},\"validate\":{\"required\":\"0\",\"pattern\":\"\",\"errortips\":\"\",\"check\":\"\",\"filter\":\"\",\"tips\":\"\",\"formattr\":\"\"},\"is_right\":\"0\"}","displayorder":"0"},{"id":"44","name":"链接","fieldname":"url","fieldtype":"Text","relatedid":"1","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"}],"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(200) 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(10) NOT NULL DEFAULT '0' COMMENT '排序值',\n `tableid` smallint(5) unsigned NOT NULL COMMENT '附表id',\n `thumb` text COLLATE utf8mb4_unicode_ci COMMENT '大图',\n `url` 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 AUTO_INCREMENT=5 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"}
导入手机站幻灯大图
{"id":"2","name":"手机端幻灯大图","table":"mslide","setting":{"seo":{"title":"{title}{join}{formname}{join}{SITE_NAME}","keywords":"","description":""},"icon":"","dev":"0","is_close_post":"1","rt_text":"","rt_text2":"","rt_url":"","list_field":{"id":{"use":"1","name":"Id","width":"50","center":"1","func":""},"title":{"use":"1","name":"主题","width":"0","func":"title"},"thumb":{"use":"1","name":"大图","width":"70","func":"my_dr_thumb"},"url":{"use":"1","name":"链接","width":"","func":""},"inputtime":{"use":"1","name":"录入时间","width":"160","func":"datetime"},"uid":{"name":"账号","width":"100","func":"uid"},"displayorder":{"name":"排列值","width":"","func":""},"author":{"name":"作者","width":"","func":""}},"notice":{"username":""}},"field":[{"id":"41","name":"主题","fieldname":"title","fieldtype":"Text","relatedid":"2","relatedname":"form-1","isedit":"1","ismain":"1","issystem":"1","ismember":"1","issearch":"1","disabled":"0","setting":"{\"option\":{\"width\":300,\"fieldtype\":\"VARCHAR\",\"fieldlength\":\"255\"},\"validate\":{\"xss\":1,\"required\":1}}","displayorder":"0"},{"id":"42","name":"作者","fieldname":"author","fieldtype":"Text","relatedid":"2","relatedname":"form-1","isedit":"1","ismain":"1","issystem":"1","ismember":"1","issearch":"1","disabled":"0","setting":"{\"is_right\":1,\"option\":{\"width\":200,\"fieldtype\":\"VARCHAR\",\"fieldlength\":\"255\"},\"validate\":{\"xss\":1}}","displayorder":"0"},{"id":"43","name":"大图","fieldname":"thumb","fieldtype":"File","relatedid":"2","relatedname":"form-1","isedit":"1","ismain":"1","issystem":"0","ismember":"1","issearch":"0","disabled":"0","setting":"{\"option\":{\"fieldtype\":\"\",\"fieldlength\":\"\",\"input\":\"1\",\"ext\":\"jpg,gif,png,jpeg\",\"size\":\"10\",\"attachment\":\"0\",\"image_reduce\":\"\",\"is_ext_tips\":\"0\",\"css\":\"\"},\"validate\":{\"xss\":\"1\",\"required\":\"0\",\"pattern\":\"\",\"errortips\":\"\",\"check\":\"\",\"filter\":\"\",\"tips\":\"\",\"formattr\":\"\"},\"is_right\":\"0\"}","displayorder":"0"},{"id":"45","name":"链接","fieldname":"url","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"}],"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(200) 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(10) NOT NULL DEFAULT '0' COMMENT '排序值',\n `tableid` smallint(5) unsigned NOT NULL COMMENT '附表id',\n `thumb` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '大图',\n `url` 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 AUTO_INCREMENT=5 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"}
网站表单在线留言
{php extract(dr_get_form_post_value('message'));} {$post_url}&is_show_msg=1 {$form} {$myfield} {$diyfield} {$sysfield} {if $is_post_code} {dr_lang('验证码')} <input type="text" name="code"> {dr_code(120, 35)} {/if}
导入网站表单在线留言
{"id":"1","name":"在线留言","table":"message","setting":{"seo":{"title":"{title}{join}{formname}{join}{SITE_NAME}","keywords":"","description":""},"icon":"","dev":"0","is_close_post":"0","rt_text":"","rt_text2":"","rt_url":"","list_field":{"id":{"use":"1","name":"Id","width":"50","center":"1","func":""},"xm":{"use":"1","name":"您的称呼","width":"","func":""},"sj":{"use":"1","name":"联系电话","width":"","func":""},"yx":{"use":"1","name":"邮箱地址","width":"","func":""},"inputtime":{"use":"1","name":"录入时间","width":"160","func":"datetime"},"nra":{"name":"留言内容","width":"","func":""},"uid":{"name":"账号","width":"100","func":"uid"},"displayorder":{"name":"排列值","width":"","func":""}},"notice":{"username":""}},"field":[{"id":"15","name":"主题","fieldname":"title","fieldtype":"Text","relatedid":"1","relatedname":"form-1","isedit":"1","ismain":"1","issystem":"1","ismember":"0","issearch":"1","disabled":"1","setting":"{\"option\":{\"width\":300,\"fieldtype\":\"VARCHAR\",\"fieldlength\":\"255\"},\"validate\":{\"xss\":1,\"required\":1}}","displayorder":"0"},{"id":"16","name":"作者","fieldname":"author","fieldtype":"Text","relatedid":"1","relatedname":"form-1","isedit":"1","ismain":"1","issystem":"1","ismember":"0","issearch":"1","disabled":"1","setting":"{\"is_right\":1,\"option\":{\"width\":200,\"fieldtype\":\"VARCHAR\",\"fieldlength\":\"255\"},\"validate\":{\"xss\":1}}","displayorder":"0"}],"sql":"DROP TABLE IF EXISTS `{table}`;\r\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(200) 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(10) NOT NULL DEFAULT '0' COMMENT '排序值',\n `tableid` smallint(5) unsigned NOT NULL COMMENT '附表id',\n PRIMARY KEY (`id`),\n KEY `uid` (`uid`),\n KEY `status` (`status`),\n KEY `inputtime` (`inputtime`),\n KEY `displayorder` (`displayorder`)\n) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='在线留言表单表';\r\nDROP TABLE IF EXISTS `{table}_data_0`;\r\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='在线留言表单附表';\r\n"}
导入热门搜索词
{"name":"热门搜索词","fieldname":"hotkeywords","fieldtype":"Ftable","isedit":"1","ismain":"1","issystem":"0","ismember":"1","issearch":"0","disabled":"0","setting":{"option":{"is_add":"1","is_first_hang":"0","count":"","first_cname":"","hang":{"1":{"name":""},"2":{"name":""},"3":{"name":""},"4":{"name":""},"5":{"name":""}},"field":{"1":{"type":"1","name":"关键词","width":"200","option":""},"2":{"type":"1","name":"自定义URL","width":"","option":""},"3":{"type":"0","name":"","width":"","option":""},"4":{"type":"0","name":"","width":"","option":""},"5":{"type":"0","name":"","width":"","option":""},"6":{"type":"0","name":"","width":"","option":""},"7":{"type":"0","name":"","width":"","option":""},"8":{"type":"0","name":"","width":"","option":""},"9":{"type":"0","name":"","width":"","option":""},"10":{"type":"0","name":"","width":"","option":""}},"width":"","height":"","css":""},"validate":{"xss":"1","required":"0","pattern":"","errortips":"","check":"","filter":"","tips":"","formattr":""},"is_right":"0"},"displayorder":"0"}
验证码
{if $is_post_code}{dr_lang('验证码')}<input type="text" name="code">{dr_code(120, 35)}{/if}
验证码src
{WEB_DIR}index.php?s=api&c=api&m=captcha&width=120&height=35
验证码img
<img align="absmiddle" style="cursor:pointer;width:120px;height:35px;" onclick="this.src=this.src+'?'" src="{WEB_DIR}index.php?s=api&c=api&m=captcha&width=120&height=35" />
提示信息与跳转
<p>{$msg}</p><p>{if $url}<a href="{$url}">如果您的浏览器没有自动跳转,请点击这里</a><meta http-equiv="refresh" content="{$time}; url={$url}">{else}<a href="{$backurl}" >[点击返回上一页]</a>{/if}</p>
搜索结果
当前位置
<a href="{SITE_URL}">网站首页</a> > <a href="{Router::search_url('')}">搜索页面</a> > {$keyword} {dr_catpos($catid, '', true, '<li><a href="[url]">[name]</a><i class="fa fa-circle"></i></li>')}
搜索词
{$keyword}
搜索结果数量
{$sototal}
本次SQL语句
{$search_sql}
当前分页号码
{$pageid}
搜索列表
单模块搜索结果数据列表
{search module=MOD_DIR id=$searchid total=$sototal order=$params.order catid=$catid page=1 pagesize=5 urlrule=$urlrule}{/search}
全模块搜索结果数据列表
{related module=all field=title,url,thumb,description,keywords,updatetime,catid tag=$keyword order=inputtime urlrule=$urlrule page=1 pagesize=10}{/related}
搜索分页条
{$pages}
搜索分页条CSS
.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px;} .pagination>li{display:inline;} .pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;line-height:1.42857;text-decoration:none;color:#337ab7;background-color:#fff;border:1px solid #ddd;margin-left:-1px;} .pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:4px;border-top-left-radius:4px;} .pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:4px;border-top-right-radius:4px;} .pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd;} .pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;background-color:#337ab7;border-color:#337ab7;cursor:default;}
module
文档变量
标题
{$t.title}
链接
{$t.url}
标题截取
{dr_strcut($t.title, 30, '')}
标题高亮
{php echo str_ireplace($keyword,"<font color='red'>".$keyword."</font>",$t.title);}
缩略图
{dr_thumb($t.thumb)}
缩略图原图
{dr_get_file($t.thumb)}
缩略图判断
{if $t.thumb}{dr_get_file($t.thumb)}{else}/static/assets/images/nopic.gif{/if}
描述
{$t.description}
描述截取
{dr_strcut($t.description, 200, '...')}
当前行数1
{$key+1}
当前行数判断
{if ($key+1)%2==0}双{else}单{/if}
更新时间
{$t.updatetime}
时间年月日
{dr_date($t._updatetime, 'Y-m-d')}
时间年月日时分秒
{dr_date($t._updatetime, 'Y-m-d H:i:s')}
时间友好
{dr_fdate($t['_updatetime'])}
录入时间
{$t.inputtime}
时间年月日
{dr_date($t._inputtime, 'Y-m-d')}
时间年月日时分秒
{dr_date($t._inputtime, 'Y-m-d H:i:s')}
时间友好
{dr_fdate($t['_inputtime'])}
浏览次数
{intval($t['hits'])}
浏览次数(动)
{dr_show_hits($t['hits'], '', 'news')}
栏目名称
{dr_cat_value('news', $t['catid'], 'name')}
栏目链接
{dr_cat_value('news', $t['catid'], 'url')}
栏目缩略图
{dr_get_file(dr_cat_value('news', $t['catid'], 'thumb'))}
父栏目名称
{dr_cat_value($t.mid, dr_cat_value($t.mid, $t['catid'], 'pid'), 'name')}
父栏目链接
{dr_cat_value($t.mid, dr_cat_value($t.mid, $t['catid'], 'pid'), 'url')}
是否第一条
{if $is_first}第一条{/if}
是否最后一条
{if $is_last}最后一条{/if}
笔名
{$t.author}
会员id
{$t['uid']}
会员头像
{dr_avatar($t['uid'])}
内容
{$t['content']}
内容去掉html
{dr_clearhtml($t['content'])}
内容去掉html再截
{dr_strcut(dr_clearhtml($t['content']), 10, '...')}
会员其他字段
{php $user=dr_member_info($t['uid']);} 会员name:{$user.name} 会员username:{$user.username} 会员phone:{$user.phone} 会员email:{$user.email}
myflag显示文字
{if dr_in_array('c', $t.myflag)}推荐{else}普通{/if}
modules
多模块内容
多模块循环1
<?php $modulec = \Phpcmf\Service::L('cache')->get('module-'.SITE_ID.'-content'); foreach ($modulec as $key => $value) { $result[] = $key; } $modules = implode(',', $result); ?> {modules module=$modules field=title,url,thumb,description,keywords,updatetime,catid LIKE_title=$keyword order=updatetime page=1 pagesize=10 urlrule=$urlrule} 文档链接{$t.url} 文档标题{$t.title} 栏目链接{dr_cat_value($t.mid, $t.catid, 'url')} 栏目名称{dr_cat_value($t.mid, $t.catid, 'name')} {/modules} {$pages}
多模块循环2
{php $module = [];} {cache name=module-content return=m} {php $module[] = $m.dirname;} {/cache} {php $modules = implode(',', $module);} {modules module=$modules field=title,url,thumb,description,keywords,updatetime,catid LIKE_title=$keyword order=updatetime page=1 pagesize=10 urlrule=$urlrule} 文档链接{$t.url} 文档标题{$t.title} 栏目链接{dr_cat_value($t.mid, $t.catid, 'url')} 栏目名称{dr_cat_value($t.mid, $t.catid, 'name')} {/modules} 分页条 {$pages}
多模块TAG循环+分页
{php $module = [];} {cache name=module-content return=m} {php $module[] = $m.dirname;} {/cache} {php $modules = implode(',', $module);} {modules module=$modules field=title,url,thumb,description,keywords,updatetime,catid LIKE_keywords=$tag.tags order=updatetime page=1 pagesize=1 urlrule=$urlrule} 文档链接{$t.url} 文档标题{$t.title} 栏目链接{dr_cat_value($t.mid, $t.catid, 'url')} 栏目名称{dr_cat_value($t.mid, $t.catid, 'name')} {/modules} 分页条 {$pages}
TAG列表
单模块TAG列表
{related module=news tag=$tag.tags page=1 pagesize=10 urlrule=$urlrule}{/related}
全模块TAG列表
{related module=all field=title,url,thumb,description,keywords,updatetime,catid tag=$tag.tags order=inputtime urlrule=$urlrule page=1 pagesize=10}{/related}
全模块TAG列表
{php $module = [];} {cache name=module-content return=m} {php $module[] = $m.dirname;} {/cache} {php $modules = implode(',', $module);} {modules module=$modules field=title,url,thumb,description,keywords,updatetime,catid LIKE_keywords=$tag.tags order=updatetime page=1 pagesize=10 urlrule=$urlrule} {/modules}
TAG列表分页条
{$pages}
仿站工具