dsfsdfsd

<%@ page contentType="text/html;charset=GBK" import="java.util.*,com.sungoal.dbsearch.dbconfig.model.Table"%> <%
@page import="com.opensymphony.xwork2 .ActionContext"%>
<%@page import="com.opensymphony.xwork2.util.ValueStack"%>
<%@page import="org.apache.struts2.ServletActionContext"%>
<!DOCTYPE HTML PUBLIC "-// W3C//DTD HTML 4.01 移行版//EN">
<html>
<%@include file="/commons/include/header.jsp"%>
<%@include file="/webmanagement/include/check_login.jsp"%>
<link href="../webmanagement/css_js/table.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/autocomplete/jquery-1.7.2.min.js"></script>

<本文>
<s:form method="POST" action="polyisomerism_*" οnsubmit="">
<s:submit id="btn_Submit" method="assgin" cssStyle="display:none;"/>
<!-- データ ソース情報と要素情報を含むすべてのデータ テーブル (ステータスは正常) を返します -->
<s:action name="findAllTable" id="action_Table" namespace="/classify"ignoreContextParams="true"/>
<!-- すべての分類されたドメインを取得 -->



<table width="95%" border="0" cellpacing="0" cellpadding="0" align="center" bgcolor="#0099FF" background="../webmanagement/images/dllh.gif" height= "29">
  <tr>
    <td width="2" background="../webmanagement/images/dllh2. gif"></td>
    <td>
      <table width="100%" border="0" cellpacing="0" cellpadding="0">
        <tr>
          <td height="27" width="12%" >
            <div align="center"><strong> 割り当て字段归类</strong>:</div>
          </td>
          <td width="88%" height="27" align="right"></ td>
        </tr>
      </table>
    </td>
    <td width="1" valign="top"><img src="../webmanagement/images/dllh3.gif" width="14" height="30"></td> </tr>
  <
/テーブル>


  <!-- 默认第一项的 ID -->
      <s:hidden name="matrixId" id="matrixId" value="%{matrixId}"></s:hidden>
        <s:hidden name=" result" id="result" value="%{result}"></s:hidden>
 
<table width="95%" border="0" align="center" cellpadding="4" cellpacing="1" bgcolor="#C4BEB3">
  <tr>
  <tdcolspan="4" bgcolor="#FFFFFF" style="パディング: 0;" >
  <div id="recognize" class="tdiv" ><b>複数の分析検索項目の構成</b></div>
  </td>
  </tr>
  <tr>
    <td width="24" valign="top" bgcolor="#FFFFFF" rowspan="2">
    
    <!-- 各プロフェッショナル検索に含まれるフィールドを左側の灰色で表示します -->
    <s:iterator value="matrixFields" >
 <s:set name="aa" value="%{description}"></s:set>
 <s:set name="bb" value="%{highlightName}"></s:set>
 <s:if test="#aa==#bb">
 <div id="ralating" style="background-color:red;margin:2px 5px 15px 2px" >
      <a href='../dbconfig/polyisomerism_assgin.action?matrixId=<s:property value="mateMatrix.matrixId"/>&condi_id=<s:property value="fieldId"/>&tableId=<s:property value= "objectId"/>'/>
      <s:property value="説明" />
      <br/>
      </a>
      <s:hidden name="highlightName" value="%{description}"></s:hidden>
      <s:hidden name="condi_id" id="condi_id" value="%{condi_id}"></s:hidden>
      <s:hidden name="objectId" id="objectId" value="%{objectId}"></s:hidden>
       
     </div>
 </s:if><s:else>
  <div id="ralating" style="background-color:orange;margin:2px 5px 15px 2px" >
      <a href='../dbconfig/polyisomerism_assgin.action?matrixId=<s:property value="mateMatrix.matrixId"/>&condi_id=<s:property value="fieldId"/>&tableId=<s:property value= "objectId"/>'/>
      <s:property value="説明" />
      <br/>
      </a>
      </div>
 </s:else>
      </s:iterator>
          
      </td>
    <td bgcolor="#FFFFFF"colspan="3" align="center">
   
        <strong>当前型板<font color="red">[< s:property value="%{matrixName}"/>]</font></strong>
        <span style="width:30px"></span>
        <strong>当前归类のために<font color="red" >[<s:property value="%{highlightName}"/>]</font></strong>
        <span style="width:30px"></span>
        <s:set name="tableSize" value= "assignTables.size"></s:set>
        <s:
         if test ="#tableSize==0"> <font color="red"><strong><s:property value="%{matrixName}"/>テーブルがテンプレートに割り当てられていません。テーブルを割り当ててください。最初</strong></font>
        </s:if><s:else>
         データ テーブルを選択してください: <s:select list="assignTables" name="selectTable" value="objectId" listKey="objectId" listValue="tableName+tableZhName" οnchange="document.getElementById('btn_Submit').click ( );" />
        <span style="width:30px"></span>
       <a href='../dbconfig/polyisomerism_allAssginColumn.action?matrixId=<s:property value="matrixId"/>&condi_id=< s :property value="condi_id"/>&highlightName=<s:property value="highlightName"/>&tableId=<s:property value="objectId"/>' >ビューは [<s:property value=" すべて%{highlightName}"/>のフィールド]</a>
  </s:else>
   <span style="width:30px"></span>
   <a href='../dbconfig/polyisomerism_assginTable.action?matrixId=<s:property value="matrixId"/>'>テーブルを<s:property value="%{matrixName}"/>テンプレートに割り当てる</a >
