Hi All,
I am trying to customise the layout of my pages and have chopped up the permissions bit so that it displays the links somewhere other than at the bottom of the page. Most of it works apart from this section which is in my html_page_top:
<tr>
<td><A HREF="$db_script_link_url&add_form=1">Add a cache</A> | if ($per_add);
print qq|</td>
</tr>
<tr>
<td><A HREF="$db_script_link_url&view_search=1">Search for caches</A> | if ($per_view);
print qq|</td>
</tr>
|;
if (!$per_admin && $auth_modify_own) {
print qq| <tr><td><A HREF="$db_script_link_url&delete_form=1&$db_key=*">Delete</A></td></tr> | if ($per_del);
print qq| <tr><td><A HREF="$db_script_link_url&modify_form=1&$db_key=*">Modify</A></td></tr> | if ($per_mod);
}
else {
print qq| <tr><td><A HREF="$db_script_link_url&delete_search=1">Admin Delete</A></td></tr> | if ($per_del);
print qq| <tr><td><A HREF="$db_script_link_url&modify_search=1">Admin Modify</A></td></tr> | if ($per_mod);
}
print qq|
When I log in as admin it works. If I access the database as default then it won't display any of the html_page_top section.
I also have this:
<tr>
<td><A HREF="$db_script_link_url&view_records=1&$db_key=*">List All</A> | if ($per_view);
print qq|</td>
</tr>
Which works either way.
Any ideas?
ACJ
I am trying to customise the layout of my pages and have chopped up the permissions bit so that it displays the links somewhere other than at the bottom of the page. Most of it works apart from this section which is in my html_page_top:
<tr>
<td><A HREF="$db_script_link_url&add_form=1">Add a cache</A> | if ($per_add);
print qq|</td>
</tr>
<tr>
<td><A HREF="$db_script_link_url&view_search=1">Search for caches</A> | if ($per_view);
print qq|</td>
</tr>
|;
if (!$per_admin && $auth_modify_own) {
print qq| <tr><td><A HREF="$db_script_link_url&delete_form=1&$db_key=*">Delete</A></td></tr> | if ($per_del);
print qq| <tr><td><A HREF="$db_script_link_url&modify_form=1&$db_key=*">Modify</A></td></tr> | if ($per_mod);
}
else {
print qq| <tr><td><A HREF="$db_script_link_url&delete_search=1">Admin Delete</A></td></tr> | if ($per_del);
print qq| <tr><td><A HREF="$db_script_link_url&modify_search=1">Admin Modify</A></td></tr> | if ($per_mod);
}
print qq|
When I log in as admin it works. If I access the database as default then it won't display any of the html_page_top section.
I also have this:
<tr>
<td><A HREF="$db_script_link_url&view_records=1&$db_key=*">List All</A> | if ($per_view);
print qq|</td>
</tr>
Which works either way.
Any ideas?
ACJ