<!--
<?php
print <<<EOT
-->
<SCRIPT LANGUAGE="JavaScript">
<!--
function upfile(url,name,size,ty){
	document.getElementById(ty).value=url;
}
//-->
</SCRIPT> 
<form name="form1" method="post" action="index.php?lfj=$lfj&action=$job&uid=$uid&pageid=$pageid">
<div class="MainContainers">
  <div class="Header"><span class="tag">单独页面管理</span><span class="more">&gt;&gt;</span></div>
  <div class="Conter">

        <table class="FormTable">
          
<!--             <tr class="head"> 
              <td colspan="2">单独页面管理</td>
            </tr> -->
            <tr style="display:none"> 
              <td class='tdL'>单独页名称: </td>
              <td class='tdR'>
                <input type="text" name="postdb[name]" value="$rsdb[name]" size="40">      
                </td>
            </tr>
            <tr>
              <td class='tdL'>文章标题: </td>
              <td class='tdR'>
                <input type="text" name="postdb[title]" value="$rsdb[title]" size="70">
                (<span style="color:red;">必填项</span>) </td>
            </tr>
<!--
EOT;
$indexshows[$rsdb[indexshow]]="checked='checked'";
print <<<EOT
-->
        	<tr>
              <td class='tdL'>是否在首页显示:  </td>
                <td class='tdR'>
        	  	<input name="postdb[indexshow]" type="radio" value="1" $indexshows[1]> 
        	  	显示 
                    <input type="radio" name="postdb[indexshow]" value="0" $indexshows[0]> 不显示	  
                </td>
            </tr>

            <tr> 
              <td class='tdL'>头部模板:
              <td class='tdR'><input type="text" name="postdb[tpl_head]" size="40" id="head_tpl" value="$rsdb[tpl_head]">
                {$tpl_head}</td>
            <tr>
			  <td class='tdL'>底部模板:</td>
			  <td class='tdR'><input type="text" name="postdb[tpl_foot]" size="40" id="foot_tpl" value="$rsdb[tpl_foot]">
                {$tpl_foot}</td>
			</tr>  
            <tr>
			  <td class='tdL'>内容模板:</td>
			  <td class='tdR'><input type="text" name="postdb[tpl_main]" size="40" id="main_tpl" value="$rsdb[tpl_main]">
                {$tpl_main}</td>
			</tr>
            <tr>
			  <td class='tdL'>(你完全可以自己模仿template/default/alonepage.htm这个文件做一个模板,然后在这里输入模板所在路径) </td> 
              <td class='tdR'>风 格: {$style_select} (某些风格可能设置无效)</td>
            </tr>

            <tr> 
              <td class='tdL'> 静态网页名: </td>
              <td class='tdR'>
                <input type="text" name="postdb[filename]" value="$rsdb[filename]" size="50">
                (可以为多级目录) </td>
            </tr>

            <tr> 
              <td class='tdL'>分享标题: </td>
              <td class='tdR'>
                <input type="text" name="postdb[keywords]" value="$rsdb[keywords]" size="50">
                (可留空) </td>
            </tr>
        	<tr> 
                <td class='tdL'>分享描述: </td>
                <td class='tdR'>
                  <input type="text" name="postdb[descrip]" value="$rsdb[descrip]" size="100">
                  (可留空) </td>
            </tr>
        	<tr> 
                <td class='tdL'>分享图片: </td>
                <td class='tdR'>
                  <input name="postdb[picurl]" type="text" id="alongepicurl" value="$rsdb[picurl]" size="40" />
          		<iframe frameborder=0 height=30 scrolling=no src='$webdb[www_url]/do/upfile.php?fn=upfile&dir=alonepage&label=alongepicurl' width="300"></iframe></div>	  
              </td>
            </tr>

            <tr> 
              <td colspan="2">
        		<textarea name="postdb[content]" id="myEditor" style="width:800px;">$rsdb[content]</textarea>
        		<script type="text/javascript">
        		var editor_a = new baidu.editor.ui.Editor({minFrameHeight:190});
        		editor_a.render( 'myEditor' );
        		</script>
        		<div class="slectEditMode">
        			<a href="javascript:;" onclick="showEditMode()">内容模板选择</a>		</div>      </td>
            </tr>

