163 lines
6.0 KiB
PHP
163 lines
6.0 KiB
PHP
|
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-13 09:44:30
|
|||
|
compiled from "tpl/tpl_kafedra_software.html" */ ?>
|
|||
|
<?php /*%%SmartyHeaderCode:7853360296256714e4e83f5-78687664%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|||
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|||
|
'file_dependency' =>
|
|||
|
array (
|
|||
|
'71384a316a27599682ede7da2ce808ee739ffec0' =>
|
|||
|
array (
|
|||
|
0 => 'tpl/tpl_kafedra_software.html',
|
|||
|
1 => 1646899910,
|
|||
|
2 => 'file',
|
|||
|
),
|
|||
|
),
|
|||
|
'nocache_hash' => '7853360296256714e4e83f5-78687664',
|
|||
|
'function' =>
|
|||
|
array (
|
|||
|
),
|
|||
|
'variables' =>
|
|||
|
array (
|
|||
|
'msg' => 0,
|
|||
|
'software' => 0,
|
|||
|
'k' => 0,
|
|||
|
'soft' => 0,
|
|||
|
'id_kaf' => 0,
|
|||
|
),
|
|||
|
'has_nocache_code' => false,
|
|||
|
'version' => 'Smarty-3.1.13',
|
|||
|
'unifunc' => 'content_6256714e516f45_88734619',
|
|||
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|||
|
<?php if ($_valid && !is_callable('content_6256714e516f45_88734619')) {function content_6256714e516f45_88734619($_smarty_tpl) {?><!-- 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="/kafedra/software/">Перечень программного обеспечения</a></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<?php if (($_smarty_tpl->tpl_vars['msg']->value==1)){?>
|
|||
|
<div class="alert alert-success">
|
|||
|
<button data-dismiss="alert" class="close">×</button>
|
|||
|
<strong>Информация о ПО добавлена</strong>
|
|||
|
</div>
|
|||
|
<?php }?>
|
|||
|
|
|||
|
<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> Лицензия</th>
|
|||
|
<th class="hidden-phone"> Реквизиты подтверждающего документа</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<?php $_smarty_tpl->tpl_vars['soft'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['soft']->_loop = false;
|
|||
|
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
|||
|
$_from = $_smarty_tpl->tpl_vars['software']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|||
|
foreach ($_from as $_smarty_tpl->tpl_vars['soft']->key => $_smarty_tpl->tpl_vars['soft']->value){
|
|||
|
$_smarty_tpl->tpl_vars['soft']->_loop = true;
|
|||
|
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['soft']->key;
|
|||
|
?>
|
|||
|
<tr>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
|||
|
</td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['soft']->value['name'];?>
|
|||
|
</td>
|
|||
|
<td><?php if (($_smarty_tpl->tpl_vars['soft']->value['paid']==0)){?><span class="badge badge-success">Свободное</span><?php }else{ ?><span class="badge badge-warning">Лицензионное</span><?php }?></td>
|
|||
|
<td><?php echo $_smarty_tpl->tpl_vars['soft']->value['requisite'];?>
|
|||
|
</td>
|
|||
|
<?php } ?>
|
|||
|
</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_software" 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" 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" style="width: 90%;">
|
|||
|
<input type="text" name="requisite" 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" style="width: 90%;">
|
|||
|
<select name="paid" class="form-control">
|
|||
|
<option value="0">Свободно распространяемое ПО</option>
|
|||
|
<option value="1">Лицензионное ПО</option>
|
|||
|
</select>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<input type="hidden" name="id_kaf" value="<?php echo $_smarty_tpl->tpl_vars['id_kaf']->value;?>
|
|||
|
" />
|
|||
|
|
|||
|
|
|||
|
<input type="submit" name="add_software" value="Добавить" class="btn btn-success" />
|
|||
|
|
|||
|
</form>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php }} ?>
|