⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 site_existant_admin.jsp

📁 java 写的一个新闻发布系统
💻 JSP
字号:
<%@page import="org.jahia.bin.*"%><%@include file="include_header.jsp"%><%    Enumeration allSites      = (Enumeration)request.getAttribute("allSites");    Enumeration allSitesJS    = (Enumeration)request.getAttribute("allSitesJS");    Enumeration adminsList    = (Enumeration)request.getAttribute("adminsList");    Integer     selectedSite  = (Integer)request.getAttribute("selectedSite");%><tr>    <td align="right" class="text" colspan="2"><b>::&nbsp;&nbsp;Manage virtual sites&nbsp;&nbsp;::</b>&nbsp;&nbsp;&nbsp;&nbsp;</td></tr></table><br><script language="javascript">    function changeSite() {    <%  String baseURL = JahiaAdministration.composeActionURL(request,response,"sites","&sub=processadminselectsite");    %>        if(document.jahiaAdmin.selectSite.options[0].selected) location.href = "<%=baseURL%>&site=0";    <%       int countJS = 1;       while(allSitesJS.hasMoreElements()) {           JahiaSite siteJS  = (JahiaSite) allSitesJS.nextElement();           if(siteJS.getID() != 0) { %>        if(document.jahiaAdmin.selectSite.options[<%=countJS%>].selected) location.href = "<%=baseURL%>&site=<%=siteJS.getID()%>";    <%           }           countJS++;       }    %>    }</script><table cellpadding="2" cellspacing="0" border="0" width="100%"><tr>    <td colspan="2" width="530"><br><br>&nbsp;</td></tr><tr>    <td width="100">&nbsp;&nbsp;&nbsp;</td>    <td width="430">        <form name="jahiaAdmin" action="<%=JahiaAdministration.composeActionURL(request,response,"sites","&sub=processexistantadmin&site=" + selectedSite.intValue())%>" method="post">        <table border="0" cellpadding="0" width="84%">        <tr>            <td valign="top" align="left" colspan="2">                <table border="0">                <tr>                    <td>                        <% if(allSites != null) { %>                            Virtual site where is the administrator:<font size="5">&nbsp;</font><br>                            <select name="selectSite" onChange="changeSite();">                                <option value="0"<% if(selectedSite.intValue()==0) { %> selected<%}%>> ---------&nbsp;&nbsp;Please choose a site&nbsp;&nbsp;---------&nbsp;</option>                                <% while(allSites.hasMoreElements()) {                                      JahiaSite site = (JahiaSite) allSites.nextElement(); %>                                <option value="<%=site.getID()%>"<%if(selectedSite.intValue()==site.getID()){%> selected<%}%>><%=site.getServerName()%> </option>                                <% } %>                            </select>                        <% } else { %>                            You don't have any virtual site... so you can't get sites administrators :o)                        <% } %>                        <% if(selectedSite.intValue()>0) { %>                            <br><br>                            Select the administrator:<font size="5">&nbsp;</font><br>                            <select name="adminSelected" size="10">                                <% while(adminsList.hasMoreElements()) {                                      HashMap userHash = (HashMap) adminsList.nextElement(); %>                                <option value="<%=userHash.get("key")%>"><%=userHash.get("username")%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>                                <% } %>                            </select>                        <% } %>                    </td>                <tr>            <% if(selectedSite.intValue()>0) { %>                <tr>                    <td align="right">                        &nbsp;<br>                        <a href="javascript:document.jahiaAdmin.submit();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('save','','<%=URL%>images/buttons/save_on.gif',1)"><img name="save" src="<%=URL%>images/buttons/save_off.gif" width="68" height="17" border="0" alt="Save"></a>                    </td>                </tr>            <% } %>                </table>            </td>        </tr>        <tr>            <td colspan="2"><br></td>        </tr>        <tr>            <td colspan="2">                &nbsp;<br><br>                <table border="0" cellpadding="0" cellspacing="0">                <tr>                    <td nowrap width="145" valign="top"><font class="text"><b>Other operations:&nbsp;&nbsp;&nbsp;</b></font></td>                    <td valign="top">                        <font class="text">                        <li> <a href="<%=JahiaAdministration.composeActionURL(request,response,"sites","&sub=add")%>">Back to previous step</a><br>                        <li> <a href="<%=JahiaAdministration.composeActionURL(request,response,"sites","&sub=list")%>">Back to virtual sites list</a><br>                        <li> <a href="<%=JahiaAdministration.composeActionURL(request,response,"displaymenu","")%>">Back to menu</a><br>                        </font>                    </td>                </tr>                </table>            </td>        </tr>        </table>        </form>    </td></tr><tr>    <td colspan="2" align="right">        &nbsp;<br>&nbsp;<br>        <font class="text2"><%=jahiaDisplayMessage%>&nbsp;&nbsp;&nbsp;</font>    </td></tr><tr>    <td colspan="2">&nbsp;</td></tr></table><%@include file="include_footer.jsp"%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -