Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1949958
shipping_type_groups.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:25 AM
Size
4 KB
Mime Type
text/html
Expires
Sat, Oct 31, 9:25 AM (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
963605
Attached To
rMINC Modules.In-Commerce
shipping_type_groups.tpl
View Options
<
inp2:m_RequireLogin
permissions
=
"in-commerce:shipping.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
=
"s"
icon
=
"icon46_shipping"
module
=
"in-commerce"
title
=
"!la_title_ShippingTypes!"
/>
<
inp2:m_include
t
=
"in-commerce/shipping/shipping_edit_tabs"
/>
<
inp2:m_ParseBlock
name
=
"blue_bar"
prefix
=
"s"
title_preset
=
"shipping_type_edit"
module
=
"in-commerce"
icon
=
"icon46_shipping"
/>
<!-- 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
()
{
document
.
getElementById
(
'<inp2:s_InputName field="PortalGroups"/>'
).
value
=
select_to_string
(
'selected_groups'
);
submit_event
(
's'
,
'<inp2:s_SaveEvent/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'cancel'
,
'<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>'
,
function
()
{
submit_event
(
's'
,
'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
(
's'
,
'<inp2:s_PrevId/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'next'
,
'<inp2:m_phrase label="la_ToolTip_Next" escape="1"/>'
,
function
()
{
go_to_id
(
's'
,
'<inp2:s_NextId/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep2'
)
);
a_toolbar
.
Render
();
<
inp2
:
m_if
prefix
=
"s"
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
=
"s"
function
=
"IsLast"
/>
a_toolbar
.
DisableButton
(
'next'
);
<
inp2
:
m_endif
/>
<
inp2
:
m_if
prefix
=
"s"
function
=
"IsFirst"
/>
a_toolbar
.
DisableButton
(
'prev'
);
<
inp2
:
m_endif
/>
<
inp2
:
m_endif
/>
function
go_to_tab
(
prefix_special
,
tab
)
{
set_hidden_field
(
prefix_special
+
'_GoTab'
,
tab
);
document
.
getElementById
(
'<inp2:s_InputName field="PortalGroups"/>'
).
value
=
select_to_string
(
'selected_groups'
);
submit_event
(
prefix_special
,
'OnPreSaveAndGoToTab'
,
null
);
}
function
go_to_id
(
prefix_special
,
id
)
{
set_hidden_field
(
prefix_special
+
'_GoId'
,
id
);
document
.
getElementById
(
'<inp2:s_InputName field="PortalGroups"/>'
).
value
=
select_to_string
(
'selected_groups'
);
submit_event
(
prefix_special
,
'OnPreSaveAndGo'
)
}
</
script
>
</
td
>
</
tr
>
</
tbody
>
</
table
>
<
inp2:s_SaveWarning
name
=
"grid_save_warning"
/>
<
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"4"
class
=
"tableborder"
>
<
inp2:m_ParseBlock
name
=
"inp_label"
prefix
=
"s"
field
=
"ShippingID"
title
=
"!la_fld_ShippingId!"
/>
<
inp2:m_ParseBlock
name
=
"inp_edit_hidden"
prefix
=
"s"
field
=
"PortalGroups"
title
=
"!la_fld_Groups!"
size
=
"40"
/>
<
tr
class
=
"table_color2"
>
<
td
style
=
"width: 250px"
>
<
inp2:m_phrase
label
=
"la_fld_Groups"
/>
:
</
td
>
<
td
>
<
table
style
=
"width: 300px"
>
<
tr
>
<
td
>
<
inp2:m_DefineElement
name
=
"group_option"
>
<
option
value
=
"<inp2:m_param name="
GroupId
"
/>
">
<
inp2:m_param
name
=
"Name"
/></
option
>
</
inp2:m_DefineElement
>
<
inp2:m_phrase
label
=
"la_fld_SelectedGroups"
/>
<
select
id
=
"selected_groups"
name
=
"selected_groups[]"
multiple
=
"multiple"
size
=
"20"
style
=
"width: 200px"
>
<
inp2:s_ListGroups
mode
=
"selected"
render_as
=
"group_option"
/>
</
select
>
</
td
>
<
td
align
=
"center"
>
<
input
type
=
"button"
value
=
" «« "
onclick
=
"move_selected('available_groups', 'selected_groups'); select_sort('selected_groups')"
class
=
"button"
><
br
>
<
img
src
=
"img/s.gif"
width
=
"1"
height
=
"4"
alt
=
""
><
br
>
<
input
type
=
"button"
value
=
" »» "
onclick
=
"move_selected('selected_groups', 'available_groups'); select_sort('available_groups');"
class
=
"button"
>
</
td
>
<
td
>
<
inp2:m_phrase
label
=
"la_fld_AvailableGroups"
/>
<
select
id
=
"available_groups"
name
=
"available_groups[]"
multiple
=
"multiple"
size
=
"20"
style
=
"width: 200px"
>
<
inp2:s_ListGroups
render_as
=
"group_option"
/>
</
select
>
</
td
>
</
tr
>
</
table
>
</
td
>
<
td
>
</
td
>
</
tr
>
</
table
>
<
inp2:m_include
t
=
"incs/footer"
/>
Event Timeline
Log In to Comment