<script type="text/javascript">
<!--
function newaction(modulo){
	var action = "<?php echo goweb::link('/modulo_a_pesquisar/resultado_pesquisa/') ?>";
	return action.replace(/modulo_a_pesquisar/,modulo);
}

//-->
</script>

<?php if (isset($modulos) && $modulos): ?>
<div id="search_modulos" align="center">
	<div style="background-color:#dedede; padding:5px;">
		<h3><?php echo translate('Pesquisa Avan�ada'); ?></h3>
		<form name="form_modulos_pesquisaveis" method="post" action="" onsubmit="this.action = newaction(document.getElementById('modulo').options[document.getElementById('modulo').selectedIndex].value);">
			<table border="0" class="form">
				<tr>
					<td class="input">
						<input type="text" name="palavra" id="palavra2" value="<?php echo $palavra; ?>" size="30" maxlength="255" class="input" />
					</td>
					<td class="input">
						<select name="modulo" id="modulo">
							<?php foreach ($modulos as $modulo): ?>
								<option value="<?php echo strtolower($modulo->nome); ?>"<?php echo $modulo->nome == $modulo_pesquisa ? ' selected="selected"' : ''; ?>><?php echo translate($modulo->titulo); ?></option>
							<?php endforeach; ?>
						</select>
					</td>
					<td>
						<input type="image" src="<?php echo URL_PATH ?>/media/images/procurar.jpg" value="<?php echo translate('Procurar'); ?>" />
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>
<?php endif; ?>

