<tr id="{id}">
	<td>{i}</td>
	<td>{name}</td>
	<td>{rights}</td>
	<td>{bought_date}</td>
	<td>
		<div>
			<p>{ending_date}</p>
			<button id="extend{id}" class="btn btn-default btn-xs {disp}" {if('{active}' != '2')}onclick="show_tarifs({id})";{/if} {disabled}>Продлить</botton>
		</div>
		{if('{active}' != '2')}
			<div class="clearfix"></div>
			<div class="input-group mt-10 disp-n" id="extend_block{id}">
				<span class="input-group-btn">
					<button id="extend_btn{id}" {if('{active}' != '2')}onclick="buy_extend({id}, {id2});"{/if} class="btn btn-default btn-sm" type="button" {disabled}>ОК</button>
				</span>
				<span class="input-group-btn w-100">
					{services}
				</span>
			</div>
		{/if}
	</td>
	<td>
		<p class="text-{color}">
			{left}
		</p>
		{if('{sum}' != '0')}
			<button id="return{id}" class="btn btn-default btn-xs" {if('{active}' != '2')}onclick="get_return({id});"{/if} {disabled}>Возврат {sum}р</botton>
		{/if}
	</td>
</tr>

