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

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

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

    小菜毛毛技術分享

    與大家共同成長

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      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
    主站蜘蛛池模板: 国产日韩成人亚洲丁香婷婷| 无码永久免费AV网站| 亚洲一级片免费看| 老司机精品视频免费| 国产免费怕怕免费视频观看| 国产亚洲精品91| 亚洲美女高清一区二区三区 | 亚洲精品人成在线观看| 成人片黄网站色大片免费观看APP| 亚洲色自偷自拍另类小说| 成在人线av无码免费高潮喷水| 亚洲av综合色区| 中文字幕免费在线观看| 亚洲另类春色国产精品| 在线播放高清国语自产拍免费| 久久久久久久久无码精品亚洲日韩| 国产一级做a爱免费视频| 一区二区在线视频免费观看| 国产亚洲视频在线播放| 免费在线看污视频| 亚洲熟妇无码爱v在线观看| 91在线品视觉盛宴免费| 男男黄GAY片免费网站WWW| 亚洲综合色成在线播放| 无码囯产精品一区二区免费 | 亚洲a一级免费视频| 亚洲人成伊人成综合网久久| 日本不卡在线观看免费v| 国产精品美女免费视频观看 | 亚洲AV无码一区二区三区性色| 又大又黄又粗又爽的免费视频| 中国一级毛片免费看视频| 亚洲综合综合在线| 日韩免费观看视频| 97无码人妻福利免费公开在线视频 | 麻豆精品成人免费国产片| 亚洲a级在线观看| 黄网站免费在线观看| 亚洲国产精品综合久久20| 亚洲?V乱码久久精品蜜桃 | 亚洲一级毛片中文字幕|