<?php
if(!defined('EMLOG_ROOT')) {exit('error!');}
$isdraft = $hide == 'y' ? true : false;
?>
<script type="text/javascript" src="../lib/js/jquery/plugin-cookie.js"></script>
<script type="text/javascript" src="./ckeditor/ckeditor.js"></script>
<div class=containertitle><b><?php if ($isdraft) :?>ç¼è¾è稿<?php else:?>ç¼è¾æ¥å¿<?php endif;?>
</b><span id="msg_2"></span></div><div id="msg"></div>
<div class=line></div>
<form action="save_log.php?action=edit" method="post" id="addlog" name="addlog">
<table cellspacing="1" cellpadding="4" width="720" border="0">
<tbody>
<tr nowrap="nowrap">
<td><b>æ é¢ï¼</b><span id="auto_msg"></span><br />
<input maxlength="200" style="width:380px;" name="title" id="title" value="<?php echo $title; ?>"/>
<select name="sort" id="sort">
<?php
$sorts[] = array('sid'=>-1, 'sortname'=>'éæ©åç±»...');
foreach($sorts as $val):
$flg = $val['sid'] == $sortid ? 'selected' : '';
?>
<option value="<?php echo $val['sid']; ?>" <?php echo $flg; ?>><?php echo $val['sortname']; ?></option>
<?php endforeach; ?>
</select>
<input maxlength="200" style="width:139px;" name="postdate" id="postdate" value="<?php echo gmdate('Y-m-d H:i:s', $date); ?>"/>
<input name="date" id="date" type="hidden" value="<?php echo $date; ?>" >
</td>
</tr>
<tr>
<td>
<b>å
容ï¼</b> <a href="javascript: displayToggle('FrameUpload', 0);" class="thickbox">é件管ç</a><span id="asmsg">
<?php doAction('adm_writelog_head'); ?>
<input type="hidden" name="as_logid" id="as_logid" value="<?php echo $logid; ?>"></span><br />
<div id="FrameUpload" style="display: none;"><iframe width="720" height="160" frameborder="0" src="attachment.php?action=attlib&logid=<?php echo $logid; ?>"></iframe></div>
<textarea id="content" name="content" style="width:719px; height:460px; border:#CCCCCC solid 1px;"><?php echo $content; ?></textarea>
<script type="text/javascript">CKEDITOR.replace( 'content',{resize_minHeight : 460,height : 460});</script>
</td>
</tr>
<tr nowrap="nowrap">
<td><b>æ ç¾ï¼</b>(Tagï¼æ¥å¿çå
³é®åï¼åè§éå·","åéå¤ä¸ªæ ç¾)<br />
<input name="tag" id="tag" maxlength="200" style="width:715px;" value="<?php echo $tagStr; ?>" /><br />
<div style="color:#2A9DDB;cursor:pointer;"><a href="javascript:displayToggle('tagbox', 0);">éæ©å·²ææ ç¾»</a></div>
<div id="tagbox" style="width:688px;margin-left:30px;display:none;">
<?php
$tagStr = '';
foreach ($tags as $val)
{
$tagStr .=" <a href=\"javascript: insertTag('{$val['tagname']}','tag');\">{$val['tagname']}</a> ";
}
echo $tagStr;
?>
</div>
</td>
</tr>
</tbody>
</table>
<div id="show_advset" onclick="displayToggle('advset', 1);"><b>é«çº§é项</b></div>
<table cellspacing="1" cellpadding="4" width="720" border="0" id="advset">
<tr nowrap="nowrap">
<td>æ¥å¿æè¦ï¼<br />
<textarea id="excerpt" name="excerpt" style="width:719px; height:260px; border:#CCCCCC solid 1px;"><?php echo $excerpt; ?></textarea>
<script type="text/javascript">CKEDITOR.replace( 'excerpt',{resize_minHeight : 230,height : 230});</script>
</td>
</tr>
<tr nowrap="nowrap">
<td>å¼ç¨éåï¼(Trackbackï¼éç¥ä½ æå¼ç¨çæ¥å¿)<b><br /></b>
<textarea name="pingurl" id="pingurl" rows="3" cols="" style="width:715px;" onclick="if (this.value=='æ¯è¡è¾å
¥ä¸ä¸ªå¼ç¨å°å') this.value='';" class="input">æ¯è¡è¾å
¥ä¸ä¸ªå¼ç¨å°å</textarea>
</td>
</tr>
<tr>
<td>æ¥åè¯è®ºï¼æ¯
<input type="radio" checked="checked" value="y" name="allow_remark" <?php echo $ex; ?>/>å¦
<input type="radio" value="n" name="allow_remark" <?php echo $ex2; ?> />
</td>
</tr>
<tr>
<td>æ¥åå¼ç¨ï¼æ¯
<input type="radio" checked="checked" value="y" name="allow_tb" <?php echo $add; ?> />å¦
<input type="radio" value="n" name="allow_tb" <?php echo $add2; ?> />
</td>
</tr>
<tr>
<td>æ¥å¿è®¿é®å¯ç ï¼
<input type="text" value="<?php echo $password; ?>" name="password" id="password" class="input" /> (ç空åä¸å 访é®å¯ç )
</td>
</tr>
</table>
<table cellspacing="1" cellpadding="4" width="720" align="center" border="0">
<tr>
<td align="center" colspan="2"><br>
<input type="hidden" name="ishide" id="ishide" value="<?php echo $hide; ?>">
<input type="hidden" name="gid" value=<?php echo $logid; ?> />
<input type="hidden" name="author" id="author" value=<?php echo $author; ?> />
<input type="submit" value="ä¿åå¹¶è¿å" onclick="return chekform();" class="button" />
<input type="button" name="savedf" id="savedf" value="ä¿å" onclick="autosave(2);" class="button" />
<?php if ($isdraft) :?>
<input type="submit" name="pubdf" id="pubdf" value="åå¸" onclick="return chekform();" class="button" />
<?php endif;?>
</td>
</tr>
</table>
</form>
<div class=line></div>
<script type="text/javascript">
$("#advset").css('display', $.cookie('em_advset') ? $.cookie('em_advset') : '');
setTimeout("autosave(0)",60000);
<?php if ($isdraft) :?>
$("#menu_draft").addClass('sidebarsubmenu1');
<?php else:?>
$("#menu_log").addClass('sidebarsubmenu1');
<?php endif;?>
</script>