Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1949732
currencies_list.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:23 AM
Size
4 KB
Mime Type
text/html
Expires
Sat, Oct 31, 7:23 AM (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
960805
Attached To
rMINC Modules.In-Commerce
currencies_list.tpl
View Options
<
inp2:m_RequireLogin
permissions
=
"in-commerce:currencies.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
=
"curr"
icon
=
"icon46_currencies"
module
=
"in-commerce"
title
=
"!la_title_Currencies!"
/>
<
inp2:m_ParseBlock
name
=
"blue_bar"
prefix
=
"curr"
title_preset
=
"currencies_list"
module
=
"in-commerce"
icon
=
"icon46_currencies"
/>
<!-- 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
();
function
edit
()
{
std_edit_item
(
'curr'
,
'in-commerce/currencies/currencies_edit'
);
}
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'edit'
,
'<inp2:m_phrase label="la_ToolTip_Edit" escape="1"/>'
,
edit
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep6'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'primary_currency'
,
'<inp2:m_phrase label="la_ToolTip_setPrimary" escape="1"/>'
,
function
()
{
submit_event
(
'curr'
,
'OnSetPrimary'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'approve'
,
'<inp2:m_phrase label="la_ToolTip_Approve" escape="1"/>'
,
function
()
{
submit_event
(
'curr'
,
'OnMassApprove'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'decline'
,
'<inp2:m_phrase label="la_ToolTip_Decline" escape="1"/>'
,
function
()
{
submit_event
(
'curr'
,
'OnMassDecline'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep2'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'move_up'
,
'<inp2:m_phrase label="la_ToolTip_MoveUp" escape="1"/>'
,
function
()
{
submit_event
(
'curr'
,
'OnMassMoveUp'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'move_down'
,
'<inp2:m_phrase label="la_ToolTip_MoveDown" escape="1"/>'
,
function
()
{
submit_event
(
'curr'
,
'OnMassMoveDown'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep3'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'update_rates'
,
'<inp2:m_phrase label="la_ToolTip_UpdateRates" escape="1"/>'
,
function
()
{
if
(
Grids
[
'curr'
].
CountSelected
()
>
0
)
{
message
=
'<inp2:m_phrase label="la_warning_UpdateSelectedCurrencyRates" />?'
;
}
else
{
message
=
'<inp2:m_phrase label="la_warning_UpdateAllCurrencyRates" />?'
;
}
if
(
confirm
(
message
))
{
submit_event
(
'curr'
,
'OnUpdateRates'
);
}
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep4'
)
);
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
=
"curr"
function
=
"IsSingle"
/>
a_toolbar
.
HideButton
(
'prev'
);
a_toolbar
.
HideButton
(
'next'
);
a_toolbar
.
HideButton
(
'sep1'
);
<
inp2
:
m_else
/>
<
inp2
:
m_if
prefix
=
"curr"
function
=
"IsLast"
/>
a_toolbar
.
DisableButton
(
'next'
);
<
inp2
:
m_endif
/>
<
inp2
:
m_if
prefix
=
"curr"
function
=
"IsFirst"
/>
a_toolbar
.
DisableButton
(
'prev'
);
<
inp2
:
m_endif
/>
<
inp2
:
m_endif
/>
</
script
>
</
td
>
</
tr
>
</
tbody
>
</
table
>
<
inp2:m_block
name
=
"currency_caption_td"
/>
<
td
valign
=
"top"
class
=
"text"
><
inp2:
$
PrefixSpecial_field
field
=
"
$
fi
eld"
grid
=
"
$
grid"
/>
<
span
class
=
"priority"
><
inp2:m_if
prefix
=
"
$
PrefixSpecial"
function
=
"fieldequals"
field
=
"Priority"
value
=
"0"
/><
inp2:m_else
/><
sup
><
inp2:
$
PrefixSpecial_field
field
=
"Priority"
/></
sup
><
inp2:m_endif
/></
span
></
td
>
<
inp2:m_blockend
/>
<
inp2:m_ParseBlock
name
=
"grid"
PrefixSpecial
=
"curr"
IdField
=
"CurrencyId"
grid
=
"Default"
header_block
=
"grid_column_title"
data_block
=
"grid_data_td"
search
=
"on"
/>
<
script
type
=
"text/javascript"
>
Grids
[
'curr'
].
SetDependantToolbarButtons
(
new
Array
(
'edit'
,
'primary_currency'
,
'approve'
,
'decline'
,
'move_up'
,
'move_down'
)
);
</
script
>
<
inp2:m_block
name
=
"remove_unused_warning"
/>
<
input
type
=
"hidden"
name
=
"unused_ids"
id
=
"unused_ids"
value
=
"<inp2:m_param name="
unused_ids
"
/>
">
<
script
type
=
"text/javascript"
>
if
(
inpConfirm
(
'<inp2:m_phrase label="la_WarningCurrenciesNotUsed" />: <inp2:m_param name="unused_iso" />. <inp2:m_phrase label="la_WarningRemoveUnusedCurrencies" />?'
))
{
submit_event
(
'curr'
,
'OnDisableUnused'
);
}
</
script
>
<
inp2:m_blockend
/>
<
inp2:curr_DisableUnusedWarning
block
=
"remove_unused_warning"
/>
<
inp2:m_include
t
=
"incs/footer"
/>
Event Timeline
Log In to Comment