core/api/modules/contragents/index.html

129 lines
5.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{include file=$header h1="Контрагенты" title="Контрагенты"}
<div class="container">
<h2 class="text-center">Организации</h2>
<div class="row">
<!-- поиск организации-->
<form id="form_find_org" class="col-sm-3">
<input class="form-control" placeholder="Поиск по ИНН" id="input_inn">
</form>
<div class="col-sm">
<p>Название: <span id="naim"></span></p>
<p>ИНН: <span id="inn"></span></p>
<p>КПП: <span id="kpp"></span></p>
<iframe src="https://1c-tools.ru/widget/check" frameborder="0" width="100%" height="350px"></iframe>
</div>
</div>
<h2>Программы удаленного доступа</h2>
<button class="btn btn-dark" data-bs-toggle="modal" id="btn_show_ud" data-bs-target="#add_ud">Добавить</button>
<table class="table mt-3" id="table_ud"></table>
<!-- hr>
<h2>Сотрудники</h2>
<button class="btn btn-dark">Добавить</button -->
<hr>
<h2>Лицензии</h2>
<button class="btn btn-dark" data-bs-toggle="modal" data-bs-target="#add_soft">Добавить</button>
<table class="table mt-3" id="table_lic"></table>
</div>
<!-- Добавляка УД -->
<div class="modal fade" tabindex="-1" id="add_ud">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Добавить удаленный доступ</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form id="add_ud" class="form_in_modal">
<select class="form-control" name="soft_id">
{section name=customer loop=$soft_ud} {if $soft_ud[customer].id}
<option value="{$soft_ud[customer].naim}">{$soft_ud[customer].naim}</option>
{/if} {/section}
</select>
<input class="form-control mt-3" placeholder="ID/IP" name="id">
<input class="form-control mt-3" placeholder="Password" name="pwd">
<input class="form-control mt-3" placeholder="Имя компа" name="comp_name">
<input class="form-control mt-3" placeholder="Тип компа (Товаровед/касса)" comp_tip>
<input class="form-control mt-3" placeholder="Торговая точка" name="t_t">
<input class="hidden" name="tip" value="ud">
<input class="hidden" name="act" value="set_orgs_data">
<input class="hidden org_id" name="org_id" value="">
<!-- button class="btn btn-dark mt-3" type="submit" name="ok" style="width: 100%;">Добавить</button-->
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Закрыть</button>
<button type="button" class="btn btn-primary btn_add_submit" data-form="#add_ud">Сохранить</button>
</div>
</div>
</div>
</div>
<!-- Добавляка софта -->
<div class="modal fade" tabindex="-1" id="add_soft">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Добавить ПО</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form id="form_lic" class="form_in_modal">
<select class="form-control" name="soft_id">
{section name=customer loop=$soft_1s_front} {if $soft_1s_front[customer].id}
<option value="{$soft_1s_front[customer].id}">{$soft_1s_front[customer].naim}</option>
{/if} {/section}
</select>
<input class="form-control mt-3" placeholder="Рег-номер" name="rn">
<textarea class="form-control mt-3" placeholder="Пин-коды" name="pin"></textarea>
<input class="form-control mt-3" placeholder="Логин" name="login">
<input class="form-control mt-3" placeholder="Пароль" name="pwd">
<input class="form-control mt-3" placeholder="Почта" name="email">
<input class="form-control mt-3" placeholder="Имя компа" name="comp_name">
<input class="form-control mt-3" placeholder="Торговая точка" name="t_t">
<input class="form-control mt-3" placeholder="Срок" name="srok">
<input class="hidden" name="tip" value="lic">
<input class="hidden" name="act" value="set_orgs_data">
<input class="hidden org_id" name="org_id" value="">
<!-- button class="btn btn-dark mt-3" type="submit" name="ok" style="width: 100%;">Добавить</button-->
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Закрыть</button>
<button type="button" class="btn btn-primary btn_add_submit" data-form="#form_lic">Сохранить</button>
</div>
</div>
</div>
</div>
{include file=$footer}