<%@page contentType="text/html; charset=UTF-8"%>
<%@include file="/inc/init.jsp" %>
<%@include file="/inc/checklogin.jsp" %>
<%@include file="inc/header.jsp" %>
<%
//分页参数
int pagex = pu.getInt("pagex", 1);
if(pagex<1){
	pagex=1;
}
int length = 20;
int start = (pagex - 1) * length;
int count = 0;
String querystr=request.getQueryString();
if(querystr==null){
	querystr="";
}
//分页参数
Order_from_db ofdb=new Order_from_db();
DOC[] docs=null;
docs=ofdb.getList(start,length); //分页参数应用
count=ofdb.getRealCount();
%>
<div id="c">
<%@include file="inc/left.jsp" %>
<div id="right">
<%@include file="inc/position.jsp" %>

<div class="right">
<div id="right_box">
<div id="tagscontent" class="right_box">

    <table border="0" cellspacing="0" cellpadding="0" class="list" name="table1" id="table1" width="100%">

<thead>

<tr class="th">

<th width="8%" align="center"><!--id-->	ID</th>

<th width="30%" align="center"><!--oid-->来源地址</th>

<th width="8%" align="center"><!--pname-->来源类型</th>

<th width="14%" align="center"><!--status-->来源IP</th>
<th width="18%" align="center"><!--adddate-->记录时间</th>

<th width="11%" align="center">操作</th>

</tr>



</thead>

<tbody>
<%
for(int i=0;docs!=null&&i<docs.length;i++){
%>
<tr class="s_out">


<td align="center"><%=docs[i].get("fromid")%></td>

<td align="center" onMouseOver="tooltip.show('<%=docs[i].get("url")%>');" onMouseOut="tooltip.hide();"><a href="<%=docs[i].get("url")%>" target="_parent"><%=Util.sub_String(docs[i].get("url"),32,"..")%></a></td>

<td align="center" ><%=Select.getText("fromtype",docs[i].get("type"))%></td>

<td align="center"  onMouseOver="tooltip.show('点击可查询客户IP地址！');" onMouseOut="tooltip.hide();">
	<a href="http://ip138.com/ips138.asp?ip=<%=docs[i].get("ip")%>&amp;action=2" target="_blank"><%=docs[i].get("ip")%></a></td>
<td align="center"><%=docs[i].get("create_time")%></td>
<td align="center">
<a href="<%=docs[i].get("url")%>" target="_blank">查看来源</a>
<%if(ConfigUtil.usedel){%>
<a href="fun/F_from.jsp?fromid=<%=docs[i].get("fromid")%>&action=del" onclick="javascript: return confirm('确实要删除吗?删除后不可恢复！');"><font class="fontred">删除</font></a>
<%} %>
</td>
</tr>
<%
}
docs=null;  //释放对象 
%>
</tbody>
</table>

<div class="page" align="center">
<%=PagingUtil.splitPages(pagex,"fromList.jsp?"+querystr,count,length) %> 
</div>
<div class="blank10"></div>
</div>
<div class="blank10"></div>

<div class="clear"></div>
</div>
</div>

<div class="right_bottom">
</div>
</div>

<div id="footer">
</div>
</div>
<%@include file="inc/msg.jsp" %>
<%@include file="inc/footer.jsp" %>
