X-Git-Url: https://git.hcoop.net/clinton/MarylandElectronicPetitionSignature.git/blobdiff_plain/d649512287f4055c589a77e98af3ef31633ef3d2..b74d50618e5226840452705ac0dfdbb86979db2c:/admin/analytics.php diff --git a/admin/analytics.php b/admin/analytics.php index 4230e42..a69d2fe 100644 --- a/admin/analytics.php +++ b/admin/analytics.php @@ -59,8 +59,9 @@ if (isset($_GET['flag_phone'])){ include_once('header.php'); if (isset($_GET['ip_address'])){ $ip = $_GET['ip_address']; + $petition_id = $_GET['petition_id']; echo "

Review $ip

"; - $q = "SELECT * FROM signatures where ip_address = '$ip' order by signature_status desc "; + $q = "SELECT * FROM signatures where ip_address = '$ip' and signature_status = 'verified' and petition_id = '$petition_id' order by signature_status desc "; $r = $petition->query($q); while($d = mysqli_fetch_array($r)){ $color = 'white'; @@ -75,7 +76,6 @@ if (isset($_GET['ip_address'])){ - @@ -101,7 +101,7 @@ if (isset($_GET['ip_address'])){ } echo " - + @@ -142,11 +142,12 @@ if (isset($_GET['ip_address'])){ "; } echo "
$d[signed_name_as] $d[signed_name_as_circulator] $d[contact_phone]$d[signature_status] $d[printed_status] flag invalid signature flag VTRID
$d[action_on]$d[php_session_id]$d[php_session_id] $d[php_page] ".id2petition($d['petition'])." $d[invite]
CLEAR ALERT - - SIGNATURE FOUND - - - ADD TO FOLLOW UP LIST MGP - - ADD TO FOLLOW UP LIST MLP - - ADD TO FOLLOW UP LIST BTEC - - ADD TO FOLLOW UP LIST PG + SIGNATURE FOUND
+ - ADD TO FOLLOW UP LIST Maryland General
+ - ADD TO FOLLOW UP LIST MGP
+ - ADD TO FOLLOW UP LIST MLP
+ - ADD TO FOLLOW UP LIST BTEC
+ - ADD TO FOLLOW UP LIST PG
- ADD TO FOLLOW UP LIST Ivey "; }elseif(isset($_GET['php_session_id']) && isset($_GET['follow_up'])){ @@ -184,11 +185,13 @@ if ($d[email_for_follow_up] != ''){ } $petition->query("insert into follow_up (name, email, php_session, petition_id) values ('$name','$email','$php_session_id','$_GET[follow_up]') "); $petition->query("update presign set presign_status = 'DONE' where php_session_id = '$php_session_id' "); + $petition->query("update presign set presign_status = 'DONE' where email = '$email' "); echo ""; }elseif (isset($_GET['VTRID'])){ $VTRID = $_GET['VTRID']; + $petition_id = $_GET['petition_id']; echo "

Review $VTRID

"; - $q = "SELECT * FROM signatures where VTRID = '$VTRID' and signature_status <> 'deleted' order by petition_id, id DESC "; + $q = "SELECT * FROM signatures where VTRID = '$VTRID' and signature_status = 'verified' and petition_id = '$petition_id' order by petition_id, id DESC "; $r = $petition->query($q); while($d = mysqli_fetch_array($r)){ $color = 'white'; @@ -203,7 +206,6 @@ if ($d[email_for_follow_up] != ''){ - @@ -221,11 +223,41 @@ if ($d[email_for_follow_up] != ''){

Signature Analytics

NEVER NEVER NEVER CALL OR TEXT ANYONE - ONLY EMAIL!!!

SysOp Says: Transparency = Trust

-
$d[signed_name_as] $d[signed_name_as_circulator] $d[contact_phone]$d[signature_status] $d[printed_status] flag invalid signature flag VTRID
+
+ + + + + -
IP Address +
Watching for duplicates.
    +query($q); +while($d = mysqli_fetch_array($r)){ + if ($d['count'] > 1){ + echo "
  1. $d[ip_address] ".id2petition($d['petition_id'])." $d[count] $d[signed_name_as]
  2. "; + } +} +?>
*/ ?> +
+

VTRID

+
Watching for duplicates.
    +query($q); +while($d = mysqli_fetch_array($r)){ + if ($d['count'] > 1){ + echo "
  1. $d[VTRID] ".id2petition($d['petition_id'])." $d[count] $d[signed_name_as]
  2. "; + } +} + ?>
+

Pre-Sign

-
Follow up requested - never signed.
    +
    Follow up requested - never signed.
    +
      '' order by id desc"; $r = $petition->query($q); @@ -250,31 +282,7 @@ while($d = mysqli_fetch_array($r)){
-

IP Address

-
Watching for duplicates.
    -query($q); -while($d = mysqli_fetch_array($r)){ - if ($d['count'] > 1){ - echo "
  1. $d[ip_address] ".id2petition($d['petition_id'])." $d[count] $d[signed_name_as]
  2. "; - } -} -?>
-
-

VTRID

-
Watching for duplicates.
    -query($q); -while($d = mysqli_fetch_array($r)){ - if ($d['count'] > 1){ - echo "
  1. $d[VTRID] ".id2petition($d['petition_id'])." $d[count] $d[signed_name_as]
  2. "; - } -} - ?>
-
+

VTRID Bugs

Watching for 0