Changes to AgileBill
This commit is contained in:
@@ -1,183 +1,78 @@
|
||||
{ $method->exe("session","search_form") }
|
||||
{ if ($method->result == FALSE) }
|
||||
{ $block->display("core:method_error") }
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
<form name="session_search" 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="table_heading">
|
||||
<div align="center">
|
||||
{translate module=session}
|
||||
title_search
|
||||
{/translate}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_date_orig
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_search("session_date_orig", $VAR.session_date_orig, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_date_last
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_search("session_date_last", $VAR.session_date_last, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_date_expire
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_search("session_date_expire", $VAR.session_date_expire, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_logged
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool("session_logged", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_ip
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="session_ip" value="{$VAR.session_ip}" {if $session_ip == true}class="form_field_error"{/if}>
|
||||
|
||||
{translate}
|
||||
search_partial
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_theme_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu_files("", "session_theme_id", "all", "theme", "", ".user_theme", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_country_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("", "session_country_id", "country", "name", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_language_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu_files("", "session_language_id", "all", "theme", "", "_core.xml", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_currency_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("", "session_currency_id", "currency", "name", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_account_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{html_select_account name="session_account_id" default=$VAR.session_account_id}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_affiliate_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{html_select_affiliate name="session_affiliate_id" default=$VAR.session_affiliate_id}
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Define the results per page -->
|
||||
<tr class="row1" valign="top">
|
||||
<td width="35%">
|
||||
{translate}
|
||||
search_results_per
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="limit" size="5" value="{$session_limit}">
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Define the order by field per page -->
|
||||
<tr class="row1" valign="top">
|
||||
<td width="35%">
|
||||
{translate}
|
||||
search_order_by
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<select name="order_by">
|
||||
{foreach from=$session item=record}
|
||||
<option value="{$record.field}">
|
||||
{$record.translate}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="top">
|
||||
<td width="35%"></td>
|
||||
<td width="65%">
|
||||
<input type="submit" name="Submit" value="{translate}search{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="core:search">
|
||||
<input type="hidden" name="_escape" value="Y">
|
||||
<input type="hidden" name="module" value="session">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{ $block->display("core:saved_searches") }
|
||||
{ $block->display("core:recent_searches") }
|
||||
|
||||
<form id="search_form" 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 class="table_heading">{osb f=tt}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=date_orig}</td>
|
||||
<td style="width: 65%;">{$list->calender_search('session_date_orig',$VAR.session_date_orig,'form_field','')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=date_last}</td>
|
||||
<td style="width: 65%;">{$list->calender_search('session_date_last',$VAR.session_date_last,'form_field','')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=date_expire}</td>
|
||||
<td style="width: 65%;">{$list->calender_search('session_date_expire',$VAR.session_date_expire,'form_field','')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=logged}</td>
|
||||
<td style="width: 65%;">{$list->bool('session_logged','all')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=ip}</td>
|
||||
<td style="width: 65%;"><input type="text" name="session_ip" value="{$VAR.session_ip}" {if $session_ip == true}class="form_field_error"{/if}/> {t}"%" for partial match{/t}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=theme_id}</td>
|
||||
<td style="width: 65%;">{$list->menu_files('','session_theme_id','all','theme','','.user_theme','form_menu')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=country_id}</td>
|
||||
<td style="width: 65%;">{$list->menu('','session_country_id','country','name','','form_menu',true)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=language_id}</td>
|
||||
<td style="width: 65%;">{$list->menu_files('','session_language_id','all','theme','','_core.xml','form_menu')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=currency_id}</td>
|
||||
<td style="width: 65%;">{$list->menu('','session_currency_id','currency','name','','form_menu',true)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=account_id}</td>
|
||||
<td style="width: 65%;">{osb f=html_select_account name='session_account_id' default=$VAR.session_account_id}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=affiliate_id}</td>
|
||||
<td style="width: 65%;">{osb f=html_select_affiliate name='session_affiliate_id' default=$VAR.session_affiliate_id}</td>
|
||||
</tr>
|
||||
{include file='file:../core/search_post.tpl'}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
{$block->display('core:saved_searches')}
|
||||
{$block->display('core:recent_searches')}
|
||||
{/if}
|
||||
|
@@ -1,135 +1,44 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
|
||||
{$method->exe("session","search_show")}
|
||||
{if ($method->result == FALSE)}
|
||||
{$block->display("core:method_error")}
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{if $results == 1}
|
||||
{translate results=$results}search_result_count{/translate}
|
||||
{else}
|
||||
{translate results=$results}search_results_count{/translate}
|
||||
{/if}
|
||||
<BR>
|
||||
{include file='file:../core/search_show_pre.tpl'}
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
{$method->exe_noauth($meth.0,'tpl_search_show')}
|
||||
{foreach from=$search_show item=record}
|
||||
{include file='file:../core/search_show_tr_record.tpl'}
|
||||
<td>{$list->date($record.date_orig)}</td>
|
||||
<td>{$list->date_time($record.date_last)}</td>
|
||||
<td>{$record.ip}</td>
|
||||
<td>
|
||||
{if $record.account_id == '0'}
|
||||
{t}None{/t}
|
||||
{else}
|
||||
{$record.account_id}
|
||||
{/if}
|
||||
</td>
|
||||
<td style="text-align: center;">
|
||||
<a href="?_page=core:search&module=account&account_username={$record.account_id}"><img src="themes/{$THEME_NAME}/images/icons/user_16.gif" alt="{t}Export these search results to XML, PDF, Excel, Comma or Tab Separated Values.{/t}" width="16" height="16" style="border: 0px;"/></a>
|
||||
{if $record.logged == '1'}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" alt="Go" width="16" height="16" style="border: 0px;"/>
|
||||
{else}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" alt="Stop" width="16" height="16" style="border: 0px;"/>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
var module = 'session';
|
||||
{/literal}
|
||||
{if $VAR._print == TRUE}
|
||||
var p = '&_escape=y&_print=y';
|
||||
{else}
|
||||
var p = '';
|
||||
{/if}{literal}
|
||||
var IMAGE = '{/literal}{$NONSSL_IMAGE}{literal}';
|
||||
var order = '{/literal}{$order}{literal}';
|
||||
var sort1 = '{/literal}{$sort}{literal}';
|
||||
var search_id = '{/literal}{$search_id}{literal}';
|
||||
var page = {/literal}{$page}{literal};
|
||||
var pages = '{/literal}{$pages}{literal}';
|
||||
var results = '{/literal}{$results}{literal}';
|
||||
var limit = '{/literal}{$limit}{literal}';
|
||||
record_arr = new Array ({/literal}{$limit}{literal});
|
||||
var i = 0;
|
||||
// END -->
|
||||
</script>
|
||||
<SCRIPT SRC="themes/{/literal}{$THEME_NAME}{literal}/search.js"></SCRIPT>
|
||||
{/literal}
|
||||
|
||||
<!-- SHOW THE SEARCH NAVIGATION MENU -->
|
||||
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
|
||||
|
||||
<!-- BEGIN THE RESULTS CONTENT AREA -->
|
||||
<div id="search_results" onKeyPress="key_handler(event);">
|
||||
<table id="main1" width="100%" 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="2">
|
||||
<!-- DISPLAY THE SEARCH HEADING -->
|
||||
<tr valign="middle" align="center" class="table_heading">
|
||||
<td width="6%" class="table_heading"> </td>
|
||||
<td width="16%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=session}field_date_orig{/translate}{literal}','date_orig'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="22%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=session}field_date_last{/translate}{literal}','date_last'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="18%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=session}field_ip{/translate}{literal}','ip'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="29%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=session}field_account_id{/translate}{literal}','account_id'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9%" class="table_heading"> </td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$session item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=session: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 align="center" width="6%">
|
||||
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
|
||||
</td>
|
||||
<td width="16%">
|
||||
{$list->date($record.date_orig)}
|
||||
</td>
|
||||
<td width="22%">
|
||||
{$list->date_time($record.date_last)}
|
||||
</td>
|
||||
<td width="18%">
|
||||
{$record.ip}
|
||||
</td>
|
||||
<td width="29%">
|
||||
{if $record.account_id == "0"}
|
||||
{translate}
|
||||
none
|
||||
{/translate}
|
||||
{else}
|
||||
{$record.account_id}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="9%"> <a href="?_page=core:search&module=account_admin&account_admin_username={$record.account_id}"><img src="themes/{$THEME_NAME}/images/icons/user_16.gif" alt="{translate}search_export_image{/translate}" border="0" width="16" height="16"></a>
|
||||
{if $record.logged == "1"}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" border="0" width="16" height="16">
|
||||
{else}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" border="0" width="16" height="16">
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{literal}
|
||||
<script language="JavaScript">row_sel('{/literal}{$record.id}{literal}', 0, '{/literal}{$record._C}{literal}'); record_arr[i] = '{/literal}{$record.id}{literal}'; i++; </script>
|
||||
{/literal}
|
||||
{/foreach}
|
||||
<!-- END OF RESULT LOOP -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
{if $VAR._print != TRUE}<br>
|
||||
<center>
|
||||
<input type="submit" name="Submit" value="{translate}view_edit{/translate}" onClick="mass_do('', module+':view', limit, module);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}delete{/translate}" 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="{translate}select_all{/translate}" onClick="all_select(record_arr);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}deselect_all{/translate}" onClick="all_deselect(record_arr);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}range_select{/translate}" onClick="all_range_select(record_arr,limit);" class="form_button">
|
||||
<br>
|
||||
</center>
|
||||
{include file='file:../core/search_show_post-1.tpl'}
|
||||
{include file='file:../core/search_show_post-2.tpl'}
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
@@ -1,215 +1,100 @@
|
||||
{ $method->exe("session","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{literal}
|
||||
<script src="themes/{/literal}{$THEME_NAME}{literal}/view.js"></script>
|
||||
<script language="JavaScript">
|
||||
var module = 'session';
|
||||
var locations = '{/literal}{$VAR.module_id}{literal}';
|
||||
var id = '{/literal}{$VAR.id}{literal}';
|
||||
var ids = '{/literal}{$VAR.ids}{literal}';
|
||||
var array_id = id.split(",");
|
||||
var array_ids = ids.split(",");
|
||||
var num=0;
|
||||
if(array_id.length > 2) {
|
||||
document.location = '?_page='+module+':view&id='+array_id[0]+'&ids='+id;
|
||||
}else if (array_ids.length > 2) {
|
||||
document.write(view_nav_top(array_ids,id,ids));
|
||||
}
|
||||
|
||||
function delete_record(id,ids)
|
||||
{
|
||||
temp = window.confirm("{/literal}{translate}alert_delete{/translate}{literal}");
|
||||
if(temp == false) return;
|
||||
|
||||
var replace_id = id + ",";
|
||||
ids = ids.replace(replace_id, '');
|
||||
if(ids == '') {
|
||||
var url = '?_page=core:search&module=' + module + '&do[]=' + module + ':delete&delete_id=' + id + COOKIE_URL;
|
||||
window.location = url;
|
||||
return;
|
||||
} else {
|
||||
var page = 'view&id=' +ids;
|
||||
}
|
||||
|
||||
var doit = 'delete';
|
||||
var url = '?_page='+ module +':'+ page +'&do[]=' + module + ':' + doit + '&delete_id=' + id + COOKIE_URL;
|
||||
window.location = url;
|
||||
}
|
||||
// END -->
|
||||
</script>
|
||||
{/literal}
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{include file='file:../core/view_pre.tpl'}
|
||||
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$session item=session} <a name="{$session.id}"></a>
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{$block->display('core:alert_fields')}
|
||||
{/if}
|
||||
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
|
||||
<!-- Display each record -->
|
||||
<form name="session_view" 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="table_heading">
|
||||
<div align="center">
|
||||
{translate module=session}
|
||||
title_view
|
||||
{/translate}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_date_orig
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{$list->date_time($session.date_orig)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_date_last
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{$list->date_time($session.date_last)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_date_expire
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{$list->date_time($session.date_expire)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_logged
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{if $session.logged == "1"}
|
||||
{translate}
|
||||
true
|
||||
{/translate}
|
||||
{else}
|
||||
{translate}
|
||||
false
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_ip
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{$session.ip}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_theme_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu_files("", "session_theme_id", $session.theme_id, "theme", "", ".user_theme", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_country_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("no", "session_country_id", "country", "name", $session.country_id, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_language_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu_files("no", "session_language_id", $session.language_id, "theme", "", "_core.xml", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_currency_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("no", "session_currency_id", "currency", "name", $session.currency_id, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_account_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{html_select_account name="session_account_id" default=$session.account_id}
|
||||
</td>
|
||||
</tr>
|
||||
{if $list->is_installed('affiliate') }
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=session}
|
||||
field_affiliate_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{html_select_affiliate name="session_affiliate_id" default=$session.affiliate_id}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%"></td>
|
||||
<td width="65%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td align="right">
|
||||
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$session.id}','{$VAR.id}');">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="_page" value="session:view">
|
||||
<input type="hidden" name="session_id" value="{$session.id}">
|
||||
<input type="hidden" name="do[]" value="session:update">
|
||||
<input type="hidden" name="id" value="{$VAR.id}">
|
||||
</form>
|
||||
{/foreach}
|
||||
<!-- Display each record -->
|
||||
<form id="view" 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 class="table_heading">{osb f=tt}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=date_orig}</td>
|
||||
<td style="width: 65%;">{$list->date_time($record.date_orig)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=date_last}</td>
|
||||
<td style="width: 65%;">{$list->date_time($record.date_last)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=date_expire}</td>
|
||||
<td style="width: 65%;">{$list->date_time($record.date_expire)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=logged}</td>
|
||||
<td style="width: 65%;">
|
||||
{if $record.logged == "1"}
|
||||
{t}True{/t}
|
||||
{else}
|
||||
{t}False{/t}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=ip}</td>
|
||||
<td style="width: 65%;">{$record.ip}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=theme_id}</td>
|
||||
<td style="width: 65%;">{$list->menu_files('','session_theme_id',$record.theme_id,'theme','','.user_theme','form_menu')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=country_id}</td>
|
||||
<td style="width: 65%;">{osb f=html_select_name name='session_country_id' table='country' method='country' default=$record.country_id}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=language_id}</td>
|
||||
<td style="width: 65%;">{$list->menu_files('no','session_language_id',$record.language_id,'language','','_core.xml','form_menu')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=currency_id}</td>
|
||||
<td style="width: 65%;">{$list->menu('no','session_currency_id','currency','name',$record.currency_id,'form_menu')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=account_id}</td>
|
||||
<td style="width: 65%;">{osb f=html_select_account name='session_account_id' default=$record.account_id}</td>
|
||||
</tr>
|
||||
{if $list->is_installed('affiliate')}
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=affiliate_id}</td>
|
||||
<td style="width: 65%;">{osb f=html_select_affiliate name='session_affiliate_id' default=$record.affiliate_id}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="6" cellpadding="1" class="row1">
|
||||
<tr class="row1">
|
||||
<td> </td>
|
||||
{include file='file:../core/view_td_delete.tpl'}
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{include file='file:../core/view_post.tpl'}
|
||||
</form>
|
||||
{/if}
|
||||
|
Reference in New Issue
Block a user