Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1081139
results.tpl
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Aug 3, 6:07 AM
Size
2 KB
Mime Type
text/html
Expires
Tue, Aug 5, 6:07 AM (39 m, 29 s)
Engine
blob
Format
Raw Data
Handle
701720
Attached To
rMINC Modules.In-Commerce
results.tpl
View Options
<
inp2:m_include
t
=
"incs/header"
/>
<
inp2:rep.metric_SyncIDFieldDeclaration
/>
<
inp2:rep.metric_ReportOptionValue
name
=
"grid"
result_to_var
=
"grid"
/>
<
inp2:m_RenderElement
name
=
"combined_header"
prefix
=
"rep"
section
=
"in-commerce:reports"
grid
=
"
$
grid"
pagination
=
"1"
title_preset
=
"report_results"
/>
<!-- ToolBar -->
<
table
class
=
"toolbar"
height
=
"30"
cellspacing
=
"0"
cellpadding
=
"0"
width
=
"100%"
>
<
tbody
>
<
tr
>
<
td
>
<
script
type
=
"text/javascript"
>
function
edit
()
{
// do nothing
}
a_toolbar
=
new
ToolBar
();
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'cancel'
,
'<inp2:m_phrase label="la_ToolTip_Back" escape="1"/>'
,
function
()
{
// window.location = '<inp2:m_t t="../../plugins/reports/admin_templates/reports" "pass"="m,rep" "rep_event="OnNew" no_amp="1" js_escape="1"/>'
window
.
location
=
'<inp2:m_Link template="in-commerce/reports/reports" pass="m,rep" rep_event="OnNew" no_amp="1" js_escape="1"/>'
;
return
true
;
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep1'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'print'
,
'<inp2:m_phrase label="la_ToolTip_Print" escape="1"/>'
,
function
()
{
window
.
print
();
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'view'
,
'<inp2:m_phrase label="la_ToolTip_View" escape="1"/>'
,
function
()
{
show_viewmenu
(
a_toolbar
,
'view'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'export'
,
'<inp2:m_phrase label="la_ToolTip_Export" escape="1"/>'
,
function
()
{
submit_event
(
'rep'
,
'OnExportReport'
);
set_hidden_field
(
'events[rep]'
,
null
);
submitted
=
false
;
}
)
);
<
inp2
:
m_if
check
=
"rep.metric_ReportTypeEquals"
value
=
"2"
>
// By Users report have no chart
<
inp2
:
m_else
/>
// Only PHP5 have chart
<
inp2
:
m_if
check
=
"rep_IsPHPxOrGreater"
version
=
"5"
>
// Chart window open button
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'in-commerce:view_chart'
,
'<inp2:m_phrase label="la_ToolTip_View_Chart" escape="1"/>'
,
function
()
{
openSelector
(
'rep'
,
'<inp2:m_Link template="in-commerce/reports/chart" pass="all" no_amp="1" js_escape="1"/>'
);
}
)
);
<
/inp2:m_if>
<
/inp2:m_if>
a_toolbar
.
Render
();
</
script
>
</
td
>
<
inp2:m_RenderElement
name
=
"search_main_toolbar"
prefix
=
"rep"
grid
=
"
$
grid"
/>
</
tr
>
</
tbody
>
</
table
>
<
inp2:rep.metric_ReportOptionValue
name
=
"id_field"
result_to_var
=
"id_field"
/>
<
inp2:m_RenderElement
name
=
"grid"
PrefixSpecial
=
"rep"
IdField
=
"
$
id_field"
grid
=
"
$
grid"
totals_render_as
=
"grid_total_row"
/>
<
script
type
=
"text/javascript"
>
Grids
[
'rep'
].
SetDependantToolbarButtons
(
new
Array
()
);
</
script
>
<
inp2:m_include
t
=
"incs/footer"
/>
Event Timeline
Log In to Comment