<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title>日记属性设定 - <?php echo $cfg_webname; ?></title>
</head>
<link href="/templets/default/diary/css.css" rel="stylesheet" type="text/css">
<script src="/templets/default/diary/img/alt.js"></script>
<script language="javascript">
	function SwitchCover(nCover,nBookID,sImageType)
	{
		//if(nCover==-1)
			//preview.src=""+nBookID+"."+sImageType
		if(nCover=="uplogo"){
			document.getElementById("uplogo").style.display='';
		}else{
		document.getElementById("uplogo").style.display='none';
			preview.src=""+nCover+"";}
	}
	function UploadCover(sPath)
	{
		preview.src=sPath
	}
	function SetCurrentCover(nCover)
	{
		bookcover=document.all("bookcover")
		for(var i=0;i<bookcover.options.length;i++)
		{
			if(bookcover(i).value==nCover)
			{
				bookcover(i).selected=true;
				return;
			}
		}
	}
	function SwitchCoverbg(nCover,nBookID,sImageType)
	{
		if(nCover==-1){
				   //var bg="img/"+nBookID+"."+sImageType
		   //preview.src="img/"+nBookID+"."+sImageType
		   preview.src="/templets/default/"+bg+"";
		   //document.write("<BODY BACKGROUND="+"img/"+nBookID+"."+sImageType+">");
			   //document.body.style.backgroundImage=="url("+"img/"+nBookID+"."+sImageType+")" 
		}else{
			//preview.src=""+nCover+""
			parent.document.body.style.backgroundImage="url("+nCover+")"; }
	}	
