Fixed APS template bug, patch by arnoldB, fixes #700

Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org>
This commit is contained in:
Florian Aders (EleRas)
2012-02-27 19:38:29 +01:00
parent 7d6d683e52
commit ec06768303
5 changed files with 22 additions and 14 deletions

View File

@@ -712,7 +712,7 @@ class ApsParser
$Output = ''; $Output = '';
foreach($Files as $File) foreach($Files as $File)
{ {
$Output.= '<input size="60" name="' . $File . '" type="file" /><br/><br/>'; $Output.= '<input size="45" name="' . $File . '" type="file" /><br /><br />';
} }
eval("echo \"" . getTemplate("aps/upload") . "\";"); eval("echo \"" . getTemplate("aps/upload") . "\";");

View File

@@ -6,7 +6,7 @@
</h2> </h2>
</header> </header>
<section class="midform bradiusodd"> <section class="midform midformaps_2 bradiusodd">
<form action="$filename" method="post" enctype="application/x-www-form-urlencoded"> <form action="$filename" method="post" enctype="application/x-www-form-urlencoded">
<p style="margin-left:10px;"> <p style="margin-left:10px;">

View File

@@ -6,7 +6,7 @@
</h2> </h2>
</header> </header>
<section class="midform bradiusodd"> <section class="midform midformaps_2 bradiusodd">
<form action="$filename" method="post" enctype="application/x-www-form-urlencoded"> <form action="$filename" method="post" enctype="application/x-www-form-urlencoded">
<fieldset> <fieldset>

View File

@@ -6,27 +6,23 @@
</h2> </h2>
</header> </header>
<section class="midform bradiusodd"> <section class="midform midformaps_1 bradiusodd">
<form action="$filename" method="post" enctype="multipart/form-data"> <form action="$filename" method="post" enctype="multipart/form-data">
<fieldset> <fieldset>
<legend>Froxlor&nbsp;-&nbsp;{$lng['aps']['upload']}</legend> <legend>Froxlor&nbsp;-&nbsp;{$lng['aps']['upload']}</legend>
<p style="margin-left:5em;"> <p>
<strong>{$lng['aps']['upload_description']}</strong><br /> <strong>{$lng['aps']['upload_description']}</strong><br />
<a href="http://www.apsstandard.org/" rel="external">http://www.apsstandard.org/</a> <a href="http://www.apsstandard.org/" rel="external">http://www.apsstandard.org/</a>
</p> </p>
<p style="margin-left:5em;">
{$Output} {$Output}
</p>
<p class="submit">
<input type="hidden" name="s" value="$s" /> <input type="hidden" name="s" value="$s" />
<input type="hidden" name="page" value="$page" /> <input type="hidden" name="page" value="$page" />
<input type="hidden" name="action" value="$action" /> <input type="hidden" name="action" value="$action" />
<input type="submit" value="{$lng['aps']['upload']}" /> <input type="submit" value="{$lng['aps']['upload']}" />
</p>
</fieldset> </fieldset>
</form> </form>
</section> </section>
</article> </article>

View File

@@ -229,6 +229,18 @@ footer a:hover {
text-align: right; text-align: right;
} }
.midformaps_1 {
padding:10px;
}
.midformaps_2 {
padding:5px;
}
.midformaps form input {
text-align: center;
}
.fullform textarea,.midform textarea { .fullform textarea,.midform textarea {
width: 60%; width: 60%;
} }