• 河南网站建设-郑州网站建设-上海网站建设-SEO优化-网络营销-经典美文

  • 专注网站建设 服务热线: 13061801310

当前位置:东东网 > 近期动态 > 东东观点 > 正文

phpcmsv9常用标签

发布时间:2018-07-07 | 发布者: 东东工作室 | 浏览次数:
通用:
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="keywords" content="{$SEO['keyword']}"/>
<meta name="description" content="{$SEO['description']}"/>
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
 
 
 
/*内容标题*/
<title>{$SEO['title']}</title>
/*内容标题*/
<link rel="stylesheet" type="text/css" href="{CSS_PATH}css/index.css" />
<link rel="shortcut icon" href="favicon.ico"/>
<script type="text/javascript" src="{JS_PATH}js/swt.js"></script>
<script src="http://siteapp.baidu.com/static/webappservice/uaredirect.js" type="text/javascript"></script>
<script type="text/javascript">uaredirect("http://wap.njpfbyy.com/","http://www.njpfbyy.com/");</script>
<base target="_blank" />
</head>
 
{template "content","header"}
 
{template "content","footer"}
 
{$CATEGORYS[11][url]} //对应栏目链接
 
<form action="{APP_PATH}index.php" method="get" class="fr" target="_blank">
<input type="hidden" name="m" value="search"/>
<input type="hidden" name="c" value="index"/>
<input type="hidden" name="a" value="init"/>
<input type="hidden" name="typeid" value="1" id="typeid"/>
<input type="hidden" name="siteid" value="1" id="siteid"/>
<input type="text" class="input_t" name="q" id="q" value="上海皮肤病医院" onfocus="if(this.value=='白癜风预防 症状'){this.value=''}" onblur="if(this.value==''){this.value='白癜风预防 症状'}" /> <input type="submit" class="input_btn" value="" />
</form>
 
 
 
普通搜索:
<form action="{APP_PATH}index.php" method="get">
<input type="hidden" name="m" value="search"/>
<input type="hidden" name="typeid" value="1" id="typeid"/>
<input type="text" class="text" name="q" id="q"/>
<input type="submit" value="搜 索" class="button" />
</form>
 
-----------------------------------------------------------------------------------------------------------------------
 
8:带图片的搜索按钮
<form action="{APP_PATH}index.php" method="get" target="_blank">
 
<input type="hidden" name="m" value="search"/>
 
<input type="hidden" name="c" value="index"/>
 
<input type="hidden" name="a" value="init"/>
 
<input type="hidden" name="typeid" value="1" id="typeid"/>
 
<input type="hidden" name="siteid" value="1" id="siteid"/>
 
                <input type="text" class="s01" name="q" id="q" value="百度一下,不如搜索一下..." onfocus="if (this.value=='百度一下,不如搜索一下...'){this.value=''}" onblur="if(this.value==''){this.value='百度一下,不如搜索一 下...'}"/></dt><dd><input type="image" src="{IMG_PATH}images\acher.gif" class="button" />
 
            </form>
-----------------------------------
 
推荐位:
{pc:content action="position" posid="2" catid="7" order="listorder DESC" num="1" cache="3600"}
    {loop $data $r}
<img src="{$r[thumb]}" width="132" height="102"/>
<a href="{$r[url]}" title="{$r[title]}">{str_cut($r[title],36,'')}...</a>     (教授-{$r[zw]})
{str_cut($r[description],63,'')}...
    {/loop}
{/pc}
 
首选:
{pc:content action="position" catid="7" order="listorder DESC" num="1" cache="3600"}
    {loop $data $r}
<img src="{$r[thumb]}" width="132" height="102"/>
<a href="{$r[url]}" title="{$r[title]}">{str_cut($r[title],36,'')}...</a>     (教授-{$r[zw]})
{str_cut($r[description],63,'')}...
    {/loop}
{/pc}
 
列表:
{pc:content action="lists" catid="12" moreinfo="1" num="1" order="id DESC" start="0"}
 {loop $data $r}
(id ASC)   thumb="1"
    {/loop}
{/pc}
 
{pc:content action="lists" catid="10" moreinfo="1" num="1" order="id ASC" thumb="1"}
 {loop $data $r}
友链:
{pc:link  action="type_list" siteid="$siteid" linktype="1" order="listorder DESC" num="12" return="pic_link"}
    {loop $pic_link $v}
