Initial Commit of AgileBill Open Source
This commit is contained in:
448
themes/default/blocks/core/admin.tpl
Normal file
448
themes/default/blocks/core/admin.tpl
Normal file
@@ -0,0 +1,448 @@
|
||||
{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}
|
||||
|
37
themes/default/blocks/core/alert.tpl
Normal file
37
themes/default/blocks/core/alert.tpl
Normal file
@@ -0,0 +1,37 @@
|
||||
<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>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
31
themes/default/blocks/core/alert_fields.tpl
Normal file
31
themes/default/blocks/core/alert_fields.tpl
Normal file
@@ -0,0 +1,31 @@
|
||||
<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>
|
||||
<br>
|
1
themes/default/blocks/core/blank.tpl
Normal file
1
themes/default/blocks/core/blank.tpl
Normal file
@@ -0,0 +1 @@
|
||||
{if $VAR._page != "core:blank"}{/if}
|
18
themes/default/blocks/core/bottom_print.tpl
Normal file
18
themes/default/blocks/core/bottom_print.tpl
Normal file
@@ -0,0 +1,18 @@
|
||||
{literal}
|
||||
<SCRIPT LANGUAGE=\"JavaScript\">
|
||||
<!-- Begin
|
||||
if (window.print) {
|
||||
agree = confirm('{/literal}{translate}alert_print{/translate}{literal}');
|
||||
|
||||
if (agree) {
|
||||
window.print();
|
||||
}
|
||||
else
|
||||
{
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
// End -->
|
||||
</script>
|
||||
|
||||
{/literal}
|
34
themes/default/blocks/core/debug.tpl
Normal file
34
themes/default/blocks/core/debug.tpl
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="160" valign="top"> <img src="themes/{$THEME_NAME}/images/invisible.gif" width="160" height="1">
|
||||
</td>
|
||||
<td width="1" bgcolor="#CCCCCC"> <img src="themes/{$THEME_NAME}/images/invisible.gif" width="1" height="1"><br>
|
||||
</td>
|
||||
<td valign="top" width="600">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="8">
|
||||
<tr>
|
||||
<td valign="middle" class="body" align="center"> <font color="#999999">CPU
|
||||
time used:
|
||||
{$smarty.const.EXECUTION_TIME|truncate:5:""}
|
||||
|
||||
SQL Queries Used:
|
||||
{$smarty.const.SQL_QUERIES}
|
||||
</font> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<img src="themes/{$THEME_NAME}/images/invisible.gif" width="575" height="1">
|
||||
</td>
|
||||
<td width="1" bgcolor="#CCCCCC"> <img src="themes/{$THEME_NAME}/images/invisible.gif" width="1" height="1"><br>
|
||||
</td>
|
||||
<td width="50%"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="160" valign="top"></td>
|
||||
<td width="1" bgcolor="#CCCCCC"></td>
|
||||
<td height="1" width="600" bgcolor="#CCCCCC"><img src="themes/{$THEME_NAME}/images/invisible.gif" width="1" height="1"></td>
|
||||
<td width="1" bgcolor="#CCCCCC"></td>
|
||||
<td width="50%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
44
themes/default/blocks/core/error.tpl
Normal file
44
themes/default/blocks/core/error.tpl
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
<title>Site Under Maintenance</title>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
body,td,th {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 12px;
|
||||
}
|
||||
body {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.style2 {
|
||||
font-size: 16;
|
||||
font-weight: bold;
|
||||
}
|
||||
.style4 {
|
||||
font-size: 18px;
|
||||
color: #0033FF;
|
||||
}
|
||||
.style5 {color: #666666}
|
||||
.style6 {color: #333333}
|
||||
-->
|
||||
</style></head>
|
||||
|
||||
<body>
|
||||
<div align="center">
|
||||
<br />
|
||||
<table width="500" border="1" cellpadding="10" cellspacing="3" bordercolor="#C1DAFF">
|
||||
<tr>
|
||||
<td bgcolor="#CCCCCC"><div align="center"><span class="style2"><span class="style4">Site Maintenance</span><br />
|
||||
</span><span class="style5"><br />
|
||||
<span class="style6">Thank you for visiting! <br />
|
||||
<br />
|
||||
We are presently conducting scheduled site maintenance. <br />
|
||||
<br />
|
||||
Our site will operational again very shortly so please check back soon.</span></span></div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
119
themes/default/blocks/core/export_search.tpl
Normal file
119
themes/default/blocks/core/export_search.tpl
Normal file
@@ -0,0 +1,119 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<link rel="stylesheet" href="themes/{$THEME_NAME}/style.css" type="text/css">
|
||||
<title>Export Search Results</title></HEAD>
|
||||
<body class="body">
|
||||
<p>
|
||||
{literal}
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
function export_start()
|
||||
{
|
||||
var module = document.export1.module.value;
|
||||
var format = document.export1.format.value;
|
||||
var type = document.export1.type.value;
|
||||
var search_id = document.export1.search_id.value;
|
||||
var page = document.export1.page.value;
|
||||
var order_by = document.export1.order_by.value;
|
||||
var sort1 = document.export1.sort1.value;
|
||||
var win = 'ExportSearch' + format;
|
||||
var COOKIE_URL = '{/literal}{literal}';
|
||||
var settings = 'height=800, width=800, resizable=no, toolbar=yes, status=yes';
|
||||
var url = '?_escape=&_page=core:export_search_'+type+'&type='+type+'&format='+format+'&module='+module+'&search_id='+search_id+'&page='+page+'&order_by='+order_by+'&_escape=1&_escape_next=1&'+sort1 + COOKIE_URL;
|
||||
|
||||
document.location = url;
|
||||
//window.close();
|
||||
}
|
||||
// END -->
|
||||
</SCRIPT>
|
||||
{/literal}
|
||||
<form name="export1" method="post" action="">
|
||||
|
||||
|
||||
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="body">
|
||||
<tr>
|
||||
<td width="72%"><b>
|
||||
{translate}
|
||||
export_format
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="72%" valign="top"><b>
|
||||
<select name="format" >
|
||||
<option value="excel">
|
||||
{translate}
|
||||
export_format_excel
|
||||
{/translate}
|
||||
</option>
|
||||
{if $VAR.module == "invoice"}
|
||||
<option value="pdf">
|
||||
{translate}
|
||||
export_format_pdf
|
||||
{/translate}
|
||||
</option>
|
||||
{/if}
|
||||
<option value="csv">
|
||||
{translate}
|
||||
export_format_csv
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="tab">
|
||||
{translate}
|
||||
export_format_tab
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="xml">
|
||||
{translate}
|
||||
export_format_xml
|
||||
{/translate}
|
||||
</option>
|
||||
</select>
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="72%" valign="top"> <b>
|
||||
{translate}
|
||||
export_pages
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="72%" valign="top">
|
||||
<select name="page" >
|
||||
<option value="0" selected>
|
||||
{translate}
|
||||
export_pages_all
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="{$VAR.page}">
|
||||
{translate}
|
||||
export_pages_current
|
||||
{/translate}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="hidden" name="module" value="{$VAR.module}">
|
||||
<input type="hidden" name="search_id" value="{$VAR.search_id}">
|
||||
<input type="hidden" name="order_by" value="{$VAR.order}">
|
||||
<input type="hidden" name="sort1" value="{$VAR.sort}">
|
||||
<input type="hidden" name="type" value="display">
|
||||
<input type="hidden" name="_escape" value="1">
|
||||
<input type="hidden" name="_escape_next" value="1">
|
||||
|
||||
</form>
|
||||
<table width="50" border="0" cellspacing="0" cellpadding="5" align="center">
|
||||
<tr>
|
||||
<td><a href="#" onClick="export_start()">
|
||||
<input type="image" src="themes/{$THEME_NAME}/images/icons/forwd_24.gif" onClick="export_start()" name="image2">
|
||||
</a> </td>
|
||||
<td>
|
||||
<div align="right"><a href="#" onClick="export_start()">
|
||||
<input type="image" src="themes/{$THEME_NAME}/images/icons/cancl_24.gif" onClick="window.close()" name="image">
|
||||
</a></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
4
themes/default/blocks/core/export_search_display.tpl
Normal file
4
themes/default/blocks/core/export_search_display.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
{ $method->exe($VAR.module,"search_export") }
|
||||
{ if ($method->result == FALSE) }
|
||||
{ $block->display("core:method_error") }
|
||||
{/if}
|
4
themes/default/blocks/core/export_search_download.tpl
Normal file
4
themes/default/blocks/core/export_search_download.tpl
Normal file
@@ -0,0 +1,4 @@
|
||||
{ $method->exe($VAR.module,"search_export") }
|
||||
{ if ($method->result == FALSE) }
|
||||
{ $block->display("core:method_error") }
|
||||
{/if}
|
1
themes/default/blocks/core/graph.tpl
Normal file
1
themes/default/blocks/core/graph.tpl
Normal file
@@ -0,0 +1 @@
|
||||
{ $list->bar_graph() }
|
1
themes/default/blocks/core/graphview.tpl
Normal file
1
themes/default/blocks/core/graphview.tpl
Normal file
@@ -0,0 +1 @@
|
||||
{ $list->graphview() }
|
3
themes/default/blocks/core/group.tpl
Normal file
3
themes/default/blocks/core/group.tpl
Normal file
@@ -0,0 +1,3 @@
|
||||
{group id=1 msg="Sorry, you are not authorized for this area"}
|
||||
Your html, javascript, images, etc., are placed here for protection within the smarty templates...
|
||||
{/group}
|
3
themes/default/blocks/core/htmlarea.tpl
Normal file
3
themes/default/blocks/core/htmlarea.tpl
Normal file
@@ -0,0 +1,3 @@
|
||||
{htmlarea}
|
||||
test
|
||||
{/htmlarea}
|
87
themes/default/blocks/core/import.tpl
Normal file
87
themes/default/blocks/core/import.tpl
Normal file
@@ -0,0 +1,87 @@
|
||||
{ if $list->auth_method_by_name($VAR.module,"import") }
|
||||
<form name="form1" method="post" action="" enctype="multipart/form-data">
|
||||
<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="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row1">
|
||||
<td width="43%">Upload: </td>
|
||||
<td width="57%">
|
||||
<input type="file" name="file" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="43%">Type:</td>
|
||||
<td width="57%">
|
||||
<select name="type" >
|
||||
<option value="csv">CSV</option>
|
||||
<option value="tab">TAB</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="43%"> </td>
|
||||
<td width="57%">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="core:import2">
|
||||
<input type="hidden" name="module" value="{$VAR.module}">
|
||||
<input type="hidden" name="filetype" value="upload">
|
||||
<input type="hidden" name="do[]" value="{$VAR.module}:import">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br>
|
||||
<form name="form1" method="post" action="">
|
||||
<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="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row1">
|
||||
<td width="43%">Enter Filename: (in the /includes/files/ directory)</td>
|
||||
<td width="57%">
|
||||
<input type="text" name="file" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="43%">Type:</td>
|
||||
<td width="57%">
|
||||
<select name="type" >
|
||||
<option value="csv">CSV</option>
|
||||
<option value="tab">TAB</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="43%"> </td>
|
||||
<td width="57%">
|
||||
<input type="submit" name="Submit2" value="{translate}submit{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="core:import2">
|
||||
<input type="hidden" name="module" value="{$VAR.module}">
|
||||
<input type="hidden" name="filetype" value="local">
|
||||
<input type="hidden" name="do[]" value="{$VAR.module}:import">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{else}
|
||||
Not authorized!
|
||||
{/if}
|
64
themes/default/blocks/core/import2.tpl
Normal file
64
themes/default/blocks/core/import2.tpl
Normal file
@@ -0,0 +1,64 @@
|
||||
{ if $list->auth_method_by_name($VAR.module,"import") }
|
||||
{if $rows > 0 }
|
||||
<form name="form1" method="post" action="" enctype="multipart/form-data">
|
||||
Ready to import {$rows} rows of data to the {$VAR.module} module:<br>
|
||||
<br>
|
||||
<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="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="3" class="row1">
|
||||
{foreach from=$columns item=column}
|
||||
<tr valign="top" class="row1">
|
||||
<td width="45%">Column
|
||||
{$column.idx}
|
||||
, Sample Data: <u>
|
||||
{$column.sample|truncate:15}
|
||||
</u> </td>
|
||||
<td width="55%">
|
||||
<select name="import_field[{$column.idx}]" class=form_menu>
|
||||
{html_options options=$fields selected=0}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
<tr valign="top">
|
||||
<td width="45%"> </td>
|
||||
<td width="55%">
|
||||
<div align="right"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="45%">Import Type:</td>
|
||||
<td width="55%">
|
||||
<input type="radio" name="import_type" value="db" checked>
|
||||
Update Database
|
||||
<input type="radio" name="import_type" value="dl">
|
||||
Download SQL commands</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="45%"> </td>
|
||||
<td width="55%">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="core:blank">
|
||||
<input type="hidden" name="do[]" value="{$VAR.module}:import">
|
||||
<input type="hidden" name="confirm" value="1">
|
||||
<input type="hidden" name="file" value="{$file}">
|
||||
<input type="hidden" name="type" value="{$VAR.type}">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br>
|
||||
{/if}
|
||||
{else}
|
||||
Not authorized!
|
||||
{/if}
|
71
themes/default/blocks/core/import2_new.tpl
Normal file
71
themes/default/blocks/core/import2_new.tpl
Normal file
@@ -0,0 +1,71 @@
|
||||
{ if $list->auth_method_by_name($VAR.module,"import") }
|
||||
<form name="form1" method="post" action="" enctype="multipart/form-data">
|
||||
<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="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row1">
|
||||
<td colspan="3"><b>Step 3. Please define the field mappings for the import.</b><br><br>
|
||||
For each field below, either enter a value to import always in to the field in the Constant Value Mapping, or
|
||||
select one of the fields to map from the Field Import Mapping.<br><br>
|
||||
<i>There are {$rows} records in the file.</i>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"> </td>
|
||||
</tr>
|
||||
<tr valign="top" class="table_heading">
|
||||
<td width="33%">Field Name</td>
|
||||
<td width="33%">
|
||||
Field Import Mapping
|
||||
</td>
|
||||
<td width="33%">
|
||||
Constant Value Mapping
|
||||
</td>
|
||||
</tr>
|
||||
{section name=cur loop=$fields_array}
|
||||
<tr valign="top" class="row1">
|
||||
<td width="33%">{$fields_array[cur].field}: </td>
|
||||
<td width="33%">
|
||||
<select name="import_select[{$fields_array[cur].field}]">
|
||||
{html_options options=$fields_array[cur].options selected=$fields_array[cur].selected}
|
||||
</select>
|
||||
</td>
|
||||
<td width="33%">
|
||||
{if $fields_array[cur].type ne "select"}
|
||||
<input type="text" name="import_constant[{$fields_array[cur].field}]" value="" >
|
||||
{else}--- {/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/section}
|
||||
|
||||
|
||||
<tr valign="top">
|
||||
<td width="33%"> </td>
|
||||
<td width="33%">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="core:import2_new">
|
||||
<input type="hidden" name="module" value="{$VAR.module}">
|
||||
<input type="hidden" name="filetype" value="upload">
|
||||
<input type="hidden" name="confirm" value="yes">
|
||||
<input type="hidden" name="file" value="{$file}">
|
||||
<input type="hidden" name="type" value="{$type}">
|
||||
<input type="hidden" name="import_type" value="db">
|
||||
<input type="hidden" name="do[]" value="{$VAR.module}:import">
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{else}
|
||||
Not authorized!
|
||||
{/if}
|
56
themes/default/blocks/core/import_new.tpl
Normal file
56
themes/default/blocks/core/import_new.tpl
Normal file
@@ -0,0 +1,56 @@
|
||||
{ if $list->auth_method_by_name($VAR.module,"import") }
|
||||
<form name="form1" method="post" action="" enctype="multipart/form-data">
|
||||
<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="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row1">
|
||||
<td colspan="2"><b>Step 1. Please select the file you wish to import.</b></td>
|
||||
</tr>
|
||||
<tr valign="top" class="row1">
|
||||
<td width="43%">File to upload: </td>
|
||||
<td width="57%">
|
||||
<input type="file" name="file" >
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr valign="top" class="row1">
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
|
||||
<tr valign="top" class="row1">
|
||||
<td colspan="2"><b>Step 2. Please select the file type below.</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="43%">File Type:</td>
|
||||
<td width="57%">
|
||||
<select name="type" >
|
||||
<option value="csv">CSV</option>
|
||||
<option value="tab">TAB</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="43%"> </td>
|
||||
<td width="57%">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="core:import2_new">
|
||||
<input type="hidden" name="module" value="{$VAR.module}">
|
||||
<input type="hidden" name="filetype" value="upload">
|
||||
<input type="hidden" name="do[]" value="{$VAR.module}:import">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{else}
|
||||
Not authorized!
|
||||
{/if}
|
1
themes/default/blocks/core/invalid_page.tpl
Normal file
1
themes/default/blocks/core/invalid_page.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<BR><BR><center>Sorry, the page you specified does not exist on our server!</center>
|
6
themes/default/blocks/core/language.tpl
Normal file
6
themes/default/blocks/core/language.tpl
Normal file
@@ -0,0 +1,6 @@
|
||||
<center>
|
||||
<form name="form1" method="post" action="">
|
||||
{ $list->menu_files("", "lid", $smarty.const.SESS_LANGUAGE, "language", "", "_core.xml", "form_menu") }
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
</form>
|
||||
</center>
|
18
themes/default/blocks/core/logout.tpl
Normal file
18
themes/default/blocks/core/logout.tpl
Normal file
@@ -0,0 +1,18 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>{translate}alert_session_timeout{/translate}</TITLE>
|
||||
<link rel="stylesheet" href="themes/{$THEME_NAME}/style.css" type="text/css">
|
||||
{literal}
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
ident=window.setTimeout("window.close()",10000);
|
||||
// END -->
|
||||
</SCRIPT>
|
||||
{/literal}
|
||||
</HEAD>
|
||||
<BODY class="row1">
|
||||
<center>
|
||||
<br>{translate}logout_notify{/translate}<br>
|
||||
</center>
|
||||
</BODY>
|
||||
</HTML>
|
7
themes/default/blocks/core/method_error.tpl
Normal file
7
themes/default/blocks/core/method_error.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
{if ($method->error == 'auth')}
|
||||
{if $SESS_LOGGED==1}
|
||||
{else}
|
||||
{translate}login_required{/translate}
|
||||
{ $block->display("account:login") }
|
||||
{/if}
|
||||
{else} {$method->error} {/if}
|
53
themes/default/blocks/core/popup_list_search.tpl
Normal file
53
themes/default/blocks/core/popup_list_search.tpl
Normal file
@@ -0,0 +1,53 @@
|
||||
{ $method->exe($VAR.module,"search") }
|
||||
{ if ($method->result == FALSE) }
|
||||
{ $block->display("core:method_error") }
|
||||
{else}
|
||||
{if $results > 0}
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>{$smarty.const.SITE_NAME}</TITLE>
|
||||
|
||||
<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>
|
||||
|
||||
<!-- Load the main javascript code -->
|
||||
<SCRIPT SRC="themes/{$THEME_NAME}/top.js"></SCRIPT>
|
||||
|
||||
<link rel="stylesheet" href="themes/{$THEME_NAME}/style.css" type="text/css">
|
||||
</HEAD>
|
||||
<BODY class="row1">
|
||||
<center>
|
||||
<br>
|
||||
{translate}search_results{/translate}
|
||||
<br>
|
||||
{translate}alert_refresh_click{/translate}
|
||||
<br>
|
||||
<br>
|
||||
<a href="?_page={$VAR.module}:popup_list_show&search_id={$search_id}&order_by={$order_by}&limit={$limit}&page=1&_escape=true&field_name={$VAR.field_name}">{translate}alert_click{/translate}</a><br>
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
var module= "{$VAR.module}";
|
||||
var delay = 0;
|
||||
var url = '?_page='+module+':popup_list_show&search_id={$search_id}&order_by={$order_by}&limit={$limit}&page=1&_escape=true&field_name={$VAR.field_name}';
|
||||
refresh(delay,url);
|
||||
</SCRIPT>
|
||||
</center>
|
||||
<center>
|
||||
{translate}search_no_results{/translate}
|
||||
<form>
|
||||
<input type="button" value="{translate}window_close{/translate}" onclick="window.close()" class="form_button">
|
||||
</form>
|
||||
</center>
|
||||
{/if}
|
||||
{/if}
|
||||
</BODY>
|
||||
|
||||
|
40
themes/default/blocks/core/recent_searches.tpl
Normal file
40
themes/default/blocks/core/recent_searches.tpl
Normal file
@@ -0,0 +1,40 @@
|
||||
{if $module_recent_js != FALSE}
|
||||
<form name="search_recent" method="post" action="">
|
||||
|
||||
<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}
|
61
themes/default/blocks/core/save_search.tpl
Normal file
61
themes/default/blocks/core/save_search.tpl
Normal file
@@ -0,0 +1,61 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>{translate}search_save{/translate}</TITLE>
|
||||
<link rel="stylesheet" href="themes/{$THEME_NAME}/style.css" type="text/css">
|
||||
{literal}<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
// MINI WINDOW CONTROLLER
|
||||
function search_save(search_id,module)
|
||||
{
|
||||
var search_id = document.savesearch.search_id.value;
|
||||
var module = document.savesearch.module.value;
|
||||
var save_name = document.savesearch.save_name.value;
|
||||
if(save_name == '')
|
||||
{
|
||||
alert('You must enter a nickname for this saved search!');
|
||||
return;
|
||||
}
|
||||
var url = '?_page=core:save_search_done&_escape=&do[]='+module+'&search_id='+search_id+'&save_name='+save_name;
|
||||
settings = 'toolbar=no,status=no,width=200,height=150';
|
||||
NewWindow('SearchSavedWindow',settings,url);
|
||||
|
||||
// close the current window
|
||||
window.close();
|
||||
}
|
||||
|
||||
// MINI WINDOW CONTROLLER
|
||||
function NewWindow(win,settings,url)
|
||||
{
|
||||
var eval1;
|
||||
eval1 = win + '=window.open("' + url + '","' + win + '","' + settings + '");';
|
||||
eval(eval1);
|
||||
}
|
||||
|
||||
// END -->
|
||||
</SCRIPT>{/literal}
|
||||
</HEAD>
|
||||
<form name="savesearch" method="post" action="" >
|
||||
<p>{translate}search_save_nickname{/translate}<br>
|
||||
<a href="#" onClick="export_start()"> </a>
|
||||
<input type="hidden" name="module" value="{$VAR.module}">
|
||||
<input type="hidden" name="search_id" value="{$VAR.search_id}">
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="text" name="save_name" >
|
||||
<a href="#" onClick="export_start()"> </a> <a href="#" onClick="export_start()">
|
||||
</a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#" onClick="export_start()">
|
||||
<input type="submit" name="Submit" value="{translate}search_save{/translate}" onClick="search_save();" class="form_button">
|
||||
</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="button" name="cancel" value="{translate}cancel{/translate}" onClick="window.close()" class="form_button">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
19
themes/default/blocks/core/save_search_done.tpl
Normal file
19
themes/default/blocks/core/save_search_done.tpl
Normal file
@@ -0,0 +1,19 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>{translate}search_save{/translate}</TITLE>
|
||||
<link rel="stylesheet" href="themes/{$THEME_NAME}/style.css" type="text/css">
|
||||
{literal}
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
ident=window.setTimeout("window.close()",1500);
|
||||
// END -->
|
||||
</SCRIPT>
|
||||
{/literal}
|
||||
</HEAD>
|
||||
<BODY class="row1">
|
||||
<center>
|
||||
{translate}search_saved{/translate}<br>
|
||||
<br>
|
||||
<a href="#" onClick="window.close();">{translate}close{/translate}</a>
|
||||
</center>
|
||||
</BODY>
|
40
themes/default/blocks/core/saved_searches.tpl
Normal file
40
themes/default/blocks/core/saved_searches.tpl
Normal file
@@ -0,0 +1,40 @@
|
||||
{if $module_saved_js != FALSE}
|
||||
<form name="search_saved" method="post" action="">
|
||||
|
||||
<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>
|
98
themes/default/blocks/core/search.tpl
Normal file
98
themes/default/blocks/core/search.tpl
Normal file
@@ -0,0 +1,98 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>{$smarty.const.SITE_NAME}</TITLE>
|
||||
|
||||
<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>
|
||||
|
||||
<!-- 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}';
|
||||
{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}
|
||||
{/if}
|
||||
</body>
|
||||
</html>
|
59
themes/default/blocks/core/search_iframe.tpl
Normal file
59
themes/default/blocks/core/search_iframe.tpl
Normal file
@@ -0,0 +1,59 @@
|
||||
<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>
|
||||
|
||||
<!-- 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}
|
||||
|
||||
{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}
|
||||
</body>
|
||||
</html>
|
22
themes/default/blocks/core/sess_renew.tpl
Normal file
22
themes/default/blocks/core/sess_renew.tpl
Normal file
@@ -0,0 +1,22 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>{translate}alert_session_timeout{/translate}</TITLE>
|
||||
<link rel="stylesheet" href="themes/{$THEME_NAME}/style.css" type="text/css">
|
||||
{literal}
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
ident=window.setTimeout("window.close()",2000);
|
||||
// END -->
|
||||
</SCRIPT>
|
||||
{/literal}
|
||||
</HEAD>
|
||||
<BODY class="row1">
|
||||
<center>
|
||||
<br>
|
||||
{translate}login_renewed{/translate}
|
||||
<br>
|
||||
<br>
|
||||
<a href="#" onClick="window.close();">{translate}close{/translate}</a>
|
||||
<br>
|
||||
</center>
|
||||
</BODY>
|
51
themes/default/blocks/core/sess_timeout.tpl
Normal file
51
themes/default/blocks/core/sess_timeout.tpl
Normal file
@@ -0,0 +1,51 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>{translate}alert_session_timeout{/translate}</TITLE>
|
||||
<link rel="stylesheet" href="themes/{$THEME_NAME}/style.css" type="text/css">
|
||||
{literal}
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
ident=window.setTimeout("sess_logout()",60000);
|
||||
|
||||
// Logout the current session:
|
||||
function sess_logout()
|
||||
{
|
||||
var url = '?_page=core:logout&_logout=true&_escape=true';
|
||||
var win = 'SessLogoutWin';
|
||||
var settings = 'toolbar=no,status=no,width=200,height=200';
|
||||
NewWindow(win,settings,url);
|
||||
window.close();
|
||||
}
|
||||
|
||||
// Keep the current session active:
|
||||
function sess_renew()
|
||||
{
|
||||
var url = '?_page=core:sess_renew&_escape=true';
|
||||
var win = 'SessLogoutWin';
|
||||
var settings = 'toolbar=no,status=no,width=200,height=200';
|
||||
NewWindow(win,settings,url);
|
||||
window.close();
|
||||
}
|
||||
|
||||
// MINI WINDOW CONTROLLER
|
||||
function NewWindow(win,settings,url)
|
||||
{
|
||||
var eval1;
|
||||
eval1 = win + '=window.open("' + url + '","' + win + '","' + settings + '");';
|
||||
eval(eval1);
|
||||
}
|
||||
// END -->
|
||||
</SCRIPT>
|
||||
{/literal}
|
||||
</HEAD>
|
||||
<BODY class="row1">
|
||||
<center>
|
||||
{translate}login_sess_timeout{/translate}<br>
|
||||
<br>
|
||||
<a href="#" onClick="sess_logout();">{translate}logout{/translate}</a><br>
|
||||
<br>
|
||||
<a href="#" onClick="sess_renew();">{translate}login_renew{/translate}</a><br>
|
||||
<br>
|
||||
</center>
|
||||
</BODY>
|
||||
</HTML>
|
1
themes/default/blocks/core/test.tpl
Normal file
1
themes/default/blocks/core/test.tpl
Normal file
@@ -0,0 +1 @@
|
||||
{group id=1 msg="Sorry, you are not authorized!"} some text {/group}
|
46
themes/default/blocks/core/top_clean.tpl
Normal file
46
themes/default/blocks/core/top_clean.tpl
Normal file
@@ -0,0 +1,46 @@
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>{$smarty.const.SITE_NAME}</TITLE>
|
||||
|
||||
|
||||
<SCRIPT LANGUAGE="JavaScript">
|
||||
<!-- START
|
||||
var pgescape = "&_escape=1&_escape_next=1";
|
||||
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}";
|
||||
{literal}
|
||||
if(pgescape != "") {
|
||||
pgescape = "&_escape=1&_escape_next=1";
|
||||
} else {
|
||||
pgescape = "";
|
||||
}
|
||||
{/literal}
|
||||
// END -->
|
||||
</SCRIPT>
|
||||
|
||||
<!-- Load the main stylesheet -->
|
||||
<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>
|
||||
|
||||
<!-- Load the JSCalender code -->
|
||||
<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 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}
|
1
themes/default/blocks/core/url.tpl
Normal file
1
themes/default/blocks/core/url.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<iframe src="{$VAR.url}" style="border:0px; width:600px; height:600px;" scrolling="auto" ALLOWTRANSPARENCY="true" frameborder="0"></iframe>
|
95
themes/default/blocks/core/user_search.tpl
Normal file
95
themes/default/blocks/core/user_search.tpl
Normal file
@@ -0,0 +1,95 @@
|
||||
<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>
|
||||
|
||||
<!-- 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}
|
Reference in New Issue
Block a user