<%@ page language="C#" autoeventwireup="true" inherits="disk__admin_manager_disk_ResourceFile_disk_Down, App_Web_q2xq3iae" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>文件下载</title>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/disk/control/easy_ui/jquery.min.js?v=1.7.2")%>"></script>
    <script type="text/javascript" language="javascript" src="<%=ResolveUrl("~/disk/control/js/jquery.raty.min.js")%>"></script>
    
    <link rel="stylesheet" type="text/css" href="<%=ResolveUrl("~/disk/control/css/main.css?v=1.0")%>" />
    <style>
    .hd1 {
clear: both;
font: bold 13px verdana;
border-bottom: 1px solid #EFEFEF;
color: #444;
letter-spacing: .7px;
margin-bottom: 18px;
margin-top: 14px;
text-align: left;
}
    .hd2
    {
clear: both;
font: bold 15px verdana;
border-bottom: 1px solid #EFEFEF;
color: #444;
letter-spacing: .7px;
margin-bottom: 18px;
margin-top: 14px;
text-align: left;
}
.hd3{
clear: both;
font:  11px verdana;
border-bottom: 1px solid #FFF;
color: #444;
letter-spacing: .7px;
margin-bottom: 18px;
margin-top: 14px;
text-align: left;
}
</style>
<script language="javascript" type="text/javascript">
    var did = null;
    var avgScore = null;
    $(function(){
        did = $("#hfDid").val();
        avgScore = $("#hfAvgScore").val();
      
        $('#star').raty({
          readOnly : true,
          score : avgScore,
          size : 30
        });
    });
    function dowmFile(){
        window.location.href='disk_Down.ashx?id='+did;
    }
    
</script>
</head>


<body style="margin:20px">
    <form id="form1" runat="server">
    <div>  
        
    <span style="font-size: 16px;">科目：</span><asp:Label ID="labPath" runat="server" Text="Label" style="font-size: 14px;font-style: normal;color: #093;"></asp:Label><br />
    <span style="font-size: 16px;">名称：</span><span style="font-size: 14px;font-style: normal;color: #093;"><asp:Label ID="labName"  runat="server" Font-Size="18px" Font-Names="微软雅黑" ></asp:Label></span><br />
    
        <input  type="button"  value="点击下载资源文件" class="downok_btn" onclick='dowmFile()'
        style="background-image:url('<%=ResolveUrl("~/disk/img/d_ok.gif")%>'); cursor:pointer; margin-top: 10px;width: 162px;height: 42px;font-size: 14px;text-align: center;color: white;border: 0px;outline: none;line-height: 42px;font-weight: bold;">

        <br />
        <div  class="hd1"> 资源评分:</div>
        <div id="star"></div>

        <div  class="hd1"> 详细内容:</div>
        <div>
            <asp:Literal ID="litNote" runat="server"></asp:Literal></div>
    </div>
    <div class="hd2">
        资源评价
    </div>
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 103px; height: 31px;">
                    资源评分</td>
                    
                <td style="width: 773px; height: 31px;">
                        <div id="setScore"></div>
                        <script language="javascript" type="text/javascript">
                        $('#setScore').raty({
                          score : 0,
                          size : 30,
                          click:function(score, evt) {
                          
                            $("#hfScore").val(score);
                          }
                        });
                        </script>
              <%--          <a href="#" onclick='ResourceScore()'>评分管理</a>
                        
                        <a href="#" onclick="ResourceComment()">评价管理</a>--%>
                        
                    <%--    //<%=ResolveUrl("~/disk/_admin/manager/disk_ResourceScore.aspx")%>?id=--%>
              
                </td>
            </tr>
         
            <tr>
                <td style="width: 103px; height: 36px;">
                   <b>资源评价：</b> </td>
                <td style="width: 773px; height: 36px;">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:TextBox ID="txtPj" runat="server" Height="82px" TextMode="MultiLine" Width="635px"></asp:TextBox>
                    <asp:HiddenField ID="hfScore" runat="server" />
                    <asp:HiddenField ID="hfAvgScore" runat="server" />
                    <asp:HiddenField ID="hfDid" runat="server" />
                     
                    
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID="btnSubmit" runat="server" Text="提交评价" OnClick="btnSubmit_Click" /></td>
            </tr>
        </table>
        
        
         <div  class="hd1"> 最新资源评价：</div>
         <div style="background-color:#eee; padding:5px"> 
        <asp:Repeater ID="rptList" runat="server">
        <ItemTemplate>
        <div  class="hd3"> <%#Eval("ur_name") %> <span style="color: #BBB;">日期:<%#Eval("rc_cdate")%></span></div>
        <div><%#Eval("rc_comment") %></div>
        </ItemTemplate>
        </asp:Repeater>
        </div>
        <br />
        <webdiyer:aspnetpager id="PagerButtom" runat="server" alwaysshow="True" cssclass="paginator"
            custominfohtml="当前第%CurrentPageIndex%/%PageCount%页 共%RecordCount%条记录 每页%PageSize%条 "
            firstpagetext="首页" lastpagetext="尾页" layouttype="Div" morebuttonsclass="" nextpagetext="下一页"
            numericbuttoncount="5" onpagechanged="Pager_PageChanged" pageindexboxclass="cpb"
            prevpagetext="上一页" showpageindexbox="Always" submitbuttontext="转到" width="900"></webdiyer:aspnetpager>
    </form>
</body>
</html>
