<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    小菜毛毛技術(shù)分享

    與大家共同成長

      BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
      164 Posts :: 141 Stories :: 94 Comments :: 0 Trackbacks

    <%@ include file="/common/taglibs.jsp"%>

    <title><fmt:message key="menu.admin" />-><fmt:message key="menu.admin.departmentsManager" /></title>

    <link rel="stylesheet" type="text/css" media="all" href="<c:url value='/styles/default.css'/>" />
    <link rel="stylesheet" type="text/css" media="all" href="<c:url value='/styles/helptip.css'/>" />
    <link rel="stylesheet" type="text/css" media="print" href="<c:url value='/styles/print.css'/>" />

    <c:if test="${not empty errorReason}">
       <div align="center" style="color: red">
           <c:if test="${errorReason=='updateConstraint'}">
             <fmt:message key="tcsBox.updateConstraint"/>
           </c:if>
           <c:if test="${errorReason=='addConstraint'}">
             <fmt:message key="tcsBox.addConstraint"/>
           </c:if>
       </div>
    </c:if>
    <html:form action="editBoxes.html?method=finishEdit" styleId="TcsboxForm" >

    <table class="detail" valign="top"> 
    <c:if test="${from == 'update' or param.handle =='update'}">
      <input type="hidden" value="update"  name="handle"/>
    </c:if >
    <c:if test="${from == 'add'}">
      <input type="hidden" value="add"  name="handle"/>
    </c:if >  
    <!-- <c:set var="pageButtons">
        <tr>
            <td height="50"></td>
            <td class="buttonBar">
             <c:if test="${from == 'update'}">
               <input type="submit" value='<fmt:message key="button.submit"/>' class="button" />
               <input type="hidden" value="update"  name="handle"/>
             </c:if >
             <c:if test="${from == 'add'}">
              <input type="submit" value='<fmt:message key="button.submit"/>' class="button" />
              <input type="hidden" value="add"  name="handle"/>
                </c:if >  
                 <input type="reset" value='<fmt:message key="button.reset"/>' class="button"/>
                   
                    <input type="button" value='<fmt:message key="button.back"/>' class="button" onclick="history.back()"/>
            </td>
        </tr>
    </c:set> -->
     
          <c:if test="${from=='update' or param.handle =='update'}">
            <tr>
             <th>
                 <manhourpool:label key="TcsBoxForm.tcs_box_id"/>
             </th>
             <td>
                 <html:text property="tcs_box_id" styleId="tcs_box_id" readonly="true"></html:text>
             </td>
             </tr>
           </c:if>
         <tr>
             <th>
                 <manhourpool:label key="TcsBoxForm.code"/>
             </th>
             <td>
                 <html:text property="tcs_box_code" styleId="tcs_box_code" ></html:text>
             </td>
         </tr>
          <tr>
             <th>
                 <manhourpool:label key="TcsBoxForm.tcs_box_name"/>
             </th>
             <td>
                 <html:text property="tcs_box_name" styleId="tcs_box_name" ></html:text>
             </td>
         </tr>
         <tr>
             <th>
                 <manhourpool:label key="TcsBoxForm.companycode"/>
             </th>
             <td>
             <html:select property="company_code" styleId="company_code" onchange="changeCompany_Code(this)">
              <html:options collection="companyLst" property="code" labelProperty="name" />
             </html:select>
             </td>
         </tr>
         <tr>
             <th>
                 <manhourpool:label key="TcsBoxForm.burea"/>
             </th>
             <td>
             <html:select property="bureau_id"  styleId="bureau_id" >
              <html:options collection="bureauLst" property="code" labelProperty="name" />
             </html:select>
             </td>
         </tr>
        
          <tr>
             <th>
                 <manhourpool:label key="TcsBoxForm.district"/>
             </th>
             <td>
             <html:select property="district_id"  styleId="district_id" >
              <html:options collection="districtLst" property="code" labelProperty="name" />
             </html:select>
             </td>
         </tr>
        
         <tr>
             <th>
                 <manhourpool:label key="TcsBoxForm.address"/>
             </th>
             <td>
        <html:text property="tcs_address" styleId="tcs_address" ></html:text>
             </td>
         </tr>
         <c:if test="${from=='update' or param.handle =='update'}">
              <tr>
              <th>
                  <manhourpool:label key="chartem.state"/>
              </th>
              <td>
                  <html:select property="state" >
                     <html:options collection="doms" property="column_value" labelProperty="description"/>
                  </html:select>
              </td>
             </tr>
         </c:if>
    </table>
    <table align="center">
    <!-- <c:out value="${pageButtons}"  escapeXml="false"/> --></table>
    </html:form>


    <script type='text/javascript' src='dwr/interface/bureauManager.js'></script>
    <script type='text/javascript' src='dwr/interface/districtManager.js'></script>
    <script type='text/javascript' src='dwr/engine.js'></script>
    <script type='text/javascript' src='dwr/util.js'></script>
    <script type="text/javascript">
       var bureau_on_load=true;
       var bureau_id='<c:out value="${tcsBoxForm.bureau_id}"/>';
       window.onload=function(){
         window.changeCompany_Code(document.all.company_code);
     var ppage = window.parent.document.frames['theiframtwo'];
     if('<c:out value="${handlesucc}" />'){
      ppage.document.getElementById('viewBoxes').submit();
     }
       }
       function changeCompany_Code(sel_obj)
       {
         var company_code=sel_obj.value;
        
         if(company_code=='')
            return;
         var param =new Object();
         param.company_code=company_code;
         bureauManager.getBureauListInDwr(param,showBureau);
         districtManager.getDistrictBycompany(company_code,showDistrict);
         
       }
      
       function showBureau(bureaus)
       {
     //     var bureau_id=$('bureau_id').value;
     //     if(window.bureau_on_load)
     //     {
     //       bureau_id='<c:out value="${param.bureau_id}"/>';
     //       window.bureau_on_load=false;
    //      }
          DWRUtil.removeAllOptions('bureau_id');
          var op=document.createElement('option');
          op.value='';
          op.text='<fmt:message key="task.default" />';
          $('bureau_id').options.add(op);
         
          DWRUtil.addOptions('bureau_id',bureaus,'bureau_id','bureau_name');
          for(var i=0;i<$('bureau_id').options.length;i++)
          {
            if($('bureau_id').options[i].value==bureau_id)
            {
              $('bureau_id').selectedIndex=i;
              break;
            }
          }
       }
      
      
       function showDistrict(dis)
       { 
      
       var dis_code=$('district_id').value;
       if(window.isOnload)
       {
         dis_code='<c:out value="${taskInfoForm.district_id}"/>';
         window.isOnload=false;
       }
         DWRUtil.removeAllOptions('district_id');
         var op=document.createElement('option');
         op.value='';
         op.text='<fmt:message key="task.default" />';
         $('district_id').options.add(op);
         DWRUtil.addOptions('district_id',dis,'code','name');
         for(var i=0;i<$('district_id').options.length;i++)
         {
          if($('district_id').options[i].value==dis_code)
          {
            $('district_id').selectedIndex=i;
            break;
          }
         }
       }
    </script>

    posted on 2009-06-02 21:30 小菜毛毛 閱讀(1487) 評論(0)  編輯  收藏 所屬分類: AJAX
    主站蜘蛛池模板: 亚洲欧洲日产国码二区首页| 日韩高清在线高清免费| 亚洲性猛交XXXX| 国产激情久久久久影院老熟女免费 | 亚洲人成电影福利在线播放| 精品在线视频免费| 亚洲国产日韩在线观频| 一级毛片视频免费| 亚洲精品无码乱码成人| a毛看片免费观看视频| 亚洲成Av人片乱码色午夜| caoporm超免费公开视频| 综合久久久久久中文字幕亚洲国产国产综合一区首 | 亚洲天堂免费在线视频| 免费看国产曰批40分钟| 成人嫩草影院免费观看| 国产亚洲大尺度无码无码专线| a国产成人免费视频| 亚洲欧洲精品一区二区三区| 美女视频黄的全免费视频网站| 亚洲AV无码乱码在线观看代蜜桃| 午夜视频免费观看| 国产免费牲交视频免费播放| 久久亚洲AV无码精品色午夜| 男人的好看免费观看在线视频| 精品久久久久久久久亚洲偷窥女厕| 免费中文字幕不卡视频| 最近2019中文免费字幕在线观看| 亚洲精品一卡2卡3卡三卡四卡| 日日夜夜精品免费视频| 91视频免费网站| 国产亚洲中文日本不卡二区| 亚洲乱码日产精品a级毛片久久| 最近中文字幕2019高清免费| 亚洲欧洲无卡二区视頻| 亚洲熟妇无码AV在线播放| 黄页网站免费观看| 精品乱子伦一区二区三区高清免费播放| 亚洲欧洲日产国产综合网| 拨牐拨牐x8免费| AAA日本高清在线播放免费观看|