<%@ Page Title="" Language="C#" MasterPageFile="admin.Master" AutoEventWireup="true" CodeBehind="question_colud.aspx.cs" Inherits="Math.math.Share_Get" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

                      
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  <legend>云试题库 - 共享试题</legend>
</fieldset>
 
  <style>
      .hard img{ height:20px; }
  </style>
     
      
    <blockquote class="layui-elem-quote">
    每位老师在我的题库里，点击“试题上传”可以分享您的试题。<br />
       在“云题库”可以查看其它老师分享的试题，并可以下载到本地机器，作为自己题库的一部分。

    </blockquote>


    <asp:Label runat="server" ID="lbl_types" Visible="false" ></asp:Label>

        

    <style>
        .paging li{ display:inline-block}
    </style>
     
             <table class=" layui-table">

             

        <asp:Repeater runat="server" ID="rpt_list">
            <ItemTemplate>




	  		
    <tr style="background-color:#f2f2f2">
    	 <td colspan="5" align="right"> 

          
    	 	 <a target="_blank" href='<%=remote %>admin/view.aspx?id=<%#((QuestionItem)Container.DataItem).id %>'  class="layui-btn layui-btn-sm">查看</a>  
     	     <a   href='###'  onclick="Pop('share_down.aspx?id=<%#((QuestionItem)Container.DataItem).id %>',500,300,'从服务器上下载试题'); "   class="layui-btn layui-btn-warm layui-btn-sm">下载此题</a>  
       	 
    	 </td> 	
     </tr>


   
    <tr >
			 <td  width="33%"   ><b>题号:</b><%#  ((QuestionItem)Container.DataItem).id %>  </td>

             <td  width="10%"  ><b>分值:</b> <%#  ((QuestionItem)Container.DataItem).score %>分  </td>

            <td  width="20%" ><b>难度:</b> <span class="hd hard" data-count="<%#  ((QuestionItem)Container.DataItem).hard %>" ></span> </td>

           <td  width="33%" colspan="2"  ><b>来源:</b> <%#  ((QuestionItem)Container.DataItem).source %>  </td>
			 
	 </tr>


                <tr>
                   
                    <td colspan="5">    
                         <%#  ((QuestionItem)Container.DataItem).question2 %> 
                    </td>

                </tr>
       

            </ItemTemplate>

        </asp:Repeater>
              </table>


              <p>
    <div class="paging">
    <div class="layui-box layui-laypage layui-laypage-default">
        <asp:Label runat="server" ID="lbl_page"></asp:Label>
        </div>
        </div>
       </p>



 
    
    <script>

        $(".editormd-tex").each(function () {
            var tex = $(this).text(); 
            var element = $(this)[0]; 
            katex.render(tex, element, {
                throwOnError: false
            });

        });

    </script>

    <script>
        $(".hard").each(function () {
            var c = $(this).data("count");
            var r = "";
            for (var i = 0; i < c; i++)
            {
                r += "<img src=img/star.svg> ";
            }
            $(this).html(r);

        });

    </script>
</asp:Content>
