<?php
$viewdefs ['EcmQuotes'] = 
array (
  'QuickCreate' => 
  array (
    'templateMeta' => 
    array (
      'form' => 
      array (
        'enctype' => 'multipart/form-data',
        'buttons' => 
        array (
          0 => 
          array (
            'customCode' => '<input type="submit" name="save" class="button" value="Zapisz" onclick="saveItems(true);this.form.action.value=\'Save\'" />',
          ),
          1 => 'CANCEL',
        ),
        'hidden' => 
        array (
          0 => '<input type="hidden" name="position_list" id="position_list" value=\'{$POSITION_LIST}\'>',
          1 => '<input type="hidden" name="email_id" id="email_id" value=\'\'>',
        ),
      ),
      'maxColumns' => '2',
      'widths' => 
      array (
        0 => 
        array (
          'label' => '10',
          'field' => '30',
        ),
        1 => 
        array (
          'label' => '10',
          'field' => '30',
        ),
      ),
      'includes' => 
      array (
        0 => 
        array (
          'file' => 'include/JSON.js',
        ),
        1 => 
        array (
          'file' => 'include/javascript/quicksearch.js',
        ),
        2 => 
        array (
          'file' => 'include/ECM/EcmPreviewPDF/EcmPreviewPDF.js',
        ),
        3 => 
        array (
          'file' => 'modules/EcmQuotes/AjaxSearch/AjaxSearch.js',
        ),
        4 => 
        array (
          'file' => 'modules/EcmQuotes/formloader.js',
        ),
        5 => 
        array (
          'file' => 'modules/EcmQuotes/MyTable.js',
        ),
        6 => 
        array (
          'file' => 'modules/EcmQuotes/EcmQuotes.js',
        ),
        7 => 
        array (
          'file' => 'modules/EcmQuotes/CreateItem.js',
        ),
        8 => 
        array (
          'file' => 'modules/EcmProducts/mintajax.js',
        ),
        9 => 
        array (
          'file' => 'modules/EcmProducts/helper.js',
        ),
      ),
    ),
    'panels' => 
    array (
      'LBL_DETAILS_TAB' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'type' => 'tab',
            'active' => true,
          ),
        ),
        1 => 
        array (
          0 => 
          array (
            'name' => 'document_no',
            'tabIndex' => '1',
            'customCode' => '<div id="tst" style="display:none;"></div><input readonly="readonly" type="text" name="document_no" id="document_no" value=\'{$fields.document_no.value}\'><input type="hidden" name="number" id="number" value=\'{$fields.number.value}\'>',
          ),
          1 => 
          array (
            'name' => 'assigned_user_name',
            'tabIndex' => '1',
          ),
        ),
        2 => 
        array (
          0 => 
          array (
            'name' => 'parent_name',
            'tabIndex' => '1',
          ),
          1 => 
          array (
            'name' => 'register_date',
            'tabIndex' => '1',
            'type' => 'datetime',
            'displayParams' => 
            array (
              'showFormats' => true,
            ),
          ),
        ),
        3 => 
        array (
          0 => 'name',
          1 => 
          array (
            'name' => 'validtill_date',
            'tabIndex' => '1',
            'type' => 'datetime',
            'displayParams' => 
            array (
              'showFormats' => true,
            ),
          ),
        ),
        4 => 
        array (
          0 => 
          array (
            'name' => 'parent_contact_name',
            'tabIndex' => '1',
            'customCode' => '
				<input type="text" name="parent_contact_name" id="parent_contact_no" value=\'{$fields.parent_contact_name.value}\'>
				<button type="button" value="Wybierz" 
				onClick=\'open_popup(
"Contacts", 
600, 
400, 
"&account_name=document.getElementById(\'parent_name\').value". 
true, 
false, 
&#123;"call_back_function":"set_return","form_name":"EditView","field_to_name_array":&#123;"user_name":"parent_contact_name"&#125;&#125;, 
"single", 
false
);\'>
				<img src="themes/default/images/id-ff-select.png">
				</button>
				',
          ),
        ),
        5 => 
        array (
          0 => 'status',
          1 => 
          array (
            'label' => 'LBL_TEMPLATE_NAME',
            'tabIndex' => '1',
            'customCode' => '<select tabindex="1" id="template_id" name="template_id" onChange="document.getElementById(\'template_name\').value=this.options[this.selectedIndex].text;">{$DOCUMENT_TEMPLATES_OPTIONS}</select><input type="hidden" id="template_name" name="template_name" value="{$fields.template_name.value}">',
          ),
        ),
        6 => 
        array (
          0 => 'payment_method',
          1 => 'payment_deadline',
        ),
        7 => 
        array (
          0 => 'payment_description',
        ),
        8 => 
        array (
          0 => 
          array (
            'allCols' => true,
            'hideLabel' => true,
            'customCode' => '<div class="tabForm" style="border-top:none;width:100%;height:1px;padding:0px;align:center;"></div><h4>{$MOD.LBL_TO_INFORMATIONS}</h4>',
          ),
        ),
        9 => 
        array (
          0 => 
          array (
            'name' => 'parent_name_copy',
            'tabIndex' => '1',
            'customCode' => '<input type="text" name="parent_name_copy" id="parent_name_copy"  value="{$fields.parent_name.value}" readOnly="readonly" size="30" />',
          ),
          1 => 'ecmlanguage',
        ),
        10 => 
        array (
          0 => 
          array (
            'name' => 'parent_address_street',
            'tabIndex' => '1',
            'customCode' => '<textarea tabindex="1" id="parent_address_street" name="parent_address_street" rows="2" cols="30" maxlength="150" >{$fields.parent_address_street.value}</textarea>',
          ),
          1 => 'to_vatid',
        ),
        11 => 
        array (
          0 => 
          array (
            'name' => 'parent_address_city',
            'tabIndex' => '1',
            'customCode' => '<input maxlength="8" type="text" name="parent_address_postalcode" id="parent_address_postalcode" value="{$fields.parent_address_postalcode.value}" style="vertical-align:top;width:80px;" />&nbsp;&nbsp;<input type="text" name="parent_address_city" id="parent_address_city" value="{$fields.parent_address_city.value}" style="vertical-align:top;width:150px;" />',
          ),
          1 => 'show_advanced_params',
        ),
        12 => 
        array (
          0 => 'parent_address_country',
          1 => 'show_primary_params',
        ),
      ),
      'LBL_ITEMS_TAB' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'type' => 'tab',
          ),
        ),
        1 => 
        array (
          0 => 
          array (
            'allCols' => true,
            'hideLabel' => true,
            'customCode' => '

          

          <link rel="stylesheet" type="text/css" href="modules/EcmQuotes/MyTable.css" />
          <link rel="stylesheet" type="text/css" href="modules/EcmQuotes/AjaxSearch/AjaxSearch.css" />

          <div style="width:100%;border: 1px solid rgb(48,192,255);background-color:white;height:{$OPT.position_table_height}px;max-height:{$OPT.position_table_height}px;overflow:auto;" id="itemsTableDIV">

            <table class="positions" style="width:100%;" id="itemsTable">

              <thead id="head">

                <tr id="tr">

                  <td width="2%">{$MOD.LBL_EDITTABLE_NO}</td>

                  <td width="16%">{$MOD.LBL_EDITTABLE_CODE}</td>

                  <td width="30%">{$MOD.LBL_EDITTABLE_NAME}</td>

                  <td width="3%">{$MOD.LBL_EDITTABLE_QUANTITY}</td>

                  <td width="8%">{$MOD.LBL_EDITTABLE_PRICE}</td>

                  <td width="4%">{$MOD.LBL_EDITTABLE_CURRENCY}</td>

                  <td width="4%">{$MOD.LBL_EDITTABLE_DISCOUNT}</td>
                  <td width="10%">Czas dostawy</td>
                  <td width="8%">{$MOD.LBL_EDITTABLE_TOTAL}</td>

                  <td width="4%">{$MOD.LBL_EDITTABLE_OPTIONS}</td>

                </tr>

              </thead>

              <tbody id="tbody">

              </tbody>

            </table>

          </div>

            <table width="100%"" cellpadding="0" cellspacing="0" border="0">

              <tr>

                <td width="55%" class="dataLabel" valign="top">

                    <a href="javascript: N.moveUpRow();" >{$MOD.LBL_MOVE_ROW_UP}</a> - <a href="javascript: N.moveDownRow();" >{$MOD.LBL_MOVE_ROW_DOWN}</a>

                </td>                                                                               <!--color:#b3b9cf;-->

                <td width="40%" class="dataField" style="text-align: left;">

                <br>

                <table  id="result_table" cellpadding="0" cellspacing="0" style="width:100%; height:100%; border: 1px solid rgb(48,192,255);">

                <tr id="netto_pln_tr"> 

                  <td class="positionsLabel" style="border-top:0px;">{$MOD.LBL_TOTAL_PRICE_NETTO_PLN}</td>

                  <td class="positionsField" style="border-top:0px;"><input type="text" style="border:0px;font-weight:900;width:100%;text-align:right;" readonly="readonly" name="netto_pln" id="netto_pln" value=\'{$fields.subtotal.value}\'></td>

                </tr>


                <tr id="netto_eur_tr"> 

                  <td class="positionsLabel">{$MOD.LBL_TOTAL_PRICE_NETTO_EUR}</td>

                  <td class="positionsField"><input type="text" readonly="readonly" style="border:0px;font-weight:900;width:100%;text-align:right;" name="netto_eur" id="netto_eur" value=\'\'></td>

                </tr>
				
				<tr id="brutto_pln_tr"> 

                  <td class="positionsLabel">{$MOD.LBL_TOTAL_PRICE_BRUTTO_PLN}</td>

                  <td class="positionsField"><input type="text" readonly="readonly" style="border:0px;font-weight:900;width:100%;text-align:right;" name="brutto_pln" id="brutto_pln" value=\'\'></td>

                </tr>
				
				<tr id="brutto_eur_tr"> 

                  <td class="positionsLabel">{$MOD.LBL_TOTAL_PRICE_BRUTTO_EUR}</td>

                  <td class="positionsField"><input type="text" readonly="readonly" style="border:0px;font-weight:900;width:100%;text-align:right;" name="brutto_eur" id="brutto_eur" value=\'\'></td>

                </tr>

                </table>

                </td>

                <td width="5%" class="dataField" style="text-align: left;">&nbsp;</td>

              </tr>

            </table>

          ',
          ),
        ),
      ),
      'LBL_TEXTS_TAB' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'type' => 'tab',
          ),
        ),
        1 => 
        array (
          0 => 
          array (
            'label' => 'LBL_HEADER_TEXT',
            'customCode' => '{$MFP.footer}',
          ),
        ),
        2 => 
        array (
          0 => 
          array (
            'tabIndex' => 'f',
            'customCode' => '<textarea id="header_text" name="header_text" rows="5" style="width:100%;">{$fields.header_text.value}</textarea>',
          ),
        ),
        3 => 
        array (
          0 => 
          array (
            'label' => 'LBL_FOOTER_TEXT',
            'customCode' => '{$MFP.header}',
          ),
        ),
        4 => 
        array (
          0 => 
          array (
            'tabIndex' => 'f',
            'customCode' => '<textarea id="footer_text" name="footer_text" rows="5" style="width:100%;">{$fields.footer_text.value}</textarea>',
          ),
        ),
        5 => 
        array (
          0 => 
          array (
            'label' => 'LBL_ADS_TEXT',
            'customCode' => '{$MFP.ads}',
          ),
        ),
        6 => 
        array (
          0 => 
          array (
            'tabIndex' => 'f',
            'customCode' => '<textarea id="ads_text" name="ads_text" rows="5" style="width:100%;display:block !important;">{$fields.ads_text.value}</textarea>',
          ),
        ),
      ),
      'LBL_PREVIEW_TAB' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'type' => 'tab',
          ),
        ),
        1 => 
        array (
          0 => 
          array (
            'allCols' => true,
            'hideLabel' => true,
            'customCode' => '<span id=\'previewPDF\' width="100%" height="100%"></span>',
          ),
        ),
      ),
    ),
  ),
);
?>
