Skip to content

Commit

Permalink
Vähän fiilauksia vielä!
Browse files Browse the repository at this point in the history
  • Loading branch information
juppe committed Jul 10, 2012
1 parent a48e843 commit c7e8707
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion epakurantti.inc
Expand Up @@ -509,7 +509,7 @@
laji = 'arvomuutos',
kpl = 0,
hinta = {$uusi_keskihankintahinta},
kplhinta = {$uusi_keskihankintahinta},
kplhinta = {$tuoterow['kehahin']},
selite = '{$epakurantti_selite}',
laatija = '$kukarow[kuka]',
laadittu = '$luontiaika1'";
Expand Down
27 changes: 16 additions & 11 deletions epakurantti.php
Expand Up @@ -31,6 +31,9 @@
$tee = '';
}
}
else {
$tee = '';
}
}

if ($toim == "VAIHDAKEHAHIN" and $tee == "tiedostosta") {
Expand Down Expand Up @@ -188,7 +191,7 @@
}

if ($tee == '') {
echo "<table><tr><th>".t("Valitse tuote")."</th><td>";
echo "<br><table><tr><th>".t("Valitse tuote")."</th><td>";
echo "<form name='epaku' method='post' autocomplete='off'>";
echo "<input type='hidden' name='toim' value='{$toim}'>";
echo "<input type='text' name='tuoteno'>";
Expand All @@ -198,22 +201,24 @@
echo "</form>";
echo "</td></tr></table>";


if ($toim == "VAIHDAKEHAHIN") {


echo "<br><br><form method='post' enctype='multipart/form-data'>";
echo "<input type='hidden' name='toim' value='{$toim}'>";
echo "<input type='hidden' name='tee' value='tiedostosta'>";
echo "<table>";
echo " <tr><th>".t("Valitse tiedosto").":</th>
<td><input name='userfile' type='file'></td></tr>";

echo "</table>";

echo "<br><br>
<font class='head'>".t("Lue tuotteet tiedostosta")."</font><hr>
<table>
<tr><th colspan='3'>".t("Tiedostomuoto").":</th></tr>
<tr>";
echo "<td>".t("Tuoteno")."</td><td>".t("Keskihankintahinta")."</td><td>".t("Selite")."</td>";
echo "</tr>";
echo "<tr><td class='back'><br></td></tr>";
echo "<tr><th>".t("Valitse tiedosto").":</th>
<td colspan='2'><input name='userfile' type='file'></td></tr>";

echo "<br><br><input type='submit' value='".t("Valitse")."'>
</form>";
echo "</table>";
echo "<br><br><input type='submit' value='".t("Valitse")."'></form>";
}

// kursorinohjausta
Expand Down

0 comments on commit c7e8707

Please sign in to comment.