www.gusucode.com > 仿51.com的php源码 1.1 > User/MyPersonalInfoLive.php
<?php include("../include/global.php"); include("CheckLogined.php"); include("../include/dbclass.php"); $db=new DbConn(); $uid=$_COOKIE["uid"]; $sql="select IsSmoke,IsDrink,ClothStyle,SleepPosture,IsBareSleep,IsSnacks,IsFruit,LoveColor,LoveAmount,LoveSports,LoveGames,LoveSing,LoveBook,LoveMovice,LoveMingRen,Whys,LifeSaying,c19,c20,c21,c22,c23,c24,c25,c26,c27,c28,c29,c30,c31,c32,c33,c34,c35 from userdata where User_Account='$uid'"; $arr=$db->getRs($sql); if ($_GET["step"]=="3") { $IsSmoke=$_POST["f_User_IsSmoke"]; if ($IsSmoke=="") { echo "<script>alert('是否抽烟没有选择!');history.back();</script>"; exit(); } $IsDrink=$_POST["f_User_IsDrink"]; if ($IsDrink=="") { echo "<script>alert('是否饮酒没有选择!');history.back();</script>"; exit(); } $ClothStyle=$_POST["f_User_ClothStyle"]; if ($ClothStyle=="") { echo "<script>alert('个人着装没有选择!');history.back();</script>"; exit(); } $SleepPosture=$_POST["SleepPosture"]; $IsBareSleep=$_POST["IsBareSleep"]; $IsSnacks=$_POST["IsSnacks"]; $IsFruit=$_POST["IsFruit"]; $LoveColor=$_POST["LoveColor"]; $LoveAmount=$_POST["LoveAmount"]; $LoveSports=$_POST["LoveSports"]; $LoveGames=$_POST["LoveGames"]; $LoveSing=$_POST["LoveSing"]; $LoveBook=$_POST["LoveBook"]; $LoveMovice=$_POST["LoveMovice"]; $LoveMingRen=$_POST["LoveMingRen"]; $Whys=$_POST["Whys"]; $LifeSaying=$_POST["LifeSaying"]; $c19=$_POST["19"]; $c20=$_POST["20"]; $c21=$_POST["21"]; $c22=$_POST["22"]; $c23=$_POST["23"]; $c24=$_POST["24"]; $c25=$_POST["25"]; $c26=$_POST["26"]; $c27=$_POST["27"]; $c28=$_POST["28"]; $c29=$_POST["29"]; $c30=$_POST["30"]; $c31=$_POST["31"]; $c32=$_POST["32"]; $c33=$_POST["33"]; $c34=$_POST["34"]; $c35=$_POST["35"]; $sql="update userdata set IsSmoke='$IsSmoke',IsDrink='$IsDrink',ClothStyle='$ClothStyle',SleepPosture='$SleepPosture',IsBareSleep='$IsBareSleep',IsSnacks='$IsSnacks',IsFruit='$IsFruit',LoveColor='$LoveColor',LoveAmount='$LoveAmount',LoveSports='$LoveSports',LoveGames='$LoveGames',LoveSing='$LoveSing',LoveBook='$LoveBook',LoveMovice='$LoveMovice',LoveMingRen='$LoveMingRen',Whys='$Whys',LifeSaying='$LifeSaying',c19='$c19',c20='$c20',c21='$c21',c22='$c22',c23='$c23',c24='$c24',c25='$c25',c26='$c26',c27='$c27',c28='$c28',c29='$c29',c30='$c30',c31='$c31',c32='$c32',c33='$c33',c34='$c34',c35='$c35' where User_Account='$uid'"; $db->Execute($sql); echo "<script>alert('保存成功!');location.href='MyPersonalInfoLive.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%2FMyPersonalInfoLive.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*********/ function userInfo3(obj) { //标准输出 var smoking=obj.f_User_IsSmoke.value; var drinking=obj.f_User_IsDrink.value; var cloth=obj.f_User_ClothStyle.value; if(smoking==0) { alert('是否吸烟没有选择!');document.all("f_User_IsSmoke").focus();return false; } else if(drinking==0) { alert('是否饮酒没有选择!');document.all("f_User_IsDrink").focus();return false; } else if(cloth==0) { alert('个人着装没有选择!');document.all("f_User_ClothStyle").focus();return false; } return true; } </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" title="基本资料">基本资料</a></div><div class="phl2 "><a href="MyPersonalInfoDetail.php" title="择友资料">择友资料</a></div><div class="phl1"><div class="phz "><a href="MyPersonalInfoLive.php" title="生活方式">生活方式</a></div></div><div class="phl2 "><a href="MyPersonalInfoContact.php" 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"><a href="MyPersonalInfoIntro.php">自我介绍</a></div><!--<div class="mxle"><a href="MyPersonalInfoGroup.php">分类管理</a></div>--></div> </div> <div id="right"> <div id="a4n"> <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> <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"> <form name=formup method=post action="?step=3" onsubmit="changeFlag=false;return userInfo3(this)"> <table width="570" border="0" cellpadding="5" cellspacing="0" class="tvb nxx"> <input type=hidden name=19 value="<?php echo $arr["c19"]; ?>"><tr><td height="20" align="right" valign="top"style="line-height:20px;" width=108><span id="smokeq" style="color:<?php echo $arr["c19"]; ?>">是否抽烟:</span></td><td align="left" width=439><select name="f_User_IsSmoke" onpropertychange="changeFlagValue()" ><option value=0 >----</option><option value=不抽烟 >不抽烟</option><option value=偶尔会抽 >偶尔会抽</option><option value=烟鬼 >烟鬼</option><option value=正在戒烟 >正在戒烟</option><option value=已经戒了 >已经戒了</option><option value=心情不好时抽 >心情不好时抽</option></select></td><td align="left" width=23><span class="tvys" style="background:<?php echo $arr["c19"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('19'),document.all('f_User_IsSmoke'),document.all('smokeq'))"><img src="images/ysk.gif" width="21" height="18" /></span></td><script> document.all('f_User_IsSmoke').style.color="<?php echo $arr["c19"]; ?>"; </script></tr><input type=hidden name=20 value="<?php echo $arr["c20"]; ?>"><tr><td height="20" align="right" valign="top"style="line-height:20px;"><span id="drinkq" style="color:<?php echo $arr["c20"]; ?>">是否喝酒:</span></td><td align="left"><select name="f_User_IsDrink" onpropertychange="changeFlagValue()" ><option value=0 >----</option><option value=从不喝 >从不喝</option><option value=应酬时喝一些 >应酬时喝一些</option><option value=心情不好时喝 >心情不好时喝</option><option value=酒鬼 >酒鬼</option><option value=正在戒酒 >正在戒酒</option><option value=已经戒了 >已经戒了</option></select></td><td align="left"><span class="tvys" style="background:<?php echo $arr["c20"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('20'),document.all('f_User_IsDrink'),document.all('drinkq'))"><img src="images/ysk.gif" width="21" height="18" /></span></td><script> document.all('f_User_IsDrink').style.color="<?php echo $arr["c20"]; ?>"; </script></tr><input type=hidden name=21 value="<?php echo $arr["c21"]; ?>"><tr><td height="20" align="right" valign="top"style="line-height:20px;"><span id="clothq" style="color:<?php echo $arr["c21"]; ?>">个人着装:</span></td><td align="left"><select name="f_User_ClothStyle" onpropertychange="changeFlagValue()" ><option value=0 >----</option><option value=休闲 >休闲</option><option value=正统 >正统</option><option value=前卫 >前卫</option><option value=随便 >随便</option></select></td><td align="left"><span class="tvys" style="background:<?php echo $arr["c21"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('21'),document.all('f_User_ClothStyle'),document.all('clothq'))"><img src="images/ysk.gif" width="21" height="18" /></span></td><script> document.all('f_User_ClothStyle').style.color="<?php echo $arr["c21"]; ?>"; </script></tr><tr ><td colspan=3 style="border-bottom: none;"> <div id="filearea" style="text-align:left"> <div style="text-align:left;margin-left:-10px!important;margin-left:-5px;border-bottom: 1px dotted #cccccc;position: relative;top:-5px;"><input type=hidden name=22 value="<?php echo $arr["c22"]; ?>"> <span id="smokeq" style="color:<?php echo $arr["c22"]; ?>">睡姿</span> <span style="position: relative;top:-5px;">:</span> <input name="SleepPosture" type="text" maxlength="80" size=60 style="color:<?php echo $arr["c22"]; ?>" onpropertychange=changeFlagValue()> <span class="tvys" style="background:<?php echo $arr["c22"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('22'),document.all('SleepPosture'),document.all('obq'))"><img src="images/ysk.gif" width="21" height="18" /></span> </div> <div style="text-align:left;margin-left:-10px!important;margin-left:-5px;border-bottom: 1px dotted #cccccc;position: relative;top:-5px;"> <input type=hidden name=23 value="<?php echo $arr["c23"]; ?>"> <span id="smokeq" style="color:<?php echo $arr["c23"]; ?>">是否裸睡</span> <span style="position: relative;top:-5px;">:</span> <input type="text" name="IsBareSleep" size="60" maxlength="80" style="color:<?php echo $arr["c23"]; ?>" onpropertychange=changeFlagValue()> <span class="tvys" style="background:<?php echo $arr["c23"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('23'),document.all('IsBareSleep'),document.all('obq'))"><img src="images/ysk.gif" width="21" height="18" /></span> </div> <div style="text-align:left;margin-left:-10px!important;margin-left:-5px;border-bottom: 1px dotted #cccccc;position: relative;top:-5px;"> <input type=hidden name=24 value="<?php echo $arr["c24"]; ?>"> <span id="smokeq" style="color:<?php echo $arr["c24"]; ?>">喜欢的零食</span><span style="position: relative;top:-5px;">:</span> <input type="text" name="IsSnacks" size="60" maxlength="80" style="color:<?php echo $arr["c24"]; ?>" onpropertychange=changeFlagValue()> <span class="tvys" style="background:<?php echo $arr["c24"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('24'),document.all('IsSnacks'),document.all('obq'))"><img src="images/ysk.gif" width="21" height="18" /></span> </div> <div style="text-align:left;margin-left:-10px!important;margin-left:-5px;border-bottom: 1px dotted #cccccc;position: relative;top:-5px;"> <input type=hidden name=25 value="<?php echo $arr["c25"]; ?>"> <span id="smokeq" style="color:<?php echo $arr["c25"]; ?>">喜欢的水果</span> <span style="position: relative;top:-5px;">:</span> <input type="text" name="IsFruit" size="60" maxlength="80" style="color:<?php echo $arr["c25"]; ?>" onpropertychange=changeFlagValue()> <span class="tvys" style="background:<?php echo $arr["c25"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('25'),document.all('IsFruit'),document.all('obq'))"><img src="images/ysk.gif" width="21" height="18" /></span> </div> <div style="text-align:left;margin-left:-10px!important;margin-left:-5px;border-bottom: 1px dotted #cccccc;position: relative;top:-5px;"> <input type=hidden name=26 value="<?php echo $arr["c26"]; ?>"> <span id="smokeq" style="color:<?php echo $arr["c26"]; ?>">喜欢的颜色</span><span style="position: relative;top:-5px;">:</span> <input type="text" name="LoveColor" size="60" maxlength="80" style="color:<?php echo $arr["c26"]; ?>" onpropertychange=changeFlagValue()> <span class="tvys" style="background:<?php echo $arr["c26"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('26'),document.all('LoveColor'),document.all('obq'))"><img src="images/ysk.gif" width="21" height="18" /></span> </div> <div style="text-align:left;margin-left:-10px!important;margin-left:-5px;border-bottom: 1px dotted #cccccc;position: relative;top:-5px;"> <input type=hidden name=27 value="<?php echo $arr["c27"]; ?>"> <span id="smokeq" style="color:<?php echo $arr["c27"]; ?>">喜欢的数字</span> <span style="position: relative;top:-5px;">:</span> <input type="text" name="LoveAmount" size="60" maxlength="80" style="color:<?php echo $arr["c27"]; ?>" onpropertychange=changeFlagValue()> <span class="tvys" style="background:<?php echo $arr["c27"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('27'),document.all('LoveAmount'),document.all('obq'))"><img src="images/ysk.gif" width="21" height="18" /></span> </div> <div style="text-align:left;margin-left:-10px!important;margin-left:-5px;border-bottom: 1px dotted #cccccc;position: relative;top:-5px;"> <input type=hidden name=28 value="<?php echo $arr["c28"]; ?>"> <span id="smokeq" style="color:<?php echo $arr["c28"]; ?>">喜欢的运动</span> <span style="position: relative;top:-5px;">:</span> <input type="text" name="LoveSports" size="60" maxlength="80" style="color:<?php echo $arr["c28"]; ?>" onpropertychange=changeFlagValue()> <span class="tvys" style="background:<?php echo $arr["c28"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('28'),document.all('LoveSports'),document.all('obq'))"><img src="images/ysk.gif" width="21" height="18" /></span> </div> <div style="text-align:left;margin-left:-10px!important;margin-left:-5px;border-bottom: 1px dotted #cccccc;position: relative;top:-5px;"> <input type=hidden name=29 value="<?php echo $arr["c29"]; ?>"> <span id="smokeq" style="color:<?php echo $arr["c29"]; ?>">喜欢的游戏</span> <span style="position: relative;top:-5px;">:</span> <input type="text" name="LoveGames" size="60" maxlength="80" style="color:<?php echo $arr["c29"]; ?>" onpropertychange=changeFlagValue()> <span class="tvys" style="background:<?php echo $arr["c29"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('29'),document.all('LoveGames'),document.all('obq'))"><img src="images/ysk.gif" width="21" height="18" /></span> </div> <div style="text-align:left;margin-left:-10px!important;margin-left:-5px;border-bottom: 1px dotted #cccccc;position: relative;top:-5px;"> <input type=hidden name=30 value="<?php echo $arr["c30"]; ?>"> <span id="smokeq" style="color:<?php echo $arr["c30"]; ?>">喜欢的歌</span> <span style="position: relative;top:-5px;">:</span> <input type="text" name="LoveSing" size="60" maxlength="80" style="color:<?php echo $arr["c30"]; ?>" onpropertychange=changeFlagValue()> <span class="tvys" style="background:<?php echo $arr["c30"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('30'),document.all('LoveSing'),document.all('obq'))"><img src="images/ysk.gif" width="21" height="18" /></span> </div> <div style="text-align:left;margin-left:-10px!important;margin-left:-5px;border-bottom: 1px dotted #cccccc;position: relative;top:-5px;"> <input type=hidden name=31 value="<?php echo $arr["c31"]; ?>"> <span id="smokeq" style="color:<?php echo $arr["c31"]; ?>">喜欢的书</span> <span style="position: relative;top:-5px;">:</span> <input type="text" name="LoveBook" size="60" maxlength="80" style="color:<?php echo $arr["c31"]; ?>" onpropertychange=changeFlagValue()> <span class="tvys" style="background:<?php echo $arr["c31"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('31'),document.all('LoveBook'),document.all('obq'))"><img src="images/ysk.gif" width="21" height="18" /></span> </div> <div style="text-align:left;margin-left:-10px!important;margin-left:-5px;border-bottom: 1px dotted #cccccc;position: relative;top:-5px;"> <input type=hidden name=32 value="<?php echo $arr["c32"]; ?>"> <span id="smokeq" style="color:<?php echo $arr["c32"]; ?>">喜欢的电影/电视剧</span> <span style="position: relative;top:-5px;">:</span> <input type="text" name="LoveMovice" size="60" maxlength="80" style="color:<?php echo $arr["c32"]; ?>" onpropertychange=changeFlagValue()> <span class="tvys" style="background:<?php echo $arr["c32"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('32'),document.all('LoveMovice'),document.all('obq'))"><img src="images/ysk.gif" width="21" height="18" /></span> </div> <div style="text-align:left;margin-left:-10px!important;margin-left:-5px;border-bottom: 1px dotted #cccccc;position: relative;top:-5px;"> <input type=hidden name=33 value="<?php echo $arr["c33"]; ?>"> <span id="smokeq" style="color:<?php echo $arr["c33"]; ?>">喜欢的名人</span> <span style="position: relative;top:-5px;">:</span> <input type="text" name="LoveMingRen" size="60" maxlength="80" style="color:<?php echo $arr["c33"]; ?>" onpropertychange=changeFlagValue()> <span class="tvys" style="background:<?php echo $arr["c33"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('33'),document.all('LoveMingRen'),document.all('obq'))"><img src="images/ysk.gif" width="21" height="18" /></span> </div> <div style="text-align:left;margin-left:-10px!important;margin-left:-5px;border-bottom: 1px dotted #cccccc;position: relative;top:-5px;"> <input type=hidden name=34 value="<?php echo $arr["c34"]; ?>"> <span id="smokeq" style="color:<?php echo $arr["c34"]; ?>">原因</span> <span style="position: relative;top:-5px;">:</span> <input type="text" name="Whys" size="60" maxlength="80" style="color:<?php echo $arr["c34"]; ?>" onpropertychange=changeFlagValue()> <span class="tvys" style="background:<?php echo $arr["c34"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('34'),document.all('Whys'),document.all('obq'))"><img src="images/ysk.gif" width="21" height="18" /></span> </div> <div style="text-align:left;margin-left:-10px!important;margin-left:-5px;border-bottom: 1px dotted #cccccc;position: relative;top:-5px;"> <input type=hidden name=35 value="<?php echo $arr["c35"]; ?>"> <span id="smokeq" style="color:<?php echo $arr["c35"]; ?>">人生格言</span><span style="position: relative;top:-5px;">:</span> <input type="text" name="LifeSaying" size="60" maxlength="80" style="color:<?php echo $arr["c35"]; ?>" onpropertychange=changeFlagValue()> <span class="tvys" style="background:<?php echo $arr["c35"]; ?>" onclick="AppPersonalInfoSelectColorHtml(this,document.all('35'),document.all('LifeSaying'),document.all('obq'))"><img src="images/ysk.gif" width="21" height="18" /></span> </div> </div> </td></tr><tr ><td colspan=3 align=center height=50 style="border-bottom: none;"><div id="x4n"></div><br><div style="float:left;width:200px;margin-left:150px!important;margin-left:80px"> <input type=submit value=' 确定 ' class='btn'></div></td></tr> </table> <script> if (document.all("f_User_IsSmoke").options && "<?php echo $arr["IsSmoke"]; ?>" == "" ){ document.all("f_User_IsSmoke").options[0].selected=true; }else{ document.all("f_User_IsSmoke").value="<?php echo $arr["IsSmoke"]; ?>"; }; if (document.all("f_User_IsDrink").options && "<?php echo $arr["IsDrink"]; ?>" == "" ){ document.all("f_User_IsDrink").options[0].selected=true; }else{ document.all("f_User_IsDrink").value="<?php echo $arr["IsDrink"]; ?>"; }; if (document.all("f_User_ClothStyle").options && "<?php echo $arr["ClothStyle"]; ?>" == "" ){ document.all("f_User_ClothStyle").options[0].selected=true; }else{ document.all("f_User_ClothStyle").value="<?php echo $arr["ClothStyle"]; ?>"; }; if (document.all("SleepPosture").options && "<?php echo $arr["SleepPosture"]; ?>" == "" ){ document.all("SleepPosture").options[0].selected=true; }else{ document.all("SleepPosture").value="<?php echo $arr["SleepPosture"]; ?>"; }; if (document.all("IsBareSleep").options && "<?php echo $arr["IsBareSleep"]; ?>" == "" ){ document.all("IsBareSleep").options[0].selected=true; }else{ document.all("IsBareSleep").value="<?php echo $arr["IsBareSleep"]; ?>"; }; if (document.all("IsSnacks").options && "<?php echo $arr["IsSnacks"]; ?>" == "" ){ document.all("IsSnacks").options[0].selected=true; }else{ document.all("IsSnacks").value="<?php echo $arr["IsSnacks"]; ?>"; }; if (document.all("IsFruit").options && "<?php echo $arr["IsFruit"]; ?>" == "" ){ document.all("IsFruit").options[0].selected=true; }else{ document.all("IsFruit").value="<?php echo $arr["IsFruit"]; ?>"; }; if (document.all("LoveColor").options && "<?php echo $arr["LoveColor"]; ?>" == "" ){ document.all("LoveColor").options[0].selected=true; }else{ document.all("LoveColor").value="<?php echo $arr["LoveColor"]; ?>"; }; if (document.all("LoveAmount").options && "<?php echo $arr["LoveAmount"]; ?>" == "" ){ document.all("LoveAmount").options[0].selected=true; }else{ document.all("LoveAmount").value="<?php echo $arr["LoveAmount"]; ?>"; }; if (document.all("LoveSports").options && "<?php echo $arr["LoveSports"]; ?>" == "" ){ document.all("LoveSports").options[0].selected=true; }else{ document.all("LoveSports").value="<?php echo $arr["LoveSports"]; ?>"; }; if (document.all("LoveGames").options && "<?php echo $arr["LoveGames"]; ?>" == "" ){ document.all("LoveGames").options[0].selected=true; }else{ document.all("LoveGames").value="<?php echo $arr["LoveGames"]; ?>"; }; if (document.all("LoveSing").options && "<?php echo $arr["LoveSing"]; ?>" == "" ){ document.all("LoveSing").options[0].selected=true; }else{ document.all("LoveSing").value="<?php echo $arr["LoveSing"]; ?>"; }; if (document.all("LoveBook").options && "<?php echo $arr["LoveBook"]; ?>" == "" ){ document.all("LoveBook").options[0].selected=true; }else{ document.all("LoveBook").value="<?php echo $arr["LoveBook"]; ?>"; }; if (document.all("LoveMovice").options && "<?php echo $arr["LoveMovice"]; ?>" == "" ){ document.all("LoveMovice").options[0].selected=true; }else{ document.all("LoveMovice").value="<?php echo $arr["LoveMovice"]; ?>"; }; if (document.all("LoveMingRen").options && "<?php echo $arr["LoveMingRen"]; ?>" == "" ){ document.all("LoveMingRen").options[0].selected=true; }else{ document.all("LoveMingRen").value="<?php echo $arr["LoveMingRen"]; ?>"; }; if (document.all("Whys").options && "<?php echo $arr["Whys"]; ?>" == "" ){ document.all("Whys").options[0].selected=true; }else{ document.all("Whys").value="<?php echo $arr["Whys"]; ?>"; }; if (document.all("LifeSaying").options && "<?php echo $arr["LifeSaying"]; ?>" == "" ){ document.all("LifeSaying").options[0].selected=true; }else{ document.all("LifeSaying").value="<?php echo $arr["LifeSaying"]; ?>"; }; </script> </form> </div> </div> </div> <div id="bottom"> <div id="baidu" style="color:#a0a0a0;"><?php require("../foot.php"); ?></div> </div> </body> </html>