55 lines
1.9 KiB
Smarty
55 lines
1.9 KiB
Smarty
<html>
|
|
<head>
|
|
<script type="text/javascript" language="javascript">
|
|
<!-- START
|
|
var sess_expires = "{$smarty.const.SESSION_EXPIRE}";
|
|
var cookie_name = "{$smarty.const.COOKIE_NAME}";
|
|
var SESS = "{$SESS}";
|
|
var URL = "{$URL}";
|
|
var SSL_URL = "{$SSL_URL}";
|
|
var THEME_NAME = "{$THEME_NAME}";
|
|
var REDIRECT_PAGE = "{$smarty.const.REDIRECT_PAGE}";
|
|
// END -->
|
|
</script>
|
|
|
|
<!-- Load the main stylesheet -->
|
|
<link rel="stylesheet" href="themes/{$THEME_NAME}/style.css" type="text/css">
|
|
|
|
<!-- Load the main javascript code -->
|
|
<script type="text/javascript" src="themes/{$THEME_NAME}/top.js"></script>
|
|
</head>
|
|
|
|
<body class="row1">
|
|
{$method->exe($VAR.module,'search')}
|
|
{if ($method->result == false)}
|
|
{$block->display('core:method_error')}
|
|
|
|
{else}
|
|
{if $results > 0}
|
|
<script type="text/javascript" language="javascript">
|
|
{if $results == '1' && $VAR._next_page_one != ''}
|
|
var url = '?_page={$VAR.module}:{$VAR._next_page_one}&id={$record_id},{if $VAR._escape_next == "1"}&_escape=1&_escape_next=1{/if}';
|
|
{else}
|
|
{if $VAR._next_page == ''}
|
|
var url = '?_page={$VAR.module}:search_show&search_id={$search_id}&order_by={$order_by}&limit={$limit}&page=1{if $VAR._escape_next == "1"}&_escape=1&_escape_next=1&{$VAR.name_id1}={$VAR.val_id1}&{$VAR.name_id2}={$VAR.val_id2}{/if}';
|
|
{else}
|
|
var url = '?_page={$VAR.module}:{$VAR._next_page}&search_id={$search_id}&order_by={$order_by}&limit={$limit}&page=1{if $VAR._escape_next == "1"}&_escape=1&_escape_next=1&{$VAR.name_id1}={$VAR.val_id1}&{$VAR.name_id2}={$VAR.val_id2}{/if}';
|
|
{/if}
|
|
{/if}
|
|
document.location = url;
|
|
</script>
|
|
|
|
{else}
|
|
<script type="text/javascript" language="javascript">
|
|
{if $VAR._next_page_none == ''}
|
|
document.close();
|
|
{else}
|
|
var url = '?_page={$VAR.module}:{$VAR._next_page_none}&_escape=1&_escape_next=1&{$VAR.name_id1}={$VAR.val_id1}&{$VAR.name_id2}={$VAR.val_id2}';
|
|
document.location = url;
|
|
{/if}
|
|
</script>
|
|
{/if}
|
|
{/if}
|
|
</body>
|
|
</html>
|