/*
作者：符史径
作用：配置弹出小窗口属性
版本：CHINA8H.V.0.1
*/

//留言窗口
var pop=null;

function setModule(templateid,divtype,position){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:480,height:290});
	pop.setContents({"title":"设置模块",'contentUrl':'/Manage/Systems/ModuleForm.aspx?templateid='+templateid+'&divtype='+divtype+'&position='+position});
	pop.build().show();
}

function setChannelModel(templateid,divtype,position){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:480,height:290});
	pop.setContents({"title":"设置模块",'contentUrl':'/Manage/Systems/SelectChannel.aspx?templateid='+templateid+'&divtype='+divtype+'&position='+position});
	pop.build().show();
}

function setTextModule(templateid,divtype,position){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:650,height:590});
	pop.setContents({"title":"设置模块",'contentUrl':'/Manage/Systems/ModuleForm.aspx?templateid='+templateid+'&divtype='+divtype+'&position='+position});
	pop.build().show();
}
/**
 * 设置显示广告编辑窗口
 */
function showadedit(divId,divnum) 
{ 
 debugger;
 for(i=1;i<=divnum;i++)
 {
     var cad=document.getElementById("adeditbox_"+i);
     if(cad != null)
     {
        cad.style.display="none"; 
     }
 }
 document.getElementById("adeditbox_"+divId).style.display="block"; 
} 
//信息编辑窗口
function openNewsForm(Uid,Tid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:700,height:400});
	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:400});
	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:400});
	pop.setContents({"title":"编辑模块内容",'contentUrl':'/Manage/Page/PageForm.aspx?Uid='+Uid});
	pop.build().show();
}

//编辑模板
function openTemplateForm(Uid,Tid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:720,height:400});
	pop.setContents({"title":"创建/编辑模板",'contentUrl':'/Manage/Systems/TemplateForm.aspx?Uid='+Uid+'&Tid='+Tid});
	pop.build().show();
}

//编辑模板
function openFeedBack(){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:600,height:450});
	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:480});
	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:400});
	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();
}

//链接编辑
function openKeywordsForm(Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:390,height:160});
	pop.setContents({"title":"关键词编辑",'contentUrl':'/Manage/Link/KeywordForm.aspx?Uid='+Uid});
	pop.build().show();
}

//获取关键词链接代码
function openGetLinkCode(){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:600,height:400});
	pop.setContents({"title":"生成关键词链接代码",'contentUrl':'/Manage/Link/GetLinkCode.aspx'});
	pop.build().show();
}

//创建模板风格
function openTemplateTypeForm(Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:400,height:150});
	pop.setContents({"title":"创建模板风格",'contentUrl':'/Manage/Systems/TemplateTypeForm.aspx?Uid='+Uid});
	pop.build().show();
}


//选择模板风格
function openTemplateTypeSlectForm(Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:400,height:150});
	pop.setContents({"title":"选择模板风格",'contentUrl':'/Manage/Systems/TemplateTypeSlect.aspx?Uid='+Uid});
	pop.build().show();
}
//编辑积分
function openhyCForm(UserId,Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:500,height:220});
	pop.setContents({"title":"积分管理",'contentUrl':'/Manage/Systems/UserCodeForm.aspx?UserId='+UserId+'&Uid='+Uid});
	pop.build().show();
}
//查看会员信息
function openhyForm(Uid){
	if(pop!=null) pop.close();
	pop=new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:400,height:450});
	pop.setContents({"title":"会员信息",'contentUrl':'/Manage/Systems/UserInfo.aspx?Uid='+Uid});
	pop.build().show();
}
//打开网页设计界面
function openwin(ChannelID) {
window.open ("/Manage/Systems/PageDesign.aspx?channelID="+ ChannelID +"", "newwindow", "toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no" )
//写成一行
}