📄 change_style.php
字号:
<?require("functions.php");if(!$HTTP_COOKIE_VARS["UserID"]){ $msg="error login"; header("Location:error.php?msg=".$msg."&refer=".$GLOBALS["PHP_SELF"]); exit;}if(isset($ok)){ $conn=DBConnect(); $sql="update links_users set "; $sql=$sql."bgcolor='"; $sql=$sql.$bgcolor; $sql=$sql."',textcolor='"; $sql=$sql.$textcolor; $sql=$sql."',lbordercolor='"; $sql=$sql.$lbordercolor; $sql=$sql."',dbordercolor='"; $sql=$sql.$dbordercolor; $sql=$sql."',style="; $sql=$sql.$type; $sql=$sql." where id="; $sql=$sql.$HTTP_COOKIE_VARS["UserID"]; mysql_query($sql,$conn); $msg=$GLOBALS["LINKS_NAME"]."样式修改成功,你新的".$GLOBALS["LINKS_NAME"]."代码如下:<br>"; $msg=$msg."<textarea cols=50 name=textarea readOnly rows=8>"; $msg=$msg."<script src="".$GLOBALS["LINKS_URL"]."links.php?id="; $msg=$msg.$HTTP_COOKIE_VARS["UserID"]; $msg=$msg.""></script></textarea>"; showresult($msg,3); exit;}$conn=DBConnect();$id=$HTTP_COOKIE_VARS["UserID"];$sql="select * from links_users where id=".$id;$result=mysql_query($sql,$conn);$userinfo=mysql_fetch_object($result);$sql="select * from links_users where id<>".$id." ORDER BY account DESC LIMIT 0,8";$result=mysql_query($sql,$conn);$i=0;while($obj=mysql_fetch_object($result)){ $out[$i]->id=$obj->id; $out[$i]->siteintro=$obj->siteintro; $out[$i]->siteurl=$obj->siteurl; $out[$i]->sitename=$obj->sitename; $i++;}DBClose($conn);?><html><head><title><?echo $SITE_TITLE;?></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link rel="stylesheet" href="cssset.css"><SCRIPT language=JavaScript><!--var clr_win_handle;var clr_win_loaded=0;var def_color=Array("bg","","text","000000","lborder","6699ff","dborder","ffffff","pagebg","ffffff");function openclrwin(){ clr_win_handle=window.open("palette.php","select_color_win","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=250,height=80");}function defineclr(t){ document.f1.select_target.value=t; if(clr_win_loaded==0) openclrwin(); else clr_win_handle.focus();}function changeclr(color){ if(document.f1.select_target.value=="bg"){ table1.bgColor=color; table2.bgColor=color; table3.bgColor=color; } else if(document.f1.select_target.value=="lborder"){ table1.borderColorLight=color; table2.borderColorLight=color; table3.borderColorLight=color; } else if(document.f1.select_target.value=="dborder"){ table1.borderColorDark=color; table2.borderColorDark=color; table3.borderColorDark=color; } else if(document.f1.select_target.value=="text"){ for(i=1;i<25;i++){ eval("document.all.text"+i+".style.color=color"); } } else if(document.f1.select_target.value=="pagebg"){ document.all.bg.bgColor=color; }}function checkclr(t){ document.f1.select_target.value=t; eval("tc=document.f1."+t+"color.value"); if((tc.length>0)&&(tc.length<6)){ alert("请输入6位16进制数"); eval("document.f1."+t+"color.select()"); } else{ changeclr(eval("document.f1."+t+"color.value")); }}function init(){ for(ii=0;ii<def_color.length;ii+=2){ document.f1.select_target.value=def_color[ii]; eval('changeclr(document.f1.'+def_color[ii]+'color.value)'); }}function resetit(){ for(ii=0;ii<def_color.length;ii+=2){ document.f1.select_target.value=def_color[ii]; changeclr(def_color[ii+1]); }}function shutit(){ if(clr_win_loaded==1) clr_win_handle.close();}//--></SCRIPT></head><body bgcolor="#FFFFFF" leftmargin="5" topmargin="0" marginwidth="5" marginheight="0" onLoad="init()" onUnload="shutit()"><table border=0 cellpadding=0 cellspacing=0 width="100%"> <tbody> <tr> <td colspan="3"><?include("setup/pg_head.php");?> </td> </tr> <tr> <td bgcolor=#6699FF height=8 valign=top width="20%"> </td> <td bgcolor=#6699FF height=8 width="40%"><font color="#ffffff">修改<?echo $GLOBALS["LINKS_NAME"];?>样式</font></td> <td bgcolor=#6699FF height=8 valign=top width="40%"> </td> </tr> <tr> <td background=table_bg.gif height="380" width="20%" valign="top"><?MakeMenu(3);?> </td> <td align=middle colspan=2 height=376><br> <table border=0 cellpadding=0 cellspacing=0 width="100%"> <tbody> <tr> <td align=middle colspan=2> <form name=f1 action='<?echo $GLOBALS["PHP_SELF"];?>' method=post> <table width="95%" align="center"> <tr> <td width="130" valign="top"><font color="#000000" ><b><br> ☆交换链式样<br> <br> </b><font color="#009900">请从右列三个式样中选择一个符合你页面布局的式样</font></font></td> <td width="5"> </td> <td valign="top"> <table id="bg" border=0 cellpadding=0 cellspacing=0 align="center"> <tbody> <tr valign=top> <td colspan=2> <input name=id type=hidden value=<?echo $id;?>> <input name=select_target type=hidden> </td> </tr> <tr valign=top> <td colspan=2> <table width="468" align="center"> <tr> <td><font color=#c60000>式样一: </font> <input <?echo (($userinfo->style)==1?"checked ":"");?>name=type type=radio value=1> </td> </tr> </table> <table width="468" align="center"> <tr> <td width="100"><a href="<?echo $GLOBALS["LINKS_URL"];?>"><?echo $GLOBALS["LINKS_NAME"];?></a> - <?echo ($userinfo->counter+1);?></td> <td width="368">The ads</td> </tr> </table> <table id="table1" width="468" bordercolorlight="6699ff" bordercolordark="ffffff" border="1" cellspacing="0" cellpadding="0" align="center"> <tr> <td> <table width="100%" cellspacing="0"> <tbody><?for($i=0;$i<sizeof($out);){ if($i%4==0) echo "<tr align=\"center\">\n"; echo "<td align=center nowrap width=17%>\n"; echo "<a href=\"".$GLOBALS["LINKS_URL"]."click.php?from=".$id."&to=".$out[$i]->id."\" style=\"font-size: 9pt;color:#000000;text-decoration: none;\" title=\"".$out[$i]->siteintro."|URL:".$out[$i]->siteurl."\" target=_blank id=\"text".($i+1)."\">".$out[$i]->sitename."</a>\n"; echo "</td>\n"; $i++; if($i%4==0) echo "</tr>\n";}?> </tbody> </table> </td> </tr> </table> <p> </p> </td> </tr> <tr> <td height=246 valign=top width="44%"> <font color=#c60000><br> </font> <table width="100" align="center"> <tr> <td><font color=#c60000>式样二:</font> <input <?echo (($userinfo->style)==2?"checked ":"");?>name=type type=radio value=2> </td> </tr> </table> <font color=#009900></font> <table width="100" align="center"> <tr> <td><a href="<?echo $GLOBALS["LINKS_URL"];?>"><?echo $GLOBALS["LINKS_NAME"];?></a> - <?echo ($userinfo->counter+1);?></td> </tr> </table> <table id="table2" border=1 bordercolordark=#ffffff bordercolorlight=#6699ff cellspacing=0 width=100 align="center"> <tbody> <tr> <td> <table width="100%"> <tr align=center> <td>The ads</td> </tr> <tbody><?for($i=0;$i<sizeof($out);$i++){ echo "<tr align=\"center\">\n"; echo "<td align=center nowrap width=17%>\n"; echo "<a href=\"".$GLOBALS["LINKS_URL"]."click.php?from=".$id."&to=".$out[$i]->id."\" style=\"font-size: 9pt;color:#000000;text-decoration: none;\" title=\"".$out[$i]->siteintro."|URL:".$out[$i]->siteurl."\" target=_blank id=\"text".($i+9)."\">".$out[$i]->sitename."</a>\n"; echo "</td>\n"; echo "</tr>\n";}?> </tbody> </table> </td> </tr> </tbody> </table> <br> </td> <td height=246 valign=top width="56%"> <p> <font color=#c60000><br> </font> <table width="200" align="center"> <tr> <td><font color=#c60000>式样三:</font> <input <?echo (($userinfo->style)==3?"checked ":"");?>name=type type=radio value=3> </td> </tr> </table> <table width="200" align="center"> <tr> <td width="100"><a href="<?echo $GLOBALS["LINKS_URL"];?>"><?echo $GLOBALS["LINKS_NAME"];?></a> - <?echo ($userinfo->counter+1);?></td> <td width="100">The ads</td> </tr> </table> <table id="table3" border=1 bordercolordark=#ffffff bordercolorlight=#6699ff cellspacing=0 width=200 align="center"> <tbody> <tr> <td> <table width="100%"> <tbody><?for($i=0;$i<sizeof($out);){ if($i%2==0) echo "<tr align=\"center\">\n"; echo "<td align=center nowrap width=17%>\n"; echo "<a href=\"".$GLOBALS["LINKS_URL"]."click.php?from=".$id."&to=".$out[$i]->id."\" style=\"font-size: 9pt;color:#000000;text-decoration: none;\" title=\"".$out[$i]->siteintro."|URL:".$out[$i]->siteurl."\" target=_blank id=\"text".($i+17)."\">".$out[$i]->sitename."</a>\n"; echo "</td>\n"; $i++; if($i%2==0) echo "</tr>\n";}?> </tbody> </table> </td> </tr> </tbody> </table> <p> </td> </tr> </tbody> </table> </tr> <tr> <td width="130" valign="top"><font color="#000000" ><b>☆交换链颜色</b></font><b><font color=#000000><br> </font></b><font color=#000000><br> <font color="#009900">你可在文本框中直接输入以6位16进制数表示的颜色值,也可以单击文本框左侧的表征性文字来启动风神智能调色板进行配色</font></font></td> <td width="5"> </td> <td valign="top"> <table align="center"> <tr> <td width="80" align="center"><span title="点此启动风神智能调色板配色" onClick="defineclr('pagebg')">页面背景</span></td> <td> <input name=pagebgcolor onBlur=checkclr("pagebg") maxlength="6" size="6" value="ffffff"> </td> </tr> <tr> <td width="80" align="center"><span title="点此启动风神智能调色板配色" onClick="defineclr('text')">表格文字</span></td> <td> <input name=textcolor onBlur=checkclr("text") maxlength="6" size="6" value="<?echo $userinfo->textcolor;?>"> </td> </tr> <tr> <td width="80" align="center"><span title="点此启动风神智能调色板配色" onClick="defineclr('lborder')">亮 边 框</span></td> <td> <input name=lbordercolor onBlur=checkclr("lborder") maxlength="6" size="6" value="<?echo $userinfo->lbordercolor;?>"> </td> </tr> <tr> <td width="80" align="center"><span title="点此启动风神智能调色板配色" onClick="defineclr('dborder')">暗 边 框</span></td> <td> <input name=dbordercolor onBlur=checkclr("dborder") maxlength="6" size="6" value="<?echo $userinfo->dbordercolor;?>"> </td> </tr> <tr> <td width="80" align="center"><span title="点此启动风神智能调色板配色" onClick="defineclr('bg')">表格背景</span></td> <td> <input name=bgcolor onBlur=checkclr("bg") maxlength="6" size="6" value="<?echo $userinfo->bgcolor;?>"> </td> </tr> </table> </td> </tr> <tr> <td colspan="3" align="center"> </td> </tr> <tr> <td colspan="3" align="center"> <input name=ok type=submit value=修改> <input name=reset onClick=resetit(); type=reset value=恢复默认值> </td> </tr> </table> </form> </td> </tr> </tbody> </table> </td> </tr> <tr> <td colspan="3"><?include("setup/pg_foot.php");?> </td> </tr> </tbody></table></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -