Skip to content
Snippets Groups Projects
Commit 1deac2b7 authored by VladimirCherkasov's avatar VladimirCherkasov
Browse files

fix

parent b662e096
Branches
Tags
No related merge requests found
......@@ -280,19 +280,3 @@ Route::set('javaSessionProvider', 'java_authentication')
'controller' => 'JavaAuthentication',
'action' => 'authentication'
]);
Route::set('departments:main', 'departments(/<id>)', ['id' => '[0-9]+'])
->defaults([
'controller' => 'Departments', // classes/Controller/Departments.php
'id' => 1,
]);
// bars.com/departments
// bars.com/departments/78
Route::set('groups:main','studygroups(/<id>)', ['id' => '[0-9]+'])
->defaults([
'controller' => 'StudyGroups',
'action' => 'index',
'id' => 1,
]);
<ul>
{% for d in Departments %}
{% if d.Name != '' %}
<li value="{{ d.ID }}">{{ d.Name }}</li>
{% endif %}
{% endfor %}
</ul>
\ No newline at end of file
<html>
<head>
{{ HTML.script('static/js/libs/jquery-1.11.1.min.js') |raw }}
{{ HTML.script('static/js/button.js')|raw }}
{{ HTML.script('static/js/config.js')|raw }}
</head>
<body>
<p>Введите id факультета:</p>
<input type="text" size="3" name="num" min="1" max="10" value="0">
<button id="button">OK</button>
<p>Список кафедр:</p>
<div id="container">
<ul>
{% for d in Departments %}
{% if d.Name != '' %}
<li value="{{ d.ID }}">{{ d.Name }}</li>
{% endif %}
{% endfor %}
</ul>
</div>
</body>
</html>
{#<select>
{% for f in Faculties %}
<option value="{{ f.ID }}">
{{ f.Name }}
</option>
{% endfor %}
</select>#}
{# <select id="faculty">
<option value="1">мимими</option>
<option value="2">урурру</option>
<option value="3" class="mytext">:3</option>
<option>ROOOOOAAAR</option>
</select>
<p>
meow
</p>
<p class="mytext">ROAR</p>#}
\ No newline at end of file
<html>
<head>
{{ HTML.script('static/js/libs/jquery-1.11.1.min.js') |raw }}
{{ HTML.script('static/js/button_groups.js')|raw }}
{{ HTML.script('static/js/config.js')|raw }}
</head>
<body>
<p>Список групп:</p>
<div>
<select>
{% for g in Groups %}
{% if g.Name != '' %}
<option value="{{ g.ID }}">{{ g.Name }}</option>
{% endif %}
{% endfor %}
</select>
</div>
<div>
<ul>
{% for s in Students %}
{% if s.Name != '' %}
<li value="{{ s.ID }}">{{ s.Name }}</li>
{% endif %}
{% endfor %}
</ul>
</div>
</body>
</html>
<select>
{% for s in Students %}
{% if s.Name != '' %}
<option value="{{ s.ID }}">{{ s.Name }}</option>
{% endif %}
{% endfor %}
</select>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment