query($z); $ile=mysql_num_rows($w); while($r=$GLOBALS['db']->fetchByAssoc($w)) { $z1="select name,id,no,date_entered from ecmdocuments where id='".$r['ecmdocument_id']."' and deleted=0"; $w1=$GLOBALS['db']->query($z1); $r1=$GLOBALS['db']->fetchByAssoc($w1); $listecm.=' '.print_title($r1['id']."||".check_block($r1['id'],"")).' '.$r1['description'].' '.$r1['date_entered'].' '; } if($ile>0) { print "File is in relation with EcmDocuments, do You want to delete relations? YES | NO

"; } else { ob_start(); header("Location: index.php?module=EcmDocs&action=Delete&record=".$_REQUEST['record']."&return_module=EcmDocs&return_action=index&return_id=".$_REQUEST['return_id']); } print ' '.$listecm.'
Dir Description Date Created
'; ?>