521 lines
34 KiB
PHP
521 lines
34 KiB
PHP
<?php /* Smarty version Smarty-3.1.13, created on 2022-04-12 14:09:00
|
||
compiled from "tpl/tpl_teacher_ocenki_fakultet_svodnaya.html" */ ?>
|
||
<?php /*%%SmartyHeaderCode:176359145462555dcc9e0493-67514324%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||
$_valid = $_smarty_tpl->decodeProperties(array (
|
||
'file_dependency' =>
|
||
array (
|
||
'75ddd2c4bdb5a99f792b45dbc378b354320c331f' =>
|
||
array (
|
||
0 => 'tpl/tpl_teacher_ocenki_fakultet_svodnaya.html',
|
||
1 => 1559550624,
|
||
2 => 'file',
|
||
),
|
||
),
|
||
'nocache_hash' => '176359145462555dcc9e0493-67514324',
|
||
'function' =>
|
||
array (
|
||
'shapka' =>
|
||
array (
|
||
'parameter' =>
|
||
array (
|
||
's' => 0,
|
||
),
|
||
'compiled' => '',
|
||
),
|
||
'niztable' =>
|
||
array (
|
||
'parameter' =>
|
||
array (
|
||
's' => 1,
|
||
),
|
||
'compiled' => '',
|
||
),
|
||
),
|
||
'variables' =>
|
||
array (
|
||
's' => 0,
|
||
'fo' => 0,
|
||
'user' => 0,
|
||
'kurs' => 0,
|
||
'gruppa' => 0,
|
||
'page' => 0,
|
||
'site' => 0,
|
||
'typeatt' => 0,
|
||
'ocenki' => 0,
|
||
'ol' => 0,
|
||
'st' => 0,
|
||
'stk' => 0,
|
||
'regim' => 0,
|
||
'k' => 0,
|
||
'os' => 0,
|
||
'neupv' => 0,
|
||
'Gdata' => 0,
|
||
'tekatt5' => 0,
|
||
'tekatt4' => 0,
|
||
'tekatt3' => 0,
|
||
'tekatt2' => 0,
|
||
'neyavk' => 0,
|
||
'zach' => 0,
|
||
'nezach' => 0,
|
||
'pr' => 0,
|
||
),
|
||
'has_nocache_code' => 0,
|
||
'version' => 'Smarty-3.1.13',
|
||
'unifunc' => 'content_62555dccadbc41_31154366',
|
||
),false); /*/%%SmartyHeaderCode%%*/?>
|
||
<?php if ($_valid && !is_callable('content_62555dccadbc41_31154366')) {function content_62555dccadbc41_31154366($_smarty_tpl) {?><?php if (!function_exists('smarty_template_function_shapka')) {
|
||
function smarty_template_function_shapka($_smarty_tpl,$params) {
|
||
$saved_tpl_vars = $_smarty_tpl->tpl_vars;
|
||
foreach ($_smarty_tpl->smarty->template_functions['shapka']['parameter'] as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);};
|
||
foreach ($params as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);}?>
|
||
<center style="font-size:12px;">Федеральное государственное бюджетное образовательное учреждение высшего образования</center>
|
||
<center style="font-size:20px;font-weight:bold;">"МАЙКОПСКИЙ ГОСУДАРСТВЕННЫЙ ТЕХНОЛОГИЧЕСКИЙ УНИВЕРСИТЕТ"</center>
|
||
<?php if ($_smarty_tpl->tpl_vars['s']->value==0){?><center style="font-weight:bold;">СВОДНАЯ ВЕДОМОСТЬ № _______ <?php if ($_smarty_tpl->tpl_vars['fo']->value=="оч"){?>очная<?php }?><?php if ($_smarty_tpl->tpl_vars['fo']->value=="заоч"){?>заочная<?php }?> форма обучения</center><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['s']->value==1){?><center style="font-weight:bold;">СВОДНАЯ ВЕДОМОСТЬ ТЕКУЩЕЙ АТТЕСТАЦИИ № _______ <?php if ($_smarty_tpl->tpl_vars['fo']->value=="оч"){?>очная<?php }?><?php if ($_smarty_tpl->tpl_vars['fo']->value=="заоч"){?>заочная<?php }?> форма обучения</center><?php }?>
|
||
<center style="font-weight:bold;"><u><?php echo $_smarty_tpl->tpl_vars['user']->value['teacher']['fakultet'];?>
|
||
</u></center>
|
||
<center style=""><u><b><?php if (date('m')>=10){?><?php echo date('Y');?>
|
||
</b> / <b><?php echo date('Y')+1;?>
|
||
<?php }else{ ?><?php echo date('Y')-1;?>
|
||
</b> / <b><?php echo date('Y');?>
|
||
<?php }?></b></u> учебный год Курс <b><u><?php echo $_smarty_tpl->tpl_vars['kurs']->value;?>
|
||
</u></b> группа <b><u id="podgruppa"><?php echo $_smarty_tpl->tpl_vars['gruppa']->value;?>
|
||
-<?php echo $_smarty_tpl->tpl_vars['kurs']->value;?>
|
||
</u>
|
||
<select style="border: 0; display: none;" id="sel-podgruppa">
|
||
<option value=""></option>
|
||
<option value="0">0</option>
|
||
<option value="1">1</option>
|
||
<option value="2">2</option>
|
||
<option value="3">3</option>
|
||
<option value="4">4</option>
|
||
<option value="5">5</option>
|
||
<option value="6">6</option>
|
||
<option value="7">7</option>
|
||
<option value="8">8</option>
|
||
<option value="9">9</option>
|
||
</select>
|
||
</b></center>
|
||
<br>
|
||
<?php $_smarty_tpl->tpl_vars = $saved_tpl_vars;
|
||
foreach (Smarty::$global_tpl_vars as $key => $value) if(!isset($_smarty_tpl->tpl_vars[$key])) $_smarty_tpl->tpl_vars[$key] = $value;}}?>
|
||
|
||
<?php if (!function_exists('smarty_template_function_niztable')) {
|
||
function smarty_template_function_niztable($_smarty_tpl,$params) {
|
||
$saved_tpl_vars = $_smarty_tpl->tpl_vars;
|
||
foreach ($_smarty_tpl->smarty->template_functions['niztable']['parameter'] as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);};
|
||
foreach ($params as $key => $value) {$_smarty_tpl->tpl_vars[$key] = new Smarty_variable($value);}?>
|
||
<br>
|
||
<table class="tb_noborder tb_w_700">
|
||
<tr><td>Декан факультета</td><td class="tb_td_niz"></td></tr>
|
||
<tr><td>Представитель УМУ:</td><td class="tb_td_niz"></td></tr>
|
||
</table>
|
||
<div class="new_page"></div>
|
||
<?php $_smarty_tpl->tpl_vars = $saved_tpl_vars;
|
||
foreach (Smarty::$global_tpl_vars as $key => $value) if(!isset($_smarty_tpl->tpl_vars[$key])) $_smarty_tpl->tpl_vars[$key] = $value;}}?>
|
||
|
||
<!DOCTYPE html>
|
||
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
|
||
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
|
||
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<title><?php echo $_smarty_tpl->tpl_vars['page']->value['name'];?>
|
||
<?php echo $_smarty_tpl->tpl_vars['site']->value['name'];?>
|
||
</title>
|
||
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
|
||
<meta content="" name="description" />
|
||
<meta content="" name="author" />
|
||
<link href="/tpl/css/print.css" rel="stylesheet" />
|
||
</head>
|
||
<style>
|
||
.tb_noborder{ border:none; }
|
||
.tb_noborder td{ border:none; }
|
||
.tb_nocenter{ margin: }
|
||
.tb_td_niz{ border-bottom:1px solid #000!important;width:60%; }
|
||
.tb_w_700{ width:90%; }
|
||
table th{
|
||
font-size:12px;
|
||
}
|
||
table td{
|
||
font-size:12px;
|
||
padding:6px;
|
||
line-height:12px;
|
||
}
|
||
p.vertical{
|
||
-webkit-transform: rotate(-90deg);
|
||
-moz-transform: rotate(-90deg);
|
||
-ms-transform: rotate(-90deg);
|
||
-o-transform: rotate(-90deg);
|
||
transform: rotate(-90deg);
|
||
}
|
||
</style>
|
||
<body class="fixed-top">
|
||
<div class="row-fluid">
|
||
<div class="span12">
|
||
<div class="row-fluid">
|
||
<?php if ($_smarty_tpl->tpl_vars['typeatt']->value==3){?>
|
||
<?php smarty_template_function_shapka($_smarty_tpl,array('gruppname'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['name'],'gruppa'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['sokr'],'kurs'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['kurs'],'fo'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['fo'],'specialnost'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['specialnost'],'s'=>1));?>
|
||
|
||
<table class="table table-striped table-bordered table-advance table-hover tb_w_700">
|
||
<tr>
|
||
<td rowspan="2">№</td>
|
||
<td rowspan="2">Ф.И.О.</td>
|
||
<?php $_smarty_tpl->tpl_vars['ol'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ol']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ocenki']->value['lections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['ol']->key => $_smarty_tpl->tpl_vars['ol']->value){
|
||
$_smarty_tpl->tpl_vars['ol']->_loop = true;
|
||
?>
|
||
<td colspan="2" style="height:120px;">
|
||
<p class="vertical"><?php echo $_smarty_tpl->tpl_vars['ol']->value['name'];?>
|
||
</p><br /><br /><br />
|
||
<?php if ($_smarty_tpl->tpl_vars['ol']->value['prepod_name']!=''){?><p><b>Преподаватель:</b><br />(<?php echo $_smarty_tpl->tpl_vars['ol']->value['prepod_name'];?>
|
||
)</p><?php }?>
|
||
</td>
|
||
<?php } ?>
|
||
</tr>
|
||
<tr>
|
||
<?php $_smarty_tpl->tpl_vars['ol'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ol']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ocenki']->value['lections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['ol']->key => $_smarty_tpl->tpl_vars['ol']->value){
|
||
$_smarty_tpl->tpl_vars['ol']->_loop = true;
|
||
?>
|
||
<td style="width:30px">оц.</td>
|
||
<td style="width:30px;background:#d2d2d2;">пр.</td>
|
||
<?php } ?>
|
||
</tr>
|
||
<?php $_smarty_tpl->tpl_vars['st'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['st']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['stk'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['ocenki']->value['students']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['st']->key => $_smarty_tpl->tpl_vars['st']->value){
|
||
$_smarty_tpl->tpl_vars['st']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['stk']->value = $_smarty_tpl->tpl_vars['st']->key;
|
||
?>
|
||
<?php if ($_smarty_tpl->tpl_vars['st']->value['user']['status']!="-1"){?>
|
||
<tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['stk']->value+1;?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['st']->value['user']['fio'];?>
|
||
</td>
|
||
<?php $_smarty_tpl->tpl_vars['ol'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ol']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ocenki']->value['lections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['ol']->key => $_smarty_tpl->tpl_vars['ol']->value){
|
||
$_smarty_tpl->tpl_vars['ol']->_loop = true;
|
||
?>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['ocenki']->value['saves']['ol'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['st']->value['id']][1];?>
|
||
</td>
|
||
<td style="background:#d2d2d2;"><?php echo $_smarty_tpl->tpl_vars['ocenki']->value['saves']['propusk'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['st']->value['id']];?>
|
||
</td>
|
||
<?php } ?>
|
||
</tr>
|
||
<?php }?>
|
||
<?php } ?>
|
||
</table>
|
||
<?php smarty_template_function_niztable($_smarty_tpl,array());?>
|
||
|
||
<?php }?>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['typeatt']->value==4){?>
|
||
<?php smarty_template_function_shapka($_smarty_tpl,array('gruppname'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['name'],'gruppa'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['sokr'],'kurs'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['kurs'],'fo'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['fo'],'specialnost'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['specialnost'],'s'=>0));?>
|
||
|
||
<table class="table table-striped table-bordered table-advance table-hover tb_w_700">
|
||
<tr>
|
||
<td>№</td>
|
||
<td>Ф.И.О.</td>
|
||
<?php $_smarty_tpl->tpl_vars['ol'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ol']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ocenki']->value['lections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['ol']->key => $_smarty_tpl->tpl_vars['ol']->value){
|
||
$_smarty_tpl->tpl_vars['ol']->_loop = true;
|
||
?>
|
||
<td style="height:220px;"><p class="vertical"><?php echo $_smarty_tpl->tpl_vars['ol']->value['name'];?>
|
||
</p></td>
|
||
<?php } ?>
|
||
</tr>
|
||
<?php $_smarty_tpl->tpl_vars['st'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['st']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['stk'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['ocenki']->value['students']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['st']->key => $_smarty_tpl->tpl_vars['st']->value){
|
||
$_smarty_tpl->tpl_vars['st']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['stk']->value = $_smarty_tpl->tpl_vars['st']->key;
|
||
?>
|
||
<?php if ($_smarty_tpl->tpl_vars['st']->value['user']['status']!="-1"){?>
|
||
<tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['stk']->value+1;?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['st']->value['user']['fio'];?>
|
||
</td>
|
||
<?php $_smarty_tpl->tpl_vars['ol'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ol']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ocenki']->value['lections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['ol']->key => $_smarty_tpl->tpl_vars['ol']->value){
|
||
$_smarty_tpl->tpl_vars['ol']->_loop = true;
|
||
?>
|
||
<td style="width:80px;"><?php echo $_smarty_tpl->tpl_vars['ocenki']->value['saves']['ol'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['st']->value['id']][2];?>
|
||
</td>
|
||
<?php } ?>
|
||
</tr>
|
||
<?php }?>
|
||
<?php } ?>
|
||
</table>
|
||
<?php smarty_template_function_niztable($_smarty_tpl,array());?>
|
||
|
||
<?php }?>
|
||
|
||
<?php if ($_smarty_tpl->tpl_vars['regim']->value=='ocenki_fakultet'){?>
|
||
<div class="span12">
|
||
<div class="row-fluid">
|
||
<?php if (count($_smarty_tpl->tpl_vars['ocenki']->value['students'])){?>
|
||
<?php $_smarty_tpl->tpl_vars['ol'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ol']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ocenki']->value['lections']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['ol']->key => $_smarty_tpl->tpl_vars['ol']->value){
|
||
$_smarty_tpl->tpl_vars['ol']->_loop = true;
|
||
?>
|
||
<?php if ($_smarty_tpl->tpl_vars['typeatt']->value==2){?>
|
||
<?php smarty_template_function_shapka($_smarty_tpl,array('gruppname'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['name'],'gruppa'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['sokr'],'kurs'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['kurs'],'semestr'=>$_smarty_tpl->tpl_vars['ol']->value['semestr'],'fo'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['fo'],'specialnost'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['specialnost'],'disciplina'=>$_smarty_tpl->tpl_vars['ol']->value['name'],'fioprep'=>$_smarty_tpl->tpl_vars['ol']->value['fioprep'],'datas'=>$_smarty_tpl->tpl_vars['ocenki']->value['datas']['ol'][$_smarty_tpl->tpl_vars['ol']->value['id']],'s'=>0));?>
|
||
|
||
<table class="table table-striped table-bordered table-advance table-hover tb_w_700">
|
||
<thead><tr>
|
||
<th>№</th>
|
||
<th>Фамилия, инициалы</th>
|
||
<th>№ зачетной книжки</th>
|
||
<th>Отметка о выполнении<br>(невыполнении)<br>учебного плана<br>("УПВ"/"УПНВ")</th>
|
||
<th>Зачетная оценка</th>
|
||
</tr></thead>
|
||
<?php $_smarty_tpl->tpl_vars["neupv"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["tekatt5"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["tekatt4"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["tekatt3"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["tekatt2"] = new Smarty_variable("0", null, 0);?>
|
||
<tbody><?php $_smarty_tpl->tpl_vars['os'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['os']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['ocenki']->value['students']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['os']->key => $_smarty_tpl->tpl_vars['os']->value){
|
||
$_smarty_tpl->tpl_vars['os']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['os']->key;
|
||
?><tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['os']->value['user']['fio'];?>
|
||
</td>
|
||
<td class="center"><?php if ($_smarty_tpl->tpl_vars['os']->value['num_zach']!=''){?><?php echo $_smarty_tpl->tpl_vars['os']->value['num_zach'];?>
|
||
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['os']->value['num_stud'];?>
|
||
<?php }?></td>
|
||
<td class="center"><?php echo $_smarty_tpl->tpl_vars['ocenki']->value['saves']['upv'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']];?>
|
||
</td>
|
||
<td class="center"><?php echo $_smarty_tpl->tpl_vars['ocenki']->value['saves']['ol'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][2];?>
|
||
</td>
|
||
<?php if ($_smarty_tpl->tpl_vars['ocenki']->value['saves']['upv'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']]!="УПВ"){?><?php $_smarty_tpl->tpl_vars["neupv"] = new Smarty_variable($_smarty_tpl->tpl_vars['neupv']->value+1, null, 0);?><?php }?>
|
||
</tr><?php } ?></tbody>
|
||
</table>
|
||
<?php smarty_template_function_niztable($_smarty_tpl,array('kolstud'=>count($_smarty_tpl->tpl_vars['ocenki']->value['students']),'Gdata'=>$_smarty_tpl->tpl_vars['Gdata']->value,'neupv'=>$_smarty_tpl->tpl_vars['neupv']->value,'tekatt5'=>$_smarty_tpl->tpl_vars['tekatt5']->value,'tekatt4'=>$_smarty_tpl->tpl_vars['tekatt4']->value,'tekatt3'=>$_smarty_tpl->tpl_vars['tekatt3']->value,'tekatt2'=>$_smarty_tpl->tpl_vars['tekatt2']->value,'fioprep'=>$_smarty_tpl->tpl_vars['ol']->value['fioprep']));?>
|
||
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['typeatt']->value==1){?>
|
||
<?php smarty_template_function_shapka($_smarty_tpl,array('gruppname'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['name'],'gruppa'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['sokr'],'kurs'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['kurs'],'semestr'=>$_smarty_tpl->tpl_vars['ol']->value['semestr'],'fo'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['fo'],'specialnost'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['specialnost'],'disciplina'=>$_smarty_tpl->tpl_vars['ol']->value['name'],'fioprep'=>$_smarty_tpl->tpl_vars['ol']->value['fioprep'],'datas'=>$_smarty_tpl->tpl_vars['ocenki']->value['datas']['ol'][$_smarty_tpl->tpl_vars['ol']->value['id']],'s'=>1));?>
|
||
|
||
<table class="table table-striped table-bordered table-advance table-hover tb_w_700">
|
||
<thead><tr>
|
||
<th>№</th>
|
||
<th>Фамилия, инициалы</th>
|
||
<th>№ зачетной книжки</th>
|
||
<th>Пропуски</th>
|
||
<th>Текущая аттестация</th>
|
||
</tr></thead>
|
||
<?php $_smarty_tpl->tpl_vars["neupv"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["tekatt5"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["tekatt4"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["tekatt3"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["tekatt2"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["neyavk"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["zach"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["nezach"] = new Smarty_variable("0", null, 0);?>
|
||
<tbody><?php $_smarty_tpl->tpl_vars['os'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['os']->_loop = false;
|
||
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
|
||
$_from = $_smarty_tpl->tpl_vars['ocenki']->value['students']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['os']->key => $_smarty_tpl->tpl_vars['os']->value){
|
||
$_smarty_tpl->tpl_vars['os']->_loop = true;
|
||
$_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['os']->key;
|
||
?><tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['k']->value+1;?>
|
||
</td>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['os']->value['user']['fio'];?>
|
||
</td>
|
||
<td class="center"><?php if ($_smarty_tpl->tpl_vars['os']->value['num_zach']!=''){?><?php echo $_smarty_tpl->tpl_vars['os']->value['num_zach'];?>
|
||
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['os']->value['num_stud'];?>
|
||
<?php }?></td>
|
||
<td class="center"><?php echo $_smarty_tpl->tpl_vars['ocenki']->value['saves']['propusk'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']];?>
|
||
</td>
|
||
<td class="center"><?php if ($_smarty_tpl->tpl_vars['ocenki']->value['saves']['ol'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][1]=="зачет"){?>зачтено<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['ocenki']->value['saves']['ol'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][1];?>
|
||
<?php }?></td>
|
||
<?php if ($_smarty_tpl->tpl_vars['ocenki']->value['saves']['ol'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][1]==5){?><?php $_smarty_tpl->tpl_vars["tekatt5"] = new Smarty_variable($_smarty_tpl->tpl_vars['tekatt5']->value+1, null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['ocenki']->value['saves']['ol'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][1]==4){?><?php $_smarty_tpl->tpl_vars["tekatt4"] = new Smarty_variable($_smarty_tpl->tpl_vars['tekatt4']->value+1, null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['ocenki']->value['saves']['ol'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][1]==3){?><?php $_smarty_tpl->tpl_vars["tekatt3"] = new Smarty_variable($_smarty_tpl->tpl_vars['tekatt3']->value+1, null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['ocenki']->value['saves']['ol'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][1]==2){?><?php $_smarty_tpl->tpl_vars["tekatt2"] = new Smarty_variable($_smarty_tpl->tpl_vars['tekatt2']->value+1, null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['ocenki']->value['saves']['ol'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][1]=="неявка"){?><?php $_smarty_tpl->tpl_vars["neyavk"] = new Smarty_variable($_smarty_tpl->tpl_vars['neyavk']->value+1, null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['ocenki']->value['saves']['ol'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][1]=="зачет"){?><?php $_smarty_tpl->tpl_vars["zach"] = new Smarty_variable($_smarty_tpl->tpl_vars['zach']->value+1, null, 0);?><?php }else{ ?><?php $_smarty_tpl->tpl_vars["nezach"] = new Smarty_variable($_smarty_tpl->tpl_vars['nezach']->value+1, null, 0);?><?php }?>
|
||
</tr><?php } ?></tbody>
|
||
</table>
|
||
<?php smarty_template_function_niztable($_smarty_tpl,array('kolstud'=>count($_smarty_tpl->tpl_vars['ocenki']->value['students']),'Gdata'=>$_smarty_tpl->tpl_vars['Gdata']->value,'neupv'=>$_smarty_tpl->tpl_vars['neupv']->value,'tekatt5'=>$_smarty_tpl->tpl_vars['tekatt5']->value,'tekatt4'=>$_smarty_tpl->tpl_vars['tekatt4']->value,'tekatt3'=>$_smarty_tpl->tpl_vars['tekatt3']->value,'tekatt2'=>$_smarty_tpl->tpl_vars['tekatt2']->value,'neyavk'=>$_smarty_tpl->tpl_vars['neyavk']->value,'fioprep'=>$_smarty_tpl->tpl_vars['ol']->value['fioprep'],'zach'=>$_smarty_tpl->tpl_vars['zach']->value,'nezach'=>$_smarty_tpl->tpl_vars['nezach']->value));?>
|
||
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['typeatt']->value==1){?>
|
||
<?php if (count($_smarty_tpl->tpl_vars['ol']->value['kursov'])){?>
|
||
<?php $_smarty_tpl->tpl_vars['pr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ol']->value['kursov']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['pr']->key => $_smarty_tpl->tpl_vars['pr']->value){
|
||
$_smarty_tpl->tpl_vars['pr']->_loop = true;
|
||
?>
|
||
<?php smarty_template_function_shapka($_smarty_tpl,array('gruppname'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['name'],'gruppa'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['sokr'],'kurs'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['kurs'],'semestr'=>$_smarty_tpl->tpl_vars['ol']->value['semestr'],'fo'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['fo'],'specialnost'=>$_smarty_tpl->tpl_vars['ocenki']->value['grupp']['specialnost'],'disciplina'=>$_smarty_tpl->tpl_vars['ol']->value['name'],'fioprep'=>$_smarty_tpl->tpl_vars['ol']->value['fioprep'],'datas'=>$_smarty_tpl->tpl_vars['ocenki']->value['datas']['kur'][$_smarty_tpl->tpl_vars['ol']->value['id']],'s'=>2));?>
|
||
|
||
<table class="table table-striped table-bordered table-advance table-hover tb_w_700">
|
||
<thead><tr>
|
||
<th>ФИО</th>
|
||
<th>Номер зачетки</th>
|
||
<th>Промежуточная(зачет,экзамен)</th>
|
||
</tr></thead>
|
||
<?php $_smarty_tpl->tpl_vars["neupv"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["tekatt5"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["tekatt4"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["tekatt3"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["tekatt2"] = new Smarty_variable("0", null, 0);?>
|
||
<?php $_smarty_tpl->tpl_vars["neyavk"] = new Smarty_variable("0", null, 0);?>
|
||
<tbody><?php $_smarty_tpl->tpl_vars['os'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['os']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ocenki']->value['students']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['os']->key => $_smarty_tpl->tpl_vars['os']->value){
|
||
$_smarty_tpl->tpl_vars['os']->_loop = true;
|
||
?><tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['os']->value['user']['fio'];?>
|
||
</td>
|
||
<td class="center"><?php if ($_smarty_tpl->tpl_vars['os']->value['num_zach']!=''){?><?php echo $_smarty_tpl->tpl_vars['os']->value['num_zach'];?>
|
||
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['os']->value['num_stud'];?>
|
||
<?php }?></td>
|
||
<td class="center"><?php echo $_smarty_tpl->tpl_vars['ocenki']->value['saves']['kur'][$_smarty_tpl->tpl_vars['pr']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][2];?>
|
||
</td>
|
||
<?php if ($_smarty_tpl->tpl_vars['ocenki']->value['saves']['kur'][$_smarty_tpl->tpl_vars['pr']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][2]==5){?><?php $_smarty_tpl->tpl_vars["tekatt5"] = new Smarty_variable($_smarty_tpl->tpl_vars['tekatt5']->value+1, null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['ocenki']->value['saves']['kur'][$_smarty_tpl->tpl_vars['pr']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][2]==4){?><?php $_smarty_tpl->tpl_vars["tekatt4"] = new Smarty_variable($_smarty_tpl->tpl_vars['tekatt4']->value+1, null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['ocenki']->value['saves']['kur'][$_smarty_tpl->tpl_vars['pr']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][2]==3){?><?php $_smarty_tpl->tpl_vars["tekatt3"] = new Smarty_variable($_smarty_tpl->tpl_vars['tekatt3']->value+1, null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['ocenki']->value['saves']['kur'][$_smarty_tpl->tpl_vars['pr']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][2]==2){?><?php $_smarty_tpl->tpl_vars["tekatt2"] = new Smarty_variable($_smarty_tpl->tpl_vars['tekatt2']->value+1, null, 0);?><?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['ocenki']->value['saves']['ol'][$_smarty_tpl->tpl_vars['ol']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][1]=="неявка"){?><?php $_smarty_tpl->tpl_vars["neyavk"] = new Smarty_variable($_smarty_tpl->tpl_vars['neyavk']->value+1, null, 0);?><?php }?>
|
||
</tr><?php } ?></tbody>
|
||
</table>
|
||
<?php } ?>
|
||
<?php smarty_template_function_niztable($_smarty_tpl,array('kolstud'=>count($_smarty_tpl->tpl_vars['ocenki']->value['students']),'Gdata'=>$_smarty_tpl->tpl_vars['Gdata']->value,'neupv'=>$_smarty_tpl->tpl_vars['neupv']->value,'tekatt5'=>$_smarty_tpl->tpl_vars['tekatt5']->value,'tekatt4'=>$_smarty_tpl->tpl_vars['tekatt4']->value,'tekatt3'=>$_smarty_tpl->tpl_vars['tekatt3']->value,'tekatt2'=>$_smarty_tpl->tpl_vars['tekatt2']->value,'neyavk'=>$_smarty_tpl->tpl_vars['neyavk']->value,'fioprep'=>$_smarty_tpl->tpl_vars['ol']->value['fioprep']));?>
|
||
|
||
<?php }?>
|
||
<?php }?>
|
||
<?php if ($_smarty_tpl->tpl_vars['typeatt']->value==1){?>
|
||
<?php if (count($_smarty_tpl->tpl_vars['ol']->value['practich'])||count($_smarty_tpl->tpl_vars['ol']->value['controln'])||count($_smarty_tpl->tpl_vars['ol']->value['praktika'])){?>
|
||
<h2>Остальные предметы</h2>
|
||
<p><u><?php echo $_smarty_tpl->tpl_vars['ol']->value['name'];?>
|
||
</u><br>Специальность:<?php echo $_smarty_tpl->tpl_vars['ol']->value['specialnost'];?>
|
||
<br>курс:<u><?php echo $_smarty_tpl->tpl_vars['ol']->value['kurs'];?>
|
||
</u> сем.:<u><?php echo $_smarty_tpl->tpl_vars['ol']->value['semestr'];?>
|
||
</u><br>Преподаватель: <u><?php echo $_smarty_tpl->tpl_vars['ol']->value['fioprep'];?>
|
||
</u></p>
|
||
<table class="table table-striped table-bordered table-advance table-hover">
|
||
<thead><tr>
|
||
<th rowspan="2">ФИО</th>
|
||
<th rowspan="2">Номер зачетки</th>
|
||
<?php if (count($_smarty_tpl->tpl_vars['ol']->value['practich'])){?><th colspan="<?php echo count($_smarty_tpl->tpl_vars['ol']->value['practich']);?>
|
||
">Практические</th><?php }?>
|
||
<?php if (count($_smarty_tpl->tpl_vars['ol']->value['controln'])){?><th colspan="<?php echo count($_smarty_tpl->tpl_vars['ol']->value['controln']);?>
|
||
">Контрольные</th><?php }?>
|
||
<?php if (count($_smarty_tpl->tpl_vars['ol']->value['praktika'])){?><th colspan="<?php echo count($_smarty_tpl->tpl_vars['ol']->value['praktika']);?>
|
||
">Практика</th><?php }?>
|
||
</tr>
|
||
<tr>
|
||
<?php if (count($_smarty_tpl->tpl_vars['ol']->value['practich'])){?><?php $_smarty_tpl->tpl_vars['pr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ol']->value['practich']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['pr']->key => $_smarty_tpl->tpl_vars['pr']->value){
|
||
$_smarty_tpl->tpl_vars['pr']->_loop = true;
|
||
?><th><?php echo $_smarty_tpl->tpl_vars['pr']->value['descrip'];?>
|
||
</th><?php } ?><?php }?>
|
||
<?php if (count($_smarty_tpl->tpl_vars['ol']->value['controln'])){?><?php $_smarty_tpl->tpl_vars['pr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ol']->value['controln']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['pr']->key => $_smarty_tpl->tpl_vars['pr']->value){
|
||
$_smarty_tpl->tpl_vars['pr']->_loop = true;
|
||
?><th><?php echo $_smarty_tpl->tpl_vars['pr']->value['descrip'];?>
|
||
</th><?php } ?><?php }?>
|
||
<?php if (count($_smarty_tpl->tpl_vars['ol']->value['praktika'])){?><?php $_smarty_tpl->tpl_vars['pr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ol']->value['praktika']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['pr']->key => $_smarty_tpl->tpl_vars['pr']->value){
|
||
$_smarty_tpl->tpl_vars['pr']->_loop = true;
|
||
?><th><?php echo $_smarty_tpl->tpl_vars['pr']->value['descrip'];?>
|
||
</th><?php } ?><?php }?>
|
||
</tr></thead>
|
||
<tbody><?php $_smarty_tpl->tpl_vars['os'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['os']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ocenki']->value['students']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['os']->key => $_smarty_tpl->tpl_vars['os']->value){
|
||
$_smarty_tpl->tpl_vars['os']->_loop = true;
|
||
?><tr>
|
||
<td><?php echo $_smarty_tpl->tpl_vars['os']->value['user']['fio'];?>
|
||
</td>
|
||
<td class="center"><?php if ($_smarty_tpl->tpl_vars['os']->value['num_zach']!=''){?><?php echo $_smarty_tpl->tpl_vars['os']->value['num_zach'];?>
|
||
<?php }else{ ?><?php echo $_smarty_tpl->tpl_vars['os']->value['num_stud'];?>
|
||
<?php }?></td>
|
||
<?php if (count($_smarty_tpl->tpl_vars['ol']->value['practich'])){?><?php $_smarty_tpl->tpl_vars['pr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ol']->value['practich']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['pr']->key => $_smarty_tpl->tpl_vars['pr']->value){
|
||
$_smarty_tpl->tpl_vars['pr']->_loop = true;
|
||
?><td class="center"><?php echo $_smarty_tpl->tpl_vars['ocenki']->value['saves']['pr'][$_smarty_tpl->tpl_vars['pr']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][2];?>
|
||
</td><?php } ?><?php }?>
|
||
<?php if (count($_smarty_tpl->tpl_vars['ol']->value['controln'])){?><?php $_smarty_tpl->tpl_vars['pr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ol']->value['controln']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['pr']->key => $_smarty_tpl->tpl_vars['pr']->value){
|
||
$_smarty_tpl->tpl_vars['pr']->_loop = true;
|
||
?><td class="center"><?php echo $_smarty_tpl->tpl_vars['ocenki']->value['saves']['co'][$_smarty_tpl->tpl_vars['pr']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][2];?>
|
||
</td><?php } ?><?php }?>
|
||
<?php if (count($_smarty_tpl->tpl_vars['ol']->value['praktika'])){?><?php $_smarty_tpl->tpl_vars['pr'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pr']->_loop = false;
|
||
$_from = $_smarty_tpl->tpl_vars['ol']->value['praktika']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||
foreach ($_from as $_smarty_tpl->tpl_vars['pr']->key => $_smarty_tpl->tpl_vars['pr']->value){
|
||
$_smarty_tpl->tpl_vars['pr']->_loop = true;
|
||
?><td class="center"><?php echo $_smarty_tpl->tpl_vars['ocenki']->value['saves']['pra'][$_smarty_tpl->tpl_vars['pr']->value['id']][$_smarty_tpl->tpl_vars['os']->value['id']][2];?>
|
||
</td><?php } ?><?php }?>
|
||
</tr><?php } ?></tbody>
|
||
</table>
|
||
<?php }?>
|
||
<?php }?>
|
||
|
||
<div class="new_page"></div>
|
||
|
||
<?php } ?>
|
||
<?php }else{ ?>нет студентов
|
||
<?php }?>
|
||
</div>
|
||
</div>
|
||
<?php }?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<script type="text/javascript" src="/tpl/js/jquery-1.8.3.min.js"></script>
|
||
<script type="text/javascript">
|
||
$(document).ready(function(){
|
||
var cl = 0; //количество кликов
|
||
$("#podgruppa").click(function(){ //выбор подгруппы
|
||
cl++;
|
||
var content = $(this).html(); //сохраняем содержимое, которое было изначально
|
||
var select = '';
|
||
|
||
$("#podgruppa").removeAttr("id"); //убираем айдишник
|
||
if (cl == 1) $(this).html(content);
|
||
$("#sel-podgruppa").css("display", "inline");
|
||
//alert("Выбор подгруппы");
|
||
});
|
||
|
||
$("#sel-podgruppa").change(function(){ //выбор подгруппы
|
||
var to_href = window.location.toString();
|
||
//to_href = "fgdffdg/dfgdfgfdg/dfgfdgfdg";
|
||
var mas = to_href.split("/");
|
||
|
||
var count = mas.length - 1; //количество слэшей
|
||
//alert(count);
|
||
|
||
var href = $(this).val();
|
||
if (count == 7) window.location = to_href + href + "/";
|
||
else window.location = "../" + href + "/";
|
||
//window.location = to_href + href + "/";
|
||
});
|
||
|
||
});
|
||
</script>
|
||
</body>
|
||
</html><?php }} ?>
|