<?php



//include("../admin/GoTool/cat.inc");
// $connection = @mysql_connect($host,$user,$password) or die(mysql_error());
//$db = @mysql_select_db($db_name,$connection) or die(mysql_error());
      $badcount=0;
      
     $jedID2019=0;
      $log=$text_account3;
      $answerA='';
      $display_block1='';
      $warning_clock='';
      $Schart=''; 
$Ccreate_dateR=''; 
$pop222azz22B='';
$pop222azz22='';
$church='';
$caddress='';
$caddress1='';
$pastor='';
$ccity='';
$czip='';
$ccountry='';
$cstate='';
$cweb='';
$cemail='';
$ctele='';
$ctwitter='';
$cfacebook='';
$cinsta='';
$MIT='CAPMIT';

//$Pgrade=$row1daa1G1['title4'];

$pMIT=0;

$reportfinder8=1;


$prog977a5="$loc2/survey/pmregAdmin.php";
$prog979="$loc2/admin/GoTool/survey_Edit/survey_show.php";

$Pgrade=$row1daa1G1['title4'];


$Pgrade2=explode(":", $Pgrade);
			$Pgrade3=count($Pgrade2);
			
if 	($Pgrade3>0){

If ($Pgrade2[0] !=$blink){
$MIT=$Pgrade2[0];
}
}		

if 	($Pgrade3>1){

If ($Pgrade2[1] !=$blink){
$pMIT=$Pgrade2[1];


}
}	

if 	($Pgrade3>2){

If ($Pgrade2[2] !=$blink){
$reportfinder8=$Pgrade2[2];
}
}
			
			

//$display_listCustG='';
//// $sq112ab="SELECT * FROM $table_name362  ORDER BY name";
//echo $sq112ab;
///  $result112ab = @mysql_query($sq112ab,$connection) or die(mysql_error());
////while ($row112ab = mysql_fetch_array($result112ab)) {
//// $leader_id1=  $row112ab['customer_group_id'];
//// $first_id=  $row112ab['name'];
 //$last_id=  $row112ab['lastname'];
//// $nameCustG[$leader_id1]="$first_id";
///// }
      
// if (isset($_POST['jedID2919'])) {
 // 	$jedID2019=$_POST['jedID2919'];
//echo $jade1a;
//}     

         $jade_doc3='';
     $display_uploads3='';

         $jade_doc1='';
     $display_uploads1='';
$Report7="Report";

if (isset($_POST['jade1a'])) {
  	$jade1a=$_POST['jade1a'];
//echo $jade1a;
}

if (isset($_POST['sbad'])) {
  	$sbad=$_POST['sbad'];
}


if (isset($_POST['text_account34'])) {
  	$text_account34=$_POST['text_account34'];
}

if (isset($_POST['showchart'])) {
  	$port_idz=$_POST['showchart'];
}
  
  $bobcount='';
  $batcount='';

  $cust_id=$text_account34;

  $sq112ab="SELECT * FROM $table_name36 WHERE customer_id='$cust_id' ";
  ///echo  $sq112ab;
  
  $result112ab = @mysql_query($sq112ab,$connection) or die(mysql_error());
while ($row112ab = mysql_fetch_array($result112ab)) {
 $leader_id1=  $row112ab['customer_id'];
 $first_id=  $row112ab['firstname'];
 $last_id=  $row112ab['lastname'];
 $nameP[$leader_id1]="$first_id $last_id";
  $pemail1=  $row112ab['email'];
 $propic=  $row112ab['propic'];
$address_id=  $row112ab['address_id'];
$phone=  $row112ab['telephone'];
$custgroup=  $row112ab['customer_group_id'];


$sq112ab="SELECT * FROM $table_name362  where customer_group_id ='$custgroup'";
//echo $sq112ab;
  $result112ab = @mysql_query($sq112ab,$connection) or die(mysql_error());
while ($row112ab = mysql_fetch_array($result112ab)) {
 $leader_id1=  $row112ab['customer_group_id'];
 $first_idT=  $row112ab['name'];
 //$last_id=  $row112ab['lastname'];
 $nameCustG[$leader_id1]="$first_idT";
 }


$title=$nameCustG[$custgroup];

  //$display_listPPC .=  "<option value=$leader_id1> $nameP[$leader_id1]</option>";
 }

$nono="no_images.jpg";

$pic22="<img id=\"profile_picture\" src=\"$loc2/image/no_image.jpg\" border=\"0\" style=\"margin-right: 20px; vertical-align: middle;\">";
$pic22="<img id=\"profile_picture\" src=\"$loc2/image/image_$cust_id/$propic\" border=\"0\" style=\"margin-right: 20px; vertical-align: middle;\">";

if ($propic !=$blink AND $propic != $nono    ){

$pic22="<img id=\"profile_picture\" src=\"$loc2/image/$propic\" width=\"120\" border=\"0\" style=\"margin-right: 20px; vertical-align: middle;\">";
}

////
 $sq112zzab9="SELECT * FROM $table_name36001 WHERE customer_id='$cust_id' and type_id='100'";
 $map_id=0;
 //echo " $sq112zzab9 <br/>";
 $result222azz98 = @mysql_query($sq112zzab9,$connection) or die(mysql_error());
while ($row1abzz98 = mysql_fetch_array($result222azz98)) {
  $CCmap_id=  $row1abzz98['map_id'];
//  echo $map_id;
 
  $sq112zzab77="SELECT * FROM $table_name80 WHERE map_id='$CCmap_id' AND survey_id='$TTport_idz' AND survey_id !='0'";
  $result222azz = @mysql_query($sq112zzab77,$connection) or die(mysql_error());
while ($row1abzz77 = mysql_fetch_array($result222azz)) {
$map_id= $row1abzz77['map_id'];
  }
  
}
////
 $sq112zzab9="SELECT * FROM $table_name36001 WHERE customer_id='$cust_id' and type_id='100' AND map_id >'0' AND map_id='$map_id'";
 
 //echo " $sq112zzab9 <br/>";
 $result222azz98 = @mysql_query($sq112zzab9,$connection) or die(mysql_error());
