<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="True" Inherits="Admin_checkpackage_KS_CheckPackage" Codebehind="KS.CheckPackage.aspx.cs" %>
<%@ Import Namespace="System.Text" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
    <script>
        function SetDate() {
            var today = new Date();
            if ($("#showdate").is(":hidden")) {
                $("#showdate").show();
                $('#<%=TxtBeginDate.ClientID%>').val(today.getFullYear() + '-' + (today.getMonth() + 1) + '-01');
                $('#<%=TxtEndDate.ClientID%>').val(today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate());
            }
            else {
                $("#showdate").hide();
                $('#<%=TxtBeginDate.ClientID%>').val('');
                        $('#<%=TxtEndDate.ClientID%>').val('');
            }
        }
        function keyWordFocus() {
            if (jQuery("#<%=this.KeyWord.ClientID %>").val() == '请输入关键字！') {
                jQuery("#<%=this.KeyWord.ClientID %>").val('');
            }
        }
        function keyWordBlur() {
            if (jQuery("#<%=this.KeyWord.ClientID %>").val() == '') {
                jQuery("#<%=this.KeyWord.ClientID %>").val('请输入关键字！');
            }
        }
        $(function () {
            //全选反选
            $("#selectAll").click(function () {
                if ($(this).is(":checked")) {
                    $(".courseList").find("input[type=checkbox]").attr("checked", true);//从父标签开始找
                }
                else {
                    $(".courseList").find("input[type=checkbox]").attr("checked", false);
                };
            });
            $("#selectinfo").click(function () {
                if ($(this).is(":checked")) {
                    $(".infolist").find("input[type=checkbox]").attr("checked", true);//从父标签开始找
                }
                else {
                    $(".infolist").find("input[type=checkbox]").attr("checked", false);
                };
            });
        });
       
        //课程信息时间的开关
    </script>

    <asp:Panel ID="Checkpacklist" runat="server">
          <!--  页面头部样式 -->
        <div class="listedit">
            <div class="floatLeft allCheck"><label><input name="" type="checkbox" value="" id="selectAll" /> 全选</label></div>
            <ul class="fl">
                <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" OnClientClick="return(confirm('删除考核学习包，同时删除该学习包下的信息，此操作不可逆，确定删除分类吗?'));" CssClass="button">批量删除</asp:LinkButton>
            </ul>
        </div>

        <div class="content-area mt20">
            <div class="myTitle">
                考核学习包
            </div>
            <div class="quickSearch clearfix">
                <div class="SearchBox fl">
                    <asp:DropDownList ID="Condition" runat="server" Style="margin-right:8px;">
                        <asp:ListItem Value="1">考核项目名称</asp:ListItem>
                        <asp:ListItem Value="2">考核包Id</asp:ListItem>
                        <asp:ListItem Value="3">用户昵称</asp:ListItem>
                    </asp:DropDownList>
                    <asp:TextBox onfocus="keyWordFocus();" onblur="keyWordBlur();" Style="color: #ccc" Text="请输入关键字！" CssClass="textbox" ID="KeyWord" runat="server" Width="180px"></asp:TextBox>
                    <span onclick="SetDate()" class="link-color" style="cursor: pointer">日期范围？</span>
                    <span id="showdate" <%if (this.TxtBeginDate.Text == "")
                                          { %> style="display: none" <%} %>>
                        <asp:TextBox ID="TxtBeginDate" placeholder="格式：YYYY-MM-DD" Width="150px" runat="server" onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});" CssClass="textbox Wdate"></asp:TextBox>至
                       <asp:TextBox ID="TxtEndDate" placeholder="格式：YYYY-MM-DD" Width="150px" runat="server" onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});" CssClass="textbox Wdate"></asp:TextBox>
                    </span>
                    <asp:Button ID="search" runat="server" CssClass="button" Text="开始搜索" OnClick="search_Click" />
                </div>
                <div class="property">
                    <div class="name button ml15">筛选</div>
                    <div class="propertyBox">
                    	<ul class="clearfix">
                            <span class="screen fl">审核状态：</span>
                            <li <%=KSCMS.S("TypeInfo")==""?" class='active'":string.Empty %>><a href="KS.CheckPackage.aspx"><span>所有</span></a></li>
                            <li <%=KSCMS.S("TypeInfo")=="1"?" class='active'":string.Empty %>><a href="KS.CheckPackage.aspx?TypeInfo=1"><span>已审核</span></a></li>
                            <li <%=KSCMS.S("TypeInfo")=="0"?" class='active'":string.Empty %>><a href="KS.CheckPackage.aspx?TypeInfo=0"><span>未审核</span></a></li>
                        </ul>
                    </div>
                </div>
                <li class="fr"><asp:LinkButton ID="addCoupon" runat="server" OnClick="addCoupon_Click" class="button button_on">添加考核项目</asp:LinkButton></li>
            </div>
            <div class="courseList">
                <ul>
                <asp:Repeater ID="packlistrepeater" runat="server"  OnItemCommand="packlistrepeater_ItemCommand">
                    <HeaderTemplate>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li>
                            <div class="input"><input type="checkbox" name="ids" id="ids" value="<%#Eval("packid") %>" /></div>
                            <div class="courseImg">
                                <img src="<%#Eval("Photo") %>" onerror="this.src='../../admin/images/nopic_200_200.png'" width="150px"/>
                            </div>
                            <div class="courseInfo clearfix">
                            	<div class="courseTitle clearfix">
                                	<div class="operating">
                                    	<%# (Utils.StrToInt(Eval("Status"))==1?"已审核":"未审核") %>
                                        <asp:LinkButton ID="LinkButton2" runat="server" title="编辑" CommandName="modify" CssClass="button" CommandArgument=<%# Eval("packid") %> >编辑</asp:LinkButton>
                                        <div class="operatBoxBtn">
                                        	<a class="button"><i class="iMore"></i></a>
                                            <div class="operatBoxMore clearfix">
                                            	<a href="KS.CheckPackage.aspx?action=del&ids=<%# Eval("packid") %>" onclick="return(confirm('删除考核学习包，同时删除该学习包下的信息，此操作不可逆，确定删除分类吗?'));">删除</a>  
                                                <a href="KS.CheckPackage.aspx?action=manage&type=0&packid=<%# Eval("packid") %>" class="search">详情</a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="title clearfix"><%# Eval("packname") %></div>
                                </div>
                                <div class="fr price">
                                    <%=MyCache.GetCurrencySymbol %><%#Kesion.APPCode.Public.ReturnShopPrice(Eval("Price")) %><%=MyCache.GetCurrencyUnit %>
                                </div>
                                <div class="fl">
                                	<div class="info">
                                        <span>
                                            发布者：<%# Eval("username") %>
                                        </span>
                                        <span>时间：<%# Eval("addtime") %></span>
                                        <span>购买数量：<%# GetSellCount(Utils.StrToInt(Eval("packid") )) %></span>
                                        <span>考核总分：<%#Eval("score") %></span>
                                        <span>通过分数：<%#Eval("passscore") %></span>
                                    </div>
                                    <div class="clear"></div>
                                    <div class="buttonBox clearfix">
                                        <div class="mt20">
                                        <span class="mr15"><a href="KS.CheckPackageUserItem.aspx?packid=<%#Eval("packid") %>" class="greenFont"><%# GetStudentNum(Utils.StrToInt(Eval("packid"))) %>&nbsp;名学员 >></a></span>
                                    	<%# GetCheckInfo(Utils.StrToInt(Eval("packid") )) %>
                                    	</div>
                                    </div>
                                </div>
                            </div>

                        </li>
                    </ItemTemplate>
                </asp:Repeater>
                    <li style="display:<%=bool.Parse((packlistrepeater.Items.Count==0).ToString())?"":"none"%>">
                        <div class="empty">没有查询到记录</div>
                    </li>
                </ul>
            </div>
            <KS:Page ID="Page1" runat="server" />
        </div>
        <script>
			$(function(){
				$(".courseList li:first").css({borderTop:"0px"});
			});
		</script>

    </asp:Panel>
    
    <asp:Panel ID="Addpanel" runat="server" Visible="false">
        <!--  页面头部样式 -->
         <style>
         .verticalAlign,#upframe{ vertical-align:middle;}
		 #upframe{ height:34px !important;}
         </style>
         <div class="content-area mt20">
             <div class="myTitle clearfix"><font class="fr redFont" style="font-size: 14px;">带（*）号 为必填信息</font>新增考核学习包信息</div>
			 <script>
                 //页面初始化
                 $(function () {
                     free('<%=datestatus %>');
                 })
                 //学习包时间的开关
                 function free(checkrad) {
                     if (checkrad == "1") {
                         $("#tobody1").show();//显示限制条件
                     } else {
                         $("#tobody1").hide();
                     }
                 }
             </script>
             <table width="100%" border="0" cellpadding="1" cellspacing="0" class="CTable no-borderTable">
                 <tr>
                    <td class="lefttd" height="30" align="right" style="width: 40px"><b><span style="color:red">*</span>学习包名称:</b></td>
                    <td class="righttd">
                        <asp:TextBox ID="TxtPakeageName" CssClass="textbox "  runat="server" Width="300px"></asp:TextBox>
                    </td>          
                </tr> 
                <tr>
                    <td align="right" class="lefttd" height="30" ><strong><span style="color:red">*</span>上传封面:</strong></td>
                     <td class="righttd"><asp:TextBox ID="TxtPhoto" CssClass="textbox verticalAlign" runat="server" Width="300px"></asp:TextBox>
                      &nbsp;<input type="button" class="button verticalAlign" onclick="SelectFiles('<%=this.TxtPhoto.ClientID %>',-10);" value="选择图片" />
                        <%=Kesion.APPCode.UploadAPI.EchoUpload("classpic",this.TxtPhoto.ClientID,150) %>
                         <img id="show<%=TxtPhoto.ClientID %>" src="<%=TxtPhoto.Text %>" width="60" height="60" style="border:1px solid #f1f1f1;" onerror="this.src='../../sysimg/nopic.gif'" class="verticalAlign"/>
                     </td>
                </tr> 
                <tr>
                    <td align="right" class="lefttd" height="30" style="width: 102px">
                        <strong>指定权限组：</strong></td>
                    <td class="righttd">
                        <div ID="GroupPanel" runat="server"></div>
                        <span class="tips">tips：不限制用户组，请不要勾选 。</span>
                        
                    </td>
                </tr>
                <tr>
                    <td align="right" class="lefttd" height="30" style="width: 102px">
                        <strong>指定部门：</strong></td>
                    <td class="righttd">
                            <asp:ListBox ID="LstDepartID"  SelectionMode="Multiple" runat="server" Width="250px" Height="140px">
                       </asp:ListBox>
                            <br />
                        <span class="tips">tips：按Ctrl或Shift可以多选。<a href="javascript:;" onclick="jQuery('#<%=this.LstDepartID.ClientID %> option').attr('selected',false);">取消选中</a></span>
                    </td>
                </tr>
                 <tr>
                    <td align="right" class="lefttd" height="30" ><strong>学习包简介：</strong></td>
                    <td class="righttd">
                        <asp:TextBox ID="TxtContent" TextMode="MultiLine" Width="100%" Height="200px" runat="server"></asp:TextBox>
                          <% Kesion.APPCode.EditorAPI.EchoEditor("editor", this.TxtContent.ClientID, "Basic");%>
                     </td>
                 </tr>
                 <tr>
                    <td align="right" class="lefttd" height="30" ><strong>考核学习包价格:</strong></td>
                    <td class="righttd"><asp:TextBox ID="TxtMoney" CssClass="textbox" runat="server" Text="0" style="width:60px;text-align:center"></asp:TextBox><%=MyCache.GetCurrencyUnit %></td> 
                 </tr> 
                 <tr>
                    <td align="right" class="lefttd" height="30" ><strong>出售价格:</strong></td>
                    <td class="righttd"><asp:TextBox ID="TxtSellMoney" CssClass="textbox" runat="server" Text="0" style="width:60px;text-align:center"></asp:TextBox><%=MyCache.GetCurrencyUnit %>  <span class="tips">免费请输入0</span></td> 
                 </tr> 
                 <tr>
                    <td align="right" class="lefttd" height="30" ><strong>学习包总学分：</strong></td>
                    <td class="righttd"><asp:TextBox ID="TxtScore" CssClass="textbox" runat="server" Text="0" style="width:60px;text-align:center"></asp:TextBox>学分  通过学分：<asp:TextBox ID="TextBox1" CssClass="textbox" Text="0" runat="server" style="width:60px;text-align:center"></asp:TextBox>学分</td> 
                 </tr> 
                 <tr>
                    <td align="right" class="lefttd" height="30" ><strong>是否限制考核时间：</strong></td>
                    <td class="righttd" colspan="2"> 
                        <label><input type="radio" name="datestatus" value="0"  onclick="free(this.value)" <%=datestatus==0?"checked":"" %>  />无限制</label>
                        <label><input type="radio" name="datestatus" value="1"  onclick="free(this.value)" <%=datestatus==1?"checked":"" %>  />有限制</label>
                    </td> 
                 </tr>  
                <tr id="tobody1">
                    <td align="right"> 时间限制：</td>
                    <td class="righttd">
                    开始于：<asp:TextBox ID="TextBox2" placeholder="格式：YYYY-MM-DD" Width="150px" runat="server" onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});" CssClass="textbox Wdate"></asp:TextBox>至
                    <asp:TextBox ID="TextBox3" placeholder="格式：YYYY-MM-DD" Width="150px" runat="server" onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});" CssClass="textbox Wdate"></asp:TextBox>结束
                </td>
                </tr>                 
                 <tr>
                    <td align="right" class="lefttd" height="30" style="width: 102px">
                        <strong>审核信息：</strong></td>
                    <td class="righttd">
                     <asp:RadioButtonList ID="RdbVerify" runat="server" Width="200px" RepeatDirection="Horizontal" Height="24px">
                        <asp:ListItem Value="1" Selected="True">已审核</asp:ListItem>
                        <asp:ListItem Value="0">未审核</asp:ListItem>
                     </asp:RadioButtonList>
                    </td>
                </tr> 
                <tr>
                    <td align="right" class="lefttd" height="30" style="width: 102px">发布者：</td>
                    <td class="righttd">
                        <asp:TextBox ID="TxtPublisher" runat="server" ></asp:TextBox></td>
                </tr>
            </table>
            <KS:Foot ID="Foot1" runat="server"  OnSubmit="Foot1_Submit" HiddenIDText="0"  />
         </div>
    </asp:Panel>

    <asp:Panel ID="managepanel" runat="server" Visible="false">
          <!--  页面头部样式 -->
         
        <script> 
            function free(checkrad,id) {
                if (checkrad == "1") {
                    $("#tobody"+id+"").show();//显示限制条件
                } else {
                    $("#tobody"+id+"").hide();
                }
            }
        </script>
         <div class="content-area mt20">
            <div class="tabs_header">
                <div class="fr">
                    <input type="button" name="addCourse" id="addcourse" class="button button_on" value="添加课程信息" onclick="parent.openWin('添加课程信息','/plus/course/CheckPackageAddCourse.aspx?from=admin&packid=<%=KSCMS.S("packid") %>',true,1100,700);" style=" margin-right:15px;"/>
                    <input type="button" name="addSj" id="addsj" class="button button_on" value="添加试卷信息" onclick="parent.openWin('添加试卷信息','/plus/course/CheckPackageAddSj.aspx?from=admin&packid=<%=KSCMS.S("packid") %>',true,1100,700);"  style=" margin-right:15px;"/>
                    <input type="button" class="button" value="返回" onclick="location.href='KS.CheckPackage.aspx'"  style=" margin-right:15px;"/>
                </div>
                <ul class="tabs">
                    <li <%=KSCMS.S("type")==""||KSCMS.S("type")=="0"?" class='active'":string.Empty %>><a href="KS.CheckPackage.aspx?action=manage&type=0&packid=<%=KSCMS.S("packid") %>"><span>考核课程</span></a></li>
                    <li <%=KSCMS.S("type")=="1"?" class='active'":string.Empty %>><a href="KS.CheckPackage.aspx?action=manage&type=1&packid=<%=KSCMS.S("packid") %>"><span>考核试卷</span></a></li>
                </ul>
            </div>
            <asp:Panel ID="CoursePanel" runat="server">
                   <table width="100%"border="0" cellpadding="1" cellspacing="1" class="CTable" >
                        <tr class="CTitle">
                            <td>课程Id</td>
                            <td>课程名称</td>
                            <td>课程价格</td>
                            <td>添加时间</td>
                            <td>排序值</td>
                            <td>是否必选</td>
                            <td colspan="2">时间限制</td>
                            <td>学习时间/课时</td>
                            <td>可获取积分/课时</td>
                            <td>删除</td>
                        </tr>
            <asp:Repeater ID="checkinfoRepeater1" runat="server"  >
                <ItemTemplate>
                    <tr onmouseover="this.className=&#39;CtrMouseOver&#39;" onmouseout="this.className=&#39;CtrMouseOut&#39;" onclick="chk(this)">
                        <td class="infolist" style="text-align:center"><div class="input"><input type="hidden" name="id" value="<%#Eval("infoid") %>" />
                            <input type="checkbox" name="ids" id="ids" value="<%#Eval("infoid") %>" /><%# Eval("packinfoid") %></div></td>
                        <td class="Ctd" style="text-align:left"><%# Eval("packinfoname") %>(课时:<%# GetLessong(Utils.StrToInt(Eval("packinfoid"))) %>)</td>
                        <td class="Ctd" style="text-align:center"><%# Kesion.APPCode.Public.ReturnShopPrice(Eval("price")) %></td>
                        <td class="Ctd" style="text-align:center"><%# Eval("addtime") %></td>
                        <td class="Ctd" style="text-align:center"><input type="text" class="text" style="Width:50px;text-align:center" name="order<%#Eval("infoid") %>" value="<%# Eval("orderid") %>"  /></td>
                        <td class="Ctd" style="text-align:center"><input type="checkbox" name="isorno<%#Eval("infoid") %>"  value="1" <%# Utils.StrToInt(Eval("isorno"))==0?" ":"checked" %> /></td>
                        <td colspan="2" class="Ctd" style="text-align:center; white-space:nowrap">
                            <input type="radio" name="datestatus<%#Eval("infoid") %>" value="0"  onclick="free(this.value,'<%#Eval("infoid") %>')" <%# Utils.StrToInt(Eval("datedtatus"))==0?"checked":"" %>  />无限制
                            <input type="radio" name="datestatus<%#Eval("infoid") %>" value="1"  onclick="free(this.value,'<%#Eval("infoid") %>')" <%# Utils.StrToInt(Eval("datedtatus"))==1?"checked":"" %>  />有限制
                            <div id="tobody<%#Eval("infoid") %>" style="display:<%# Utils.StrToInt(Eval("datedtatus"))==0?"none":""%> ">
                            <input type="text" name="starttime<%#Eval("infoid") %>" value="<%#Eval("Starttime") %>" style="Width:120px; margin-bottom:10px;" placeholder="格式：YYYY-MM-DD" onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});" Class="textbox Wdate"></input>至
                            <input type="text" name="endtime<%#Eval("infoid") %>" value="<%#Eval("endtime") %>" style="Width:120px" placeholder="格式：YYYY-MM-DD"   onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});" Class="textbox Wdate"></input>
                            </div></td>
                        <td class="Ctd" style="text-align:center"><input type="text" name="studytime<%#Eval("infoid") %>"  value="<%#Eval("studytime") %>" style="Width:50px;text-align:center" class="text" /> </td>
                        <td class="Ctd" style="text-align:center"><input type="text" name="score<%#Eval("infoid") %>"  value="<%#Eval("score") %>" style="Width:50px;text-align:center" class="text" /> </td>
                        <td class="Ctd" style="text-align:center">
                           <a title="删除" onClick="return(confirm('确认移除吗？'))" href="KS.CheckPackAge.aspx?action=delete&type=0&infoid=<%# Eval("infoid") %>" class="delete"></a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
                <tr style="display:<%= bool.Parse((checkinfoRepeater1.Items.Count==0).ToString())?"":"none"%>">
                    <td align="center" colspan="10" >
                        <div class="empty" >
                                没有查询到记录
                        </div>
                    </td>
                </tr>
            </table>
            </asp:Panel>

            <asp:Panel ID="SjPanel" runat="server" Visible="false">
                    <table class="CTable BTable"> 
                        <tr class="CTitle">
                            <td>试卷Id</td>
                            <td>试卷名称</td>
                            <td>试卷价格</td>
                            <td>添加时间</td>
                            <td>排序值</td>
                            <td>是否必选</td>
                            <td  colspan="2">时间限制</td>
                            <td>考试时长</td>
                            <td>考试需求分数</td>
                            <td>可获取分数</td>
                            <td>操作</td>
                        </tr>
            <asp:Repeater ID="SjRepeater1" runat="server"   >
                <ItemTemplate>
                    <tr onmouseover="this.className=&#39;CtrMouseOver&#39;" onmouseout="this.className=&#39;CtrMouseOut&#39;" onclick="chk(this)">
                        <td  class="infolist" style="text-align:center"><div class="input"><input type="hidden" name="id" value="<%#Eval("infoid") %>" /><input type="checkbox" name="ids" id="ids" value="<%#Eval("infoid") %>" /><%# Eval("packinfoid") %></div></td>
                        <td class="Ctd" style="text-align:left"><%# Eval("packinfoname") %></td>
                        <td class="Ctd" style="text-align:center"><%# Kesion.APPCode.Public.ReturnShopPrice(Eval("price")) %></td>
                        <td class="Ctd" style="text-align:center"><%# Eval("addtime") %></td>
                        <td class="Ctd" style="text-align:center"><input type="text" class="text" style="Width:50px;text-align:center" name="order<%#Eval("infoid") %>" value="<%# Eval("orderid") %>"  /></td>
                        <td class="Ctd" style="text-align:center"><div class="input"><input type="checkbox" value="1"  name="isorno<%#Eval("infoid") %>"  <%# Utils.StrToInt(Eval("isorno"))==0?" ":"checked" %> /></div></td>
                        <td colspan="2" class="Ctd" style="text-align:center">
                            <input type="radio" name="datestatus<%#Eval("infoid") %>" value="0"  onclick="free(this.value,'<%#Eval("infoid") %>')" <%# Utils.StrToInt(Eval("datedtatus"))==0?"checked":"" %>  />无限制
                            <input type="radio" name="datestatus<%#Eval("infoid") %>" value="1"  onclick="free(this.value,'<%#Eval("infoid") %>')" <%# Utils.StrToInt(Eval("datedtatus"))==1?"checked":"" %>  />有限制
                            <div id="tobody<%#Eval("infoid") %>" style="margin-top:10px;display:<%# Utils.StrToInt(Eval("datedtatus"))==0?"none":""%>" >
                            <input type="text" name="starttime<%#Eval("infoid") %>" value="<%#Eval("Starttime") %>" style="Width:120px" placeholder="YYYY-MM-DD"  onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});" Class="textbox Wdate"></input>至
                            <input type="text" name="endtime<%#Eval("infoid") %>"  value="<%#Eval("endtime") %>" style="Width:120px" placeholder="YYYY-MM-DD"   onclick="WdatePicker({dateFmt:&#39;yyyy-MM-dd&#39;});" Class="textbox Wdate"></input>
                            </div>
                        </td>
                        <td class="Ctd" style="text-align:center"><input type="text" name="studytime<%#Eval("infoid") %>"  value="<%#Eval("studytime") %>" style="Width:50px;text-align:center" class="text" /> </td>
                        <td class="Ctd" style="text-align:center"><input type="text" name="needscore<%#Eval("infoid") %>"  value="<%#Eval("needscore") %>" style="Width:50px;text-align:center" class="text" /> </td>
                        <td class="Ctd" style="text-align:center"><input type="text" name="score<%#Eval("infoid") %>"  value="<%#Eval("score") %>" style="Width:50px;text-align:center" class="text" /> </td>
                        <td class="Ctd" style="text-align:center">
                            <a title="删除" onClick="return(confirm('确认移除吗？'))" href="KS.CheckPackAge.aspx?action=delete&type=1&infoid=<%# Eval("infoid") %>" class="delete"></a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
                <tr style="display:<%= bool.Parse((SjRepeater1.Items.Count==0).ToString())?"":"none"%>">
                    <td align="center" colspan="10" >
                        <div class="empty" >
                                没有查询到记录
                        </div>
                    </td>
                </tr>
            </table>
             </asp:Panel>

            <div class="main-button" style="text-align:center;">
                <input name="" type="checkbox" value="" id="selectinfo"/> 全选
                <asp:Button ID="piedit" CssClass="button" runat="server" Text="批量修改"  OnClick="piedit_Click" />&nbsp;
                <asp:Button ID="pidelete" CssClass="button" runat="server" Text="批量删除" OnClientClick="return (confirm('确定批量删除这些内容么?'))"  OnClick="pidelete_Click"/>&nbsp;<br />
           </div>
        </div>
    </asp:Panel>

</asp:Content>

