<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>问题操作</title>
<link href="templates/default/styles/kcms.css" rel="stylesheet" type="text/css" />
    <script src="scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="inc/kindeditor/kindeditor-min.js" type="text/javascript"></script>
    <script src="scripts/public.js" type="text/javascript"></script>
    <script src="/inc/artDialog/artDialog.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#postform").submit(function () {
                if ($("#postsubmit").attr("disabled") == true) {
                    return false;
                }
                $("#postsubmit").attr("disabled", "disabled");

                var flag = true;
                if ($("#contentnum").html() == "0") {
                    $("#content_tip").html("请填写回答内容！");
                    $("#postsubmit").attr("disabled", "");
                    flag = false;
                }
                if ($("#xsf").val() == "") {
                    $("#xsf_tip").html("请填写新悬赏分！");
                    $("#postsubmit").attr("disabled", "");
                    flag = false;
                }
                return flag;
            });
        });
    </script>
</head>
<body>
<div class="shortbox">
<%if act=="added"%>
    <script type="text/javascript">
        EditorInit('postform', 'content', callCount);
    </script>
<form id="postform" action="" method="post">
		<fieldset>
			<legend>问题标题</legend>
			<div class="a_d">{askinfo.title}</div>
		</fieldset>
		<fieldset>
			<legend>问题内容</legend>
			<div class="a_d">{askinfo.content}</div>
		</fieldset>
        <br />
		补充内容
			<div class="a_c"><textarea name="content" rows="8" style="width:100%">{askinfo.added}</textarea></div>
            <div class="a_i"><em><span id="content_tip"></span></em>已输入<span id="contentnum">200</span>字</div>
            <div class="a_s">
               <input type="submit" name="button" id="Submit1" value=" 提交修改 " /> 
               <input type="button" name="button2" id="button2" value="  取 消  " onclick="art.dialog.close();"/>
            </div>
</form>
<%/if%>

<%if act=="tgxs"%>
<form id="postform" action="" method="post">
		<fieldset>
			<legend>问题标题</legend>
			<div class="a_d">{askinfo.title}</div>
		</fieldset>
		<fieldset>
			<legend>问题内容</legend>
			<div class="a_d">{askinfo.content}</div>
		</fieldset>
        <br />
        提高悬赏
			<div class="a_c">现在的悬赏分：{askinfo.xsf}</div>
            <div class="a_c">提高悬赏分为：
                <input name="xsf" type="text" style="width:38px" id="xsf" value="" class="inputs" onkeyup="this.value=this.value.replace(/\D/g,'')" onpaste="return false" style="ime-mode:disabled"/> 您当前的可用分<span id="score">{userscore}</span>分
            </div>
            <div class="a_i"><em><span id="xsf_tip"></span></em></div>
            <div class="a_s">
               <input type="submit" name="button" id="postsubmit" value=" 提交修改 " /> 
               <input type="button" name="button2" id="button1" value="  取 消  " onclick="art.dialog.close();"/>
            </div>
</form>
<%/if%>
<%if act=="wmy"%>
<form id="Form1" action="" method="post">
		<fieldset>
			<legend>问题标题</legend>
			<div class="a_d">{askinfo.title}</div>
		</fieldset>
		<fieldset>
			<legend>问题内容</legend>
			<div class="a_d">{askinfo.content}</div>
		</fieldset>
        <br />
        无满意结束提问：
		<div class="a_c">确定无满意结束提问吗？你和回答者都无法得分，也不会退还你的悬赏分。</div>
            <div class="a_s">
               <input type="submit" name="button" id="Submit2" value=" 提交修改 " /> 
               <input type="button" name="button2" id="button3" value="  取 消  " onclick="art.dialog.close();"/>
            </div>
</form>
<%/if%>
<%if act=="cn"%>
<form id="Form2" action="" method="post">
		<fieldset>
			<legend>问题标题</legend>
			<div class="a_d">{askinfo.title}</div>
		</fieldset>
        <br />
        确定采纳此回答为最佳答案吗？
		<div class="a_c">选择满意度：
        <div class="myd">
              <input name="star" type="radio" value="1"/>☆ 
              <input name="star" type="radio" value="2"/>☆☆ 
              <input name="star" type="radio" value="3" checked="checked"/>☆☆☆ 
              <input name="star" type="radio" value="4"/>☆☆☆☆ 
              <input name="star" type="radio" value="5"/>☆☆☆☆☆
        </div>
        </div>
            <div class="a_s">
               <input type="submit" name="button" id="Submit3" value=" 采纳答案 " /> 
               <input type="button" name="button2" id="button4" value="  取 消  " onclick="art.dialog.close();"/>
            </div>
</form>
<%/if%>
</div>
</body>
</html>