Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: registration_form.php
<style> /* Chrome, Safari, Edge, Opera */ input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } /* Firefox */ input[type=number] { -moz-appearance: textfield; } </style> <div class="modal-body"> <form method="post" action="<?php echo base_url('register1'); ?>"> <h3 class="modal-title" style="text-align: center;">Registration is FREE*</h3> <?php //echo form_open(base_url('register1'), ' id="registeration_form" method="post"'); ?> <input type="hidden" name="url_to_redirect" value="<?php echo $this->uri->uri_string(); ?>"> <input type="hidden" name="req_thru_frm" value="1"> <div class="container"> <?php if($this->session->flashdata("message") || $this->session->flashdata("message") != '') { echo '<div class="alert alert-danger"><b>'.$this->session->flashdata('message').'</b></div>'; } ?> <div class="form-group"> <h5>Login Details</h5> </div> <div class="form-row"> <div class="form-group col-12 col-sm-6"> <input type="text" class="form-control" placeholder="User Name*" value="<?php echo set_value('txtUName') ?: $this->session->flashdata("formData")['txtUName']; ?>" name="txtUName"> </div> <div class="form-group col-12 col-sm-6"> <input type="password" class="form-control" placeholder="Password*" value="<?php echo set_value('txtPassword') ?: $this->session->flashdata("formData")['txtPassword']; ?>" name="txtPassword"> <?php echo form_error('txtPassword'); ?> </div> <div class="form-group col-12 col-sm-6"> <input type="password" class="form-control" placeholder="Confirm Password*" value="<?php echo set_value('txtRePassword') ?: $this->session->flashdata("formData")['txtRePassword']; ?>" name="txtRePassword"> <?php echo form_error('txtRePassword'); ?> </div> </div> <div class="form-group"> <h5>Contact Details</h5> </div> <div class="form-row"> <div class="form-group col-12 col-sm-6"> <input type="text" class="form-control inputWidth" placeholder="First Name*" value="<?php echo set_value('txtFName') ?: $this->session->flashdata("formData")['txtFName']; ?>" name="txtFName"> <?php echo form_error('txtFName'); ?> </div> <div class="form-group col-12 col-sm-6"> <input type="text" class="form-control inputWidth" placeholder="Last Name*" value="<?php echo set_value('txtLName') ?: $this->session->flashdata("formData")['txtLName']; ?>" name="txtLName"> <?php echo form_error('txtLName'); ?> </div> <div class="form-group col-12 col-sm-6"> <input type="email" class="form-control" placeholder="Email Address*" value="<?php echo set_value('txtEmail') ?: $this->session->flashdata("formData")['txtEmail']; ?>" name="txtEmail"> <?php echo form_error('txtEmail'); ?> </div> <div class="form-group col-12 col-sm-6"> <input type="number" class="form-control" placeholder="Phone*" value="<?php echo set_value('txtPhone') ?: $this->session->flashdata("formData")['txtPhone']; ?>" name="txtPhone"> <?php echo form_error('txtPhone'); ?> </div> <div class="form-group input-field-s col-12 col-sm-6"> <?php $countries = fetchCountries(); ?> <select name="countryId" class="form-control"> <option disabled="" selected="">Country*</option> <?php foreach($countries as $country) { $defultCountryId = set_value('countryId'); if(isset($this->session->flashdata("formData")['countryId'])){ $defultCountryId = $this->session->flashdata("formData")['countryId']; } ?> <option value="<?php echo $country->CountryId; ?>|<?php echo stripslashes($country->Country);?>" <?php echo $defultCountryId == ($country->CountryId.'|'.stripslashes($country->Country)) ? 'selected' : ''; ?>> <?php echo stripslashes($country->Country); ?></option> <?php } ?> </select> <i class='fas fa-caret-down c-down'></i> <?php echo form_error('countryId'); ?> </div> <div class="form-group input-field-s col-12 col-sm-6"> <?php $currencies = fetchCurrencies(); ?> <select name="currencyId" class="form-control"> <option disabled="" selected="" value="">Currency*</option> <?php foreach($currencies as $currency) { $defultCurr = set_value('currencyId'); if(isset($this->session->flashdata("formData")['currencyId'])){ $defultCurr = $this->session->flashdata("formData")['currencyId']; } ?> <option value="<?php echo $currency->Id; ?>" <?php echo $defultCurr == $currency->Id ? 'selected' : ''; ?>> <?php echo $currency->Value; ?></option> <?php } ?> </select> <i class='fas fa-caret-down c-down'></i> <?php echo form_error('currencyId'); ?> </div> <div class="form-group input-field-s col-12 col-sm-6"> <?php $languages = fetchLanguages(); ?> <select name="language" class="form-control"> <option disabled="" selected="" value="">Language*</option> <?php foreach($languages as $key => $language) { $defultLang = set_value('language'); if(isset($this->session->flashdata("formData")['language'])){ $defultLang = $this->session->flashdata("formData")['language']; } ?> <option value="<?php echo $key; ?>" <?php echo $defultLang == $key ? 'selected' : ''; ?>> <?php echo $language; ?></option> <?php } ?> </select> <i class='fas fa-caret-down c-down'></i> <?php echo form_error('language'); ?> </div> </div> <?php $rsFields = $this->db->query("SELECT FieldId, FieldLabel, FieldType, Mandatory, FieldColName FROM tbl_gf_registration_fields WHERE DisableField = 0 ORDER BY FieldLabel")->result(); $totalFields = count($rsFields); ?> <?php if($rsFields) { ?> <div class="form-group"> <h5>Other Details</h5> </div> <div class="form-row"> <?php $i = 1; foreach($rsFields as $row) { ?> <div class="form-group col-12 col-sm-6"> <?php $placeholder = $row->FieldLabel . ($row->Mandatory == '1' ? '*' : ''); ?> <?php if($row->FieldType == 'Text Box') { ?> <input type='text' name="fld<?php echo $i; ?>" maxlength="100" class="form-control" placeholder="<?= $placeholder ?>" value="<?php echo set_value('fld'.$i) ?: $this->session->flashdata("formData")['fld'.$i]; ?>"/> <?php } else if($row->FieldType == 'Text Area') { ?> <textarea style="height: auto;" rows="3" name="fld<?php echo $i; ?>" class="form-control" placeholder="<?= $placeholder ?>"><?php echo set_value('fld'.$i) ?: $this->session->flashdata("formData")['fld'.$i]; ?></textarea> <?php } else if($row->FieldType == 'Drop Down') { ?> <select name="fld<?php echo $i; ?>" class="form-control"> <option value=""><?= $placeholder ?></option> <?php $rsValues = $this->db->query("SELECT RegValue FROM tbl_gf_reg_field_values WHERE DisableRegValue = 0 AND FieldId = '".$row->FieldId."' ORDER BY RegValue")->result(); foreach($rsValues as $rw) { echo '<option value="'.$rw->RegValue.'">'.$rw->RegValue.'</option>'; } ?> </select> <?php } else if($row->FieldType == 'Radio Button') { ?> <label style="display: block;"><?= $placeholder ?></label> <?php $rsValues = $this->db->query("SELECT RegValue FROM tbl_gf_reg_field_values WHERE DisableRegValue = 0 AND FieldId = '".$row->FieldId."' ORDER BY RegValue")->result(); foreach($rsValues as $rw) { echo '<input type="radio" class="form-control" name="fld'.$i.'" checked="checked" value="'.$rw->RegValue.'">'.$rw->RegValue.' '; } ?> <?php } ?> </div> <?php echo '<input type="hidden" name="colNm'.$i.'" value="'.$row->FieldColName.'" />'; echo '<input type="hidden" name="mndtry'.$i.'" value="'.$row->Mandatory.'" />'; echo '<input type="hidden" name="lbl'.$i.'" value="'.$row->FieldLabel.'" />'; $i++; } ?> <input type="hidden" name="totalRegFields" value="<?php echo $totalFields; ?>" /> </div> <?php } ?> <?php if($rsStngs->RegisterCaptcha == 1) { ?> <hr> <div class="form-group input-field"> <div class="g-recaptcha-contact" data-sitekey="<?= $rsStngs->GoogleCaptchaSiteKey ?>" id="registerRecaptcha"></div> </div> <?php } ?> <div class="form-group text-center footer_form"> <button type="submit" class="submit-btn">Sign Up</button> </div> </div> </form> <?php //echo form_close(); ?> </div>