QUR_SEL($sql); if($rez){ echo '

Дисциплины у которых экзамен и зачет

'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; foreach($rez as $key => $val)if($key){ //id,id_plans,discip,discid,kurs,sem,lek,lab,pr,srs,chasekz,zet,ekz,zach,vidkontr,kontrab,kontr,sessiya,dispovyb,kpro,krab echo ''; echo ''; echo ''; echo ''; echo ''; $c=''; if($val['kurs'] == $val['sem']) $c='style="color:red;"'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } echo '
id_plansdiscipdiscidkurs/semleklabprsrschasekzzetekzzachvidkontrkontrabkontrsessiyadispovybkprokrab
'.$val['id'].''.$val['id_plans'].''.$val['discip'].''.$val['discid'].''.$val['kurs'].'/'.$val['sem'].''.$val['lek'].''.$val['lab'].''.$val['pr'].''.$val['srs'].''.$val['chasekz'].''.$val['zet'].''.$val['ekz'].''.$val['zach'].''.$val['vidkontr'].''.$val['kontrab'].''.$val['kontr'].''.$val['sessiya'].''.$val['dispovyb'].''.$val['kpro'].''.$val['krab'].'
'; } exit(); /*В ИУПАХ сохраняются дубляжи((( надо их убирать!*/ //SELECT * FROM `acs_iup_ocenki` WHERE `id_studentzayavks`=4642 ORDER BY `acs_iup_ocenki`.`predmet` ASC $sql = 'SELECT id,id_studentzayavks,id_predmet FROM `acs_iup_ocenki` LIMIT 0,1000'; $rez = $DB->QUR_SEL($sql); if($rez){ echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; foreach($rez as $key => $val)if($key){ $sql1 = 'SELECT * FROM `acs_iup_ocenki` WHERE `id_studentzayavks`='.$val['id_studentzayavks'].' AND id_predmet='.$val['id_predmet'].' AND id!='.$val['id']; $rez1 = $DB->QUR_SEL($sql1); if($rez1){ foreach($rez1 as $key1 => $val1)if($key1){ echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } } } echo '
ПредметсемсетрОценкаТипВремяПользовательЗаявка
'.$val1['id_predmet'].''.$val1['predmet'].''.$val1['semestr'].''.$val1['ocenka'].''.$val1['tip'].''.date('H:i d.m.Y',$val1['data_time']).''.$val1['id_user'].''.$val1['id_studentzayavks'].'
'; }