Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1051765
category_selector.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, Jul 4, 4:16 AM
Size
7 KB
Mime Type
text/html
Expires
Sun, Jul 6, 4:16 AM (1 d, 3 h)
Engine
blob
Format
Raw Data
Handle
679363
Attached To
rINP In-Portal
category_selector.tpl
View Options
<
inp2:m_set
nobody
=
"yes"
/>
<
inp2:m_include
t
=
"incs/header"
/>
<
body
topmargin
=
"0"
leftmargin
=
"8"
marginheight
=
"0"
marginwidth
=
"8"
bgcolor
=
"#FFFFFF"
>
<
inp2:m_ParseBlock
name
=
"blue_bar"
prefix
=
"c"
title_preset
=
"category_list"
module
=
"in-commerce"
/>
<
inp2:c_InitMainPrefix
/>
<!-- 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"/>'
,
function
()
{
set_hidden_field
(
'remove_specials[<inp2:c_ListMarker list_name="cats"/>]'
,
1
);
submit_event
(
'<inp2:m_recall name="selector_main_prefix"/>'
,
'OnSelectItems'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'cancel'
,
'<inp2:m_phrase label="la_ToolTip_Cancel"/>'
,
function
()
{
window
.
close
();
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep2'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'upcat'
,
'<inp2:m_phrase label="la_ToolTip_Up"/>'
,
function
()
{
submit_event
(
'c'
,
'OnCategoryUp'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'homecat'
,
'<inp2:m_phrase label="la_ToolTip_Home"/>'
,
function
()
{
submit_event
(
'c'
,
'OnGoHome'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep3'
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'view'
,
'<inp2:m_phrase label="la_ToolTip_View"/>'
,
function
()
{
show_viewmenu
(
a_toolbar
,
'view'
);
}
)
);
a_toolbar
.
Render
();
function
edit
()
{
// required for correct row selection
}
</
script
>
</
td
>
</
tr
>
</
tbody
>
</
table
>
<
inp2:m_block
name
=
"category_td"
/>
<
td
valign
=
"top"
class
=
"table_white text"
id
=
"<inp2:m_param name="
PrefixSpecial
"
/>
_
<
inp2:Field
field
=
"ResourceId"
/>
">
<
input
type
=
"radio"
name
=
"<inp2:InputName field="
$
IdField
"
IdField
=
"
$
IdField"
/>
" id="
<
inp2:InputName
field
=
"
$
IdField"
IdField
=
"
$
IdField"
/>
">
<
img
src
=
"img/itemicons/<inp2:ItemIcon grid="
Default
"
/>
">
<
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
>
<
a
class
=
"link"
href
=
"<inp2:CategoryLink pass="
all
"
/>
">
<
b
><
inp2:field
field
=
"Name"
/></
b
></
a
><
span
class
=
"cat_desc"
>
:
</
span
>
<
span
class
=
"cat_pick"
><
inp2:m_if
check
=
"IsPick"
/>
Pick
<
inp2:m_endif
/></
span
>
<
span
class
=
"cat_new"
><
inp2:m_if
check
=
"IsNew"
/>
New
<
inp2:m_endif
/></
span
>
<
span
class
=
"cats_stats"
>
(
<
inp2:SubCatCount
/>
/
<
inp2:ItemCount
/>
)
</
span
><
br
>
<
div
style
=
"padding-left:3px"
>
<
span
class
=
"cat_desc"
><
inp2:field
field
=
"Description"
/></
span
><
br
>
<
span
class
=
"cats_stats"
>
(
<
inp2:field
field
=
"CreatedOn"
format
=
"_regional_DateFormat"
/>
)
</
span
>
</
div
>
</
td
>
<
inp2:m_blockend
/>
<
inp2:m_block
name
=
"root_cat_caption"
/>
<
inp2:m_if
prefix
=
"m"
function
=
"paramequals"
param
=
"current"
value
=
"1"
/><
script
type
=
"text/javascript"
>
a_toolbar
.
DisableButton
(
'upcat'
);
a_toolbar
.
DisableButton
(
'homecat'
);
</
script
><
span
class
=
"NAV_CURRENT_ITEM"
><
inp2:m_else
/><
span
class
=
"NAV_CURRENT_ITEM"
><
a
class
=
"control_link"
href
=
"<inp2:m_t m_cat_id="
0
"
pass
=
"all"
/>
">
<
inp2:m_endif
/><
inp2:c_RootCategoryName
/><
inp2:m_if
prefix
=
"m"
function
=
"paramequals"
param
=
"current"
value
=
"1"
/><
inp2:m_else
/></
a
><
inp2:m_endif
/></
span
>
<
inp2:m_blockend
/>
<
inp2:m_block
name
=
"category_caption"
/>
<
inp2:m_param
name
=
"separator"
/>
<
inp2:m_if
prefix
=
"m"
function
=
"paramequals"
param
=
"current"
value
=
"1"
/><
span
class
=
"NAV_CURRENT_ITEM"
><
inp2:m_else
/><
span
class
=
"NAV_CURRENT_ITEM"
><
a
class
=
"control_link"
href
=
"<inp2:m_t m_cat_id="
$
cat_id
"
pass
=
"all"
/>
">
<
inp2:m_endif
/><
inp2:m_param
name
=
"cat_name"
/><
inp2:m_if
prefix
=
"m"
function
=
"paramequals"
param
=
"current"
value
=
"1"
/><
inp2:m_else
/></
a
><
inp2:m_endif
/></
span
>
<
inp2:m_blockend
/>
<
table
class
=
"toolbar"
cellspacing
=
"0"
cellpadding
=
"2"
width
=
"100%"
border
=
"0"
class
=
"tableborder_full_a"
>
<
tbody
>
<
tr
bgcolor
=
"#e0e0da"
height
=
"20"
>
<
td
width
=
"100%"
>
<
img
height
=
"15"
src
=
"<inp2:m_getconst name="
PROTOCOL
"
/><
inp2:m_getconst
name
=
"SERVER_NAME"
/><
inp2:m_getconst
name
=
"BASE_PATH"
/>
/admin/images/arrow.gif" width="15" align="middle" border="0">
<
inp2:c_CategoryPath
separator
=
">"
rootcatblock
=
"root_cat_caption"
rootmoduleblock
=
"category_caption"
currentblock
=
"category_caption"
block
=
"category_caption"
/>
</
td
>
<
td
align
=
"right"
>
<
table
cellspacing
=
"0"
cellpadding
=
"0"
border
=
"0"
>
<
tr
>
<
td
>
Search:
</
td
>
<
td
><
input
type
=
"text"
id
=
"<inp2:c_ListMarker list_name="
cats
"
per_page
=
"-1"
/>
_search_keyword"
name="
<
inp2:c_ListMarker
list_name
=
"cats"
/>
_search_keyword"
value="
<
inp2:c_SearchKeyword
/>
"
PrefixSpecial="
<
inp2:c_ListMarker
list_name
=
"cats"
/>
"
Grid="Default"
style="border: 1px solid grey;">
<
inp2:m_recall
var
=
"c_search_keyword"
no_null
=
"no_null"
special
=
"1"
/>
</
td
>
<
td
>
<
script
type
=
"text/javascript"
>
document
.
getElementById
(
'<inp2:c_ListMarker list_name="cats"/>_search_keyword'
).
onkeydown
=
search_keydown
;
Toolbars
[
'<inp2:c_ListMarker list_name="cats"/>_search'
]
=
new
ToolBar
(
'icon16_'
);
Toolbars
[
'<inp2:c_ListMarker list_name="cats"/>_search'
].
AddButton
(
new
ToolBarButton
(
'search'
,
'Search'
,
function
()
{
search
(
'<inp2:c_ListMarker list_name="cats"/>'
,
'Default'
)
}
)
);
Toolbars
[
'<inp2:c_ListMarker list_name="cats"/>_search'
].
AddButton
(
new
ToolBarButton
(
'search_reset'
,
'Reset'
,
function
()
{
search_reset
(
'<inp2:c_ListMarker list_name="cats"/>'
)
}
)
);
Toolbars
[
'<inp2:c_ListMarker list_name="cats"/>_search'
].
Render
();
</
script
>
</
td
>
</
tr
>
</
table
>
</
td
>
</
tr
>
</
tbody
>
</
table
>
<
inp2:m_block
name
=
"row_start"
/>
<
tr
>
<
inp2:m_blockend
/>
<
inp2:m_block
name
=
"row_end"
/>
</
tr
>
<
inp2:m_blockend
/>
<
inp2:m_block
name
=
"no_categories"
/>
<
tr
><
td
><
span
class
=
"cat_desc"
>
No Categories
</
span
></
td
></
tr
>
<
inp2:m_blockend
/>
<
br
><
table
border
=
"0"
width
=
"100%"
>
<
inp2:c_CategoryList
list_name
=
"cats"
block_main
=
"category_td"
block_row_start
=
"row_start"
block_row_end
=
"row_end"
per_page
=
"-1"
columns
=
"2"
direction
=
"V"
IdField
=
"ResourceId"
/>
<!-- <inp2:c_PrintList2 block="category_td" per_page="9" columns="2" direction="V" row_start_block="row_start" row_end_block="row_end" IdField="ResourceId" /> -->
</
table
></
br
>
<
script
type
=
"text/javascript"
src
=
"incs/fw_menu.js"
></
script
>
<
script
type
=
"text/javascript"
>
Grids
[
'<inp2:c_ListMarker list_name="cats"/>'
]
=
new
Grid
(
'table_white_selected'
,
':original'
,
edit
,
a_toolbar
);
Grids
[
'<inp2:c_ListMarker list_name="cats"/>'
].
RadioMode
=
true
;
Grids
[
'<inp2:c_ListMarker list_name="cats"/>'
].
DblClick
=
function
()
{
return
false
};
Grids
[
'<inp2:c_ListMarker list_name="cats"/>'
].
AddItemsByIdMask
(
'td'
,
/^<inp2:c_ListMarker list_name="cats" as_preg="1"/
>
_
([
0
-
9
-
]
+
)
/
,
'<inp2:c_ListMarker list_name="cats" />[$$ID$$][ResourceId]'
);
Grids
[
'<inp2:c_ListMarker list_name="cats"/>'
].
InitItems
();
<
inp2
:
c_ViewMenu
block
=
"viewmenu_declaration"
grid
=
"Default"
/>
$
ViewMenus
=
new
Array
(
'<inp2:c_ListMarker list_name="cats"/>'
);
</
script
>
<!-- <inp2:m_ParseBlock name="grid" PrefixSpecial="c" IdField="ResourceId" grid="Default" header_block="grid_column_title" data_block="category_td" /> -->
<
inp2:m_block
name
=
"product_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
/>
<
input
type
=
"hidden"
name
=
"main_prefix"
id
=
"main_prefix"
value
=
"<inp2:m_recall name="
selector_main_prefix
"
/>
">
<
inp2:m_include
t
=
"incs/footer"
/>
Event Timeline
Log In to Comment