{__NOLAYOUT__}
<include file="Common:dialog" />
<script language="javascript">
			var editor;
			KindEditor.ready(function(K) {			
				editor = K.create('textarea[name="content"]', {
					resizeType : 1,
					allowPreviewEmoticons : false,
					allowImageUpload : false,
					items : [
						'source','fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'image','multiimage', 'link','|','flash','media','|','baidumap']
				});
				var editor = K.editor({
					allowFileManager : true
				});

				K('#image3').click(function() {
					editor.loadPlugin('image', function() {
						editor.plugin.imageDialog({
							showRemote : false,
							imageUrl : K('#pic').val(),
							clickFn : function(url, title, width, height, border, align) {
								K('#pic').val(url);
								editor.hideDialog();
							}
						});
					});
				});				
			});
</script>

<div class="page_table" style="width: 98%;">
    <!--<table width="100%" cellpadding="0" cellspacing="0" border="0" class="box_top">
        <thead class="thead">
            <tr class="space">
                <th colspan="10">编辑文章</th>
            </tr>
        </thead>
    </table>-->
    <form action="{:U("Admin/$modulename/Save")}" method="post" class="formvalidate">
    <input type="hidden" name="id" value="{$data.id}" id="id" />
        <table width="100%" cellpadding="0" cellspacing="3" border="0">
            <tbody>
                <tr>
                    <td class="left" width="120">
                        <label class="validation">
                            <span class="spanMsg">*</span>所属栏目：
                        </label>
                    </td>  
                    <td class="rowform select_type">
                        {$category}
                </td>
                    <td width="20" class="field">
                        <img title="" class="title2div" src="__PUBLIC__/Admin/images/icons/icon_help.png" width="16" height="16">				
                    </td>
                </tr>
                <tr>
                    <td class="left">
                        <label class="validation"><span class="spanMsg">*</span>标题：</label>
                    </td>
                    <td>
                        <input type="text" class="input rounded" name="title" size="50" value="{$data.title}" style="width:300px;" required validate="{ required:true,maxlength:50}">
                    </td>
                    <td class="field"></td>
                </tr>
<tr>
                    <td class="left">
                        <label class="validation"><span class="spanMsg">*</span>缩略图：</label>
                    </td>
                    <td>
                    <p>
                        <input type="text" class="input rounded" name="pic" id="pic" size="30" value="{$data.pic}" style="float: left;width: 300px;" required validate="{ required:true,maxlength:200}">  
                        <input type="button" id="image3"  class="type-file-button" />
                        </p>                        
                    </td>
                    <td class="field"></td>
                </tr>                
                <!--
                <tr>
                    <td class="left">
                        <label class="validation">标题颜色：</label>
                    </td>
                    <td>
                        <input type="text" name="colorval" id="color" value="{$data.colorval}" class="input rounded iColorPicker" size="10">
                        <a href="javascript:void(0)" id="select_color" onclick="iColorShow('color','select_color')" class="icon_select">
                            <img src="__PUBLIC__/Admin/images/color.png" align="absmiddle">
                        </a>
                    </td>
                    <td class="field">
                        <img title="链接名称链接颜色，只对文字链接时有效，留空将采用全局链接样式" class="title2div" src="__PUBLIC__/Admin/images/icons/icon_help.png" width="16" height="16">				
                    </td>
                </tr>
                
                <tr>
                    <td class="left" width="150">
                        <label class="validation">文章来源：</label>
                    </td>
                    <td><input type="text" class="input rounded" name="source" id="source" size="30" value="{$data.source}" style="width:300px;"></td>
                    <td class="field"></td>
                </tr>
                <tr>
                    <td class="left" width="150">
                        <label class="validation">文章作者：</label>
                    </td>
                    <td><input type="text" class="input rounded" name="author" id="author" size="30" value="{$data.author}" style="width:300px;"></td>
                    <td class="field"></td>
                </tr>-->
                <tr>
                    <td class="left">
                        <label class="validation">关键词：</label>
                    </td>
                    <td><input type="text" class="input rounded" name="keyword" id="keyword" size="30" value="{$data.keyword}" style="width:300px;"></td>
                    <td class="field"></td>
                </tr>
                   
                <tr>
                    <td class="left">
                        <label class="validation">详细内容：</label>
                    </td>
                    <td>
<textarea name="content" style="width:600px;height:300px;visibility:hidden;">{$data.content}</textarea>                        
                    </td>
                    <td class="field"><img title="详细内容。" class="title2div" src="__PUBLIC__/Admin/images/icons/icon_help.png" width="16" height="16">				</td>
                </tr>
                <tr>
                    <td class="left">
                        <label class="validation">点击次数：</label>
                    </td>
                    <td>
                        <input type="text" name="hits" value="{$data.hits}" class="input rounded" size="25">  
                    </td>
                    <td class="field">

                    </td>
                </tr>
                <tr>
                    <td class="left">
                        <label class="validation">排列排序：</label>
                    </td>
                    <td>
                        <input type="text" name="order" value="{$data.order}" class="input rounded" size="25">  
                    </td>
                    <td class="field">

                    </td>
                </tr>
                <tr>
                    <td class="left">
                        <label class="validation">审核：
                        </label>
                    </td>  
                    <td class="right">
                        <ul>

                            <li>
                                <label>
                                    <input type="radio" <if condition="$data.status eq '1'">checked="checked"</if> value="1" name="status">是</label>
                            </li>
                            <li>
                                <label>
                                    <input type="radio" <if condition="$data.status eq '0'">checked="checked"</if> value="0" name="status">否</label>
                            </li>
                        </ul>
                    </td>
                    <td class="field">
                        <img title="选择"否"则该信息暂时不显示在前台" class="title2div" src="__PUBLIC__/Admin/images/icons/icon_help.png" width="16" height="16">				
                    </td>
                </tr>
            </tbody>
        </table>
<input type="submit" style="display:none;" name="dosubmit" id="dosubmit" class="dialog" value=" 提交 ">
    </form>
</div>
