Changes to AgileBill
This commit is contained in:
@@ -1,121 +1,72 @@
|
||||
{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="group_add" name="group_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=group}
|
||||
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=group}
|
||||
field_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="group_name" value="{$VAR.group_name}" {if $group_name == true}class="form_field_error"{/if}>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=group}
|
||||
field_notes
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<textarea name="group_notes" cols="40" rows="5" {if $group_notes == true}class="form_field_error"{/if}>{$VAR.group_notes}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=group}
|
||||
field_date_start
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{if $VAR.group_date_start == ""}
|
||||
{$list->calender_add("group_date_start", '', "form_field")}
|
||||
{else}
|
||||
{$list->calender_add("group_date_start", $VAR.group_date_start, "form_field")}
|
||||
{/if}
|
||||
{$VAR.group_date_start}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=group}
|
||||
field_date_expire
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{if $VAR.group_date_expire == ""}
|
||||
{$list->calender_add("group_date_expire", '', "form_field")}
|
||||
{else}
|
||||
{$list->calender_add("group_date_expire", $VAR.group_date_expire, "form_field")}
|
||||
{/if}
|
||||
{$VAR.group_date_expire} </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=group}
|
||||
field_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{$list->bool("group_status", $VAR.group_status, "form_menu")}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=group}
|
||||
field_pricing
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{$list->bool("group_pricing", $VAR.group_pricing, "form_menu")}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=group}
|
||||
field_parent_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("", "group_parent_id", "group", "name", $VAR.group_parent_id, "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="group:view">
|
||||
<input type="hidden" name="_page_current" value="group:add">
|
||||
<input type="hidden" name="do[]" value="group:add">
|
||||
<input type="hidden" name="group_date_orig" value="{$smarty.now}">
|
||||
</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 type="text" name="group_name" value="{$VAR.group_name}" {if $group_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="group_notes" cols="40" rows="5" {if $group_notes == true}class="form_field_error"{/if}>{$VAR.group_notes}</textarea></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=date_start}</td>
|
||||
<td style="width: 65%;">
|
||||
{if $VAR.group_date_start == ''}
|
||||
{$list->calender_add('group_date_start','','form_field')}
|
||||
{else}
|
||||
{$list->calender_add('group_date_start',$VAR.group_date_start,'form_field')}
|
||||
{/if}
|
||||
{$VAR.group_date_start}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=date_expire}</td>
|
||||
<td style="width: 65%;">
|
||||
{if $VAR.group_date_expire == ''}
|
||||
{$list->calender_add('group_date_expire','','form_field')}
|
||||
{else}
|
||||
{$list->calender_add('group_date_expire',$VAR.group_date_expire,'form_field')}
|
||||
{/if}
|
||||
{$VAR.group_date_expire}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=status}</td>
|
||||
<td style="width: 65%;">{$list->bool('group_status',$VAR.group_status)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=pricing}</td>
|
||||
<td style="width: 65%;">{$list->bool('group_pricing',$VAR.group_pricing)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=parent_id}</td>
|
||||
<td style="width: 65%;">{$list->menu('','group_parent_id','group','name',$VAR.group_parent_id,'form_menu')}</td>
|
||||
</tr>
|
||||
{include file='file:../core/add_tr_submit.tpl'}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
@@ -1,65 +1,64 @@
|
||||
{$method->exe("group","search_show")}
|
||||
{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><br>
|
||||
<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=group}
|
||||
title_visual
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellpadding="5" class="body">
|
||||
<tr>
|
||||
<td> { $method->exe("group","visual_layout")}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<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" align="center">
|
||||
<tr>
|
||||
<td class="table_heading">
|
||||
<center>
|
||||
{translate module=group}
|
||||
menu
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellpadding="5" class="row1">
|
||||
<tr>
|
||||
<td>{translate module=group}help_file{/translate}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{/if}
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
<p>{t count=$results 1=$results plural='%1 records were found.'}%1 record was found.{/t}</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>
|
||||
<td class="table_heading">{osb f=tt method=tpl_title_visual}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellpadding="5" class="body">
|
||||
<tr>
|
||||
<td>{$method->exe('group','tpl_visual_layout')}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<br/>
|
||||
</div>
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr>
|
||||
<td class="table_heading">{osb f=tt}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellpadding="5" class="row1">
|
||||
<tr>
|
||||
<td>
|
||||
{t}Groups are simply a set of permissions that accounts can be authorized for. Each group is simply a list of methods that accounts associated with the group can access.
|
||||
|
||||
For example, if a particular group is authorized for the Account Administration methods, any account authorized for that group can access the Account Administration features.
|
||||
|
||||
The group configuration is very flexible. For example, a group can have access to only some of the methods in a specific module. So, group(s) can be define for employees that allow them to view and search for accounts, but not to delete or edit them.
|
||||
|
||||
The group hierarchy also allows for an unlimited number of child groups defined under a parent group. Those child groups can then have children of their own. The advantage of this system is that the child group(s) always inherit all it's parents permissions, and then you can add additional permissions to the child. This makes it possible to very quickly create a group that has all the permissions of an existing group, plus a few changes.
|
||||
|
||||
The group hierarchy is shown above this help dialogue.{/t}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
@@ -1,217 +1,109 @@
|
||||
{ $method->exe("group","view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
{literal}
|
||||
<!-- Define the update delete function -->
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
var module = 'group';
|
||||
var locations = '{/literal}{$VAR.module_id}{literal}';
|
||||
if (locations != "")
|
||||
{
|
||||
refresh(0,'#'+locations)
|
||||
}
|
||||
// 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}
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$group item=group} <a name="{$group.id}"></a>
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{include file='file:../core/view_pre.tpl'}
|
||||
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{$block->display('core:alert_fields')}
|
||||
{/if}
|
||||
|
||||
<!-- 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="group_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="group_notes" cols="45" rows="2" >{$record.notes}</textarea></td>
|
||||
</tr>
|
||||
<tr class="row1" 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="row3" valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=date_start}</td>
|
||||
<td style="width: 65%;">{$list->calender_view('group_date_start',$record.date_start,'form_field','')}</td>
|
||||
</tr>
|
||||
<tr class="row4" valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=date_expire}</td>
|
||||
<td style="width: 65%;">{$list->calender_view('group_date_expire',$record.date_expire,'form_field','')}</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('group_status',$record.status,'" onchange="submit()')}</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td style="width: 35%;">{osb f=tf field=pricing}</td>
|
||||
<td style="width: 65%;">{$list->bool('group_pricing',$record.pricing)}</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('','group_parent_id','group','name',$record.parent_id,'form_menu')}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{include file='file:../core/view_tr_submit_delete.tpl'}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
{include file='file:../core/view_post.tpl'}
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<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}Update Group to Method Relationships{/t}</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 style="width: 35%;">{t}Select a module{/t}</td>
|
||||
<td style="width: 65%;">{$list->menu('no','module_method_module_id','module','name','','" onchange="showGroupPerm(this)',true)}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
// @todo This results in a query of columns that dont exist?
|
||||
{literal}
|
||||
function showGroupPerm(obj) {
|
||||
showIFrame('iframe',getPageWidth(600),400,'?_page=module_method:view_methods'+'&module_method_group_id={/literal}{$record.id}{literal}'+'&module_method_module_id='+obj.value+'&_escape=1');
|
||||
}
|
||||
{/literal}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
<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>
|
||||
|
||||
<!-- 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=group}
|
||||
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=group}
|
||||
field_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="group_name" value="{$group.name}" size="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="top">
|
||||
<td width="35%">
|
||||
{translate module=group}
|
||||
field_notes
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<textarea name="group_notes" cols="45" rows="2" >{$group.notes}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="top">
|
||||
<td width="35%">
|
||||
{translate module=group}
|
||||
field_date_orig
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{$group.date_orig|date_format:$smarty.const.DEFAULT_DATE_FORMAT}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row3" valign="top">
|
||||
<td width="35%">
|
||||
{translate module=group}
|
||||
field_date_start
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{$list->calender_view("group_date_start", $group.date_start, "form_field", $group.id)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row4" valign="top">
|
||||
<td width="35%">
|
||||
{translate module=group}
|
||||
field_date_expire
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{$list->calender_view("group_date_expire", $group.date_expire, "form_field", $group.id)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%">
|
||||
{translate module=group}
|
||||
field_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{$list->bool("group_status", $group.status, "\" onChange\"submit()\"")}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%">
|
||||
{translate module=group}
|
||||
field_pricing
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{$list->bool("group_pricing", $group.pricing, "form_menu")}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%">
|
||||
{translate module=group}
|
||||
field_parent_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("", "group_parent_id", "group", "name", $group.parent_id, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="middle" align="left">
|
||||
<td width="35%">
|
||||
<input type="hidden" name="_page2" value="group:view">
|
||||
<input type="hidden" name="group_id" value="{$group.id}">
|
||||
<input type="hidden" name="do[]" value="group:update">
|
||||
<input type="hidden" name="id" value="{$VAR.id}">
|
||||
<input type="submit" name="Submit2" value="{translate}submit{/translate}" class="form_button">
|
||||
</td>
|
||||
<td width="65%">
|
||||
<div align="right">
|
||||
<input type="button" name="delete" value="{translate}delete{/translate}" class="form_button" onClick="delete_record('{$group.id}','{$VAR.id}');">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<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="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="35%">
|
||||
{translate module=group}
|
||||
select_module
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("no", "module_method_module_id", "module", "name", "all", "\" onChange=\"showGroupPerm(this)\"") }
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
|
||||
function showGroupPerm(obj) {
|
||||
showIFrame('iframeInvoice',getPageWidth(600),400,'?_page=module_method:view_methods'+
|
||||
'&module_method_group_id={/literal}{$group.id}{literal}'+
|
||||
'&module_method_module_id='+obj.value+
|
||||
'&_escape=1');
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
|
||||
<iframe name="iframeInvoice" id="iframeInvoice" style="border:0px; width:0px; height:0px;" scrolling="auto" ALLOWTRANSPARENCY="true" frameborder="0" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
|
||||
|
||||
{/foreach}
|
||||
{/if}
|
||||
|
Reference in New Issue
Block a user