Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1949650
products_reviews_section.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
Thu, Oct 29, 7:02 AM
Size
3 KB
Mime Type
text/html
Expires
Sat, Oct 31, 7:02 AM (12 h, 2 m)
Engine
blob
Format
Raw Data
Handle
963497
Attached To
rMINC Modules.In-Commerce
products_reviews_section.tpl
View Options
<
link
rel
=
"icon"
href
=
"img/favicon.ico"
type
=
"image/x-icon"
/>
<
link
rel
=
"shortcut icon"
href
=
"img/favicon.ico"
type
=
"image/x-icon"
/>
<
link
rel
=
"stylesheet"
rev
=
"stylesheet"
href
=
"incs/style.css"
type
=
"text/css"
media
=
"screen"
/>
<
script
language
=
"javascript"
src
=
"js/is.js"
></
script
>
<
script
language
=
"javascript"
src
=
"js/application.js"
></
script
>
<
script
language
=
"javascript"
src
=
"js/script.js"
></
script
>
<
script
language
=
"javascript"
src
=
"js/in-portal.js"
></
script
>
<
script
language
=
"javascript"
src
=
"js/toolbar.js"
></
script
>
<
script
language
=
"javascript"
src
=
"js/grid.js"
></
script
>
<
script
language
=
"javascript"
src
=
"<inp2:rev_ModulePath module="
In-Portal
"
/>
incs
/
tabs
.
js
"
>
</
script
>
<
script
language
=
"javascript"
>
var
t
=
'<inp2:m_get param="t"/>'
;
var
popups
=
'1'
;
var
multiple_windows
=
'1'
;
var
main_title
=
''
;
var
tpl_changed
=
0
;
var
img_path
=
'<inp2:m_TemplatesBase module="#MODULE#"/>/img/'
;
</
script
>
<
inp2:m_include
t
=
"incs/blocks"
/>
<
inp2:m_include
t
=
"incs/in-portal"
/>
<
script
type
=
"text/javascript"
>
function
k4_actionHandler
(
action
)
{
var
k4_action
=
''
;
switch
(
action
)
{
case
'edit'
:
k4_action
=
'edit_item()'
;
break
;
case
'delete'
:
k4_action
=
'delete_items()'
;
break
;
case
'unselect'
:
k4_action
=
'unselect()'
;
break
;
case
'approve'
:
k4_action
=
'approve_items()'
;
break
;
case
'decline'
:
k4_action
=
'decine_items()'
;
break
;
}
if
(
k4_action
!=
''
)
eval
(
k4_action
);
else
alert
(
action
+
' not implemented'
);
}
function
approve_items
()
{
submit_event
(
'rev.products'
,
'OnMassApprove'
,
''
)
}
function
decine_items
()
{
submit_event
(
'rev.products'
,
'OnMassDecline'
,
''
)
}
function
edit
()
{
edit_item
();
}
function
edit_item
()
{
opener_action
(
'd'
);
set_hidden_field
(
'rev.products_mode'
,
't'
);
set_hidden_field
(
'remove_specials[rev.products]'
,
1
);
submit_event
(
'rev.products'
,
'OnEdit'
,
'in-commerce/review_edit'
,
'../../admin/index.php'
)
}
function
delete_items
()
{
submit_event
(
'rev.products'
,
'OnMassDelete'
,
''
)
}
function
unselect
()
{
Grids
[
'rev.products'
].
ClearSelection
(
null
,
'InpReviews.unselect'
);
}
var
a_toolbar
=
new
ToolBar
();
</
script
>
<
div
id
=
"products"
class
=
"ini_tab"
isTab
=
"true"
tabTitle
=
"Products"
PrefixSpecial
=
"rev.products"
ActionPrefix
=
"k4:k4_actionHandler('$$event$$')"
EditURL
=
""
>
<
inp2:m_RenderElement
name
=
"kernel_form"
/>
<
inp2:m_DefineElement
name
=
"grid_checkbox_namelink_td"
>
<
td
valign
=
"top"
class
=
"text"
>
<
input
type
=
"checkbox"
name
=
"<inp2:{
$
PrefixSpecial}_InputName field="
$
IdField
"
IdField
=
"
$
IdField"
/>
" id="
<
inp2:
{$
PrefixSpecial
}
_InputName
field
=
"
$
IdField"
IdField
=
"
$
IdField"
/>
">
<
img
src
=
"<inp2:ModulePath module="
In-Portal
"
/>
img/itemicons/
<
inp2:
{$
PrefixSpecial
}
_ItemIcon
grid
=
"
$
grid"
/>
">
<
inp2:
{$
PrefixSpecial
}
_field
field
=
"
$
fi
eld"
cut_first
=
"100"
/>
(
<
a
href
=
"<inp2:{
$
PrefixSpecial}_ItemEditLink item_prefix="
p
"
edit_template
=
"in-commerce/products/products_edit"
/>
">
<
inp2:
{$
PrefixSpecial
}
_field
field
=
"ItemName"
/></
a
>
)
</
td
>
</
inp2:m_DefineElement
>
<
inp2:m_RenderElement
name
=
"grid"
PrefixSpecial
=
"rev.products"
IdField
=
"ReviewId"
grid
=
"ReviewsSection"
no_toolbar
=
"no_toolbar"
menu_filters
=
"yes"
/>
<
script
type
=
"text/javascript"
>
<
inp2
:
m_RenderElement
name
=
"viewmenu_declaration"
PrefixSpecial
=
"rev.products"
IdField
=
"ReviewId"
grid
=
"ReviewsSection"
menu_filters
=
"yes"
/>
function
init_divs
()
{
Grids
[
'rev.products'
].
SetDependantToolbarButtons
(
new
Array
(
'portal:edit'
,
'portal:delete'
,
'portal:approve'
,
'portal:decline'
)
);
Grids
[
'rev.products'
].
SetDependantToolbarButtons
(
new
Array
(
'portal:editcat'
),
0
);
//invert dep button
}
theMainScript
.
AddOnLoad
(
'init_divs()'
);
</
script
>
<
inp2:m_RenderElement
name
=
"kernel_form_end"
/>
</
div
>
Event Timeline
Log In to Comment