Browse Source

Имена столов #4

master
parent
commit
713d642e1b
  1. 10
      table_distributor.html

10
table_distributor.html

@ -48,6 +48,10 @@
<label>Размеры столов (через запятую):</label>
<input id = "table_size"/>
</p>
<p>
<label>Имена столов:</label>
<input id = "table_name" value="АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ"/>
</p>
<textarea id="result_table_txt" cols="40" rows="5"></textarea>
</div>
<div>
@ -160,7 +164,7 @@ def get_result():
return result
def print_result_table():
table_names = "АБВГДЕЖЗИКЛМНОПРСТУФ"
table_names = document["table_name"].value
global tables
html = ""
@ -173,7 +177,11 @@ def print_result_table():
# Остальные строки
for t in tables:
html += "<tr>"
if t.id >= len(table_names):
html += "<td>" + str(t.id) + "</td>"
else:
html += "<td>" + str(table_names[t.id]) + "</td>"
if len(t.person_set):
html += "<td>" + str(t.person_set).replace("{","").replace("}","") + "</td>"
else:

Loading…
Cancel
Save