<label for="form_preis">Preis</label><br>
<input id="form_preis" name="preis" size="10">
<div class="buttons" style="margin-top: 15px;">
-<button onclick="return add_price(this);">Hinzufügen</button>
+<button class="custom" onclick="return add_price(this);">Hinzufügen</button>
</div>
</form>
</div>
$buttons = <<<EOC
<p style="margin-top: 5px; margin-bottom: 4px; text-align: center;">
-<button onclick="return open_popup()">Preis hinzufügen</button>
+<button class="custom" onclick="return open_popup()">Preis hinzufügen</button>
</p>
EOC;
$buttons = <<<EOC
<p style="margin-top: 0px; margin-bottom: 4px; text-align: center;">
-<button onclick="return import_articles()">Artikel importieren</button>
+<button class="custom" onclick="return import_articles()">Artikel importieren</button>
-<button onclick="return build_pdf()">PDF erstellen</button>
+<button class="custom" onclick="return build_pdf()">PDF erstellen</button>
-<button onclick="return finish()">Abschließen</button>
+<button class="custom" onclick="return finish()">Abschließen</button>
<br>Bei Abschluß wird ein Fax zu Metro und eine Kopie per Mail an den Koch geschickt.
</p>
EOC;
fclose($f);
- system("latex ordersatz > ordersatz.out 2>&1 && dvips ordersatz >> ordersatz.out 2>&1 && ps2pdf ordersatz.ps", $ret);
+ system("latex ordersatz > ordersatz.out 2>&1 && dvips ordersatz >> ordersatz.out 2>&1 && pdflatex ordersatz >> ordersatz.out", $ret);
if ($ret !== 0) {
$fname = sprintf("ordersatz-%d-%d.tar.bz2", $id, time());
"mail -s 'Probleme beim Compilieren des Ordersatzes %d' %s < %s && " .
"sendfile -Q -c='Probleme beim Compilieren des Ordersatzes %d' %s %s",
$fname,
- $id, ERROR_MAIL, $fname
+ $id, ERROR_MAIL, $fname,
$id, $fname, ERROR_SAFT);
system($cmd);
return "Probleme beim Compilieren des Ordersatzes";