Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
info [2014/12/06 18:37]
127.0.0.1 external edit
info [2015/04/18 08:32] (current)
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';​ 
 +    } 
 +    $.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."​);​
     });     });
Line 36: Line 42:
   <tr>   <tr>
     <​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</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 58:
     <​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 74:
 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