Merge branches 'buttons', 'numeric' and 'pdflatex'
authorJoey Schulze <joey@infodrom.org>
Sun, 22 Dec 2013 12:04:15 +0000 (13:04 +0100)
committerJoey Schulze <joey@infodrom.org>
Sun, 22 Dec 2013 12:04:15 +0000 (13:04 +0100)
artikel.php
ordersatz_pos.php
utils.php

index ccaefb0..aa135b0 100644 (file)
@@ -22,7 +22,7 @@ $form = '
 <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>
@@ -113,7 +113,7 @@ $jscode[] = str_replace('CONTENT_FORM', str_replace(array("\n"),
 
 $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;
 
index 67d300b..b4743b7 100644 (file)
@@ -99,11 +99,11 @@ 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>
 &nbsp;
-<button onclick="return build_pdf()">PDF erstellen</button>
+<button class="custom" onclick="return build_pdf()">PDF erstellen</button>
 &nbsp;
-<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;
index 7ad39ac..9e5e005 100644 (file)
--- a/utils.php
+++ b/utils.php
@@ -177,7 +177,7 @@ function ordersatz_write($id, $dir, $send)
 
   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());
@@ -185,7 +185,7 @@ function ordersatz_write($id, $dir, $send)
                   "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";