parent
84f3f53725
commit
e2e6ee4482
@ -1 +1 @@ |
||||
739 |
||||
773 |
@ -0,0 +1,192 @@ |
||||
<?xml version="1.0" encoding="Windows-1251"?> |
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> |
||||
<xsl:import href="elems\Main.xslt"/> |
||||
<xsl:import href="elems\TextEditor.xslt"/> |
||||
<xsl:template name="specificTitle"> |
||||
<xsl:text>Íîâûé îïîðîñ</xsl:text> |
||||
</xsl:template> |
||||
<xsl:template name="specific"> |
||||
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> |
||||
<tr> |
||||
<td> |
||||
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders"> |
||||
<tr> |
||||
<td class="tdheader"> |
||||
<xsl:text>Ñîçäàíèå íîâîãî îïðîñà</xsl:text> |
||||
</td> |
||||
</tr> |
||||
<tr class="darktable"> |
||||
<td> |
||||
<xsl:text>Çàïîëíèòå ïðèâåäåííóþ íèæå ôîðìó äëÿ îòïðàâêè ñîîáùåíèÿ â ôîðóì. HTML îòêëþ÷åí. UBBCode âêëþ÷åí, è âû ìîæåòå èñïîëüçîâàòü UBBCode â âàøèõ ñîîáùåíèÿõ. Àíîíèìíûå ñîîáùåíèÿ ðàçðåøåíû, è âû ìîæåòå âûáðàòü ëþáîå íåçàðåãèñòðèðîâàííîå èìÿ.</xsl:text> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td class="lighttable"> |
||||
<form method="post" action="/do/NewPoll/" name="replier"> |
||||
<xsl:text>Ïîëüçîâàòåëü: </xsl:text> |
||||
<xsl:value-of select="session/user/name"/> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Òåìà: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="title"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<input type="checkbox" name="isDetailed" value="isDetailed"/><label for="isDetailed"> Ïîêàçûâàòü èìåíà ïðîãîëîñîâàâøèõ</label> |
||||
<br/> |
||||
<input type="checkbox" name="isMultiOption" value="isMultiOption"/><label for="isMultiOption"> Ðàçðåøèòü âûáîð íåñêîëüêèõ âàðèàíòîâ</label> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 1: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 2: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 3: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 4: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 5: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 6: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 7: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 8: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 9: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 10: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 11: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 12: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 13: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 14: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 15: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 16: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 17: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 18: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 19: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Âàðèàíò 20: </xsl:text> |
||||
<br/> |
||||
<textarea cols="100" tabindex="2" rows="3" class="formboxes" name="option"> |
||||
<xsl:text> </xsl:text> |
||||
</textarea> |
||||
<br/> |
||||
<br/> |
||||
<input type="submit" tabindex="3" name="textcont" taborder="2" value="Ïðîäîëæèòü" class="buttons"/> |
||||
</form> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</xsl:template> |
||||
|
||||
</xsl:stylesheet> |
@ -0,0 +1,44 @@ |
||||
<?xml version="1.0" encoding="Windows-1251"?> |
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> |
||||
<xsl:import href="elems\Main.xslt"/> |
||||
<xsl:import href="elems\PollInfo.xslt"/> |
||||
<xsl:template name="specificTitle"> |
||||
<xsl:value-of select="poll/title"/> |
||||
</xsl:template> |
||||
<xsl:template name="specific"> |
||||
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> |
||||
<tr> |
||||
<td> |
||||
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders"> |
||||
<tr class="darktable"> |
||||
<td> |
||||
<table width="100%" cellpadding="0" cellspacing="0"> |
||||
<tr class="darktable"> |
||||
<td align="left" width="33%"> |
||||
<font class="catandforum"> |
||||
<xsl:text>Îïðîñû</xsl:text> |
||||
<xsl:text> >> </xsl:text> |
||||
<xsl:value-of select="poll/title"/> |
||||
</font> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
<br /> |
||||
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> |
||||
<tr> |
||||
<td> |
||||
<table cellpadding="0" cellspacing="1" width="100%" class="tableborders"> |
||||
<xsl:apply-templates select="poll"/> |
||||
</table> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</xsl:template> |
||||
|
||||
</xsl:stylesheet> |
@ -0,0 +1,167 @@ |
||||
<?xml version="1.0" encoding="Windows-1251"?> |
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> |
||||
|
||||
<xsl:import href="UserInfoBar.xslt"/> |
||||
<xsl:template match="poll"> |
||||
<tr> |
||||
<td> |
||||
<table width="100%" cellspacing="1" cellpadding="3" border="0"> |
||||
<tr> |
||||
<td width="120" valign="top" class="darktable" rowspan="2"> |
||||
<xsl:apply-templates select="poster" mode="userInfoBar"/> |
||||
</td> |
||||
<td class="subjecttable"> |
||||
<a target="_blank" class="separate"> |
||||
<img border="0" src="/static/images/message-normal-read.gif" alt="" style="vertical-align: text-bottom" /> |
||||
</a> |
||||
<b class="separate"><xsl:value-of select="title" disable-output-escaping="yes"/></b> |
||||
<br /> |
||||
<font class="small" style="padding-left:2em"><xsl:apply-templates select="postDate/date" mode="dateTime"/></font> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td class="lighttable"> |
||||
<table width="100%" cellspacing="0" cellpadding="0" style="table-layout: fixed"> |
||||
<tr> |
||||
<td> |
||||
<font class="post"> |
||||
<form action="/do/Vote/" method="POST"> |
||||
<input type="hidden" name="pollId"> |
||||
<xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> |
||||
</input> |
||||
<h2><xsl:value-of select="title" disable-output-escaping="yes"/></h2> |
||||
<p> |
||||
<xsl:choose> |
||||
<xsl:when test="isDetailed='true'"> |
||||
<xsl:text>Äåòàëèçàöèÿ ïî ãîëîñàì â ýòîì îïðîñå îòêðûòà</xsl:text> |
||||
</xsl:when> |
||||
<xsl:otherwise> |
||||
<xsl:text>Ýòî àíîíèìíûé îïðîñ</xsl:text> |
||||
</xsl:otherwise> |
||||
</xsl:choose> |
||||
</p> |
||||
<p> |
||||
<xsl:choose> |
||||
<xsl:when test="isMultiOption='true'"> |
||||
<xsl:text>Ýòîò îïðîñ äîïóñêàåò âûáîð íåñêîëüêèõ âàðèàíòîâ îòâåòà</xsl:text> |
||||
</xsl:when> |
||||
<xsl:otherwise> |
||||
<xsl:text>Ýòîò îïðîñ äîïóñêàåò âûáîð òîëüêî îäíîãî âàðèàíòà îòâåòà</xsl:text> |
||||
</xsl:otherwise> |
||||
</xsl:choose> |
||||
</p> |
||||
<p> |
||||
<xsl:text>Âñåãî ãîëîñîâ: </xsl:text> |
||||
<xsl:value-of select="options/total"/> |
||||
</p> |
||||
<table border="2" width="100%"> |
||||
<xsl:apply-templates select="options/option"> |
||||
<xsl:with-param name="inputType"> |
||||
<xsl:choose> |
||||
<xsl:when test="isMultiOption='true'"> |
||||
<xsl:text>checkbox</xsl:text> |
||||
</xsl:when> |
||||
<xsl:otherwise> |
||||
<xsl:text>radio</xsl:text> |
||||
</xsl:otherwise> |
||||
</xsl:choose> |
||||
</xsl:with-param> |
||||
<xsl:with-param name="totalVotes"> |
||||
<xsl:value-of select="options/total"/> |
||||
</xsl:with-param> |
||||
</xsl:apply-templates> |
||||
</table> |
||||
<input type="submit" value="Ïðîãîëîñîâàòü"/> |
||||
</form> |
||||
<br/> |
||||
<br/> |
||||
<xsl:text>Äëÿ âñòàâêè ññûëêè â ôîðóì èñïîëüçóéòå òýã [poll]</xsl:text> |
||||
<xsl:value-of select="id"/> |
||||
<xsl:text>[/poll]</xsl:text> |
||||
</font> |
||||
</td> |
||||
</tr> |
||||
<xsl:if test="poster/user/signature != ''"> |
||||
<tr> |
||||
<td> |
||||
<div style="width:100%;max-height:50px;height: expression( this.scrollHeight > 49 ? '50px' : 'auto' );overflow:hidden"> |
||||
<font size="-2"><xsl:value-of select="poster/user/signature"/><br /></font> |
||||
</div> |
||||
</td> |
||||
</tr> |
||||
</xsl:if> |
||||
</table> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</td> |
||||
</tr> |
||||
</xsl:template> |
||||
|
||||
<xsl:template match="option"> |
||||
<xsl:param name="inputType">radio</xsl:param> |
||||
<xsl:param name="totalVotes">0</xsl:param> |
||||
<tr> |
||||
<td width="50%"> |
||||
<input name="option"> |
||||
<xsl:attribute name="type"><xsl:value-of select="$inputType"/></xsl:attribute> |
||||
<xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> |
||||
<xsl:if test="isSelected='true'"> |
||||
<xsl:attribute name="checked">checked</xsl:attribute> |
||||
</xsl:if> |
||||
<xsl:if test="not(/root/session/sessionKey)"> |
||||
<xsl:attribute name="disabled">disabled</xsl:attribute> |
||||
</xsl:if> |
||||
</input> |
||||
<label for="option"> |
||||
<xsl:text> </xsl:text> |
||||
<xsl:value-of select="name" disable-output-escaping="yes"/> |
||||
</label> |
||||
</td> |
||||
<td width="50%"> |
||||
<div class="pollcolor"> |
||||
<xsl:attribute name="style"> |
||||
<xsl:text>height:1em;</xsl:text> |
||||
<xsl:text>width:</xsl:text> |
||||
<xsl:choose> |
||||
<xsl:when test="votes > 0"> |
||||
<xsl:value-of select="round(100 * votes div $totalVotes)"/> |
||||
<xsl:text>%</xsl:text> |
||||
</xsl:when> |
||||
<xsl:otherwise> |
||||
<xsl:text>3px</xsl:text> |
||||
</xsl:otherwise> |
||||
</xsl:choose> |
||||
</xsl:attribute> |
||||
<xsl:text> </xsl:text> |
||||
</div> |
||||
<p> |
||||
<xsl:value-of select="votes"/> |
||||
<xsl:text> ãîëîñîâ (</xsl:text> |
||||
<xsl:choose> |
||||
<xsl:when test="votes > 0"> |
||||
<xsl:value-of select="round(100 * votes div $totalVotes)"/> |
||||
</xsl:when> |
||||
<xsl:otherwise> |
||||
<xsl:text>0</xsl:text> |
||||
</xsl:otherwise> |
||||
</xsl:choose> |
||||
<xsl:text>%)</xsl:text> |
||||
</p> |
||||
<xsl:if test="voters/user"> |
||||
<p> |
||||
<xsl:apply-templates select="voters/user" mode="userLink"/> |
||||
</p> |
||||
</xsl:if> |
||||
</td> |
||||
</tr> |
||||
</xsl:template> |
||||
|
||||
<xsl:template match="user" mode="userLink"> |
||||
<a class="separate"> |
||||
<xsl:attribute name="href">/User/<xsl:value-of select="id"/>/</xsl:attribute> |
||||
<xsl:value-of select="name"/> |
||||
</a> |
||||
</xsl:template> |
||||
|
||||
</xsl:stylesheet> |
@ -0,0 +1,35 @@ |
||||
<?xml version="1.0" encoding="Windows-1251"?> |
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> |
||||
<xsl:import href="..\elems\Main.xslt"/> |
||||
<xsl:template name="specificTitle">Îïðîñ ñîçäàí</xsl:template> |
||||
<xsl:template name="specific"> |
||||
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> |
||||
<tr> |
||||
<td> |
||||
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders"> |
||||
<tr> |
||||
<td class="tdheader"> |
||||
<xsl:text>Ñîçäàíèå îïðîñà</xsl:text> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td class="lighttable"> |
||||
<xsl:text>Îïðîñ óñïåøíî ñîçäàí.</xsl:text> |
||||
<br/> |
||||
<xsl:text>Òåïåðü âû ìîæåòå âñòàâëÿòü ññûëêè íà íåãî ñ ïîìîùüþ òýãà [poll]</xsl:text> |
||||
<xsl:value-of select="poll/id"/> |
||||
<xsl:text>[/poll]</xsl:text> |
||||
<br/> |
||||
<a> |
||||
<xsl:attribute name="href">/Poll/<xsl:value-of select="poll/id"/>/</xsl:attribute> |
||||
<xsl:text>Ïåðåéòè ê îïðîñó</xsl:text> |
||||
</a> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</xsl:template> |
||||
|
||||
</xsl:stylesheet> |
@ -0,0 +1,31 @@ |
||||
<?xml version="1.0" encoding="Windows-1251"?> |
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> |
||||
<xsl:import href="..\elems\Main.xslt"/> |
||||
<xsl:template name="specificTitle">Ãîëîñ ïðèíÿò</xsl:template> |
||||
<xsl:template name="specific"> |
||||
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> |
||||
<tr> |
||||
<td> |
||||
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders"> |
||||
<tr> |
||||
<td class="tdheader"> |
||||
<xsl:text>Ó÷àñòèå â îïðîñå</xsl:text> |
||||
</td> |
||||
</tr> |
||||
<tr> |
||||
<td class="lighttable"> |
||||
<xsl:text>Âàø ãîëîñ ïðèíÿò.</xsl:text> |
||||
<br/> |
||||
<a> |
||||
<xsl:attribute name="href">/Poll/<xsl:value-of select="poll/id"/>/</xsl:attribute> |
||||
<xsl:text>Âåðíóòüñÿ ê îïðîñó</xsl:text> |
||||
</a> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</td> |
||||
</tr> |
||||
</table> |
||||
</xsl:template> |
||||
|
||||
</xsl:stylesheet> |
Loading…
Reference in new issue