Changes to AgileBill
This commit is contained in:
15
themes/default/blocks/core/add_tr_submit.tpl
Normal file
15
themes/default/blocks/core/add_tr_submit.tpl
Normal file
@@ -0,0 +1,15 @@
|
||||
<tr valign="top">
|
||||
<td> </td>
|
||||
<td>
|
||||
<input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/>
|
||||
<input type="hidden" name="_page" value="{$meth.0}:view"/>
|
||||
<input type="hidden" name="_page_current" value="{$VAR._page}"/>
|
||||
<input type="hidden" name="do[]" value="{$meth.0}:{$meth.1}"/>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
if (document.getElementById('focus'))
|
||||
document.getElementById('focus').focus();
|
||||
//-->
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
@@ -1,448 +0,0 @@
|
||||
{if $SESS_LOGGED == true}
|
||||
|
||||
{ $method->exe('invoice', 'performance') }
|
||||
{if $method->result == TRUE}
|
||||
<table width="550" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td class="body">
|
||||
<div align="center"><a href="?_page=core:admin&period=w">
|
||||
{translate module=invoice}
|
||||
weekly
|
||||
{/translate}
|
||||
</a> | <a href="?_page=core:admin&period=m">
|
||||
{translate module=invoice}
|
||||
monthly
|
||||
{/translate}
|
||||
</a> | <a href="?_page=core:admin&period=y">
|
||||
{translate module=invoice}
|
||||
yearly
|
||||
{/translate}
|
||||
</a><br>
|
||||
<br>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table id="main1" width="550" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<form id="form1" name="form1" method="post" action="">
|
||||
<tr>
|
||||
<td>
|
||||
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="3">
|
||||
<!-- DISPLAY THE SEARCH HEADING -->
|
||||
<tr valign="middle" align="center" class="table_heading">
|
||||
<td width="163" class="table_heading">
|
||||
{translate module=invoice}
|
||||
indicator
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="351" class="table_heading">
|
||||
{translate module=invoice}
|
||||
period
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="189" class="table_heading"> <b>
|
||||
{translate module=invoice}
|
||||
current
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="163" class="table_heading">
|
||||
{translate module=invoice}
|
||||
previous
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="141" class="table_heading"> <b>
|
||||
{translate module=invoice}
|
||||
change
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr class="row1">
|
||||
<td width="163"><b>
|
||||
{translate module=invoice}
|
||||
sales
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="351">
|
||||
{if $VAR.period == '' || $VAR.period == 'm'}
|
||||
{translate module=invoice}
|
||||
thismonth
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastmonth
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $VAR.period == 'w'}
|
||||
{translate module=invoice}
|
||||
thisweek
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastweek
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $VAR.period == 'y'}
|
||||
{translate module=invoice}
|
||||
thisyear
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastyear
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="189"><b>
|
||||
{ $list->format_currency_num($sales_current, '') }
|
||||
</b></td>
|
||||
<td width="163">
|
||||
{ $list->format_currency_num($sales_previous, '')}
|
||||
</td>
|
||||
<td width="141" align="center"> <b>
|
||||
{$sales_change}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<td width="163"><b>
|
||||
{translate module=invoice}
|
||||
forcast
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="351">
|
||||
{if $VAR.period == '' || $VAR.period == 'm'}
|
||||
{translate module=invoice}
|
||||
thismonth
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $VAR.period == 'w'}
|
||||
{translate module=invoice}
|
||||
thisweek
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $VAR.period == 'y'}
|
||||
{translate module=invoice}
|
||||
thisyear
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="189"><b>
|
||||
{ $list->format_currency_num($forcast_current, '') }
|
||||
</b></td>
|
||||
<td width="163"> - </td>
|
||||
<td width="141" align="center"> <b>
|
||||
{$forcast_change}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr class="row1">
|
||||
<td width="163"><b>
|
||||
{translate module=invoice}
|
||||
quota
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="351">
|
||||
{translate module=invoice}
|
||||
today
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="189"><b>
|
||||
{ $list->format_currency_num($quota_current, '') }
|
||||
</b></td>
|
||||
<td width="163"> -</td>
|
||||
<td width="141" align="center"><b>-</b></td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<td width="163"><b>
|
||||
{translate module=invoice}
|
||||
arcredits
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="351">
|
||||
{if $VAR.period == '' || $VAR.period == 'm'}
|
||||
{translate module=invoice}
|
||||
thismonth
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastmonth
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $VAR.period == 'w'}
|
||||
{translate module=invoice}
|
||||
thisweek
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastweek
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $VAR.period == 'y'}
|
||||
{translate module=invoice}
|
||||
thisyear
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastyear
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="189"><b>
|
||||
{ $list->format_currency_num($ar_credits_current, '') }
|
||||
</b></td>
|
||||
<td width="163">
|
||||
{ $list->format_currency_num($ar_credits_previous, '')}
|
||||
</td>
|
||||
<td width="141" align="center"> <b>
|
||||
{$ar_credit_change}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr class="row1">
|
||||
<td width="163"><b>
|
||||
{translate module=invoice}
|
||||
arbalance
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="351">
|
||||
{if $VAR.period == '' || $VAR.period == 'm'}
|
||||
{translate module=invoice}
|
||||
thismonth
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastmonth
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $VAR.period == 'w'}
|
||||
{translate module=invoice}
|
||||
thisweek
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastweek
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $VAR.period == 'y'}
|
||||
{translate module=invoice}
|
||||
thisyear
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastyear
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="189"><b>
|
||||
{ $list->format_currency_num($ar_balance_current, '') }
|
||||
</b></td>
|
||||
<td width="163">
|
||||
{ $list->format_currency_num($ar_balance_last, '')}
|
||||
</td>
|
||||
<td width="141" align="center"><b>-</b></td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<td width="163"><b>
|
||||
{translate module=invoice}
|
||||
users
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="351">
|
||||
{if $VAR.period == '' || $VAR.period == 'm'}
|
||||
{translate module=invoice}
|
||||
thismonth
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastmonth
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $VAR.period == 'w'}
|
||||
{translate module=invoice}
|
||||
thisweek
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastweek
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $VAR.period == 'y'}
|
||||
{translate module=invoice}
|
||||
thisyear
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastyear
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="189"><b>
|
||||
{$users_current}
|
||||
</b></td>
|
||||
<td width="163">
|
||||
{$users_previous}
|
||||
</td>
|
||||
<td width="141" align="center"> <b>
|
||||
{$users_change}
|
||||
</b></td>
|
||||
</tr>
|
||||
{if $show_tickets == true}
|
||||
<tr class="row1">
|
||||
<td width="163"><b>
|
||||
{translate module=invoice}
|
||||
tickets
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="351">
|
||||
{if $VAR.period == '' || $VAR.period == 'm'}
|
||||
{translate module=invoice}
|
||||
thismonth
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastmonth
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $VAR.period == 'w'}
|
||||
{translate module=invoice}
|
||||
thisweek
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastweek
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $VAR.period == 'y'}
|
||||
{translate module=invoice}
|
||||
thisyear
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastyear
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="189"><b>
|
||||
{$tickets_current}
|
||||
</b></td>
|
||||
<td width="163">
|
||||
{$tickets_previous}
|
||||
</td>
|
||||
<td width="141" align="center"> <b>
|
||||
{$tickets_change}
|
||||
</b></td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $show_affiliates == true}
|
||||
<tr class="row2">
|
||||
<td width="163"><b>
|
||||
{translate module=invoice}
|
||||
affiliatesales
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="351">
|
||||
{if $VAR.period == '' || $VAR.period == 'm'}
|
||||
{translate module=invoice}
|
||||
thismonth
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastmonth
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $VAR.period == 'w'}
|
||||
{translate module=invoice}
|
||||
thisweek
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastweek
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $VAR.period == 'y'}
|
||||
{translate module=invoice}
|
||||
thisyear
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
vs
|
||||
{/translate}
|
||||
{translate module=invoice}
|
||||
lastyear
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="189"><b>
|
||||
{ $list->format_currency_num($affiliate_sales_current, '') }
|
||||
</b></td>
|
||||
<td width="163">
|
||||
{ $list->format_currency_num($affiliate_sales_previous, '')}
|
||||
</td>
|
||||
<td width="141" align="center"> <b>
|
||||
{$affiliate_sales_change}
|
||||
</b></td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p align="center"><a href="?_page=core:admin&period=w"> </a></p>
|
||||
{/if}
|
||||
{if $smarty.const.GD}
|
||||
<p align="left"><img title="Invoice Trend" alt="[GD failed]" src="?_page=core:graphview&_escape=1&graph=invoice:compare&period={$VAR.period}"></p>
|
||||
<table width="550" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr valign="top">
|
||||
<td>
|
||||
<p> <img title="Top Users" alt="[img]" src="?_page=core:graphview&_escape=1&graph=account_admin:top&period={$VAR.period}">
|
||||
{if $list->is_installed('affiliate') }
|
||||
</p>
|
||||
<p> <img src="?_page=core:graphview&_escape=1&graph=affiliate:top&period={$VAR.period}">
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<div align="right"><img title="Top Products" alt="[img]" src="?_page=core:graphview&_escape=1&graph=product:top&period={$VAR.period}"></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
{else}
|
||||
{$block->display('account:account')}
|
||||
{/if}
|
||||
|
@@ -1,37 +1,27 @@
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width=100% border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<div align="center">
|
||||
{translate}
|
||||
alert
|
||||
{/translate}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellpadding="2">
|
||||
|
||||
|
||||
{foreach from=$alert item=alert}
|
||||
{if $alert != ''}
|
||||
<tr>
|
||||
<td class="{cycle values="row1,row2"}"><img src="themes/{$THEME_NAME}/images/icons/about_16.gif" border="0" width="16" height="16" hspace="3">
|
||||
{$alert}
|
||||
</td>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td class="table_heading">{t}Alert{/t}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellpadding="2">
|
||||
|
||||
{foreach from=$alert item=alert}
|
||||
{if $alert != ''}
|
||||
<tr>
|
||||
<td class="{cycle values="row1,row2"}"><img src="themes/{$THEME_NAME}/images/icons/about_16.gif" alt="Alert" width="16" height="16" style="border: 0px; padding-right: 5px;"/>{$alert}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<br/>
|
||||
|
@@ -1,31 +1,26 @@
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width=100% border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<div align="center">
|
||||
{translate}alert{/translate}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellpadding="2">
|
||||
{foreach from=$form_validation item=record} {assign var=$record.field value="true"}
|
||||
<tr class="{cycle values="row1,row2"}">
|
||||
<td valign="middle"><b><img src="themes/{$THEME_NAME}/images/icons/flag_16.gif" border="0" width="16" height="16" hspace="3" vspace="0">
|
||||
{$record.field_trans}
|
||||
:</b>
|
||||
{$record.error}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td class="table_heading">{t}Alert{/t}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellpadding="2">
|
||||
{foreach from=$form_validation item=recordval} {assign var=$recordval.field value='true'}
|
||||
<tr class="{cycle values='row1,row2'}">
|
||||
<td valign="middle"><b><img src="themes/{$THEME_NAME}/images/icons/flag_16.gif" alt="Alert" width="16" height="16" style="border: 0px; padding-right: 5px;"/>{$recordval.field_trans} :</b> {$recordval.error}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<div>
|
||||
<br/>
|
||||
</div>
|
||||
|
@@ -1,3 +0,0 @@
|
||||
{htmlarea}
|
||||
test
|
||||
{/htmlarea}
|
@@ -1 +1 @@
|
||||
<BR><BR><center>Sorry, the page you specified does not exist on our server!</center>
|
||||
<div style="text-align: center;">{t}Sorry, the page you specified does not exist on our server!{/t}</div>
|
||||
|
@@ -1,7 +1,8 @@
|
||||
{if ($method->error == 'auth')}
|
||||
{if $SESS_LOGGED==1}
|
||||
{else}
|
||||
{if ($method->error == 'auth')}
|
||||
{if $SESS_LOGGED!=1}
|
||||
{translate}login_required{/translate}
|
||||
{ $block->display("account:login") }
|
||||
{/if}
|
||||
{else} {$method->error} {/if}
|
||||
{$block->display('account:user_login')}
|
||||
{/if}
|
||||
{else}
|
||||
{$method->error}
|
||||
{/if}
|
||||
|
@@ -1,40 +1,34 @@
|
||||
{if $module_recent_js != FALSE}
|
||||
<form name="search_recent" method="post" action="">
|
||||
{if $module_recent_js != false}
|
||||
<form id="search_recent" method="post" action="" enctype="multipart/form-data">
|
||||
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="1" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading">
|
||||
<center>
|
||||
{translate}search_recent{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center>
|
||||
<input type="hidden" name="_page" value="module:search_show">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr class="row1" valign="top">
|
||||
<td width="65%">
|
||||
<select name="search_id" onChange="fill_search_recent(mod,fields,field_count,limit,order,s,c);">
|
||||
<option value="">...</option>
|
||||
{foreach from=$module_recent_menu item=record}
|
||||
<option value="{$record.id}">{$record.date_orig|date_format:"%B %d"} > {$record.sql|replace:"WHERE ":""|replace:"AND":"|"|replace:"%":""|replace:"'":""|truncate:70:"..."}</option>
|
||||
{/foreach}
|
||||
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="top">
|
||||
<td width="65%">
|
||||
<input type="submit" name="Submit" value="{translate}view{/translate}" class="form_button">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{$module_recent_js}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/if}
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading">{t}Your Recent Searches{/t}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr class="row1" valign="top">
|
||||
<td>
|
||||
<select name="search_id" onchange="fill_search_recent(mod,fields,field_count,limit,order,s,c);">
|
||||
<option value="">...</option>
|
||||
{foreach from=$module_recent_menu item=record}
|
||||
<option value="{$record.id}">{$record.date_orig|date_format:'%B %d'} > {$record.sql|replace:'WHERE ':''|replace:'AND':'|'|replace:'%':''|replace:"'":''|truncate:70:'...'}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="top">
|
||||
<td><input type="submit" name="Submit" value="{t}View{/t}" class="form_button"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
{$module_recent_js}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<input type="hidden" name="_page" value="module:search_show"/>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
|
@@ -1,40 +1,34 @@
|
||||
{if $module_saved_js != FALSE}
|
||||
<form name="search_saved" method="post" action="">
|
||||
{if $module_saved_js != false}
|
||||
<form id="search_saved" method="post" action="" enctype="multipart/form-data">
|
||||
|
||||
<table width=100% border="0" cellspacing="0" cellpadding="1" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading">
|
||||
<center>
|
||||
{translate}search_saved_l{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center>
|
||||
<input type="hidden" name="_page" value="module:search_show">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr class="row1" valign="top">
|
||||
<td width="65%">
|
||||
<select name="search_id" onChange="fill_search_saved(s_mod,s_fields,s_field_count,s_limit,s_order,s_s,s_c);" >
|
||||
<option value="">...</option>
|
||||
{foreach from=$module_saved_menu item=record_s}
|
||||
<option value="{$record_s.id}">{$record_s.name|capitalize}</option>
|
||||
{/foreach}
|
||||
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="top">
|
||||
<td width="65%">
|
||||
<input type="submit" name="Submit" value="{translate}view{/translate}" class="form_button">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{$module_saved_js}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<p>{/if} </p>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="table_background">
|
||||
<tr>
|
||||
<td class="table_heading">{t}Your Saved Searches{/t}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr class="row1" valign="top">
|
||||
<td>
|
||||
<select name="search_id" onchange="fill_search_saved(s_mod,s_fields,s_field_count,s_limit,s_order,s_s,s_c);">
|
||||
<option value="">...</option>
|
||||
{foreach from=$module_saved_menu item=record}
|
||||
<option value="{$record.id}">{$record.name|capitalize}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="top">
|
||||
<td><input type="submit" name="Submit" value="{t}View{/t}" class="form_button"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
{$module_saved_js}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<input type="hidden" name="_page" value="module:search_show"/>
|
||||
</div>
|
||||
</form>
|
||||
{/if}
|
||||
|
@@ -1,98 +1,59 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>{$smarty.const.SITE_NAME}</TITLE>
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
<SCRIPT 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>
|
||||
<!-- The main search engine for OSB -->
|
||||
<!-- All searchs are performed here, and a redirect to the appropriate result page is called -->
|
||||
{$method->exe($VAR.module,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
|
||||
<!-- Load the main stylesheet -->
|
||||
<link rel="stylesheet" href="themes/{$THEME_NAME}/style.css" type="text/css">
|
||||
|
||||
<!-- Load the main javascript code -->
|
||||
<SCRIPT SRC="themes/{$THEME_NAME}/top.js"></SCRIPT>
|
||||
|
||||
</HEAD>
|
||||
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="row1">
|
||||
{ $method->exe($VAR.module,"search") }
|
||||
{ if ($method->result == FALSE) }
|
||||
{ $block->display("core:method_error") }
|
||||
{else}
|
||||
{if $results > 0}
|
||||
<br>
|
||||
<br>
|
||||
<center>
|
||||
<br>
|
||||
<b>
|
||||
{translate}
|
||||
search_results
|
||||
{/translate}
|
||||
<br>
|
||||
<br>
|
||||
{translate}
|
||||
alert_refresh_click
|
||||
{/translate}
|
||||
<br>
|
||||
<br>
|
||||
{if $results == "1" && $VAR._next_page_one != "" }
|
||||
<!-- ONLY ONE RESULT -->
|
||||
<a href="?_page={$VAR.module}:{$VAR._next_page_one}&id={$record_id}{if $VAR._escape_next == "1" }&_escape=1&_escape_next=1{/if}">
|
||||
{translate}alert_click{/translate}
|
||||
</a>
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
var url = '?_page={$VAR.module}:{$VAR._next_page_one}&id={$record_id},{if $VAR._escape_next == "1" }&_escape=1&_escape_next=1{/if}';
|
||||
document.location = url;
|
||||
</SCRIPT>
|
||||
{else}
|
||||
{if $VAR._next_page == ""}
|
||||
<a href="?_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{/if}">
|
||||
{translate}alert_click{/translate}
|
||||
</a><br>
|
||||
{else}
|
||||
<a href="?_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{/if}">
|
||||
{translate}alert_click{/translate}
|
||||
</a><br>
|
||||
{/if}
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
var module= "{$VAR.module}";
|
||||
{if $VAR._next_page == ""}
|
||||
var url = '?_page='+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{/if}';
|
||||
<div style="text-align: center;">
|
||||
<br/>
|
||||
{if $results > 0}
|
||||
<b>{t}Your search has been completed sucessfully.{/t}</b><br/>
|
||||
<br/>
|
||||
{t}If this page does not automaticaly refresh within a few seconds, please click below to continue.{/t}<br/>
|
||||
<br/>
|
||||
|
||||
<!-- Only ONE result -->
|
||||
{if $results == '1' && $VAR._next_page_one != ''}
|
||||
<a href="?_page={$VAR.module}:{$VAR._next_page_one}&id={$record_id}{if $VAR._escape_next == '1'}&_escape=1&_escape_next=1{/if}">{t}Click here to continue{/t}</a>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var url = '?_page={$VAR.module}:{$VAR._next_page_one}&id={$record_id}{if $VAR._escape_next == "1"}&_escape=1&_escape_next=1{/if}';
|
||||
|
||||
document.location = url;
|
||||
//-->
|
||||
</script>
|
||||
|
||||
{else}
|
||||
{if $VAR._next_page == ''}
|
||||
<a href="?_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{/if}">{t}Click here to continue{/t}</a><br/>
|
||||
{else}
|
||||
<a href="?_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{/if}">{t}Click here to continue{/t}</a><br/>
|
||||
{/if}
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
{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{/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{/if}';
|
||||
{/if}
|
||||
|
||||
document.location = url;
|
||||
//-->
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
{else}
|
||||
var url = '?_page='+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{/if}';
|
||||
{/if}
|
||||
document.location = url;
|
||||
</SCRIPT>
|
||||
{/if}
|
||||
</b>
|
||||
</center>
|
||||
<b>
|
||||
{else}
|
||||
</b>
|
||||
<center>
|
||||
<p> </p>
|
||||
<p><b>
|
||||
{translate}
|
||||
search_no_results
|
||||
{/translate}
|
||||
</b> </p>
|
||||
<form>
|
||||
|
||||
<p> </p>
|
||||
<p>
|
||||
<input type="button" value="{translate}back{/translate}" onclick="history.back()" class="form_button">
|
||||
<input type="button" value="{translate}refresh{/translate}" onclick="location.reload()" class="form_button">
|
||||
</p>
|
||||
</form>
|
||||
</center>
|
||||
{/if}
|
||||
<b>{t}No results for your search were found.{/t}</b><br/>
|
||||
<br/>
|
||||
<input type="button" value="{t}Back{/t}" onclick="history.back()" class="form_button"/>
|
||||
<input type="button" value="{t}Refresh{/t}" onclick="location.reload()" class="form_button"/>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
{/if}
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -1,59 +1,54 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<SCRIPT 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>
|
||||
<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 SRC="themes/{$THEME_NAME}/top.js"></SCRIPT>
|
||||
|
||||
</HEAD>
|
||||
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
|
||||
{ $method->exe($VAR.module,"search") }
|
||||
{ if ($method->result == FALSE) }
|
||||
{ $block->display("core:method_error") }
|
||||
{else}
|
||||
{if $results > 0}
|
||||
<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')}
|
||||
|
||||
{if $results == "1" && $VAR._next_page_one != "" }
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
var url = '?_page={$VAR.module}:{$VAR._next_page_one}&id={$record_id},{if $VAR._escape_next == "1" }&_escape=1&_escape_next=1{/if}';
|
||||
document.location = url;
|
||||
</SCRIPT>
|
||||
{else}
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
var module= "{$VAR.module}";
|
||||
{if $VAR._next_page == ""}
|
||||
var url = '?_page='+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='+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}
|
||||
document.location = url;
|
||||
</SCRIPT>
|
||||
{/if}
|
||||
|
||||
{else}
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
var module= "{$VAR.module}";
|
||||
{if $VAR._next_page_none == ""}
|
||||
document.close();
|
||||
{else}
|
||||
var url = '?_page='+module+':{$VAR._next_page_none}&_escape=1&_escape_next=1&{$VAR.name_id1}={$VAR.val_id1}&{$VAR.name_id2}={$VAR.val_id2}';
|
||||
{/if}
|
||||
document.location = url;
|
||||
</SCRIPT>
|
||||
{/if}
|
||||
{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>
|
||||
|
23
themes/default/blocks/core/search_post.tpl
Normal file
23
themes/default/blocks/core/search_post.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
<tr class="row1" valign="top">
|
||||
<td>{t}Results per page{/t}</td>
|
||||
<td><input type="text" name="limit" size="5" value="{$field_limit}"/></td>
|
||||
</tr>
|
||||
<tr class="row1" valign="top">
|
||||
<td>{t}Order results by{/t}</td>
|
||||
<td>
|
||||
<select name="order_by">
|
||||
{foreach from=$field_list item=record}
|
||||
<option value="{$record.field}">{$record.translate}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="top">
|
||||
<td> </td>
|
||||
<td>
|
||||
<input type="submit" name="Submit" value="{t}Search{/t}" class="form_button"/>
|
||||
<input type="hidden" name="_page" value="core:search"/>
|
||||
<input type="hidden" name="module" value="{$meth.0}"/>
|
||||
<input type="hidden" name="_next_page_one" value="view"/>
|
||||
</td>
|
||||
</tr>
|
16
themes/default/blocks/core/search_show_post-1.tpl
Normal file
16
themes/default/blocks/core/search_show_post-1.tpl
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
<!-- START: {$smarty.template} -->
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{if $VAR._print != true}
|
||||
<div style="text-align: center;">
|
||||
<br/>
|
||||
<input type="submit" name="Submit" value="{t}View/Edit{/t}" onclick="mass_do('',module+':view',limit,module);" class="form_button"/>
|
||||
<input type="submit" name="Submit" value="{t}Delete{/t}" onclick="mass_do('delete',module+':search_show&search_id={$search_id}&page={$page}&order_by={$order}&{$sort}',limit,module);" class="form_button"/>
|
||||
<input type="submit" name="Submit" value="{t}Select All{/t}" onclick="all_select(record_arr);" class="form_button"/>
|
||||
<input type="submit" name="Submit" value="{t}Deselect All{/t}" onclick="all_deselect(record_arr);" class="form_button"/>
|
||||
<input type="submit" name="Submit" value="{t}Range Select{/t}" onclick="all_range_select(record_arr,limit);" class="form_button"/>
|
||||
</div>
|
||||
{/if}
|
||||
<!-- END: {$smarty.template} -->
|
20
themes/default/blocks/core/search_show_post-2.tpl
Normal file
20
themes/default/blocks/core/search_show_post-2.tpl
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
<!-- START: {$smarty.template} -->
|
||||
{if $VAR._print != true}
|
||||
<div style="text-align: center;">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5">
|
||||
<tr>
|
||||
<td valign="middle" align="center">
|
||||
<a href="javascript:all_select(record_arr);" onclick="NewWindow('ExportWin','toolbar=no,status=no,width=300,height=175','?_page=core:export_search&module={$meth.0}&_escape=1&search_id={$search_id}&page={$page}&order={$order}&sort={$sort}');"><img src="themes/{$THEME_NAME}/images/icons/exp_32.gif" alt="{t}Search Export{/t}" style="border: 0px;"/></a>
|
||||
{if $mail}
|
||||
<a href="?_page={$meth.0}:mail_multi&search_id={$search_id}"><img src="themes/{$THEME_NAME}/images/icons/mail_32.gif" alt="{t}Multi Mail{/t}" style="border: 0px;"/></a>
|
||||
{/if}
|
||||
<a href="?_page={$meth.0}:search_show&_print=true&order_by={$order}&search_id={$search_id}&limit={$limit}&page={$page}"><img src="themes/{$THEME_NAME}/images/icons/print_32.gif" alt="{t}Search Print{/t}" style="border: 0px;"/></a>
|
||||
<a href="?_page={$meth.0}:search_form"><img src="themes/{$THEME_NAME}/images/icons/srch_32.gif" alt="{t}Search New{/t}" style="border: 0px;"/></a>
|
||||
<a href="?_page={$meth.0}:add"><img src="themes/{$THEME_NAME}/images/icons/add_32.gif" alt="{osb f=tt method=add}" style="border: 0px;"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
||||
<!-- END: {$smarty.template} -->
|
33
themes/default/blocks/core/search_show_pre.tpl
Normal file
33
themes/default/blocks/core/search_show_pre.tpl
Normal file
@@ -0,0 +1,33 @@
|
||||
<!-- START: {$smarty.template} -->
|
||||
<p>{t count=$results 1=$results plural='%1 records were found.'}%1 record was found.{/t}</p>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var module = '{$meth.0}';
|
||||
{if $VAR._print == true}
|
||||
var p = '&_escape=y&_print=y';
|
||||
{else}
|
||||
var p = '';
|
||||
{/if}
|
||||
var IMAGE = '{$NONSSL_IMAGE}';
|
||||
var order = '{$order}';
|
||||
var sort1 = '{$sort}';
|
||||
var search_id = '{$search_id}';
|
||||
var page = '{$page}';
|
||||
var pages = '{$pages}';
|
||||
var results = '{$results}';
|
||||
var limit = '{$limit}';
|
||||
var record_arr = new Array({$limit});
|
||||
var i = 0;
|
||||
//-->
|
||||
</script>
|
||||
<script type="text/javascript" src="themes/{$THEME_NAME}/search.js"></script>
|
||||
|
||||
<!-- SHOW THE SEARCH NAVIGATION MENU -->
|
||||
<div style="text-align: center;"><script type="text/javascript">document.write(search_nav_top());</script></div>
|
||||
|
||||
<!-- BEGIN THE RESULTS CONTENT AREA -->
|
||||
<div id="search_results" onkeypress="key_handler(event);">
|
||||
<form id="search_show" method="post" action="" enctype="multipart/form-data">
|
||||
<!-- END: {$smarty.template} -->
|
||||
|
4
themes/default/blocks/core/search_show_tr_record.tpl
Normal file
4
themes/default/blocks/core/search_show_tr_record.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
<tr id="row{$record.id}" onclick="row_sel('{$record.id}',1);" ondblclick="window.location='?_page={$meth.0}:view&id={$record.id}';" onmouseover="row_mouseover('{$record.id}','row_mouse_over_select','row_mouse_over');" onmouseout="row_mouseout('{$record.id}','{$record._C}','row_select');" class="{$record._C}">
|
||||
<td style="text-align: center;"><input type="checkbox" id="record{$record.id}" name="record{$record.id}" value="{$record.id}" onclick="row_sel('{$record.id}',1,'{$record._C}');"/>
|
||||
<script type="text/javascript">row_sel('{$record.id}',0,'{$record._C}'); record_arr[i] = '{$record.id}'; i++; </script>
|
||||
</td>
|
@@ -1,46 +1,47 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>{$smarty.const.SITE_NAME}</TITLE>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<!--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-->
|
||||
<html>
|
||||
<head>
|
||||
<title>{$smarty.const.SITE_NAME}</title>
|
||||
<meta http-equiv="expires" content="Wed, 26 Feb 2004 08:21:57 GMT"/>
|
||||
<meta http-equiv="cache-control" content="no-cache"/>
|
||||
|
||||
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var pgescape = "&_escape=1&_escape_next=1";
|
||||
var sess_expires = "{$smarty.const.SESSION_EXPIRE}";
|
||||
var sess_expires = "{$smarty.const.SESSION_EXPIRE}";
|
||||
var cookie_name = "{$smarty.const.COOKIE_NAME}";
|
||||
var SESS = "{$SESS}";
|
||||
var SESS = "{$SESS}";
|
||||
var URL = "{$URL}";
|
||||
var SSL_URL = "{$SSL_URL}";
|
||||
var THEME_NAME = "{$THEME_NAME}";
|
||||
var REDIRECT_PAGE = "{$smarty.const.REDIRECT_PAGE}";
|
||||
var THEME_NAME = "{$THEME_NAME}";
|
||||
{if $smarty.const.REDIRECT_PAGE!='REDIRECT_PAGE' && $smarty.const.REDIRECT_PAGE!=''}document.location.href='{$smarty.const.REDIRECT_PAGE}';{/if}
|
||||
{literal}
|
||||
if(pgescape != "") {
|
||||
pgescape = "&_escape=1&_escape_next=1";
|
||||
} else {
|
||||
pgescape = "";
|
||||
}
|
||||
{/literal}
|
||||
// END -->
|
||||
</SCRIPT>
|
||||
{/literal}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<!-- Load the main stylesheet -->
|
||||
<link rel="stylesheet" href="themes/{$THEME_NAME}/iframe.css" type="text/css">
|
||||
|
||||
<link rel="stylesheet" href="themes/{$THEME_NAME}/iframe.css" type="text/css"/>
|
||||
|
||||
<!-- Load the main javascript code -->
|
||||
<SCRIPT SRC="themes/{$THEME_NAME}/top.js"></SCRIPT>
|
||||
<script type="text/javascript" src="themes/{$THEME_NAME}/top.js"></script>
|
||||
|
||||
<!-- Load the JSCalender code -->
|
||||
<link rel="stylesheet" type="text/css" media="all" href="includes/jscalendar/calendar-blue.css" title="win2k-1" />
|
||||
<link rel="stylesheet" type="text/css" media="all" href="includes/jscalendar/calendar-blue.css" title="win2k-1"/>
|
||||
<script type="text/javascript" src="includes/jscalendar/calendar_stripped.js"></script>
|
||||
<script type="text/javascript" src="includes/jscalendar/lang/calendar-{$smarty.const.LANG}.js"></script>
|
||||
<script type="text/javascript" src="includes/jscalendar/calendar-setup_stripped.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="body">
|
||||
|
||||
</HEAD>
|
||||
|
||||
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginwidth="0" marginheight="0" class="body">
|
||||
|
||||
<!-- display the alert block -->
|
||||
{if $alert}
|
||||
{ $block->display("core:alert") }
|
||||
{/if}
|
||||
<!-- display the alert block -->
|
||||
{if $alert}
|
||||
{$block->display('core:alert')}
|
||||
{/if}
|
||||
|
@@ -1,95 +1,4 @@
|
||||
<SCRIPT 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>
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
<!-- Load the main javascript code -->
|
||||
<SCRIPT SRC="themes/{$THEME_NAME}/top.js"></SCRIPT>
|
||||
|
||||
</HEAD>
|
||||
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="row1">
|
||||
{ $method->exe($VAR.module,"user_search") }
|
||||
{ if ($method->result == FALSE) }
|
||||
{ $block->display("core:method_error") }
|
||||
{else}
|
||||
{if $results > 0}
|
||||
<br>
|
||||
<br>
|
||||
<center>
|
||||
<br>
|
||||
<b>
|
||||
{translate}
|
||||
search_results
|
||||
{/translate}
|
||||
<br>
|
||||
<br>
|
||||
{translate}
|
||||
alert_refresh_click
|
||||
{/translate}
|
||||
<br>
|
||||
<br>
|
||||
{if $results == "1" && $VAR._next_page_one != "" }
|
||||
<!-- ONLY ONE RESULT -->
|
||||
<a href="?_page={$VAR.module}:{$VAR._next_page_one}&id={$record_id}{if $VAR._escape_next == "1" }&_escape=1&_escape_next=1{/if}">
|
||||
{translate}alert_click{/translate}
|
||||
</a>
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
var url = '?_page={$VAR.module}:{$VAR._next_page_one}&id={$record_id},{if $VAR._escape_next == "1" }&_escape=1&_escape_next=1{/if}';
|
||||
document.location = url;
|
||||
</SCRIPT>
|
||||
{else}
|
||||
{if $VAR._next_page == ""}
|
||||
<a href="?_page={$VAR.module}:user_search_show&search_id={$search_id}&order_by={$order_by}&limit={$limit}&page=1{if $VAR._escape_next == "1" }&_escape=1&_escape_next=1{/if}">
|
||||
{translate}alert_click{/translate}
|
||||
</a><br>
|
||||
{else}
|
||||
<a href="?_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{/if}">
|
||||
{translate}alert_click{/translate}
|
||||
</a><br>
|
||||
{/if}
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
var module= "{$VAR.module}";
|
||||
{if $VAR._next_page == ""}
|
||||
var url = '?_page='+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{/if}';
|
||||
{else}
|
||||
var url = '?_page='+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{/if}';
|
||||
{/if}
|
||||
document.location = url;
|
||||
</SCRIPT>
|
||||
{/if}
|
||||
</b>
|
||||
</center>
|
||||
<b>
|
||||
{elseif $VAR._next_page_none != "" && $results == 10 }
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
var module= "{$VAR.module}";
|
||||
var url = '?_page='+module+':{$VAR._next_page_none}&{$VAR.name_id1}={$VAR.val_id1}&{$VAR.name_id2}={$VAR.val_id2}';
|
||||
document.location = url;
|
||||
</SCRIPT>
|
||||
{else}
|
||||
</b>
|
||||
<center>
|
||||
<p> </p>
|
||||
<p><h3>
|
||||
{translate}
|
||||
search_no_results
|
||||
{/translate}
|
||||
</h3> </p>
|
||||
<form>
|
||||
|
||||
<p> </p>
|
||||
<p>
|
||||
<input type="button" value="{translate}back{/translate}" onclick="history.back()" class="form_button">
|
||||
<input type="button" value="{translate}refresh{/translate}" onclick="location.reload()" class="form_button">
|
||||
</p>
|
||||
</form>
|
||||
</center>
|
||||
{/if}
|
||||
{/if}
|
||||
{include file='file:search.tpl'}
|
||||
|
33
themes/default/blocks/core/user_search_show_pre.tpl
Normal file
33
themes/default/blocks/core/user_search_show_pre.tpl
Normal file
@@ -0,0 +1,33 @@
|
||||
<!-- START: {$smarty.template} -->
|
||||
<p>{t count=$results 1=$results plural='%1 records were found.'}%1 record was found.{/t}</p>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var module = '{$meth.0}';
|
||||
{if $VAR._print == true}
|
||||
var p = '&_escape=y&_print=y';
|
||||
{else}
|
||||
var p = '';
|
||||
{/if}
|
||||
var IMAGE = '{$NONSSL_IMAGE}';
|
||||
var order = '{$order}';
|
||||
var sort1 = '{$sort}';
|
||||
var search_id = '{$search_id}';
|
||||
var page = '{$page}';
|
||||
var pages = '{$pages}';
|
||||
var results = '{$results}';
|
||||
var limit = '{$limit}';
|
||||
var record_arr = new Array({$limit});
|
||||
var i = 0;
|
||||
//-->
|
||||
</script>
|
||||
<script type="text/javascript" src="themes/{$THEME_NAME}/user_search.js"></script>
|
||||
|
||||
<!-- SHOW THE SEARCH NAVIGATION MENU -->
|
||||
<div style="text-align: center;"><script type="text/javascript">document.write(search_nav_top());</script></div>
|
||||
|
||||
<!-- BEGIN THE RESULTS CONTENT AREA -->
|
||||
<div id="search_results" onkeypress="key_handler(event);">
|
||||
<form id="search_show" method="post" action="" enctype="multipart/form-data">
|
||||
<!-- END: {$smarty.template} -->
|
||||
|
@@ -0,0 +1,4 @@
|
||||
<tr id="row{$record.id}" onclick="row_sel('{$record.id}',1);" ondblclick="window.location='?_page={$meth.0}:user_view&id={$record.id}';" onmouseover="row_mouseover('{$record.id}','row_mouse_over_select','row_mouse_over');" onmouseout="row_mouseout('{$record.id}','{$record._C}','row_select');" class="{$record._C}">
|
||||
<td style="text-align: center;"><input type="checkbox" name="record{$record.id}" value="{$record.id}" onclick="row_sel('{$record.id}',1,'{$record._C}');"/>
|
||||
<script type="text/javascript">row_sel('{$record.id}',0,'{$record._C}'); record_arr[i] = '{$record.id}'; i++; </script>
|
||||
</td>
|
7
themes/default/blocks/core/user_view_pre.tpl
Normal file
7
themes/default/blocks/core/user_view_pre.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
<script type="text/javascript">
|
||||
var module = '{$meth.0}';
|
||||
var locations = '{$VAR.module_id}';
|
||||
var id = '{$VAR.id}';
|
||||
var ids = '{$VAR.ids}';
|
||||
</script>
|
||||
<script type="text/javascript" src="themes/{$THEME_NAME}/user_view.js"></script>
|
8
themes/default/blocks/core/view_post.tpl
Normal file
8
themes/default/blocks/core/view_post.tpl
Normal file
@@ -0,0 +1,8 @@
|
||||
<div>
|
||||
<input type="hidden" name="_page" value="{$meth.0}:{$meth.1}"/>
|
||||
<input type="hidden" name="_page_current" value="{$meth.0}:{$meth.1}"/>
|
||||
<input type="hidden" name="do[]" value="{$meth.0}:update"/>
|
||||
<input type="hidden" name="id" value="{$VAR.id}"/>
|
||||
<input type="hidden" name="{$meth.0}_date_last" value="{$smarty.now}"/>
|
||||
<input type="hidden" name="{$meth.0}_id" value="{$record.id}"/>
|
||||
</div>
|
7
themes/default/blocks/core/view_pre.tpl
Normal file
7
themes/default/blocks/core/view_pre.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
<script type="text/javascript">
|
||||
var module = '{$meth.0}';
|
||||
var locations = '{$VAR.module_id}';
|
||||
var id = '{$VAR.id}';
|
||||
var ids = '{$VAR.ids}';
|
||||
</script>
|
||||
<script type="text/javascript" src="themes/{$THEME_NAME}/view.js"></script>
|
4
themes/default/blocks/core/view_td_delete.tpl
Normal file
4
themes/default/blocks/core/view_td_delete.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
<td style="text-align: right;">
|
||||
<script type="text/javascript" src="themes/{$THEME_NAME}/delete_record.js"></script>
|
||||
<input type="button" name="delete" value="{t}Delete{/t}" class="form_button" onclick="delete_record('{$record.id}','{$VAR.id}','{t}Are you sure you wish to delete this record?{/t}');"/>
|
||||
</td>
|
1
themes/default/blocks/core/view_td_submit.tpl
Normal file
1
themes/default/blocks/core/view_td_submit.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<td style="text-align: left;"><input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/></td>
|
11
themes/default/blocks/core/view_tr_submit_delete.tpl
Normal file
11
themes/default/blocks/core/view_tr_submit_delete.tpl
Normal file
@@ -0,0 +1,11 @@
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="6" cellpadding="1" class="row1">
|
||||
<tr class="row1">
|
||||
{include file='file:../core/view_td_submit.tpl'}
|
||||
{include file='file:../core/view_td_delete.tpl'}
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user