Viewing file: 28d43fe9f342f7020c3be3b8bb789e0e5ab39973.file.search-panel.tpl.php (2 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-03-29 11:05:35 compiled from "user/templates/searchinsite/search-panel.tpl" */ ?> <?php /*%%SmartyHeaderCode:5872683524f7417cf8fad03-26325117%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '28d43fe9f342f7020c3be3b8bb789e0e5ab39973' => array ( 0 => 'user/templates/searchinsite/search-panel.tpl', 1 => 1333008115, ), ), 'nocache_hash' => '5872683524f7417cf8fad03-26325117', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <form><input type="text" placeholder="<?php echo $_smarty_tpl->getVariable('ULANG')->value['SearchInitText'];?> " class="search">
<input type="image" alt="" src="/user/images/search.png" class="search_icon"> </form>
<script type="text/javascript">
$(document).ready(
function()
{
$("form[name=searchinsite-panel-form]").submit(
function()
{
text = $("form[name=searchinsite-panel-form] input[name=text]").val();
if (text == "<?php echo $_smarty_tpl->getVariable('ULANG')->value['SearchInitText'];?> ")
$("form[name=searchinsite-panel-form] input[name=text]").val("");
});
$("form[name=searchinsite-panel-form] input[name=text]").focus(
function()
{
text = $("form[name=searchinsite-panel-form] input[name=text]").val();
if (text == "<?php echo $_smarty_tpl->getVariable('ULANG')->value['SearchInitText'];?> ")
$("form[name=searchinsite-panel-form] input[name=text]").val("");
});
$("form[name=searchinsite-panel-form] input[name=text]").blur(
function()
{
text = $("form[name=searchinsite-panel-form] input[name=text]").val();
if (text == "")
$("form[name=searchinsite-panel-form] input[name=text]").val("<?php echo $_smarty_tpl->getVariable('ULANG')->value['SearchInitText'];?> ");
});
});
</script>
|