<!--{eval $_TPL['titles'] = array('紫贝农场 - 邀请好友');}-->
<!--{template header}-->
<style type="text/css">
#farmhead{width:100%; height:46px; overflow:hidden; margin:0px; padding:0px;}
#farmhead table,td,tr,th{border:0px; margin:0px; padding:0px; font-size:12px;}
.links{height:46px; width:766px; position:relative;overflow:hidden;}
links a{float:left; width:104px; height:46px;}
.links a.link1{float:left; width:104px; height:46px;background:#FFFFFF url('./newfarm/buttonbg.jpg') 0px 0px; }
.links a.link2{float:left; width:104px; height:46px;background:#FFFFFF url('./newfarm/buttonbg.jpg') -104px 0;}
.links a.link3{float:left; width:104px; height:46px;background:#FFFFFF url('./newfarm/buttonbg.jpg') -208px 0;}
.links a.link4{float:left; width:104px; height:46px;background:#FFFFFF url('./newfarm/buttonbg.jpg') -312px 0;}
.links a.link5{float:left; width:100px; height:46px;background:#FFFFFF url('./newfarm/buttonbg.jpg') -416px 0;}
.links a.link6{float:left; width:100px; height:46px;background:#FFFFFF url('./newfarm/buttonbg.jpg') -515px 0;}
.links a.link1:hover ,#head .links a.select1{float:left; width:104px; height:46px;background:#FFFFFF url('./newfarm/buttonbg.jpg') 0px -46px;}
.links a.link2:hover ,#head .links a.select2{float:left; width:104px; height:46px;background:#FFFFFF url('./newfarm/buttonbg.jpg') -104px -46px;}
.links a.link3:hover ,#head .links a.select3{float:left; width:104px; height:46px;background:#FFFFFF url('./newfarm/buttonbg.jpg') -208px -46px;}
.links a.link4:hover ,#head .links a.select4{float:left; width:104px; height:46px;background:#FFFFFF url('./newfarm/buttonbg.jpg') -312px -46px;}
.links a.link5:hover ,#head .links a.select5{float:left; width:100px; height:46px;background:#FFFFFF url('./newfarm/buttonbg.jpg') -416px -46px;}
.links a.link6:hover ,#head .links a.select6{float:left; width:100px; height:46px;background:#FFFFFF url('./newfarm/buttonbg.jpg') -515px -46px;}
ul,#zoomenu {
padding:0;
margin:0;
}
ul li,#zoomenu li {
float:left;
list-style:none;
}
</style>
<div id="farmhead">
<table border="1" cellpadding="0" cellspacing="0" >
<tr>
<td><div class="links">
<a href="newfarm.php" class="link1"</a>
<a href="mymc.htm" class="link2"> </a>
<a href="newfarm.php" class="link3" target="myfarm"></a>
<a href="newfarm.php?ac=invite" class="link4"> </a>
<a href="newfarm/fb.htm" class="link5" target="myfarm"> </a>
<a href="myfarmqp.htm" class="link6" target="_blank" οnclick='location.assign("space.php?do=home")'>
</div>
</td>
<td>
</td>
</tr>
</table>
</div>
<script language="javascript" type="text/javascript">
function cball(allcb)
{
var fp=document.getElementsByName("fuid[]");
var len=fp.length
for (var i=0;i<len ;i++ )
{
fp[i].checked=allcb.checked;
document.getElementById('num').value=i+1;
document.getElementById('unnum').value=len-i-1;
}
if(!allcb.checked){
document.getElementById('num').value='0';
}
}
function dan(obj)
{
var len = document.getElementsByName(obj.name).length;
var count=0;
for(var i = 0 ; i < len ; i ++ )
{
if(document.getElementsByName(obj.name)[i].checked==obj.checked)
{
count++;
document.getElementById('num').value=count;
document.getElementById('unnum').value=len-count;
}
}
if(obj.checked==true)
{
if(count == len)
{
document.getElementById("allfriend").checked=true;
document.getElementById('num').value=count;
document.getElementById('unnum').value=len-count;
}
}
else
{
document.getElementById("allfriend").checked=false;
document.getElementById('num').value=len-count;
document.getElementById('unnum').value=count;
}
}
</script>
<script type="text/javascript" language="javascript">
function sAlert(str)
{
var msgw,msgh,bordercolor;
msgw=500; //提示窗口的宽度
msgh=150; //提示窗口的高度
titleheight=25 //提示窗口标题高度
bordercolor="#369"; //提示窗口的边框颜色
titlecolor="#9cf"; //提示窗口的标题颜色
var sWidth,sHeight;
sWidth=document.body.offsetWidth;
sHeight=screen.height;
var bgObj=document.createElement("div");
bgObj.setAttribute('id','bgDiv');
bgObj.style.position="absolute";
bgObj.style.top="0";
bgObj.style.filter = "alpha(opacity=5)";
bgObj.style.left="0";
bgObj.style.width=sWidth + "px";
bgObj.style.height=sHeight + "px";
bgObj.style.zIndex = "10000";
document.body.appendChild(bgObj);
var msgObj=document.createElement("div")
msgObj.setAttribute("id","msgDiv");
msgObj.setAttribute("align","center");
msgObj.style.background="white";
msgObj.style.border="1px solid " + bordercolor;
msgObj.style.position = "absolute";
msgObj.style.left = "50%";
msgObj.style.top = "50%";
msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
msgObj.style.marginLeft = "-225px" ;
msgObj.style.marginTop = -75+document.documentElement.scrollTop+"px";
msgObj.style.width = msgw + "px";
msgObj.style.height =msgh + "px";
msgObj.style.textAlign = "center";
msgObj.style.lineHeight ="25px";
msgObj.style.zIndex = "10001";
var title=document.createElement("h4");
title.setAttribute("id","msgTitle");
title.setAttribute("align","right");
title.style.margin="0";
title.style.padding="3px";
title.style.background=bordercolor;
title.style.filter="progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);";
title.style.opacity="0.75";
title.style.border="1px solid " + bordercolor;
title.style.height="18px";
title.style.font="12px Verdana, Geneva, Arial, Helvetica, sans-serif";
title.style.color="white";
title.style.cursor="pointer";
title.innerHTML="关闭";
title.οnclick=function()
{
document.body.removeChild(bgObj);
document.getElementById("msgDiv").removeChild(title);
document.body.removeChild(msgObj);
}
document.body.appendChild(msgObj);
document.getElementById("msgDiv").appendChild(title);
var txt=document.createElement("p");
txt.style.margin="1em 0"
txt.setAttribute("id","msgTxt");
txt.innerHTML=str;
document.getElementById("msgDiv").appendChild(txt);
}
function CopyUrl(target){
target.value=myrss.value;
target.select();
js=myrss.createTextRange();
js.execCommand("Copy");
document.getElementById("msgTxt").innerHTML="<br />复制成功! 按 ctrl+v 即可粘贴使用!";
}
</script>
<style type="text/css">
<!--
.button { background-color:#3b5998; padding:3px 15px 6px 15px; text-align:center; font-size:12px; color:white; border:1px outset; }
.num { width:20px; border:0; text-align:center; font-size:12px; padding-bottom:3px; }
.fontblue { color:#FF0000; }
.fontgrey { color:#cccccc; }
.current {
BACKGROUND: #f39800;
width:30px;
}
#pag_nav_links {
padding:0;
margin:0;
display:block;
}
#pag_nav_links li {
BORDER: #bbb 1px solid;
MARGIN: 10px 4px 0px;
CURSOR: default;
LINE-HEIGHT: 19px;
HEIGHT: 19px;
TEXT-ALIGN: center;
padding:0 5px 0 5px;
float:left;
list-style:none;
}
.copyinput {
width:180px;
}
-->
</style>
<div class="div_layout">
<div style="clear:both;width:800px;padding:20px 50px; line-height:28px;color:black;">
1. 当你发出邀请后你的朋友加入了紫贝农场,算做一个成功邀请。<br />
2. 越早发出邀请,越有机会邀请到你的朋友。<br />
您的用户ID是<!--{$_SGLOBAL[supe_uid]}-->,您已经成功邀请了 <font style='color:red;'><!--{$invitednum}--></font> 个好友加入《紫贝农场》<br /><br /><br />
<span style='font-size:14px;font-weight:bold;'>邀请站外好友加入紫贝农场</span>
<div style="clear:both;text-align:center;padding:10px;width:600px;"><input type="button" value="邀请站外好友" class="button" onClick="window.open('http://www.yousite.com/home/cp.php?ac=invite&op=link')" /> </div>
</div>
<div style="clear:both;width:800px;padding:20px 50px;">
<span style='font-size:14px;font-weight:bold;padding-bottom:20px;color:black;'>邀请站内好友加入开心农场</span>
<form id="form1" name="form1" action="newfarm.php?ac=invite&act=invite" method="post">
<div style="margin-bottom;10px; color:#3b5998; font-size:12px;">
<input name="allfriend" type="checkbox" value="0" id="allfriend" onClick="cball(this);" alt="全选" />全选 已选(<input type="text" id="num" class="num fontblue" value="0" />) 未选(<input type="text" id="unnum" class="num fontgrey" value="0" />)
<div>
<div style="clear:both;border:#CCCCCC 1px solid;width:600px;padding-top:10px;">
<input id="inviteuid" name="inviteuid" type="hidden" value="<!--{$_SGLOBAL[supe_uid]}-->" />
<ul id=invitebox>
<!--{loop $invitearr $key $value}-->
<li style="width:120px;margin-top:5px;margin-bottom:20px;text-align:center;">
<input name='fuid[]' type='checkbox' value='<!--{$value[uid]}-->' οnclick='dan(this)' />
<span class="avatar48"><a href="space.php?uid=$value[uid]" title="{$_SN[$value[uid]]}" style="cursor:hand" target="_blank"><!--{avatar($value[uid],small)}--></a></span>
<div style="line-height:28px;padding-left:20px;"><!--{$value[name]}--></div>
</li>
<!--{/loop}-->
</ul>
<div style="font: 0px/0px sans-serif;clear: both;display: block"></div>
</div>
<div class="page">$multi</div>
<div style="clear:both;text-align:center;padding:10px;width:600px;"><input type="submit" value="向好友发送一个开心农场邀请" class="button" /></div>
</form>
</div>
</div>
<!--{template footer}--> www.beierfuliao.com