*****************************
* 系统简介:
*****************************
机智内容管理系统1.0(witcms)是Php+Mysql程序结构开发的.
这是一个简单但又伸缩性很强的CMS,简单自定义标签即可构造各种形式的展示模块.
全站生成静态化,使网站运行速度更快.
并且本CMS为开源免费提供广大用户使用.
作者QQ: 13699576
mail: [email protected]
网站: www.withost.cn
QQ群: 12067810
*****************************
* 使用说明:
*****************************
1.架设wamp环境.
2.最好有phpmyadmin.
3.用phpmyadmin创建一个数据库名字, 例如 witcms
4.用phpmyadmin导入,witcms里面的 witcms.sql文件
5.解压到根目录或者二级目录,
用高级文本编辑器打开inc/conn.php(千万别用记事本打开,推荐 notepad++).
配置 数据库用户,数据库密码,数据库名字.
6.访问http://127.0.0.1/witcms/admin
7.帐号:admin 密码:admin
*****************************
* 模块说明:
*****************************
文章模块 : 标题 频道 作者 时间 优先级 推荐(1..5) 关键字 简介 图片(多图) 内容
频道模块 : 名称 父级 频道动作 代码设置 列表模版 内容模版 频道简介 频道内容
用户模块 : 用户 密码
角色模块 : 用户频道和权限的配置.
系统模块 : 网站title 网站描述 网站关键字
生成静态 : 生成首页 生成频道 生成文档
生成地图 : 生成sitemap.xml 地图
*****************************
* 功能说明:
*****************************
全站生成静态页.
无限级频道分类.
多文件上传.
可视化编辑器.
动态制作模版化.
自定义设置调用标签.
角色权限管理.
一键生成sitemap.xml地图.
*****************************
* 代码详解:
*****************************
说明: 初始化调用.用于首页,列表页,专题页,内容页等
代码: <?include_once("../inc/inc.php");?>
说明: 用于初始化内容页调用.
代码: <?include_once("../inc/inc.php");$view = w_view();//初始化内容?>
说明: 网站title,keywords,description代码
代码: <?meta()?>
说明: 导航代码,读取一级频道列表
代码: <?nav()?>
说明: 读取当前频道及下级频道列表
代码: <?nav(0)?>
说明: 频道名称
代码: <?=channel_name(0,"nourl")?>
参数: 0 说明:当前频道,也可以指定
参数: "nourl" 说明:可选参数,不输出频道链接
说明: 当前频道路径
代码: <?site_path_links()?>
说明: 单页调用内容和摘要调用.
代码: <?w_single(array("chaid"=>"0","chacontent"=>"0"))?>
参数: "chaid"=>"0" 说明:默认当前频道,也可以指定频道
参数: "chacontent"=>"0" 说明: 0 显示频道描述 , 1 不显示(默认)
参数: "chaintro"=>"0" 说明: 0 显示频道摘要 , 1 不显示(默认)
说明: 频道列表页代码
代码: <?php
w_list(
array(
"chaid"=>"0",
"num"=>"20",
"title_sub"=>"40",
"top"=>true,
"intro_sub"=>"200",
"orderdate"=>"desc",
"ordersort"=>"desc",
"orderid"=>"desc",
"html"=>"<li class=\"row row{i}\">\n<span><img src=\"{web_url}{path}{art_img}\" width=30 height=30/></span>\n<span><a href=\"{web_url}{path}/article/{art_date}/{art_id}.html\" target=\"_blank\">{art_title}</a></span></li>\n"
)
);
?>
参数: "chaid"=>"0" 说明: 0默认当前频道,也可以指定频道
参数: "num"=>"20" 说明:当前页显示条数,一定和分页代码一致.
参数: "title_sub"=>"40" 说明: 文章标题默认截取数,也可以指定数
参数: "intro_sub"=>"200" 说明: 文章摘要默认截取数,也可以指定数
参数: "ordersort"=>"desc" 说明: 默认按优先级倒序(数字大靠前),可以修改为asc正序 (优先级最高)
参数: "orderdate"=>"desc" 说明: 默认按优先级倒序,可以修改为asc正序
参数: "orderid"=>"desc" 说明: 默认按文章ID倒序,可以修改为asc正序 (相同日期+时间下,这个有效)
参数: "top"=>true 说明: 只显示推荐的文章.(还可以top2,top3,top4,top5)
参数: "html"=>"....." 说明: 代码频道用于自定义设置输出样式
说明: 频道列表分页代码
代码: <?=w_listpage(20);?>
参数: 20是条数,必须和列表代码设置数量一致.
-----------------
文章内容调用:
-----------------
说明: 文章标题
代码: <?=$view["art_title"];?>
说明: 来源作者
代码: <?=$view["art_author"];?>
说明: 发布时间
代码: <?=$view["art_date"];?>
说明: 文章内容
代码: <?=$view["art_content"];?>
说明: 上下篇
代码: <?udpage();?>
说明: 相关文章
代码: <?w_corpage($view["art_keyword"],12);?>
-----------------
频道代码频道设置:
-----------------
说明: 列表代码片段, 在后台频道代码频道处设置,用于频道页列表输出结构.
代码:
<li class="row row{i}">
<span><img src="{web_url}{path}{art_img}" width=30 height=30/></span>
<span><a href="{web_url}{path}/article/{art_date}/{art_id}.html" target="_blank">{art_title}</a></span>
<span>{art_date}</span>
</li>
说明:数字循环从0开始,一般用于对具体某条添加样式.
片段:{i}
说明:网站URL,可以在conn.php配置 如: http://127.0.0.1
片段:{web_url}
说明:网站目录,可以在conn.php配置, 如: /witcms
片段:{ptah}
说明: 图片路径,
无图时: /images/noimg.jpg
有图时: /uploadfile/27e39627d1e5592c9137d9ad18c7f7d5.jpg (32md5文件名)
片段:{art_img}
说明:文章URL路径.一定按照这个格式来. 如: show-2-284.html
片段:{web_url}{path}/article/{art_date}/{art_id}.html
说明:文章标题.
片段:{art_title}
说明:文章摘要.
片段:{art_intro}
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的机智CMS(witcms) php网站管理.zip
共232个文件
php:60个
gif:54个
html:43个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 43 浏览量
2023-07-26
23:16:11
上传
评论
收藏 571KB ZIP 举报
温馨提示
基于PHP的机智CMS(witcms) php网站管理.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP的机智CMS(witcms) php网站管理.zip (232个子文件)
spellchecker.cfm 5KB
admin.css 8KB
fck_editor.css 8KB
fck_dialog.css 6KB
fck_internal.css 4KB
style.css 3KB
fck_editorarea.css 3KB
fck_dialog_common.css 2KB
fck_showtableborders_gecko.css 2KB
spellerStyle.css 890B
site_adm_logo.gif 15KB
icon.gif 13KB
fck_strip.gif 5KB
logo_fckeditor.gif 2KB
fck_plugin.gif 2KB
spellchecker_net.gif 1KB
embaressed_smile.gif 1KB
teeth_smile.gif 1KB
shades_smile.gif 1KB
tounge_smile.gif 1KB
wink_smile.gif 1KB
sad_smile.gif 1KB
regular_smile.gif 1KB
whatchutalkingabout_smile.gif 1KB
envelope.gif 1KB
heart.gif 1012B
thumbs_down.gif 992B
thumbs_up.gif 989B
kiss.gif 978B
sprites.gif 959B
logo_fredck.gif 920B
site_adm_bg.gif 841B
loading.gif 722B
fck_flashlogo.gif 599B
cry_smile.gif 473B
angry_smile.gif 453B
cake.gif 453B
angel_smile.gif 445B
devil_smile.gif 444B
broken_heart.gif 423B
template3.gif 422B
template1.gif 375B
omg_smile.gif 342B
template2.gif 333B
confused_smile.gif 322B
lightbulb.gif 303B
fck_anchor.gif 184B
anchor.gif 184B
toolbar.collapse.gif 152B
toolbar.expand.gif 152B
toolbar.start.gif 105B
fck_hiddenfield.gif 105B
reset.gif 104B
unlocked.gif 75B
locked.gif 74B
toolbar.separator.gif 58B
fck_pagebreak.gif 54B
toolbar.arrowright.gif 53B
arrow_rtl.gif 49B
arrow_ltr.gif 49B
dialog.sides.gif 48B
toolbar.buttonarrow.gif 46B
toolbar.end.gif 43B
spacer.gif 43B
showtableborders.htc 822B
disablehandles.htc 236B
fckdialog.html 22KB
fck_docprops.html 22KB
fckeditor.original.html 17KB
fck_replace.html 17KB
fck_table.html 14KB
fck_link.html 13KB
fckeditor.html 12KB
fck_paste.html 12KB
fck_div.html 11KB
fck_tablecell.html 10KB
fck_image.html 10KB
fck_template.html 6KB
fck_anchor.html 6KB
fck_select.html 6KB
w.html 6KB
fck_flash.html 6KB
fck_about.html 6KB
test.html 6KB
uploadtest.html 5KB
fck_colorselector.html 5KB
fck_specialchar.html 5KB
controls.html 4KB
fckdebug.html 4KB
fck_textfield.html 4KB
fck_listprop.html 4KB
fck_hiddenfield.html 3KB
fck_radiobutton.html 3KB
fck_button.html 3KB
fck_checkbox.html 3KB
_fckviewstrips.html 3KB
fck_smiley.html 3KB
fck_image_preview.html 3KB
fck_form.html 3KB
fck_document_preview.html 3KB
共 232 条
- 1
- 2
- 3
资源评论
助力毕业
- 粉丝: 2177
- 资源: 5130
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功