application/modules/exchange/assets/admin/settings.tpl
<section class="mini-layout">
<div class="frame_title clearfix">
<div class="pull-left">
<span class="help-inline"></span>
<span class="title">{lang('Integration with 1C - settings ', 'exchange')}</span>
</div>
<div class="pull-right">
<div class="d-i_b">
<a href="{$BASE_URL}admin/components/modules_table"
class="t-d_n m-r_15 pjax">
<span class="f-s_14">←</span>
<span class="t-d_u">{lang('Back', 'exchange')}</span>
</a>
<a href="/admin/components/cp/exchange/setAdditionalCats"
class="btn btn-small btn-primary pjax"
<i class="icon-ok"></i>{lang('Fix', 'exchange')}
</a>
<button type="button"
class="btn btn-small btn-primary action_on formSubmit"
data-form="#exchange_settings_form"
data-action="tomain">
<i class="icon-ok"></i>{lang('Save', 'exchange')}
</button>
<a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
{lang('Logs', 'exchange')}
<span class="caret"></span>
</a>
<ul class="dropdown-menu pull-right">
<li>
<a href="{$SELF_URL}/log/error">{lang('Errors log', 'exchange')}</a>
</li>
<li>
<a href="{$SELF_URL}/log/log">{lang('Query log', 'exchange')}</a>
</li>
<li>
<a href="{$SELF_URL}/log/time">{lang('Time log', 'exchange')}</a>
</li>
</ul>
</div>
</div>
</div>
<form method="post" action="{site_url('admin/components/cp/exchange/update_settings')}" class="form-horizontal"
id="exchange_settings_form">
<div class='row-fluid'>
<div class='span6'>
<div class='mini-section'>
<div class='mini-section-header'>
<div class='mini-layout_inside-padding'>
{lang('General settings', 'exchange')}
</div>
</div>
<div class='mini-section-content'>
<div class='mini-layout_inside-padding'>
<div class="control-group">
<label class="control-label" for="zip">{lang('Use commpres', 'exchange')}:</label>
<div class="controls">
<select name="1CSettings[zip]" id="zip">
<option value="yes"
{if $settings['zip']=='yes'}selected="selected"{/if} {if !class_exists('ZipArchive')}disabled{/if}>{lang('Yes', 'exchange')}</option>
<option value="no"
{if $settings['zip']=='no'}selected="selected"{/if}>{lang('No', 'exchange')}</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="size">{lang('Size', 'exchange')}:</label>
<div class="controls">
<input type="text" name="1CSettings[filesize]" value="{$settings['filesize']}"
id="size"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="back">{lang('Database backup', 'exchange')}:</label>
<div class="controls">
<span class="frame_label no_connection">
<span class="niceCheck b_n">
<input value="1" type="checkbox" name="1CSettings[backup]"
{if $settings['backup']}checked="checked"{/if} id="back"/>
</span>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="status">{lang('Select order status', 'exchange')}
:</label>
<div class="controls">
<select name="1CSettings[userstatuses][]" multiple="multiple" id="status">
{foreach $statuses as $status}
<option value="{$status['id']}"
{if is_array($settings['userstatuses']) AND in_array($status['id'], $settings['userstatuses'])}selected="selected"{/if}>
{echo $status['name']}
</option>
{/foreach}
</select>
</div>
</div>
<div class="control-group">
<label class="control-label"
for="brand">{lang('Property, which will be mean like brand', 'exchange')}
:</label>
<div class="controls">
<input type="text" name="1CSettings[brand]" value="{$settings['brand']}"
id="brand"/>
</div>
</div>
<div class="control-group">
<label class="control-label"
for="status_after">{lang('Order status after export', 'exchange')}:</label>
<div class="controls">
<select name="1CSettings[userstatuses_after]" id="status_after">
{foreach $statuses as $status}
<option value="{$status['id']}"
{if $settings['userstatuses_after'] == $status['id']}selected="selected"{/if}>
{echo $status['name']}
</option>
{/foreach}
</select>
</div>
</div>
<div class="control-group">
<label class="control-label"
for="autores">{lang('Run automatically resize images?', 'exchange')}</label>
<div class="controls">
<span class="frame_label no_connection">
<span class="niceCheck b_n">
<input type="checkbox" name="1CSettings[autoresize]" id="autores"
{if $settings['autoresize'] == 'on'}checked="checked"{/if}/>
</span>
</span>
</div>
</div>
<div class="control-group">
<span class="control-label">
<span data-title="<b>Debug</b>" class="popover_ref"
data-original-title="">
<i class="icon-info-sign"></i>
</span>
<div class="d_n">{lang('If you specify an email errors when incorrect password', 'exchange')}
<br>
{lang('and security will be sent to administrator', 'exchange')}</div>
{lang('Email Administrator for sending important safety mistakes', 'exchange')}
</span>
<div class="controls">
<input type="text" name="1CSettings[email]" id="email"
value="{$settings['email']}"/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="autores">{lang('Purchase price id', 'exchange')}
:</label>
<div class="controls">
<input type="text" name="1CSettings[purchcePriceFieldId]"
value="{$settings['purchcePriceFieldId']}" id="purchcePriceFieldId"/>
</div>
</div>
</div>
</div>
</div>
</div>
<div class='span6'>
<div class='mini-section'>
<div class='mini-section-header'>
<div class='mini-layout_inside-padding'>
{lang('Security settings', 'exchange')}
</div>
</div>
<div class='mini-section-content'>
<div class='mini-layout_inside-padding'>
<div class="control-group">
<span class="control-label">
<span data-title="<b>Debug</b>" class="popover_ref"
data-original-title="">
<i class="icon-info-sign"></i>
</span>
<div class="d_n">{lang('Server credentials will not be considered and errors will be written to the file', 'exchange')}
error_log.txt</div> {lang('Debugging mode', 'exchange')}
</span>
<div class="controls">
<span class="frame_label no_connection">
<span class="niceCheck b_n">
<input type="checkbox" name="1CSettings[debug]" id="debug"
{if $settings['debug'] == 'on'}checked="checked"{/if}/>
</span>
</span>
</div>
</div>
<div class="control-group debug_related">
<label class="control-label" for="usepass">{lang('Use server password', 'exchange')}
:</label>
<div class="controls">
<span class="frame_label no_connection">
<span class="niceCheck b_n">
<input type="checkbox" name="1CSettings[usepassword]"
{if $settings['usepassword']}checked="checked"{/if} id="usepass"/>
</span>
</span>
</div>
</div>
<div class="control-group debug_related">
<label class="control-label"
for="login">{lang('Set up a login to access the server 1C', 'exchange')}:</label>
<div class="controls">
<input type="text" name="1CSettings[login]" class="textbox_short"
value="{$settings['login']}" id="login"/>
</div>
</div>
<div class="control-group debug_related">
<label class="control-label" for="pass">{lang('Server password', 'exchange')}:</label>
<div class="controls">
<input type="password" name="1CSettings[password]" class="textbox_short"
value="{$settings['password']}" id="pass"/>
</div>
</div>
</div>
</div>
</div>
<div class='mini-section'>
<div class='mini-section-header'>
<div class='mini-layout_inside-padding'>
{lang('Update settings', 'exchange')}
<span data-title="" class="popover_ref" data-original-title="">
<i class="icon-info-sign"></i>
</span>
<div class="d_n">{lang('Only new items will be inserted', 'exchange')}.<br>
{lang('For existing items updating will be disabled', 'exchange')}</div>
</div>
</div>
<div class='mini-section-content'>
<div class='mini-layout_inside-padding'>
{foreach $ignoreExisting as $sysName => $displayName}
<div class="control-group">
<span class="control-label">
{lang('Not update existing', 'exchange')} {$displayName}
</span>
<div class="controls">
<span class="frame_label no_connection">
<span class="niceCheck b_n">
<input type="checkbox" name="1CSettings[ignore_existing][{$sysName}]"
{if $settings['ignore_existing'][$sysName] == 'on'}checked="checked"{/if}/>
</span>
</span>
</div>
</div>
{/foreach}
</div>
</div>
</div>
</div>
</div>
</form>
</section>