首页 > 编程技术 > html

phpcms 2008 模块管理教程

发布时间:2016-10-2 16:20

phpcms 2008 模块管理教程

安装模块前,请确认将该模块文件夹上传至服务器上,模块位于网站根目录。模块目录填写的是该模块相对于根目录的路径,如友情链接模块:link,问吧模块:ask。

位置:系统设置---模块管理---管理模块

注意:phpcms、会员是系统必须的,不能卸载与禁用。

位置:系统设置---模块管理---新建模块

 

 
js 图片按比例缩放代码

这是一款可以根据图片的大小自行按比便进行放大或缩小效果的简单js代码哦。
<script>
function resizepic(thispic)
{
if(thispic.width>570) thispic.width=570;
}
function bbimg(o)
{
  var zoom=parseInt(o.style.zoom, 10)||100;
  zoom+=event.wheelDelta/12;
  if (zoom>0) o.style.zoom=zoom+'%';
  return false;
}
function CheckComment(){
 fcm.submit();
 fcm.s.disabled=true;
}
function AddFav()
{
window.external.AddFavorite(location.href,document.title)
}
</script>
 本文章由<a href="http://www.111cn.net">中国WEB第一站</a>提供

Phpcms2008 企业黄页伪静态规则[apache,iis,apache虚拟主机]

Phpcms2008 企业黄页伪静态规则 Apache Web Server(虚拟主机用户)

# 将 RewriteEngine 模式打开
 RewriteEngine On
 RewriteBase /yp

 # Rewrite 系统规则请勿修改
RewriteRule ^job-list-([0-9]+)-([0-9]+)-(.+).html$ job.php?action=list&inputtime=$1&station=$2&genre=$3
RewriteRule ^([a-z]+)-([0-9]+).html$ $1.php?action=show&id=$2
RewriteRule ^product-list-([0-9]+)-([0-9]+)-([0-9]+)--(.+)--([0-1]).html$ product.php?view_type=$1&catid=$2&pagesize=$3&areaname=$4&order=$5
RewriteRule ^product-list-([0-9]+)-([0-9]+)-([0-9]+)--(.+)--([0-1])-([0-9]+).html$ product.php?view_type=$1&catid=$2&pagesize=$3&areaname=$4&order=$5&page=$6
RewriteRule ^([a-z]+)-list-([0-9]+).html$ $1.php?action=list&catid=$2
RewriteRule ^show-([0-9]+)-([a-z]+)-([0-9]+).html$ web/show.php?userid-$1/category-$2/id-$3.html

Phpcms2008 企业黄页伪静态规则 IIS Web Server(独立主机用户)


首先在 IIS 的 Isapi 上添加这个筛选器,筛选器名称为 Rewrite ,可执行文件选择 Rewrite.dll ,重新启动 IIS。附件中 httpd.ini 已经设置好,其中内容如下:

 

 [ISAPI_Rewrite]

 # 3600 = 1 hour
 CacheClockRate 3600

 RepeatLimit 32

 # Protect httpd.ini and httpd.parse.errors files
 # from accessing through HTTP
RewriteRule ^(.*)/job-list-([0-9]+)-([0-9]+)-(.+).html$ $1/job.php?action=list&inputtime=$2&station=$3&genre=$4RewriteRule ^(.*)/([a-z]+)-([0-9]+).html$ $1/$2.php?action=show&id=$3RewriteRule ^(.*)/product-list-([0-9]+)-([0-9]+)-([0-9]+)--(.+)--([0-1]).html$ $1/product.php?view_type=$2&catid=$3&pagesize=$4&areaname=$5&order=$6RewriteRule ^(.*)/product-list-([0-9]+)-([0-9]+)-([0-9]+)--(.+)--([0-1])-([0-9]+).html$ $1/product.php?view_type=$2&catid=$3&pagesize=$4&areaname=$5&order=$6&page=$7 RewriteRule ^(.*)/([a-z]+)-list-([0-9]+).html$ $1/$2.php?action=list&catid=$3
RewriteRule ^(.*)/show-([0-9]+)-([a-z]+)-([0-9]+).html$ $1/web/show.php?userid-$2/category-$3/id-$4.html

Phpcms2008企业黄页伪静态规则 Apache Web Server(独立主机用户)

首先确定您使用的 Apache 版本,及是否加载了 mod_rewrite 模块。
Apache 1.x 的用户请检查 conf/httpd.conf 中是否存在如下两段代码:
LoadModule rewrite_module     libexec/mod_rewrite.so
AddModule mod_rewrite.c

Apache 2.x 的用户请检查 conf/httpd.conf 中是否存在如下一段代码:

LoadModule rewrite_module     modules/mod_rewrite.so
如果存在,那么在配置文件(通常就是 conf/httpd.conf)中加入如下代码。此时请务必注意,如果网站使用通过虚拟主机来定义,请务必加到虚拟主机配置,即 <VirtualHost> 中去,如果加在虚拟主机配置外部将可能无法使用。改好后然后将 Apache 重启。

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/job-list-([0-9]+)-([0-9]+)-(.+).html$ $1/job.php?action=list&inputtime=$2&station=$3&genre=$4
RewriteRule ^(.*)/([a-z]+)-([0-9]+).html$ $1/$2.php?action=show&id=$3
RewriteRule ^(.*)/product-list-([0-9]+)-([0-9]+)-([0-9]+)--(.+)--([0-1]).html$ $1/product.php?view_type=$2&catid=$3&pagesize=$4&areaname=$5&order=$6
RewriteRule ^(.*)/product-list-([0-9]+)-([0-9]+)-([0-9]+)--(.+)--([0-1])-([0-9]+).html$ $1/product.php?view_type=$2&catid=$3&pagesize=$4&areaname=$5&order=$6&page=$7
RewriteRule ^(.*)/([a-z]+)-list-([0-9]+).html$ $1/$2.php?action=list&catid=$3
RewriteRule ^(.*)/show-([0-9]+)-([a-z]+)-([0-9]+).html$ $1/web/show.php?userid-$2/category-$3/id-$4.html
</IfModule>
如果没有安装 mod_rewrite,您可以重新编译 Apache,并在原有 configure 的内容中加入 --enable-rewrite=shared,然后再在 Apache 配置文件中加入上述代码即可。

这是本人今天在用一cms时发现了这常用的js常用正则表达式包括对 邮箱,电话,数字,字母,手机,QQ,超级连接,邮编号等哦。

js常用正则表达式 邮箱,电话,数字,字母

/^[0-9.-]+$/  /^[0-9-]+$/  数字验证

/^[a-z]+$/i

英语字母验证

/^[0-9a-z]+$/i

用户名验证,数字与字母验表达式

/^[w-.]+@[w-.]+(.w+)+$/

邮箱地址验证验函数


/^[0-9]{5,20}$/

QQ号码验证函数

/^http:///

超级链接正则表达式

/^(13|15)[0-9]{9}$/

手机号码正则表达式

/^[0-9-]{6,13}$/

电话号码正则表达式

/^[0-9]{6}$/

邮编正则表达式

转载注明www.111cn.net

phpcms 2008 表单增加向导功能教程

添加表单

位置:模块管理---表单向导--添加表单


为表单添加字段

查看添加的表单字段

二、管理表单

位置:模块管理---表单向导--管理表单

添加好表单,并且给表单添加了一个字段。在”管理表单“我们能管理表单,如图:


点击表单的名字预览,如图:

标签:[!--infotagslink--]

您可能感兴趣的文章: