Both sides previous revisionPrevious revisionNext revision | Previous revision |
info [2014/12/06 19:33] – [Contact] hess | info [2015/04/18 08:32] (current) – [Contact] hess |
---|
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(); |
var subject = $("#subject option:selected").text() | var subject = $("#subject option:selected").text() |
var recipient = 'sales@netmodule.com'; | var recipient = 'sales@netmodule.com'; |
<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> |
<tr> | <tr> |
<td>Address:</td> | <td>Address:</td> |
<td> | <td> |
<textarea id='address' rows="3" cols="50">E-mail and mail address</textarea> | <textarea id='address' rows="3" cols="50">Mail address</textarea> |
</td> | </td> |
</tr> | </tr> |
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 |