Kontaktpostkarte in osc shop einbinden


 
Neues Thema eröffnen   Neue Antwort erstellen    Webmaster Forum -> Hilfe für Webmaster
Vorheriges Thema anzeigen :: Nächstes Thema anzeigen  
Autor Nachricht
histocard
Gast

BeitragKontaktpostkarte in osc shop einbinden Antworten mit Zitat

axinio Internet Marketing
Hallo und Grüß Gott!

Habe hier dieses tolle Kontaktpostkarten-Tool gefunden ... Wir haben einen Shop für alte Ansichtskarten ... passt also wie die Faust auf's Auge.

Nun habe ich Proleme die richtige Stelle in meiner Contact_us.php zu finden wo ich dieses Script einfügen muß (die ursprüngliche Tabelle muß ja auch noch raus). Vielleicht kann mir jemand dabei helfen? Der Einfachheit halber poste ich mal meine contact_us und die kontaktpostkarte.php. Dann wäre noch interessant in welches Verzeichnis ich die Grafiken hinterlegen muß! Also wär toll wenn mir da jemand behilflich sein könnte!

Danke und hoffentlich bis bald! Julia

meine contact_us.php:
PHP-Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?php
/*
  $Id: contact_us.php 1739 2007-12-20 00:52:16Z hpdl $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

  
require('includes/application_top.php');

  require(
DIR_WS_LANGUAGES $language '/' FILENAME_CONTACT_US);

  
$error false;
  if (isset(
$HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {
    
$name tep_db_prepare_input($HTTP_POST_VARS['name']);
    
$email_address tep_db_prepare_input($HTTP_POST_VARS['email']);
    
$enquiry tep_db_prepare_input($HTTP_POST_VARS['enquiry']);

    if (
tep_validate_email($email_address)) {
      
tep_mail(STORE_OWNERSTORE_OWNER_EMAIL_ADDRESSEMAIL_SUBJECT$enquiry$name$email_address);

      
tep_redirect(tep_href_link(FILENAME_CONTACT_US'action=success'));
    } else {
      
$error true;

      
$messageStack->add('contact'ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
    }
  }

  
$breadcrumb->add(NAVBAR_TITLEtep_href_link(FILENAME_CONTACT_US));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>">
<title><?php echo TITLE?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER HTTP_SERVER) . DIR_WS_CATALOG?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
  <tr>
    <td width="<?php echo BOX_WIDTH?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES 'column_left.php'); ?>
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top"><?php echo tep_draw_form('contact_us'tep_href_link(FILENAME_CONTACT_US'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading"><?php echo HEADING_TITLE?></td>

<?php echo TEXT_INFORMATION?>

            <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES 'table_background_contact_us.gif'HEADING_TITLEHEADING_IMAGE_WIDTHHEADING_IMAGE_HEIGHT); ?></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif''100%''10'); ?></td>
      </tr>
<?php
  
if ($messageStack->size('contact') > 0) {
?>
      <tr>
        <td><?php echo $messageStack->output('contact'); ?></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif''100%''10'); ?></td>
      </tr>
<?php
  
}

  if (isset(
$HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {
?>
      <tr>
        <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES 'table_background_man_on_board.gif'HEADING_TITLE'0''0''align="left"') . TEXT_SUCCESS?></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif''100%''10'); ?></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif''10''1'); ?></td>
                <td align="right"><?php echo '<a href="' tep_href_link(FILENAME_DEFAULT) . '">' tep_image_button('button_continue.gif'IMAGE_BUTTON_CONTINUE) . '</a>'?></td>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif''10''1'); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
<?php
  
} else {
?>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td class="main"><?php echo ENTRY_NAME?></td>
              </tr>
              <tr>
                <td class="main"><?php echo tep_draw_input_field('name'); ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo ENTRY_EMAIL?></td>
              </tr>
              <tr>
                <td class="main"><?php echo tep_draw_input_field('email'); ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo ENTRY_ENQUIRY?></td>
              </tr>
              <tr>
                <td><?php echo tep_draw_textarea_field('enquiry''soft'5015); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif''100%''10'); ?></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif''10''1'); ?></td>
                <td align="right"><?php echo tep_image_submit('button_continue.gif'IMAGE_BUTTON_CONTINUE); ?></td>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif''10''1'); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
<?php
  
}
?>
    </table></form></td>
<!-- body_text_eof //-->
    <td width="<?php echo BOX_WIDTH?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES 'column_right.php'); ?>
<!-- right_navigation_eof //-->
    </table></td>
  </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES 'application_bottom.php'); ?>


und die kontaktpostkarte.php:
PHP-Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
  <title>Kontaktpostkarte</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

  <script type="text/javascript">
  function eingaben_ueberpruefen() {
   var mail = document.Formular.email.value;
   if (document.Formular.vorname.value.length < 3) {
    alert("Bitte geben Sie Ihren Vornamen ein.")
    document.Formular.vorname.focus();
    return false;
   }
   else if (document.Formular.nachname.value.length < 3) {
    alert("Bitte geben Sie Ihren Nachnamen ein.");
    document.Formular.nachname.focus();
    return false;
   }
   else if (mail.length < 10 || mail.indexOf ('@',0) == -1 || mail.indexOf ('.',0) == -1) {
    alert("Bitte geben Sie eine gültige E-Mail-Adresse ein.")
    document.Formular.email.select();
    return false;
   }
   else if (document.Formular.betreff.value.length < 6) {
    alert("Bitte geben Sie einen Betreff ein!")
    document.Formular.betreff.focus();
    return false;
   }
   else if (document.Formular.nachricht.value.length < 12) {
    alert("Bitte geben Sie eine Mitteilung ein!")
    document.Formular.nachricht.focus();
    return false;
   }
   else
   return true;
  }

  function drehen(p) {
   if (p == 1) {
    document.getElementById("bild").style.display="none";
    document.getElementById("form").style.display="block";
   }
   if (p == 2) {
    document.getElementById("bild").style.display="block";
    document.getElementById("form").style.display="none";
   }
  }
  </script>

  <style type="text/css">
  body {
   font-family: "Comic Sans MS", Verdana, Sans-Serif;
   text-align: center;
  }

  .eingabe {
   border: 0px;
   width: 200px;
   border-bottom: solid 1px #000000;
   background-color: transparent;
   font-family: "Comic Sans MS", Verdana, Sans-Serif;
   font-size: 13px;
   color: #0000A0;
  }

  .eingabefeld {
   width: 200px;
   height: 110px;
   overflow: auto;
   border: solid 1px #000000;
   background-color: transparent;
   font-family: "Comic Sans MS", Verdana, Sans-Serif;
   font-size: 12px;
   color: #0000A0;
  }

  .tabelle {
   background-image: url(papier.jpg);
   border: solid 1px #000000;
  }

  .empfaenger {
   font-family: "Comic Sans MS", Verdana, Sans-Serif;
   font-size: 16px;
   color: #000000;
   margin-top: 50px;
  }

  .button {
   font-family: Verdana, Sans-Serif;
   color: #000000;
   text-decoration: underline;
   font-size: 15px;
   background-color: transparent;
   border: 0;
   margin-top: 10px;
   margin-left: 25px;
   width: 155px;
  }

  .vertikale_linie {
   width: 1px;
   height: 335px;
   background-color: #797979;
  }

  .klein {
   font-family: Tahoma,Arial;
   font-size: 11px;
   color: #5F5F5F;
  }

  #filter {
   width: 255px;
   height: 100px;
   padding-left: 15px;
   padding-top: 15px;
   font-family: "Comic Sans MS", Verdana, Sans-Serif;
   font-size: 17px;
   font-weight: bold;
   color: #000000;
   background-color: #FFFFFF;
   margin-left: 115px;
   filter: alpha(opacity=50);
   opacity: 0.5;
  }

  #layer {
   width: 500px;
   height: 357px;
   background-image: url(bild.jpg);
   background-repeat: no-repeat;
   border: solid 1px #000000;
  }
  </style>

 </head>
<body>

<h1>Kontaktpostkarte</h1>

<!-- Rahmen -->
<table cellPadding="0" cellSpacing="0" border="0" align="center"><tr><td>

<?php
/* Kontaktpostkarte - Homepage-Total.de */
if ($_POST) {

 
# Hier Ihre E-Mail-Adresse eintragen
 
$an ="meyer@histocard.info";

 
# Diese Nachricht wird an Ihre E-Mail-Adresse gesendet
 
$text ="Hallo,\n Sie haben eine neue Nachricht von " $_POST['vorname'] . " " $_POST['nachname'] . " erhalten:\n\n
 ====\n " 
$_POST['nachricht'] . "\n====\n\nSie koennen den Besucher unter dieser E-Mail " $_POST['email'] . " erreichen.";

 @
mail($an$_POST['betreff'], $text"From: " $_POST['email']); // E-Mail versenden

// Meldung anzeigen
echo "<table cellPadding='0' cellSpacing='0'>
 <tr>
  <td id='layer'>
   <div id='filter'>
     " 
$_POST['vorname'] . " " $_POST['nachname'] . ", <br>
     die Postkarte wurde <br>
     gesendet - Vielen Dank!
   </div>
  </td>
 </tr>
</table>
"
;

}
else { 
?>

<form name="Formular" action="<?php echo $_SERVER['SCRIPT_NAME'?>" method="post" onSubmit="return eingaben_ueberpruefen();" style="display: inline;">
<a href="javascript&#058;drehen(1);"><img src="bild.jpg" id="bild" border="0" width="500" height="357" alt="" title=" Postkarte umdrehen! " style="display: block;"></a>
<table width="500" cellPadding="10" cellSpacing="0" class="tabelle" style="display: none;" id="form">
 <tr>
  <td width="200">
   <input type="text" class="eingabe" name="vorname">
   <div class="klein">Vorname</div>
   <input type="text" class="eingabe" name="nachname">
   <div class="klein">Nachname</div>
   <input type="text" class="eingabe" name="email">
   <div class="klein">E-Mail-Adresse</div>
   <input type="text" class="eingabe" name="betreff">
   <div class="klein">Betreff</div><br>
   <span class="klein">Ihre Mitteilung:</span><br>
   <textarea name="nachricht" class="eingabefeld"></textarea><br>
   <input type="submit" value="Postkarte absenden" class="button">
  </td>
  <td width="1%"><div class="vertikale_linie"></div></td>
  <td valign="top">
   <div align="right">
    <a href="javascript&#058;drehen(2);">
     <img src="porto.gif" width="177" height="150" alt="" border="0" title=" Postkarte umdrehen! ">
    </a>
   </div>
   <div class="empfaenger">


    <!-- Hier Ihre Anschrift eintragen -->
    An: Histocard<br>
    <strong>Norbert Haidl</strong> <br>
    Führichstraße 37<br><br>
    <strong>81671 München</strong>


   </div>
  </td>
 </tr>
</table>
</form>

<?php 
}
?>