while ($row1abzz98 = mysql_fetch_array($result222azz98)) {
  $map_id=  $row1abzz98['map_id'];
//  echo $map_id;
  $custID[$map_id]=$cust_id;
  $custIDate[$map_id]=  $row1abzz98['date_added'];
 $custIDate[$map_id]=strtotime("$custIDate[$map_id]");
  $custIDate[$map_id]=date("n-j-Y","$custIDate[$map_id]");
$custID98[$map_id]="ID# $custID[$map_id]";
$Ccreate_dateR ="$custIDate[$map_id]";
  
  
  
}

$STotal[$map_id]=0;
$Schart[$map_id]='';

     $sq112zzab="SELECT * FROM $table_name80 WHERE test_type='$map_id'";
  $result222azz = @mysql_query($sq112zzab,$connection) or die(mysql_error());
while ($row1abzz = mysql_fetch_array($result222azz)) {
$survey_idzz=  $row1abzz['survey_id'];
  $Smap_id[$survey_idzz]=   stripslashes($row1abzz['map_id']);
  $SAscore[$survey_idzz]=   stripslashes($row1abzz['Ascore']);
  $STotal[$map_id]= $STotal[$map_id]+ $SAscore[$survey_idzz];
  
            }
///$MIT="CAPMIT";
   $Schart[$map_id]="nosig.png";
      $sq112zzab22="SELECT * FROM $table_name78 WHERE map_id='$map_id'";
  $result222azz22 = @mysql_query($sq112zzab22,$connection) or die(mysql_error());
while ($row1abzz22 = mysql_fetch_array($result222azz22)) {
  $Schart[$map_id]=   stripslashes($row1abzz22['company']);
  
  if ($Schart[$map_id]==$blink){
   
 $Schart[$map_id]="nosig.png";
  }
  
  $pop222azz22="<a href=\"$loc2/$MIT/GoSlider/$Schart[$map_id]\"><img border=\"0\" src=\"$loc2/$MIT/GoSlider/$Schart[$map_id]\"  width=\"120\" ></a>";
 $pop222azz22A="<img border=\"0\" src=\"$loc2/$MIT/GoSlider/$Schart[$map_id]\"  width=\"120\" >";
$pop222azz22B="$loc2/$MIT/GoSlider/$Schart[$map_id]";
}

$address_main="Needs to be Updated from Application";

 $sq112abnn1a="SELECT * FROM $table_name40   where address_id='$address_id'";
 $result112abnn1a = @mysql_query($sq112abnn1a,$connection) or die(mysql_error());
while ($row112abnn1a = mysql_fetch_array($result112abnn1a)) {
$address_1=  $row112abnn1a['address_1'];
$address_2=  $row112abnn1a['address_2'];
$city=  $row112abnn1a['city'];
$postal2=  $row112abnn1a['postcode'];
$zone_id=  $row112abnn1a['zone_id'];
$country_id=  $row112abnn1a['country_id'];

  $sql35 ="SELECT * FROM $table_name45 WHERE country_id = '$country_id' ";

        $result225 = @mysql_query($sql35,$connection) or die(mysql_error());

        $row15 =mysql_fetch_array($result225,MYSQL_ASSOC);

        if ($country_id == $row15['country_id'])

        {

         $country=  $row15['name'];

        }

        $sql36 ="SELECT * FROM $table_name46 WHERE country_id = '$country_id' AND zone_id = '$zone_id' ";

        $result226 = @mysql_query($sql36,$connection) or die(mysql_error());

        $row16 =mysql_fetch_array($result226,MYSQL_ASSOC);



     if (($zone_id == $row16['zone_id']) || ($country_id==$row16['country_id']))

        {

         $zone=  $row16['name'];

         //$stateAA[$cust_id1]=$zone;
         $stateAA[$cust_id]=$zone;

        }

        $address_wow="$address_1,$address_2";

           if($address_2 == $blink){

          $address_wow="$address_1";

           }

          $address_main="$address_wow,$city,$zone,$postal2 $country";


}

$processor='';
$bad443='';
$whyP='';

/////
//$reportfinder8=1;

  $sq112arep="SELECT * FROM $table_name500 WHERE group_id = '$reportfinder8' AND support_id !='$blink'  ";
$result222rep = @mysql_query($sq112arep,$connection) or die(mysql_error());
while ($row1report = mysql_fetch_array($result222rep)) {

   $support_id9=  $row1report['support_id'];

      $sql361 ="SELECT * FROM $table_name300 WHERE table_id = '$support_id9' ";
        $result2261 = @mysql_query($sql361,$connection) or die(mysql_error());
        $row161 =mysql_fetch_array($result2261,MYSQL_ASSOC);

     if ($support_id9 == $row161['table_id'])
        {
          $SLfirst_id=  $row161['value'];
$MIT=$row161['value'];
 //$SLlast_id=  $row161['lastname'];

        }  else{
//$SLlast_id='';
$SLfirst_id='$MIT/GoSlider';
}


$graggdir=$SLfirst_id;
  }
  
     $sq112arep="SELECT * FROM $table_name500 WHERE group_id = '$reportfinder8' AND leader_id !='$blink'  ";
$result222rep = @mysql_query($sq112arep,$connection) or die(mysql_error());
while ($row1report = mysql_fetch_array($result222rep)) {
  $firstS1=  $row1report['leader_id'];
$tap22=1;
  }
  
   $survey_idR=$firstS1;
/////

$Ssig_id[$map_id]="NA.png";
$SSigT="<img src=\"$loc2/sig/$Ssig_id[$map_id]\"  > ";

        $sq112zzab2="SELECT * FROM $table_name200 WHERE map_id='$map_id'";
  $result222azz2 = @mysql_query($sq112zzab2,$connection) or die(mysql_error());
while ($row1abzz2 = mysql_fetch_array($result222azz2)) {
  $Ssig_id[$map_id]=   stripslashes($row1abzz2['image_2']);
$SSigT="<img src=\"$loc2/sig/$Ssig_id[$map_id]\"   width=\"50\" > ";

          }


$printX="$loc2/power/pdf3/documents/GoPDFprintChart.php";
$progprintAll="$loc2/power/pdf3/documents/GoPDFprintQsFull.php";
$progprint99="$loc2/power/pdf3/documents/GoPDFprintEssay.php";
$jed=3;
$gjed=1;

