Changes to AgileBill

This commit is contained in:
Deon George
2009-08-03 14:10:16 +10:00
parent 0a22cfe22c
commit 27aee719b0
1051 changed files with 219109 additions and 117219 deletions

View File

@@ -1,121 +1,51 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{$block->display('core:alert_fields')}
{/if}
<!-- Display the form to collect the input values -->
<form id="module_add" name="module_form" 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=module}
title_add
{/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=module}
field_name
{/translate}
</td>
<td width="65%">
<input id="module_name" type="text" value="{$VAR.module_name}" name="module_name" {if $module_name == true}class="form_field_error"{/if}>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=module}
field_notes
{/translate}
</td>
<td width="65%">
<textarea name="module_notes" cols="40" rows="5" {if $module_notes == true}class="form_field_error"{/if}>{$VAR.module_notes}</textarea>
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate}
field_date_orig
{/translate}
</td>
<td width="65%">
{if $VAR.module_date_orig == ''}
{ $list->calender_add("module_date_orig", 'now', "form_field") }
{else}
{ $list->calender_add("module_date_orig", $VAR.module_date_orig, "form_field") }
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate}
field_date_last
{/translate}
</td>
<td width="65%">
{if $VAR.module_date_last == ''}
{ $list->calender_add("module_date_last", 'now', "form_field") }
{else}
{ $list->calender_add("module_date_last", $VAR.module_date_last, "form_field") }
{/if}
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=module}
field_parent_id
{/translate}
</td>
<td width="65%">
{ $list->menu("", "module_parent_id", "module", "name", $VAR.module, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=module}
field_menu_display
{/translate}
</td>
<td width="65%">
{ $list->bool("module_menu_display", $VAR.module_menu_display, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%">
{translate module=module}
field_status
{/translate}
</td>
<td width="65%">
{ $list->bool("module_status", $VAR.module_status, "form_menu") }
</td>
</tr>
<tr valign="top">
<td width="35%"></td>
<td width="65%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="module:view">
<input type="hidden" name="_page_current" value="module:add">
<input type="hidden" name="do[]" value="module:add">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<form id="add" 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=name}</td>
<td style="width: 65%;"><input id="module_name" type="text" value="{$VAR.module_name}" name="module_name" {if $module_name == true}class="form_field_error"{/if}/></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=notes}</td>
<td style="width: 65%;"><textarea name="module_notes" cols="40" rows="5" {if $module_notes == true}class="form_field_error"{/if}>{$VAR.module_notes}</textarea></td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=parent_id}</td>
<td style="width: 65%;">{$list->menu('','module_parent_id','module','name',$VAR.module,'form_menu')}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=menu_display}</td>
<td style="width: 65%;">{$list->bool('module_menu_display',$VAR.module_menu_display)}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=status}</td>
<td style="width: 65%;">{$list->bool('module_status',$VAR.module_status)}</td>
</tr>
{include file='file:../core/add_tr_submit.tpl'}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>

View File

@@ -1,57 +1,41 @@
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
<form id="module_add" name="module_form" 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=module}
title_install
{/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="42%">
{translate module=module}
install_name
{/translate}
</td>
<td width="58%">
<input id="module_name" type="text" name="install_name" >
</td>
<form id="install" 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: 45%;">{t}Module Name{/t}</td>
<td style="width: 55%;"><input id="module_name" type="text" name="install_name"/></td>
</tr>
<tr valign="top">
<td width="42%">&nbsp; </td>
<td width="58%">&nbsp; </td>
<tr valign="top">
<td style="width: 45%;">&nbsp;</td>
<td style="width: 55%;">&nbsp;</td>
</tr>
<tr valign="top">
<td width="42%">
{translate module=module}
install_group
{/translate}
</td>
<td width="58%">
{$list->select_groups("", module_group, "form_field", "1", "_1")}
</td>
<tr valign="top">
<td style="width: 45%;">{t}Install Group{/t}</td>
<td style="width: 55%;">{$list->select_groups('',module_group,'form_field','1','_1')}</td>
</tr>
<tr valign="top">
<td width="42%"></td>
<td width="58%">&nbsp; </td>
<tr valign="top">
<td style="width: 45%;">&nbsp;</td>
<td style="width: 55%;">&nbsp;</td>
</tr>
<tr valign="top">
<td width="42%"></td>
<td width="58%">
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
<input type="hidden" name="_page" value="module:install_2">
<input type="hidden" name="_page_current" value="module:install">
<input type="hidden" name="do[]" value="module:install">
<tr valign="top">
<td style="width: 45%;"></td>
<td style="width: 55%;">
<input type="submit" name="Submit" value="{t}Submit{/t}" class="form_button"/>
<input type="hidden" name="_page" value="module:install_2"/>
<input type="hidden" name="_page_current" value="module:install"/>
<input type="hidden" name="do[]" value="module:install"/>
</td>
</tr>
</table>

View File

@@ -1,64 +1,45 @@
<!-- Display the field validation -->
{if $form_validation}
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<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 width="65%" class="table_heading">
<div align="center">
{translate}
alert
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1"> <br>
{foreach from=$form_validation item=record}
&nbsp;
{$record}
<br>
<br>
{/foreach}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<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>
<tr valign="top">
<td class="row1">
<br/>
{foreach from=$form_validation item=record}
&nbsp; {$record}<br/>
<br/>
{/foreach}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{else}
<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=module}
module_installed
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<div align="center"><br>
Congratulations, the new module installation has been completed!<br>
<br>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<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}Module Installed{/t}</td>
</tr>
<tr valign="top">
<td class="row1"><div style="text-align: center;"><br/>Congratulations, the new module installation has been completed!<br/><br></div></td>
</tr>
</table>
</td>
</tr>
</table>
{/if}

