<%--
  Copyright 2003 Sun Microsystems, Inc. All rights reserved 
  Use is subject to license terms. 
--%> 
<html> 
<%@page info="DesktopAdminUserProfile" language="java"%>
<%@taglib uri="/WEB-INF/jato.tld" prefix="jato"%>
<%@taglib uri="/WEB-INF/console.tld" prefix="console"%>

<jato:useViewBean 
    className="com.sun.portal.desktop.admin.DesktopAdminUserProfileViewBean" 
    fireChildDisplayEvents="true">
<jsp:useBean id="viewBean" 
    type="com.sun.portal.desktop.admin.DesktopAdminUserProfileViewBean" />

<head>
<title><jato:text name="titleHtmlPage" /></title>
<link rel="stylesheet" href="../console/css/adminstyle.css">
<script language="javascript" src="../console/js/consolecomp.js">
</script>

<script language="javascript">
    function openUploadWin(url) {
        var bars = 'directories=no,location=0,menubar=0,status=0,titlebar=yes,toolbar=no';
        var options = 'scrollbars=yes,width=450,height=250,resizable=yes';
        var feature = bars + ',' + options;
        var openwin = window.open(url, 'uploadWin', feature);
        openwin.focus();
    }

   function showAlert() {
        var agt = navigator.userAgent.toLowerCase();
        var is_major = parseInt(navigator.appVersion);
        var is_minor = parseFloat(navigator.appVersion);
        var is_nav  = ((agt.indexOf('mozilla')!=-1)
                        && (agt.indexOf('spoofer')==-1)
                        && (agt.indexOf('compatible') == -1)
                        && (agt.indexOf('hotjava')==-1));
        var is_nav6up = (is_nav && (is_major >= 5));
        var is_nav4up = (is_nav && (is_major >= 4));
        if ((navigator.appVersion.lastIndexOf('Win') != -1)
            && is_nav4up && !is_nav6up) {
            window.alert("<jato:text name="alertMessage"/>");
        }
   }
</script>

</head>
<body class="dataFrame" leftMargin="0" rightMargin="0" topMargin="0" 
    marginheight="0" marginwidth="0">
<script language="javascript">
    pageLoaded = 0;
    parent.headerFrame.helpDocURL = "<jato:text name="helpDocURL"/>";
    parent.headerFrame.helpPage = "<jato:text name="helpAnchorTag"/>";

</script>

<console:title name="ccTitle" />
<console:messagebox name="ccMessageBox" imageURI="../console/images" />

<!-- Show the form only to admins -->
<jato:content name="AdminShowBlock">

<console:form name="DesktopAdminUserProfile" method="post" 
    defaultCommandChild="/btnSubmit">
  <jato:content name="ButtonBlock">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td colspan="2"><img src="../console/images/spacer.gif" 
                            width="1" height="10"></td>
    </tr>
    <tr>
        <td width="99%" align="right">
            <console:button name="btnSubmit" />
        </td>
        <td width="1%">
            <console:button name="btnReset" />
        </td>
        <td width="1%">
            <console:button name="btnClose"
                onClick="window.close(); return false;" />
        </td>
    </tr>
  </table>

  <console:listedmessagebox name="ccListMsgBox" imageURI="../console/images" />

  </jato:content>
  <table border="0" cellspacing="10" cellpadding="0" width="100%">
    <jato:tiledView name="tiledAttrs"
        type="com.sun.portal.desktop.admin.DesktopAdminUserProfileTiledView"
        fireDisplayEvents="true">
    <console:dynamicgui name="ccActionValue"
                imageURI="../console/images"
                styleLabelClass="properties-level3-label-text" />
    <jato:content name="channelWizard">
    <tr>
        <td nowrap>  
          <div class="properties-level3-label-text">  
            <jato:text name="attrLabel" />:
          </div>
        </td>
        <td nowrap valign="middle">&nbsp;</td>
        <td>
          <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
              <td colspan="4"><console:href name="channelWizardLink"><jato:text name="channelWizardLinkLabel"/></console:href></td>
            </tr>
            <jato:content name="dpLinksBlock">
            <tr>
              <td colspan="4"><console:button name="dpEditButton" onClick="showAlert()" type="mini"/></td>
            </tr>
            <tr>
              <td width="1" nowrap>
                <!-- Begin DP Upload Button -->
                <table border=0 cellpadding=2 cellspacing=0>
                        <tr><td><table border=0 cellpadding=1 cellspacing=0 class="mini-button-frame-enabled">
                                <tr><td><table border=0 cellpadding=0 cellspacing=0 width="100%" class="mini-button-content-enabled">
                                        <tr><td align="center" valign="middle" nowrap>
                                        <a href="javascript:openUploadWin('<jato:text name="dpUploadURL"/>')" class="mini-button-link">
                                            <div class="mini-button-link-enabled-text">
                                               &nbsp;<jato:text name="dpUploadLinkLabel"/>&nbsp;
                                            </div>
                                         </a>
                                </td></tr></table>
                        </td></tr></table>
                 </table>
                 <!-- End DP Upload Button -->
              </td>
              <td width="1" nowrap><img src="../console/images/spacer.gif" width="1" height="1" alt=""></td>
              <td width="1" nowrap>
                <!-- Begin DP Download Button -->
                <table border=0 cellpadding=2 cellspacing=0>
                        <tr><td><table border=0 cellpadding=1 cellspacing=0 class="mini-button-frame-enabled">
                                <tr><td><table border=0 cellpadding=0 cellspacing=0 width="100%" class="mini-button-content-enabled">
                                        <tr><td align="center" valign="middle" nowrap>
                                        <a href="<jato:text name="dpDownloadURL"/>" class="mini-button-link">
                                            <div class="mini-button-link-enabled-text">
                                                &nbsp;<jato:text name="dpDownloadLinkLabel"/>&nbsp;
                                            </div>
                                        </a>
                                </td></tr></table>
                        </td></tr></table>
                 </table>
                <!-- End DP Download Button -->
              </td>
              <td width="100%">&nbsp;</td>
            </tr>
            </jato:content>
          </table>
        </td>
    </tr>
    </jato:content>
    </jato:tiledView>
  </table>

  <hr noshade size="1">
  <!-- Start Buttons -->
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <jato:content name="ButtonBlock">
        <td width="99%" align="right">
            <console:button name="btnSubmit" />
        </td>
        <td width="1%">
            <console:button name="btnReset" />
        </td>
        </jato:content>
        <td align="right">
            <console:button name="btnClose"
                onClick="window.close(); return false;" />
        </td>
    </tr>
  </table>
  <!-- End Buttons -->
</console:form>

</jato:content>
<!-- End AdminShowBlock -->

</body>
<script language="javascript">
pageLoaded = 1;
</script>
</jato:useViewBean>
</html>
