展开与隐藏查询条件

 <div id="searchItemSwitchDiv" style="cursor: pointer;margin-top: 10px; margin-bottom: 10px; position: relative;border: 1px solid #97B9DF;background: #EAF2FD;" align="center">
        <img id="closeSearchImg" οnclick="changeSearchDiv('close');" title="close" src="../images/search_btn_close.gif"/>
     <img id="openSearchImg" style="display: none" οnclick="changeSearchDiv('open');" title="open" src="../images/search_btn_open.gif"/>
    </div>
  <div id="seachbar"> <span id="seachtxt"><s:text name="msg.portalMS.queryButton" /></span>
      <s:form  id="queryForm" action="viewPublishDomain" theme="simple">
      <s:hidden id="action" name="action" />
      <div >
        <ul>
          <li><s:text name="msg.portalMS.sysmgr.publishDomain.name" />&nbsp;
              <s:textfield name="publishDomain.name" size="20" maxlength="20"/>
          </li>
          <li><s:text name="msg.portalMS.sysmgr.publishDomain.ip" />&nbsp;
              <s:textfield name="publishDomain.ip" size="20" maxlength="20"/>
          </li>
          <s:if test="action !='template'">
          <li><s:text name="msg.portalMS.sysmgr.publishDomain.type" />&nbsp;
           <s:select  name="publishDomain.type" list="#{'':getText('msg.portalMS.system.select.all'),'0':getText('msg.portalMS.sysmgr.publishDomain.keyDateType.label.zero'),'1':getText('msg.portalMS.sysmgr.publishDomain.keyDateType.label.one')}" theme="simple" listKey="key" listValue="value"></s:select>
          </li></s:if>
          <li>
            <input id="searchButton" type="image" src="../images/button_3_<%=language%>.gif"  οnclick="mysubmit('queryForm');"/>
          </li>
          <li><input name="reset" border="0" type="image" value='<s:text name="msg.portalMS.system.reset"/>' src="../images/reset_<%=language%>.gif" οnclick="clearForm();" /></li>
        <li id="errorMessage">
            <s:fielderror fieldName="publishDomain.name" cssStyle="color: red;" />
          </li>
        </ul>
        <div class="right"><img src="../images/se_ic.jpg" /></div>
      </div>
     </s:form>

  </div>


function changeSearchDiv(op)
{
    var closeSearchImg = document.getElementById("closeSearchImg");
    var openSearchImg = document.getElementById("openSearchImg");
    
    var searchbar = document.getElementById("seachbar");
    
    // 判断操作类型,op 取值:close 关闭搜索条 open:打开搜索条
    if(op == 'close')
    {
        openSearchImg.style.display="block";
        closeSearchImg.style.display="none";
        searchbar.style.display="none";
    }
    else if(op == 'open')
    {
        openSearchImg.style.display="none";
        closeSearchImg.style.display="block";
        searchbar.style.display="block";
    }
}



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值