Pop-up box, carrying pop-up link ---- page, showing large image

弹出框,承载弹出链接----页面,显示大图

function pageContentReset(resultList) {
        var oldTr = $("#contentTable tr:gt(0)");
        if (oldTr) {
            oldTr.remove();
        }
        var content = "";
        if (resultList != null && resultList.length > 0) {
            for (var i = 0; i < resultList.length; i++) {
                var lineData = resultList[i];
                var line = "<tr>";
                if (0 == i % 2) {
                    line = "<tr class='even'>";
                }
                //************************************************


                line += "<td>" + (i + 1) + "</td>";
                line += "<td>" + lineData["roleCode"] + "</td>";
                line += "<td>" + lineData["roleName"] + "</td>";
                line += "<td>" + lineData["createuser"] + "</td>";
                //操作栏
                var url = "<a class='cyan' href='<%=webPath%>/system/acount/FUN.do?id=" + lineData["id"] + "'>DETAIL</a>";
                var del = "<a onclick='delet(" + lineData["id"] + ")' href='javascript:void(0)' class='cyan'>【删除】</a>";
                var menus = "<a name='showMenu'href='${pageContext.request.contextPath}/system/acount/checkbox.do?id=" + lineData["id"] + "'  class='cyan'>【授菜单】</a>";
//                var menus = "<a onclick='showAddWindow(" + lineData["id"] + ")' href='javascript:void(0)' class='cyan'>【授菜单】</a>";
//                var funcs = "<a onclick='showfuncsWindow(" + lineData["id"] + ")' href='javascript:void(0)' class='cyan'>【授权】</a>";
                line += "<td>" + url.replace("FUN", "info").replace("DETAIL", "查看") + "|"
                        + url.replace("FUN", "edit").replace("DETAIL", "编辑") + "|"
                        + del
                        + "|"+menus+"</td>";
                //************************************************
                line += "</tr>";
                content += line;
            }
        }


$("[name='showMenu']").each(function () {//The number of pairs with the same name in the loop
            var show=$(this);
            show.colorbox({
                iframe:true,
                width:" 700px",
                height:"650px",
                title:"Menu Grant",
                href:show.attr("href")
            });
        });

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326850103&siteId=291194637