$query.=" and (attachment_type <> 'response_project' and attachment_type <> 'outgoing_mail_signed' and attachment_type <> 'signed_response' and attachment_type <> 'converted_pdf' and attachment_type <> 'outgoing_mail' and attachment_type <> 'print_folder' and attachment_type <> 'aihp')";
$query.=" and (attachment_type <> 'response_project' and attachment_type <> 'outgoing_mail_signed' and attachment_type <> 'signed_response' and attachment_type <> 'converted_pdf' and attachment_type <> 'outgoing_mail' and attachment_type <> 'print_folder' and attachment_type <> 'aihp')";
$query.=" and (attachment_type = 'response_project' or attachment_type = 'outgoing_mail_signed' or attachment_type = 'outgoing_mail' or attachment_type = 'signed_response' or attachment_type = 'aihp')";
$query.=" and (attachment_type = 'response_project' or attachment_type = 'outgoing_mail_signed' or attachment_type = 'outgoing_mail' or attachment_type = 'signed_response' or attachment_type = 'aihp')";
}
else{
}else{
$query.=" and attachment_type NOT IN ('converted_pdf','print_folder')";
$query.=" and attachment_type NOT IN ('converted_pdf','print_folder')";
}
}
$stmt=$db->query($query,array($resIdMaster));
$stmt=$db->query($query,array($resIdMaster));
if($stmt->rowCount()>0){
if($stmt->rowCount()>0){
$new_nb_attach=$stmt->rowCount();
$new_nb_attach=$stmt->rowCount();
...
@@ -140,49 +130,19 @@ if ($stmt->rowCount() > 0) {
...
@@ -140,49 +130,19 @@ if ($stmt->rowCount() > 0) {
}
}
?>
?>
<script type="text/javascript">
<script type="text/javascript">
if (window.parent.top.document.getElementById('cur_resId')){