$printChart99="<FORM  name=\"formcheck9657\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printX?token=$tok&log=text_account3\">
              <input type=\"hidden\" name=\"pic88\" value=\"$Schart[$map_id]\" />
                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
<input type=\"hidden\" name=\"MIT\" value=\"$MIT\"  />
                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
                  <input type=\"hidden\" name=\"dirmap\" value=\"$graggdir\" size=\"40\" />
                 <input type=\"hidden\" name=\"survey_id\" value=\"$survey_idR\"  />
<input type=\"hidden\" name=\"first\" value=\"$first_id\"  />
<input type=\"hidden\" name=\"last\" value=\"$last_id\"  />
<input type=\"hidden\" name=\"nn\" value=\"1\"  />
                 <input type=\"hidden\" name=\"map_id\" value=\"$map_id\"  />
               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> <input name=\"button name\" type=\"image\" src=\"$loc2/admin/GoTool/image/eprint2.png\"  /></form>  " ;

$printQ2="$loc2/power/pdf3/documents/printPart.php";
$PrintApp1='';

$appPrint="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"$MIT\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"$MIT\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"$PrintApp1\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"printQ2H1\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"printQ2H\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"printQ2H0\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"printQ2Extra\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Ccreate_dateR\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"$graggdir\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$survey_idR\"  />
	                 <input type=\"hidden\" name=\"report7\" value=\"$Report7\"  />
	 <input type=\"hidden\" name=\"pic1\" value=\"$pop222azz22B\"  />
	<input type=\"hidden\" name=\"pic88\" value=\"$Schart[$map_id]\" />
	 <input type=\"hidden\" name=\"sig1\" value=\"$loc2/sig/$Ssig_id[$map_id]\"  />
	  <input type=\"hidden\" name=\"sig1a\" value=\"$Ssig_id[$map_id]\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_id\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_id\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> <input name=\"button name\" type=\"image\" src=\"$loc2/admin/GoTool/image/eprint2.png\" /></form></td>
	";


//////

//$year1=date("Y", strtotime("$Rtoday"));

  $sql33a800 ="SELECT * FROM $table_name8000 WHERE customer_id = '$cust_id' AND survey_id ='305'";
  $result33a800 = @mysql_query($sql33a800,$connection) or die(mysql_error());
   $num800a = mysql_num_rows($result33a800);

   if ($num800a<1){
   
   $daylaunch="No Launch Date has been chosen.";
   
   }else{
   
    $sql33a800 ="SELECT * FROM $table_name8000 WHERE customer_id = '$cust_id' AND survey_id ='305'";
   // echo $sql33a800;
  $result33a800 = @mysql_query($sql33a800,$connection) or die(mysql_error());
   while ($row112a800 = mysql_fetch_array($result33a800)) {
  $datelaunch=  $row112a800['sign_date'];
  $datelaunch1=date("m-d-Y", strtotime("$datelaunch"));
     $daylaunch="$datelaunch1 ";
   }
   }


$life2="$loc2/lifetime/GoSlider/data/nosig.png";

if (file_exists("../../../lifetime/GoSlider/data/$cust_id.png")){
$life2="$loc2/lifetime/GoSlider/data/$cust_id.png";
}



$appPrintPP='';
$IwhyP='';
$bad443="<FORM  name=\"formcheck55\" target=\"_blank\" METHOD=\"POST\" ACTION=\"$prog977a5?token=$tok&log=$cust_id&stud=$cust_id&test=198\">
 	<input type=\"hidden\" name=\"applicant\" value=\"$cust_id\">
  <input type=\"hidden\" name=\"jedID2\" value=\"\"  />
  	<input type=\"hidden\" name=\"testy\" value=\"198\">
    	<input type=\"hidden\" name=\"ggbad\" value=\"I\">
<input type=\"hidden\" name=\"dop\" value=\"2\">
	<input type=\"hidden\" name=\"agent\" value=\"1\">
    	<input type=\"hidden\" name=\"nn\" value=\"1\">
<button class=\"fsSubmitButtonsmall\" type=\"input\">Add Content</button>
          </form>     ";

////
 $sql33a8001r ="SELECT * FROM $table_name80 WHERE van3 = '$cust_id' AND survey_id ='198' AND van1 !='99' order by map_id DESC ";
// echo $sql33a8001;
  $result33a8001r = @mysql_query($sql33a8001r,$connection) or die(mysql_error());
   while ($row112a8001r = mysql_fetch_array($result33a8001r)) {
   
      $map_idPP =  $row112a8001r['map_id'];
   
   $bad443="
   
    <FORM  name=\"formcheck3\" target=\"_blank\" METHOD=\"POST\" ACTION=\"$prog979?token=$tok&log=$logged&logged=$cust_id&log=$cust_id\">
	                 <input type=\"hidden\" name=\"agent\" value=\"1\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                  <input type=\"hidden\" name=\"george2\" value=\"0\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"198\"  />
	                 	 <input type=\"hidden\" name=\"applicant\" value=\"$cust_id\">
	                  <input type=\"hidden\" name=\"map_id777\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"george2\" value=\"1\"  />
	                   <input type=\"hidden\" name=\"CAPMIT\" value=\"survey\"  />  
	                  <input type=\"hidden\" name=\"logg1\" value=\"$cust_id\"  />
	                 	<input type=\"hidden\" name=\"nn\" value=\"1\">
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"3\"  />
	                <input type=\"hidden\" name=\"bjed\" value=\"2\"  />
	                <button class=\"fsSubmitButtonsmall\" type=\"input\">Quick Edit </button>
					</form>
					
	  <FORM  name=\"formcheck3\"  METHOD=\"POST\" ACTION=\"$badboy\">
	                 <input type=\"hidden\" name=\"agent\" value=\"1\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"198\"  />
	                 	 <input type=\"hidden\" name=\"applicant\" value=\"$cust_id\">
	                  <input type=\"hidden\" name=\"map_id777\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	            
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2YYY\" value=\"13\"  />
	                <input type=\"hidden\" name=\"bjed\" value=\"2\"  />
	                <button class=\"fsSubmitButtonsmall\" type=\"input\">Delete </button>
					</form>				
   
   ";
  $whyP .=  stripslashes($row112a8001r['van4']);

      $Cmap_idPP =  $row112a8001r['create_date'];
      
      $IwhyP .=  stripslashes($row112a8001r['van5']);
   
$printQ2="$loc2/power/pdf3/documents/printPart.php";


$appPrintPP .="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"$PrintApp1\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"printQ2H1\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"printQ2H\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"printQ2H0\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"printQ2Extra\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"survey\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"198\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> <input name=\"button name\" type=\"image\" src=\"$loc2/admin/GoTool/image/eprint2.png\" /></form> <br/>
	";
   
   
   
   
  
   }

