html选择语句的写法

本来以为很简单,可是用的时候就是不知道怎么写还是得记录哈

<html>
    <head>
        #parse("layout/header.vm") 
    </head>
    <body>
        <div class="top-title">
            <span class="arw-d"></span>
            <h2 class="tt">#if("$!notice.articleId" == "")发布#else修改#end内容</h2><!--一般标题选择-->
        </div>


        <!--表单-->
        <form id="testForm" name="testForm" method="post" class="m-form" action="#if("$!notice.articleId" == "")/publish/noticeAdd.htm #else /publish/noti
<!--提交路径的选择-->

ceUpdate.htm #end" enctype="multipart/form-data">

		<input type="hidden" name="resultCode" id="resultCode" value="$!resultCode" />
		<input type="hidden" name="articleId" id="articleId" value="$!notice.articleId" />
		<input type="hidden" name="status" value="$!status" />
		<input type="hidden" name="msg" id="msg" value="$!msg" />
		<input type="hidden" name="articleContent" id="articleContent" value="$!notice.articleContent" />
		
		<div class="item-box fn-clear">
            <div class="item" style="width:100%">
                <label class="lab">
                    <span class="required">*</span>标题:</label>
                    <input type="text" value="$!notice.articleTitle" name="articleTitle" style="width:760px" maxlength="50" class="ipt"/>
            </div>
        </div>
		<div class="item-box fn-clear">
            <div class="item" style="width:100%">
                <label class="lab">
                    <span class="required">*</span>内容:</label>
    			    <textarea id="CKeditor" style="width:772px;height:494px"></textarea>
					
            </div>
        </div>
		<div class="item-box fn-clear">
			<div class="item" style="width:100%">
				<label class="lab">摘要:</label>
                <textarea name="articleSummary" style="width:772px">$!notice.articleSummary</textarea>
           </div>
        </div>
		<div class="item-box fn-clear" >
			 <div class="item" style="width:100%" >
                <label class="lab">
                    <span class="required">*</span> 发布到:</label>
                    <div class="jqtransform jqtransform-select3 select_type" >
                        <select name="channel">
                            <option value="">-请选择项目-</option>
							#foreach($channel in $channelList)
								<option value="$!channel.categoryId" #if($channel.categoryId == $super.categoryId) selected #end>$channel.categoryName
								</option>
							#end
						</select>
                    </div>
					<div class="jqtransform jqtransform-select3 select_type" >
                        <select name="categoryCode">
                            <option value="">-请选择分类-</option>
							#foreach($sub in $subList)
								<option value="$!sub.categoryCode" #if($sub.categoryCode == $notice.categoryCode) selected #end>
									$!sub.categoryName
                                </option>
							#end
                        </select>
						<span id="categoryInfo"></span>
                    </div>
			 </div>
        </div>
	   <div class="bottom-c" style="align:center">
          <a href="javascript:;" class="u-btn u-btn-green mr10" id="save">#if("$!notice.articleId" == "")发布#else修改#end</a>
           #if("$!notice.articleId" == "")
		   <a href="/publish/noticeToAdd.htm" class="u-btn u-btn-red" id="return_back">取消</a>
		   #else
		   <a href="javascript:history.go(-1);" class="u-btn u-btn-red" >返回</a>
		   #end
       </div>
	</form>
<script type="text/javascript">
    seajs.use($_GLOBAL.mode + 'publish/noticeToAdd.js');
</script>
</body>
</html>


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值