201 lines
6.7 KiB
HTML
201 lines
6.7 KiB
HTML
|
<!-- BEGIN PAGE HEADER-->
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<h3 class="page-title">Учительская СПО</h3>
|
|||
|
<ul class="breadcrumb">
|
|||
|
<li class="active"><a href="/college/admin/">Администрирование</a><span class="divider">/</span></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
{if ($msg == 1)}
|
|||
|
<div class="alert alert-success">
|
|||
|
<button data-dismiss="alert" class="close">×</button>
|
|||
|
<strong>Успешно добавлено!</strong>
|
|||
|
</div>
|
|||
|
{/if}
|
|||
|
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<!--Договоры на кафедры о практике-->
|
|||
|
<div class="row-fluid">
|
|||
|
<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">
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>№</th>
|
|||
|
<th><i class="icon-bullhorn"></i> Название</th>
|
|||
|
<th><i class="icon-bookmark"></i> Категория</th>
|
|||
|
<!--th><i class="icon-bookmark"></i> Операции</th-->
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
{foreach from=$razdels item=razdel key=k}
|
|||
|
<tr>
|
|||
|
<td>{$k+1}</td>
|
|||
|
<td>{$razdel.name}</td>
|
|||
|
<td>{$razdel.category}</td>
|
|||
|
<!--td><span data-id="{$treat.id_tr}" class="badge badge-warning del-treat">Удалить</span></td-->
|
|||
|
</tr>
|
|||
|
{/foreach}
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
|
|||
|
<hr />
|
|||
|
<form name="add_college_razdel" method="post">
|
|||
|
<label>Название: <input type="text" name="name" class="form-control" required /></label>
|
|||
|
<label>Категория:
|
|||
|
<select name="category" class="form-control">
|
|||
|
<option value="1">Учебно-организационный отдел</option>
|
|||
|
<option value="2">Учебно-воспитательный отдел</option>
|
|||
|
<option value="3">Учебно-методический отдел</option>
|
|||
|
<option value="4">Физкультура и спорт</option>
|
|||
|
</select>
|
|||
|
</label>
|
|||
|
<br />
|
|||
|
<input type="submit" name="add_college_razdel" value="Добавить" class="btn btn-success" />
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<!--Договоры на кафедры о практике-->
|
|||
|
<div class="row-fluid">
|
|||
|
<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">
|
|||
|
<table class="table table-striped table-bordered table-advance table-hover">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>№</th>
|
|||
|
<th><i class="icon-bullhorn"></i> Название</th>
|
|||
|
<th><i class="icon-bookmark"></i> Посмотреть</th>
|
|||
|
<th><i class="icon-bookmark"></i> Дата загрузки</th>
|
|||
|
<th><i class="icon-bookmark"></i> Раздел</th>
|
|||
|
<!--th><i class="icon-bookmark"></i> Операции</th-->
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
{foreach from=$docs item=doc key=k}
|
|||
|
<tr>
|
|||
|
<td>{$k+1}</td>
|
|||
|
<td>{$doc.name}</td>
|
|||
|
<td><a href="/{$doc.link}">Посмотреть</a></td>
|
|||
|
<td>{$doc.date_create}</td>
|
|||
|
<td>{$doc.name_razdel}</td>
|
|||
|
<!--td><span data-id="{$treat.id_tr}" class="badge badge-warning del-treat">Удалить</span></td-->
|
|||
|
</tr>
|
|||
|
{/foreach}
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
<!--ДОБАЛЕНИЕ-->
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="span12">
|
|||
|
<div class="row-fluid">
|
|||
|
<div class="widget red">
|
|||
|
<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">
|
|||
|
<span style="color: red;">Все поля обязательны к заполнению!</span>
|
|||
|
|
|||
|
<form name="add_docs" action="" class="form-horizontal" method="POST" enctype="multipart/form-data">
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label" style="min-width: 200px!important;">Раздел</label>
|
|||
|
<div class="controls">
|
|||
|
<div class="input-prepend">
|
|||
|
<select name="id_razdel" class="form-control">
|
|||
|
{foreach from=$razdels item=razdel key=k}
|
|||
|
<option value="{$razdel.id}">{$razdel.name}</option>
|
|||
|
{/foreach}
|
|||
|
</select>
|
|||
|
</div>
|
|||
|
<span class="help-inline"> Выберите из списка</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label" style="min-width: 200px!important;">Наименование документа</label>
|
|||
|
<div class="controls">
|
|||
|
<div class="input-prepend" style="width: 90%;">
|
|||
|
<input type="text" name="name" class="form-control" style="width: 90%;" required />
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="control-group">
|
|||
|
<label class="control-label" style="min-width: 200px!important;">Файл</label>
|
|||
|
<div class="controls">
|
|||
|
<div class="input-prepend" >
|
|||
|
<input type="hidden" name="max_file_size" value="20971520">
|
|||
|
<input type="file" class=" tooltips" data-trigger="hover" data-original-title="Загрузить файл (не более 20 Мб)" name="file" accept=".zip,.rar,.pdf,.doc,.docx,image/jpeg,image/png,image/gif" required />
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<input type="submit" name="add_docs" value="Загрузить" class="btn btn-success" />
|
|||
|
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<script type="text/javascript">
|
|||
|
$(document).ready(function(){
|
|||
|
//удаление договора о практической подготовке
|
|||
|
$(".del-treat").click(function(){
|
|||
|
var id = $(this).data("id");
|
|||
|
|
|||
|
$.ajax({
|
|||
|
url: '/json.php', dataType: 'json', type: 'POST', async: false, data: 'ajdes=delete_treat&id='+id,
|
|||
|
success: function(data){
|
|||
|
alert('Договор удален!');
|
|||
|
location.href='/kafedra/treaties/';
|
|||
|
}
|
|||
|
});
|
|||
|
|
|||
|
});
|
|||
|
|
|||
|
|
|||
|
});
|
|||
|
</script>
|