/////

$BappPrintPP='';
$BIwhyP='';
$BwhyP='';
$ABIwhyP=" <FORM  name=\"formcheck55\" target=\"_blank\" METHOD=\"POST\" ACTION=\"$prog977a5?token=$tok&log=$cust_id&stud=$cust_id&test=199\">
 	<input type=\"hidden\" name=\"applicant\" value=\"$cust_id\">
  <input type=\"hidden\" name=\"jedID2\" value=\"\"  />
  	<input type=\"hidden\" name=\"testy\" value=\"199\">
    	<input type=\"hidden\" name=\"ggbad\" value=\"I\">
<input type=\"hidden\" name=\"dop\" value=\"2\">
	<input type=\"hidden\" name=\"agent\" value=\"1\">
    	<input type=\"hidden\" name=\"nn\" value=\"1\">
<button class=\"fsSubmitButtonsmall\" type=\"input\">Add Content</button>
          </form>      ";
////
 $sql33a8001r ="SELECT * FROM $table_name80 WHERE van3 = '$cust_id' AND survey_id ='199' AND van1 != '99'";
// echo $sql33a8001;
  $result33a8001r = @mysql_query($sql33a8001r,$connection) or die(mysql_error());
   while ($row112a8001r = mysql_fetch_array($result33a8001r)) {
   $Bmap_idPP =  $row112a8001r['map_id'];
   
   $ABIwhyP="
   <FORM  name=\"formcheck3\" target=\"_blank\" METHOD=\"POST\" ACTION=\"$prog979?token=$tok&log=$logged&logged=$cust_id&log=$cust_id\">
	                 <input type=\"hidden\" name=\"agent\" value=\"1\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                  <input type=\"hidden\" name=\"george2\" value=\"0\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"199\"  />
	                 <input type=\"hidden\" name=\"george2\" value=\"1\"  />
	                 	 <input type=\"hidden\" name=\"applicant\" value=\"$cust_id\">
	                  <input type=\"hidden\" name=\"map_id777\" value=\"$Bmap_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$Bmap_idPP\"  />
	                   <input type=\"hidden\" name=\"CAPMIT\" value=\"survey\"  />  
	                  <input type=\"hidden\" name=\"logg1\" value=\"$cust_id\"  />
	                 	<input type=\"hidden\" name=\"nn\" value=\"1\">
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"3\"  />
	                <input type=\"hidden\" name=\"bjed\" value=\"2\"  />
	                <button class=\"fsSubmitButtonsmall\" type=\"input\">Quick Edit </button>
					</form>
   
     <FORM  name=\"formcheck3\"  METHOD=\"POST\" ACTION=\"$badboy\">
	                 <input type=\"hidden\" name=\"agent\" value=\"1\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"199\"  />
	                 	 <input type=\"hidden\" name=\"applicant\" value=\"$cust_id\">
	                  <input type=\"hidden\" name=\"map_id777\" value=\"$Bmap_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$Bmap_idPP\"  />
	            
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2YYY\" value=\"13\"  />
	                <input type=\"hidden\" name=\"bjed\" value=\"2\"  />
	                <button class=\"fsSubmitButtonsmall\" type=\"input\">Delete </button>
					</form>	
   ";
  $BwhyP .=  stripslashes($row112a8001r['van4']);
   
      $BCmap_idPP =  $row112a8001r['create_date'];
      
      $BIwhyP .=  stripslashes($row112a8001r['van5']);
   
$printQ2="$loc2/power/pdf3/documents/printPart.php";


$BappPrintPP .="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"$PrintApp1\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"printQ2H1\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"printQ2H\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"printQ2H0\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"printQ2Extra\" value=\"\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$BCmap_idPP\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"survey\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"199\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$Bmap_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$Bmap_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> <input name=\"button name\" type=\"image\" src=\"$loc2/admin/GoTool/image/eprint2.png\" /></form> <br/>
	";
   
   
   
   
  
   }

/////

        $sql33AA ="SELECT * FROM $table_name36001 WHERE customer_id = '$cust_id' AND type_id='101'  ";
  $result33A = @mysql_query($sql33AA,$connection) or die(mysql_error());
     $num33A = mysql_num_rows($result33A);
          if ($num33A>0){
          $row22rA =mysql_fetch_array($result33A,MYSQL_ASSOC);
      $church=stripslashes($row22rA['name']);
      $pastor=stripslashes($row22rA['lastname']);
       $caddress=stripslashes($row22rA['address_1st']);
      $caddress1=stripslashes($row22rA['address_2nd']);
       $czip=stripslashes($row22rA['zip']);
      $ccity=stripslashes($row22rA['city']);
       $ccountry=stripslashes($row22rA['country']);
      $cstate=stripslashes($row22rA['state']);
     //  $church=stripslashes($row22rA['name']);
      $ctele=stripslashes($row22rA['telephone']);
      // $church=stripslashes($row22rA['name']);
      $cemail=stripslashes($row22rA['email']);
       $cweb=stripslashes($row22rA['web']);
      $ctwitter=stripslashes($row22rA['twitter']);
       $cfacebook=stripslashes($row22rA['fb']);
      $cinsta=stripslashes($row22rA['insta']);

          }
///

////Becoming Assessment 54

$Aa1=54;////Becoming Assessment
$Aa2=55;//Life And Ministry Assessment
$Aa3=56;//Current Ministry Assessment
$Aa4=61;//Ministry Team Profile Assessment
$Aa5=161;//Giftedness Assessment
$Aa6=57;//Journal of Mentor Assessment





