-//if ( $_COOKIE['pCOUNTY'] == 'Baltimore City'){
- // City Checkbox
- $cord = $d['text_cord_cityX'];
- $array = explode(",",$cord);
- $debug = "$cord : $array[0]";
- imagettftext($jpg_image, $array[0], $array[1], $array[2], $array[3], $black, $font_path, 'X');
-//}else{
- // County on Petition
- $cord = $d['text_cord_county'];
- $array = explode(",",$cord);
- imagettftext($jpg_image, $array[0], $array[1], $array[2], $array[3], $black, $font_path, str_replace('County','',$_COOKIE['pCOUNTY']) );
-//}
+if ($hide_county == 'NO'){
+ if ( $_COOKIE['pCOUNTY'] == 'Baltimore City' || $_COOKIE['debug'] == 'on'){
+ // City Checkbox
+ $cord = $d['text_cord_cityX'];
+ $array = explode(",",$cord);
+ $debug = "$id : $cord : $array[0]";
+ imagettftext($jpg_image, $array[0], $array[1], $array[2], $array[3], $black, $font_path, 'X');
+ }else{
+ // County on Petition
+ $cord = $d['text_cord_county'];
+ $array = explode(",",$cord);
+ imagettftext($jpg_image, $array[0], $array[1], $array[2], $array[3], $black, $font_path, str_replace('County','',$_COOKIE['pCOUNTY']) );
+ }
+}
+
+// Party Information
+imagettftext($jpg_image, 50, 0, 200, 600, $black, $font_path, $petition_party_line1 );
+imagettftext($jpg_image, 50, 0, 800, 700, $black, $font_path, $petition_party_line2 );
+imagettftext($jpg_image, 50, 0, 340, 800, $black, $font_path, $petition_party_line3 );
+imagettftext($jpg_image, 50, 0, 380, 850, $black, $font_path, $petition_party_line4 );
+
+