欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

利用织梦搭建自己学校的官网

程序员文章站 2023-12-22 14:46:22
...

一:学校官网

利用织梦搭建自己学校的官网

二:自己搭建的页面

利用织梦搭建自己学校的官网

二:代码入下

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>{dede:global.cfg_webname/}</title>
  <link rel="stylesheet" type="text/css" href="{dede:global.cfg_templets_skin/}/style/css.css">
</head>
<body>
  {dede:include filename="head.htm"/}
  <div id="main">
    <div class="container">
      <div class="wrap clearfix">
        <div class="leftbar">
          <div class="hd clearfix">
            <h2>{dede:type}[field:typename /]{/dede:type}</h2>
          </div>
          <div class="bd">
            <ul>
              {dede:channel type='self' currentstyle="<li class='on'><a href='~typelink~'><span>~typename~</span></a></li>"}
              <li><a href='[field:typelink/]'>[field:typename/]</a></li>
              {/dede:channel}
                  </ul>
          </div>
        </div>
  
  <div class="main_list01">
    <div class="inner-title">
    <div class="bread">当前位置: {dede:field name='position'/} 正文</div>
    <h2>{dede:type}[field:typename /]{/dede:type}</h2>
  </div>
    <div class="detail-box">
     <div class="detail-title">{dede:field.title/}</div>
     <div class="detail-infor">
        <span>来源:{dede:field.source/}</span>
        <span>发布日期:{dede:field.pubdate function="MyDate('Y-m-d H:i',@me)"/}</span>
        <span>点击量:<script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}" type="text/javascript" language="javascript"></script>次</span>
     </div>
     <div id="vsb_content">
     {dede:field.body/}
     </div>
    </div>
  </div>
  <div class="context">
    <ul>
     <li>{dede:prenext get='pre'/}</li>
     <li>{dede:prenext get='next'/}</li>
    </ul>
   </div>
  </div>
  </div>
  </div>
</body>
</html>
<div id="header">
<div id="top">
<div id="logo">
<!-- 网站logo图片地址请在本组件"内容配置-网站logo"处填写 -->
<a href="index.htm " title="石家庄职业技术学院"><img src="{dede:global.cfg_templets_skin/}/images/logo.png" alt="石家庄职业技术学院" /></a></div>
<div class="flash"><img src="{dede:global.cfg_templets_skin/}/images/banner.gif"></div>
<div class="text"></div>
</div>

<div id="nav">
<ul>
<li><a href='{dede:global.cfg_cmsurl/}/'><span>首页</span></a></li>
{dede:channelartlist typeid='top'}
<li><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a>
<dl class="a">
{dede:channel}
<dd><a href="[field:typelink/]" title="[field:typename/]">[field:typename/]</a></dd>
{/dede:channel}
</dl>
</li>
{/dede:channelartlist}
</ul>
</div>
</div>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>{dede:global.cfg_webname/}</title>
	<link rel="stylesheet" type="text/css" href="{dede:global.cfg_templets_skin/}/style/css.css">
	<link rel="stylesheet" type="text/css" href="{dede:global.cfg_templets_skin/}/style/index.vsb.css">
<script language="javascript" src="{dede:global.cfg_templets_skin/}/js/base64.js"></script>
	<script language="javascript" src="{dede:global.cfg_templets_skin/}/js/formfunc.js"></script>
	<script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/jquery.pack.js"></script>
	<script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/jQuery.blockUI.js"></script>
	<script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/jquery.SuperSlide.js"></script>
	<script language="javascript" src="{dede:global.cfg_templets_skin/}/js/_sitegray.js"></script>
	<script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/vsbscreen.min.js" id="_vsbscreen" devices="pc|mobile|pad"></script>
    <script type="text/javascript" src="{dede:global.cfg_templets_skin/}/js/counter.js"></script>

</head>
<body>
	{dede:include filename="head.htm"/}
	{dede:include filename="main.htm"/}
</body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>{dede:global.cfg_webname/}</title>
  <link rel="stylesheet" type="text/css" href="{dede:global.cfg_templets_skin/}/style/css.css">
</head>
<body>
  {dede:include filename="head.htm"/}
  <div id="main">
    <div class="container">
      <div class="wrap clearfix">
        <div class="leftbar">
          <div class="hd clearfix">
            <h2>{dede:type}[field:typename /]{/dede:type}</h2>
          </div>
          <div class="bd">
            <ul>
              {dede:channel type='self' currentstyle="<li class='on'><a href='~typelink~'><span>~typename~</span></a></li>"}
              <li><a href='[field:typelink/]'>[field:typename/]</a></li>
              {/dede:channel}
                  </ul>
          </div>
        </div>
  
  <div class="main_list01">
    <div class="inner-title">
    <div class="bread">当前位置: {dede:field.position /}</div>
    <h2>{dede:type}[field:typename /]{/dede:type}</h2>
  </div>
    <div class="detail-box">
      {dede:field.content/}
    </div>
  </div>
  </div>
  </div>
  </div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
	<link rel="stylesheet" href="{dede:global.cfg_templets_skin/}/style/css.css" type="text/css">
</head>
<body>
	{dede:include filename="head.htm"/}
