#parse("/common/meta_.svt")
<script src="/misc/kindeditor/kindeditor-min.js" type="text/javascript"></script>
<div class="main ui-widget">
<p class="ui-page-title">游戏官网-添加新闻</p>
<div class="work">
<form  action="action.ashx" method="post" id="news_form">
<input type="hidden" name="cmd" value="offiacl_news_append" />
<input type="hidden" name="tid" value="${http_content.Request.QueryString.get_item('tid')}" />
<input type="hidden" name="gid" value="${http_content.Request.QueryString.get_item('gid')}" />
<div class="operadiv">
<table class="opera">
<tr><td class="t1">标题:</td><td class="t2"><input maxlength="50" id="newstitle" name="news_title" type="text" /></td><td class="t3"><span class="icon"></span></td><td class="t4">新闻的标题</td></tr>
<tr><td class="t1">keywords:</td><td class="t2"><input maxlength="50" name="news_keywords" type="text" /></td><td class="t3"><span class="icon"></span></td><td class="t4">新闻的keywords</td></tr>
<tr><td class="t1">description:</td><td class="t2"><input maxlength="50" name="news_description" type="text" /></td><td class="t3"><span class="icon"></span></td><td class="t4">新闻的description</td></tr>
<tr><td class="t1">是否显示:</td><td class="t2">
<select name="news_show">
<option value="show">显示</option>
<option value="hidden">隐藏</option>
</select></td><td class="t3"><span class="icon"></span></td><td class="t4">前台是否可以查看到该新闻</td></tr>




<tr><td class="t1">新闻分类:</td><td class="t2">
<select name="news_category">
##<option value="zixun">资讯</option>
##<option value="gonglue">攻略</option>
##<option value="xinde">心得</option>
##<option value="huodong">活动</option>
##<option value="ziliao">资料</option>
#if(${http_content.Request.QueryString.get_item('mo')}=='Website01')
<option value="huodong">活动</option>
<option value="ziliao">资料</option>
<option value="gonglue">攻略</option>
<option value="zixun">新闻</option>
#end
#if(${http_content.Request.QueryString.get_item('mo')}=='Website02')
<option value="gonglue">新闻</option>
<option value="huodong">活动</option>
<option value="xinde">心得</option>
<option value="zixun">资讯</option>
<option value="ziliao">资料</option>
#end
#if(${http_content.Request.QueryString.get_item('mo')}=='Website03')
<option value="huodong">活动</option>
<option value="xinde">媒体</option>
<option value="ziliao">资料</option>
<option value="zixun">新闻</option>
<option value="gonglue">攻略</option>
#end
#if(${http_content.Request.QueryString.get_item('mo')}=='Website04')
<option value="huodong">活动</option>
<option value="xinde">公告</option>
<option value="ziliao">资料</option>
<option value="zixun">新闻</option>
<option value="gonglue">攻略</option>
#end
#if(${http_content.Request.QueryString.get_item('mo')}=='Website05')
<option value="huodong">热点活动</option>
<option value="xinde">公告</option>
<option value="ziliao">游戏资料</option>
<option value="gonglue">游戏攻略</option>
<option value="zixun">新闻</option>
#end
#if(${http_content.Request.QueryString.get_item('mo')}=='Website06')
<option value="huodong">热点活动</option>
<option value="xinde">公告</option>
<option value="ziliao">游戏资料</option>
<option value="gonglue">游戏攻略</option>
<option value="zixun">新闻</option>
#end
#if(${http_content.Request.QueryString.get_item('mo')}=='Website07')
<option value="huodong">热门活动</option>
<option value="xinde">官方公告</option>
<option value="ziliao">游戏资料</option>
<option value="gonglue">攻略心得</option>
<option value="zixun">游戏新闻</option>
#end
#if(${http_content.Request.QueryString.get_item('mo')}=='Website08')
<option value="huodong">活动</option>
<option value="zixun">公告</option>
<option value="ziliao">资料</option>
#end
#if(${http_content.Request.QueryString.get_item('mo')}=='Website09')
<option value="huodong">活动</option>
<option value="zixun">公告</option>
<option value="ziliao">资料</option>
<option value="gonglue">游戏攻略</option>
#end
#if(${http_content.Request.QueryString.get_item('mo')}=='Website20')
<option value="huodong">活动</option>
<option value="ziliao">资料</option>
<option value="gonglue">游戏攻略</option>
#end
</select></td><td class="t3"><span class="icon"></span></td><td class="t4">新闻所属分类(对应前台模板)</td></tr>
<tr><td class="t1" style=" color:Red">注意：</td><td class="t2" colspan="3">本编辑器不支持除编辑器之外的特殊格式，粘贴时需粘贴为无格式文本或消除特殊格式之后粘贴入编辑器内。</td></tr>

</table>

</div>
<div class="operadiv">
<textarea name="news_htmls" cols="0" rows="0" style=" width:100%; height:400px;"></textarea>
</div>
<script type="text/javascript">
    var ke;
    KindEditor.ready(function (K) { ke = K.create('textarea[name="news_htmls"]', { allowFileManager: true }); });
    var html_input = document.createElement("input");
    function formpost() {
        var title = $("#newstitle").val();
        if (title == null||title=="") {
            showbox("标题不允许为空");
            return false;
        }
        html_input.setAttribute("type", "hidden");
        html_input.setAttribute("name", "html_html");
        html_input.setAttribute("value", ke.html());
        $jq("#news_form").append(html_input);

        $("#news_form").submit();
        //return true;
    }
    var gid = getparaFY("gid");
    var tid = getparaFY("tid");
    var mo="${http_content.Request.QueryString.get_item('mo')}";
    AjaxForm({ finder: '#news_form', succEnd: 'msg', refurl: 'master.aspx?view=offical_newsmanage&tid=' + tid + '&gid=' + gid + '&mo=' + mo , message: "新闻添加成功！" });

</script>
<div class="postdiv">
<input value="保存设置" onclick="formpost()" type="button" />
</div>
</form>
</div>
</div>
#parse("/common/foot_.svt")