</script>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" style="background-color=transparent">
<table width="284" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="370" width="284" align="right">
      <table border="0" width="284" id="table8" cellspacing="0" cellpadding="0" height="370">
        <tr> 
          <td height="19" colspan="3">　</td>
        </tr>
        <tr> 
          <td height="19" colspan="3" align=center><font color="#51300C">
            日记属性设置</font></td>
        </tr>
        <tr> 
          <td background="diary/linebg2.gif" colspan="3" height="1"><img border="0" src="diary/linebg2.gif" width="4" height="1"></td>
        </tr>
        <tr valign="top"> 
          <td colspan="2"></td>
          <td width="274" align="center"> 
            <form language="javascript"  name="regform" method="post" action="edit_space_info.php">
              <table border="0" width="99%" id="table7" cellspacing="0" cellpadding="0" align="center">
                <tr> 
                  <td width="80"></td>
                  <td colspan="3"></td>
                </tr>
                <tr> 
                  <td  height="19"><b><font color="#77520A">账户[笔名]:</font></b><input type="hidden" name="dopost" value="save" /><input name="pagesize" type="hidden" id="pagesize" value="<?php echo $pagesize; ?>" maxlength="100" class="intxt"/></td>
                  <td colspan="3" height="19"><b><font color="#77520A"><?php echo $userid; ?></b>[<?php echo $uname; ?>]</font></td>
                </tr>
                <tr> 
                  <td  height="2"><b><font color="#77520A">日记本名:</font></b></td>
                  <td height="2"><b> 
                    <input name="spacename" type="text" id="spacename" size="8" maxlength="12" value="<?php echo $spacename; ?>">
                    </b> </td>
                  <td height="2"><b><font color="#77520A">日记封面:</font></b></td>
                  <td height="2"> 
                    <select name="oldspacelogo" class="input" id="oldspacelogo" style="width:60px" onChange="SwitchCover(this.value,6913,'jpg')">
                      <option value="/templets/default/diary/img/01.jpg" <?php if($spacelogo=='/templets/default/diary/img/01.jpg') echo " selected "; ?>>图1</option>
                      <option value="/templets/default/diary/img/02.jpg" <?php if($spacelogo=='/templets/default/diary/img/02.jpg') echo " selected "; ?>>图2</option>
                      <option value="/templets/default/diary/img/03.jpg" <?php if($spacelogo=='/templets/default/diary/img/03.jpg') echo " selected "; ?>>图3</option>
                      <option value="/templets/default/diary/img/04.jpg" <?php if($spacelogo=='/templets/default/diary/img/04.jpg') echo " selected "; ?>>图4</option>
                      <option value="/templets/default/diary/img/05.jpg" <?php if($spacelogo=='/templets/default/diary/img/05.jpg') echo " selected "; ?>>图5</option>
                      <option value="/templets/default/diary/img/06.jpg" <?php if($spacelogo=='/templets/default/diary/img/06.jpg') echo " selected "; ?>>图6</option>
                      <option value="/templets/default/diary/img/07.jpg" <?php if($spacelogo=='/templets/default/diary/img/07.jpg') echo " selected "; ?>>图7</option>
                      <option value="/templets/default/diary/img/08.jpg" <?php if($spacelogo=='/templets/default/diary/img/08.jpg') echo " selected "; ?>>图8</option>
                      <option value="/templets/default/diary/img/09.jpg" <?php if($spacelogo=='/templets/default/diary/img/09.jpg') echo " selected "; ?>>图9</option>
                      <option value="/templets/default/diary/img/10.jpg" <?php if($spacelogo=='/templets/default/diary/img/10.jpg') echo " selected "; ?>>图10</option>
                      <option value="/templets/default/diary/img/11.jpg" <?php if($spacelogo=='/templets/default/diary/img/11.jpg') echo " selected "; ?>>图11</option>
                      <option value="/templets/default/diary/img/12.jpg" <?php if($spacelogo=='/templets/default/diary/img/12.jpg') echo " selected "; ?>>图12</option>
                      <option value="/templets/default/diary/img/13.jpg" <?php if($spacelogo=='/templets/default/diary/img/13.jpg') echo " selected "; ?>>图13</option>
                      <option value="/templets/default/diary/img/14.jpg" <?php if($spacelogo=='/templets/default/diary/img/14.jpg') echo " selected "; ?>>图14</option>
                      <option value="/templets/default/diary/img/15.jpg" <?php if($spacelogo=='/templets/default/diary/img/15.jpg') echo " selected "; ?>>图15</option>
                      <option value="/templets/default/diary/img/16.jpg" <?php if($spacelogo=='/templets/default/diary/img/16.jpg') echo " selected "; ?>>图16</option>
                      <option value="/templets/default/diary/img/17.jpg" <?php if($spacelogo=='/templets/default/diary/img/17.jpg') echo " selected "; ?>>图17</option>
                      <option value="/templets/default/diary/img/18.jpg" <?php if($spacelogo=='/templets/default/diary/img/18.jpg') echo " selected "; ?>>图18</option>
                      <option value="/templets/default/diary/img/19.jpg" <?php if($spacelogo=='/templets/default/diary/img/19.jpg') echo " selected "; ?>>图19</option>
                      <option value="/templets/default/diary/img/20.jpg" <?php if($spacelogo=='/templets/default/diary/img/20.jpg') echo " selected "; ?>>图20</option>
                      <option value="/templets/default/diary/img/21.jpg" <?php if($spacelogo=='/templets/default/diary/img/21.jpg') echo " selected "; ?>>图21</option>
                      <option value="/templets/default/diary/img/22.jpg" <?php if($spacelogo=='/templets/default/diary/img/22.jpg') echo " selected "; ?>>图22</option>
                      <option value="/templets/default/diary/img/23.jpg" <?php if($spacelogo=='/templets/default/diary/img/23.jpg') echo " selected "; ?>>图23</option>
                      <option value="/templets/default/diary/img/24.jpg" <?php if($spacelogo=='/templets/default/diary/img/24.jpg') echo " selected "; ?>>图24</option>
                      <option value="/templets/default/diary/img/25.jpg" <?php if($spacelogo=='/templets/default/diary/img/25.jpg') echo " selected "; ?>>图25</option>
                      <option value="/templets/default/diary/img/26.jpg" <?php if($spacelogo=='/templets/default/diary/img/26.jpg') echo " selected "; ?>>图26</option>
                      <option value="/templets/default/diary/img/27.jpg" <?php if($spacelogo=='/templets/default/diary/img/27.jpg') echo " selected "; ?>>图27</option>
                      <option value="/templets/default/diary/img/28.jpg" <?php if($spacelogo=='/templets/default/diary/img/28.jpg') echo " selected "; ?>>图28</option>
                      <option value="/templets/default/diary/img/29.jpg" <?php if($spacelogo=='/templets/default/diary/img/29.jpg') echo " selected "; ?>>图29</option>
                      <option value="/templets/default/diary/img/30.jpg" <?php if($spacelogo=='/templets/default/diary/img/30.jpg') echo " selected "; ?>>图30</option>
                      <option value="/templets/default/diary/img/31.jpg" <?php if($spacelogo=='/templets/default/diary/img/31.jpg') echo " selected "; ?>>图31</option>
                      <option value="/templets/default/diary/img/32.jpg" <?php if($spacelogo=='/templets/default/diary/img/32.jpg') echo " selected "; ?>>图32</option>
                      <option value="/templets/default/diary/img/33.jpg" <?php if($spacelogo=='/templets/default/diary/img/33.jpg') echo " selected "; ?>>图33</option>
                      <option value="/templets/default/diary/img/34.jpg" <?php if($spacelogo=='/templets/default/diary/img/34.jpg') echo " selected "; ?>>图34</option>
                      <option value="/templets/default/diary/img/35.jpg" <?php if($spacelogo=='/templets/default/diary/img/35.jpg') echo " selected "; ?>>图35</option>
                      <option value="/templets/default/diary/img/36.jpg" <?php if($spacelogo=='/templets/default/diary/img/36.jpg') echo " selected "; ?>>图36</option>
					  <option value="uplogo" <?php if(strpos($spacelogo,'diary')==false) echo "ssss "; ?>>自主上传</option>
                    </select>
                  </td>

                </tr>
                  <tr id="uplogo" style="display:none"> 
                  <td width="80" style="color:red;">上传封面:</td>
                  <td colspan="3"><input name="spacelogo" type="file" id="spacelogo" style="width:180px" /></td>
                </tr>

                <tr> 
                  <td  height="19"><font color="#77520A"><b>留言本本:</b></font></td>
                  <td width="68" height="19"><b> 
                    <input name="zzzlyb" type="text" id="zzzlyb" size="8" maxlength="8" value="<?php echo $zzzlyb; ?>">
                    </b> </td>
                  <td width="66" height="19"><font color="#77520A"><b>来客留言:</b></font></td>
                  <td width="77" height="19"> 
                    <select name="zzzshowbook" class="input" id="zzzshowbook" style="width:60px">
                      <option value="1" <?php if($zzzshowbook=='1') echo " selected "; ?>>启用</option>
                      <option value="0" <?php if($zzzshowbook=='0') echo " selected "; ?>>禁用</option>
                    </select>
                  </td>
                </tr>
                <tr style='display:none'> 
                  <td  height="19"><font color="#77520A"><b>私人日记:</b></font></td>
                  <td height="19"> 
                    <select name="zzzsiren" class="input" id="zzzsiren" style="width:60px">
                      <option value="0" <?php if($zzzsiren=='0') echo " selected "; ?>>对外隐藏</option>
                      <option value="1" <?php if($zzzsiren=='1') echo " selected "; ?>>显示标题</option>
					  <option value="2" <?php if($zzzsiren=='2') echo " selected "; ?>>全部显示</option>
                    </select>
                  </td>
                  <td height="19"><font color="#77520A"><b>许愿小寺:</b></font></td>
                  <td height="19"> 
                    <select name="zzzwishopen11" class="input" id="wishopen" style="width:60px">
                      <option value="no" <?php if($zzzwishopen=='no') echo " selected "; ?>>主人专用</option>
                      <option value="yes" <?php if($zzzwishopen=='yes') echo " selected "; ?>>访客可用</option>
                    </select>
                  </td>
                </tr>
                <tr> 
                  <td  height="19"><font color="#77520A"><b>日记背景:</b></font></td>
                  <td height="19"> 
                    <select name="zzzbgbg" class="input" id="zzzbgbg" style="width:60px" onChange="SwitchCoverbg(this.value,6913,'jpg')">
