
	<!-- Page header -->
	{capture name="buttons"}
	{/capture}

	{capture name="breadcrumb"}
		<a href="{$adminUrl}/inivars" class="breadcrumb-item">{$title}</a>
	{/capture}

	{capture name="showBy"}
	{/capture}

	{include file="components/page-header.tpl" buttons=$smarty.capture.buttons breadcrumb=$smarty.capture.breadcrumb showBy=$smarty.capture.showBy}
	<!-- /page header -->

	<div class="content">
	    <div class="row">
	        <div class="col-md-12">
	            <div class="card">
		            <div class="table-responsive">
	                    <table class="table table-xs table-striped table-actions table-hover">
	                    <thead>
							<tr class="active">
								<th>Параметр</th>
								<th>Локальное значение</th>
								<th class="d-none d-lg-table-cell">Значение на сервере</th>
								<th class="d-none d-sm-table-cell">Разрешения</th>
							</tr>
						</thead>
						<tbody>
						{foreach from=$inivars item=inival key=ininame}
							<tr{if $inival['local_value'] != $inival['global_value']} class="success"{/if}>
								<td class="" nowrap="nowrap">{$ininame}</td>
								<td class="{if $inival['local_value'] != $inival['global_value']} text-success font-weight-bold{/if} text-break">
									{htmlspecialchars($inival['local_value'])}{if $inival['local_value'] != $inival['global_value']}
										<small><br />{if trim($inival['global_value']) != ""}{$inival['global_value']}{else}пустое значение{/if}</small>{/if}
								</td>
								<td class="w-25 d-none d-lg-table-cell text-break">{htmlspecialchars($inival['global_value'])}</td>
								<td class="d-none d-sm-table-cell" nowrap="nowrap">
									{if $inival['access'] == 1}
										Через пользовательские скрипты
									{elseif $inival['access'] == 2 || $inival['access'] == 6}
										<code>.htaccess</code>, <code>php.ini</code> или <code>httpd.conf</code>
									{elseif $inival['access'] == 4}
										<code>php.ini</code> или <code>httpd.conf</code>
									{elseif $inival['access'] == 7}
										<span class="text-primary">Полный доступ</span>
									{else}
										{$inival['access']}
									{/if}
								</td>
							</tr>
						{/foreach}
						</tbody>
	                </table>
		            </div>
	            </div>

	        </div>

	    </div>
	</div>