$BeappPrintPP='NA';

 $sql33a8001r ="SELECT * FROM $table_name80 WHERE agent_id = '$cust_id' AND survey_id ='$Aa1' AND van1 !='99'";
// echo $sql33a8001;
  $result33a8001r = @mysql_query($sql33a8001r,$connection) or die(mysql_error());
   while ($row112a8001r = mysql_fetch_array($result33a8001r)) {
   
      $map_idPP =  $row112a8001r['map_id'];
      $Cmap_idPP =  $row112a8001r['create_date'];
   
 
   
$printQ2="$loc2/power/pdf3/documents/printPart.php";


$BeappPrintPP ="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"survey\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$Aa1\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> 
	                <button class=\"fsSubmitButtonsmall\" type=\"input\">View</button></form> <br/>
	";
  
   }

//Life And Ministry Assessment,55,CASMIT,99,Current Ministry Assessment,56,survey,99,Ministry Team Profile Assessment,61,survey,99,Giftedness Assessment,161,survey,99,Journal of Mentor Assessment,57,survey
$LMappPrintPP='NA';

 $sql33a8001r ="SELECT * FROM $table_name80 WHERE agent_id = '$cust_id' AND survey_id ='$Aa2' AND van1 !='99'";
// echo $sql33a8001;
  $result33a8001r = @mysql_query($sql33a8001r,$connection) or die(mysql_error());
   while ($row112a8001r = mysql_fetch_array($result33a8001r)) {
   
      $map_idPP =  $row112a8001r['map_id'];
      $Cmap_idPP =  $row112a8001r['create_date'];
   
 
   
$printQ2="$loc2/power/pdf3/documents/printPart.php";


$LMappPrintPP ="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"CASMIT\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$Aa2\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> 
	                 <button class=\"fsSubmitButtonsmall\" type=\"input\">View</button></form> <br/>
	";
  
   }


////
////

$CMappPrintPP='NA';

 $sql33a8001r ="SELECT * FROM $table_name80 WHERE agent_id = '$cust_id' AND survey_id ='$Aa3' AND van1 !='99'";
// echo $sql33a8001;
  $result33a8001r = @mysql_query($sql33a8001r,$connection) or die(mysql_error());
   while ($row112a8001r = mysql_fetch_array($result33a8001r)) {
   
      $map_idPP =  $row112a8001r['map_id'];
      $Cmap_idPP =  $row112a8001r['create_date'];
   
 
   
$printQ2="$loc2/power/pdf3/documents/printPart.php";


$CMappPrintPP ="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"survey\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$Aa3\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> 
	                <button class=\"fsSubmitButtonsmall\" type=\"input\">View</button> <br/>
	";
  
   }

////
////Ministry Team Profile Assessment

$MTappPrintPP='NA';

 $sql33a8001r ="SELECT * FROM $table_name80 WHERE agent_id  = '$cust_id' AND survey_id ='$Aa4' AND van1 !='99'";
// echo $sql33a8001;
  $result33a8001r = @mysql_query($sql33a8001r,$connection) or die(mysql_error());
   while ($row112a8001r = mysql_fetch_array($result33a8001r)) {
   
      $map_idPP =  $row112a8001r['map_id'];
      $Cmap_idPP =  $row112a8001r['create_date'];
   
 
   
$printQ2="$loc2/power/pdf3/documents/printPart.php";


$MTappPrintPP ="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"survey\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$Aa4\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> 
	                 <button class=\"fsSubmitButtonsmall\" type=\"input\">View</button></form> <br/>
	";
  
   }
////
////giftednss 161

$GAappPrintPP='NA';

 $sql33a8001r ="SELECT * FROM $table_name80 WHERE agent_id  = '$cust_id' AND survey_id ='$Aa5' AND van1 !='99'";
// echo $sql33a8001;
  $result33a8001r = @mysql_query($sql33a8001r,$connection) or die(mysql_error());
   while ($row112a8001r = mysql_fetch_array($result33a8001r)) {
   
      $map_idPP =  $row112a8001r['map_id'];
      $Cmap_idPP =  $row112a8001r['create_date'];
   
 
   
$printQ2="$loc2/power/pdf3/documents/printPart.php";


$GAappPrintPP ="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"survey\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$Aa5\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> 
	                 <button class=\"fsSubmitButtonsmall\" type=\"input\">View</button></form> <br/>
	";
  
   }

////
////journal menter 54

$JMappPrintPP='NA';

 $sql33a8001r ="SELECT * FROM $table_name80 WHERE agent_id = '$cust_id' AND survey_id ='$Aa6' AND van1 !='99'";
// echo $sql33a8001;
  $result33a8001r = @mysql_query($sql33a8001r,$connection) or die(mysql_error());
   while ($row112a8001r = mysql_fetch_array($result33a8001r)) {
   
      $map_idPP =  $row112a8001r['map_id'];
      $Cmap_idPP =  $row112a8001r['create_date'];
   
 
   
$printQ2="$loc2/power/pdf3/documents/printPart.php";


$JMappPrintPP ="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"survey\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$Aa6\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> 
	                <button class=\"fsSubmitButtonsmall\" type=\"input\">View</button></form> <br/>
	";
  
   }
////
////
////MBecoming Assessment 54

$MBeappPrintPP='NA';

 $sql33a8001r ="SELECT * FROM $table_name80 WHERE van47 = '$cust_id' AND survey_id ='$Aa1' AND survey_id !='0'AND van1 !='99'";
// echo $sql33a8001;
  $result33a8001r = @mysql_query($sql33a8001r,$connection) or die(mysql_error());
   while ($row112a8001r = mysql_fetch_array($result33a8001r)) {
   
      $map_idPP =  $row112a8001r['map_id'];
      $Cmap_idPP =  $row112a8001r['create_date'];
   
 
   
$printQ2="$loc2/power/pdf3/documents/printPart.php";


$MBeappPrintPP ="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"survey\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$Aa1\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> 
	                <button class=\"fsSubmitButtonsmall\" type=\"input\">View</button></form> <br/>
	";
  
   }

