MOON
Server: Apache
System: Linux smtp.modiva.org 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64
User: rtbrisc (1005)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/rtbrisc/public_html/admin/main/backup/new.php
<?php include("../general/header.php");  ?>
  <body class="" onload="disables()">
    <?php include("../general/navbar.php"); ?>
    <!-- BEGIN CONTENT -->
    <div class="page-container row-fluid">
      <?php include("../general/sidebar.php"); ?>
      <!-- BEGIN PAGE CONTAINER-->
      <div class="page-content">
        <div class="content">
          <!-- BEGIN PAGE TITLE -->
          <?php include("../general/customer_name.php"); ?>
          <!-- END PAGE TITLE -->
          <ul class="breadcrumb">
            <li>
              <p>CREATE A NEW BACKUP</p>
            </li>
            <li><a href="../backup" class="active">BACKUP SUPPORT</a> </li>
            <li><a href="../dashboard" class="active">DASHBOARD</a> </li>
          </ul>
          <!-- BEGIN PlACE PAGE CONTENT HERE -->
          <div class="row">
            <div class="col-md-12 col-vlg-12 col-sm-12">
              <div class="grid simple form-grid vertical green">
                <div class="grid-title no-border">
                  <h3>
                    Don’t loose important items on your device! Tell us about your device and we will provide you regular backup support at regular intervals, at no charge. Note that service is only limited to premium members. Feel free to chat with us if you have any questions or still require any assistance.
                  </h3>
                  <h5><span class="semi-bold">Note: All fields with <span class="text-danger">*</span> are required!!!</span></h5>
                </div>
                <span>
                    <?php
                        echo @$_SESSION['bac_err'];
                    ?>        
                </span>
                <span>
                    <?php
                        echo @$_SESSION['bac_suc'];
                    ?>        
                </span>
                <script type="text/javascript" src="pull/backup_pull.js"></script>
                <?php
                              require_once("../worker/workers/server/issues.php");
                              require_once("../worker/workers/server/utilities.php");
                ?>
                <div class="grid-body no-border">
                  <form method="post" action="../worker/" enctype="multipart/form-data" id="form_traditional_validation" name="form_traditional_validation" role="form" autocomplete="off" class="validate">
                    <input type="hidden" name="txtCustomerID" value="<?php echo $customerID; ?>">
                    <!-- <input type="hidden" name="txtSupportPlanID" value="<?php// echo $row['SupportPlan']; ?>"> -->
                    <div class="form-group row">
                      <label for="typeofdevice" class="control-label col-lg-3 text-right">What Type Of Device? <span class="text-danger">*</span></label>
                      <div class="col-lg-9">
                        <select class="form-control m-bot15" id="txtDeviceTypeID" name="txtDeviceTypeID" required="required" onchange="showTypeInfo(this.options[this.selectedIndex].innerHTML)">
                            <option>Tell us the type of the device / gadget</option>
                            <?php
                                $sql=mysqli_query($utl, "SELECT * FROM tbldevice");
                                while($row=mysqli_fetch_assoc($sql)){
                                        echo "<option value='" . $row['DeviceID'] . "'>" . $row['DeviceText'] . "</option>";
                                }
                            ?>
                        </select>
                      </div>
                    </div>
                    <div class="form-group row" id="txtDeviceTypeInfo" style="display: none;">
                      <label for="devicetypeinfo" class="control-label col-lg-3 text-right">Specify Device Type <span class="text-danger">*</span></label>
                      <div class="col-lg-9">
                          <input type="text" name="txtDeviceTypeInfo" class="form-control" placeholder="Please Type Here...">
                      </div>
                    </div>
                    <div class="form-group row">
                      <label for="password" class="control-label col-lg-3 text-right">What Is The Brand? <span class="text-danger">*</span></label>
                      <div class="col-lg-9">
                        <select class="form-control m-bot15" id="txtDeviceBrandID" name="txtDeviceBrandID" required="required" onchange="showBrandInfo(this.options[this.selectedIndex].innerHTML)">

                            <option>Please tell us the brand</option>
                            <?php
                                $sql=mysqli_query($utl, "SELECT * FROM tbldevicebrand");
                                while($row=mysqli_fetch_assoc($sql)){
                                        echo "<option value='" . $row['DeviceBrandID'] . "'>" . $row['DeviceBrandText'] . "</option>";
                                }
                            ?>
                        </select>
                      </div>
                    </div>
                    <div class="form-group row" id="txtDeviceBrandInfo" style="display: none;">
                      <label for="devicebrand" class="control-label col-lg-3 text-right">Specify Device Brand <span class="text-danger">*</span></label>
                      <div class="col-lg-9">
                          <input type="text" name="txtDeviceBrandInfo" class="form-control" placeholder="Please Type Here...">
                      </div>
                    </div>
                    <div class="form-group row">
                      <label for="model" class="control-label col-lg-3 text-right">What is The Model? <span class="text-danger">*</span></label>
                      <div class="col-lg-9">
                          <input type="text" name="txtDeviceModel" class="form-control" id="txtDeviceModel" required="required" placeholder="Please Type Here: eg. Samsung Galaxy S9">
                      </div>
                    </div>
                    <div class="form-group row">
                        <label for="model" class="control-label col-lg-3 text-right">Backup Content <span class="text-danger">*</span></label>
                        <div class="col-lg-9">
                        <select class="form-control m-bot15" id="txtBackupContent" name="txtBackupContent" required="required" onchange="showContent(this.value)">
                            <option>Please Select Type Of Content To Backup</option>
                            <?php
                                $sql=mysqli_query($utl, "SELECT * FROM tblbackupcontent");
                                while($row=mysqli_fetch_assoc($sql)){
                                        echo "<option value='" . $row['ContentID'] . "'>" . $row['ContentText'] . "</option>";
                                }
                            ?>
                        </select>
                        </div>
                    </div>
                    <div class="form-group row" id="txtContentType">
                        
                    </div>
                    <div class="form-group row">
                      <label for="model" class="control-label col-lg-3 text-right">Backup Time? <span class="text-danger">*</span></label>
                      <div class="col-lg-9">
                          <input type="text" name="txtDateTime" class="form-control" placeholder="Please Click Here To Pick Date & Time">
                      </div>
                    </div>
                    <div class="form-group row">
                        <label for="model" class="control-label col-lg-3 text-right">Backup Location <span class="text-danger">*</span></label>
                        <div class="col-lg-9">
                        <select class="form-control m-bot15" id="txtBackupLocation" name="txtBackupLocation" required="required">
                            <option>Please Select Backup Location</option>
                            <?php
                                $sql=mysqli_query($utl, "SELECT * FROM tblbackuplocation");
                                while($row=mysqli_fetch_assoc($sql)){
                                        echo "<option value='" . $row['LocationID'] . "'>" . $row['LocationText'] . "</option>";
                                }
                            ?>
                        </select>
                        </div>
                    </div>
                    <div class="form-group row">
                      <label for="model" class="control-label col-lg-3 text-right">Other Information</label>
                      <div class="col-lg-9">
                          <input type="text" name="txtInfo" id="txtInfo" class="form-control" placeholder="Please Enter More Info if Applicable">
                      </div>
                    </div>
                    <div class="form-actions">
                      <div class="row">
                        <h4 class="col-lg-9 col-sm-12">By submitting this form, You Agree to the <a href="#">Terms and Conditions</a> of QIS Nigeria.</h4>
                        <input type="submit" name="submit" class="btn btn-primary btn-cons col-lg-3 col-sm-12 pull-right" style="background-color: #C7100E;" value="Create Backup">
                      </div>
                    </div>
                  </form>
                </div>
              </div>
            </div>
          </div>
          <!-- END DASHBOARD TILES -->
          <!-- END PLACE PAGE CONTENT HERE -->
        </div>
      </div>
      <!-- END PAGE CONTAINER -->
      <?php include("../general/chat_bar.php"); ?>
    </div>
    <!-- END CONTENT -->
    <?php include("../general/footer.php"); ?>
          <script src="../assets/js/moment/moment.js"></script>
          <script src="../assets/js/bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker.js"></script>

          <script src="../assets/js/bootstrap-daterangepicker/daterangepicker.js"></script>
    <script>
        $(function() {
          $('input[name="txtDateTime"]').daterangepicker({
            timePicker: true,
            singleDatePicker: true,
            showDropdowns: true,
            minYear: moment().startOf('hour'),
            maxYear: moment().startOf('hour').add(32, 'hour'),
            locale: {
              format: 'M/DD/YYYY hh:mm A'
            }
            //minYear: 1901,
            //maxYear: parseInt(moment().format('YYYY'),10)
          });
        });
    </script>

  </body>
  <?php
  unset($_SESSION['bac_err']);
  unset($_SESSION['bac_suc']);
  ?>
</html>