G
|
gchable author 10/15/2010 |
any help? |
T
|
tedwilder 10/16/2010 |
any help? ideas?
|
T
|
tedwilder 10/16/2010 |
To send an email with several selected records on the list page you need to create new button and implement two events.
|
G
|
gchable author 10/16/2010 |
Ok, tks: |
![]() |
Sergey Kornilov admin 10/18/2010 |
It really depends on what kind of code you end up using. Here is an example, see my additions in bold: $body=""; $total=0; foreach(@$_REQUEST["selection"] as $keyblock) { $arr=split("&",refine($keyblock)); if(count($arr)<1) continue; $keys=array(); $keys["OrderID"]=urldecode(@$arr[0]); $where = KeyWhere($keys); $rs = CustomQuery("select * from orders where $where"); $data=db_fetch_array($rs); $body .= "OrderID: " . $data['OrderID'] . "\n"; $body .= "Customer: " . $data['CustomerID'] . "\n"; $body .= "Total: " . $data['Total'] . "\n-------------------\n\n"; $total+=$data['Total']; } $body .= "-------------------\nGrand total: " . $total . "\n-------------------"; |
G
|
gchable author 10/19/2010 |
Thank you, work fine |