⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jszc.php

📁 十大精典PHP项目开发全程案例+代码
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<?php include_once("top.php"); //获取头部文件  
  include_once("conn/conn.php")
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>明日科技-编程者之家网站</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<script language="javascript">
  function ld(){
    init();
  }
</script>
<body onLoad="ld()">
<table width="870" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="220" valign="top">    
      <table width="220" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="220" height="30" align="left"><img src="images/br_11(1).jpg" width="220" height="30"></td>
        </tr>
        <tr>
          <td>  
              <table width="220" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#6EBEC7">
                <tr>
                  <td width="218" align="right" bgcolor="#FFFFFF"> <div id=marquees >

<table width="200" height="25" border="0" align="center"  cellpadding="0" cellspacing="0">

                      <?php
					  $sql=mysql_query("select id,title,createtime from tb_tell order by createtime desc limit 0,10",$conn);
					  $info=mysql_fetch_array($sql);
					  if($info==false){
					 ?>
                      <tr>
                        <td height="25"><div align="center"><a href="#" class="a4">本站暂无公告发布! </a></div></td>
                      </tr>
                      <?php
					  }else{ 
					   $i=1;
					    do{
					  ?>
                      <tr>
                        <td height="25" style="padding:4"><a href="tellinfo.php?id=<?php echo $info[id];?>" class="a1">
                          <?php
				   if($i==1)
				    {
					  echo "<font color=red>";
					}
				      echo $i.".&nbsp;";
					  echo unhtml(msubstr($info[title],0,50));
			          if(strlen($info[title])>50)
			           {
			             echo " ...";
			           }				  
					  echo "(".str_replace("-","/",$info[createtime]).")";
				    if($i==1)
				    {
					  echo "</font>";
					} 	  				  
					?>
                        </a>  </td>
        </tr>   
                      <?php
					   $i++;
					     }while($info=mysql_fetch_array($sql));
					   }
				?>
</table>
   </div>        </td>
                </tr>
            </table>
         
          <script language="JavaScript"> 
marqueesHeight=162; 
stopscroll=false; 

with(marquees){ 
style.width=0; 
style.height=marqueesHeight; 
style.overflowX="visible"; 
style.overflowY="hidden"; 
noWrap=true; 
onmouseover=new Function("stopscroll=true"); 
onmouseout=new Function("stopscroll=false"); 
} 
document.write('<div id="templayer" style="position:absolute;z-index:1;visibility:hidden"></div>'); 

preTop=0; currentTop=0; 

function init(){ 
templayer.innerHTML=""; 
while(templayer.offsetHeight<marqueesHeight){ 
templayer.innerHTML+=marquees.innerHTML; 
} 
marquees.innerHTML=templayer.innerHTML+templayer.innerHTML; 
setInterval("scrollup()",50); 
} 
//document.body.onload=init; 

function scrollup(){ 
if(stopscroll==true) return; 
preTop=marquees.scrollTop; 
marquees.scrollTop+=1; 
if(preTop==marquees.scrollTop){ 
marquees.scrollTop=templayer.offsetHeight-marqueesHeight; 
marquees.scrollTop+=1; 
} 
} 
      </script></td>
        </tr>
        <tr>
          <td height="30"><div align="center"><img src="images/bg_11(2).jpg" width="220" height="30"></div></td>
        </tr>
        <tr>
          <td><table width="220" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#6EBEC7">
                <tr>
                  <td height="38" bgcolor="#FFFFFF"><table width="215" height="22" border="0" align="center" cellpadding="0" cellspacing="0">
                <?php
				 $sqluwz=mysql_query("select * from tb_soft order by addtime desc limit 0,5",$conn);
				 $infouwz=mysql_fetch_array($sqluwz);
				 if($infouwz==false){ 
				 ?>
                <tr>
                  <td width="20" height="22"><div align="center"><img src="images/mark_0.gif" width="3" height="3" /></div></td>
                  <td width="200">&nbsp;暂无软件提供下载!</td>
                </tr>
                <?php
				 }else{
				  $i=1;
				  do{
				    
				 ?>
                <tr>
                  <td width="20" height="22"><div align="center"><img src="images/mark_0.gif" width="3" height="3" /></div></td>
                  <td width="200" height="22" style="padding:5"><a href="softinfo.php?id=<?php echo $infouwz["id"];?>" class="a1">
                    <?php 
				     
				   if($i==1)
				    {
					  echo "<font color=red>";
					}
						
						
						echo unhtml(msubstr($infouwz["softname"],0,16));
						
						 if(strlen($infouwz["softname"])>16)
			             {
			                echo " .";
			             }
						 echo "<font color=red>[".substr(str_replace("-","/",$infouwz[addtime]),0,10)."]</font>";	
						 
					if($i==1)
				    {
					  echo "</font>";
					} 
					 
					  
					  
					  ?>
                  </a> </td>
                </tr>
                <tr>
                  <td height="1" colspan="2" background="images/line_1.gif"></td>
                </tr>
                <?php
			        $i++;
				  }while($infouwz=mysql_fetch_array($sqluwz));
				 }
				 ?>
            </table>                </tr>
          </table></td>
        </tr>
      </table>      </td>
    <td width="8"></td>
    <td width="642" align="center" valign="top">
