Ejemplo n.º 1
0
 function org_openpsa_products_search_value_helper($request_key, $request_name = 'org_openpsa_products_search')
 {
     if (isset($_REQUEST[$request_name][$request_key]['value'])) {
         echo ' value=' . midcom_helper_xsspreventer::escape_attribute($_REQUEST[$request_name][$request_key]['value']);
     }
 }
Ejemplo n.º 2
0
    $subnodes = $nap->list_nodes($node_id);
    foreach ($subnodes as $sub_id) {
        midcom_helper_search_process_node($sub_id, $nap, $topics, $components, $prefix, $data);
    }
}
$nap = new midcom_helper_nav();
$topics = array();
$components = array();
$topics[''] = $data['l10n']->get('search anywhere');
$components[''] = $data['l10n']->get('search all content types');
$components['net.nehmer.static'] = 'Artikkelit';
$components['net.nehmer.blog'] = 'Uutiset';
$components['fi.kilonkipinat.events'] = 'Tapahtumat';
midcom_helper_search_process_node($nap->get_root_node(), $nap, $topics, $components, '', $data);
$_MIDCOM->load_library('midcom.helper.xsspreventer');
$query = midcom_helper_xsspreventer::escape_attribute($data['query']);
?>
<form method='get' name='midcom_helper_search_form' action='&(prefix);result/' class='midcom.helper.search'>
<input type='hidden' name='type' value='advanced' />
<input type='hidden' name='page' value='1' />
 
<table cellspacing="0" cellpadding="3" border="0">
    <tr>
        <td><?php 
echo $data['l10n']->get('query');
?>
:</td>
        <td><input type='text' style="width: 20em;" name='query' value=&(query:h); /></td>
    </tr>
    <tr>
        <td><?php 
<?php

$_MIDCOM->load_library('midcom.helper.xsspreventer');
$search_value = '';
if (isset($_GET['query']) && $_GET['query'] != '') {
    $search_value = str_replace('"', '', midcom_helper_xsspreventer::escape_attribute($_GET['query']));
}
?>
<div class="left_bottom_container">
    <span class="left_content_top">&nbsp;</span>
    <div id="additional_navi_links">
        <ul>
            <li class="sitemap"><a href="/sivukartta/">Sivukartta</a></li>
            <li class="feedback"><a href="/palaute/">Palaute</a></li>
            <li class="search"><form method="get" action="/haku/"><input value="&(search_value:h);" id="search_input" type="text" name="query" /><input id="search_submit" type="submit" value="Hae" /></form></li>
        </ul>
    </div>
</div>