add all files
This commit is contained in:
24
templates/addaud.html
Normal file
24
templates/addaud.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="card col-md-10 col-10">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Добавить аудиторию</h5>
|
||||
|
||||
<form method='POST' action="/addaudtodb" class="card" >
|
||||
<input type="text" class="form-control" name="auditory">
|
||||
<button> Добавить</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{%endblock%}
|
||||
40
templates/all.html
Normal file
40
templates/all.html
Normal file
@@ -0,0 +1,40 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="row">
|
||||
<div class="card col-md-10 col-10">
|
||||
<div class="card-body">
|
||||
|
||||
<form>
|
||||
<h3 class=" no-print card-title"> Все мат. ценности </h3>
|
||||
<button id="printallbutton"> Печать </button>
|
||||
<table class="table pagebreak" col-md-10>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Инв. номер</th>
|
||||
<th scope="col">Название</th>
|
||||
<th scope="col">Аудитория</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
{% for item in res: %}
|
||||
<tr>
|
||||
<td> <input type="hidden" name="invnomer" value="{{ item[0] }}"> {{ item[0] }} </td>
|
||||
<td> {{ item[1] }} </td>
|
||||
|
||||
|
||||
<td>
|
||||
{{ item[2] }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
28
templates/base.html
Normal file
28
templates/base.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/bootstrap.min.css')}}">
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/index.css')}}">
|
||||
|
||||
<title class="no-print">Инвентаризация</title>
|
||||
</head>
|
||||
|
||||
|
||||
{% include 'head.html' %}
|
||||
|
||||
<div class="row no-print">
|
||||
{% include 'navbar.html' %}
|
||||
</div>
|
||||
|
||||
<body>
|
||||
{% block content %} {% endblock %}
|
||||
|
||||
|
||||
|
||||
{% include 'js.html' %}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
13
templates/head.html
Normal file
13
templates/head.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<header >
|
||||
|
||||
<h1>
|
||||
<a href="/">Инвентаризация кафедры <br>
|
||||
"Автоматизированные системы управления"</br> </a>
|
||||
</h1>
|
||||
|
||||
<h2>
|
||||
распределение мат. ценностей
|
||||
</h2>
|
||||
|
||||
|
||||
</header>
|
||||
84
templates/index.html
Normal file
84
templates/index.html
Normal file
@@ -0,0 +1,84 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="card col-md-6 col-10" >
|
||||
<div class="card-body">
|
||||
<form method="POST" action="/">
|
||||
<input type="text" name="srch" placeholder="инвентарный номер">
|
||||
<button> Найти </button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="card col-md-10 col-10">
|
||||
<div class="card-body">
|
||||
<h3 class="card-title"> Нераспределённые </h3>
|
||||
<form method="POST" action="/addoborudtodb">
|
||||
<table class="table" name="table" col-md-10>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Инв. номер</th>
|
||||
<th scope="col">Название</th>
|
||||
<th scope="col">Аудитория</th>
|
||||
</tr>
|
||||
|
||||
{% for item in results: %}
|
||||
<tr>
|
||||
<td> <input type="hidden" name="invnomer" value="{{ item[0] }}"> {{ item[0] }} </td>
|
||||
<td> {{ item[1] }} </td>
|
||||
|
||||
<td> <select name="auditory" id="auditory">
|
||||
|
||||
{% for item in aud: %}
|
||||
<option name="optauditory" value="{{item.id}}">{{ item.audnazvanie }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<button> Обновить</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="card col-md-10 col-10">
|
||||
<div class="card-body">
|
||||
<h3 class="card-title"> Распределённые </h3>
|
||||
<table class="table" col-md-10>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Инв. номер</th>
|
||||
<th scope="col">Название</th>
|
||||
<th scope="col">Аудитория исходная</th>
|
||||
<th scope="col">Аудитория переноса</th>
|
||||
</tr>
|
||||
<td id="invnomer"> {{res1[0]}} </td>
|
||||
<td id="nazvanie"> {{res1[1]}} </td>
|
||||
<td id="aud"> {{res1[2]}} </td>
|
||||
<td>
|
||||
<select name="auditory" id="auditory_dubl">
|
||||
{% for item in aud: %}
|
||||
<option name="optauditory" value="{{item.id}}">{{ item.audnazvanie }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</td>
|
||||
</table>
|
||||
<button class="updatebtn" > Перенести </button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{%endblock%}
|
||||
11
templates/js.html
Normal file
11
templates/js.html
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
|
||||
|
||||
|
||||
<script src="{{url_for('static', filename='js/index.js') }}"></script>
|
||||
<script src="{{url_for('static', filename='js/printall.js') }}"></script>
|
||||
<script src="{{url_for('static', filename='js/zametki.js') }}"></script>
|
||||
<script src="{{url_for('static', filename='js/searchonaud.js') }}"></script>
|
||||
<script src="{{url_for('static', filename='js/print.js') }}"></script>
|
||||
39
templates/navbar.html
Normal file
39
templates/navbar.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<div class="row no-print">
|
||||
<nav class="no-print navbar navbar-expand-lg navbar-light">
|
||||
<div class="no-print container-fluid">
|
||||
<button class="no-print navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
|
||||
aria-controls="no-print navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="no-printnavbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="no-print ollapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="no-print navbar-nav me-auto mb-2 mb-lg-0">
|
||||
<li class="nav-item no-print">
|
||||
<a class="nav-link no-print" aria-current="page" href="{{ url_for('index') }}">Главная</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item no-print ">
|
||||
<a class="nav-link no-print " aria-current="page" href="{{ url_for('alloborud') }}">Вся таблица</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item no-print">
|
||||
<a class="nav-link no-print" href="{{url_for('searchonaud')}}">Поаудиторно</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item no-print">
|
||||
<a class="nav-link no-print" aria-current="page" href="{{url_for('addAud')}}">Добавить аудиторию</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item no-print">
|
||||
<a class="nav-link no-print" aria-current="page" href="{{url_for('vneaud')}}">Не распределено</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item no-print">
|
||||
<a class="nav-link no-print" aria-current="page" href="{{url_for('zametki')}}">Заметки</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
49
templates/nevauditor.html
Normal file
49
templates/nevauditor.html
Normal file
@@ -0,0 +1,49 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="card col-md-10 col-10">
|
||||
<div class="card-body">
|
||||
<form method="POST" action="/search">
|
||||
<input type="text" name="srch" placeholder="инвентарный номер">
|
||||
<button> Найти </button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="card col-md-10 col-10">
|
||||
|
||||
<div class="card-body">
|
||||
<h3 class="card-title"> Распределённые </h3>
|
||||
<form method="POST" action="/updateduplicate">
|
||||
<table class="table" col-md-10>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Инв. номер</th>
|
||||
<th scope="col">Название</th>
|
||||
|
||||
</tr>
|
||||
|
||||
</tr>
|
||||
<td> {{res1[0]}} </td>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
{%endblock%}
|
||||
59
templates/pdfexport.html
Normal file
59
templates/pdfexport.html
Normal file
@@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/bootstrap.min.css')}}">
|
||||
<link rel="stylesheet" href="{{ url_for('static',filename='css/index.css')}}">
|
||||
<title>Инвентаризация</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
|
||||
<h1>
|
||||
Инвентаризация каф АСУ
|
||||
</h1>
|
||||
|
||||
<h2>
|
||||
Аудитория
|
||||
</h2>
|
||||
|
||||
|
||||
</header>
|
||||
|
||||
<div class="row">
|
||||
<div class="card col-md-10 col-10">
|
||||
<div class="card-body">
|
||||
<h3 class="card-title"> Поаудиторно </h3>
|
||||
<form method="POST" action="/addoborudtodb">
|
||||
<table class="table" id="datatable" col-md-10>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Инв. номер</th>
|
||||
<th scope="col">Название</th>
|
||||
<th scope="col">Аудитория</th>
|
||||
</tr>
|
||||
|
||||
{% for item in res: %}
|
||||
<tr>
|
||||
<td> <input type="hidden" name="invnomer" value="{{ item[0] }}"> {{ item[0] }} </td>
|
||||
<td> {{ item[1] }} </td>
|
||||
<td>
|
||||
{{item[2]}}
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
55
templates/searchonaud.html
Normal file
55
templates/searchonaud.html
Normal file
@@ -0,0 +1,55 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="row no-print">
|
||||
<div class="card col-md-10 col-10">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<select name="auditory" id="auditory">
|
||||
|
||||
{% for item in aud: %}
|
||||
<option name="optauditory" value="{{item.id}}">{{ item.audnazvanie }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<button id="searchbutton"> Найти </button>
|
||||
<button id="printbutton"> Печать </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="card col-md-10 col-10">
|
||||
<form method="POST" action="/addoborudtodb">
|
||||
<div class="card-body">
|
||||
<h3 class="card-title no-print"> Поаудиторно </h3>
|
||||
|
||||
<table class="table" id="datatable" col-md-10>
|
||||
|
||||
<td >Инв. номер</td>
|
||||
<td >Название</td>
|
||||
<td class="no-print">Аудитория</td>
|
||||
|
||||
{% for item in res: %}
|
||||
|
||||
<td> <input type="hidden" name="invnomer" value="{{ item[0] }}"> {{ item[0] }} </td>
|
||||
<td> {{ item[1] }} </td>
|
||||
<td class="no-print"> {{item[2]}} </td>
|
||||
<td id="proverka"> Проверено </td>
|
||||
|
||||
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
{%endblock%}
|
||||
34
templates/vneaud.html
Normal file
34
templates/vneaud.html
Normal file
@@ -0,0 +1,34 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="row">
|
||||
<div class="card col-md-10 col-10">
|
||||
<div class="card-body">
|
||||
<form>
|
||||
<h3 class="card-title"> Не распределено {{ kolvo }} штук из {{ all_kol }} </h3>
|
||||
<table class="table" col-md-10>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Инв. номер</th>
|
||||
<th scope="col">Название</th>
|
||||
</tr>
|
||||
|
||||
|
||||
{% for item in res: %}
|
||||
<tr>
|
||||
<td> <input type="hidden" name="invnomer" value="{{ item[0] }}"> {{ item[0] }} </td>
|
||||
<td> {{ item[1] }} </td>
|
||||
<td> {{ item[2] }} </td>
|
||||
<td> {{ item[3] }} </td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
39
templates/zametki.html
Normal file
39
templates/zametki.html
Normal file
@@ -0,0 +1,39 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="row">
|
||||
<div class="card col-md-8 col-10">
|
||||
<div class="card-body">
|
||||
<h3 class="card-title"> Добавление заметки </h3>
|
||||
<form method="POST" action="/zametki">
|
||||
<textarea id="textzam" name="textzam" class="col-6"></textarea>
|
||||
<div class="row">
|
||||
<button> Добавить </button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="zambody" class="container col-12">
|
||||
|
||||
{% for item in zam: %}
|
||||
<div class="row" id="{{ item.id }}">
|
||||
<div class="card col-md-6 col-10">
|
||||
<div class="card-body">
|
||||
{{ item.txtzam }}
|
||||
</div>
|
||||
{{ item.created_date }}
|
||||
<div class="row">
|
||||
<button id="{{ item.id }}" class="reshbtn col-4"> Решено </button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
|
||||
{%endblock%}
|
||||
Reference in New Issue
Block a user