';
if ((int)$ppid > 0) {
# polovimo podatke profila
$sql_string = "SELECT rp.*, u.name, u.surname FROM srv_invitations_recipients_profiles AS rp LEFT JOIN users AS u ON rp.uid = u.id WHERE rp.pid = '".(int)$ppid."'";
@@ -788,19 +799,8 @@ class SurveyInvitationsNew {
} else {
echo '
'.$lang['srv_inv_recipiens_temporary_list'].'
';
}
- echo '';
-
- echo '
';
-
- echo '
';
- echo '';
- echo '
';
-
- echo '
';
- $this->saveRecipientListName();
echo '
';
- echo '
';
# če že imamo prejemnike v bazi ponudimo gumb naprej
echo '
';
+
+ echo ''.$profile['name'].'';
+
+ if ((int)$ppid > 0 && $ppid === $_pid) {
+ # polovimo še ostale porfile
+ $sql_query = sisplet_query("SELECT * FROM srv_invitations_recipients_profiles WHERE pid='".(int)$ppid."' AND from_survey ='".$this->sid."' ");
+
+ if (mysqli_num_rows($sql_query) > 0) {
+
+ echo '
';
+
+ # če je iz iste ankete, potem lahko urejamo
+ echo '';
+ echo '';
+
+ echo '
';
+ }
+ }
+
echo '
';
}
echo '';
+
echo '
';
- echo ' ';
- if ((int)$ppid > 0) {
- # polovimo še ostale porfile
- $sql_string = "SELECT * FROM srv_invitations_recipients_profiles WHERE pid='".(int)$ppid."' AND from_survey ='".$this->sid."' ";
- $sql_query = sisplet_query($sql_string);
-
- if (mysqli_num_rows($sql_query) > 0) {
- # če je iz iste ankete, potem lahko urejamo
- echo ''.$lang['srv_inv_recipients_delete_profile'].' ';
- echo ''.$lang['srv_inv_recipients_edit_profile'].' ';
- echo ' ';
- }
- }
-
- echo ' ';
}
function getRecipientsProfile($pid) {
@@ -6369,68 +6390,58 @@ class SurveyInvitationsNew {
# current nastavimo na zadnji element
if ( $all > 1) {
- echo '