<div id="main"> 
  <div class="container">
    <div class="wrap clearfix">
        <div class="leftbar">
            <div class="hd clearfix">
            	<h2>{dede:type}[field:typename /]{/dede:type}</h2>
            </div>
            <div class="bd">
            	<ul>
            		{dede:channel type='self' currentstyle="<li class='on'>
            		<a href='~typelink~'><span>~typename~</span></a></li>"}
						<li><a href='[field:typeurl/]'>[field:typename/]</a></li>
  					{/dede:channel}
            	</ul>
        	</div>
    </div>
	<div class="main_list01">
	 	<div class="inner-title">
	        <div class="bread">当前位置:{dede:field.position /}</div>
	          <h2>{dede:type}[field:typename /]{/dede:type}</h2>
	    </div>
	        <!-- 内容页 -->
	    <div class="text-list">
	    	<ul>
		        {dede:list pagesize='10' orderby='pubdate' titlelen='500'}
					<li id = "line_u7_[field:global runphp='yes' name=autoindex][/field:global]"><span class="time">[field:pubdate function="GetDateMk(@me)"/]</span>
					<a href="[field:arcurl/]"  title="[field:title/]" style="font-size:16px;">[field:title/]</a>
</li>
				{/dede:list}
        	</ul>  
	    </div>
	    <div class="page clearfix">
	    	<ul>
	    		{dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="1"/}
	    	</ul>
	    </div>
	</div>
 </div>
</div>
</body>
</html>

<div id="main">
	<script language="javascript" src="{dede:global.cfg_templets_skin/}/js/dynclicks.js"></script>
    <div id="slideBox" class="slideBox">
    <div class="hd">
        <ul>
          <li class="on">1</li>
          <li class=" ">2</li>
          <li class=" ">3</li>
          <li class=" ">4</li>
        </ul>
      </div>  
      <div class="bd">
        <div class="tempWrap" style="overflow:hidden; position:relative; width:440px">
          <ul style="width: 1760px; position: relative; overflow: hidden; padding: 0px; margin: 0px; left: 0px;">
          {dede:arclist typeid="52"  row=10 orderby=pubdate type='image.' imgwidth='435' imgheight='300' titlelen='200'}
            <li style="float: left; width: 440px;">
             <a href="[field:arcurl/]" title="[field:title/]" target="_blank">
               [field:image/]
               <p style="text-align:center;margin-top:10px;">[field:title/]</p>
             </a>
              </li>
          {/dede:arclist} 
         </ul>
      </div>
    </div>
  </div>
   <div class="index_sum1">
    {dede:type typeid="50"}
      <h1><strong>校</strong>园动态<span>dynamic</span>
        <div><a href="[field:typelink/]" class="xymore">更多+</a></div>
      </h1>
      {/dede:type}
      <ul>
        {dede:arclist typeid="50" titlelen="500"}
          <li><a href="[field:arcurl/]" title="[field:title/]">[field:title function='(strlen("@me")>50 ? cn_substr("@me",50)."...":"@me")' /]</a></li>
        {/dede:arclist}
      </ul>   
  </div>
  <div class="index_sum2">
    {dede:type typeid="51"}
      <h2><span class="h2_ico1"></span>[field:typename/]
      <div><a href="[field:typelink/]" class="xymore">更多+</a></div>
      </h2>     
      {/dede:type}
      <ul class="index_sum2_ul1">
        {dede:arclist typeid="51" titlelen="500"}
          <li><a href="[field:arcurl/]" title="[field:title/]">[field:title function='(strlen("@me")>50 ? cn_substr("@me",50)."...":"@me")' /]</a></li>
        {/dede:arclist}
      </ul>   
  </div>
    <div class="index_sum3">
      <h2><span class="h2_ico2"></span>媒体关注<span class="more"><a href="a/xueyuangaikuo/meitiguanzhu/index.html" target="_blank">更多+</a></span></h2>
      {dede:arclist row='4' typeid="12" titlelen="500"}
     <div class="index_sum3_blcok">
        <dl>
          <dt><a href="[field:arcurl/]">
              <img src="[field:litpic/]" width="120" height="90" >
            </a>
          </dt>
          <dd><span><a href="[field:arcurl/]" target="_blank">[field:title/]</a></span>
            <p>[field:description function='cn_substr("@me",50)'/]...【<a href="[field:arcurl/]" target="_blank">详情</a>】</p>
          </dd>
        </dl>
      </div>
      {/dede:arclist}
      <div class="clear"></div>
    </div>
   <!-- </div> -->
    <div class="index_sum2 bg" style="margin-top:20px">
      <h3>专栏入口</h3>
      <ul class="index_sum2_ul2">
        {dede:channel typeid="46" type="son"}
        <li class="li[field:global name=autoindex runphp="yes"]@aaa@qq.com+1;[/field:global]">
          <a href="[field:typelink/]" target="_blank" title="" >[field:typename/]</a>
        </li>
        {/dede:channel}
      </ul>
    </div>
	</div>
 
<script>_showDynClickBatch(['dynclicks_u3_4105','dynclicks_u3_4078','dynclicks_u3_4071','dynclicks_u3_4069'],[4105,4078,4071,4069],"wbnews", 1422732669)</script>
<script type="text/javascript">jQuery(".slideBox").slide( { mainCell:".bd ul",effect:"left",autoPlay:true} );</script><!--焦点图 end-->




相关标签: dedecms

上一篇:

下一篇: