KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/duvallgroupweb/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/duvallgroupweb/SmartIDentityOrderForm.php
<?php
session_start();
error_reporting(E_ERROR);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- InstanceBegin template="/Templates/duvall_template.dwt" codeOutsideHTMLIsLocked="false" -->

<head>

  <!-- Latest compiled and minified CSS -->


  <!-- Global site tag (gtag.js) - Google Analytics -->
  <script async src="https://www.googletagmanager.com/gtag/js?id=UA-184986101-1"></script>
  <script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }
    gtag('js', new Date());

    gtag('config', 'UA-184986101-1');
  </script>


  <!-- Global site tag (gtag.js) - Google Analytics -->
  <script async src="https://www.googletagmanager.com/gtag/js?id=G-G8YXEMXJZ3"></script>
  <script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }
    gtag('js', new Date());

    gtag('config', 'G-G8YXEMXJZ3');
  </script>

  <!-- Global site tag (gtag.js) - Google Analytics -->

  <script async src="https://www.googletagmanager.com/gtag/js?id=G-Y504JB4R42"></script>

  <script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }

    gtag('js', new Date());



    gtag('config', 'G-Y504JB4R42');
  </script>

  <!-- Global site tag (gtag.js) - Google Analytics -->

  <script async src="https://www.googletagmanager.com/gtag/js?id=G-QCB7QFTCSL"></script>

  <script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }

    gtag('js', new Date());



    gtag('config', 'G-QCB7QFTCSL');
  </script>

  <!-- Global site tag (gtag.js) - Google Analytics -->

  <script async src="https://www.googletagmanager.com/gtag/js?id=UA-157718187-1"></script>

  <script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }

    // gtag('js', new Date());
    gtag('js', 'UA-157718187-1');
  </script>

  <!-- Global site tag (gtag.js) - Google Analytics -->
  <script async src="https://www.googletagmanager.com/gtag/js?id=G-00X9X9JBFZ"></script>
  <script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }
    gtag('js', new Date());

    gtag('config', 'G-00X9X9JBFZ');
  </script>


  <!--
<!-- Global site tag (gtag.js) - Google Analytics -->

  <script async src="https://www.googletagmanager.com/gtag/js?id=G-9WDT8NSVL8"></script>
  <script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }
    gtag('js', new Date());

    gtag('config', 'G-9WDT8NSVL8');
  </script>

  -->


  <!-- Global site tag (gtag.js) - Google Analytics -->
  <script async src="https://www.googletagmanager.com/gtag/js?id=G-853WWW2YQM"></script>
  <script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }
    gtag('js', new Date());

    gtag('config', 'G-853WWW2YQM');
  </script>

  <!-- Global site tag (gtag.js) - Google Analytics -->
  <script async src="https://www.googletagmanager.com/gtag/js?id=G-C9LCPKEB4F"></script>
  <script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }
    gtag('js', new Date());

    gtag('config', 'G-C9LCPKEB4F');
  </script>


  <!-- Global site tag (gtag.js) - Google Analytics -->
  <script async src="https://www.googletagmanager.com/gtag/js?id=UA-185199779-1"></script>
  <script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }
    gtag('js', new Date());

    gtag('config', 'UA-185199779-1');
  </script>


  <LINK REL=”SHORTCUT ICON” HREF=”http://favicon.ico”>
  <!--<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">-->
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <!-- InstanceBeginEditable name="doctitle" -->
  <title>The Duvall Group</title>
  <!-- InstanceEndEditable -->
  <link rel="stylesheet" type="text/css" href="duavall%20template.css" media="all" />
  <!-- Start VisualSlideShow.com HEAD section -->
  <link rel="stylesheet" type="text/css" href="engine/css/slideshow.css" media="screen" />
  <style type="text/css">
    .slideshow a#vlb {
      display: none
    }
  </style>
  <script type="text/javascript" src="engine/js/mootools.js"></script>
  <script type="text/javascript" src="engine/js/visualslideshow.js"></script>
  <!-- End VisualSlideShow.com HEAD section -->
  <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
  <!--[if IE]>
	<style type="text/css" media="all">.borderitem {border-style: solid;}</style>
	<![endif]-->
  <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
  <!-- Equal body columns-->
  <script src="equalcolumns.js" type="text/javascript"></script>
  <!-- InstanceBeginEditable name="head" -->
  <!-- InstanceEndEditable -->
</head>

<body onload="loadStates()">

  <!-- Google Tag Manager (noscript) -->
  <!-- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NZ5ZN93"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>  -->
  <!-- End Google Tag Manager (noscript) -->

  <div id="main">
    <div id="Header">
    </div>
    <div class="clearFloat">
      <a href="Index.HTML"><img src="images/duvall-logo-new.jpg" id="duavall_logo" alt="The Duvall Group" /></a>

      <div id="Rotating_photos">
        <div id="show" class="slideshow">


          <div class="slideshow-images">

            <!--  <a href="#"><img id="slide-0" src="data/images/duvall_photo_1.jpg" alt="Duvall_Photo_1" title="Duvall_Photo_1" /></a>
           <a href="#"><img id="slide-1" src="data/images/duvall_photo_2.jpg" alt="Duvall_Photo_2" title="Duvall_Photo_2" /></a> -->
            <a href="#"><img id="slide-2" src="data/images/duvall_photo_3.jpg" alt="Duvall_Photo_3" title="Duvall_Photo_3" /></a>
            <!--    <a href="#"><img id="slide-3" src="data/images/duvall_photo_4.jpg" alt="Duvall_Photo_4" title="Duvall_Photo_4" /></a>
           <a href="#"><img id="slide-4" src="data/images/duvall_photo_5.jpg" alt="Duvall_Photo_5" title="Duvall_Photo_5" /></a> -->
            <a href="#"><img id="slide-5" src="data/images/duvall_photo_6.jpg" alt="Duvall_Photo_6" title="Duvall_Photo_6" /></a>
            <!--     <a href="#"><img id="slide-6" src="data/images/duvall_photo_7.jpg" alt="Duvall_Photo_7" title="Duvall_Photo_7" /></a> -->
          </div>



        </div>
      </div>

      <iframe src="MasterNav.html" height="75" width="1025" scrolling="no" style="border:none;overflow:hidden; margin-top:1px;"></iframe>
      <!--
	<div class="clearFloat"></div>
	<div id="Line1">
	</div>
	<div class="clearFloat"  ></div>
	<div id="Navbar"  >
-->

      <!--	 <ul id="MenuBar1" class="MenuBarHorizontal"  >
     
        <li style="font-size:15px;padding-left:2px;"><a href="Index.html" title="The Duvall Group" >Home</a></li>
       <li style="font-size:15px;padding-left:2px;"><a href="About.html">About Us</a></li>
       <li style="font-size:15px;padding-left:2px;"><a href="services.html"><p>Consulting</p><p>Services</p></a></li>

        <li style="font-size:15px;padding-left:2px;"><a href="clients.html">Clients</a></li>
        
	
     <li style="font-size:15px;padding-left:2px;"><a href="SmartIDentity Student Protection_Ron Duvall Consulting.pdf" target="_blank" title="Identity Theft Protection"><p>Identity Theft</p><p>Protection</p></a></li>
    <li style="font-size:15px;padding-left:2px;"><a href="SmartIDentityPricingMatrix.html"><p>Consulting - SmartIDentity</p><p>Dual Program</p></a></li>
     <li style="font-size:15px;padding-left:2px;"><a href="contact.html">Contact Us</a></li>



	  </ul>
-->
    </div>
    <div class="clearFloat"></div>
    <div id="Line2">
    </div>

    <div id="contentwrapper">

      <!-- InstanceEndEditable -->
      <!-- InstanceBeginEditable name="Content" -->



      <div id="Maintext" style="margin-top:55px;width:1023px; height:1050px;">
        <div class="Body_Text">
          <img src="t_shirt.png" style="width: 250px;" />
          <figcaption style="font-family:Times New Roman; font-size:15px;">CCNY LOGO SPORT SHIRT<figcaption>

              <H1>SmartIDentity Online Shirt Order Form</H1>



              <FORM method="post" style="font-family:Arial;" action="orderConfirm.php">
                <TABLE>
                  <tr>
                    <td style="vertical-align:top">

                      <TABLE>
                        <?php

                        echo "<tr><td>Order Date:</td><td><input required='required' type='text' name='orderDate'  value=" . date("m/d/Y") . " size='20'></td></tr>";
                        $_SESSION['orderDate'] = date("m/d/Y");

                        echo "<tr><td>First Name:</td><td><input required='required' type='text' name='fName' value='" . $_POST['fName'] . "' size='40'></td></tr>";
                        echo "<tr><td>Last Name:</td><td><input required='required' type='text' name='lName' value='" . $_POST['lName'] . "' size='40'></td></tr>";
                        echo "<tr><td>Email:</td><td><input required='required' type='email' name='email' value='" . $_POST['email'] . "' size='40'></td></tr>";
                        echo "<tr><td>Address:</td><td><input required='required' type='text' name='address' value='" . $_POST['address'] . "' size='40'></td></tr>";
                        echo "<tr><td>City:</td><td><input required='required' type='text' name='city' value='" . $_POST['city'] . "' size='40'></td></tr>";
                        echo "<tr><td>State:</td><td><SELECT required='required' name='state' id='state' ><OPTION  value=''>Select State</OPTION></SELECT></td></tr>";
                        echo "<tr><td>Zip Code:</td><td><input required='required' type='text' name='zipCode' value='" . $_POST['zipCode'] . "' size='40'></td></tr>";
                        echo "<tr><td>Type of Plan:</td><td><SELECT name='hiddenPlanType' id='plantype' onchange='planchange()' ><OPTION  value=''>Select Plan</OPTION><OPTION  value='individual'>Individual</OPTION><OPTION  value='family'>Family</OPTION></SELECT></td></tr>";
                        echo "<tr><td>University:</td><td><input required='required' type='text' readonly name='university' value=' City College of New York' size='40'></td></tr>";
                        echo "<tr><td>Size:</td><td><SELECT name='shirtSize' value='" . $_POST['shirtSize'] . "'><option value='Small'>Small</option><option value='Medium'>Medium</option><option value='Large'>Large</option><option value='Extra Large'>Extra Large</option></td></tr>";
                        echo "<tr><td>Cost:</td><td>$ <input required='required' type='number' name='currentPrice' id='currentPrice' size='40' value='" . $_POST['currentPrice'] . "' readonly></td></tr>";
                        echo "<tr><td>Color:</td><td><input required='required' type='text' readonly name='shirtColor' value='Black'  value='#4499e9' size='10'></td></tr>";
                        echo "</TABLE>";
                        echo "</td>";
                        echo "<input type='hidden' name='alreadyPosted' id='alreadyPosted' value='False'>";
                        ?>
                        <script>
                          function planchange() {
                            var plantype = document.getElementById('plantype').value;
                            if (plantype == 'family') {
                              document.getElementById('currentPrice').value = '2';
                            } else {
                              document.getElementById('currentPrice').value = '1';
                            }
                          }
                        </script>
                        <td style="vertical-align:top; padding-left:30px;">
                          <?php if (!empty($_POST['fName']) && !empty($_POST['lName']) && !empty($_POST['email']) && !empty($_POST['address']) && !empty($_POST['city']) && !empty($_POST['state']) && !empty($_POST['zipCode'])  && !empty($_POST['hiddenPlanType']) && !empty($_POST['university']) && !empty($_POST['shirtSize']) && !empty($_POST['currentPrice']) && !empty($_POST['shirtColor'])) echo "<h4 style='font-weight:bold;'>MAKE YOUR PAYMENT NOW</h4>"; ?>
                          <script src="https://www.paypal.com/sdk/js?client-id=AT1gTR267PynJXY1gj_bSzXPtmctOAp-bYHriHCYzPKtrg4uzgiotEjVwVhZ8h5nUXrbXaJtpId3a9B-&locale=en_US&commit=true&disable-funding=paylater"></script>
                          <div id="paypal-button-container" style="width:25px; visibility:hidden;" </div>

                            <script>
                              paypal.Buttons({

                                style: {
                                  size: 'small',
                                  color: 'gold',
                                  shape: 'pill',
                                  label: 'paypal'
                                },
                                env: 'production',

                                client: {
                                  sandbox: 'AaFNtW6JSCtwf28tV2Rnxux8NJcvdLzORV7kcaUGAgA2sf2pLr2WWs-qC4mM-MNeToDacCpBZg_7sBXS',
                                  // production: 'AT4u_rekD2BVfhiOp3s-K8GXSpKxb1u-qciUv_PHzO8Ok0JVZLzvalg8Nq1fwbrpOsA5KpU5iIlYNB5g'
                                  production: 'AT1gTR267PynJXY1gj_bSzXPtmctOAp-bYHriHCYzPKtrg4uzgiotEjVwVhZ8h5nUXrbXaJtpId3a9B-'

                                },
                                locale: 'en_US',

                                createOrder: function(data, actions) {
                                    // Set up the transaction
                                    return actions.order.create({
                                      purchase_units: [{
                                        amount: {
                                          value: '<?php if (!empty($_POST['fName']) && !empty($_POST['lName']) && !empty($_POST['email']) && !empty($_POST['address']) && !empty($_POST['city']) && !empty($_POST['state']) && !empty($_POST['zipCode'])  && !empty($_POST['hiddenPlanType']) && !empty($_POST['university']) && !empty($_POST['shirtSize']) && !empty($_POST['currentPrice']) && !empty($_POST['shirtColor'])) //&& !empty($_POST['email']) && !empty($_POST['address']) && !empty($_POST['city']) && !empty($_POST['state']) && !empty($_POST['zipCode']) && !empty($_POST['hiddenPlanType']) && !empty($_POST['university']) && !empty($_POST['shirtSize']) && !empty($_POST['currentPrice']) && !empty($_POST['shirtColor']) 
                                                  {
                                                    echo $_POST['currentPrice'];
                                                  }
                                                  ?>'
                                        }
                                      }]
                                    });
                                  }

                                  ,
                                onApprove: function(data, actions) {
                                  // This function captures the funds from the transaction.
                                  return actions.order.capture().then(function(details) {
                                    // This function shows a transaction success message to your buyer.
                                    <?php $mailBody = "Dear " . $_POST['fName'] . " " . $_POST['lName'] . "\n\rThis is to confirm that we received your order for the " . $_POST['shirtSize'] . " size sport shirt for $" . $_POST['currentPrice'] . " under the " . $_POST['hiddenPlanType'] . " plan for the school of " . $_POST['university'] . ".\n\rWe greatly appreciate your business.";
                                    mail($_POST['email'], "Your SmartIDentity Shirt Order Purchase Confirmed", $mailBody, "From: [email protected]") ?>
                                    alert('Transaction completed by <?php echo $_POST['fName'] . " " . $_POST['lName']; ?>');
                                  });
                                }

                              }).render('#paypal-button-container');
                            </script>

                            <!--LINK TO THE CONTACT PAGE -->

                        </td>
                  </tr>
                </TABLE>
                <H3>PLEASE FILL OUT FIELDS AND CLICK NEXT BEFORE MAKING PAYMENT</H3>
                <input type='submit' value='NEXT' id="nextBtn">

              </FORM>


              <br>
              <CENTER><a HREF="contact.html">
                  <p style="font-size:20px;" target="_blank">click here to contact us</p>
                </a> </CENTER>



              <?php
              //if( !empty($_POST['fName']) && !empty($_POST['lName']) )
              //  {
              /*
			        $alreadyPosted=True;
				$onlineOrdersFile=fopen("onlineOrders.csv", "a+");
				$orderRecord=$_SESSION['orderDate'].','.$_POST['fName'].','.$_POST['lName'].','.$_POST['email'].','.$_POST['address'].','.$_POST['city'].','.$_POST['state'].','.$_POST['zipCode'].','.$_POST['hiddenPlanType'].','.$_POST['university'].','.$_POST['shirtSize'].','.$_POST['currentPrice'].','.$_POST['shirtColor'];
                                $onlineOrdersFile.fwrite($onlineOrdersFile,$orderRecord."\n");
                                fclose($onlineOrdersFile);
				*/
              //}
              /*
                                $readOrders=fopen("onlineOrders.csv","r");
                                 $linesArray=array();
                                if ($readOrders)
				{
				      
					$lineCount=0;
					while (! feof($readOrders))
                                        {
                                        
						$line=fgets($readOrders);
                                       		 $linesArray[$lineCount]=$line;
						++$lineCount;		
   
                                         }
				}
				fclose($readOrders);
                              */

              /*
				echo "<tr>";
				
				$fieldNames=explode(",",$linesArray[0]);
                                 foreach($fieldNames as $fieldName)
                                 {
				   if ($fieldName != "")echo "<td style='font-size:13px;padding-left:2px;padding-right:2px;'><u>".$fieldName."</u></td>";
					
                                }
                                echo "</tr>";
				for($i=count($linesArray)-1; $i>0; $i--)
                                      {
					$fields=explode(",",$linesArray[$i]);
                                          $fieldCount=0;
                                            echo "<tr >";
                                        foreach($fields as $field){
                                         ++$fieldCount;
                                           $fieldVal=$field;                       
                                           $bgColor=($i>0 && $fieldCount==13)?$field:"white";
                                           if ($i>1 && $fieldCount == 13){$fieldVal="&nbsp;&nbsp;&nbsp;&nbsp;";}
					echo "<td style='background-color:".$bgColor."; font-size:11px; padding-top:2px;'>".$fieldVal."</td>" ;	
                                        }
                                       echo "</tr>";
                                      } 
                              */




              // }

              ?>



              <script>
                function loadStates() {
                  var selectState = document.getElementById('state');
                  var statesArray = [' ', 'AL', 'AK', 'AR', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'GA', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', 'KY', 'LA', 'MA', 'MD', 'ME', 'MI', 'MN', 'MO', 'MS', 'MT', 'NC',
                    'ND', 'NE', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH', 'OK', 'OR', 'PA', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VA', 'VT', 'WA', 'WI', 'WV', 'WY'
                  ];
                  for (let st of statesArray) {
                    var stateOpt = document.createElement('option');
                    stateOpt.appendChild(document.createTextNode(st));
                    stateOpt.value = st;
                    selectState.appendChild(stateOpt);

                  }
                }
              </script>
        </div>
      </div>


      <div id="Footer">
        <div class="Footer_Contact_Text">Telephone 443.562.5132 Email [email protected]&nbsp; Fax 410.730.2502<br />
          Duvall Consulting Group, LLC | PMB 303 | 4725 Dorsey Hall Dr. | Suite A | Ellicott City | MD | 21042</div>
        <div class="Footer_Copyright_Text">Copyright &copy; 2021 Duvall Consulting Group, LLC. All rights reserved.</div>
        <!--  <div class="Footer_Designby_Text"><a href="http://www.kkmediapartners.com" class="class_white" title="KK media partners" target="_blank">Website by KK media partners</a></div> -->
      </div>



</body>

</html>

Anon7 - 2021