[Redizajn 1KA] - Nastavitve --> Izbrisane ankete - v1

This commit is contained in:
tejagerjovic 2022-02-24 02:01:51 +01:00
parent 9297a4a22f
commit 7898738f8a
3 changed files with 32 additions and 4 deletions

View File

@ -2301,13 +2301,37 @@ class SurveyAdminSettings {
echo '<div id="anketa_edit">';
echo '<fieldset><legend>'.$lang['srv_anketa_deleted'].'</legend>';
$sql = sisplet_query("SELECT srv_anketa.id, srv_anketa.naslov, users.email FROM srv_anketa, users WHERE users.id=srv_anketa.insert_uid AND active='-1' ORDER BY edit_time DESC");
if (!$sql) echo mysqli_error($GLOBALS['connect_db']);
$table_exists = 0;
while ($row = mysqli_fetch_array($sql)) {
echo '<p><strong style="display:inline-block; width:300px;"><a href="index.php?anketa='.$row['id'].'">'.$row['naslov'].'</a></strong> <span style="display:inline-block; width:300px;">('.$row['email'].')</span> <a href="#" onclick="anketa_restore(\''.$row['id'].'\'); return false;">'.$lang['srv_restore'].'</a></p>';
if ($table_exists == 0) {
echo '<p class="bottom16">'.$lang['srv_anketa_deleted_note'].'</p>';
echo '<table>';
echo '<tr>';
echo '<th>'.$lang['srv_data_deleted_surveyname'].'<th>';
echo '<th class="nowrap">'.$lang['srv_data_deleted_user'].'<th>';
echo '<th><th>';
echo '</tr>';
$table_exists = 1;
}
echo '<tr>';
echo '<td><a href="index.php?anketa='.$row['id'].'">'.$row['naslov'].'</a><td>';
echo '<td>'.$row['email'].'<td>';
echo '<td><button class="table-inline white-black caps" type="button" onclick="anketa_restore(\''.$row['id'].'\'); return false;">'.$lang['srv_anketa_deleted_restore'].'</button><td>';
echo '</tr>';
}
if ($table_exists == 1)
echo '</table>';
echo '</fieldset>';
echo '</div>';
}
@ -2344,7 +2368,7 @@ class SurveyAdminSettings {
echo '<td><a href="index.php?anketa='.$row['id'].'">'.$row['naslov'].'</a><td>';
echo '<td>'.$row['email'].'<td>';
echo '<td class="right">'.$row['deleted'].'<td>';
echo '<td><button class="table-inline white-black caps" type="button" onclick="onclick="data_restore(\''.$row['id'].'\'); return false;">'.$lang['srv_data_deleted_restore'].'</button><td>';
echo '<td><button class="table-inline white-black caps" type="button" onclick="data_restore(\''.$row['id'].'\'); return false;">'.$lang['srv_data_deleted_restore'].'</button><td>';
echo '</tr>';
}

View File

@ -5788,6 +5788,8 @@ $lang = array (
"srv_dostop_dashboard" => 'Vidi zavihek status',
"srv_dostop_phone" => 'Je anketar ankete (lahko izvaja le telefonsko anketo)',
"srv_anketa_deleted" => 'Izbrisane ankete',
"srv_anketa_deleted_note" => 'V spodnji tabeli je seznam vseh izbrisanih anket in možnost obnovitve teh anket.',
"srv_anketa_deleted_restore" => 'Obnovi anketo',
"srv_data_deleted" => 'Izbrisani podatki',
"srv_data_deleted_surveyname" => 'Ime ankete',
"srv_data_deleted_user" => 'E-mail uporabnika',

View File

@ -5687,6 +5687,8 @@ $lang = array (
"srv_dostop_dashboard" => 'Can see dashboard links',
"srv_dostop_phone" => 'Is phone interviewer (only telephone survey)',
"srv_anketa_deleted" => 'Deleted surveys',
"srv_anketa_deleted_note" => 'The table below lists all deleted surveys and the possibility to restore them.',
"srv_anketa_deleted_restore" => 'Restore survey',
"srv_data_deleted" => 'Deleted data',
"srv_data_deleted_surveyname" => 'Survey name',
"srv_data_deleted_user" => 'User E-mail',