//Life And Ministry Assessment,55,CASMIT,99,Current Ministry Assessment,56,survey,99,Ministry Team Profile Assessment,61,survey,99,Giftedness Assessment,161,survey,99,Journal of Mentor Assessment,57,survey
$MLMappPrintPP='NA';

 $sql33a8001r ="SELECT * FROM $table_name80 WHERE van47 = '$cust_id' AND survey_id ='$Aa2' AND van1 !='99'";
// echo $sql33a8001;
  $result33a8001r = @mysql_query($sql33a8001r,$connection) or die(mysql_error());
   while ($row112a8001r = mysql_fetch_array($result33a8001r)) {
   
      $map_idPP =  $row112a8001r['map_id'];
      $Cmap_idPP =  $row112a8001r['create_date'];
   
 
   
$printQ2="$loc2/power/pdf3/documents/printPart.php";


$MLMappPrintPP ="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"CASMIT\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$Aa2\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> 
	                 <button class=\"fsSubmitButtonsmall\" type=\"input\">View</button></form> <br/>
	";
  
   }


////
////

$MCMappPrintPP='NA';

 $sql33a8001r ="SELECT * FROM $table_name80 WHERE van47  = '$cust_id' AND survey_id ='$Aa3' AND van1 !='99'";
// echo $sql33a8001;
  $result33a8001r = @mysql_query($sql33a8001r,$connection) or die(mysql_error());
   while ($row112a8001r = mysql_fetch_array($result33a8001r)) {
   
      $map_idPP =  $row112a8001r['map_id'];
      $Cmap_idPP =  $row112a8001r['create_date'];
   
 
   
$printQ2="$loc2/power/pdf3/documents/printPart.php";


$CMappPrintPP ="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"survey\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$Aa3\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> 
	                <button class=\"fsSubmitButtonsmall\" type=\"input\">View</button> <br/>
	";
  
   }

////
////Ministry Team Profile Assessment

$MMTappPrintPP='NA';

 $sql33a8001r ="SELECT * FROM $table_name80 WHERE van47  = '$cust_id' AND survey_id ='$Aa4' AND van1 !='99'";
// echo $sql33a8001;
  $result33a8001r = @mysql_query($sql33a8001r,$connection) or die(mysql_error());
   while ($row112a8001r = mysql_fetch_array($result33a8001r)) {
   
      $map_idPP =  $row112a8001r['map_id'];
      $Cmap_idPP =  $row112a8001r['create_date'];
   
 
   
$printQ2="$loc2/power/pdf3/documents/printPart.php";


$MMTappPrintPP ="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"survey\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$Aa4\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> 
	                 <button class=\"fsSubmitButtonsmall\" type=\"input\">View</button></form> <br/>
	";
  
   }
////
////giftednss 161

$MGAappPrintPP='NA';

 $sql33a8001r ="SELECT * FROM $table_name80 WHERE van47  = '$cust_id' AND survey_id ='$Aa5' AND van1 !='99'";
// echo $sql33a8001;
  $result33a8001r = @mysql_query($sql33a8001r,$connection) or die(mysql_error());
   while ($row112a8001r = mysql_fetch_array($result33a8001r)) {
   
      $map_idPP =  $row112a8001r['map_id'];
      $Cmap_idPP =  $row112a8001r['create_date'];
   
 
   
$printQ2="$loc2/power/pdf3/documents/printPart.php";


$GAappPrintPP ="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"survey\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$Aa5\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> 
	                 <button class=\"fsSubmitButtonsmall\" type=\"input\">View</button></form> <br/>
	";
  
   }

////
////journal menter 54

$MJMappPrintPP='NA';

 $sql33a8001r ="SELECT * FROM $table_name80 WHERE van47  = '$cust_id' AND survey_id ='$Aa6' AND van1 !='99'";
// echo $sql33a8001;
  $result33a8001r = @mysql_query($sql33a8001r,$connection) or die(mysql_error());
   while ($row112a8001r = mysql_fetch_array($result33a8001r)) {
   
      $map_idPP =  $row112a8001r['map_id'];
      $Cmap_idPP =  $row112a8001r['create_date'];
   
 
   
$printQ2="$loc2/power/pdf3/documents/printPart.php";


$MJMappPrintPP ="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ2?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"agent\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	<input type=\"hidden\" name=\"nn\" value=\"1\"  />
	<input type=\"hidden\" name=\"dirmap\" value=\"survey\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$Aa6\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> 
	                <button class=\"fsSubmitButtonsmall\" type=\"input\">View</button></form> <br/>
	";
  
   }
////

$T1stQ='';
$TndQa='';

$quarter="1st";

$Aa1=54;////Becoming Assessment
$Aa2=55;//Life And Ministry Assessment
$Aa3=56;//Current Ministry Assessment
$Aa4=61;//Ministry Team Profile Assessment
$Aa5=161;//Giftedness Assessment
$Aa6=57;//Journal of Mentor Assessment

include('2ndQ.php');

$T1stQ=$TndQa;


//////
$TndQa='';
$quarter="2nd";

$Aa1=166;////Becoming Assessment
$Aa2=167;//Life And Ministry Assessment
$Aa3=186;//Current Ministry Assessment
$Aa4=189;//Ministry Team Profile Assessment
$Aa5=192;//Giftedness Assessment
$Aa6=195;//Journal of Mentor Assessment

include('2ndQ.php');

$T2ndQ=$TndQa;

/////////////

$TndQa='';
$quarter="3rd";

/////////////
$Aa1=168;////Becoming Assessment
$Aa2=174;//Life And Ministry Assessment
$Aa3=187;//Current Ministry Assessment
$Aa4=190;//Ministry Team Profile Assessment
$Aa5=193;//Giftedness Assessment
$Aa6=196;//Journal of Mentor Assessment


include('2ndQ.php');

$T3rdQ=$TndQa;
$TndQa='';
$quarter="4th";

/////////////
$Aa1=169;////Becoming Assessment
$Aa2=182;//Life And Ministry Assessment
$Aa3=188;//Current Ministry Assessment
$Aa4=191;//Ministry Team Profile Assessment
$Aa5=194;//Giftedness Assessment
$Aa6=197;//Journal of Mentor Assessment


