头部文件调用
<?php require_once('header.php'); ?>
底部文件调用
<?php require_once('footer.php'); ?>
关于我们图片调用
<?php $row = $dosql->GetOne("SELECT * FROM `#@__info` WHERE id='3' ");
<img src="<?php%20echo%20$row['picurl'];%20?>" alt="<?php echo $row['pictitle']; ?>" />?>
头部banner调用
<?php
$dosql->Execute("SELECT * FROM `#@__infoimg` WHERE classid=13 AND delstate='' AND checkinfo=true ORDER BY orderid DESC LIMIT 0,5");
while($row = $dosql->GetArray())
{
if($row['linkurl'] != '')$gourl = $row['linkurl'];
else $gourl = 'javascript:;';
?>
<li><img src="<?php%20echo%20$row['picurl'];%20?>" width="1400" height="385" /></li>
<?php
}
?>
热门搜索调用$cfg_homermss
<b>热门搜索:</b><?php echo $cfg_homermss; ?>
<b>热门搜索:</b><strong>哈尔滨搬家哪家好</strong>|<strong>哈尔滨搬家公司哪家好</strong>|<strong>哈尔滨搬家公司电话</strong>|<strong>哈尔滨搬家公司哪家便宜</strong>
网站标题关键词 描述调用
<?php echo GetHeader(); ?>
index.php 头部关键词$cfg_hometitle;
<?php echo $cfg_homeif; ?>
<title><?php echo $cfg_hometitle; ?> - <?php echo $cfg_webname; ?><?php echo $cfg_weburl; ?></title>
<meta name="keywords" content="<?php echo $cfg_keyword; ?>" />
<meta name="description" content="<?php echo $cfg_description; ?>" />
底部信息调用
<?php echo $cfg_copyright ?>
网站公告调用
<?php echo Info(1); ?>
首页联系我们(注:联系我们用contact.php contact.html )
<?php if($cfg_isreurl!='Y') $gourl = 'contact.php'; else $gourl = 'contact.html'; echo Info(10,214,$gourl);?>
首页关于我们调用(注:关于我们用about.php about.html)
<?phpif($cfg_isreurl!='Y') $gourl = 'about.php';else $gourl = 'about.html';echo Info(3,147,$gourl);?>
热门标签调用
<?php echo $cfg_keyword; ?>
服务热线调用
<?php echo $cfg_hotline; ?>
友情链接调用(注意ID classid=1 1是台栏目的id)
<?php$dosql->Execute("SELECT * FROM `#@__weblink` WHERE classid=1 AND checkinfo=true ORDER BY orderid,id DESC");while($row = $dosql->GetArray()){?>
<a href="<?php%20echo%20$row['linkurl'];%20?>" target="_blank"><?php echo $row['webname']; ?></a> |
<?php
}
?>
首页图片滚动调用
<?php $dosql->Execute("SELECT * FROM `#@__infoimg` WHERE classid=8 AND and delstate is NULL AND checkinfo=true ORDER BY orderid DESC LIMIT 0,30"); while($row = $dosql->GetArray()) { if($row['linkurl']=='' and $cfg_isreurl!='Y') $gourl = 'product.php?cid='.$row['classid'].'&id='.$row['id']; else if($cfg_isreurl=='Y') $gourl = 'product-'.$row['classid'].'-'.$row['id'].'-1.html'; else $gourl = $row['linkurl'];?> <li> <a href="<?php%20echo%20$gourl;%20?>" class="imga"> <img src="<?php%20echo%20$row['picurl'];%20?>" alt="<?php echo $row['title']; ?>" /> </a> <a href="<?php%20echo%20$gourl;%20?>" class="titlea"> <?php echo $row['title']; ?> </a> </li><?php }?>
下面是回到顶部JS效果直接加上就好使
<link href="templates/default/style/webstyle.css" type="text/css" rel="stylesheet" /><script type="text/javascript" src="templates/default/js/top.js"></script><script type="text/javascript">$(function(){ jQuery('.lightbox').lightbox(); $(".showimg img").LoadImage({width:750,height:600}); $(".picarr .picture img").LoadImage({width:530,height:350}); $(".picarr .preview img").LoadImage({width:58,height:45}); $(".small").click(function(){$("#textarea").css('font-size','12px');}); $(".big").click(function(){$("#textarea").css('font-size','14px');});});</script>
首页文章调用
<ul><?php $dosql->Execute("SELECT * FROM `#@__infolist` WHERE (classid=4 or parentid=4) AND delstate='' AND checkinfo=true ORDER BY orderid DESC LIMIT 0,6");while($row = $dosql->GetArray()){//获取链接地址if($row['linkurl']=='' and $cfg_isreurl!='Y')$gourl = 'newsshow.php?cid='.$row['classid'].'&id='.$row['id'];else if($cfg_isreurl=='Y')$gourl = 'newsshow-'.$row['classid'].'-'.$row['id'].'-1.html';else$gourl = $row['linkurl'];?><li><a href="<?php%20echo%20$gourl;%20?>" class="newsa"><?php echo ReStrLen($row['title'],25); ?></a><span id="newsspan">【<?php echo MyDate('m-d', $row['posttime']); ?>】</span></li><?php}?></ul>
新闻头条
<?php $dosql->Execute("SELECT * FROM `#@__infolist` WHERE (classid=4 or parentid=4) AND delstate='' AND checkinfo=true And flag like 'h%' ORDER BY orderid DESC LIMIT 0,1");$row1 = $dosql->GetArray()?><span id="_span"><a href="newsshow.php?cid=<?php%20echo%20$row1['classid'].'&id='.$row1['id']%20?>" title="<?=$row1['title']?>"><?php echo ReStrLen($row1['title'],11);?></a></span><div id="_spannr"><?php echo ReStrLen($row1['description'],50);?></div>
头条后文章调用
<?php$rid=$row1['id'];$dosql->Execute("SELECT * FROM `#@__infolist` WHERE (classid=4 or parentid=4) AND delstate='' AND checkinfo=true And id != $rid ORDER BY orderid DESC LIMIT 0,3");while($row = $dosql->GetArray()){//获取链接地址if($row['linkurl']=='' and $cfg_isreurl!='Y')$gourl = 'newsshow.php?cid='.$row['classid'].'&id='.$row['id'];else if($cfg_isreurl=='Y')$gourl = 'newsshow-'.$row['classid'].'-'.$row['id'].'-1.html';else$gourl = $row['linkurl'];?><li><a href="<?php%20echo%20$gourl;%20?>" class="newslia"><?php echo ReStrLen($row['title'],25); ?></a>【<?php echo MyDate('m-d', $row['posttime']); ?>】</li><?php}?>
还没有人抢沙发呢~