DeWebDude
|
| Posted: 10/24/2002, 11:24 PM |
|
When I create a Grid & Edit form it's basically a search, and then Add/Edit/Delete, but usually there are 2 sides to a web site the management side, and the user side, so I also make a Drid & Edit, but disable the Add/Edit/Delete options so I am creating the exact same forms for both.
My question is, is that the only way to do it -or- is there a secret to easily have the management side options not show up on the display side and share the common function? ( I do not want the insert button to show up, and when they click it have to type a password type of thing)
Using CodeCharge ( not Studio )
Hope this makes sense...
Thanks!
|
|
|
 |
Nicole
|
| Posted: 10/28/2002, 6:27 AM |
|
Hello,
in CC the easiest way is to create separate forms(or even pages) for admins and the rest users.
But if you're using template version you can hide the "Insert" button depending on user rights. Create form before show event like:
ASP
SetVar "FormNameInsert" , ""
PHP
$Tpl->SetVar("FormNameInsert", "");
|
|
|
 |
|