l六-jsp页面各种标签的用法

l六-jsp页面各种标签的用法一 when 标签 lt td style width 150px gt lt span gt lt c choose gt lt c when test model type 1 gt 商业投诉 c when

大家好,我是讯享网,很高兴认识大家。

一:when标签

<tdstyle="width:150px">

                            <span>

                            <c:choose>

                                <c:whentest="${model.type==1}">

                                           商业投诉

                                </c:when>

                                <c:whentest="${model.type==7}">

                                           通信投诉

                                </c:when>

                            </c:choose>

                            </span>

                         </td>

二:select

function statuschange()

   {

     $("#pervalue").val('');

   }

 

<tdclass="l-table-edit-td">             

           <selectname="permode" id="permode" ltype="select"onchange="javascript:statuschange();">

                   <optionvalue="0"<c:iftest="${busiCompanyGood.permode==0}">selected</c:if>>百分比</option>

                   <optionvalue="1"<c:iftest="${busiCompanyGood.permode==1}">selected</c:if>>每单固定费用(成交)</option>

                   <optionvalue="2"<c:iftest="${busiCompanyGood.permode==2}">selected</c:if>>每月总包费用</option>

                   <optionvalue="3"<c:iftest="${busiCompanyGood.permode==3}">selected</c:if>>每单固定费用(分配)</option>

                </select>

             

              </td>

三:<if></if>

<div>

              <span>订单号:${orderno}</span>

              <spanstyle="margin-left:200px">四联单号:${billno}</span>

              <spanstyle="margin-left:200px">状态:<s:if test="status==0">待处理</s:if>

                 <s:iftest="status==1">已分配</s:if><s:if test="status==2">处理中</s:if>

                 <s:iftest="status==3">未成交</s:if><s:if test="status==4">成交</s:if>

                 <s:iftest="status==5">关闭</s:if><s:if test="status==6">修改关闭</s:if>


讯享网

                    <s:iftest="status==10">待解决</s:if><s:if test="status==11">已处理</s:if> </span>

           </div>

四:iterator

<divid=u7class="u7">

      <s:iteratorvalue='sysOperateRecordList'id='operatelist'>

        <s:iftest="#operatelist.actionid==104 ">

     

       <div style="font-size:10px; font-weight:normal; font-style:normal; color:#;">

           <div>

              <s:propertyvalue='#operatelist.action'/>

           </div>

           <div>

              <span><s:datename='#operatelist.operatetime'format="yyyy-MM-dd HH:mm:ss"/></span>

           </div>

        </div>

        <div

           style="font-size:10px; font-weight:normal; font-style:normal; color:#;">

           受理商家:&nbsp;<span>${company.companyname }</span>

        </div>

  

      </s:if>

      </s:iterator>

      </div>

五:默认选择上一次选中的checkbox。

<tr>

                <tdclass="l-table-edit-td"valign="top">首页显示</td>

                <td class="l-table-edit-td"style="width:160px">

                    <inputid="rbtnl_0"type="radio"name="isnotice"value="1" <c:iftest="${isnotice==1}">checked</c:if>/><label for="rbtnl_0"></label>&nbsp;&nbsp;&nbsp;&nbsp;

                  <inputid="rbtnl_1"type="radio"name="isnotice"value="0" <c:if test="${isnotice==0||isnotice==''}">checked</c:if>/><labelfor="rbtnl_1"></label>

                </td>              

                <tdclass="l-table-edit-td"style="width:160px"></td>

                <tdalign="left"></td>

            </tr>  

 

 

小讯
上一篇 2025-04-02 10:05
下一篇 2025-01-06 20:51

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/41000.html