{* $Id: edit_report.tpl 1814 2006-05-17 14:35:42Z imac $ *} {capture name="mainbox"}
{$lang.report_name}:
{$lang.position}:
{$lang.available}:

{include file="common_templates/subheader.tpl" title=$lang.charts} {* --------------- CHARTS --------------------*} {if $report.tables} {foreach from=$report.tables item=table} {assign var="table_id" value=$table.table_id} {/foreach}
{$lang.position_short} {$lang.chart_name} {$lang.chart_type} {$lang.value_to_display}  
 {include file="buttons/button.tpl" but_text=$lang.edit_chart but_onclick="$index_script?$target_name=statistics&$mode_name=table&action=edit&report_id=$report_id&table_id=$table_id" but_style="text"} 

{* *}
{include file="buttons/button.tpl" but_text=$lang.update but_onclick="javascript:document.statistics_form.submit();" but_type="input" but_style=$but_style}     {include file="buttons/button.tpl" but_text=$lang.delete but_onclick="javascript: if(confirm('`$lang.delete_report_table`')) document.statistics_form.action.value='delete_table'; document.statistics_form.submit();" but_type="input" but_style=$but_style}    {include file="buttons/button.tpl" but_text=$lang.clone_table but_onclick="javascript: document.statistics_form.action.value='clone_table'; document.statistics_form.submit();" but_type="input" but_style=$but_style}

{else}

{$lang.text_no_items_defined|replace:'[items]':$lang.charts}

{/if}

{include file="buttons/button.tpl" but_text=$lang.add_new but_onclick="self.location='$index_script?$target_name=statistics&$mode_name=table&action=add_new&report_id=$report_id'" but_type="input" action_but="action_"}


{/capture} {include file="common_templates/mainbox.tpl" title="Edit Report" content=$smarty.capture.mainbox}