<!--#include file=conn.asp-->
<!--#include file=config.asp-->
<!--#include file=const.asp-->
<!--#include file=char.asp-->
<% '=========================================================
' File: allface.asp
' Version:3.0
' Date: 2005-8-19
' Script Written by xmrxw
'=========================================================
' Copyright (C) 2004,2005 Xmrxw.Com All rights reserved.
' Web: http://www.xmrxw.com,http://www.xmzxw.com
' Email: info@mssky.com,super@mssky.com
' QQ：10689579　Msn：zdlmicr@hotmail.com
'=========================================================
	dim n,m,h,s
	dim y,z,show,OpenFaces
	stats="会员头像列表"
	h=6 '每行显示个数
	s=30 '每页显示个数
	OpenFaces=split(OpenFace,"|")
	M=OpenFaces(2) '头象个数
	call nav()
	call head_var("查看所有头像","allface.asp")
	call main()
	call footer()
	call activeonline()
%>
<%sub main()%>
    <table cellpadding=6 cellspacing=1 class=tableborder1 align=center width="750">
    <tr>
    <th id=tabletitlelink>
<% if m>s then %>
<p align="center"><% for Y=1 to (m+s-1)\s %>
 [<a href=allface.asp?show=<%=Y%>> 头像列表<%=Y%> </a>]  
<% next 
end if%>
    </th>
    </tr>
<tr>
    <td class=tablebody1>
<table width="100%">
    <tr>
<% 	dim p
	i=0
	p= trim(request("show"))
	if p="" or not isInteger(p) then
	p=1
	end if
	z=s*p

	if z/m>1 then
		z=m
	else
		z=s*p
	end if

	for n=s*p+1-s to z
	i=i+1
%>
      <td align="center" height=50><IMG SRC=images/userface/image<%=(n)%>.gif onclick="insertface('images/userface/image<%=(n)%>.gif',this.width,this.height)" style="CURSOR: hand"><br>image<%=(n)%>.gif</td>
<%
	if i=h then
	response.write "</tr><tr>"
	i=0
	end if 
	next
%>
  </table>
    </td>
    </tr></table>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="31" align="center"> 
      <BUTTON onclick="window.close();">关闭</BUTTON></td>
  </tr>
</table>
<script language="javascript">
function insertface(userface,width,height){
	self.opener.theForm.myface.value=userface;
	self.opener.theForm.Faceheight.value=width;
	self.opener.theForm.Faceheight.value=height;
	self.opener.document.images['face'].src=userface;
	self.opener.document.images['face'].width=width;
	self.opener.document.images['face'].height=height;

}
</script>
<%end sub%>