<a href="{$v['url']}" target="_blank">{$v['name']}</a>
    {/loop}
{/pc}
 
图片区域链接:
<img src="{IMG_PATH}images/index_43.jpg" border="0" usemap="#Map" />
    <map name="Map" id="Map">
<area shape="rect" coords="102,7,178,38" href="#" />
    </map>
 
=====================================================================
频道,列表页:
 
现在位置:
<a href="{siteurl($siteid)}">首页</a> > {catpos($catid)}
 
栏目名:
{$CATEGORYS[$catid][catname]}
 
 
频道页,当前栏目子栏目循环:
   <ul>
            {php $j=1;}
            {loop subcat($catid) $v}
            {php if($v['type']!=0) continue;}
                <li class="{if $j%2==1}e{/if}">
                <strong><a href="{$v[url]}">{$v[catname]}</a></strong>
                <ul>
                {pc:content  action="lists" catid="$v[catid]" order="listorder DESC" num="2"}
                 {loop $data $v}
                    <li><a href="{$v[url]}" title="{$v[title]}">{str_cut($v[title],32,'')}</a></li>
                 {/loop}  
                {/pc} 
                </ul>
                </li>
            {$j++}
        {/loop}   
            </ul>
--------------------------------
列表和分页:
{pc:content action="lists" catid="$catid" num="12" order="listorder DESC" page="$page"} order="rand()"
    {loop $data $r}
    {/loop}
{$pages}
{/pc}
 
=================================
内容页:
 
标题
<h1>{$title}</h1>
 
时间:{$inputtime} 热度:<span style="visibility: visible;" id="k_hit">{date('Y-m-d H:i:s',$r[inputtime])}
{php echo rand(10,100);}</span>
 
{$description}
{$content}
 
关键词:
<div class="textkeyword">
    {loop $keywords $keyword}
        <a href="{APP_PATH}index.php?m=search&c=index&a=init&typeid=1&siteid=1&q={urlencode($keyword)}" target="_blank"> {$keyword}
</a>&nbsp;
    {/loop}
</div>
 
上下篇:
<a href="{$previous_page[url]}">{$previous_page[title]}</a> {str_cut($previous_page[title],60,'')}
<a href="{$next_page[url]}">{$next_page[title]}</a> {str_cut($next_page[title],60,'')}
 
 
===================================================
特殊:
 
按序号不同样式等:
{pc:content  action="lists" catid="57" order="listorder DESC" num="6"}
    {loop $data $r} 
    {php $num++}
        <li class="zt0{$num}"></li>
    {/loop}
{/pc}
------------------------------------------------------
 
{pc:get sql="select*from v9_category where catid >=23 order by catid asc" num=10} 
    {loop $data $r}
<li><a href="{$CATEGORYS[$r[catid]][url]}">{$CATEGORYS[$r[catid]][catname]}</a></li>
    {/loop}
{/pc}
 
 
--------------------------------------------------------
title所属栏目名称及地址 
[{$CATEGORYS[$r[catid]][catname]}] [{$CATEGORYS[$r[catid]][url]}]
 
上传小空间:
一:上传数据库
二:修改数据库名称和密码
三:用FTP上传网站文件夹
四:把原来的域名删了重新填写
五:在.htaccess上面重新写域名
 
 
本地映射位置:
C:\Windows\System32\drivers\etc
 
查本机
ipconfig
 
<script language='javascript' src='{APP_PATH}index.php?m=formguide&c=index&a=show&formid=12&action=js&siteid=1'></script>
 
 
/index.php?m=formguide&c=index&a=show&formid=12&action=js&siteid=1
 
PHPCMS评论:
{if $allow_comment && module_exists('comment')}
      <iframe src="{APP_PATH}index.php?m=comment&c=index&a=init&commentid={id_encode("content_$catid",$id,$siteid)}&iframe=1" width="100%" height="100%" id="comment_iframe" frameborder="0" scrolling="no"></iframe>
      <div class="box">
        <h5>评论排行</h5>
{pc:comment action="bang" siteid="$siteid" cache="3600"}
            <ul class="content list blue f14 row-2">
{loop $data $r}
                <li>·<a href="{$r[url]}" target="_blank">{str_cut($r[title], 40)}</a><span>({$r[total]})</span><>
{/loop}
                </ul>
{/pc}
        </div>
        {/if}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

转载请标注:东东工作室——phpcmsv9常用标签

上一篇:linux常用命令
下一篇:百度统计变化js