<%@ Page Language="C#" MasterPageFile="Admin.Master" AutoEventWireup="true" CodeBehind="Pdfmanage.aspx.cs" Inherits="Mvcb2b.admin.Pdfmanage" Title="PDF任务管理" %>
<%@ MasterType VirtualPath="Admin.Master" %>
<%@ Register src="controls/Date_Qi.ascx" tagname="Date_Qi" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript" src="../Comja/val_num.js"></script>    
<script type="text/javascript">
    function pdfprocess(obj, id) {
        $("#wrapshow").show();
        var fileurl = "jquery/PdfProcess.aspx"
        //start
        $.ajax({
            type: "POST",
            url: fileurl, //
            dataType: "text",
            data: { "pdfid": "" + id + "" }, //p传输的参数
            success: function (text) {
                if (text == "ok") {
                    $("#wrapshow").hide();
                    $("#extract_" + id + "").html("<span style=\"color:#108400;\">已处理</span>");
                    if ($("#txtview_" + id).hasClass("seeno"))
                        $("#txtview_" + id).removeClass("seeno");
                }
            }, error: function (text) { alert("error-$.ajax" + text); }
        });
        //end       
    }
	$(document).ready(function(){
		$("#closewin").click(function(){
		    $("#wrapshow").hide();
		});		
	});
</script>    
<div class="path">当前位置： 系统管理 >>  PDF数据导出</div>
<h3 class="nob">PDF任务管理</h3>
<div class="menusearch">
    <div style="float:left;padding-left:20px;"><input type="button" value="重置搜索" onclick="javascript:window.location.href='Pdfmanage.aspx';" class="submit"  /> &nbsp; 关键字：</div>
    <div style="float:left;padding-left:0px;"><input type="text" class="key" name="key" id="key" value="<%=keyword %>" /> </div>
    <div style="float:left;padding-left:15px;">按刊期：</div>
    <div style="float:left;padding-left:0px;">
    <uc1:Date_Qi ID="Date_Qi1" runat="server" />
    &nbsp;<asp:Button ID="Search1" runat="server" Text="搜索"  CssClass="submit"   onclick="Search1_Click" /> </div>
</div>
<table width="96%" border="0" align="center" cellpadding="2" style="background-color:#f5f5f5;" cellspacing="1">
          <tr style="background-color:#ffffff;font-weight:bold;">
            <td>编号</td>
            <td>PDF名称</td>
            <td>所在刊期</td>
            <td>文本</td>  
            <td>图片</td> 
            <td>状态</td>          
            <td>添加日期</td>
            <td>编辑</td>
            <td>删除</td>
          </tr>
        <asp:Repeater ID="Repeater1" runat="server">
          <ItemTemplate>
          <tr style="background-color:#ffffff">
            <td><%#Eval("id")%></td>       
            <td><a href="Pdfedit.aspx?id=<%#Eval("id")%>"><%#Eval("pname")%></a></td>       
            <td><%#Qiname(Fun.Toint(Eval("qiid").ToString()))%></td> 
            <td>&nbsp;
            <span id="txtview_<%#Eval("id")%>" <%#Isextsee(Eval("isextract"))%>><a href="PdfText.aspx?id=<%#Eval("id")%>" target="_blank">查看</a></span>

            </td>   
            <td>&nbsp;

            </td>         
            <td id="extract_<%#Eval("id")%>"><%#Isext(Eval("isextract"), Eval("id"))%></td> <%--<span style="color:red;">未处理</span> <a href="#" onclick="pdfprocess(this,1);">马上处理</span>--%>
            <td><%#Eval("addtime")%></td>
            <td><a href="Pdfedit.aspx?id=<%#Eval("id")%>">修改</a></td>
            <td><a href="Pdfedit.aspx?id=<%#Eval("id")%>&action=del"><span onclick="return confirm('确实要删除吗?');">删除</span></a></td>
          </tr></ItemTemplate>
         </asp:Repeater>
         <asp:Literal runat="server"  ID="noms"  />
        </table> 
<div class="pagemsg" >
<table  border="0" align="center" cellpadding="0" cellspacing="0" width="90%">
          <tr><td><asp:Literal id="Message" runat="server" ></asp:Literal></td>
          </tr><tr>
          <td style="text-align:right;">&nbsp; 直接进入 <asp:textbox  id="gopage" Width="30px"   runat="server"  CssClass="gopage" > </asp:textbox> 页   <asp:button id ="Submithao"  Text="Go" runat="server" OnClick="Submithao_Click" CssClass="gopage" ></asp:button> </td>
          </tr></table>
</div>   

<p style="text-align:left;padding-left:80px;font-size:12px;line-height:20px;">? 帮助：<br />
1 .目前仅支持单页PDF预处理.<br />
2 .不支持加密PDF预处理.<br />
3 .此处上传PDF仅供内部导出数据预处理专用,对外公开PDF请另外加密处理.<br />
4 .网站目录下面PdfProcess目录需要设置网站用户写入权限.<br />
5 .<span style="color:Blue">PDF导入工具目前只能作为附助工具使用,不能代替电子报内容自动发布</span><br />
</p>

<div id="wrapshow">
    <!--<iframe id="wrapiframe" src="javascript:false;" scrolling="no" frameborder="0" ></iframe>-->
    <div id="wrapbg"><span></span></div>  
    <div id="wrap">
     <div  id="popup">
         <img src="images/loading.gif" alt="" width="16" height="16" align="middle" /> 正在处理,请稍候……
         <!--<div id="closewin"><span></span></div>-->
     </div>
    </div>   
</div>      
</asp:Content>
