Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-core
Commits
a6086f07
Commit
a6086f07
authored
Oct 29, 2021
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.project-open.net/project-open/intranet-core
parents
9064128c
41bb6bfd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
43 deletions
+56
-43
category-update.tcl
www/admin/categories/category-update.tcl
+2
-2
view.adp
www/companies/view.adp
+39
-22
view.tcl
www/companies/view.tcl
+9
-0
index.tcl
www/projects/index.tcl
+6
-19
No files found.
www/admin/categories/category-update.tcl
View file @
a6086f07
...
...
@@ -36,8 +36,8 @@ ad_page_contract {
sort_order:integer
aux_int1:integer
aux_int2:integer
aux_string1
aux_string2
aux_string1
:allhtml
aux_string2
:allhtml
visible_tcl
category_description:allhtml
category_type
...
...
www/companies/view.adp
View file @
a6086f07
<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"> </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"> </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"] %>
<% } %>
www/companies/view.tcl
View file @
a6086f07
...
...
@@ -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
...
...
www/projects/index.tcl
View file @
a6086f07
...
...
@@ -237,8 +237,8 @@ db_foreach column_list_sql $column_sql {
lappend column_vars
"
$column
_render_tcl"
lappend column_headers_admin
$admin
_html
if
{
""
!=
$extra
_select
}
{
lappend extra_selects
[
eval
"set a
\"
$extra
_select
\"
"
]
}
if
{
""
!=
$extra
_from
}
{
lappend extra_froms
$extra
_from
}
if
{
""
!=
$extra
_where
}
{
lappend extra_wheres
$extra
_where
}
if
{
""
!=
$extra
_from
}
{
lappend extra_froms
[
eval
"set a
\"
$extra
_from
\"
"
]
}
if
{
""
!=
$extra
_where
}
{
lappend extra_wheres
[
eval
"set a
\"
$extra
_where
\"
"
]
}
if
{
""
!=
$order
_by_clause &&
$order
_by==$column_name
}
{
set view_order_by_clause
$order
_by_clause
...
...
@@ -497,26 +497,13 @@ switch [string tolower $order_by] {
}
set
where_clause
[
join
$criteria
" and
\n
"
]
if
{
$where
_clause ne
""
}
{
set where_clause
" and
$where
_clause"
}
if
{
$where
_clause ne
""
}
{
set where_clause
" and
$where
_clause"
}
set
extra_select
[
join
$extra
_selects
",
\n\t
"
]
if
{
$extra
_select ne
""
}
{
set extra_select
",
\n\t
$extra
_select"
}
if
{
$extra
_select ne
""
}
{
set extra_select
",
\n\t
$extra
_select"
}
set
extra_from
[
join
$extra
_froms
",
\n\t
"
]
if
{
$extra
_from ne
""
}
{
set extra_from
",
\n\t
$extra
_from"
}
if
{
$extra
_from ne
""
}
{
set extra_from
",
\n\t
$extra
_from"
}
set
extra_where
[
join
$extra
_wheres
"and
\n\t
"
]
if
{
$extra
_where ne
""
}
{
set extra_where
",
\n\t
$extra
_where"
}
if
{
$extra
_where ne
""
}
{
set extra_where
" and
\n\t
$extra
_where"
}
# Create a ns_set with all local variables in order
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment