Menu

Kleines Problem!

Anonymous
2002-10-11
2002-10-11
  • Anonymous

    Anonymous - 2002-10-11

    Zu ersteinmal: Ein echt super Shop! Riesen Lob!

    Hab noch ein kleines Problem:

    Auf der Bestellbesttigungsseite steht oben links der Betrag. Wie bekkomm ich den weg. Hier habt Ihr ein berblick in die mailer.inc.php - Datei:
    ___________________________________
    <?
    $caller="mailer";
    $user_result = db_query("select * from user where ID='$user_ID'") or db_die();
    $user_row = db_fetch_row($user_result);
    $onl_res = db_query("select * from online where session='$sess'") or db_die();
    $onl_row = db_fetch_row($onl_res);
    $paym_res = db_query("select * from payment where ID='$paym'") or db_die();
    $paym_row = db_fetch_row($paym_res);
    $shipm_res = db_query("select * from shipment where ID='$shipm'") or db_die();
    $shipm_row = db_fetch_row($shipm_res);

    $mail_text2="$mail_0a\n\n";
    $mail_text2=$mail_text2.$mail_0b."\n";
    $mail_text2=$mail_text2.$mail_0c."\n";
    $mail_text2=$mail_text2.$mail_0d."\n\n";
    $mail_line = " ----------------------------------------------------------- \n";
    $mail_text2=$mail_text2.$mail_line;

    $mail_text=$mail_text.$mail_2.": $user_row[7]\n";
    if ($user_row[15]) {$mail_text=$mail_text.$mail_3.": $user_row[15]\n";}
    $mail_text=$mail_text.$mail_4.": $user_row[1] $user_row[2]\n";
    $mail_text=$mail_text.$mail_5.": $user_row[5]\n";
    $mail_text=$mail_text.$mail_6.": $user_row[8] $user_row[9]\n";
    $mail_text=$mail_text.$mail_7."/".$mail_8.": $user_row[12] $user_row[10] $user_row[11]\n\n";
    $mail_text=$mail_text.$mail_line;
    $fpm_price = pm_price($paym, $curID);
    $mail_text=$mail_text."$pay_31: $paym_row[1] - $fpm_price $cursym\n";
    for ($p=0; $p < sizeof($pfield); $p++) {
      $mail_text=$mail_text."$pname[$p]: $pfield[$p]\n";
    }
    $mail_text=$mail_text.$mail_line;
    $fsm_price = sm_price($shipm, $curID);
    $mail_text=$mail_text."$pay_32: $shipm_row[1] - $fsm_price $cursym\n";
    for ($p=0; $p < sizeof($sfield); $p++) {
      $mail_text=$mail_text."$sname[$p]: $sfield[$p]\n";
    }
    $mail_text=$mail_text.$mail_line;
    $mail_text=$mail_text.$mail_9.": $message\n";
    $mail_text=$mail_text.$mail_line;
    $mail_text=$mail_text."IP: $onl_row[6], $onl_row[4]\n";
    $mail_text=$mail_text."Send via $SERVER_NAME\n";
    $contents = $cart->display_contents($sess);
    if($contents[product][0] != "")   {
        $x = 0;
        while($x != $cart->num_items($sess)) {
            $mail_text=$mail_text."$mail_10: ".$contents[art_nr][$x].";\n";
              $mail_text=$mail_text."$mail_11: ".$contents[product][$x];
                    if (strlen($contents[groesse][$x])>1) {$mail_text=$mail_text.", ".$contents[groesse][$x];}
                    $mail_text=$mail_text."\n$mail_12: ";
            $fprice = frmtprice($contents[price][$x],$sess);
            $mail_text=$mail_text.$fprice."\n";
            $mail_text=$mail_text."\n$mail_13: ".$contents[quantity][$x].$contents[package][$x]."\n$mail_14: ";
              $fprice = frmtprice($contents[total][$x],$sess);
                $mail_text=$mail_text.$fprice."\n\n";
              $x++;
        }
    if ($user_pt == 1) {
      $express = $fpm_price + $fsm_price;
      $mail_text .= "$pay_20: ";
      echo frmtprice(array_sum($cart->cart_total($sess,$express)),$sess);
      $mwst = $cart->cart_total($sess,$express);
      $pts_res = db_query("select ID,vat from pricetype") or db_die();
      while ($pts_row = db_fetch_row($pts_res)) {
        $mwst_text[$pts_row[0]] = ($pts_row[1]*100)-100;
        $mwst[$pts_row[0]] = $mwst[$pts_row[0]]-($mwst[$pts_row[0]]/$pts_row[1]);
        $mwst[$pts_row[0]] = frmtprice($mwst[$pts_row[0]], $sess);
        if (($mwst[$pts_row[0]] == 0) AND ($show_null == 0)) {$mail_text .="\n";}
        else {$mail_text .="$pay_21a ".$mwst_text[$pts_row[0]]." % $pay_21b ".$mwst[$pts_row[0]]."\n";}
      }
    }
    if ($user_pt == 0) {
      $express = ($fpm_price + $fsm_price)/$vatconv;
      $mail_text .= "$pay_20 ($pay_36): ";
      $mail_text .= frmtprice(array_sum($cart->cart_total($sess,$express)),$sess);
      $mwst = $cart->cart_total($sess,$express);
      $pts_res = db_query("select ID,vat from pricetype") or db_die();
      while ($pts_row = db_fetch_row($pts_res)) {
        $mwst_text[$pts_row[0]] = ($pts_row[1]*100)-100;
        $brutto[$pts_row[0]] = $mwst[$pts_row[0]]*$pts_row[1];
        $mwst[$pts_row[0]] = $mwst[$pts_row[0]]-($mwst[$pts_row[0]]/$pts_row[1]);
        $mwst[$pts_row[0]] = frmtprice($mwst[$pts_row[0]], $sess);
        if (($mwst[$pts_row[0]] == 0) AND ($show_null == 0)) {$mail_text .= "\n";}
        else {$mail_text .= "$pay_35 ".$mwst_text[$pts_row[0]]." % $pay_38: ".$mwst[$pts_row[0]]."\n";}
      }
      for ($i=1; $i<sizeof($brutto)+1; $i++) {
        if ($brutto[$i]!=0) {$mail_text .= "$pay_20 ($pay_37, $mwst_text[$i]%): ".frmtprice($brutto[$i],$sess)."\n";}
      }
      $mail_text .= "$pay_20 ($pay_37): ".frmtprice(array_sum($brutto),$sess)."\n";
    }
        $mail_text2 = $mail_text2.$mail_text.$mail_line;
    }
    echo "<table width=500 border=0 cellpadding=2 align=center><tr bgcolor=\"$bgcolor3\"><td colspan=2 align=center>\n";
    echo "<b><font color=\"$bgcolor1\">$mail_18</font></b></td></tr>\n";
    echo "<tr><td>$mail_2</td><td>$user_row[7]</td></tr>\n";
    if ($user_row[13]) {echo "<tr><td>$mail_3</td><td>$user_row[13]</td></tr>\n";}
    echo "<tr><td>$mail_4</td><td width=50%>$user_row[1]&nbsp;$user_row[2]</td></tr>\n";
    echo "<tr><td>$mail_5</td><td>$user_row[5]</td></tr>\n";
    echo "<tr><td>$mail_6</td><td>$user_row[8] $user_row[9]</td></tr>\n";
    echo "<tr><td>$mail_7/$mail_8</td><td>$user_row[12]&nbsp;$user_row[10]&nbsp;$user_row[11]</td></tr>\n";
    echo "<tr><td colspan=2>$message</td></tr></table>";

    require("show_content.inc.php");

    # Bezahlungs- und Versandarten
    echo "<table align=center width=500 border=0>\n";
    echo "<tr valign=top><td>";
    echo "$pay_31: $paym_row[1] - $fpm_price $cursym<br>\n";
    if (isset($pfield)) { $paym_details = implode("<br>",$pfield); }
    echo "$paym_details</td><td>\n";
    echo "$pay_32: $shipm_row[1] - $fsm_price $cursym<br>\n";
    if (isset($sfield)) { $shipm_details = implode("<br>",$sfield); }
    echo "$shipm_details</td></tr>\n";
    if ($user_pt == 1) {
      $express = $fpm_price + $fsm_price;
      echo "<tr><td align=right colspan=2><b>$pay_20: ";
      echo frmtprice(array_sum($cart->cart_total($sess,$express)),$sess);
      echo "</b><br>\n";
      echo "</td></tr><tr><td colspan=2>\n";
      $mwst = $cart->cart_total($sess,$express);
      $pts_res = db_query("select ID,vat from pricetype") or db_die();
      while ($pts_row = db_fetch_row($pts_res)) {
        $mwst_text[$pts_row[0]] = ($pts_row[1]*100)-100;
        $mwst[$pts_row[0]] = $mwst[$pts_row[0]]-($mwst[$pts_row[0]]/$pts_row[1]);
        $mwst[$pts_row[0]] = frmtprice($mwst[$pts_row[0]], $sess);
        if (($mwst[$pts_row[0]] == 0) AND ($show_null == 0)) {echo "&nbsp;<br>\n";}
        else {echo "$pay_21a ".$mwst_text[$pts_row[0]]." % $pay_21b ".$mwst[$pts_row[0]]."<br>\n";}
      }
    }
    if ($user_pt == 0) {
      $express = ($fpm_price + $fsm_price)/$vatconv;
      echo "<tr><td align=right colspan=2>$pay_20 ($pay_36): ";
      echo frmtprice(array_sum($cart->cart_total($sess,$express)),$sess);
      echo "<br>\n";
      echo "</td></tr><tr><td colspan=2 align=right>\n";
      $mwst = $cart->cart_total($sess,$express);
      $pts_res = db_query("select ID,vat from pricetype") or db_die();
      while ($pts_row = db_fetch_row($pts_res)) {
        $mwst_text[$pts_row[0]] = ($pts_row[1]*100)-100;
        $brutto[$pts_row[0]] = frmtprice($mwst[$pts_row[0]]*$pts_row[1],$sess);
        $mwst[$pts_row[0]] = $mwst[$pts_row[0]]-($mwst[$pts_row[0]]/$pts_row[1]);
        $mwst[$pts_row[0]] = frmtprice($mwst[$pts_row[0]], $sess);
        if (($mwst[$pts_row[0]] == 0) AND ($show_null == 0)) {echo "&nbsp;\n";}
        else {echo "$pay_35 ".$mwst_text[$pts_row[0]]." % $pay_38: ".$mwst[$pts_row[0]]."<br>\n";}
      }
      echo "<tr><td align=right colspan=3>\n";
      for ($i=1; $i<sizeof($brutto)+1; $i++) {
        if ($brutto[$i]!=0) {echo "$pay_20 ($pay_37, $mwst_text[$i]%): $brutto[$i]<br>\n";}
      }
      echo "<b>$pay_20 ($pay_37): ".frmtprice(array_sum($brutto),$sess)."</b><br>\n";
    }

    echo "</td></tr></table>\n\n";

    echo "<table border=0 cellpadding=2 width=500 align=center><tr>\n";
    echo "<td align=left><form action=\"login.php\" method=\"post\" target='_parent'><input type=hidden name=\"mode\" value=\"logout\"><input type=hidden name=sess value=\"$sess\">";
    echo "<input type=submit value='$mail_23'></form></td>\n";

    echo "<td align=center><form action='javascript:window.print()' method=\"post\">";
    echo "<input type=submit value='$mail_24'></form></td>\n";

    echo "<td align=right><form action=\"main.php\" method=\"post\"><input type=hidden name=sess value=\"$sess\">";
    echo "<input type=submit value='$mail_25'></form></td>\n";

    echo "</tr></table></center>\n";

    mail("$order_mail","$mail_16", "$mail_text", "From: $shop_mail");
    if ($automail) {mail("$user_row[5]","$mail_17", "$mail_text2", "From: $order_mail");}

    // statistics
    #include("stats.php");

    #$exit = db_query("delete from cart where cart.session='$sess'") or db_die();
    include("footer.inc.php");
    ?>
    _____________________________________

    Wo muss ich denn was ndern?

    Vielen Dank im Voraus!

    Holger

     

Log in to post a comment.