View File

@@ -1,27 +0,0 @@
<table width=100% border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width=100% border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td class="table_heading">
<center>
{translate module=module}
menu
{/translate}
</center>
</td>
</tr>
<tr>
<td class="row1">
<table width="100%" border="0" cellpadding="5" class="row1">
<tr>
<td>{translate module=module}help_file{/translate}</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>&nbsp;</p>

View File

@@ -1,121 +1,12 @@
{$method->exe("module","search_show")}
{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}
{if $results == 1}
{translate results=$results}search_result_count{/translate}
{else}
{translate results=$results}search_results_count{/translate}
{/if}
<BR>
{literal}
<script language="JavaScript">
<!-- START
var module = 'module';
{/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="4%" class="table_heading">&nbsp;</td>
<td width="26%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate}field_name{/translate}{literal}','name'));
</script>
{/literal}
</td>
<td width="64%" class="table_heading">
{literal}
<script language="JavaScript">
document.write(search_heading('{/literal}{translate}field_notes{/translate}{literal}','notes'));
</script>
{/literal}
</td>
<td width="6%" class="table_heading">&nbsp; </td>
</tr>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$module item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=module: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="4%">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td width="26%"> &nbsp;
{$record.name}
</td>
<td width="64%"> &nbsp;
{$record.notes|truncate:"50"}
</td>
<td width="6%">&nbsp;
{if $record.status == '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_pre.tpl'}
{$method->exe_noauth($meth.0,'tpl_search_show',$search_show)}
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
{/if}
{/if}
</div>

View File

@@ -1,247 +1,116 @@
{ $method->exe("module","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 = 'module';
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));
}
// Mass update, view, and delete controller
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=$module item=module}
<!-- 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 id="update_form" name="update_form" 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=module}
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 class="row0" valign="top">
<td width="35%">
{translate module=module}
field_name
{/translate}
</td>
<td width="65%">
<input type="text" name="module_name" value="{$module.name}" size="32">
</td>
</tr>
<tr class="row1" valign="top">
<td width="35%">
{translate module=module}
field_notes
{/translate}
</td>
<td width="65%">
<textarea name="module_notes" cols="45" rows="5" >{$module.notes}</textarea>
</td>
</tr>
<tr class="row3" valign="top">
<td width="35%">
{translate module=module}
field_date_orig
{/translate}
</td>
<td width="65%">
{$module.date_orig|date_format:$smarty.const.DEFAULT_DATE_FORMAT}
</td>
</tr>
<tr class="row4" valign="top">
<td width="35%">
{translate module=module}
field_date_last
{/translate}
</td>
<td width="65%">
{$module.date_last|date_format:$smarty.const.DEFAULT_DATE_FORMAT}
<input type="hidden" name="module_date_last" value="{$smarty.now|date_format:$smarty.const.DEFAULT_DATE_FORMAT}">
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%">
{translate module=module}
field_parent_id
{/translate}
</td>
<td width="65%">
{ $list->menu("", "module_parent_id", "module", "name", $module.parent_id, "form_menu") }
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%">
{translate module=module}
field_menu_display
{/translate}
</td>
<td width="65%">
{ $list->bool("module_menu_display", $module.menu_display, "form_menu")
}
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td width="35%">
{translate module=module}
field_status
{/translate}
</td>
<td width="65%">
{ $list->bool("module_status", $module.status, "form_menu") }
</td>
</tr>
<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>
<input type="submit" name="Submit2" value="{translate}submit{/translate}" class="form_button">
</td>
<td align="right">
<input type="button" name="delete2" value="{translate module=module}uninstall{/translate}" class="form_button" onClick="delete_record('{$module.id}','{$VAR.id}');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<input type="hidden" name="_page" value="module:view">
<input type="hidden" name="module_id" value="{$module.id}">
<input type="hidden" name="do[]" value="module:update">
<input type="hidden" name="id" value="{$VAR.id}">
</form>
<p align="center"><a href="javascript:showMethods()">
{translate module=module}
view_methods
{/translate}
</a> &nbsp;|&nbsp; <a href="javascript:showAdd()">
{translate module=module}
add_methods
{/translate}
</a><br>
</p>
<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=group}
title_relation
{/translate}
</div>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td width="28%">
{translate module=group}
select_module
{/translate}
</td>
<td width="72%">
{ $list->menu("no", "module_method_module_id", "group", "name", "all", "\" onChange=\"showGroupPerm(this)\"") }
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div align="center">
<p>
{literal}
<script language="JavaScript">
var module_id = {/literal}{$module.id}{literal};
function showMethods() {
showIFrame('iframeModule',550,400,'?_page=core:search_iframe&module=module_method&_escape=1&module_method_module_id='+module_id+
'&_escape_next=1&_next_page_one=view&_next_page_none=add&name_id1=module_method_module_id&val_id1='+module_id);
}
function showAdd() {
showIFrame('iframeModule',550,300,'?_page=module_method:add&module_method_module_id='+module_id+'&_escape=1');
}
function showGroupPerm(obj) {
showIFrame('iframeModule',550,400,'?_page=module_method:view_methods'+
'&module_method_group_id='+obj.value+
'&module_method_module_id={/literal}{$module.id}{literal}&_escape=1');
}
</script>
{/literal}
</p>
<br>
<iframe name="iframeModule" id="iframeModule" style="border:0px; width:0px; height:0px;" scrolling="auto" ALLOWTRANSPARENCY="true" frameborder="0" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
</div>
<form id="update_form" name="update_form" method="post" action="">
<input type="hidden" name="_page" value="core:search">
<input type="hidden" name="module_method_module_id" value="{$module.id}">
<input type="hidden" name="module" value="module_method">
<input type="hidden" name="_escape" value="1">
</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 class="row0" valign="top">
<td style="width: 35%;">{osb f=tf field=name}</td>
<td style="width: 65%;"><input type="text" name="module_name" value="{$record.name}" size="32"/></td>
</tr>
<tr class="row1" valign="top">
<td style="width: 35%;">{osb f=tf field=notes}</td>
<td style="width: 65%;"><textarea name="module_notes" cols="45" rows="5" >{$record.notes}</textarea></td>
</tr>
<tr class="row3" valign="top">
<td style="width: 35%;">{osb f=tf field=date_orig}</td>
<td style="width: 65%;">{$record.date_orig|date_format:$smarty.const.DEFAULT_DATE_FORMAT}</td>
</tr>
<tr class="row4" valign="top">
<td style="width: 35%;">{osb f=tf field=date_last}</td>
<td style="width: 65%;">
{$record.date_last|date_format:$smarty.const.DEFAULT_DATE_FORMAT}
<input type="hidden" name="module_date_last" value="{$smarty.now|date_format:$smarty.const.DEFAULT_DATE_FORMAT}"/>
</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 35%;">{osb f=tf field=parent_id}</td>
<td style="width: 65%;">{$list->menu('','module_parent_id','module','name',$record.parent_id,'form_menu')}</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 35%;">{osb f=tf field=menu_display}</td>
<td style="width: 65%;">{$list->bool('module_menu_display',$record.menu_display)}</td>
</tr>
<tr class="row1" valign="middle" align="left">
<td style="width: 35%;">{osb f=tf field=status}</td>
<td style="width: 65%;">{$list->bool('module_status',$record.status)}</td>
</tr>
</table>
</td>
</tr>
{include file='file:../core/view_tr_submit_delete.tpl'}
</table>
</td>
</tr>
</table>
{include file='file:../core/view_post.tpl'}
</form>
<p style="text-align: center;"><a href="javascript:showMethods()">{osb f=tt module=module_method method=view}</a> &nbsp;|&nbsp; <a href="javascript:showAdd()">{osb f=tt module=module_method method=add}</a></p>
<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 module=group method=title_relation}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td class="width: 35%;">{t}Select Group{/t}</td>
<td class="width: 65%;">{$list->menu('no','module_method_module_id','group','name','','" onchange="showGroupPerm(this)',true)}</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div style="text-align: center;">
<script type="text/javascript">
<!--
var module_id = {$record.id};
{literal}
function showMethods() {
showIFrame('iframe',550,400,'?_page=core:search&module=module_method&module_method_module_id='+module_id+'&_next_page_one=view');
}
function showAdd() {
showIFrame('iframe',550,300,'?_page=module_method:add&module_method_module_id='+module_id);
}
function showGroupPerm(obj) {
showIFrame('iframe',550,400,'?_page=module_method:view_methods'+'&module_method_group_id='+obj.value+'&module_method_module_id={/literal}{$record.id}{literal}');
}
{/literal}
//-->
</script>
<br/>
<iframe name="iframe" id="iframe" style="border:0px; width:0px; height:0px;" scrolling="auto" allowtransparency="true" frameborder="0" src="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
</div>
{/if}