/*
作者：符史径
作用：配置弹出小窗口属性
版本：CHINA8H.V.0.1
*/

//留言窗口
var pop=null;

//信息编辑窗口
function openNewsForm(Uid,Tid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:700,height:420});
	pop.setContents({"title":"创建/编辑信息",'contentUrl':'/Manage/News/NewsForm.aspx?Uid='+Uid+'&Tid='+Tid});
	pop.build().show();
}

//编辑类型
function openFbTypeForm(Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:400,height:200});
	pop.setContents({"title":"创建/编辑类型",'contentUrl':'/Manage/News/FbTypeForm.aspx?Uid='+Uid});
	pop.build().show();
}

//编辑类型
function openInfoTypeForm(Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:400,height:230});
	pop.setContents({"title":"创建/编辑信息类型",'contentUrl':'/Manage/News/InfoTypeForm.aspx?Uid='+Uid});
	pop.build().show();
}

//编辑内容
function openInformationForm(ChannelID,Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:720,height:420});
	pop.setContents({"title":"创建/编辑信息内容",'contentUrl':'/Manage/News/InformationForm.aspx?ChannelID='+ChannelID+'&Uid='+Uid});
	pop.build().show();
}

//编辑网页
function openPageForm(Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:720,height:420});
	pop.setContents({"title":"创建/编辑网页内容",'contentUrl':'/Manage/Page/PageForm.aspx?Uid='+Uid});
	pop.build().show();
}

//编辑模板
function openTemplateForm(Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:720,height:420});
	pop.setContents({"title":"创建/编辑模板",'contentUrl':'/Manage/Systems/TemplateForm.aspx?Uid='+Uid});
	pop.build().show();
}

//编辑模板
function openFeedBack(){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:600,height:400});
	pop.setContents({"title":"业务在线咨询反馈",'contentUrl':'/FeedBack.aspx'});
	pop.build().show();
}

//编辑幻灯片窗口
function openSlideForm(Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:630,height:340});
	pop.setContents({"title":"幻灯片管理",'contentUrl':'/Manage/Systems/SlideForm.aspx?Uid='+Uid});
	pop.build().show();
}

//查看留言窗口openUserForm
function openLeveaWord(Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:630,height:400});
	pop.setContents({"title":"查看留言",'contentUrl':'/Manage/Systems/LeveaWordForm.aspx?Uid='+Uid});
	pop.build().show();
}

//用户帐户窗口
function openUserForm(Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:390,height:170});
	pop.setContents({"title":"用户帐户",'contentUrl':'/Manage/Systems/UserForm.aspx?Uid='+Uid});
	pop.build().show();
}


//频道类型窗口
function openChannelTypeForm(Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:390,height:100});
	pop.setContents({"title":"频道类型",'contentUrl':'/Manage/Systems/ChannelTypeForm.aspx?Uid='+Uid});
	pop.build().show();
}

//频道管理窗口
function openChannelForm(ParentID,VersionID,Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:400,height:420});
	pop.setContents({"title":"频道管理",'contentUrl':'/Manage/Systems/ChannelForm.aspx?ParentID='+ParentID+'&VersionID='+VersionID+'&Uid='+Uid});
	pop.build().show();
}

//编辑产品
function openProductForm(ChannelID,Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:720,height:420});
	pop.setContents({"title":"创建/编辑产品信息内容",'contentUrl':'/Manage/Product/ProductForm.aspx?ChannelID='+ChannelID+'&Uid='+Uid});
	pop.build().show();
}

//编辑下载产品
function openDownLoadForm(ChannelID,Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:350,height:160});
	pop.setContents({"title":"创建/编辑下载内容",'contentUrl':'/Manage/DownLoad/DownLoadForm.aspx?ChannelID='+ChannelID+'&Uid='+Uid});
	pop.build().show();
}

//链接编辑
function openLinkForm(Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:390,height:320});
	pop.setContents({"title":"链接编辑",'contentUrl':'/Manage/Link/LinkForm.aspx?Uid='+Uid});
	pop.build().show();
}