Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1169456
products_packagecontent.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
Fri, Sep 26, 12:38 AM
Size
3 KB
Mime Type
text/html
Expires
Sun, Sep 28, 12:38 AM (1 d, 13 h)
Engine
blob
Format
Raw Data
Handle
757707
Attached To
rMINC Modules.In-Commerce
products_packagecontent.tpl
View Options
<
inp2:adm_SetPopupSize
width
=
"1000"
height
=
"680"
/>
<
inp2:m_include
t
=
"incs/header"
/>
<
inp2:m_RenderElement
name
=
"combined_header"
prefix
=
"p"
section
=
"in-portal:browse"
pagination
=
"1"
pagination_prefix
=
"p.content"
title_preset
=
"content"
tab_preset
=
"Default"
/>
<!-- ToolBar -->
<
table
class
=
"toolbar"
height
=
"30"
cellspacing
=
"0"
cellpadding
=
"0"
width
=
"100%"
border
=
"0"
>
<
tbody
>
<
tr
>
<
td
>
<
script
type
=
"text/javascript"
>
a_toolbar
=
new
ToolBar
();
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'select'
,
'<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>'
,
function
()
{
submit_event
(
'p'
,
'<inp2:p_SaveEvent/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'cancel'
,
'<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>'
,
function
()
{
submit_event
(
'p'
,
'OnCancelEdit'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep1'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'prev'
,
'<inp2:m_phrase label="la_ToolTip_Prev" escape="1"/>'
,
function
()
{
go_to_id
(
'p'
,
'<inp2:p_PrevId/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'next'
,
'<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>'
,
function
()
{
go_to_id
(
'p'
,
'<inp2:p_NextId/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep2'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'new_item'
,
'<inp2:m_phrase label="la_ToolTip_Add_Items" escape="1"/>::<inp2:m_phrase label="la_ToolTip_Add" escape="1"/>'
,
function
()
{
openSelector
(
'p'
,
'<inp2:adm_SelectorLink prefix="p" selection_mode="multi" tab_prefixes="p" no_amp="1" js_escape="1"/>'
,
'PackageContent'
,
null
,
'OnSaveItems'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'delete'
,
'<inp2:m_phrase label="la_ToolTip_Delete" escape="1"/>'
,
function
()
{
submit_event
(
'p.content'
,
'OnRemovePackageItem'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep3'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'view'
,
'<inp2:m_phrase label="la_ToolTip_View" escape="1"/>'
,
function
()
{
show_viewmenu
(
a_toolbar
,
'view'
);
}
)
);
function
edit
()
{
alert
();
}
a_toolbar
.
Render
();
<
inp2
:
m_if
check
=
"p_IsSingle"
>
a_toolbar
.
HideButton
(
'prev'
);
a_toolbar
.
HideButton
(
'next'
);
a_toolbar
.
HideButton
(
'sep1'
);
//a_toolbar.HideButton('sep2');
<
inp2
:
m_else
/>
<
inp2
:
m_if
check
=
"p_IsLast"
>
a_toolbar
.
DisableButton
(
'next'
);
<
/inp2:m_if>
<
inp2
:
m_if
check
=
"p_IsFirst"
>
a_toolbar
.
DisableButton
(
'prev'
);
<
/inp2:m_if>
<
/inp2:m_if>
</
script
>
</
td
>
<
inp2:m_RenderElement
name
=
"search_main_toolbar"
prefix
=
"p.content"
grid
=
"Default"
/>
</
tr
>
</
tbody
>
</
table
>
<
inp2:m_include
t
=
"categories/ci_blocks"
/>
<
inp2:m_DefineElement
name
=
"qty_td"
>
<
inp2:Field
field
=
"QtyInStock"
grid
=
"
$
grid"
/>
/
<
inp2:Field
field
=
"QtyReserved"
grid
=
"
$
grid"
/>
</
inp2:m_DefineElement
>
<
inp2:m_RenderElement
name
=
"grid"
PrefixSpecial
=
"p.content"
IdField
=
"ProductId"
grid
=
"Default"
types
=
"content"
/>
<
input
type
=
"hidden"
name
=
"TargetId"
id
=
"TargetId"
value
=
"<inp2:m_get name="
TargetId
"
/>
">
<
input
type
=
"hidden"
name
=
"TargetType"
id
=
"TargetType"
value
=
"<inp2:m_get name="
TargetType
"
/>
">
<
input
type
=
"hidden"
name
=
"main_prefix"
id
=
"main_prefix"
value
=
"p"
>
<
inp2:m_include
t
=
"incs/footer"
/>
<
script
type
=
"text/javascript"
>
var
$
env
=
document
.
getElementById
(
'sid'
).
value
+
'-:m<inp2:m_get name="m_cat_id"/>-1-1-1-s'
;
</
script
>
Event Timeline
Log In to Comment