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

📄 fns_html.php

📁 EonianBai 精美留言本 学php还不过2个星期,难免有所不足.发现BUG请联系我..如果您能把本程序修改的更好,请连接作者发一份修改后的文件.感谢!!使用愉快
💻 PHP
字号:
<?php
  function html_header($title)
  {
    global $web_name,$web_keywords,$web_description,$web_about,$web_email;
?>
<!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=gb2312" />
<title>[<?php echo $title; ?>] <?php echo $web_name; ?></title>
<meta name="keywords" content="<?php echo $web_keywords; ?>" />
<meta name="description" content="<?php echo $web_description; ?>" />
<link href="skin/css/default.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="780" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td height="1" background="skin/eb_images/line.gif"></td>
  </tr>
</table>
<table width="780" height="58" border="0" cellpadding="2" cellspacing="0" bgcolor="#FCFDF2">
  <tr>
    <td valign="top">	<table width="100%"  border="0" cellspacing="1" cellpadding="2">
      <tr>
        <td align="left">
		<img src="skin/eb_images/about.gif" align="absmiddle"/>
		<a href="<?php echo $web_about; ?>" title="关于我们" class="top_a">关于我们</a>
		<img src="skin/eb_images/mail.gif" align="absmiddle"/>
		<a href="mailto:<?php echo $web_email; ?>" title="联系站长" class="top_a">联系站长</a>
		<img src="skin/eb_images/http.gif" align="absmiddle"/>
		<a href="default.php" title="留言首页" class="top_a">留言首页</a>
		<?php
          if (@$_SESSION['admin'] != '')
          {
        ?>
        <span style="color:red;background-color:#DCFFB9;">
        <img src="skin/eb_images/about.gif" align="absmiddle"/> 管理员:
        <?php echo $_SESSION['admin']; ?>
		<a href="admin_mima.htm" title="修改密码" class="top_a">修改密码</a>
		<a href="admin_logout.php" title="退出管理" class="top_a">退出管理</a>
		</span>
		<?php
          }
        ?>
		</td>
      </tr>
      <tr>
        <td align="left">日期分页:<?php echo page_menu(); ?></td>
      </tr>
    </table>	</td>
    <td width="190"><a href="form_write.php"><img src="skin/eb_images/hh.jpg" border="0" /></a></td>
  </tr>
</table>
<table width="780" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td height="1" background="skin/eb_images/line.gif"></td>
  </tr>
</table>
<table width="780" height="10" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<?php
  }
  function html_footer()
  {
    global $web_email,$web_qq;
?>
<table width="780" height="30" border="0" cellpadding="0" cellspacing="0" class="table_crpy">
  <tr>
    <td>
	&nbsp;&nbsp;站长QQ:<span class="copy_a"><?php echo $web_qq; ?></span>&nbsp;&nbsp;E-MAIL:<a href="mailto:<?php echo $web_email; ?>" class="copy_a"><?php echo $web_email; ?></a>
	版权所有 2006 &copy; EonianBai <a href="admin_login.htm">管理入口</a>
	</td>
  </tr>
</table>
</body>
</html>
<?php
  }
  function html_info($list_t,$ms_of,$ms,$form_of,$book,$dat)
  {
    global $web_gg,$web_rescript;
?>
<table width="780" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td height="1" background="skin/eb_images/line.gif"></td>
  </tr>
</table>
<table width="780" border="0" cellpadding="0" cellspacing="0" bgcolor="#FCFDF2">
  <tr>
    <td>
    <table width="100%"  border="0" cellpadding="5" cellspacing="2">
      <tr>
        <td><img src="skin/eb_images/heat.gif" /> + <?php echo $list_t; ?> +</td>
      </tr>
    </table>
    <?php
      if ($web_rescript == 'on')
      {
    ?>
	<table border="0" cellpadding="0" cellspacing="0" align="center" class="table_list">
      <tr>
        <td bgcolor="#F1F9CA">
		<img src="skin/eb_images/sex_boy.gif" /><marquee width="650" scrollamount="1"><span class="title">
		<img src="skin/eb_images/heat.gif" /> <?php echo $web_gg; ?> <img src="skin/eb_images/heat.gif" />
		</span></marquee>		</td>
      </tr>
      <tr>
        <td>		<table width="100%"  border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td width="40" valign="top"><img src="skin/eb_gif/admin.gif"/></td>
            <td class="title_gg">&nbsp;&nbsp;<?php eb_rescript(); ?>
            <?php
              if (@$_SESSION['admin'] != '')
              {
                echo '<a href="admin_rescript.htm">[更新公告]</a>';
              }
            ?>
            </td>
          </tr>
        </table>
		</td>
      </tr>
    </table>
    <?php
      }
      if ($ms_of == 'on')
        html_ms($ms);
      elseif ($form_of == 'on')
        form_write();
      elseif ($book == '1')
        get_book();
      else
      get_book_page($dat);
    ?>
	</td>
  </tr>
</table>
<table width="780" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td height="1" background="skin/eb_images/line.gif"></td>
  </tr>
</table>
<?php
  }
  function html_ms($ms)
  {
?>
<table border="0" cellpadding="0" cellspacing="0" align="center" class="table_list">
      <tr>
        <td bgcolor="#F1F9CA">
		<span class="title">系统提示</span>		</td>
      </tr>
      <tr>
        <td><table width="100%"  border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td width="40" valign="top"><img src="skin/eb_gif/ms.gif" /></td>
            <td class="title_ms">
			<?php echo $ms; ?>
			</td>
          </tr>
        </table></td>
      </tr>
    </table>
<?php
  }
  function form_write()
  {
?>
<table border="0" cellpadding="0" cellspacing="0" align="center" class="table_list">
      <tr>
        <td bgcolor="#F1F9CA">
		<span class="title">发表新留言</span>		</td>
      </tr>
      <tr>
        <td>
		    <table width="100%" cellpadding="2" cellspacing="5">
            <form name="form1" id="form1" method="post" action="form_write_post.php">
              <tr>
                <td width="12%">你的大名:</td>
                <td width="88%"><input name="name" type="text" id="name" size="40" />
                字符范围 1-20 [<span style="color:#FF0000">选填</span>] 例:小白</td>
                </tr>
              <tr>
                <td>选择性别:</td>
                <td>
				  <img src="skin/eb_images/sex_boy.gif"/>
                  <input name="sex" type="radio" value="boy" checked="checked" />
                  <img src="skin/eb_images/sex_girl.gif"/>
				  <input name="sex" type="radio" value="girl" />
				  选择性别</td>
                </tr>
              <tr>
                <td>电子邮件:</td>
                <td><input name="mail" type="text" id="mail" size="40" />
                  电子邮件地址 [<span style="color:#FF0000">选填</span>] 例:baiyongbiao@163.com</td>
                </tr>
              <tr>
                <td>留言标题:</td>
                <td>                  <input name="title" type="text" id="title" size="40" />
                  留言标题 100字以内 [<span style="color:#FF0000">必填</span>] </td>
                </tr>
              <tr>
                <td>留言内容:</td>
                <td><textarea name="text" cols="50" rows="5" id="text"></textarea>
                留言内容 500字以内 ×HTML [<span style="color:#FF0000">必填</span>]</td>
                </tr>
              <tr>
                <td>确认操作:</td>
                <td><input type="submit" name="Submit" value="发表留言" class="input_b"/>
                  <input type="reset" name="Submit2" value="清除重写"class="input_b" /></td>
                </tr>
			  </form>
            </table>

	      </td>
      </tr>
    </table>
<?php
  }
?>

⌨️ 快捷键说明

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