<?php defined('IN_HS') or exit('Access Denied'); ?>
<?php include template('member','header'); ?>

<script language="javascript">
<?php
sajax_show_javascript();
?>
function savemfso(idserver,idfso,idserver1,idfso1){
 var Skills=document.getElementById("Skills"+idfso1).value;
 var Task=document.getElementById("Task"+idfso1).value;
 var Items=document.getElementById("Items"+idfso1).value;
 document.cookie="cookskills=";
document.cookie="cooktask=";
 document.cookie="cookitems=";
 document.cookie="cookskills=" + Skills;
 document.cookie="cooktask=" + Task;
 document.cookie="cookitems=" + Items;


 x_savemfso(idserver,idfso,idserver1,idfso1,Skills,Task,Items,savemfso_cb)
  //x_savecontents(iduser,idserver,Level,EXP,PK,Credit,Faction,MetierLevel,Gold,Con,Str,Int,Dex,Hit,AP,SP,OnlineTime,savecontents_cb)
 }

 function savemfso_cb(z){
  if( z == "true"){
   window.alert("恭喜您！转区成功！您现在可以登录新的分区进行游戏！");
   window.location.href="/game/index.php";

}else{
window.alert(z);
}
 }

function goback(iduser)
{
history.go(-1)

}



//-->
</script>

<DIV class=main>
<DIV class=main>

<?php include template('game','left'); ?>

<DIV class="ad_rbarB boxC">
<DIV class=columnC><SPAN class="l_tit f_l">角色转移(自助合区)确认？</SPAN></DIV>
<DIV class=mainboxD>
<div class="tipsboxC" id="message" style="display:none"></div>
<TABLE cellSpacing=0 cellPadding=0 width="80%" align=center border=0>
  <TBODY>
  <TR align=center >
    <TH colspan="3" style="font-weight:bold;font-size:14px"></span>    </TH>
    <TR>
    <TH colspan="3" style="font-weight:bold;font-size:14px;">　</TH>
    </TR>
 </TD></TR>

<TR align=center >
  <TH colspan="3" height="15px" style="font-weight:bold;font-size:14px;color:#FF00ff;text-align:left">确认转区信息:</TH>
<TR align=center >
<TH colspan="3" height="15px"  style="font-weight:bold;font-size:14px;color:#FF0000;text-align:left"></TH>
<TR align=center >
<TH colspan="3" height="15px"  style="font-weight:bold;font-size:14px;color:#FF0000;text-align:left">转出的角色是：<?=$fsoinfo1['Name']?> ,等级:<?=$fsoinfo1['Level']?>,职业：<?=$metier?>,阵营：<?=$faction?></TH>
<TR align=center >
<TH colspan="3" height="15px"  style="font-weight:bold;font-size:14px;color:#FF0000;text-align:left"></TH>
<TR align=center >
<TH colspan="3" height="15px"  style="font-weight:bold;font-size:14px;text-align:left">覆盖的角色是：<?=$fsoinfo2['Name']?>,等级:<?=$fsoinfo2['Level']?>,职业：<?=$metier2?>,阵营：<?=$faction2?></TH>
<TR align=center >
<TH colspan="3" height="15px"  style="font-weight:bold;font-size:14px;text-align:left"></TH>
    <TR align=center >
    <TH colspan="2" style="font-weight:bold;font-size:14px;"><input  name="button" type="button" class="hsbtn" onClick="savemfso('<?=$idserver?>','<?=$idfso?>','<?=$idserver1?>','<?=$idfso1?>')" value=" 确认 "> </td></TH><th><input name="button" type="button" class="hsbtn" onClick="goback('<?=$idserver?>')" value=" 放弃 "></th>
    </TR>
</TD>

</TR>
 </TD></TR>
</TBODY></TABLE>
<div class="tipsboxC"><span class="fontH" style="font-weight:bold">合区提示：(转入分区必须存在角色，转出分区的角色将会覆盖转入分区的角色！)<br >
当前开放的是<span style="font-weight:bold;color:#f00">【<?= $MOD[enablemfsoset1]?>】</span>转入<span style="font-weight:bold;color:#f00">【<?= $MOD[enablemfsoset2]?>】</span>。请正确选择。<br/>
1、转区开放时间：<em style="font-weight:bold;color:#f00"><?= $MOD[enablemfsoset3]?></em>。<br/>
2、只提供一个角色转入<?= $MOD[enablemfsoset2]?>。请将仓库里的东西换成游戏币或放在背包里。<br/>
3、转区会自动丢弃好友信息、工会信息、仓库信息等其它无用信息。<br />
4、请谨慎选择，此操作是不可逆的。转入成功后原分区该帐号的转出角色将删除。<br /> 
5、转入分区必须有角色，没有请建立，特别提醒：角色阵营在转出转入分区要相同。</span></div>
<div id="fsoinfo" style="display:none">



<table width="200" border="1">
  <tr>
    <td><input type="text" id="Skills<?=$idfso1?>" disabled value="<?=$fsoinfo1['Skills']?>" size="2" onClick="this.select()"></td>
    <td><input type="text" id="Task<?=$idfso1?>" disabled value="<?=$fsoinfo1['Task']?>" size="2" onClick="this.select()"></td>
    <td><input type="text" id="Items<?=$idfso1?>"  disabled value="<?=$fsoinfo1['Items']?>" size="2" onClick="this.select()"></td>
  </tr>
</table>





</div>


  </DIV></DIV>
  </DIV></DIV></DIV>


<?php include template('member','footer'); ?>
