Viewing file: 28d43fe9f342f7020c3be3b8bb789e0e5ab39973.file.search-panel.tpl.php (2.15 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* Smarty version Smarty3-RC3, created on 2012-02-09 04:08:54 compiled from "user/templates/searchinsite/search-panel.tpl" */ ?> <?php /*%%SmartyHeaderCode:1825978694f332ab66a4742-93494967%%*/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 => 1328738842, ), ), 'nocache_hash' => '1825978694f332ab66a4742-93494967', 'function' => array ( ), 'has_nocache_code' => false, )); /*/%%SmartyHeaderCode%%*/?> <form name="searchinsite-panel-form" method="get" action="/search"> <table border="0" cellspacing="0" cellpadding="5" width="100%"> <tr> <td align="center"> <input name="text" type="text" class="search" value="<?php echo $_smarty_tpl->getVariable('ULANG')->value['SearchInitText'];?> " size="16" />   <input type="image" src="/user/icons/search-icon.gif" align="absmiddle" /> </td> </tr> </table> </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>
|