include('2ndQ.php');

$T4thQ=$TndQa;








/////
$pappy1='';
$vatcount=0;
$num331bd='';
 $thinge='';
 $num331bde=0;
if ($pMIT>0){


$printQ2Extra='';
  $Student="Student/Applicant";
  $Certified="Certified by";
  $Roadtitle3="Roadmap for #$cust_id: $first_id $last_id";
$Roadtitle1="Roadmap";
$battach='';

$pappy1='';
////

if 	($Pgrade3>1){
$pMIT=$Pgrade2[1];



$printQ21="$loc2/power/pdf3/documents/printPartRoad.php";


$RoadPrintPP ="<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ21?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"text_account34\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	 <input type=\"hidden\" name=\"pMIT\" value=\"$pMIT\" size=\"40\" />
	 <input type=\"hidden\" name=\"printQ2H1\" value=\"$Roadtitle1\"  /> 
	<input type=\"hidden\" name=\"printQ2H\" value=\"$Roadtitle3 \"  />
	<input type=\"hidden\" name=\"battach\" value=\"$battach\" />
	<input type=\"hidden\" name=\"dirmap\" value=\"survey\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$Aa6\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	 <input type=\"hidden\" name=\"printQ2Extra\" value=\"$printQ2Extra\" size=\"40\" />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> 
	                <button class=\"fsSubmitButtonsmall\" type=\"input\">Print Road Map</button></form> 
	                
<FORM  name=\"formcheck7864\" target=\"_blank\"  METHOD=\"POST\" ACTION=\"$printQ21?token=$tok&log=$cust_id\">
	               <input type=\"hidden\" name=\"text_account34\" value=\"$cust_id\" />
	                 <input type=\"hidden\" name=\"gbad\" value=\"1\"  />
	                 <input type=\"hidden\" name=\"sbad\" value=\"100\" size=\"40\" />
	                 <input type=\"hidden\" name=\"yummap\" value=\"100\" size=\"40\" />
	<input type=\"hidden\" name=\"MIT\" value=\"survey\"  />
 <input type=\"hidden\" name=\"dir_id\" value=\"survey\"  />
	 <input type=\"hidden\" name=\"first\" value=\"$first_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"last\" value=\"$last_id\" size=\"40\" />
	 <input type=\"hidden\" name=\"createD\" value=\"$Cmap_idPP\" size=\"40\" />
	 <input type=\"hidden\" name=\"pMIT\" value=\"$pMIT\" size=\"40\" />
	 
	 <input type=\"hidden\" name=\"signS\" value=\"$Student\" size=\"40\" />
	 <input type=\"hidden\" name=\"certS\" value=\"$Certified\" size=\"40\" />
	 <input type=\"hidden\" name=\"battach\" value=\"$battach\" />
	<input type=\"hidden\" name=\"printQ2H1\" value=\"$Roadtitle1\"  /> 
	<input type=\"hidden\" name=\"printQ2H\" value=\"$Roadtitle3\"  />
	<input type=\"hidden\" name=\"printQ2Extra\" value=\"$printQ2Extra\" size=\"40\" />
	                 <input type=\"hidden\" name=\"survey_id\" value=\"$Aa6\"  />
	 <input type=\"hidden\" name=\"applicant\" value=\"$map_idPP\"  />
	                 <input type=\"hidden\" name=\"map_id\" value=\"$map_idPP\"  />
	               <input type=\"hidden\" name=\"gbadMod\" value=\"1\"  />
	                <input type=\"hidden\" name=\"jedID2\" value=\"$jed\"  /> 
	                <button class=\"fsSubmitButtonsmall\" type=\"input\">Print Road Map for Signatures</button></form> <br/>	                
	                
	                
	                
	                ";

















//echo "pMIt - $pMIT <br/>";

$ppMitz=$Pgrade2[1];
$pmPgrade2=explode(",", $ppMitz);
$pmPgrade3=count($pmPgrade2);

$pappy1 ="$RoadPrintPP <br/>";

if ($pmPgrade3<2){

$pMIT=$Pgrade2[1];

include('viewcohartupsRoad.php');	


 


$pappy1 .="

<table class=\"list\"><thead><tr><td>Roadmap</td><td>Status</td></tr></thead>
<tbody>
<tr><td>Roadmap Progress</td><td>Tasks Completed: $vatcount out of $num331bd - <font size=\"5\" color=\"red\">  $thinge%</font></td></tr>
</tbody>
</table>


 <h3 class=\"collapsible\" id=\"section1zz$aXX1\"><font color=\"921319\">Roadmap Details</font><span></span></h3>
<div class=\"container\">
    <div class=\"content\">
    $display_blockRA92T
</div></div>
";


}

/////
if ($pmPgrade3>1){

$pappy1 ="$RoadPrintPP <br/>";

for ($xpm22=0; $xpm22<$pmPgrade3; $xpm22++) {


$pMIT=$pmPgrade2[$xpm22];

include('viewcohartupsRoad.php');	


 $cpm1=$xpm22+1;


$pappy1 .="

<table class=\"list\"><thead><tr><td>Roadmap - $cpm1</td><td>Status</td></tr></thead>
<tbody>
<tr><td>Roadmap Progress</td><td>Tasks Completed: $vatcount out of $num331bd - <font size=\"5\" color=\"red\">  $thinge%</font></td></tr>
</tbody>
</table>


 <h3 class=\"collapsible\" id=\"section1zz$aXX1\"><font color=\"921319\">Roadmap Details</font><span></span></h3>
<div class=\"container\">
    <div class=\"content\">
    $display_blockRA92T
</div></div><br/><br/>
";

}


}
////

}





////

}


////

$blamQ=200;
$blambutton="Add Comments and Upload";
$blambutton1="Comments and Upload for #$cust_id: $first_id $last_id Internal Record";
include('repeatQ.php');
$blamcomments1=$blamcomments;

////


$blamQ=201;
$blambutton="Add Comments and Upload";
$blambutton1="Quad I Prerequisite: Comments and Upload for #$cust_id: $first_id $last_id Internal Record";
include('repeatQ.php');
$blamcomments1 .=$blamcomments;

