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

📄 htmllib.php

📁 酷PHP留言本
💻 PHP
字号:
<?//##############    僥乕儅僼傽僀儖1   ##########################//##############  僼僅乕儉昞帵  ##################function showform($id,$array,$act){global $CONF_title;global $CONF_icon;global $CONF_showcount;global $CONF_showicon;global $offset;if($act == "res"){	$array["title"] = "Re: ".$array["title"];}if($act == "mod"){	$comment = $array["comment"];	$comment = str_replace("<br />","\n",$comment); }if($act != "mod" && $act != "res" && !$offset){	echo "<div align=right>";	include("counter.php");	echo "</div>";}?><span class=title><? echo $CONF_title; ?></span><br><hr size=3>   <table border=0 cellpadding=4 cellspacing=1>		<form name="post" method="post" action="index.php">          <tr>             <td align="right">作者</td>            <td>               <input type="TEXT" name="name" size=25 maxlength=40 value="<? if($act == "mod") echo $array["name"]; ?>">            </td>          </tr>          <tr>             <td align="right">Email</td>            <td>               <input type="TEXT" name="mail" size=25 maxlength=40 value="<? if($act == "mod") echo $array["mail"]; ?>">            </td>          </tr>          <tr>             <td align="right">留言标题</td>            <td>               <input type="TEXT" name="title" value="<? if($act) echo $array["title"]; ?>" size=40 maxlength=200>            </td>          </tr>          <tr> <?	if($CONF_showicon == "1"){		echo "<td align=\"right\">表情</td><td>";		$i = 1;		while(file_exists("$CONF_icon/icon".$i.".gif")){			echo "<input type=\"radio\" name=\"icon\" value=\"$i\">     	         <img src=\"$CONF_icon/icon".$i.".gif\">";			$i++;		}				echo "</td></tr>";	}?>          <tr>            <td valign=top NOWRAP align="right">留言内容</td>            <td>              <textarea name="comment" rows=5 cols=60 wrap="VIRTUAL"><? if($act == "mod") echo $comment; ?></textarea>            </td>          </tr>          <tr>             <td valign=top NOWRAP align="right">密码</td>            <td>              <?	if($act == "mod"){?><input type="password" name="delpass" size=8 maxlength=8 value=""><input type="hidden" name="act" value="modsubmit"><input type="submit" name="submit" value=" 发布 "><input type="hidden" name="parent" value="<? echo $id; ?>"></td></tr></form><tr><td colspan=2 align=center><form name="post" method="post" action="index.php"><br><br>密码<input type="password" name="delpass" size=8 maxlength=8 value=""><input type="hidden" name="act" value="del"><input type="hidden" name="parent" value="<? echo $id; ?>"><input type="submit" name="submit" value="删除这个留言"></form></td></tr><?	} else {?><input type="password" name="delpass" size=8 maxlength=8 value=""><input type="hidden" name="act" value="newpost"><input type="submit" name="submit" value="发表"><input type="hidden" name="parent" value="<? echo $id; ?>"></td></tr></form><?}?>                    </table>            </td>  </tr><?	if($act == "res"){		echo "<tr><td align=center colspan=2>\n";		echo "<b>以下是你要回复的留言: </b>"; 		echo "</td></tr>\n";	} elseif($act =="mod"){		echo "<tr><td align=center colspan=2>\n";		echo "<b>编辑、删除留言</b>"; 		echo "</td></tr>\n";			}?></table><hr size=3><?}//##############  僗儗昞帵  ##################function dispparent($parent){	global $CONF_icon;	global $CONF_showres;	global $act;	echo "<form name=\"res\" method=\"POST\" action=\"index.php\">\n";	echo "<span class=mtitle>".$parent["title"]."</span> ";	echo " ID.".$parent["ID"]." 作者:";	if($parent["mail"]){		echo "<a href=\"mailto:".$parent["mail"]."\">".$parent["name"]."</a>";	} else {		echo $parent["name"]." ";	}	echo " ".$parent["timestamp"];	if($act != "res"  && $CONF_showres == "1"){			echo "<input type=\"hidden\" name=\"act\" value=\"res\">\n";		echo "<input type=\"hidden\" name=\"id\" value=\"".$parent["ID"]."\">\n";		echo "<input type=\"submit\" name=\"submit\" value=\" 回复 \"><br>";	}	if($parent["icon"]){		echo "<br><img src=\"$CONF_icon/icon".$parent["icon"].".gif\">";	}	echo "<br>".$parent["comment"]."<p><blockquote>";}//##############  回复  ##################function dispchild($child){	global $CONF_icon;	echo "<hr size=\"1\">";	echo "<span class=mtitle>".$child["title"]."</span> ";	echo " ID.".$child["ID"]." 回复者:";	if($child["mail"]){		echo "<a href=\"mailto:".$child["mail"]."\">".$child["name"]."</a>";	} else {		echo $child["name"];	}	echo " ".$child["timestamp"]."<br>";	if($child["icon"]){		echo "<img src=\"$CONF_icon/icon".$child["icon"].".gif\"><br>";	}	echo $child["comment"]."<p>\n";}function closeres(){	echo "</blockquote>\n";	echo "<hr></form>\n";}//##############  网页导航  ##################function pagenavi($total, $offset){	global $CONF_pagemax;	global $CONF_home;	global $CONF_pastlog;	global $view;		$next = $offset + $CONF_pagemax;	$prev = $offset - $CONF_pagemax;	echo "\n<!-- Page navigation -->\n";		if($offset > $CONF_pagemax-1){		echo "<a href=\"index.php?offset=$prev";		if($view == "past"){			echo "&view=past";		}		echo "\"><<上一页</a> ";	}	($total % $pagemax)? $pagenum = ($total/$CONF_pagemax) + 1: $pagenum = ($total/$CONF_pagemax);	if($total <= $CONF_pagemax) $pagenum = 0;	$c = 0;	$page = 1;	if($total > $CONF_pagemax){		echo "[<b> ";		while($pagenum > 0){			if($offset == $c){				$str .= " $page ";			} else {				$str .= " <a href=\"index.php?offset=$c";				if($view =="past"){					$str .= "&view=past";				}				$str .= "\">$page</a> ";			}			$page++;			$pagenum--;			$c = $c + $CONF_pagemax;		}		echo "$str </b>] ";	}	if($next < $total){		echo "<a href=\"index.php?offset=$next";		if ($view == "past"){			echo "&view=past";		}		echo "\">下一页>></a> ";	}	echo "</td></tr></table>";	echo "\n<!-- end of Page navigation -->\n<br><br>";		echo "[ <a href=\"$CONF_home\">返回主页</a> ] 	";		if($view != "past"){		if(file($CONF_pastlog)){			echo "[ <a href=\"index.php?view=past\">以前的留言</a> ]";		}	}	echo " [ <a href=\"search.php\"> 搜索</a> ] ";	echo " [ <a href=\"index.php\">留言板首页</a> ] ";		}?>

⌨️ 快捷键说明

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