Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1949913
coupon_items.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, 9:07 AM
Size
4 KB
Mime Type
text/html
Expires
Sat, Oct 31, 9:07 AM (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
962629
Attached To
rMINC Modules.In-Commerce
coupon_items.tpl
View Options
<
inp2:m_RequireLogin
permissions
=
"in-commerce:coupons.view"
system
=
"1"
/>
<
inp2:m_include
t
=
"incs/header"
nobody
=
"yes"
/>
<
body
topmargin
=
"0"
leftmargin
=
"8"
marginheight
=
"0"
marginwidth
=
"8"
bgcolor
=
"#FFFFFF"
>
<
inp2:m_RenderElement
name
=
"section_header"
prefix
=
"coup"
icon
=
"icon46_discounts"
module
=
"in-commerce"
title
=
"!la_title_Coupons!"
/>
<
inp2:m_include
t
=
"in-commerce/discounts/coupons_tabs"
/>
<
inp2:m_RenderElement
name
=
"blue_bar"
prefix
=
"coup"
title_preset
=
"coupons_items"
module
=
"in-commerce"
icon
=
"icon46_discounts"
/>
<!-- 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
(
'coup'
,
'<inp2:coup_SaveEvent/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'cancel'
,
'<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>'
,
function
()
{
submit_event
(
'coup'
,
'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
(
'coup'
,
'<inp2:coup_PrevId/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'next'
,
'<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>'
,
function
()
{
go_to_id
(
'coup'
,
'<inp2:coup_NextId/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep2'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'new_item'
,
'<inp2:m_phrase label="la_ToolTip_New_Products" escape="1"/>'
,
function
()
{
openSelector
(
'coupi'
,
'<inp2:adm_SelectorLink prefix="coupi" selection_mode="multi" tabs_dependant="no" tab_prefixes="p"/>'
,
''
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'delete'
,
'<inp2:m_phrase label="la_ToolTip_Delete" escape="1"/>'
,
function
()
{
std_delete_items
(
'coupi'
)
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'in-commerce:entire_order'
,
'<inp2:m_phrase label="la_ToolTip_EntireOrder" escape="1"/>'
,
function
()
{
if
(
inpConfirm
(
'<inp2:m_phrase label="la_EntireOrderConfirmation"/>'
))
{
submit_event
(
'coupi'
,
'OnEntireOrder'
);
}
}
)
);
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'
);
}
)
);
a_toolbar
.
Render
();
<
inp2
:
m_if
check
=
"coup_IsSingle"
>
a_toolbar
.
HideButton
(
'prev'
);
a_toolbar
.
HideButton
(
'next'
);
a_toolbar
.
HideButton
(
'sep1'
);
//a_toolbar.HideButton('sep2');
<
inp2
:
m_else
/>
<
inp2
:
m_if
check
=
"coup_IsLast"
>
a_toolbar
.
DisableButton
(
'next'
);
<
/inp2:m_if>
<
inp2
:
m_if
check
=
"coup_IsFirst"
>
a_toolbar
.
DisableButton
(
'prev'
);
<
/inp2:m_if>
<
/inp2:m_if>
function
edit
()
{
// required for correct row selection
}
</
script
>
</
td
>
</
tr
>
</
tbody
>
</
table
>
<
inp2:m_DefineElement
name
=
"grid_item_checkbox_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 />img/itemicons/<inp2:{
$
PrefixSpecial}_ItemIcon grid="
$
grid
"
/>
">
<
inp2:m_if
check
=
"FieldEquals"
field
=
"ItemType"
value
=
"1"
>
<
inp2:Field
field
=
"ProductId"
no_special
=
"no_special"
/>
<
inp2:m_else
/>
<
inp2:Field
field
=
"CategoryId"
no_special
=
"no_special"
/>
</
inp2:m_if
>
</
td
>
</
inp2:m_DefineElement
>
<
inp2:m_if
check
=
"coupi_IsEntireOrder"
>
<
inp2:m_RenderElement
name
=
"grid"
PrefixSpecial
=
"coupi"
IdField
=
"CouponItemId"
grid
=
"Default"
header_block
=
"grid_column_title"
data_block
=
"grid_data_td"
search
=
"on"
/>
<
inp2:m_else
/>
<
inp2:m_RenderElement
name
=
"grid"
PrefixSpecial
=
"coupi"
IdField
=
"CouponItemId"
grid
=
"CouponItems"
header_block
=
"grid_column_title"
data_block
=
"grid_data_td"
search
=
"on"
/>
</
inp2:m_if
>
<
script
type
=
"text/javascript"
>
<
inp2
:
m_if
check
=
"coupi_IsEntireOrder"
>
a_toolbar
.
DisableButton
(
'new_item'
);
<
/inp2:m_if>
Grids
[
'coupi'
].
SetDependantToolbarButtons
(
new
Array
(
'delete'
)
);
</
script
>
<
input
type
=
"hidden"
name
=
"main_prefix"
id
=
"main_prefix"
value
=
"coupi"
>
<
inp2:m_include
t
=
"incs/footer"
/>
Event Timeline
Log In to Comment