EIOS/inc/rejt_checks.php

16 lines
519 B
PHP
Raw Normal View History

2023-12-28 15:39:22 +03:00
<?php
$nprs=array();
//выберем всех преподавателей
$sql = 'SELECT u.id,u.fio,t.zvanie,t.dolgnost,t.stepen,t.fakultet,t.kafedra FROM '.$ST['dbpf'].'_teachers as t,'.$ST['dbpf'].'_users as u WHERE u.id=t.id_user AND t.status=1 AND u.status>=0';
$rez = $DB->QUR_SEL($sql);
if($rez){
foreach($rez as $key => $val)if($key){
$nprs[] = $val;
}
}
$smarty->assign('nprs',$nprs);
$smarty->assign('page',$page);
$smarty->assign('des',$des);
$maincontent = $smarty->fetch('tpl_rejt_checks.html');