Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1949413
affiliate_plans_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, 6:05 AM
Size
4 KB
Mime Type
text/html
Expires
Sat, Oct 31, 6:05 AM (4 h, 3 m)
Engine
blob
Format
Raw Data
Handle
963265
Attached To
rMINC Modules.In-Commerce
affiliate_plans_items.tpl
View Options
<
inp2:m_RequireLogin
permissions
=
"in-commerce:affiliate_plans.view"
system
=
"1"
/>
<
inp2:m_include
t
=
"incs/header"
nobody
=
"yes"
/>
<
body
topmargin
=
"0"
leftmargin
=
"8"
marginheight
=
"0"
marginwidth
=
"8"
bgcolor
=
"#FFFFFF"
>
<
inp2:m_ParseBlock
name
=
"section_header"
prefix
=
"ap"
icon
=
"icon46_affiliate_plans"
module
=
"in-commerce"
title
=
"!la_title_AffiliatePlans!"
/>
<
inp2:m_include
t
=
"in-commerce/affiliate_plans/affiliate_plans_edit_tabs"
/>
<
inp2:m_ParseBlock
name
=
"blue_bar"
prefix
=
"ap"
title_preset
=
"affiliate_plans_items"
module
=
"in-commerce"
icon
=
"icon46_affiliate_plans"
/>
<!-- 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
(
'ap'
,
'<inp2:ap_SaveEvent/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'cancel'
,
'<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>'
,
function
()
{
submit_event
(
'ap'
,
'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
(
'ap'
,
'<inp2:ap_PrevId/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'next'
,
'<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>'
,
function
()
{
go_to_id
(
'ap'
,
'<inp2:ap_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
(
'api'
,
'<inp2:adm_SelectorLink prefix="api" 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
(
'api'
)
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'entire_order'
,
'<inp2:m_phrase label="la_ToolTip_EntireOrder" escape="1"/>'
,
function
()
{
if
(
inpConfirm
(
'<inp2:m_phrase label="la_EntireOrderConfirmation"/>'
))
{
submit_event
(
'api'
,
'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
prefix
=
"ap"
function
=
"IsSingle"
/>
a_toolbar
.
HideButton
(
'prev'
);
a_toolbar
.
HideButton
(
'next'
);
a_toolbar
.
HideButton
(
'sep1'
);
//a_toolbar.HideButton('sep2');
<
inp2
:
m_else
/>
<
inp2
:
m_if
prefix
=
"ap"
function
=
"IsLast"
/>
a_toolbar
.
DisableButton
(
'next'
);
<
inp2
:
m_endif
/>
<
inp2
:
m_if
prefix
=
"ap"
function
=
"IsFirst"
/>
a_toolbar
.
DisableButton
(
'prev'
);
<
inp2
:
m_endif
/>
<
inp2
:
m_endif
/>
function
edit
()
{
// required for correct row selection
}
</
script
>
</
td
>
</
tr
>
</
tbody
>
</
table
>
<
inp2:m_block
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
prefix
=
"api"
function
=
"fieldequals"
field
=
"ItemType"
value
=
"1"
/>
<
inp2:
$
PrefixSpecial_field
field
=
"ProductId"
no_special
=
"no_special"
/>
<
inp2:m_elseif
prefix
=
"api"
function
=
"fieldequals"
field
=
"ItemType"
value
=
"2"
/>
<
inp2:
$
PrefixSpecial_field
field
=
"CategoryId"
no_special
=
"no_special"
/>
<
inp2:m_endif
/>
</
td
>
<
inp2:m_blockend
/>
<
inp2:m_if
prefix
=
"api"
function
=
"IsEntireOrder"
/>
<
inp2:m_ParseBlock
name
=
"grid"
PrefixSpecial
=
"api"
IdField
=
"AffiliateItemId"
grid
=
"Default"
header_block
=
"grid_column_title"
data_block
=
"grid_data_td"
search
=
"on"
/>
<
inp2:m_else
/>
<
inp2:m_ParseBlock
name
=
"grid"
PrefixSpecial
=
"api"
IdField
=
"AffiliateItemId"
grid
=
"AffiliatePlansItems"
header_block
=
"grid_column_title"
data_block
=
"grid_data_td"
search
=
"on"
/>
<
inp2:m_endif
/>
<
script
type
=
"text/javascript"
>
<
inp2
:
m_if
prefix
=
"api"
function
=
"IsEntireOrder"
/>
a_toolbar
.
DisableButton
(
'new_item'
);
<
inp2
:
m_endif
/>
Grids
[
'api'
].
SetDependantToolbarButtons
(
new
Array
(
'delete'
)
);
</
script
>
<
input
type
=
"hidden"
name
=
"main_prefix"
id
=
"main_prefix"
value
=
"api"
>
<
inp2:m_include
t
=
"incs/footer"
/>
Event Timeline
Log In to Comment