Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1124934
config_search.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, Sep 4, 12:49 AM
Size
6 KB
Mime Type
text/html
Expires
Sat, Sep 6, 12:49 AM (2 h, 30 m)
Engine
blob
Format
Raw Data
Handle
727640
Attached To
rINP In-Portal
config_search.tpl
View Options
<
inp2:m_include
t
=
"incs/header"
/>
<
inp2:m_Get
name
=
"section"
no_html_escape
=
"1"
result_to_var
=
"section"
/>
<
inp2:m_RenderElement
name
=
"combined_header"
prefix
=
"confs"
section
=
"
$
section"
perm_event
=
"confs:OnLoad"
title_preset
=
"config_list_search"
/>
<!-- ToolBar -->
<
table
class
=
"toolbar"
height
=
"30"
cellspacing
=
"0"
cellpadding
=
"0"
width
=
"100%"
border
=
"0"
>
<
tbody
>
<
tr
>
<
td
>
<
script
type
=
"text/javascript"
>
var
a_toolbar
=
new
ToolBar
();
<
inp2
:
m_if
check
=
"m_IsDebugMode"
>
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'new_item'
,
'<inp2:m_phrase label="la_ToolTip_NewSearchConfig" escape="1"/>::<inp2:m_phrase label="la_ToolTip_Add" escape="1"/>'
,
function
()
{
std_new_item
(
'confs'
,
'config/config_search_edit'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarSeparator
(
'sep2'
)
);
<
/inp2:m_if>
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'select'
,
'<inp2:m_phrase label="la_ToolTip_Save" escape="1"/>'
,
function
()
{
submit_event
(
'confs'
,
'<inp2:confs_SaveEvent/>'
);
}
)
);
a_toolbar
.
AddButton
(
new
ToolBarButton
(
'cancel'
,
'<inp2:m_phrase label="la_ToolTip_Cancel" escape="1"/>'
,
function
()
{
submit_event
(
'confs'
,
'OnCancel'
);
}
)
);
a_toolbar
.
Render
();
</
script
>
</
td
>
</
tr
>
</
tbody
>
</
table
>
<
inp2:m_DefineElement
name
=
"confs_checkbox_td"
>
<
td
valign
=
"top"
class
=
"text"
>
<
inp2:m_if
check
=
"m_ParamEquals"
name
=
"nolabel"
value
=
"true"
>
<
inp2:m_else
/>
<
label
for
=
"_cb_<inp2:InputName field="
$
Field
"
/>
">
<
inp2:m_Phrase
label
=
"
$
Label"
/></
label
>
</
inp2:m_if
>
<
input
type
=
"checkbox"
name
=
"_cb_<inp2:InputName field="
$
Field
"
/>
"
<
inp2:Field
field
=
"
$
Field"
checked
=
"checked"
db
=
"db"
/>
id="_cb_
<
inp2:InputName
field
=
"
$
Field"
/>
" onclick="update_checkbox(this, document.getElementById('
<
inp2:InputName
field
=
"
$
Field"
/>
'))" >
<
input
type
=
"hidden"
id
=
"<inp2:InputName field="
$
Field
"
/>
" name="
<
inp2:InputName
field
=
"
$
Field"
/>
" value="
<
inp2:Field
field
=
"
$
Field"
db
=
"db"
/>
">
</
td
>
</
inp2:m_DefineElement
>
<
inp2:m_DefineElement
name
=
"confs_edit_text"
>
<
td
valign
=
"top"
class
=
"text"
>
<
label
for
=
"<inp2:InputName field="
$
Field
"
/>
">
<
inp2:m_Phrase
label
=
"
$
Label"
/></
label
>
<
input
type
=
"text"
name
=
"<inp2:InputName field="
$
Field
"
/>
" value="
<
inp2:Field
field
=
"
$
Field"
/>
" size="3" />
</
td
>
</
inp2:m_DefineElement
>
<
inp2:m_DefineElement
name
=
"confs_detail_row"
>
<
inp2:m_if
check
=
"m_ParamEquals"
name
=
"show_heading"
value
=
"1"
>
<
tr
class
=
"subsectiontitle"
>
<
td
colspan
=
"4"
>
<
inp2:Field
name
=
"ConfigHeader"
as_label
=
"1"
/>
</
td
>
</
tr
>
</
inp2:m_if
>
<
tr
class
=
"<inp2:m_odd_even odd="
table-color1
"
even
=
"table-color2"
/>
">
<
td
class
=
"text"
>
<
inp2:Field
field
=
"DisplayName"
as_label
=
"true"
/>
<
inp2:m_if
check
=
"m_IsDebugMode"
>
<
br
/><
small
style
=
"color: grey;"
>
[ID:
<
b
><
inp2:Field
name
=
"SearchConfigId"
/></
b
>
; DisplayOrder:
<
b
><
inp2:Field
name
=
"DisplayOrder"
/></
b
>
; Field:
<
b
><
inp2:Field
name
=
"FieldName"
/></
b
>
]
</
small
>
</
inp2:m_if
>
</
td
>
<
inp2:m_if
check
=
"Field"
name
=
"FieldType"
equals_to
=
"text|range|select|multiselect"
db
=
"db"
>
<
inp2:m_RenderElement
name
=
"confs_checkbox_td"
pass_params
=
"true"
IdField
=
"SearchConfigId"
Label
=
"la_prompt_SimpleSearch"
Field
=
"SimpleSearch"
/>
<
inp2:m_else
/>
<
td
class
=
"text"
>
</
td
>
</
inp2:m_if
>
<
inp2:m_RenderElement
name
=
"confs_edit_text"
pass_params
=
"true"
IdField
=
"SearchConfigId"
Label
=
"la_prompt_weight"
Field
=
"Priority"
/>
<
inp2:m_RenderElement
name
=
"confs_checkbox_td"
pass_params
=
"true"
IdField
=
"SearchConfigId"
Label
=
"la_prompt_AdvancedSearch"
Field
=
"AdvancedSearch"
/>
</
tr
>
</
inp2:m_DefineElement
>
<
inp2:m_DefineElement
name
=
"config_values"
>
<
tr
class
=
"subsectiontitle"
>
<
td
colspan
=
"4"
>
<
inp2:m_phrase
name
=
"
$
module_item"
/>
<
inp2:m_phrase
name
=
"la_prompt_relevence_settings"
/>
</
td
>
</
tr
>
<
tr
class
=
"<inp2:m_odd_even odd="
table-color1
"
even
=
"table-color2"
/>
">
<
td
colspan
=
"4"
>
<
inp2:m_phrase
name
=
"la_prompt_required_field_increase"
/>
<
input
type
=
"text"
size
=
"3"
name
=
"conf[<inp2:conf_GetVariableID name="
SearchRel_Increase_
{$
module_key
}"
/>
][VariableValue]" VALUE="
<
inp2:Field
field
=
"SearchRel_Increase_{
$
module_key}"
/>
">%
</
td
>
</
tr
>
<
tr
class
=
"<inp2:m_odd_even odd="
table-color1
"
even
=
"table-color2"
/>
">
<
td
colspan
=
"4"
>
<
inp2:m_phrase
name
=
"la_prompt_relevence_percent"
/>
<
input
type
=
"text"
size
=
"3"
name
=
"conf[<inp2:conf_GetVariableID name="
SearchRel_Keyword_
{$
module_key
}"
/>
][VariableValue]" value="
<
inp2:Field
field
=
"SearchRel_Keyword_{
$
module_key}"
/>
">%
<
inp2:Field
field
=
"SearchRel_Keyword_{
$
module_key}_prompt"
as_label
=
"1"
/>
<
input
type
=
"text"
size
=
"3"
name
=
"conf[<inp2:conf_GetVariableID name="
SearchRel_Pop_
{$
module_key
}"
/>
][VariableValue]" value="
<
inp2:Field
field
=
"SearchRel_Pop_{
$
module_key}"
/>
">%
<
inp2:Field
field
=
"SearchRel_Pop_{
$
module_key}_prompt"
as_label
=
"1"
/>
<
input
type
=
"text"
size
=
"3"
name
=
"conf[<inp2:conf_GetVariableID name="
SearchRel_Rating_
{$
module_key
}"
/>
][VariableValue]" value="
<
inp2:Field
field
=
"SearchRel_Rating_{
$
module_key}"
/>
">%
<
inp2:Field
field
=
"SearchRel_Rating_{
$
module_key}_prompt"
as_label
=
"1"
/>
</
td
>
</
tr
>
<
inp2:m_if
check
=
"m_GetEquals"
name
=
"module"
value
=
"In-Portal"
inverse
=
"inverse"
>
<
tr
class
=
"subsectiontitle"
>
<
td
colspan
=
"4"
>
<
inp2:m_phrase
name
=
"
$
module_item"
/>
<
inp2:m_phrase
name
=
"la_prompt_multipleshow"
/>
</
td
>
</
tr
>
<
tr
class
=
"<inp2:m_odd_even odd="
table-color1
"
even
=
"table-color2"
/>
">
<
td
class
=
"text"
width
=
"120"
><
inp2:Field
field
=
"Search_ShowMultiple_{
$
module_key}_prompt"
as_label
=
"1"
/></
td
>
<
td
class
=
"text"
colspan
=
"3"
>
<
input
type
=
"checkbox"
name
=
"_cb_conf[<inp2:conf_GetVariableID name="
Search_ShowMultiple_
{$
module_key
}"
/>
][VariableValue]"
<
inp2:Field
field
=
"Search_ShowMultiple_{
$
module_key}"
checked
=
"checked"
db
=
"db"
/>
id="_cb_conf[
<
inp2:conf_GetVariableID
name
=
"Search_ShowMultiple_{
$
module_key}"
/>
][VariableValue]" onclick="update_checkbox(this, document.getElementById('conf[
<
inp2:conf_GetVariableID
name
=
"Search_ShowMultiple_{
$
module_key}"
/>
][VariableValue]'))" >
<
input
type
=
"hidden"
id
=
"conf[<inp2:conf_GetVariableID name="
Search_ShowMultiple_
{$
module_key
}"
/>
][VariableValue]" name="conf[
<
inp2:conf_GetVariableID
name
=
"Search_ShowMultiple_{
$
module_key}"
/>
][VariableValue]" value="
<
inp2:Field
field
=
"Search_ShowMultiple_{
$
module_key}"
db
=
"db"
/>
">
</
td
>
</
tr
>
</
inp2:m_if
>
</
inp2:m_DefineElement
>
<
inp2:m_include
t
=
"incs/config_blocks"
/>
<
inp2:m_RenderElement
name
=
"config_updated_notice"
/>
<
div
id
=
"scroll_container"
>
<
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"4"
class
=
"bordered"
<
inp2:m_if
check
=
"conf_ShowRelevance"
>
style="border-bottom-width: 0px;"
</
inp2:m_if
>
>
<
inp2:confs_PrintList
render_as
=
"confs_detail_row"
/>
</
table
>
<
inp2:m_if
check
=
"conf_ShowRelevance"
>
<
table
width
=
"100%"
border
=
"0"
cellspacing
=
"0"
cellpadding
=
"4"
class
=
"bordered"
>
<
inp2:conf_PrintConfList
block
=
"config_values"
per_page
=
"-1"
/>
</
table
>
</
inp2:m_if
>
</
div
>
<
inp2:m_include
t
=
"incs/footer"
/>
Event Timeline
Log In to Comment