<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" %>
<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<iman:stringtable bundle="DevResources"/>
<iman:stringtable bundle="FwResources"/>

<HTML>
<HEAD>
   <TITLE><iman:string key="ProductName"/></TITLE>
   <iman:stylesheet/>
   <iman:eMFrameScripts/>

   <style>
      .topCell {border-left: 1px solid #333333; border-bottom: 1px solid #333333; border-top: 1px solid #333333}
      .cell {border-left: 1px solid #333333; border-bottom: 1px solid #333333;}
      .rightCell {border-left: 1px solid #333333; border-bottom: 1px solid #333333; border-right: 1px solid #333333}
      .topRightCell {border-left: 1px solid #333333; border-bottom: 1px solid #333333; border-right: 1px solid #333333; border-top: 1px solid #333333}
</style>
</HEAD>
<BODY>
<FORM name="form" action="frameservice">
   <input type="hidden" name="taskId" value="<c:out value="${taskId}"/>"/>
   <input type="hidden" name="nextState" value="setDisplayName"/>
   <input type="hidden" name="type" value="<c:out value="${param.type}"/>"/>
   <input type="hidden" name="attributeName" value="<c:out value="${param.attributeName}"/>"/>


   <c:choose>
      <c:when test="${param.type=='attribute'}">
         <iman:taskHeader titleKey="CustomSchemaName.popupTitleAttr" titleBundle="FwResources" /><BR/>
      </c:when>
      <c:otherwise>
         <iman:taskHeader titleKey="CustomSchemaName.popupTitleClass" titleBundle="FwResources" /><BR/>
      </c:otherwise>
   </c:choose>


      <c:choose>
         <c:when test="${param.noEdit=='true'}">
            <c:set var="disable">readOnly="true"</c:set>

            <table cellspacing="0">

         </c:when>
         <c:otherwise>
            <c:set var="disable" value=""/>

            <DIV class="instructions"><iman:string key="CustomSchemaName.popupInstructions"/></DIV><BR>

            <table cellspacing="0">
            <tr class="tablehead1">
               <td colspan="3" class="topRightCell">

                  <c:choose>
                     <c:when test="${param.type=='attribute'}">
                        <iman:string key="CustomSchemaName.Attribute"/>
                     </c:when>
                     <c:otherwise>
                        <iman:string key="CustomSchemaName.ObjectClass"/>
                     </c:otherwise>
                  </c:choose>

                  <span style="font-weight: bold"><c:out value="${param.attributeName}"/></span>
               </td>

            </tr>
         </c:otherwise>
      </c:choose>
   
   
      <tr  class="tablecolumnhead1">
         <td class="cell">&nbsp;<iman:string key="SchemaNamer.Language"/>&nbsp;</td>
         <td class="cell">&nbsp;<iman:string key="SchemaNamer.customTranslation"/>&nbsp;</td>
         <td class="rightCell">&nbsp;<iman:string key="SchemaNamer.iManTranslation"/>&nbsp;</td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.Default"/></td>
         <td class="cell"><input type="text" name="default" value="<c:out value="${defaultDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${defaultFromFw}"/></td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.English"/></td>
         <td class="cell"><input type="text" name="en" value="<c:out value="${enDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${enFromFw}"/></td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.French"/></td>
         <td class="cell"><input type="text" name="fr" value="<c:out value="${frDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${frFromFw}"/></td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.Spanish"/></td>
         <td class="cell"><input type="text" name="es" value="<c:out value="${esDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${esFromFw}"/></td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.German"/></td>
         <td class="cell"><input type="text" name="de" value="<c:out value="${deDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${deFromFw}"/></td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.Italian"/></td>
         <td class="cell"><input type="text" name="it" value="<c:out value="${itDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${itFromFw}"/></td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.Japanese"/></td>
         <td class="cell"><input type="text" name="ja" value="<c:out value="${jaDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${jaFromFw}"/></td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.Polish"/></td>
         <td class="cell"><input type="text" name="pl" value="<c:out value="${plDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${plFromFw}"/></td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.Portugese"/></td>
         <td class="cell"><input type="text" name="pt" value="<c:out value="${ptDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${ptFromFw}"/></td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.Russian"/></td>
         <td class="cell"><input type="text" name="ru" value="<c:out value="${ruDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${ruFromFw}"/></td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.Czech"/></td>
         <td class="cell"><input type="text" name="cs" value="<c:out value="${csDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${csFromFw}"/></td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.Hungarian"/></td>
         <td class="cell"><input type="text" name="hu" value="<c:out value="${huDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${huFromFw}"/></td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.Slovak"/></td>
         <td class="cell"><input type="text" name="sk" value="<c:out value="${skDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${skFromFw}"/></td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.Chinese_CN"/></td>
         <td class="cell"><input type="text" name="zh_CN" value="<c:out value="${zh_CNDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${zh_CNFromFw}"/></td>
      </tr>
      <tr>
         <td class="cell"><iman:string key="CustomSchemaName.Chinese_TW"/></td>
         <td class="cell"><input type="text" name="zh_TW" value="<c:out value="${zh_TWDisplayName}"/>" <c:out value="${disable}"/>/></td>
         <td class="rightCell">&nbsp;<c:out value="${zh_TWFromFw}"/></td>
      </tr>
   </table>

   <BR>
   <iman:bar/>

   <c:choose>
      <c:when test="${param.noEdit=='true'}">
         <iman:button key="Close" onClick="window.close()"/>
      </c:when>
      <c:otherwise>
         <iman:button key="OK" onClick="document.form.submit()"/>
         <iman:button key="Cancel" onClick="window.close()"/>
      </c:otherwise>
   </c:choose>

</FORM>
</BODY>
</HTML>