UserLists reorganisation

main
Inga 🏳‍🌈 14 years ago
parent c0e42497ea
commit 585f4afd20
  1. 2
      Builder/IISMainHandler/build.txt
  2. 3
      IISMainHandler/HandlersFactory.cs
  3. 3
      IISMainHandler/handlers/response/ActiveAccountListHandler.cs
  4. 3
      IISMainHandler/handlers/response/WhoIsOnlineHandler.cs
  5. 74
      templates/Full/UserList.xslt
  6. 5
      templates/Full/elems/Header.xslt

@ -83,6 +83,9 @@ namespace FLocal.IISHandler {
case "registerbyinvite": case "registerbyinvite":
return new handlers.response.RegisterByInviteHandler(); return new handlers.response.RegisterByInviteHandler();
case "users": case "users":
if(context.requestParts.Length == 1) {
throw new RedirectException("/Users/All/");
}
switch(context.requestParts[1].ToLower()) { switch(context.requestParts[1].ToLower()) {
case "all": case "all":
return new handlers.response.UserListHandler(); return new handlers.response.UserListHandler();

@ -57,8 +57,7 @@ namespace FLocal.IISHandler.handlers.response {
) )
) )
) )
), )
pageOuter.exportToXml(2, 5, 2)
) )
}; };
} }

@ -34,8 +34,7 @@ namespace FLocal.IISHandler.handlers.response {
) select Session.LoadByKey(stringId); ) select Session.LoadByKey(stringId);
return new XElement[] { return new XElement[] {
new XElement("users", new XElement("users",
from session in sessions select session.account.user.exportToXmlForViewing(context), from session in sessions select session.account.user.exportToXmlForViewing(context)
pageOuter.exportToXml(2, 5, 2)
) )
}; };
} }

@ -3,23 +3,11 @@
<xsl:import href="elems\Main.xslt"/> <xsl:import href="elems\Main.xslt"/>
<xsl:template name="specificTitle">Ïîëüçîâàòåëè</xsl:template> <xsl:template name="specificTitle">Ïîëüçîâàòåëè</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<xsl:call-template name="subHeader"/>
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr> <tr>
<td> <td>
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders"> <table cellpadding="3" cellspacing="1" width="100%" class="tableborders">
<tr class="tdheader">
<td colspan="7">
<table width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td>
<a href="/Users/Active/">
<xsl:text>Àêòèâíûå (ñìèãðèðîâàííûå)</xsl:text>
</a>
</td>
</tr>
</table>
</td>
</tr>
<tr class="tdheader"> <tr class="tdheader">
<td align="left" width="15%" nowrap="nowrap"> <td align="left" width="15%" nowrap="nowrap">
<a> <a>
@ -58,20 +46,22 @@
</td> </td>
</tr> </tr>
<xsl:apply-templates select="users/user"/> <xsl:apply-templates select="users/user"/>
<tr class="tdheader"> <xsl:if test="users/pageOuter">
<td colspan="7"> <tr class="tdheader">
<table width="100%" cellspacing="1" cellpadding="3" border="0"> <td colspan="7">
<tr> <table width="100%" cellspacing="1" cellpadding="3" border="0">
<td> <tr>
<xsl:text>ñòðàíèöû:</xsl:text> <td>
<xsl:apply-templates select="users/pageOuter" mode="withCurrent"> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:with-param name="baseLink">/Users/All/</xsl:with-param> <xsl:apply-templates select="users/pageOuter" mode="withCurrent">
</xsl:apply-templates> <xsl:with-param name="baseLink">/Users/All/</xsl:with-param>
</td> </xsl:apply-templates>
</tr> </td>
</table> </tr>
</td> </table>
</tr> </td>
</tr>
</xsl:if>
</table> </table>
</td> </td>
</tr> </tr>
@ -120,4 +110,34 @@
</tr> </tr>
</xsl:template> </xsl:template>
<xsl:template name="subHeader">
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1">
<tr>
<td>
<table width="100%" class="tableborders" cellpadding="3" cellspacing="1">
<tr>
<td align="center" class="menubar">
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/All/</xsl:with-param>
<xsl:with-param name="text">Âñå</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/Active/</xsl:with-param>
<xsl:with-param name="text">Àêòèâíûå (ñìèãðèðîâàííûå)</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/Online/</xsl:with-param>
<xsl:with-param name="text">Â îíëàéíå</xsl:with-param>
</xsl:call-template>
</td>
</tr>
</table>
</td>
</tr>
</table>
<center>&#160;&#160;</center>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

@ -71,11 +71,6 @@
</xsl:with-param> </xsl:with-param>
</xsl:call-template> </xsl:call-template>
<xsl:text> | </xsl:text> <xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/Online/</xsl:with-param>
<xsl:with-param name="text">Êòî â îíëàéíå</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink"> <xsl:call-template name="headerLink">
<xsl:with-param name="url">/q/faq/</xsl:with-param> <xsl:with-param name="url">/q/faq/</xsl:with-param>
<xsl:with-param name="text">FAQ</xsl:with-param> <xsl:with-param name="text">FAQ</xsl:with-param>

Loading…
Cancel
Save