This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/group/view.tpl
2011-05-03 09:49:01 +10:00

110 lines
4.2 KiB
Smarty

{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}
{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>
{/if}