<%@ Page Language="C#" MasterPageFile="~/webUser/MasterPage.master" AutoEventWireup="true"
    Inherits="ZYDN.Web.webUser.contribute_Add" Title="Untitled Page" EnableViewState="false"
    Codebehind="contribute_Add.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content1" runat="Server">
    <link rel="stylesheet" type="text/css" href="../system/skins/css/Sys.css" />

    <script type="text/javascript" language="javascript" src="../system/myweb/js/createData.js"></script>

    <script type="text/javascript" language="javascript" src="../system/myweb/js/myWeb.js"></script>

    <script type="text/javascript" language="javascript">
		var objAjax=new JAjax();
		var menuid=readPar(location.href,"menuid");
		var menuName=null;
		var asTab=null;
		var d=new createDataClass();
		d.serverPath="../system/myWeb/";
		var m=new myWebClass();
		var EditContent="";
		m.serverPath="../system/myWeb/";
		var oObj;

		
	


	  function loadNewPage(){
	    	//loadBodyclick();
			var option=new optionClass();
			tObj=document.getElementsByName("optionTitle");
			oObj=document.getElementsByName("optionBody")
			option.titleObj=tObj;
			option.bodyObj=oObj;
			option.create();
			
			
		
		
	   	    $("editTxt").src="../system/editor/Editor.htm";
	   	    
	   	    //return;
	        var h=Element.getHeight("hiwebTab");
	        //alert(h);
	        var h1=h-171;
	        for (var i=0;i<oObj.length;i++){
                  oObj[i].style.height=h1;
	        }
	        $("divButton").style.top=h1+120;
	        setTimeout("loadPar()",10)
       }
	   
	   function loadPar(){
	      
	       
	   	    d.menuPar=d.loadPar(menuid);
			if (d.menuPar=="noPop"){
			    alert("您在本栏目没有发布信息的权限")
				document.body.innerHTML="";
				return;
			}
			
			d.tabPar=d.loadExDataPar(d.menuPar[15]);
			d.serverPath="../system/";
			d.displayExData(oObj[1]);
			
			var menu=new Array();
		
			menu[1]=menuid;
			// alert(d.menuPar[3]);
			menu[0]=m.readPath(d.menuPar[3]);
			d.addSelectMenu(menu);
			
			asTab=d.menuPar[15];
			d.serverPath="../system/myWeb/";

		
			
		//	loadImgDiv.style.display="none";
	   
	    }
	   
    </script>

    <div class="maxTitle">
        发布信息
    </div>
    <br />
    <!---div id="loadImgDiv" style="padding-top: 100px; text-align: center; width: 100%;
        height: 100%; position: absolute; top: 0px; left: 0px; z-index: 99; background-color: #ffffff;">
        <img src="../system/skins/IMG/wait.gif"><br>
        数据加载中, 请稍候.........
    </div--->
    <form action="../system/myweb/createDataServer.aspx?type=saveContribute" method="post"
        name="form1" id="form1">
        <div style="position: absolute; top:95px; left: 180px; width: 95%; height: 95%"
            id="editJob">
            <div style="width: 100%; position: absolute; left: 10px; top: 0px; z-index: 2" id="div2">
                <div name="optionTitle" id="optionTitle">
                    基本信息</div>
                <div name="optionTitle" id="optionTitle">
                    扩展信息</div>
            </div>
            <div style="width: 100%; height: 300px; position: absolute; top: 21px; z-index: 1"
                id="optionDiv">
                <div name="optionBody" id="optionBody">
                    <div style="padding: 4px;">
                        <!---基本参数--->
                        <table border="0" width="750">
                            <tr>
                                <td style="width: 60px;">
                                    标题<font color="#FF0000">*</font></td>
                                <td style="width: 690px;" colspan="3">
                                    <input isv="1" title="标题" notnull="1" max="100" id="T_title" name="T_title" type="text"
                                        style="width: 500px;">&nbsp;&nbsp;&nbsp;&nbsp; 前缀<input id="T_Kind" name="T_Kind"
                                            type="text" style="width: 55px;"></td>
                            </tr>
                            <tr>
                                <td>
                                    所属栏目</td>
                                <td style="width: 690px;" colspan="3">
                                   <div id="selectPathDiv" style="overflow:auto;height:50px;width:380px;float:left;">
						            </div>
						            <div style="float:left;">
							            <input type="button" onClick="d.selectPowerMenu(asTab)" value="选择所属栏目">
						              </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    缩略图</td>
                                <td colspan="3">
                                    <div style="width: 600px">
                                        <input  onclick='this.nextSibling.click();' id="T_TabImage" name="T_TabImage" type="text" style="width: 500px;" readonly="readonly" /><input
                                            type='button' value='上传' onclick='d.upfile(this,"../system/")' /></div>
                                </td>
                            </tr>
                            <tr style="display:none;">
                                <td>
                                    来源</td>
                                <td>
                                    <input id="T_Source" name="T_Source" type="text" style="width: 100px;" /></td>
                                <td>
                                    来源路径</td>
                                <td>
                                    <input id="T_SourceUrl" name="T_SourceUrl" type="text" style="width: 340px;" /></td>
                            </tr>
                            <tr style="display:none;">
                                <td>
                                    关键字</td>
                                <td colspan="3" style="width: 600px">
                                    <input id="T_TabKeys" name="T_TabKeys" type="text" style="width: 200px;" />
                                    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 加入调查<input id="T_inquiry" name="T_inquiry"
                                        type="text" style="width: 200px;" />
                                    <input onclick="var v=openVot('../system/');if (v!=null){$('T_inquiry').value=v;}"
                                        type="button" value="选择" />
                                </td>
                            </tr>
                            <tr style="display:none;">
                                <td>
                                    转向连接</td>
                                <td colspan="3">
                                    <input id="T_WebUrl" name="T_WebUrl" type="text" style="width: 600px;"></td>
                            </tr>
                            <tr>
                                <td>
                                    内容</td>
                                <td colspan="3">
                                    <div id="editTextDiv" style="height: 450px; width: 600px">
                                        <iframe src="" id="editTxt" name="editTxt" style="width: 100%; height: 100%" marginwidth="0"
                                            marginheight="0" align="top" scrolling="no" frameborder="0"></iframe>
                                    </div>
                                    <input type="hidden" id="T_content" name="T_content" />
                                    <!---textarea id="T_content" name="T_content" style="display:none;width:600px;height:280px"></textarea--->
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4">
                                    自动生成简介
                                    <input checked type="checkbox" id="isAutoCBS" name="isAutoCBS" vale="1" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    内容简介</td>
                                <td colspan="3">
                                    <textarea id="T_CBS" name="T_CBS" style="width: 600px; height: 80px" onclick="$('isAutoCBS').checked=false"></textarea>
                                </td>
                            </tr>
                        </table>
                        <!---基本参数 OK--->
                    </div>
                </div>
                <div name="optionBody" id="optionBody">
                    <div style="padding: 4px;">
                        <!--扩展参数-->
                    </div>
                </div>
            </div></div>
    </form>

            <div style="position: absolute;left:200px; top: 615px;" id="divButton" >
                <input name="isClear" type="checkbox" id="isClear" value="" checked="checked" />
                <label for="isClear">
                    数据提交后清空原数据</label>&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="button" value="提交" onclick="d.saveContribute();" />
            </div>
        
    <script language="javascript" type="text/javascript"> 
    setTimeout("loadNewPage()",1000);
    </script>

</asp:Content>