<!-- Rahmen -->
</td><td><img src="shadow_v.gif" height="357" alt=""></td></tr>
<tr><td colspan="2"><img src="shadow_h.gif" width="519" alt=""></td></tr>
</table>

</body>
</html>
01 Jul 2010 15:48
axinio Internet Marketing
Beiträge der letzten Zeit anzeigen:   
Neues Thema eröffnen   Neue Antwort erstellen    Webmaster Forum -> Hilfe für Webmaster Alle Zeiten sind GMT + 1 Stunde
Seite 1 von 1

 
Gehe zu:  

Ähnliche Beiträge
Thema Webmaster Forum Antw. Autor Verfasst am
Keine neuen Beiträge Hip Hop Shop Werbung - Projektvorstellung 0 Nr10 26 Jan 2012 17:18 Letzten Beitrag anzeigen
Keine neuen Beiträge Neuer Online Shop Werbung - Projektvorstellung 0 Giffinger 26 Jan 2012 15:56 Letzten Beitrag anzeigen
Keine neuen Beiträge Biete Hochzeit Online Shop Design Marktplatz 0 sonchen80 09 Jan 2012 14:38 Letzten Beitrag anzeigen
Keine neuen Beiträge www.gmobile24.de - Neueröffnung des O... Werbung - Projektvorstellung 3 Gmobile24.de 10 Okt 2011 11:14 Letzten Beitrag anzeigen
Keine neuen Beiträge Poweroase.de - Online-Shop für Sportn... Werbung - Projektvorstellung 0 Poweroase 06 Sep 2011 09:12 Letzten Beitrag anzeigen