{{include file='head.tpl' inline}}
</head>

<body>
	{{if !empty( $config.verify_customer_code ) && $config.verify_customer_option >= 2}}
		<div id="vc_widget_small"></div>
		<div id="vc_widget_content"></div>
		<script type="text/javascript">
			var _vc_data = {
				"VCCODE" : "{{$config.verify_customer_code}}"
			}

			var myscript = document.createElement('script');
			myscript.src = 'https://verifycustomer.com/web/uploads/widget2_admin/vc2.js';
			myscript.setAttribute('async', 'true');
			document.documentElement.firstChild.appendChild(myscript);
		</script>
	{{/if}}
	<div id="container" class="{{if !empty( $smarty.cookies.admin_menu_style )}}{{$smarty.cookies.admin_menu_style}}{{else}}normal{{/if}}">
		{{$sMsg}}
		<div id="header">
			<div id="logo-sellsmart"><a href="admin.php"><img src="templates/admin/images/logo-sellsmart.png" alt="sellsmart - sklep internetowy"/></a></div>
			<div id="version">{{$config.version}}</div>
			<div id="lang">
				{{$lang.Language}}
				<form style="display: inline" action="" method="get">
					<fieldset style="display: inline">
						<select name="sLang" id="lang-select">
							{{foreach from=$aLanguages item=sLang}}
								<option value="{{$sLang}}"{{if $sLang == $sLanguage}} selected="selected"{{/if}}>{{$sLang}}</option>
							{{/foreach}}
						</select>
					</fieldset>
				</form>
				<a href="?p=logout">{{$lang.Log_out}}</a>
			</div>
		</div>
		<div id="menu-wrapper">
			<div id="menu">
				<div class="menubox" id="pages-and-products">
					<h1>{{$lang.Pages_and_Products}}</h1>
					<ul>
						<li><a href="?p=products-list">{{$lang.Products}}</a></li>
						<li><a href="?p=products-form">{{$lang.New_product}}</a></li>
						<li><a href="?p=p-list">{{$lang.Pages}}</a></li>
						<li><a href="?p=p-form">{{$lang.New_page}}</a></li>
						<li><a href="?p=p-category">{{$lang.New_category}}</a></li>
						<li><a href="?p=producers-list">{{$lang.Producers}}</a></li>
						<li><a href="?p=attributes-list">{{$lang.Attributes}}</a></li>
						<li><a href="?p=advsearcher-list">{{$lang.Adv_searcher}}</a></li>
					</ul>
				</div>
				<div class="menubox" id="clients-and-orders">
					<h1>{{$lang.Clients_and_Orders}}</h1>
					<ul>
						<li><a href="?p=orders-list&amp;iStatus=x">{{$lang.Active_orders}} ({{$iOrdersActive}})</a></li>
						<li><a href="?p=orders-list&amp;iStatus=14">{{$lang.Ready_to_send_orders}} ({{$iOrdersReadyToSend}})</a></li>
						<li><a href="?p=orders-list&amp;iStatus=2">{{$lang.Sent_orders}}</a></li>
						<li><a href="?p=orders-list">{{$lang.All_orders}}</a></li>
						<li><a href="?p=orders-list&amp;iStatus=1">{{$lang.Orders_pending}}</a></li>
						<li><a href="?p=fastorders-list">{{$lang.Fastorders}}</a></li>
						<li><a href="?p=users-list">{{$lang.Clients}} <span class="smartoffer">+ <strong>smart</strong>offer</span></a></li>
						<li><a href="?p=avail_newsletter-list">{{$lang.Avail_newsletter}}</a></li>
						<li><a href="?p=users-groupList">{{$lang.Client_groups}}</a></li>
					</ul>
				</div>
				<div class="menubox" id="raports-and-stats">
					<h1>{{$lang.Raports_and_Stats}}</h1>
					<ul>
						<li><a href="?p=products-finishing">{{$lang.Products_finishing}}</a></li>
						<li><a href="?p=products-statsall">{{$lang.Orders_and_views_products}}</a></li>

						<li><a href="?p=stats-orders-customers">{{$lang.Orders_customers}}</a></li>
						<li><a href="?p=settings-googleanalytics">{{$lang.GoogleAnalytics}}</a></li>
					</ul>
				</div>
				<div class="menubox" id="ads-marketing-comparators">
					<h1>{{$lang.Ads_and_Marketing}}</h1>
					<ul>
						<li><a href="?p=banners-list"><span class="banners">{{$lang.Banners}}</span></a></li>
						<li><a href="?p=boxes-list"><span class="boxes">{{$lang.Boxes}}</span></a></li>
						<li><a href="?p=newsletter-form">{{$lang.Newsletter}}</a></li>
						<li><a href="?p=smartoffer-newsletter">{{$lang.Newsletter}}<span class="smartoffer"> <strong>smart</strong>offer</span></a></li>
						<li><a href="?p=migrate-import_newsletter">{{$lang.Newsletter_import_export}}</a></li>
						<li><a href="?p=products-compare">{{$lang.Compare_services}}</a></li>
						<li><a href="?p=polls-list">{{$lang.Polls}}</a></li>
						<li><a href="?p=discount-coupons-list">{{$lang.Discounts_coupons}}</a></li>						
					</ul>
				</div>
				<div class="menubox" id="payments-and-carriers">
					<h1>{{$lang.Payments_and_Carriers}}</h1>
					<ul>
						<li><a href="?p=payments-list">{{$lang.Payment_methods}}</a></li>
						<li><a href="?p=carriers-list">{{$lang.Carriers}}</a></li>
						<li><a href="?p=settings-transfersAndInvoices">{{$lang.Transfers_and_Invoices}}</a></li>
						<li><a href="?p=countries-translate">{{$lang.Countries_regions}}</a></li>
					</ul>
				</div>
				<div class="menubox" id="import-export">
					<h1>{{$lang.Import_Export}}</h1>
					<ul>
						<li><a href="?p=migrate-imp_export">{{$lang.Migrate}}</a></li>
						<li><a href="?p=migrate-xmlimport">{{$lang.MigrateXML}}</a></li>
						{{if $config.flysoft}}
							<li><a href="?p=migrate-fsimport">{{$lang.FSImport}}</a></li>
						{{/if}}
						<li><a href="?p=files-multiupload">{{$lang.Mass_import_files}}</a></li>
					</ul>
				</div>
				<div class="menubox" id="allegro">
					<h1>{{$lang.Auctions}}</h1>
					<ul>
						<li><a href="?p=settings-auctions">{{$lang.Auctions_config}}</a></li>
						<li><a href="?p=allegro-template">{{$lang.Allegro_Template}}</a></li>
						<li><a href="?p=ebay-template">{{$lang.Ebay_Template}}</a></li>
						<li><a href="?p=swistak-template">{{$lang.Swistak_Template}}</a></li>
					</ul>
				</div>
				<div class="menubox" id="config">
					<h1>{{$lang.Configuration}}</h1>
					<ul>
						<li><a href="?p=settings-config">{{$lang.Options_main}}</a></li>
						<li><a href="?p=admins-list">{{$lang.Admins}}</a></li>
						{{if $_SESSION.iAdminId > 0}}<li><a href="?p=admins-self">{{$lang.Admin_self}}</a></li>{{/if}}
						<li><a href="?p=lang-list">{{$lang.Languages}}</a></li>
						<li><a href="?p=settings-stock">{{$lang.Stores}}</a></li>
						<li><a href="?p=vat-list">{{$lang.Vats}}</a></li>
						<li><a href="?p=forms-list">{{$lang.Forms}}</a></li>
					</ul>
				</div>
				<a href="#" id="menu-swap" title="{{$lang.Show_menu}}" ></a>
				<div class="clear"></div>
			</div>
		</div>
		<div id="body" {{if $aActions.f == 'home'}}class="home-wrapper"{{/if}}>
			{{if $aActions.f == 'home'}}<div class="home-bg"></div>{{/if}}
			<div id="confirm-box">
				<h1>{{$lang.Delete}}</h1>
				<p>{{$lang.Confirmation_text}} {{$sDeclination}} <span id="todelete"></span>?</p>
				<a id="confirm-action" href="#">tak</a>
				<a id="nonconfirm-action" href="#">nie</a>
			</div>
			{{if !empty( $content )}}
				{{$content}}
			{{else}}
				<div class="msg" id="error">
					<img src="{{$config.dir_templates}}admin/images/ico/msg_error.png" class="imgv" alt="" /> {{$lang.Operation_unknown}}
				</div>
			{{/if}}
		</div>
		<div id="footer"></div>
	</div>
</body>
</html>