Song.Site/obj/Debug/Package/PackageTmp/Manage/Panel/Scripts/PagePanel.js

(开头部分) 17KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*!
* 主  题:《内容页操作面板》
* 说  明:在管理界面右侧出现内容页操作面板。
* 功能描述:
* 1、生成仿傲游浏览器的标签栏,可以关闭标签;
* 2、面板内包含iframe控件,用于显示内容页;
* 3、面板可以全屏;
* 4、当关闭所有标签后,将打开默认页,即起始页
*
* 作  者:宋雷鸣 
* 开发时间: 2012年12月23日
* 修订时间:2014年3月12日 修正浏览适用,增加帮助编辑
* 修订时间:2014年10月11日 增加打印控件的控制
*/

//工作区域,页面(包括标题、页面ifame)的操作类
function PagePanel(name, path, page, id) {
    this.Init(name, path, page, id);
}
//初始化参数
PagePanel.prototype.Init = function (name, path, page, id) {
    this.Name = name != null && name != "" ? name : this.Default.name;
    this.Path = path != null && path != "" ? path : this.Default.path;
    this.Page = page != null && page != "" ? page : this.Default.page;
    this.Id = id != null && id != "" ? id : this.Default.id;
}
//最多打开几个页面
PagePanel.prototype.Max = 6;
//默认页面
PagePanel.prototype.Default = {
    name: "起始页",
    path: "起始页",
    page: "welcome.aspx",
    id: "def"
}
//打开默认的页面(起启页)
PagePanel.prototype.DefOpen = function () {
    this.add(this.Default.name, this.Default.path, this.Default.page, this.Default.id);
}
//增加页面操作面板
//name:标题名称
//path:页面所在的菜单路径
//page:要打开的页面
//id:当前菜单项id,系统菜单项,如桌面等均为字符表示
PagePanel.prototype.add = function (name, path, page, id) {
    this.Init(name, path, page, id);
    var bar = $("#consBoxTitleBar");
    //判断当前页面是否已经打开
    if (bar.find("#consBoxTitle_" + id).size() > 0) {
        this.focus(id);
        return;
    }
    //已经存在标题的总长
    var titWid = 0;
    bar.children().each(function () {
        titWid += $(this).outerWidth();
    });
    //alert(titWid);
    //if(titWid>this.width())alert("无法打开");
    /*if((titWid+this.size()*6)>(bar.width()-100))
后面还有 386 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。