<?php 
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package 		Phpfox
 * @version 		$Id: add.html.php 6474 2013-08-20 06:58:29Z Raymond_Benc $
 */
 
defined('PHPFOX') or exit('NO DICE!'); 

?>
<form method="post" action="{url link='admincp.report.add'}">
    {if $bIsEdit}
        <div>
            <input type="hidden" name="id" value="{$aForms.report_id}" />
            <input type="hidden" value="{$aForms.message}" name="val[name_ori]">
        </div>
    {/if}
	<div class="table_header">
		{_p var='category_details'}
	</div>
	<div><input type="hidden" name="val[product_id]" value="phpfox" /></div>
	<div><input type="hidden" name="val[module_id]" value="core" /></div>
    {foreach from=$aLanguages item=aLanguage}
    <div class="table form-group">
        <div class="table_left">
            {_p var='category'}&nbsp;<strong>{$aLanguage.title}</strong>:
        </div>
        <div class="table_right">
            {assign var='value_name' value="name_"$aLanguage.language_id}
            <input type="text" name="val[name][{$aLanguage.language_id}]" value="{value id=$value_name type='input'}" size="30" />
            <div class="extra_info">
                {if $aLanguage.is_default}
                    {_p var='default_language_can_not_be_empty'}
                {else}
                    {_p var='left_empty_will_have_same_value_with_default_language'}
                {/if}
            </div>
        </div>
        <div class="clear"></div>
    </div>
    {/foreach}
	<div class="table_clear">
		<input type="submit" value="{if $bIsEdit}{_p var='update'}{else}{_p var='add'}{/if}" class="button btn-primary" />
	</div>
</form>