<!--             <tr bgcolor="#FFFFFF"> 
              <td colspan="2" align="center"> 
                <label></label>
                <input type="hidden" name="id" value="$id">
                <input type="submit" name="Submit" value="提交">
                <input name="GetOutPic" type="checkbox" id="GetOutPic" value="1" />
              是否采集文中图片      </td>
            </tr> -->
        </table>
        <div class="submits">
                 <input type="hidden" name="id" value="$id">
                <input type="submit" name="Submit" value=" 提 交 " />
                 <input name="GetOutPic" type="checkbox" id="GetOutPic" value="1" />是否采集文中图片
        </div>
        </div>
    </div>
</form>


<div class="MainContainers">
  <div class="Header"><span class="tag">帮助说明</span></div>
  <div class="Conter">
    <ul class="notes">
      <li>分享标题、分享描述、分享图片 这三项都可以为空，但为了分享到朋友圈内容吸引人一点的话，就最好不要留空。</li>
    </ul>
  </div>
</div>

<br />
<!-- 
<table width="100%" border="0" cellspacing="1" cellpadding="3" class="tablewidth">
    <tr class="head"> 
      <td>帮助说明</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td>分享标题、分享描述、分享图片 这三项都可以为空，但为了分享到朋友圈内容吸引人一点的话，就最好不要留空。 </td>
    </tr>
</table> -->
<style>
.slectEditMode{
	padding:5px 0 5px 0;
}
.slectEditMode a{
	display:inline-blodk;
	padding:5px 10px;
	background:green;
	border-radius:5px;
	color:#FFF;
}
.fullbg { 
	background-color:#000; 
	opacity:0; 
	top:0; 
	left:0; 
	width:100%; 
	height:100%; 
	z-index:1001; 
	position:absolute;
	display:none;
}
#editmodes{ 
	position:absolute; 
	top:0;  
	right:0; 
	z-index:1002; 
	height:100%;
	width:0px;
	overflow:auto;
	overflow-x:hidden;
	scrollbar-face-color: #FFFFFF;
	scrollbar-shadow-color: #eee;
	scrollbar-highlight-color: #eee;
	scrollbar-3dlight-color: #FFFFFF;
	scrollbar-darkshadow-color: #FFFFFF;
	scrollbar-track-color: #FFFFFF;
	scrollbar-arrow-color: #D2E5F4; 
	background:#FFF;
}
</style>
<div id="editmodes"></div>
<div class="fullbg" id="fullbg1" onclick="hide_nav($('#editmodes'),$('#fullbg1'))"></div>
<!--
EOT;
?>
print <<<EOT
-->
<script>
function showEditMode(){
	$.get("/ewebeditor/baidu/php/editmode.php?"+Math.random(),function(d){
		$('#editmodes').html(d);
	});
	show_nav($('#editmodes'),$('#fullbg1'));
}
function show_nav(node,fullbg){
	fullbg.css({'display':'block'}).stop().animate({'opacity':.6},500,function(){
		node.stop().animate({'width':'500px'},300);
	});
}
function hide_nav(node,fullbg){
	fullbg.animate({'opacity':0},300,function(){$(this).css({'display':'none'});});
	setTimeout(function(){
		node.stop().animate({'width':'0px'},300);
	}, 500)
}
function insertHtml(nums) {
	var strs=$('.stylemode'+nums).html();
	editor_a.execCommand('insertHtml',strs);
	hide_nav($('#editmodes'),$('#fullbg1'));
}
/*function getContent(){
    editor_a.getContent();
}
function setContent(){
	editor_a.setContent('aaaaa');
}*/
</script>