www.gusucode.com > 仿51.com的php源码 1.1 > User/MyPersonalInfoIntro.php

    <?php 
include("../include/global.php");
include("CheckLogined.php");
include("../include/dbclass.php");
$db=new DbConn();
$uid=$_COOKIE["uid"];
$sql="select HomepageBulletin,c38 from userdata where User_Account='$uid'";
$arr=$db->getRs($sql);
if ($_GET["action"]=="add")
{
$HomepageBulletin=$_POST["f_User_HomepageBulletin"];
$c38=$_POST["38"];
$sql="update userdata set HomepageBulletin='$HomepageBulletin',c38='$c38' where User_Account='$uid'";
$db->Execute($sql);
echo "<script>alert('保存成功!');location.href='MyPersonalInfoIntro.php';</script>";
}
?>
<!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>村委会档案管理中心 - 个人资料</title>
<link href="../images/User_Main.css" rel="stylesheet" type="text/css" />
<script>
try{
	if(top!=window){
		document.domain	="www.wu-liao.com";		
	}else{
		top.location.href="/webin.php?refer=%2FUser%2FMyPersonalInfoIntro.php";
	}
}catch(e){}
function showNewMessage(user){
	top.showNewMessage(user);
}

</script>
<script>
/*********Js Function Begin*********/
	function AppPersonalInfoSelectColorHtml(Obj,Obj2,Obj3,Obj4,Obj5,Obj6)
{
	//var w=screen.availWidth,h=screen.availHeight;
	var w=320,h=250;
	var theURL="../js/selectcolor.html";
	var theDes="status:no;center:yes;help:no;minimize:no;maximize:no;dialogWidth:"+w+"px;scroll:no;dialogHeight:"+h+"px;border:think";
	var t=self.showModalDialog(theURL,null,theDes);
	if(t)
	{
		Obj.style.background=t;
		Obj2.value=t;
		if(Obj3)
			Obj3.style.color=t;
		if(Obj4)
			Obj4.style.color=t;
		if(Obj5)
			Obj5.style.color=t;
		if(Obj6)
			Obj6.style.color=t;
	}
	else
	{
		//alert('颜色选择失败!');
	}
}
/*********Js Function End*********/

</script>
<script>
var changeFlag=false;	//true表示已修改	false表示没有修改
function changeFlagValue()
{
	changeFlag=true;
}
</script>

<SCRIPT>
function getReadyState()
{
	var x = true;
	var a = document.getElementsByTagName("SCRIPT");
	for (var i=0; i<a.length; i++)
	{
		changeFlag=false;
		if (a[i].readyState=='complete' && x!=false)
		{
			x=true;
		}
		else
		{
			x=false;
		}
	}
	changeFlag=false;
	if (x)
	{
		window.clearTimeout(window.timer);
		//程序开始
		window.onbeforeunload=function()
		{
			if(changeFlag)
			{
				return "是否真的要离开此页面?您刚才所进行的更改还未保存。";
			}
		}
	}
	else
	{
		window.timer=window.setTimeout('getReadyState()',1000);
	}
}
getReadyState();
</SCRIPT>
</head>
<body>
<div id="top"><?php require("../top.php"); ?>
</div>
<div id="nav">
<div id="navt"></div>
</div>

