267 lines
13 KiB
HTML
267 lines
13 KiB
HTML
<!-- 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/workprogram/">Обучать - рабочие программы</a></li>
|
||
<li><a class="btn btn-warning" href="/teach/workprogram/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>Оч.Курс<br>Сем.</th>
|
||
<th>Заоч.Курс<br>Сем.</th>
|
||
<th>Оч-Заоч.Курс<br>Сем.</th>
|
||
<th>Название</th>
|
||
<th>Описание</th>
|
||
<th>Файл</th>
|
||
<th><i class=" icon-edit"></i> </th>
|
||
<th></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{foreach from=$lections item=lc}
|
||
<tr>
|
||
<td nowrap>{$lc.data_c}<br>{$lc.data_u}</td>
|
||
<td>{$lc.specialnost}</td>
|
||
<td>{*$lc.kurs} / {$lc.semestr} {$lc.fo*}
|
||
{foreach from=$lc.kurso item=lcko key=k}{if $lcko==1}{$k+1}{/if}{/foreach}<br>
|
||
{foreach from=$lc.semestro item=lcko key=k}{if $lcko==1}{$k+1}{/if}{/foreach}
|
||
</td>
|
||
<td>
|
||
{foreach from=$lc.kursz item=lckz key=k}{if $lckz==1}{$k+1}{/if}{/foreach}<br>
|
||
{foreach from=$lc.semestrz item=lcko key=k}{if $lcko==1}{$k+1}{/if}{/foreach}
|
||
</td>
|
||
<td>
|
||
{foreach from=$lc.kursoz item=lckoz key=k}{if $lckoz==1}{$k+1}{/if}{/foreach}<br>
|
||
{foreach from=$lc.semestroz item=lckoz key=k}{if $lckoz==1}{$k+1}{/if}{/foreach}
|
||
</td>
|
||
<td>{$lc.name}</td>
|
||
<td>{$lc.descrip}</td>
|
||
<td nowarp>{if $lc.file!=''}
|
||
<i class="icon-file"></i> <a href="/upload/workprogram/{$lc.file}">скачать файл</a>
|
||
{else}
|
||
<span class="label label-important label-mini">нет файла</span>
|
||
{/if}</td>
|
||
<td nowarp>
|
||
<a class="btn btn-primary" href="/teach/workprogram/edit/{$lc.id}/"><i class="icon-pencil"></i></a>
|
||
<a class="btn btn-danger" href="/teach/workprogram/del/{$lc.id}/" onclick="return confirm('Вы уверены, что хотите удалить?')"><i class="icon-trash "></i></a>
|
||
</td>
|
||
<td></td>
|
||
</tr>
|
||
{/foreach}
|
||
</tbody>
|
||
</table>
|
||
{if isset($pagination)}
|
||
<div class="pagination pagination-large">
|
||
<ul>
|
||
{if $pagination.kol<=15}
|
||
{for $p=1 to $pagination.kol}
|
||
<li><a href="/teach/workprogram/p{$p}/"{if $pagination.page==$p} class=" label-warning"{/if}>{$p}</a></li>
|
||
{/for}
|
||
{else}
|
||
{if $pagination.page>4}
|
||
<li><a href="/teach/workprogram/p1/">1</a></li>
|
||
<li><a href="#">...</a></li>
|
||
{for $p=($pagination.page-3) to ($pagination.page+3)}
|
||
<li><a href="/teach/workprogram/p{$p}/"{if $pagination.page==$p} class=" label-warning"{/if}>{$p}</a></li>
|
||
{/for}
|
||
<li><a href="#">...</a></li>
|
||
<li><a href="/teach/workprogram/p{$pagination.kol}/">{$pagination.kol}</a></li>
|
||
{else}
|
||
{for $p=1 to 5}
|
||
<li><a href="/teach/workprogram/p{$p}/"{if $pagination.page==$p} class=" label-warning"{/if}>{$p}</a></li>
|
||
{/for}
|
||
<li><a href="#">...</a></li>
|
||
{for $p=($pagination.kol-5) to $pagination.kol}
|
||
<li><a href="/teach/workprogram/p{$p}/"{if $pagination.page==$p} class=" label-warning"{/if}>{$p}</a></li>
|
||
{/for}
|
||
{/if}
|
||
{/if}
|
||
</ul>
|
||
</div>
|
||
{/if}
|
||
{/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="specialnost" value="{$form.p.specialnost}" />
|
||
</div>
|
||
</div>
|
||
<div class="row-fluid">
|
||
<div class="span4">
|
||
<div class="control-group">
|
||
<label class="control-label">Форма обучения</label>
|
||
<div class="controls">
|
||
<input type="CHECKBOX" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения очная, отметьте если для очников рабочая программа эта же" name="fo1" value="оч" style=" width:26px;" {if $form.p.fo1=="оч"}CHECKED{/if}/> <span style="font-size:16px;">очная</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Курс</label>
|
||
<div class="controls">
|
||
{for $i=0 to 5}
|
||
<input type="CHECKBOX" class="span12" name="kurso[{$i}]" value="1" style=" width:26px;" {if $form.p.kurso[$i]==1}CHECKED{/if}/> <span style="font-size:16px;">{$i+1}</span>
|
||
{/for}
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Семестр</label>
|
||
<div class="controls">
|
||
{for $i=0 to 11}
|
||
<input type="CHECKBOX" class="span12" name="semestro[{$i}]" value="1" style=" width:26px;" {if $form.p.semestro[$i]==1}CHECKED{/if}/> <span style="font-size:16px;">{$i+1}</span>
|
||
{/for}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="span4">
|
||
<div class="control-group">
|
||
<label class="control-label">Форма обучения</label>
|
||
<div class="controls">
|
||
<input type="CHECKBOX" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения заочная, отметьте если и для заочников рабочая программа эта же" name="fo2" value="заоч" style=" width:26px;" {if $form.p.fo2=="заоч"}CHECKED{/if} /> <span style="font-size:16px;">заочная</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Курс</label>
|
||
<div class="controls">
|
||
{for $i=0 to 5}
|
||
<input type="CHECKBOX" class="span12" name="kursz[{$i}]" value="1" style=" width:26px;" {if $form.p.kursz[$i]==1}CHECKED{/if}/> <span style="font-size:16px;">{$i+1}</span>
|
||
{/for}
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Семестр</label>
|
||
<div class="controls">
|
||
{for $i=0 to 11}
|
||
<input type="CHECKBOX" class="span12" name="semestrz[{$i}]" value="1" style=" width:26px;" {if $form.p.semestrz[$i]==1}CHECKED{/if}/> <span style="font-size:16px;">{$i+1}</span>
|
||
{/for}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="span4">
|
||
<div class="control-group">
|
||
<label class="control-label">Форма обучения</label>
|
||
<div class="controls">
|
||
<input type="CHECKBOX" class="span12 tooltips" data-trigger="hover" data-original-title="форма обучения очно-заочная, отметьте если и для очно-заочной формы обучения рабочая программа эта же" name="fo3" value="оч-заоч" style=" width:26px;" {if $form.p.fo3=="оч-заоч"}CHECKED{/if} /> <span style="font-size:16px;">очно-заочная</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Курс</label>
|
||
<div class="controls">
|
||
{for $i=0 to 5}
|
||
<input type="CHECKBOX" class="span12" name="kursoz[{$i}]" value="1" style=" width:26px;" {if $form.p.kursoz[$i]==1}CHECKED{/if}/> <span style="font-size:16px;">{$i+1}</span>
|
||
{/for}
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">Семестр</label>
|
||
<div class="controls">
|
||
{for $i=0 to 11}
|
||
<input type="CHECKBOX" class="span12" name="semestroz[{$i}]" value="1" style=" width:26px;" {if $form.p.semestroz[$i]==1}CHECKED{/if}/> <span style="font-size:16px;">{$i+1}</span>
|
||
{/for}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<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/workprogram/{$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" multiple="multiple" tabindex="6" name="l_g[]">
|
||
<option value=""></option>
|
||
{foreach from=$form.p.grupp item=gr}
|
||
<option{if $gr.sel==1} selected{/if} value="{$gr.id}">{$gr.sokr}-{$gr.kurs} {$gr.fo}</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>
|