<script type="text/javascript">
function _confirm(msg,url) {
if(confirm(msg)) window.location = url;
}
function _chose(uid,hash){
ajaxget('cp.php?ac=gameinfo&op=chose&uid='+uid+'&hash='+hash, 'c_info');
}
function _update(uid,hash){
ajaxget('cp.php?ac=gameinfo&op=chose&update=1&uid='+uid+'&hash='+hash, 'c_info');
}
function _error(img) {
_error = img.replace('www.','cn.');
return _error;
}
</script>
<style>
/** CSS only for GameInfo by Sainte **/
#bound { float: left; width:470px }
#c_info { float: left; border-right: 1px dashed #CCC; margin-right:10px; width: 150px; }
#c_avatar { height: 65px; }
#c_img { float: left; width: 64px; border:0; }
#c_button { float: right; padding: 5px 10px 0 0; }
#c_b_t { margin-bottom: 5px }
#c_list { float: right; width: 300px; }
#binding { float: right;width:240px}
.s65 { width:65px }
</style>
<div style="margin-bottom:20px">
<table cellspacing="0" cellpadding="0" class="formtable">
<caption id="b_main" style="height:100%">
<div class="box" id="bound">
<!--{if !$search_list && $userdefine< 1}-->
<h2>已绑定游戏角色 (<a href="space.php?uid={$_SGLOBAL['supe_uid']}&do=thread&id=5898" target=_blank>报告错误</a>)</h2>
<!--{if $default}-->
<div id="c_info">
<div id="c_avatar">
<img id="c_img" src="$default['portraits']" onerror="javascript:this.src=this.src.replace('www.','cn.')"/>
<div id="c_button">
<input type="button" onclick="_update('{$default['uid']}','{$default['name_md5']}')" class="submit s65" value="更新资料" name="dogameinfo" id="c_b_t" /><br />
<input type="button" onclick="javascript:location.href='cp.php?ac=gameinfo&op=cancel_bind&uid={$default['uid']}&md5={$default['name_md5']}'" class="submit s65" value="解除绑定" name="dogameinfo" />
</div>
</div>
<p><strong>$default['name']</strong></p>
<p>职业:{$default['class']}[{$default['level']}]<br/>
<!--{if $default['talent_name']}-->{$default['talent_name']}:{$default['talentspec']}<br/><!--{/if}-->
<!--{if $default['second_talentname']}-->{$default['second_talentname']}:{$default['second_talentspec']}<br/><!--{/if}-->
属性:$default['race']{$default['gender']}性</p>
<p>服务:{$default['server']}<br/>
<!--{if $default[guild]}-->公会:{$default['guild']}<!--{/if}-->
</p>
</div>
<!--{/if}-->
<div id="c_list">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody align="center">
<tr bgcolor="#f4f4f4">
<td width="80">
<h4>角色名</h4>
</td>
<td width="80">
<h4>公会</h4></td>
<td width="130">
<h4>服务器</h4></td>
</tr>
<!--{loop $wow_list $value}-->
<tr bgcolor="#f4f4f4" onmouseout="javascript:this.bgColor='#f4f4f4'" onmouseover="javascript:this.bgColor='#CCCCCC'">
<td onclick="_chose('{$value[uid]}','{$value[name_md5]}')">
$value[name]
</td>
<td onclick="_chose('{$value[uid]}','{$value[name_md5]}')"> $value[guild] </td>
<td onclick="_chose('{$value[uid]}','{$value[name_md5]}')"> $value[server] </td>
</tr>
<!--{/loop}-->
</tbody>
</table>
</div>
<!--{elseif $search_list}-->
<h2>和搜索相关的角色 (Ctrl+F能够帮助你喔)</h2>
<div class="topic_list">
<table cellspacing="0" cellpadding="0">
<thead>
<tr>
<td class="guildname">角色名</td>
<td class="charactercount">职业</td>
<td class="usercount">等级</td>
<td class="usercount">公会</td>
<td class="usercount">服务器</td>
<td class="usercount">操作</td>
</tr>
</thead>
<!--{loop $search_list $key $value}-->
<tr<!--{if $key%2==1}--> class="alt"<!--{/if}-->>
<td>$value['name']</td>
<td>$value['class']</td>
<td>$value['level']</td>
<td>$value[guild]</td>
<td>$value['realm']</td>
<td><a href="cp.php?ac=gameinfo&implode={$value['sig']}&hash={$value['hash']}" onclick="javascript:_confirm('请确定这个是您自己的角色,您的错误绑定,会给他人带来不便,并受到惩处。','cp.php?ac=gameinfo&implode={$value['sig']}');return false;">绑定</a> </td>
</tr>
<!--{/loop}-->
</table>
</div>
<!--{elseif $userdefine == 1}-->
<h2>由于九城和暴雪的交接,国服数据暂时只能手动录入 <a href="space.php?uid={$_SGLOBAL['supe_uid']}&do=thread&id=6586" target=_blank>讨论和说明</a></h2>
<form method="post" action="cp.php?ac=gameinfo" class="c_form">
<table cellspacing="0" cellpadding="0" class="formtable"><tr>
<th style="width:10em;">角色名</th>
<td>
<input type="text" id="character" name="input[name]" value="<!--{eval echo htmlspecialchars($character);}-->" class="t_input" />
</td>
</tr>
<th style="width:10em;">服务器</th>
<td>
<script type="text/javascript" src="source/script_autocomplete.js"></script>
<input type="text" id="server" name="server" value="所在服务器" onfocus="if(this.value=='所在服务器')this.value='';" class="t_input" tabindex="1" onclick="auc.handleEvent(this.value ,event);" onkeyup="auc.handleEvent(this.value ,event);" onkeydown="closeOpt(server,event);inputKeyDown(event);" autocomplete="off" />
<div id="server_menu" class="ajax_selector" onclick="$('server_menu').style.display='none';" style="display:none">
<div class="ajax_selector_option" style="width: 120px; height: 100px;">
<a href="javascript:;" onclick="$('server_menu').style.display='none';" class="float_del" style="margin-right: 5px;"></a>
<ul id="serverlist" class="blocklink">
</ul>
</div>
</div>
<script type="text/javascript">
var close = true;
var auc = new sAutoComplete("auc", "server_menu", "serverlist", "server",0);
auc.addItem('$wow_servers');
function closeOpt(key,evt) {
if(evt.keyCode==9) {
$('server_menu').style.display='none';
}
}
function inputKeyDown(event) {
if(event.keyCode == 13){
doane(event);
}
}
</script>
</td>
</tr>
<th style="width:10em;">公会名</th>
<td>
<input type="text" id="guild" name="input[guild]" value="" class="t_input" />
</td>
</tr>
<th style="width:10em;">等级</th>
<td>
<input type="text" id="level" name="input[level]" value="" class="t_input" />
</td>
</tr>
<th style="width:10em;">种族</th>
<td>
<select id="race" name="input[raceid]">
<!--{loop $S_race $k $v}-->
<option value="$k">$v</option>
<!--{/loop}-->
</select>
</td>
</tr>
<th style="width:10em;">职业</th>
<td>
<select id="class" name="input[classid]">
<!--{loop $S_class $k $v}-->
<option value="$k">$v</option>
<!--{/loop}-->
</select>
</td>
</tr>
<th style="width:10em;">性别</th>
<td>
<select id="race" name="input[genderid]">
<!--{loop $S_gender $k $v}-->
<option value="$k">$v</option>
<!--{/loop}-->
</select>
</td>
</tr>
<tr>
<th> </th>
<td><input type="submit" name="user_define" onclick="check();return false;" value="提交手动录入数据" class="submit" /></td>
</tr>
</table>
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</div>
</form>
<!--{/if}-->
</div>
<form method="post" action="cp.php?ac=gameinfo" class="c_form">
<div class="box" id="binding">
<h2>绑定新角色...</h2>
<table>
<tbody>
<tr>
<td><select id="area" name="area">
<option value="cn" $selected['cn']>国</option>
<option value="tw" $selected['tw']>台</option>
<option value="www" $selected['www']>美</option>
<option value="eu" $selected['eu']>欧</option>
<option value="kr" $selected['kr']>韩</option>
</select>
<input type="text" id="character" style="width:95px;" name="character" value="$character" onfocus="if(this.value=='{$character}')this.value='';" class="t_input" /></td>
<td><input type="submit" name="search" value="查找绑定" class="submit s65" /></td>
</tr>
<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
</tbody>
</table>
</div>
</caption>
</table>
</div>
</form>
<!--解决google浏览器不兼容问题-->
<script type="text/javascript">
document.getElementById("b_main").style.height=document.getElementById("bound").scrollHeight+"px";
</script> |