phpmywind调用方法大全

时间:2022-04-28 04:24:56

<?php require_once(header.php); ?>    

底部文件调用

<?php require_once(footer.php); ?>

关于我们图片调用

<?php $row = $dosql->GetOne("SELECT * FROM `dede_info` WHERE id=‘3‘ ");
  <img src="<?php echo $row[‘picurl‘]; ?>" alt="<?php echo $row[‘pictitle‘]; ?>" />
?>

头部banner调用

<?php
$dosql->Execute("SELECT * FROM `dede_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 echo $row[‘picurl‘]; ?>" /></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 content="<?php echo $cfg_keyword; ?>" />
<meta content="<?php echo $cfg_description; ?>" />

底部信息调用

<?php echo $cfg_copyright ?>

网站公告调用

<?php echo Info(1); ?>

首页联系我们(注:联系我们用contact.php contact.html )

<?php if($cfg_isreurl!=http://www.mamicode.com/Y) $gourl = contact.php; else $gourl = contact.html; echo Info(10,214,$gourl); ?>

首页关于我们调用(注:关于我们用about.php about.html)

<?php if($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 `dede_weblink` WHERE classid=1 AND checkinfo=true ORDER BY orderid,id DESC"); while($row = $dosql->GetArray()) { ?>

  <a href="<?php echo $row[‘linkurl‘]; ?>" target="_blank"><?php echo $row[‘webname‘]; ?></a>&nbsp;&nbsp;|&nbsp;
<?php
}
?>

  首页图片滚动调用

<?php $dosql->Execute("SELECT * FROM `dede_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]==http://www.mamicode.com/‘‘ and $cfg_isreurl!=http://www.mamicode.com/Y) $gourl = product.php?cid=.$row[classid].&id=.$row[id]; else if($cfg_isreurl==http://www.mamicode.com/Y) $gourl = product-.$row[classid].-.$row[id].-1.html; else $gourl = $row[linkurl]; ?> <li> <a href=http://www.mamicode.com/"<?php echo $gourl; ?>" class=http://www.mamicode.com/"imga"> <img src=http://www.mamicode.com/"<?php echo $row[‘picurl‘]; ?>" alt=http://www.mamicode.com/"<?php echo $row[‘title‘]; ?>" /> </a> <a href=http://www.mamicode.com/"<?php echo $gourl; ?>" class=http://www.mamicode.com/"titlea"> <?php echo $row[title]; ?> </a> </li> <?php } ?>

下面是回到顶部JS效果直接加上就好使