J
|
Jane 8/3/2009 |
Hi, |
R
|
roadyx author 8/3/2009 |
Hi, please clarify what button do you want to hide.
|
J
|
Jane 8/4/2009 |
Hi, <INPUT id="delete_selected" class=button type=button value="{mlang_message DELETE_SELECTED}" {$deletelink_attrs}>
$xt->assign("deletelink_attrs","onclick=\" if(\$('input[@type=checkbox][@checked][@name^=selection]').length && confirm('".mlang_message("DELETE_CONFIRM")."')) { frmAdmin.a.value='delete'; frmAdmin.submit(); } return false;\"");
$xt->assign("deletelink_attrs","onclick=\" if(\$('input[@type=checkbox][@checked][@name^=selection]').length && confirm('".mlang_message("DELETE_CONFIRM")."')) { frmAdmin.a.value='delete'; frmAdmin.submit(); document.getElementById('delete_selected').style.display = 'none';} return false;\"");
|
R
|
roadyx author 8/4/2009 |
Hi, to hide delete button edit HTML code in the following way: Then modify generated ..._list.php file, find this code: and replace it with this one: I'm not sure how you want to hide add button. Do you want to hide it if there is at least one record in the database?
|
R
|
roadyx author 8/5/2009 |
Hi Jane, Thank You!!!!! Answer to the question: I would like to hide it to allow only ONE CLICK of that button. Once clicked, the event is to prepopulate the list page with data from several tables. I don't want them to click it twice because it will repopulate with duplicate records again.
|
J
|
Jane 8/5/2009 |
Hi, |
R
|
roadyx author 8/6/2009 |
Hi, just replace mlang_message("DELETE_CONFIRM") and {mlang_message DELETE_SELECTED} with actual messages. Regarding the add button. I still need some clarifications. What event do you mean?
|
J
|
Jane 8/6/2009 |
Hi, $global $dal; $rs = $dal->temp_tbl->QueryAll(); if ($data = db_fetch_array($rs)) $xt->assign("add_link",false); |