<table class="window">
  <tr>
    <td>
      <div class="frame_center settings_form">
        <h1>{{@page_data.title}}</h1>
        <check if="{{in_array('changes/open_fr', @authorization_user.module) || in_array('changes/open_db', @authorization_user.module) || in_array('changes/close_fr', @authorization_user.module) || in_array('changes/close_db', @authorization_user.module)}}">
        <p align="center">
          <b>Смены</b>
        </p>
        <p align="center">
          <check if="{{in_array('changes/open_fr', @authorization_user.module)}}">
          <input type="button" class="show_window" value="Открыть смену на ФР" href="/messages/continue?uri={{urlencode("/changes/open_fr")}}">
          </check>
          <check if="{{in_array('changes/open_db', @authorization_user.module)}}">
          <input type="button" class="show_window" value="Открыть смену на Кассе" href="/messages/continue?uri={{urlencode("/changes/open_db")}}">
          </check>
          <br>
          <check if="{{in_array('changes/close_fr', @authorization_user.module)}}">
          <input type="button" class="show_window" value="Закрыть смену на ФР" href="/messages/continue?uri={{urlencode("/changes/close_fr")}}">
          </check>
          <check if="{{in_array('changes/close_db', @authorization_user.module)}}">
          <input type="button" class="show_window" value="Закрыть смену на Кассе" href="/messages/continue?uri={{urlencode("/changes/close_db")}}">
          </check>
        </p>
        </check>
        <check if="{{in_array('receipts/print_last', @authorization_user.module) || in_array('receipts/remove', @authorization_user.module)}}">
        <p align="center">
          <b>Чеки</b>
        </p>
          <check if="{{in_array('receipts/remove', @authorization_user.module)}}">
        <p align="center">
          <a href="/receipts/payopen"><input type="button" value="Оплаченные, но незакрытые чеки"></a>
        </p>
          </check>
          <check if="{{in_array('receipts/print_last', @authorization_user.module)}}">
        <p align="center">
          <input type="button" class="show_window" value="Печать копии последнего чека" href="/messages/continue?uri={{urlencode("/receipts/print_last")}}">
        </p>
          </check>
        </check>
        <check if="{{in_array('settings/status_kkm', @authorization_user.module)}}">
        <p align="center">
          <b>ККМ</b>
        </p>
        <p align="center">
          <input type="button" class="show_window" value="Запрос полного статуса ККМ" href="/messages/continue?uri={{urlencode("/settings/status_kkm")}}">
        </p>
        </check>
        <check if="{{@fr_settings['active'] && @fr_settings['driver']=='drivers/printers/php_mspos'}}">
        <p align="center">
          <input type="button" class="show_window" value="Параметры ОФД и ОИСМ" href="/settings/ofd">
        </p>
        <p align="center">
          <input type="button" class="show_window" value="Регистрация / Перерегистрация" href="/settings/kkm_registration">
        </p>
        <p align="center">
          <input type="button" class="show_window" value="Закрыть архив ФН" href="/messages/continue?uri={{urlencode("/settings/closefn")}}">
        </p>
        </check>
        <check if="{{count(@epays)>0 && in_array('settings/epay_close', @authorization_user.module)}}">
        <p align="center">
          <b>Методы электронной оплаты</b>
        </p>
        <p align="center">
          <input type="button" class="show_window" value="Сверка итогов" href="/messages/continue?uri={{urlencode("/settings/epay_close")}}">
        </p>
        </check>
        <p align="center">
          <b>Произвольная команда</b>
        </p>
        <form name="service_form" action="/settings/service" method="POST">
          <textarea name="commands">beep;</textarea>
          <p align=" center">
            <input type="submit" value="Отправить">
          </p>
        </form>
        <div class="right">
          <check if="{{in_array('settings/logs', @authorization_user.module)}}">
          <a href="/settings/logs">логи</a> | 
          </check>
          <a href="/update.php">обновления</a> | <a href="/update_new.php">Он</a>
        </div>
        <p>
          <a href="/fm.php">ФМ</a> | <a href="/pla.php">БД</a> | Касса {{@site_version}}
        </p>
        <p align="center">
          <a class="show_window" href="/settings/manualforprinters"><small>Команды для чекопечатающего оборудования</small></a>
        </p>
      </div>
    </td>
  </tr>
</table>
