![]() |
Admin 10/16/2006 |
Mark, |
E
|
emdee author 10/18/2006 |
Mark, you can do this modifying PHPRunner-crteated files manually. This task requires some PHP knowledge. You can extend the "Delete selected" functionality to flag users instead of deleting them. Make a copy of "Delete selected" link, modify it and add a code to generated ..._list.php file that will "flag" the users you selected.
|
![]() |
Admin 10/18/2006 |
Hi, |
E
|
emdee author 10/18/2006 |
Hi, sure, you can modify files in C:\Program Fiels\PHPRunner3.1\source folder for this. Perfect! I am beginning to like the program more and more <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=11921&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' /> Maybe anyone can help me with this item? I found the delete function: foreach(@$_POST["mdelete"] as $ind) { $keys=array(); $keys["idLeden"]=refine($_POST["mdelete1"][$ind-1]); $strSQL="update ".AddTableWrappers($strOriginalTableName)." where ".KeyWhere($keys); .. .. }
|
J
|
Jane 10/19/2006 |
Here is a step-by-step instruction:
<A onclick="if (!confirm('Do you really want to update these records?')) return false; frmAdmin.a.value='update'; frmAdmin.submit(); return false;" href="orders_list.htm#">Update selected</A>
function BeforeDelete($where) { //if you click on the delete link if(@$_POST["a"]=="delete") return true; //if you click on the update link global $conn; $strSQL="update TableName set FieldName1 = 'you value' where ".$where; db_exec($strSQL,$conn); return false; } |
T
|
thesofa 10/24/2006 |
onclick="if (!confirm('Do you really want to update these records?')) return false; frmAdmin.a.value='update'; frmAdmin.submit(); return false;" href="orders_list.htm#">Update selected</A>
|
J
|
Jane 10/24/2006 |
frmAdmin is a name of HTML form. This name is used in the JavaScript code. |