detail add |
12/31/2007 4:21:16 AM |
PHPRunner General questions | |
G
garethp authorDevClub member
hello |
|
G
|
garethp authorDevClub member 1/5/2008 |
I have found this link that does this even better - it will hide the add button if a master is not selected <INPUT class=button onclick="window.location.href='spares_add.php'" type=button value="Add new" disptype="control1"> with {if $addnew}<INPUT class=button onclick="window.location.href='spares_add.php'" type=button value="Add new" disptype="control1">{/if}
if ($_SESSION["spares_masterkey1"]<1) { $smarty->assign("addnew",0); } else { $smarty->assign("addnew",1); }
|
N
|
nix386 9/10/2008 |
This worked better in my instance. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=32919&image=1&table=forumreplies' class='bbc_emoticon' alt=';)' /> |