diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index 9a232852..90f930ce 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -3585,12 +3585,13 @@ else # 150806-1348 - Added Admin -> Settings Containers # 150903-1457 - Added options for encrypt hosted features # 150909-0158 - Added Report Page Servers Summary and Admin Utilities Page options for User Group Allowed Reports +# 150909-1418 - Added $active_only_default_campaigns options.php option for Campaigns Listings # # 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.12-507a'; -$build = '150909-0158'; +$admin_version = '2.12-508a'; +$build = '150909-1418'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -31831,6 +31832,21 @@ if ($ADD==10) echo "
| \n";
echo "";
+ if (file_exists('options.php'))
+ {require('options.php');}
+
+ echo " "._QXZ("CAMPAIGN LISTINGS").":\n"; + if ( (preg_match('/display_active/',$status)) or ( (!preg_match('/display_all/',$status)) and ($active_only_default_campaigns > 0) ) ) + { + $SQLstatus = 'Y'; + echo " "._QXZ("show all campaigns")."\n"; + } + else + { + $SQLstatus = ''; + echo " "._QXZ("show only active campaigns")."\n"; + } + $camp_group_SQL = $LOGadmin_viewable_groupsSQL; if (strlen($whereLOGallowed_campaignsSQL) < 6) {$camp_group_SQL = $whereLOGadmin_viewable_groupsSQL;} @@ -31838,7 +31854,6 @@ if ($ADD==10) $rslt=mysql_to_mysqli($stmt, $link); $campaigns_to_print = mysqli_num_rows($rslt); - echo " "._QXZ("CAMPAIGN LISTINGS").":\n"; echo "
|