... | in macro_viewer.naml |
1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098
|
<macro name="macro_search_page" requires="servlet">
<n.naml_tools Macro Parameters:
do
♦ ♦
<n.html Macro Parameters:
head, body
♦ ♦
<head>
<meta name="robots" content="noindex,follow"/>
<n.title Macro Parameters:
text
♦ ♦
<script type="text/javascript">
$(document).ready(function() {
var $input = $('#search_field');
$input.keydown(function(event) {
if (event.keyCode == 13) {
event.preventDefault();
$('form').submit();
}
});
$input.focus();
});
</script>
</head>
<body>
<n.macro_viewer_header Macro Parameters:
text
♦ ♦
Macro Search
</n.macro_viewer_header.>
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
value
♦ ♦ Macro Parameters:
do
♦ ♦ Binary Namespace: FieldNamespace
♦ ♦
<then.search_by_field Macro Parameters:
do
♦ ♦ Binary Namespace: FieldNamespace
Parameters:
value
♦ ♦
</n.if.is_empty.search_by_field.value>
<n.form Macro Requires: servlet
Parameters:
macro, method, onsubmit, content
♦ ♦
<img src="/images/search.png" class="image16"/>
<input id="search_field" type="text" size="25" name="query" value="[n.hide_null Binary Namespace: BasicNamespace
Parameters:
value
♦ ♦ Macro ♦ ♦
<input class="toolbar action-button" type="submit" value="[t]Search[/t]"/>
<div style="clear:both;padding:.3em 0 0 1em">
<n.search_by_field Macro Parameters:
do
♦ ♦ Macro Requires: field
Parameters:
option_value, id
♦ ♦
<label for="by_name">Macro by name</label><br/>
<n.search_by_field Macro Parameters:
do
♦ ♦ Macro Requires: field
Parameters:
option_value, id
♦ ♦
<label for="by_text">Macro source contains</label><br/>
</div>
</n.form.>
<div style="margin-top:1em">
<n.macro_search_results Macro Parameters:
search_by, query
♦ ♦ Macro ♦ ♦ Macro Parameters:
do
♦ ♦ Binary Namespace: FieldNamespace
♦ ♦
</div>
</body>
</n.html>
</n.naml_tools.>
</macro>
|
Free forum by Nabble |