<table width="642" border="0" cellspacing="0" cellpadding="0">
          <td height="30" valign="middle" background="images/bg_12(2).jpg"><table width="610">
            <tr>
              <td width="109" rowspan="2">&nbsp;</td>
              <td width="379" height="3"></td>
              <td width="106" rowspan="2">&nbsp;</td>
            <tr>
              <td>&nbsp;<a href="jszc.php?jszc=常见问题" class="a2">常见问题</a>&nbsp;<a href="jszc.php?jszc=客户反馈" class="a2">客户反馈</a>&nbsp;<a href="jszc.php?jszc=联系方式" class="a2">联系方式</a></td>
            </table></td>
        </tr>
        <tr>
          <td  width="642" align="center" valign="top">
   <table width="642" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#6EBEC7">
        <tr>
          <td bgcolor="#FFFFFF">
<?php 
switch($jszc){
  case "常见问题":
      include("cjwt.php");
  break;
  case "客户反馈":
      include("khfk.php");
  break;
  case "联系方式":
      include("lxfs.php");
  break;
   case "":
      include("cjwt.php");
  break;
}
?></td>
        </tr></table>
          </td>
        </tr>
      </table>
</td>
  </tr>
</table>
<table align="center" width="870" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="80" colspan="3"><img src="images/bg_11(4).jpg" width="870" height="80"></td>
  </tr>
  <tr>
    <td width="290" height="30" align="left"><img src="images/bg_11(5).jpg" width="285" height="30"></td>
    <td width="290" align="center"><img src="images/bg_11(6).jpg" width="285" height="30"></td>
    <td width="290" align="right"><img src="images/bg_11(7).jpg" width="285" height="30"></td>
  </tr>
  <tr>
    <td><table width="285" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#6EBEC7">
      <tr>
        <td bgcolor="#FFFFFF"><table width="275" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="82" height="77" align="center" valign="middle"><img src="images/bg_11(8).jpg" width="80" height="75"></td>
            <td width="193" height="77" valign="middle"><table width="193" height="22" border="0" align="center" cellpadding="0" cellspacing="0">
                <?php
				 $sqluwz=mysql_query("select * from tb_cjwt order by createtime desc limit 0,3",$conn);
				 $infouwz=mysql_fetch_array($sqluwz);
				 if($infouwz==false){ 
				 ?>
                <tr>
                  <td width="20" height="22"><div align="center"><img src="images/mark_0.gif" width="3" height="3" /></div></td>
                  <td width="200">&nbsp;暂无常见问题!</td>
                </tr>
                <?php
				 }else{
				  $i=1;
				  do{
				    
				 ?>
                <tr>
                  <td width="20" height="22"><div align="center"><img src="images/mark_0.gif" width="3" height="3" /></div></td>
                  <td width="200" height="22" style="padding:5"><a href="jszc.php?jszc=查看常见问题&id=<?php echo $infouwz["id"];?>" class="a1">
                    <?php 
				     
				   if($i==1)
				    {
					  echo "<font color=red>";
					}
						
						
						echo unhtml(msubstr($infouwz["question"],0,12));
						
						 if(strlen($infouwz["question"])>12)
			             {
			                echo " .";
			             }
						 echo "<font color=red>[".substr(str_replace("-","/",$infouwz[createtime]),0,10)."]</font>";	
						 
					if($i==1)
				    {
					  echo "</font>";
					} 
					 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -