admin/link_edit.php

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php include("check_login.php");

include("../conn.php");
if($action=="save")
{
	$sql="update links set linkname='$linkname',linkurl='$linkurl'";
mysql_query($sql);
echo"<script>alert('修改成功!');window.location.href='link.php';</script>";
}$sql=mysql_query("select * from links where id=$id",$conn);
$info=mysql_fetch_array($sql);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加公告</title>
<link rel="stylesheet" type="text/css" href="images/admincp.css">
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
</head>
<script language="javascript">
  function chkinput(form)
   {
     if(form.title.value=="")
	 {
	   alert("请输入公告主题!");
	   form.title.select();
	   return(false);
	 }
     if(form.content.value=="")
	 {
	   alert("请输入公告内容!");
	   form.content.select();
	   return(false);
	 }
	 return(true);
   }
</script>
<body topmargin="0" leftmargin="0" bottommargin="0">
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30" bgcolor="#E7F3FB"><div align="center" >添加公告</div></td>
  </tr>
  <tr>
    <td height="175" bgcolor="#E7F3FB"><table width="750" height="175" border="0" align="center" cellpadding="0" cellspacing="1">
      <form name="form1" method="post" action="?action=save&id=<?php echo $info[id]?>" onSubmit="return chkinput(this)">
	  <tr>
        <td width="120" height="25" bgcolor="#FFFFFF"><div align="center">友情链接名称:</div></td>
        <td width="667" bgcolor="#FFFFFF"><div align="left"><input type="text" name="linkname" size="50" class="inputcss" value="<?php echo $info[linkname]?>"></div></td>
      </tr>
        <tr>
        <td width="120" height="25" bgcolor="#FFFFFF"><div align="center">友情链接网址:</div></td>
        <td width="667" bgcolor="#FFFFFF"><div align="left"><input type="text" name="linkurl" size="50" class="inputcss" value="<?php echo $info[linkurl]?>"></div></td>
      </tr>
      <tr>
        <td height="25" colspan="2" bgcolor="#FFFFFF"><div align="center"><input type="submit" value="修改" class="buttoncss">&nbsp;&nbsp;<input type="reset" value="重写" class="buttoncss"></div></td>
      </tr>
	  </form>
后面还有 5 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。