Exemple #1
0
        print "<tr>";
        print "<td>\n\t\t<input type=\"hidden\" name=\"koekkennr[{$x}]\" value=\"{$koekkennr[$x]}\">\n\t\t<input type=\"hidden\" name=\"antal[{$x}]\" value=\"{$antal[$x]}\">\n\t\t<input type=\"hidden\" name=\"beskrivelse[{$x}]\" value=\"{$beskrivelse[$x]}\">\n\t\t<input type=\"hidden\" name=\"bestil[{$x}]\" value=\"{$bestil[$x]}\">\n\t\t<input type=\"hidden\" name=\"leveret[{$x}]\" value=\"{$leveret[$x]}\">\n\t\t<input type=\"hidden\" name=\"tilfravalg[{$x}]\" value=\"{$tilfravalg[$x]}\">\n\t\t<input type=\"hidden\" name=\"notes[{$x}]\" value=\"{$notes[$x]}\">\n\t\t<input type=\"hidden\" name=\"koekkenprinter\" value=\"{$koekkenprinter}\">";
        for ($y = 0; $y < count($kategori[$x]); $y++) {
            print "<input type=\"hidden\" name=\"kategori[{$x}][{$y}]\" value=\"" . $kategori[$x][$y] . "\">";
        }
        print "{$beskrivelse[$x]}\n\t</td>";
        print "<td align=\"right\">" . str_replace(".", ",", $antal[$x]) . "</td><td align=\"right\"><!--" . str_replace(".", ",", $antal[$x]) . "--></td>";
        print "<td align=\"right\"><input style=\"width:50px;height:30px;text-align:right\" name=\"bestil_{$x}\" type=\"text\" value=\"\" placeholder=\"" . str_replace(".", ",", $bestil[$x]) . "\" onfocus=\"document.forms[0].fokus.value=this.name;\" onclick=\"javascript:document.koekkenprint.submit()\"></td>";
        print "<tr>";
    }
}
print "<tr><td colspan=\"5\"><input type=\"hidden\" name=\"fokus\"><input type=\"hidden\" name=\"pre_fokus\" value=\"{$fokus}\">";
print "<input style=\"width:100%;height:40px;font-size:120%\" type=\"submit\" name=\"send_bestilling\" value=\"Send til køkken\"></td></tr>";
print "</form>";
print "</tbody></table></td><td style=\"width:100px\"></td>";
tastatur();
#}
function tastatur()
{
    print "\n<!-- Function tastatur (start)-->\n";
    global $fokus;
    print "<TD height=\"100%\" valign=\"top\"  align=\"left\"><TABLE BORDER=\"0\" CELLPADDING=\"4\" CELLSPACING=\"4\"><TBODY>\n";
    print "<TR>\n";
    $stil = "STYLE=\"width:80px;height:40px;font-size:120%;\"";
    print "<TD><INPUT TYPE=\"button\" {$stil} NAME=\"one\"   VALUE=\"1\" OnClick=\"koekkenprint.{$fokus}.value += '1';koekkenprint.{$fokus}.focus();\"></TD>\n";
    print "<TD><INPUT TYPE=\"button\" {$stil} NAME=\"two\"   VALUE=\"2\" OnCLick=\"koekkenprint.{$fokus}.value += '2';koekkenprint.{$fokus}.focus();\"></TD>\n";
    print "<TD><INPUT TYPE=\"button\" {$stil} NAME=\"three\" VALUE=\"3\" OnClick=\"koekkenprint.{$fokus}.value += '3';koekkenprint.{$fokus}.focus();\"></TD>\n";
    print "</TR><TR>\n";
    print "<TD><INPUT TYPE=\"button\" {$stil} NAME=\"four\"  VALUE=\"4\" OnClick=\"koekkenprint.{$fokus}.value += '4';koekkenprint.{$fokus}.focus();\"></TD>\n";
    print "<TD><INPUT TYPE=\"button\" {$stil} NAME=\"five\"  VALUE=\"5\" OnCLick=\"koekkenprint.{$fokus}.value += '5';koekkenprint.{$fokus}.focus();\"></TD>\n";
    print "<TD><INPUT TYPE=\"button\" {$stil} NAME=\"six\"   VALUE=\"6\" OnClick=\"koekkenprint.{$fokus}.value += '6';koekkenprint.{$fokus}.focus();\"></TD>\n";
Exemple #2
0
    $r = db_fetch_array(db_select("select * from grupper where art = 'AFD' and kodenr='{$afd[$tmp]}'", __FILE__ . " linje " . __LINE__));
    $afd = $r['beskrivelse'];
    if ($afd) {
        print "<tr><td height=\"40%\" colspan=\"4\" align=\"center\" valign=\"middle\"><b><div style=\"font-size:25mm;color:{$bgcolor2};\">{$kasse}<br>{$afd}</div></b></td></tr>\n";
    } else {
        print "<tr><td height=\"40%\" colspan=\"4\" align=\"center\" valign=\"middle\"><b><div style=\"font-size:95mm;color:{$bgcolor2};\">{$kasse}</div></b></td></tr>\n";
    }
}
print "</tbody></table></td>\n";
print "<td valign=\"top\"><table width=\"100%\" border=\"0\"><tbody><td align=\"center\">\n";
print "<tr><td colspan=\"2\" valign=\"top\" height=\"1%\"><table width=\"100%\" border=\"0\"><tbody>\n";
hoved($kasse);
# kassebeholdning($kasse);
print "</tbody></table></td></tr>\n";
#print "</FORM><form name=tastatur action=pos_ordre.php?id=$id method=post>\n";
tastatur($status);
print "</FORM>\n";
print "</tbody></table></td></tr>\n";
print "<tr><td colspan=\"2\" valign=\"top\" height=\"1%\" align=\"center\"><table width=\"100%\" border=\"0\"><tbody>\n";
if ($status < 3) {
    menubuttons($id, $menu_id, $vare_id);
}
print "</td></tbody></table></td></tr>\n";
print "</td></tbody></table></td></tr>\n";
#print "<tr><td colspan=2 width=\"100%\" height=\"1%\"><table width=\"100%\" height=\"100%\" border=\"0\"><tbody>\n";
#footer ($kasse);
#print "</tbody></table></td></tr>\n";
# print "</tbody></table></td>\n";
function afslut($id, $betaling, $betaling2, $modtaget, $modtaget2, $indbetaling, $godkendt, $kortnavn)
{
    print "\n<!-- Function afslut (start)-->\n";
Exemple #3
0
}
print "<tr><td colspan=\"4\"><hr></td></tr>";
$saetpris = afrund($saetpris, 2);
# $saetpris=pos_afrund($saetpris,$difkto);
print "<tr><td>\n\t<input type=\"hidden\" name=\"kostsum\" value=\"{$kostsum}\">\n\t<input type=\"hidden\" name=\"normalsum\" value=\"{$normalsum}\">\n\t<input type=\"hidden\" name=\"saetpris\" value=\"{$saetpris}\">\n\t<input type=\"hidden\" name=\"saet\" value=\"{$saet}\">\n\t<!--Kostpris</td><td colspan=\"2\" align=\"right\">" . dkdecimal($kostsum) . "--></td></tr>";
print "<tr><td>Normalpris</td><td title=\"Kostpris: " . dkdecimal($kostsum) . "\" colspan=\"2\" align=\"right\">" . dkdecimal($normalsum) . "</td></tr>";
if (in_array("checked", $medtag)) {
    print "<tr><td>Sætpris</td><td  title=\"Kostpris: " . dkdecimal($kostsum) . "\" colspan=\"2\" align=\"right\"><input type=\"text\" style=\"text-align:right\" value=\"" . dkdecimal($saetpris) . "\" name=\"ny_saetpris\"></td></tr>";
}
print "<tr><td colspan=\"4\"><hr></td></tr>";
print "<tr><td colspan=\"4\"><input type=\"hidden\" name=\"fokus\"><input type=\"hidden\" name=\"pre_fokus\" value=\"{$fokus}\">";
print "<input style=\"width:100%;height:40px;font-size:120%\" type=\"submit\" name=\"opdater\" value=\"Opdater\"></td></tr>";
print "</form>";
print "</tbody></table></td><td width=\"10%\"><br></td>";
$fokus = "ny_saetpris";
tastatur($id, $fokus, $saet);
function tastatur($id, $fokus, $saet)
{
    global $art;
    $x = 0;
    $q = db_select("select saet from ordrelinjer where ordre_id='{$id}' and saet>'0' group by saet order by saet", __FILE__ . " linje " . __LINE__);
    while ($r = db_fetch_array($q)) {
        $saets[$x] = $r['saet'];
        $x++;
    }
    if (!$x) {
        $saets[0] = 1;
    }
    print "\n<!-- Function tastatur (start)-->\n";
    print "<TD height=\"100%\" valign=\"top\" align=\"left\" width=\"45%\"><TABLE BORDER=\"0\" CELLPADDING=\"4\" CELLSPACING=\"4\"><TBODY>\n";
    print "<TR>\n";