fixin josch's retarded use of <h1>, <div> and other html elements

git-svn-id: http://yolanda.mister-muffin.de/svn@217 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
erlehmann 2007-12-20 17:08:11 +00:00
parent e870bcc211
commit 751ed83d13
4 changed files with 168 additions and 156 deletions

View file

@ -178,9 +178,10 @@
<string id="viewcount">viewcount</string> <string id="viewcount">viewcount</string>
<!-- settings page --> <!-- settings page -->
<string id="settings_locale">locale</string> <string id="settings_heading">account settings</string>
<string id="settings_pagesize">pagesize</string> <string id="settings_instruction_locale">locale</string>
<string id="settings_cortado">cortado</string> <string id="settings_instruction_pagesize">choose pagesize</string>
<string id="settings_instruction_method">choose your preferred method of video playback.</string>
<!-- rss feed --> <!-- rss feed -->
<string id="rss_separator">&#160;-&#160;</string> <string id="rss_separator">&#160;-&#160;</string>

View file

@ -91,7 +91,7 @@ div
vertical-align: bottom; vertical-align: bottom;
} }
div.loginform, div.registerform, div.uploadform div.loginform, div.registerform, div.uploadform, div.settingsform
{ {
line-height: 2.5em; line-height: 2.5em;
margin: 1.5em; margin: 1.5em;

View file

@ -8,16 +8,23 @@
> >
<xsl:template name="settings"> <xsl:template name="settings">
<h2><xsl:value-of select="$locale_strings[@id='settings_settings']" /></h2>
<div class="settingsform">
<span class="heading">
<xsl:value-of select="$locale_strings[@id='settings_heading']" />
</span>
<form method="POST"> <form method="POST">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_settings']" /> <xsl:value-of select="$site_strings[@id='page_settings']" />
</xsl:attribute> </xsl:attribute>
<input type="hidden" name="show" value="settings" />
<div> <xsl:value-of select="$locale_strings[@id='settings_instruction_locale']" />
<h3><xsl:value-of select="$locale_strings[@id='settings_locale']" /></h3>
<br /> <br />
<select name="locale" size="2"> <select name="locale" size="2">
<option value="en-us"> <option value="en-us">
<xsl:if test="//settings/@locale='en-us'"> <xsl:if test="//settings/@locale='en-us'">
<xsl:attribute name="selected"> <xsl:attribute name="selected">
@ -26,6 +33,7 @@
</xsl:if> </xsl:if>
<xsl:value-of select="$locale_strings[@id='language_en-us']" /> <xsl:value-of select="$locale_strings[@id='language_en-us']" />
</option> </option>
<option value="de-de"> <option value="de-de">
<xsl:if test="//settings/@locale='de-de'"> <xsl:if test="//settings/@locale='de-de'">
<xsl:attribute name="selected"> <xsl:attribute name="selected">
@ -34,72 +42,23 @@
</xsl:if> </xsl:if>
<xsl:value-of select="$locale_strings[@id='language_de-de']" /> <xsl:value-of select="$locale_strings[@id='language_de-de']" />
</option> </option>
</select> </select>
</div>
<div>
<h3><xsl:value-of select="$locale_strings[@id='settings_pagesize']" /></h3>
<br /> <br />
<select name="pagesize" size="7">
<option> <xsl:value-of select="$locale_strings[@id='settings_instruction_pagesize']" />
<xsl:if test="//settings/@pagesize=1"> <br />
<xsl:attribute name="selected">
selected <input name="pagesize" type="text" size="7">
<xsl:attribute name="value">
<xsl:value-of select="//settings/@pagesize" />
</xsl:attribute> </xsl:attribute>
</xsl:if> </input>
1 <br />
</option>
<option> <xsl:value-of select="$locale_strings[@id='settings_instruction_method']" />
<xsl:if test="//settings/@pagesize=2"> <br />
<xsl:attribute name="selected">
selected
</xsl:attribute>
</xsl:if>
2
</option>
<option>
<xsl:if test="//settings/@pagesize=5">
<xsl:attribute name="selected">
selected
</xsl:attribute>
</xsl:if>
5
</option>
<option>
<xsl:if test="//settings/@pagesize=10">
<xsl:attribute name="selected">
selected
</xsl:attribute>
</xsl:if>
10
</option>
<option>
<xsl:if test="//settings/@pagesize=20">
<xsl:attribute name="selected">
selected
</xsl:attribute>
</xsl:if>
20
</option>
<option>
<xsl:if test="//settings/@pagesize=50">
<xsl:attribute name="selected">
selected
</xsl:attribute>
</xsl:if>
50
</option>
<option>
<xsl:if test="//settings/@pagesize=100">
<xsl:attribute name="selected">
selected
</xsl:attribute>
</xsl:if>
100
</option>
</select>
</div>
<div>
<h3><xsl:value-of select="$locale_strings[@id='settings_cortado']" /></h3>
<input type="radio" name="cortado" value="1"> <input type="radio" name="cortado" value="1">
<xsl:if test="//settings/@cortado=1"> <xsl:if test="//settings/@cortado=1">
<xsl:attribute name="checked"> <xsl:attribute name="checked">
@ -107,6 +66,7 @@
</xsl:attribute> </xsl:attribute>
</xsl:if> </xsl:if>
</input> </input>
<xsl:value-of select="$locale_strings[@id='watch_cortadoapplet']" /> <xsl:value-of select="$locale_strings[@id='watch_cortadoapplet']" />
<br /> <br />
<input type="radio" name="cortado" value="0"> <input type="radio" name="cortado" value="0">
@ -116,12 +76,15 @@
</xsl:attribute> </xsl:attribute>
</xsl:if> </xsl:if>
</input> </input>
<xsl:value-of select="$locale_strings[@id='watch_browserplugin']" /> <xsl:value-of select="$locale_strings[@id='watch_browserplugin']" />
</div> <br />
<div>
<input name="submit" type="submit" /> <input name="submit" type="submit" />
</div>
</form> </form>
</div>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View file

@ -8,190 +8,236 @@
> >
<xsl:template name="uploadform"> <xsl:template name="uploadform">
<div class="uploadform"> <div class="uploadform">
<xsl:choose> <xsl:choose>
<xsl:when test="//uploadform/@page=1"> <xsl:when test="//uploadform/@page=1">
<span class="heading"> <span class="heading">
<xsl:value-of select="$locale_strings[@id='title_page_1']" /> <xsl:value-of select="$locale_strings[@id='title_page_1']" />
</span> </span>
<br /> <br />
<span class="instruction"> <span class="instruction">
<xsl:value-of select="$locale_strings[@id='instruction_page_1']" /> <xsl:value-of select="$locale_strings[@id='instruction_page_1']" />
</span> </span>
<br />
<form method="post"> <form method="post">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_upload']" /> <xsl:value-of select="$site_strings[@id='page_upload']" />
</xsl:attribute> </xsl:attribute>
<input name="DC.Creator" type="hidden"> <input name="DC.Creator" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Creator" /> <xsl:value-of select="//uploadform/@DC.Creator" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<input name="DC.Source" type="hidden"> <input name="DC.Source" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Source" /> <xsl:value-of select="//uploadform/@DC.Source" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<input name="DC.Language" type="hidden"> <input name="DC.Language" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Language" /> <xsl:value-of select="//uploadform/@DC.Language" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<input name="DC.Coverage" type="hidden"> <input name="DC.Coverage" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Coverage" /> <xsl:value-of select="//uploadform/@DC.Coverage" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<fieldset> <fieldset>
<div>
<xsl:value-of select="$locale_strings[@id='instruction_title']" /> <xsl:value-of select="$locale_strings[@id='instruction_title']" />
<br /> <br />
<input name="DC.Title" type="text" size="30"> <input name="DC.Title" type="text" size="30">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Title" /> <xsl:value-of select="//uploadform/@DC.Title" />
</xsl:attribute> </xsl:attribute>
</input> </input>
</div> <br />
<div>
<xsl:value-of select="$locale_strings[@id='instruction_subject']" /> <xsl:value-of select="$locale_strings[@id='instruction_subject']" />
<br /> <br />
<input name="DC.Subject" type="text" size="30"> <input name="DC.Subject" type="text" size="30">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Subject" /> <xsl:value-of select="//uploadform/@DC.Subject" />
</xsl:attribute> </xsl:attribute>
</input> </input>
</div> <br />
<div>
<xsl:value-of select="$locale_strings[@id='instruction_description']" /> <xsl:value-of select="$locale_strings[@id='instruction_description']" />
<br /> <br />
<textarea name="DC.Description" cols="60" rows="2"> <textarea name="DC.Description" cols="60" rows="2">
<xsl:value-of select="//uploadform/@DC.Description" /> <xsl:value-of select="//uploadform/@DC.Description" />
</textarea> </textarea>
</div> <br />
<input type="submit" name="2"> <input type="submit" name="2">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_next_page']" /> <xsl:value-of select="$locale_strings[@id='button_next_page']" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<br /> <br />
<span class="protip"> <span class="protip">
<xsl:value-of select="$locale_strings[@id='this_is_page_1']" /> <xsl:value-of select="$locale_strings[@id='this_is_page_1']" />
</span> </span>
</fieldset> </fieldset>
</form> </form>
</xsl:when> </xsl:when>
<xsl:when test="//uploadform/@page=2"> <xsl:when test="//uploadform/@page=2">
<span class="heading"> <span class="heading">
<xsl:value-of select="$locale_strings[@id='title_page_2']" /> <xsl:value-of select="$locale_strings[@id='title_page_2']" />
</span> </span>
<br /> <br />
<span class="instruction"> <span class="instruction">
<xsl:value-of select="$locale_strings[@id='instruction_page_2']" /> <xsl:value-of select="$locale_strings[@id='instruction_page_2']" />
</span> </span>
<form method="post"> <form method="post">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_upload']" /> <xsl:value-of select="$site_strings[@id='page_upload']" />
</xsl:attribute> </xsl:attribute>
<input name="DC.Title" type="hidden"> <input name="DC.Title" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Title" /> <xsl:value-of select="//uploadform/@DC.Title" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<input name="DC.Subject" type="hidden"> <input name="DC.Subject" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Subject" /> <xsl:value-of select="//uploadform/@DC.Subject" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<input name="DC.Description" type="hidden"> <input name="DC.Description" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Description" /> <xsl:value-of select="//uploadform/@DC.Description" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<input name="DC.Creator" type="hidden"> <input name="DC.Creator" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Creator" /> <xsl:value-of select="//uploadform/@DC.Creator" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<input name="DC.Source" type="hidden"> <input name="DC.Source" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Source" /> <xsl:value-of select="//uploadform/@DC.Source" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<input name="DC.Language" type="hidden"> <input name="DC.Language" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Language" /> <xsl:value-of select="//uploadform/@DC.Language" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<input name="DC.Coverage" type="hidden"> <input name="DC.Coverage" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Coverage" /> <xsl:value-of select="//uploadform/@DC.Coverage" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<fieldset> <fieldset>
<input type="submit" name="3"> <input type="submit" name="3">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_next_page']" /> <xsl:value-of select="$locale_strings[@id='button_next_page']" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<br /> <br />
<span class="protip"> <span class="protip">
<xsl:value-of select="$locale_strings[@id='this_is_page_2']" /> <xsl:value-of select="$locale_strings[@id='this_is_page_2']" />
</span> </span>
</fieldset> </fieldset>
</form> </form>
<xsl:call-template name="innerresults"/> <xsl:call-template name="innerresults"/>
</xsl:when> </xsl:when>
<xsl:when test="//uploadform/@page=3"> <xsl:when test="//uploadform/@page=3">
<span class="heading"> <span class="heading">
<xsl:value-of select="$locale_strings[@id='title_page_3']" /> <xsl:value-of select="$locale_strings[@id='title_page_3']" />
</span> </span>
<br /> <br />
<span class="instruction"> <span class="instruction">
<xsl:value-of select="$locale_strings[@id='instruction_page_3']" /> <xsl:value-of select="$locale_strings[@id='instruction_page_3']" />
</span> </span>
<form method="post"> <form method="post">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_upload']" /> <xsl:value-of select="$site_strings[@id='page_upload']" />
</xsl:attribute> </xsl:attribute>
<input name="DC.Title" type="hidden"> <input name="DC.Title" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Title" /> <xsl:value-of select="//uploadform/@DC.Title" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<input name="DC.Subject" type="hidden"> <input name="DC.Subject" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Subject" /> <xsl:value-of select="//uploadform/@DC.Subject" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<input name="DC.Description" type="hidden"> <input name="DC.Description" type="hidden">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Description" /> <xsl:value-of select="//uploadform/@DC.Description" />
</xsl:attribute> </xsl:attribute>
</input> </input>
<fieldset> <fieldset>
<div>
<xsl:value-of select="$locale_strings[@id='instruction_creator']" /> <xsl:value-of select="$locale_strings[@id='instruction_creator']" />
<br /> <br />
<input name="DC.Creator" type="text" size="30"> <input name="DC.Creator" type="text" size="30">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Creator" /> <xsl:value-of select="//uploadform/@DC.Creator" />
</xsl:attribute> </xsl:attribute>
</input> </input>
</div> <br />
<div>
<xsl:value-of select="$locale_strings[@id='instruction_source']" /> <xsl:value-of select="$locale_strings[@id='instruction_source']" />
<br /> <br />
<input name="DC.Source" type="text" size="30"> <input name="DC.Source" type="text" size="30">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Source" /> <xsl:value-of select="//uploadform/@DC.Source" />
</xsl:attribute> </xsl:attribute>
</input> </input>
</div> <br />
<div>
<xsl:value-of select="$locale_strings[@id='instruction_language']" /> <xsl:value-of select="$locale_strings[@id='instruction_language']" />
<br /> <br />
<select name="DC.Language" size="2"> <select name="DC.Language" size="2">
<option> <option>
<xsl:if test="//uploadform/@DC.Language=$locale_strings[@id='language_en-us']"> <xsl:if test="//uploadform/@DC.Language=$locale_strings[@id='language_en-us']">
@ -210,16 +256,18 @@
<xsl:value-of select="$locale_strings[@id='language_de-de']" /> <xsl:value-of select="$locale_strings[@id='language_de-de']" />
</option> </option>
</select> </select>
</div> <br />
<div>
<xsl:value-of select="$locale_strings[@id='instruction_coverage']" /> <xsl:value-of select="$locale_strings[@id='instruction_coverage']" />
<br /> <br />
<input name="DC.Coverage" type="text" size="30"> <input name="DC.Coverage" type="text" size="30">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="//uploadform/@DC.Coverage" /> <xsl:value-of select="//uploadform/@DC.Coverage" />
</xsl:attribute> </xsl:attribute>
</input> </input>
</div> <br />
<input type="submit" name="4"> <input type="submit" name="4">
<xsl:attribute name="value"> <xsl:attribute name="value">
<xsl:value-of select="$locale_strings[@id='button_next_page']" /> <xsl:value-of select="$locale_strings[@id='button_next_page']" />