![]() |
Admin 7/3/2006 |
Amir, global $conn; $rs=db_query("select * from email_addresses",$conn); while($data=db_fetch_array($rs)) { mail($data["email"], $subject,$message); } |
A
|
amirgulamali author 7/3/2006 |
Hi ALexa, |
![]() |
Admin 7/3/2006 |
Amir, |
A
|
amirgulamali author 7/3/2006 |
I know how to implement PHP. |
|
adamdidthis 7/3/2006 |
Hi Amir, |
A
|
amirgulamali author 7/3/2006 |
Hi Amir, The code needs to go in a different place for the Add and edit pages. If you could give more detailas to what you want it would make it easier to help you.
|
![]() |
Admin 7/4/2006 |
Amir, // delete record if (@$_POST["mdelete"]) { foreach(@$_POST["mdelete"] as $ind) { ... } if(function_exists("AfterMassDelete")) AfterMassDelete(); } |
A
|
amirgulamali author 7/4/2006 |
i made the changes and im getting errors, undefined variables.. |
![]() |
Admin 7/4/2006 |
Amir, i made the changes and im getting errors, undefined variables..
i want an email function next to the "delete selected" hyperlink
|
A
|
amirgulamali author 7/4/2006 |
thanx alexa, i am one step ahead now.. |
A
|
andyjames 9/18/2006 |
Hi // delete record
|
A
|
andyjames 9/19/2006 |
Hi // delete record
<a href="#" onClick="if (confirm('Are you sure you wish to delete these records?')) { document.forms.deleteform.submit(); return false; } else {return true;}"><b>Delete selected...</b></a>
<a href="#" onClick="if (confirm('Are you sure you wish to send an e-mail to these records?')) { document.forms.deleteform.submit(); return false; } else {return true;}"><b>E-mail selected...</b></a>
|
T
|
thesofa 9/21/2006 |
Just a further twist here, will it be possible to have 3 columns of tick boxes, instead of one? |
D
|
Dale 9/21/2006 |
I earlier modified the Delete function to enable a emailing to the checked items. BUT, if the user doesnt have access to Delete then the checkbox column disapppears, as it should. So the user would not be able to see the checkboxes to check for emailing. |
M
|
michaelmac 6/4/2007 |
Hi I have finally cracked this one (thanks for pointing me in the right direction Sergey), so if any one wants to modify the "delete selected..." link to "email selected...", this is how it goes. This is always in the ...list.php file. Search for the opening comment and then replace the code as follows: // delete record
<a href="#" onClick="if (confirm('Are you sure you wish to delete these records?')) { document.forms.deleteform.submit(); return false; } else {return true;}"><b>Delete selected...</b></a>
<a href="#" onClick="if (confirm('Are you sure you wish to send an e-mail to these records?')) { document.forms.deleteform.submit(); return false; } else {return true;}"><b>E-mail selected...</b></a>
|