<div id="mjx"></div>
<div id="main">
<div id="left">
<div id="leph">
<div class="phff">
<div class="phtt">
个人资料分类</div>
<div class="phl2 "><a href="MyPersonalInfo.php?group=%BB%F9%B1%BE%D7%CA%C1%CF" title="基本资料">基本资料</a></div><div class="phl2 "><a href="MyPersonalInfoDetail.php?group=%D4%F1%D3%D1%D7%CA%C1%CF" title="择友资料">择友资料</a></div><div class="phl2 "><a href="MyPersonalInfoLive.php?group=%C9%FA%BB%EE%B7%BD%CA%BD" title="生活方式">生活方式</a></div><div class="phl2 "><a href="MyPersonalInfoContact.php?group=%C1%AA%CF%B5%B7%BD%CA%BD" title="联系方式">联系方式</a></div> <div class=phl2 style='font-size:12px;color:red'><div class="phz" ><a href='FixGroup.php' target=_blank></a></div></div></div>
<div class="mxle" id="xzle">自我介绍</div><!--<div class="mxle"><a href="MyPersonalInfoGroup.php">分类管理</a></div>--></div>
</div>
<div id="right">
<div id="a4n">
<div class="anphg">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="53%" align="left"style="font-size:14px;color:#000000;">用心填写资料,有助于全新地认识自己!也有利于别人更好地了解您!
</td>
</tr>
</table>
</div>
</div>
<div id="fenle">
<div class="zyjx"></div>
<form action="?action=add" method="post" name="form1">
<tr ><span id="phoneq" style="color:<?php echo $arr["c38"]; ?>"><div class="ggrj"><textarea Name="f_User_HomepageBulletin" type="TextArea" class="ggrj" onFocus="CheckTextValue()"><?php echo $arr["HomepageBulletin"]; ?></TextArea> <input type=hidden name=38 value="<?php echo $arr["c38"]; ?>"><span class="tvys" style="background:<?php echo $arr["c38"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('38'),document.all('f_User_HomepageBulletin'),document.all('phoneq'))"><img src="images/ysk.gif" width="21" height="18" /></span></div></span><script>document.all('f_User_HomepageBulletin').style.color="<?php echo $arr["c38"]; ?>";</script></tr><tr ><div class="anrj"><input name="Submit" type="submit" class="btn" value="修 改"></div></tr>



<script>
if ( (document.all("f_User_HomepageBulletin").value == ''))
	document.all("f_User_HomepageBulletin").value = "主页公告";
function CheckTextValue()
{
	if ( document.all("f_User_HomepageBulletin").value == "主页公告" )
		document.all("f_User_HomepageBulletin").value = "";
}
</script>
</form>
<div class="rjjj">说明:您可以在公告里写“<span class="green">欢迎大家光临我的主页</span>”,也可以写一首自己喜欢的小诗,甚至是您喜欢的一些字符图形!字符图形举例如下↓<br>
<br>
<p>┏^ǒ^*★*^ǒ^*☆*^ǒ^*★*^ǒ^*☆*^ǒ^★*^ǒ^┓ <br>
┃╭の╮┏┯┓┏┯┓&nbsp;┏┯┓┏┯┓&nbsp;╬&nbsp;&nbsp; ┃ <br>
┃&nbsp;╲╱&nbsp;┠欢┨┠迎Lǒvの光┨┠临┨╭║╮┃ <br>
┃┗恋┛┗┷┛┗┷┛&nbsp;┗┷┛┗┷┛&nbsp;╲╱&nbsp;┃ <br>
┗^ǒ^*★*^ǒ^*☆*^ǒ^*★*^ǒ^*☆*^ǒ^★*^ǒ^┛ </p><br><hr size="1">
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 我心依旧</p>
<p>  ★★★   ★★★ <br>
 ★★★★★ ★★★★★  <br>
 ★★★★★★★★★★★&nbsp; <br>
  ★★★★★★★★★ <br>
   ★★★★★★★ <br>
    ★★★★★ <br>
     ★★★ <br>
      ★ </p><br><hr size="1">
<p>是的∴°★.☆° .★·°∴°★.° .·。∴°<br>
☆ .·°∴° ☆..·°∴°.☆°★°∴°<br>
°∴ 那怕星际无垠 ☆° .·★°∴°.°°<br>
∴°.°★ .·°∴°.°∴°.★☆° .·<br>
°.☆° .★·我也要追到你 °.°°.★<br>
.·°∴★°.°∴°.☆° .·<br>
<br>
( ( )::::: 东边日出西边雨 <br>
(_, \ ) ,_):: 道是无晴却有情 |<br>
:::-'--`--:::::::: ~~| , \ _ /<br>
::::::::::::::::::: ,|`-._/| -== (_) ==-<br>
::::::::^^::::::::.' | /||\ / \<br>
::::::^^::::::::.' | ./ ||`\ |<br>
:::::::::::::::/ `-. |/._ || \<br>
::::::::::::::| || || \<br>
~~=~_~^~ =~ \~~~~~~~'~~~~'~~~~/~~`` ~=~^~<br>
~^^~~-=~^~ ^ `--------------'~^~=~^~_~^=~^~<br></p><br />
<br />
</div>
</div>
</div>
</div>
<div id="bottom">
<div id="baidu" style="color:#a0a0a0;"><?php require("../foot.php"); ?></div>
</div>
</body>
</html>