37 lines
983 B
Smarty
37 lines
983 B
Smarty
|
|
<!--{include file='top.tpl'}-->
|
||
|
|
<style>
|
||
|
|
.nr_nr {line-height:18px;}
|
||
|
|
</style>
|
||
|
|
<div id=in>
|
||
|
|
<div style="text-align:center;height:35px;line-height:35px;font-size:18px;"><span id='num'>0</span>/<!--{$count}--></div>
|
||
|
|
<div style="float:left;width:50%;">
|
||
|
|
<textarea id="info" style="width:100%;height:500px;"></textarea>
|
||
|
|
</div>
|
||
|
|
<div style="float:left;width:50%;">
|
||
|
|
<textarea id="error" style="width:100%;height:500px;"></textarea>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<!--{include file='bottom.tpl'}-->
|
||
|
|
<script>
|
||
|
|
var n = 0;
|
||
|
|
function satr(uid){
|
||
|
|
$.getJSON("jc_star.php",{uid:uid}, function(ret){
|
||
|
|
//alert(JSON.stringify(ret));
|
||
|
|
if(ret.ret == 'ok'){
|
||
|
|
$("#info").append("\nUserID:"+ret.UserID+" OK");
|
||
|
|
}else{
|
||
|
|
$("#error").append("\nUserID:"+ret.UserID+" "+ret.ret);
|
||
|
|
}
|
||
|
|
if(ret.next){
|
||
|
|
satr(ret.next);
|
||
|
|
}
|
||
|
|
var scrollTop = $("#info")[0].scrollHeight;
|
||
|
|
$("#info").scrollTop(scrollTop);
|
||
|
|
n++;
|
||
|
|
$("#num").html(n);
|
||
|
|
});
|
||
|
|
}
|
||
|
|
satr(<!--{$uid}-->);
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|