OA项目之弹出层中再弹出层

弹出层中再弹出一层如图:

OA项目之弹出层中再弹出层_第1张图片

 

<asp:TextBox runat="server" ID="txtUName" CssClass="span2" title="点击选择" onfocus="GetStudentInfo();this.blur();"></asp:TextBox> 
弹出层中的一个文本框,点击文本框显示相应的信息弹出层

#region  第二个弹出层
  <div class="div_ShowDailg" id="div_Student" style="width: 720px;">
        <div class="div_ShowDailg_Title" id="div_Student_Title">
            <div class="div_ShowDailg_Title_left" id="div_Student_Title_left">
            </div>
            <div class="div_Close_Dailg" id="div2" title="关闭" onclick="$('#div_Student').hide();">
            </div>
            <!--关闭-->
        </div>
        <div class="clearDiv">
        </div>
        <div id="div_StudentInfo">
            <iframe id="iframeStudent" src="" width="100%" height="300" frameborder="0" scrolling="no">
            </iframe>
        </div>
    </div>
#endregion

    <script language="javascript" type="text/javascript">
        $("#div_Add_And_Edit").easydrag();
        $("#div_Add_And_Edit").setHandler("div_Add_And_Edit_Title");

        $("#div_Student").easydrag();
        $("#div_Student").setHandler("div_Student_Title");

        function GetStudentInfo() {
            $("#div_Student_Title_left").html("选择学生信息");
            ShowDocumentDivBG();
            SetDialogPosition("div_Student");
            $("#iframeStudent").attr("src", ../IFrame/IFrameStudents.aspx");
            //IFrameStudent.aspx是要弹出的第二层
            $("#div_Student").show();
        }

        function chkValue(str) {
            if (str.indexOf(",") != -1) {
                //第一个弹出层中的文本框获得值
               
                $("#hidUID").val(str.split(",")[0]);
                $("#txtUName").val(str.split(",")[1]);
                $("#txtTTCard").val(str.split(",")[12]);
                $("#ddlDepName").val(str.split(",")[9]);
                $("#ddlClassName").val(str.split(",")[10]);
                $("#txtTeacherName").val(str.split(",")[5]);
            }
            $("#div_Student").hide();
        }

        function setPopUpHeight(height) {
            $("#iframeStudent").attr("height", height);
        }
</script>

 

你可能感兴趣的:(项目)