diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php
index 87a3fe02..76783e47 100644
--- a/agc_2-X/trunk/www/vicidial/admin.php
+++ b/agc_2-X/trunk/www/vicidial/admin.php
@@ -4482,12 +4482,13 @@ else
# 190223-0850 - Added static prompt fields for in-group play-place-in-line
# 190302-1745 - Added disclaimers for pure-knob code
# 190310-1909 - Added mute_recordings system setting and campaign/user options
+# 190311-2153 - Added indicators for lists being assigned to non-existing campaigns
#
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time
-$admin_version = '2.14-702a';
-$build = '190310-1909';
+$admin_version = '2.14-703a';
+$build = '190311-2153';
$STARTtime = date("U");
$SQLdate = date("Y-m-d H:i:s");
@@ -26579,16 +26580,21 @@ if ($ADD==311)
$rslt=mysql_to_mysqli($stmt, $link);
$campaigns_to_print = mysqli_num_rows($rslt);
$campaigns_list='';
+ $camp_list='|';
$o=0;
while ($campaigns_to_print > $o)
{
$rowx=mysqli_fetch_row($rslt);
$campaigns_list .= "\n";
+ $camp_list .= "$rowx[0]|";
$o++;
}
echo "$campaigns_list";
echo "\n";
- echo "$NWB#lists-campaign_id$NWE\n";
+ echo "$NWB#lists-campaign_id$NWE";
+ if (!preg_match("/\|$campaign_id\|/",$camp_list))
+ {echo "
"._QXZ("CAMPAIGN DOES NOT EXIST")."";}
+ echo "\n";
echo "
| \n"; echo ""; + ##### get list of campaign IDs for validation of list campaign + $stmt="SELECT campaign_id from vicidial_campaigns;"; + $rsltx=mysql_to_mysqli($stmt, $link); + $camps_to_print = mysqli_num_rows($rsltx); + $camp_list='|'; + $o=0; + while ($camps_to_print > $o) + { + $rowx=mysqli_fetch_row($rsltx); + $camp_list .= "$rowx[0]|"; + $o++; + } + $LISTlink='stage=LISTIDDOWN'; $NAMElink='stage=LISTNAMEDOWN'; $CALLTIMElink='stage=CALLTIMEDOWN'; @@ -38280,7 +38299,10 @@ if ($ADD==100) {echo " "._QXZ("EXP")."";} echo " | "; echo "$row[5] | "; - echo "$row[6] | "; + if (!preg_match("/\|$row[6]\|/",$camp_list)) + {echo "$row[6] | ";} + else + {echo "$row[6] | ";} echo ""._QXZ("MODIFY")." | $row[5] | "; - echo "$row[6] | "; + if (!preg_match("/\|$row[6]\|/",$camp_list)) + {echo "$row[6] | ";} + else + {echo "$row[6] | ";} echo ""._QXZ("MODIFY")." | \n"; $p++; $o++;