16 lines
519 B
PHP
16 lines
519 B
PHP
<?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'); |