EIOS/tpl/tpl_grant_scholarship.html

220 lines
8.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.

{function name=settings prefix='' name2=''}
<a name="{$prefix}"></a>
<div class="row-fluid">
<div class="widget red">
<div class="widget-title">
<h4><i class="icon-reorder"></i> {$name2}</h4>
<span class="tools"><a href="javascript:;" class="icon-chevron-down"></a></span>
</div>
<div class="widget-body">
<form name="add_scholarship" action="/grant/scholarship/#{$prefix}" method="post" class="form-horizontal">
<div class="control-group">
<label class="control-label" style="min-width: 200px!important;">Факультет</label>
<div class="controls">
<div class="input-prepend">
<select name="{$prefix}_id_fakultet" class="form-control" style="width: 90%;">
<option value="0">для всех факультетов</option>
{foreach from=$fakultets item=fak}
<option value="{$fak.id}" {if $item.id_fakultet==$fak.id}SELECTED{/if}>{$fak.name}</option>
{/foreach}
</select>
</div>
</div>
</div>
{if $prefix=='years'}
<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="{$prefix}_year" class="form-control" style="width: 90%;" value="{$item.year}" required />
</div>
</div>
</div>
{/if}
<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="{$prefix}_name" class="form-control" style="width: 90%;" value="{$item.name}" placeholder="{if $prefix=='years'}{date('Y')}/{date('Y')+1} учебный год{/if}" 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">
<select name="{$prefix}_status" class="form-control" style="width: 90%;">
<option value="1" {if $item.status==1}SELECTED{/if}>Включен</option>
<option value="0" {if $item.status==0}SELECTED{/if}>Отключен</option>
</select>
</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="number" name="{$prefix}_pos" class="form-control" style="width: 90%;" value="{$item.pos}" required />
</div>
</div>
</div>
{if isset($item.id)&&$item.id!=0}
<input type="hidden" name="{$prefix}_id" value="{$item.id}" />
<input type="submit" class="btn btn-success" name="settings_{$prefix}_edit" value="Редактировать" />
{else}
<input type="submit" class="btn btn-success" name="settings_{$prefix}_add" value="Добавить" />
{/if}
</form>
{if count($items)}
<table class="table table-bordered">
<tr>
<th style="width:10%;">Позиция</th>
<th style="width:20%;">Факультет</th>
{if $prefix=='years'}<th style="width:10%;">Год</th>{/if}
<th>Название</th>
<th style="width:10%;">Действия</th>
</tr>
{foreach from=$items item=item0 key=k}
<tr {if $item0.status==0}style="background:#979292;"{/if}>
<td>{$item0.pos}</td>
<td>{$item0.fakultet.name}</td>
{if $prefix=='years'}<td>{$item0.year}</td>{/if}
<td>{$item0.name}</td>
<td>
<a class="btn btn-danger" href="/grant/scholarship/{$prefix}_del/{$item0.id}/#{$prefix}"><i class="icon-trash "></i></a>
<a class="btn btn-primary" href="/grant/scholarship/{$prefix}_edit/{$item0.id}/#{$prefix}"><i class="icon-pencil"></i></a>
</td>
</tr>
{/foreach}
</table>
{else}
<p>Нет записей "{$name2}"!</p>
{/if}
</div>
</div>
</div>
{/function}
<div class="row-fluid">
<div class="span12">
<h3 class="page-title">Стипендиальное обеспечение. Количество стипендий</h3>
<ul class="breadcrumb">
</ul>
</div>
</div>
{if ($msg == 1)}
<div class="alert alert-success">
<button data-dismiss="alert" class="close">×</button>
<strong>Успешно сохранена!</strong>
</div>
{/if}
{if ($msg == 2)}
<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="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">
<form name="add_scholarship" action="#" method="post" class="form-horizontal">
<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="facultet" class="form-control" style="width: 90%;" value="{$facultet}" readonly 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="year_start" class="form-control">
<option value="2022">2022/2023 учебный год</option>
</select>
</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 class="form-control" name="semestr" style="width: 90%;">
<option value="1">1 семестр (зима)</option>
<option value="2">2 семестр (лето)</option>
</select>
</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="number" name="count_stip" class="form-control" style="width: 90%;" value="1" required />
</div>
</div>
</div>
<input type="submit" class="btn btn-success" name="add_scholarship" value="Добавить" />
</form>
</div>
</div>
</div>
<div class="row-fluid">
<div class="widget blue">
<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-bordered">
<tr>
<th>Учебный год</th>
<th>1 семестр</th>
<th>2 семестр</th>
</tr>
{foreach from=$count_stip_years item=stip key=year}
<tr>
<td>{$year}</td>
<td>{$stip[1]}</td>
<td>{$stip[2]}</td>
</tr>
{/foreach}
</table>
</div>
</div>
</div>
{if $aUSER_id==580}
{settings prefix='years' items=$years_items item=$years_item name2='СПИСОК УЧЕБНЫХ годов'}
{settings prefix='kinds' items=$kinds_items item=$kinds_item name2='НАСТРОЙКИ достижения'}
{settings prefix='regions' items=$regions_items item=$regions_item name2='НАСТРОЙКИ область достижений'}
{settings prefix='statuses' items=$statuses_items item=$statuses_item name2='НАСТРОЙКИ СТАТУС МЕРОПРИЯТИЯ'}
{settings prefix='counts' items=$counts_items item=$counts_item name2='НАСТРОЙКИ ЧИСЛЕННОСТЬ УЧАСТНИКОВ в мероприятии'}
{settings prefix='places' items=$places_items item=$places_item name2='НАСТРОЙКИ место'}
{settings prefix='grants' items=$grants_items item=$grants_item name2='НАСТРОЙКИ виды стипендий'}
{/if}
</div>
</div>