<?php if(!defined('EMLOG_ROOT')) {exit('error!');}?>
<script type="text/javascript" src="./ckeditor/ckeditor.js"></script>
<div class=containertitle><b>忥å¿</b><span id="msg_2"></span></div><div id="msg"></div>
<div class=line></div>
<form action="save_log.php?action=add" method="post" enctype="multipart/form-data" id="addlog" name="addlog">
<table cellspacing="1" cellpadding="4" width="720" border="0">
<tbody>
<tr nowrap="nowrap">
<td><b>æ é¢ï¼</b><br />
<input type="text" maxlength="200" style="width:380px;" name="title" id="title"/>
<select name="sort" id="sort">
<option value="-1">éæ©åç±»...</option>
<?php foreach($sorts as $val):?>
<option value="<?php echo $val['sid']; ?>"><?php echo $val['sortname']; ?></option>
<?php endforeach;?>
</select>
<input maxlength="200" style="width:139px;" name="postdate" id="postdate" value="<?php echo $postDate; ?>"/>
<input name="date" id="date" type="hidden" value="" >
</td>
</tr>
<tr>
<td>
<b>å
容ï¼</b> <a href="javascript: displayToggle('FrameUpload', 0);autosave(1);" class="thickbox">é件管ç</a><span id="asmsg">
<?php doAction('adm_writelog_head'); ?>
<input type="hidden" name="as_logid" id="as_logid" value="-1"></span><br />
<div id="FrameUpload" style="display: none;"><iframe width="720" height="160" frameborder="0" src="attachment.php?action=selectFile"></iframe></div>
<textarea id="content" name="content" style="width:719px; height:460px; border:#CCCCCC solid 1px;"></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;" /><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;"></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" id="allow_remark" />å¦
<input type="radio" value="n" name="allow_remark" id="allow_remark" />
</td>
</tr>
<tr>
<td>æ¥åå¼ç¨ï¼æ¯
<input type="radio" checked="checked" value="y" name="allow_tb" id="allow_tb" />å¦
<input type="radio" value="n" name="allow_tb" id="allow_tb" />
</td>
</tr>
<tr>
<td>æ¥å¿è®¿é®å¯ç ï¼
<input type="text" value="" name="password" id="password" class="input" /> (ç空åä¸å 访é®å¯ç )
</td>
</tr>
</table>
<table cellspacing="1" cellpadding="4" width="720" border="0">
<tr>
<td align="center"><br>
<input type="hidden" name="ishide" id="ishide" value="">
<input type="submit" value="å叿¥å¿" onclick="return chekform();" class="button" />
<input type="hidden" name="author" id="author" value=<?php echo UID; ?> />
<input type="button" name="savedf" id="savedf" value="ä¿åè稿" onclick="autosave(2);" class="button" />
</td>
</tr>
</table>
</form>
<div class=line></div>
<script type="text/javascript">
$("#title").focus();
$("#menu_wt").addClass('sidebarsubmenu1');
$("#advset").css('display', $.cookie('em_advset') ? $.cookie('em_advset') : '');
setTimeout("autosave(0)",60000);
</script>