<option value="/templets/default/diary/index_bg1.jpg" <?php if($zzzbgbg=='/templets/default/diary/index_bg1.jpg') echo " selected "; ?>>书台记</option>
<option value="/templets/default/diary/index_bg2.jpg" <?php if($zzzbgbg=='/templets/default/diary/index_bg2.jpg') echo " selected "; ?>>木门记</option>
<option value="/templets/default/diary/index_bg3.jpg" <?php if($zzzbgbg=='/templets/default/diary/index_bg3.jpg') echo " selected "; ?>>崖石记</option>
<option value="/templets/default/diary/index_bg4.jpg" <?php if($zzzbgbg=='/templets/default/diary/index_bg4.jpg') echo " selected "; ?>>编苇记</option>
<option value="/templets/default/diary/index_bg5.jpg" <?php if($zzzbgbg=='/templets/default/diary/index_bg5.jpg') echo " selected "; ?>>简木记</option>
<option value="/templets/default/diary/index_bg6.jpg" <?php if($zzzbgbg=='/templets/default/diary/index_bg6.jpg') echo " selected "; ?>>和梦记</option>
<option value="/templets/default/diary/index_bg7.jpg" <?php if($zzzbgbg=='/templets/default/diary/index_bg7.jpg') echo " selected "; ?>>旧布记</option>
<option value="/templets/default/diary/index_bg8.gif" <?php if($zzzbgbg=='/templets/default/diary/index_bg8.jpg') echo " selected "; ?>>体育记</option>
<option value="/templets/default/diary/index_bg9.gif" <?php if($zzzbgbg=='/templets/default/diary/index_bg9.jpg') echo " selected "; ?>>繁花记</option>
<option value="/templets/default/diary/index_bg10.gif" <?php if($zzzbgbg=='/templets/default/diary/index_bg10.jpg') echo " selected "; ?>>冬雪记</option>
<option value="/templets/default/diary/index_bg11.gif" <?php if($zzzbgbg=='/templets/default/diary/index_bg11.jpg') echo " selected "; ?>>梦圆记</option>
<option value="/templets/default/diary/index_bg12.gif" <?php if($zzzbgbg=='/templets/default/diary/index_bg12.jpg') echo " selected "; ?>>电图记</option>
<option value="/templets/default/diary/index_bg13.jpg" <?php if($zzzbgbg=='/templets/default/diary/index_bg13.jpg') echo " selected "; ?>>刻花记</option>
<option value="/templets/default/diary/index_bg14.jpg" <?php if($zzzbgbg=='/templets/default/diary/index_bg14.jpg') echo " selected "; ?>>古墙记</option>
<option value="/templets/default/diary/index_bg15.jpg" <?php if($zzzbgbg=='/templets/default/diary/index_bg15.jpg') echo " selected "; ?>>印象记</option>
</select>
                  </td>
                  <td height="19" colspan="2"> 应用
