GDPR --> procesiranje zahtevkov: sporočilo respondenta pop-up test
This commit is contained in:
parent
b4a4fdd46c
commit
c8a51246f8
@ -7265,6 +7265,35 @@ class SurveyAdminAjax {
|
|||||||
echo '<button class="medium blue" onclick="create_archive_survey(\'' . $this->anketa .'\'); return false;">'.$lang['srv_backup_button'].'</button>';
|
echo '<button class="medium blue" onclick="create_archive_survey(\'' . $this->anketa .'\'); return false;">'.$lang['srv_backup_button'].'</button>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private function ajax_show_gdpr_messeage(){
|
||||||
|
global $lang;
|
||||||
|
|
||||||
|
$id_sporocila = $_POST['id_sporocila'];
|
||||||
|
|
||||||
|
$sql = sisplet_query("SELECT text FROM srv_gdpr_requests WHERE id = '".$id_sporocila."'");
|
||||||
|
$row = mysqli_fetch_array($sql);
|
||||||
|
|
||||||
|
echo '<div class= "head_msg"> ';
|
||||||
|
echo '<img src="\public\img\icons\envelope_img.svg" alt="envelope image">';
|
||||||
|
echo '<h2> SPOROČILO RESPONDENTA</h2>';
|
||||||
|
echo '</div>';
|
||||||
|
|
||||||
|
echo '<div class="popup_close"><a href="#" onClick="popupClose(); return false;">✕</a></div>';
|
||||||
|
|
||||||
|
|
||||||
|
echo '<div class="popup_content">';
|
||||||
|
echo '<p class="bottom16"> Hello there!</p>';
|
||||||
|
echo '<p class="bottom16"> '.$row.'</p>';
|
||||||
|
|
||||||
|
echo $id_sporocila;
|
||||||
|
|
||||||
|
|
||||||
|
echo '</div>';
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@ -473,7 +473,7 @@ class GDPR{
|
|||||||
// echo '<td><div class="gdpr_requests_wrap">'.$request['text'].'</div></td>';
|
// echo '<td><div class="gdpr_requests_wrap">'.$request['text'].'</div></td>';
|
||||||
|
|
||||||
echo '<td><div class="gdpr_requests_wrap center">';
|
echo '<td><div class="gdpr_requests_wrap center">';
|
||||||
echo '<button> <img src="\public\img\icons\envelope_img.svg" alt="envelope image"> </button> </div></td>';
|
echo '<button onclick="show_gdpr_messeage('.$request_id.')"> <img src="\public\img\icons\envelope_img.svg" alt="envelope image"> </button> </div></td>';
|
||||||
|
|
||||||
echo '<td>'.$request['email'].'</td>';
|
echo '<td>'.$request['email'].'</td>';
|
||||||
|
|
||||||
@ -490,8 +490,11 @@ class GDPR{
|
|||||||
|
|
||||||
echo '</table>';
|
echo '</table>';
|
||||||
|
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
echo '<script src="/admin/survey/script/script.js"></script>';
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(count($request_list_done) == 0)
|
if(count($request_list_done) == 0)
|
||||||
|
@ -1031,6 +1031,7 @@ function brisi_spremenljivko (spremenljivka, text, confirmed) {
|
|||||||
$('#fade').fadeIn('slow');
|
$('#fade').fadeIn('slow');
|
||||||
$('#dropped_alert').html(data.output).fadeIn('slow').css('width', '600px');
|
$('#dropped_alert').html(data.output).fadeIn('slow').css('width', '600px');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}, 'json'
|
}, 'json'
|
||||||
);
|
);
|
||||||
@ -5642,4 +5643,17 @@ function oneClickArchive(){
|
|||||||
$('#general_popup').addClass('PopUpNarrow');
|
$('#general_popup').addClass('PopUpNarrow');
|
||||||
$('#general_popup').html('').fadeIn('slow');
|
$('#general_popup').html('').fadeIn('slow');
|
||||||
$("#general_popup").load('ajax.php?a=oneClickArchive', {anketa: srv_meta_anketa_id});
|
$("#general_popup").load('ajax.php?a=oneClickArchive', {anketa: srv_meta_anketa_id});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// kliči popup
|
||||||
|
function show_gdpr_messeage(id_sporocila){
|
||||||
|
|
||||||
|
$('#fade').fadeTo('slow', 1);
|
||||||
|
$('#general_popup').addClass('PopUpNarrow');
|
||||||
|
$('#general_popup').html('hello').fadeIn('slow');
|
||||||
|
$("#general_popup").load('ajax.php?a=show_gdpr_messeage', {id_sporocila: id_sporocila, anketa: srv_meta_anketa_id});
|
||||||
|
|
||||||
|
console.log(id_sporocila);
|
||||||
}
|
}
|
@ -10165,7 +10165,7 @@ div .table-horizontal-scroll-wrapper2 table {
|
|||||||
|
|
||||||
.table_header {
|
.table_header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0px;
|
margin: 16px 0px 0px 0px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
@ -123,7 +123,7 @@ div {
|
|||||||
|
|
||||||
.table_header{
|
.table_header{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0px;
|
margin: 16px 0px 0px 0px;
|
||||||
|
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
@ -55,4 +55,18 @@ table {
|
|||||||
|
|
||||||
div#gdrp_requests_unresolved {
|
div#gdrp_requests_unresolved {
|
||||||
margin-bottom: 32px;
|
margin-bottom: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.head_msg{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
margin-bottom: 24px;
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
margin-bottom: 0px;
|
||||||
|
margin-left: 8px;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user