</td>
    </tr>
    
  <tr>
    <td valign="top" bgcolor="#FFFFFF">
    <table width="100%" border="0" cellpadding="2" cellpacing="1" bgcolor= "#66BEFF">
     <tr>
   <td colspan="4" bgcolor="#D4F4FF"><strong>テーブルにはフィールドが割り当てられていません</strong></td>
</tr>
     <s:if test="#notAssginColumns.size()==0">
     <tr>
     <tdcolspan="4" bgcolor="#FFFFFF">
    記録なし
    </td>
    </tr>
    </s:if>
    <s:else>
      <tr>
   <td width="30px" align="center" bgcolor="#C4F1FF">选择</td>
   <td width="30px" align="center" bgcolor="#C4F1FF">序号</td>
   <td align="center" width="80px" bgcolor="#C4F1FF">フィールドの中国語名</td>
   <td align="center" width="80px" bgcolor="#C4F1FF">フィールドの元の名前</td>
 </tr>
 <s:iterator value="notAssginColumns" status="iteratorStauts">
      <tr>
        <td align="center" bgcolor="#FFFFFF">
        <input οnclick="shiftSelectCheckBox(this);"
id='addColumnIds<s:property value="#iteratorStauts.index" />'
type="チェックボックス" name="addColumnIds"
value='<s:property value="objectId" />' /></td>
        <td align="center" width="30" bgcolor="#FFFFFF"><s:property value="#iteratorStauts. Index+1" /></td>
        <td bgcolor="#FFFFFF"><s:property value="columnZhName" /></td>
        <td bgcolor="#FFFFFF"><s:property value="列名" /></td>
      </tr>
      </s:iterator>
    </s:else>
    
    </table>
    
    
    </td>
    <td valign="top" align="center" bgcolor="#FFFFFF" style="padding-top:50px;">
    <s: submit type="image" οnclick="return validateAdd(); " src="%{#request['javax.servlet.forward.context_path']}/webmanagement/images/move_r.gif" method="addColumn" cssStyle= "margin-bottom:25px;"/>
    <br/>
    <s:submit type="image" οnclick="return validateRemove();" src="%{#request['javax.servlet.forward.context_path']}/webmanagement/images/move_l.gif" method="deleteColumn" cssStyle="margin-bottom:25px;"/></td>
    < td valign="top" bgcolor="#FFFFFF">
    
    <table width="100%" border="0" cellpadding="2" cellpacing="1" bgcolor="#66BEFF">
     <tr>
   <td colspan="4" bgcolor="#D4F4FF"><strong>このテーブルは<font color="red">[<s:property value="%{highlightName}"/>]</font>として分類されています> フィールド</strong></td>
</tr>
    <s:if test="#assginColumns.size()==0">
        <tr>
      <tdcolspan="4" bgcolor="#FFFFFF">
    記録なし
    </td>
    </tr>
    </s:if>
    <s:else>
      <tr>
   <td width="30px" align="center" bgcolor="#C4F1FF">选择</td>
   <td width="30px" align="center" bgcolor="#C4F1FF">序号</td>
   <td align="center" width="80px" bgcolor="#C4F1FF">フィールドの中国語名</td>
   <td align="center" width="80px" bgcolor="#C4F1FF">フィールドの元の名前</td>
 </tr>
 
 <s:iterator value="assginColumns" status="iteratorStauts">
      <tr>
        <td align="center" bgcolor="#FFFFFF">
        <input οnclick="shiftSelectCheckBox(this);"
id='removeColumnIds<s:property value="#iteratorStauts.index" />'
type="チェックボックス" name="removeColumnIds"
value='<s:property value="objectId" />' /></td>
        <td align="center" bgcolor="#FFFFFF"><s:property value="#iteratorStauts.index+1" / ></td>
        <td bgcolor="#FFFFFF"><s:property value="columnZhName" /></td>
        <td bgcolor="#FFFFFF">p<s:property value="columnName" /> </td>
      </tr>
      </s:iterator>
      
      
    </s:else>
    </table></td>
  </tr>
</table>
</s:form>
<script type="text/javascript" ">


関数 validateAdd(){
  
var arr = document.getElementsByName('addColumnIds');
var result=document.getElementById('result').value;
変数n=0;
if(result=="false"){

 alert('検索項目はテーブル内の 1 つのフィールドにのみ分類できます');
 false を返します。
}

for(var i=0;i<arr.length;i++){
   
if(arr[i].checked){
   n++;
}
}

if(n>1){
 alert('検索項目はテーブル内の 1 つのフィールドにのみ分類できます');
 false を返します。
}
if(n==0){
alert('追加するフィールドを選択してください');
false を返します。
}

true を返します。
 
}





関数 validateRemove(){
var arr = document.getElementsByName('removeColumnIds');
for(var i=0;i<arr.length;i++){
if(arr[i].checked){
true を返します。
}
}
alert('削除するフィールドを選択してください');
false を返します。
</script>




</body> </html>


_

おすすめ

転載: blog.csdn.net/linwei_hello/article/details/11197011