EIOS/tpl/tpl_teacher_sr.html

151 lines
6.5 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.

<!-- BEGIN PAGE HEADER-->
<div class="row-fluid">
<div class="span12">
<h3 class="page-title">Задания для самостоятельной работы студентов</h3>
<ul class="breadcrumb">
<li><a href="/">Главная</a><span class="divider">/</span></li>
<li class="active"><a href="/teach/sr/">Обучать - самостоятельные работы</a></li>
<li><a class="btn btn-warning" href="/teach/sr/add/"><i class="icon-plus icon-white"></i> Добавить</a></li>
</ul>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
{if $regim=='show'}
<div class="span12">
<div class="row-fluid">
<div class="widget green">
<div class="widget-title">
<h4><i class="icon-reorder"></i> Существующие задания для самостоятельной работы</h4>
<span class="tools">
<a href="javascript:;" class="icon-chevron-down"></a>
</span>
</div>
<div class="widget-body">
{if count($form.err)}{foreach from=$form.err item=er}
<div class="alert alert-error">
<button data-dismiss="alert" class="close">×</button>
<strong>Ошибка!</strong> {$er}
</div>
{/foreach}{/if}
{if isset($form.msg)}
<div class="alert alert-success">
<button data-dismiss="alert" class="close">×</button>
<strong>Успешно!</strong> {$form.msg}
</div>
{/if}
{if count($lections)}
<table class="table table-striped table-bordered table-advance table-hover">
<thead>
<tr>
<th>Даты</th>
<th>Название</th>
<th>Описание</th>
<th>Файл</th>
<th><i class=" icon-edit"></i> </th>
<th></th>
</tr>
</thead>
<tbody>
{assign var="razd" value=""}
{foreach from=$lections item=lc}
{if isset($lc.lection.name)}
{assign var=v value=$lc.lection.name|cat:$lc.lection.specialnost|cat:$lc.lection.kurs|cat:$lc.lection.semestr}
{if $v!=$razd}
<tr><td colspan="7"><strong>{$lc.lection.specialnost}-{$lc.lection.kurs}({$lc.lection.semestr}) {$lc.lection.name}</strong></td></tr>
{assign var="razd" value=$v}
{/if}
{else}
<tr><td colspan="6">Без привязки к лекциям</td></tr>
{/if}
<tr>
<td nowrap>{if $lc.data_c!=$lc.data_u}{$lc.data_c}<br>{$lc.data_u}{else}{$lc.data_c}{/if}</td>
<td>{$lc.name}</td>
<td>{$lc.descrip}</td>
<td nowarp>{if $lc.file!=''}
<i class="icon-file"></i> <a href="/upload/sr/{$lc.file}">скачать файл</a>
{else}
<span class="label label-important label-mini">нет файла</span>
{/if}</td>
<td nowarp>
<a class="btn btn-primary" href="/teach/sr/edit/{$lc.id}/"><i class="icon-pencil"></i></a>
<a class="btn btn-danger" href="/teach/sr/del/{$lc.id}/" onclick="return confirm('Вы уверены, что хотите удалить?')"><i class="icon-trash "></i></a>
</td>
<td></td>
</tr>
{/foreach}
</tbody>
</table>
{/if}
</div>
</div>
</div>
</div>
{/if}
{if $regim=='aded'}
<div class="span12">
<div class="widget red">
<div class="widget-title">
<h4><i class="icon-reorder"></i> {$form.title} </h4>
<span class="tools">
<a href="javascript:;" class="icon-chevron-down"></a>
</span>
</div>
<div class="widget-body">
{if count($form.err)}{foreach from=$form.err item=er}
<div class="alert alert-error">
<button data-dismiss="alert" class="close">×</button>
<strong>Ошибка!</strong> {$er}
</div>
{/foreach}{/if}
<form action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
<div class="control-group">
<label class="control-label">Название дисциплины</label>
<div class="controls">
<input type="text" class="span12 tooltips" data-trigger="hover" data-original-title="Полное название дисциплины (не более 255 символов)" name="name" value="{$form.p.name}" />
</div>
</div>
<div class="control-group">
<label class="control-label">Описание дисциплины</label>
<div class="controls">
<textarea class="span12 tooltips" rows="3" data-trigger="hover" data-original-title="Опишите в кратце о чем материал" name="descrip">{$form.p.descrip}</textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">Файл дисциплины</label>
<div class="controls">
<input type="file" class="span12 tooltips" data-trigger="hover" data-original-title="Загрузить файл дисциплины (не более 8 Мб)" name="file" />
{if $form.p.file!=''}
скачать: <i class="icon-file"></i> <a href="/upload/sr/{$form.p.file}">{$form.p.file}</a>
{$form.p.ofile}
{/if}
</div>
</div>
<div class="control-group">
<label class="control-label">Лекционный материал</label>
<div class="controls">
<select data-placeholder="Укажите для какой лекции доступен материал" class="chzn-select span12" tabindex="6" name="id_lection">
<option value=""></option>
{foreach from=$form.p.lection item=gr}
<option{if $gr.sel==1} selected{/if} value="{$gr.id}">{$gr.specialnost} {$gr.name}-{$gr.kurs}(сем.{$gr.semestr})</option>
{/foreach}
</select>
</div>
</div>
<div class="form-actions">
{$form.id}
<button type="submit" name="{$form.btn_url}" class="btn btn-success">{$form.btn_name}</button>
</div>
</form>
</div>
</div>
</div>
{/if}
</div>
</div>
</div>