$blamQ=202;
$blambutton="Add Comments and Upload";
$blambutton1="Quad I: Comments and Upload for #$cust_id: $first_id $last_id Internal Record";
include('repeatQ.php');
$blamcomments1 .=$blamcomments;

$blamQ=204;
$blambutton="Add Comments and Upload";
$blambutton1="Quad II: Comments and Upload for #$cust_id: $first_id $last_id Internal Record";
include('repeatQ.php');
$blamcomments1 .=$blamcomments;

$blamQ=205;
$blambutton="Add Comments and Upload";
$blambutton1="Quad III: Comments and Upload for #$cust_id: $first_id $last_id Internal Record";
include('repeatQ.php');
$blamcomments1 .=$blamcomments;

$blamQ=206;
$blambutton="Add Comments and Upload";
$blambutton1="Quad IV: Comments and Upload for #$cust_id: $first_id $last_id Internal Record";
include('repeatQ.php');
$blamcomments1 .=$blamcomments;


$bandad="  <table><tr><td>$pic22</td><td>  
<h2 id=\"review-title\">$first_id $last_id  ID#$cust_id</h2> 
Email: $pemail1<br/>
Telephone: $phone  <br/>    
Address: $address_main </td></tr></table>
<br/><!---
More Info:
 <table><tr><td>
            Official Name of Church:</td><td><input type=\"text\" value=\"$church\" name=\"church\" size=\"37\"></td>
<tr><td>Pastor's Publically Displayed Name:</td><td><input type=\"text\" name=\"pastor\" value=\"$pastor\" size=\"37\"></td></tr>
<tr><td>Church Street Address 1:</td><td><input type=\"text\" name=\"caddress\" value=\"$caddress\" size=\"37\">
</td></tr>
<tr><td>Church Street Address 2:</td><td>
<input type=\"text\" name=\"caddress1\" value=\"$caddress1\" size=\"37\">
</td></tr>

<tr><td>Church City:</td><td><input type=\"text\" name=\"ccity\" value=\"$ccity\" size=\"37\">
</td></tr>
<tr><td>Church Zip Code:</td><td><input type=\"text\" name=\"czip\" value=\"$czip\" size=\"37\">
</td></tr>
<tr><td>Church Country:</td><td>
<input type=\"text\" name=\"ccountry\" value=\"$ccountry\" size=\"37\"></td></tr>
<tr><td>Church State/Province:</td><td><input type=\"text\" name=\"cstate\" value=\"$cstate\" size=\"37\">
</td></tr>
<tr><td>Church Website URL:</td><td><input type=\"text\" name=\"cweb\" value=\"$cweb\" size=\"37\"></td></tr>
<tr><td>Church Email Address:</td><td>
<input type=\"text\" name=\"cemail\" value=\"$cemail\" size=\"37\"></td></tr>
<tr><td>Church Phone Number:</td><td>
<input type=\"text\" name=\"ctele\" value=\"$ctele\" size=\"37\"></td></tr>
<tr><td>Church Twitter URL:</td><td>
<input type=\"text\" name=\"ctwitter\" value=\"$ctwitter\" size=\"37\"></td></tr>
<tr><td>Church Facebook URL:</td><td>
<input type=\"text\" name=\"cfacebook\" value=\"$cfacebook\" size=\"37\"></td></tr>
<tr><td>Church Instagram URL:</td><td>
<input type=\"text\" name=\"cinsta\" value=\"$cinsta\" size=\"37\"></td></tr></table>
--->
<br/><br/>

<fieldset>
<table class=\"list\"><thead><tr><td>ITEM</td><td>MEASUREMENT</TD></tr></thead><tbody>
<tr><td>Sign Up Date</td><td>$Ccreate_dateR</td></tr>
<!--<tr><td>Launch Date</td><td>$daylaunch</td></tr>-->
<!---<tr><td>Interview Assessment</td><td>$bad443$IwhyP</td></tr>-->
<tr><td>Raw Application and Scores</td><td>$STotal[$map_id] <br/> $appPrint</td></tr>
<tr><td>Interview Assessment &  Notes</td><td>$bad443 $whyP $appPrintPP</td></tr>
<tr><td>LifeTime Assessment <br/> Completed at Application</td><td>$pop222azz22 <br/>$printChart99</td></tr>

<!---<tr><td>LifeTime Assessment <br/> Completed at Assessment Center</td><td><a href=\"$life2\"><img src=\"$life2\"   width=\"50\" ></td></tr>--->
<tr><td>Background Check Results</td><td>$ABIwhyP$BwhyP $BIwhyP <br/> $BappPrintPP</td></tr>


</tbody></table>

$blamcomments1


$pappy1

<br/><br/>
 <h3 class=\"collapsible\" id=\"section1z$aXX1\"><font color=\"921319\">Quarterly Assessments</font><span></span></h3>
<div class=\"container\">
    <div class=\"content\">


$T1stQ
<br/><br/>
$T2ndQ
<br/><br/>
$T3rdQ
<br/><br/>
$T4thQ

</div></div>



";



//  if($tword==$blink){
 //  $tword="Test";        //
//  }
    $min=90;
 $sec=$min*60;
 $timer=1000*$sec;

$display_blockRA92='';

///$display_title="CAP Requirements For Funding";

/// if (isset($_POST['jedID2'])) {
///	$jedID2=$_POST['jedID2'];
///}

  //include("customer_add.php");   //checks log for customer information

 $startsaying="<br/><br/><font size=\"4\" color=\"red\"> $title Overview</font>";
// $final_sub_warn .=" <br/><br/>
//Please go back and take a look at any questions you need to review prior to clicking the <i>Submit</i> button. Once the button is clicked, your information will be submit for review.
//          <br/><br/>";
    $today_count=date("m/d/Y h:i:s A");
    $import_time=strtotime("now+1 hour+ $min minutes");
$import_time=date("m/d/Y h:i:s A", $import_time);

//$prog="CAP_Control/list.php?";





$display_blockRA92 .=  "

$bandad

<br /><br/>";

 


               //   include("post_variables_survey1.php");



    //           include("customer_add.php");









?>