<input type="radio" name="zzzbgx" value="me" <?php if($zzzbgx=='me') echo " checked "; ?>>日记本<input type="radio" name="zzzbgx" value="all" <?php if($zzzbgx=='all') echo " checked "; ?>>全站 </td>
                </tr>
                <tr> 
                  <td  height="19"><font color="#77520A"><b>日记音乐:</b></font></td>
                  <td height="19"> 
                    <select name="zzzyinyue" class="input" id="zzzyinyue" style="width:60px">
                      <option value="0" <?php if($zzzyinyue=='0') echo " selected "; ?>>调用系统音乐</option>
                      <option value="1" <?php if($zzzyinyue=='1') echo " selected "; ?>>不用系统音乐</option>
                    </select>
                  </td>
<td height="19"><font color="#77520A"><b>许愿小寺:</b></font></td>
                  <td height="19"> 
                    <select name="zzzwishopen" class="input" id="wishopen" style="width:60px">
                      <option value="no" <?php if($zzzwishopen=='no') echo " selected "; ?>>主人专用</option>
                      <option value="yes" <?php if($zzzwishopen=='yes') echo " selected "; ?>>访客可用</option>
                    </select>
                  </td>
                </tr>
              <tr> 
                  <td  height="19"><font color="#77520A"><b>日记密码:</b></font></td>
                  <td height="19" colspan="3"> 
<input type="text" name="zzzdisplaymima" value="<?php echo $zzzdisplaymima; ?>" size="10" maxlength="6">私密日记通用密码
                  </td>
                </tr>
                <tr> 
                  <td  height="19"><font color="#774212"><b>日记首语:</b></font></td>
                  <td height="19" colspan="3"> 
                    <textarea id="sign"  name="sign" cols="25" rows="3"><?php echo $sign; ?></textarea>
                  </td>
                </tr>
                <tr> 
                  <td  height="19"><font color="#77520A"><b><font color="#77520A">日记公告:</font></b></font></td>
                  <td height="19" colspan="3"> 
                    <textarea rows="3" name="spacenews" cols="25"><?php echo $spacenews; ?></textarea>
                  </td>
                </tr>
                <tr> 
                     <td colspan="4"> 
                    <p align="center"> 
                      <input type="submit" name="Submit" value=" 提 交 ">
                      <input type="reset" name="Submit2" value=" 重 置 ">
                  </td>
                </tr>
              </table>
            </form>
            <img id="preview" src="<?php echo $spacelogo; ?>" width="110" height="80"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>



