<%--
  -- @(#)domainAssetSummary.jsp	1.23 02/03/03
  -- Copyright 2001 Sun Microsystems, Inc., All Rights Reserved.
  -- A page to display the asset information.
  -- @version 1.23, 02/03/03
  -- @author  Pascal Ledru, Xuefeng Yao
  --
  --%>

<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/tlds/app.tld" prefix="app" %>
<%@ taglib uri="/WEB-INF/tlds/component.tld" prefix="component" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/component.tld" prefix="component" %>
<%@ page import="com.sun.jade.web.util.BreadCrumbBean" %>

<html:html locale="true">

<%
  String sortRule = request.getParameter("sortRule");
  String sortedProperty = request.getParameter("sortedProperty");
%>
<script language="JavaScript">

  function LinkUp(theForm) {
   for (var i = 0; i < theForm.mode.options.length; i++) {
          if (theForm.mode.options[i].selected)
		if (theForm.mode.options[i].text != "<bean:message key="option.domainActions"/>") {        
			  theForm.mode.selectedIndex=0;       
                	  window.location = theForm.mode.options[i].value;
			  break;
		}
   }  

 }

</script>

<app:domainInfo/>

<jsp:include page="header.jsp"/>

<body bgcolor="#FFFFFF" leftmargin="0" marginwidth="0" marginheight="0" topmargin="0">

  <jsp:include page="masthead.jsp">
    <jsp:param name="category"	  value="administration"/>
    <jsp:param name="subCategory" value="siteInfo"/>
  </jsp:include>
<%
    String domainName = java.net.URLEncoder.encode(com.sun.jade.ui.util.Properties.getDomain());
    java.util.ArrayList breadCrumb = new java.util.ArrayList();
    BreadCrumbBean bcb1 = new BreadCrumbBean();		
    bcb1.setDisplayName("administration"); 
    breadCrumb.add(bcb1);
    pageContext.setAttribute("breadCrumbBeanList",breadCrumb);
%>

<component:breadCrumb beanListName = "breadCrumbBeanList" />

<DIV class="content-layout">
<table cellspacing="0" cellpadding="0" border="0">
<tr><td>
<component:bigHorizontalSpacer />

  <div class="table-title-text"><bean:message key="title.siteProperties"/></div>
  <component:smallHorizontalSpacer />

<%  
   String link = "/jade/jsp/domainUpdate.jsp?name=" + domainName;
%>
<script language="JavaScript">
  function linkTo() {
        window.location="<%=link%>";
   }
</script>

<component:buttonGroup formName="null" buttonNames="button.edit"
	                       buttonValues="javascript:linkTo()" buttonChecks="no" controlName="null" 
                               buttonType="mini" />
<component:smallHorizontalSpacer />

<%-- Asset information table entries. --%>
<component:table propertyList="localizedName,value" categoryList="header.property,header.value" beanListName="domainItem"
                 beanClassName="com.sun.jade.web.util.DeviceItem" hasSort="no" 
                 hasCheckbox="no" checkboxName="null" checkboxValue="null" width="100%"
                 wrap="nowrap,nowrap"
                 formName="null" sourcePage="null" /> 

</td></tr>
</table>
</DIV>

</body>
</html:html>

