Commit 41bb6bfd authored by Project Open's avatar Project Open

- Fixed portlet behavior

parent e0fce1da
<master src="../master">
<master>
<property name="doc(title)">@company_name;literal@</property>
<property name="main_navbar_label">companies</property>
<property name="left_navbar">@left_navbar_html;literal@</property>
<property name="sub_navbar">@sub_navbar;literal@</property>
<!-- left - right - bottom design -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td valign="top" width="50%">
<%= [im_component_bay left] %>
</td>
<td width="2">&nbsp;</td>
<td valign="top">
<!-- Component Bay Right -->
<%= [im_component_bay right] %>
<!-- End Component Bay Right -->
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td>
<%= [im_component_bay bottom] %>
</td></tr>
</table>
<% if {"" eq $view_name || "standard" eq $view_name} { %>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td>
<%= [im_component_bay top] %>
</td></tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td valign="top" width="50%">
<%= [im_component_bay left] %>
</td>
<td width="2">&nbsp;</td>
<td valign="top">
<%= [im_component_bay right] %>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td>
<%= [im_component_bay bottom] %>
</td></tr>
</table>
<% } elseif {"files" eq $view_name} { %>
<div id="position_filestorage_view_files">
<%= [im_component_insert "Companies Filestorage Component"] %>
</div>
<% } else { %>
<%= [im_component_page -plugin_id $plugin_id -return_url "/intranet/companies/view?company_id=$company_id"] %>
<% } %>
......@@ -27,6 +27,7 @@ ad_page_contract {
{ forum_order_by "" }
show_all_correspondance_comments:integer,optional
{ plugin_id "" }
{ view_name "" }
}
# -----------------------------------------------------------
......@@ -48,6 +49,14 @@ if {0 == $company_id} {
return
}
if {"" eq $view_name} {
if {"" eq $plugin_id} {
set view_name "standard"
} else {
set view_name "component"
}
}
# Check permissions. "See details" is an additional check for
# critical information
im_company_permissions $user_id $company_id view read write admin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment