This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
info [2014/12/06 18:37] 127.0.0.1 external edit |
info [2015/04/18 08:30] hess [Contact] |
||
---|---|---|---|
Line 6: | Line 6: | ||
function tasks(task) { | function tasks(task) { | ||
$(".result").html("Processing, please wait..."); | $(".result").html("Processing, please wait..."); | ||
- | var message = $("#message").val() + "\n Articles: \n" + $("#article-list").text() + "\n Address: \n" + $("#address").val(); | + | var message = $("#message").val() + "\n Articles: \n" + $("#article-list").text() + "\n E-mail: \n" + $("#replyTo").val() + "\n Address: \n" + $("#address").val(); |
- | $.get("/lib/tpl/netmodule/tasks.php", { task: task, subject: $("#subject option:selected").text() , message: message }, function( data ) { | + | var subject = $("#subject option:selected").text() |
+ | var recipient = 'sales@netmodule.com'; | ||
+ | var replyTo = $("#replyTo").val(); | ||
+ | if ($("#subject").val() == "order" ) { | ||
+ | recipient = 'orders@netmodule.com'; | ||
+ | } | ||
+ | alert(message); | ||
+ | /* | ||
+ | $.get("/lib/tpl/netmodule/tasks.php", { task: task, subject: subject, message: message, recipient: recipient, replyTo: replyTo }, function( data ) { | ||
$( ".result" ).html("The message has been sent. We will get back to you as soon as possible."); | $( ".result" ).html("The message has been sent. We will get back to you as soon as possible."); | ||
}); | }); | ||
+ | */ | ||
} | } | ||
function update() { | function update() { | ||
Line 37: | Line 46: | ||
<td>Articles:</td> | <td>Articles:</td> | ||
<td><p id='article-list'>Select articles below <br/>(amount for quotations/orders, ? for questions)</p></td> | <td><p id='article-list'>Select articles below <br/>(amount for quotations/orders, ? for questions)</p></td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>E-mail:</td> | ||
+ | <td><input id='replyTo' value='@' type=text> | ||
+ | </td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>Address:</td> | <td>Address:</td> | ||
<td> | <td> | ||
- | <textarea id='address' rows="4" cols="50">E-mail and mail address | + | <textarea id='address' rows="3" cols="50">Mail address</textarea> |
- | </textarea> | + | |
</td> | </td> | ||
</tr> | </tr> | ||
Line 48: | Line 61: | ||
<td>Message:</td> | <td>Message:</td> | ||
<td> | <td> | ||
- | <textarea id='message' rows="4" cols="50">Your message goes here... | + | <textarea id='message' rows="3" cols="50">Your message goes here... </textarea> |
- | </textarea> | + | |
</td> | </td> | ||
</tr> | </tr> | ||
Line 65: | Line 77: | ||
foreach ($lines as $line) { | foreach ($lines as $line) { | ||
$counter++; | $counter++; | ||
- | echo "<tr><td><input name='amount-$counter' type='text' size='4' onchange='update()'></td>"; | + | echo "<tr><td><input name='amount-$counter' type='text' size='2' onchange='update()'></td>"; |
$article= explode(",", $line); // catalog.txt is comma separated | $article= explode(",", $line); // catalog.txt is comma separated | ||
$number = $article[0]; // first column | $number = $article[0]; // first column |