| Server IP : 162.214.74.102 / Your IP : 216.73.216.36 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/public_html/lrsys_projetos/sopizzas/application/views/customer/ |
Upload File : |
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header address-book">
<h1><?php echo $this->lang->line('Profile');?> <!-- <button onclick="window.location.href='<?php echo base_url(); ?>customer/dashboard/restaurant_map_view'" type="button" class="btn btn-info Custom-btn pull-right" style="border-radius: 32px !important;">Find All Restaurants</button> -->
</h1>
</section>
<!-- Main content -->
<section class="content">
<!-- tab section -->
<div class="nav-tabs-custom">
<div class="tab-content no-padding">
<div id="home" class="tab-pane fade in active">
<div class="box-body">
<?php if($this->session->flashdata('success_msg')):?>
<div class="alert alert-info">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong><?php echo $this->session->flashdata('success_msg'); ?></strong>
</div>
<?php endif; ?>
<?php if($this->session->flashdata('error_msg')) { ?>
<div class="alert alert-danger text-center">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong><?php echo $this->session->flashdata('error_msg'); ?></strong>
</div>
<?php } ?>
<?php if(validation_errors() != FALSE) { ?>
<div class="alert alert-danger text-center">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong><?php echo validation_errors(); ?></strong>
</div>
<?php } ?>
<?php $validator = array('role' => 'form', 'data-toggle' => 'validator'); echo form_open('dashboardcustomer/profile', $validator); ?>
<fieldset>
<legend class="ps_inform"><?php echo $this->lang->line('Personal_Information');?></legend>
<?php
/*$custName = '';
if (isset($data['customer_name'])) {
$custName = $data['customer_name'];
}
if (isset($data['customer_lastname'])) {
$custName .= ' '.$data['customer_lastname'];
}*/
?>
<hr class="hr_border"></hr>
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="form-group">
<input type="text" value="<?php echo set_value('customer_name', isset($data['customer_name'])? $data['customer_name'] : ''); ?>" class="fs_input" id="customer_name" name="customer_name" placeholder="<?php echo $this->lang->line('First_Name');?>" required>
</div>
</div>
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="form-group">
<input type="text" value="<?php echo set_value('customer_lastname', isset($data['customer_lastname']) ? $data['customer_lastname'] : ''); ?>" class="fs_input" id="customer_lastname" name="customer_lastname" placeholder="<?php echo $this->lang->line('Last_Name');?>" required>
</div>
</div>
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="form-group">
<input type="text" value="<?php echo set_value('customer_phone', isset($data['customer_phone']) ? $data['customer_phone'] : ''); ?>" class="fs_input" id="customer_phone" name="customer_phone" placeholder="<?php echo $this->lang->line('Your_Contact_Number');?>" pattern="(?:[+][0-9]{1,3}[\s]?)?(?:(?:[(][0-9]{2}[)][\s]?)|(?:[0-9]{2}[\s]?))?(?:(?:[0-9]{1}[0-9.-]{6,8}[0-9]{1})|(?:[0-9]{1}[\s]?[0-9\.-]{6,8}[0-9]{1})){1}" pattern-error="<?php echo $this->lang->line('Error_pattern_mobile');?>" required>
</div>
</div>
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="form-group">
<input type="email" value="<?php echo set_value('customer_email', isset($data['customer_email']) ? $data['customer_email'] : ''); ?>" class="fs_input" id="customer_email" name="customer_email" placeholder="<?php echo $this->lang->line('Email');?>" required pattern="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$" data-pattern-error="<?php echo $this->lang->line('Error_email');?>">
</div>
</div>
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="form-group">
<input type="text" value="<?php echo set_value('customer_street', isset($data['customer_street']) ? $data['customer_street'] : ''); ?>" class="fs_input" id="customer_street" name="customer_street" placeholder="<?php echo $this->lang->line('Address');?>" >
</div>
</div>
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="form-group">
<input value="<?php echo set_value('customer_city', isset($data['customer_city']) ? $data['customer_city'] : ''); ?>" name="customer_city" id="customer_city" required type="text" class="fs_input generatedCity" placeholder="<?php echo $this->lang->line('City');?>" data-error="<?php echo $this->lang->line('Error_city');?>" readonly>
</div>
</div>
<div class="clearfix"></div>
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="form-group">
<input value="<?php echo set_value('customer_state', isset($data['customer_state']) ? $data['customer_state'] : ''); ?>" name="customer_state" id="customer_state" required type="text" class="fs_input generatedState" placeholder="<?php echo $this->lang->line('State');?>" data-error="<?php echo $this->lang->line('Error_State');?>" readonly>
</div>
</div>
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="form-group">
<input type="text" value="<?php echo set_value('customer_zip', isset($data['customer_zip']) ? $data['customer_zip'] : ''); ?>" class="fs_input" id="customer_zip" name="customer_zip" onkeyup="findAddressByZip(this.value)" pattern="^([0-9]){5}([-])([0-9]){3}$" placeholder="<?php echo $this->lang->line('Zipcode');?>" >
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="form-group">
<div class="margintop10">
<button type="submit" class="btn btn-info Custom-btn"><?php echo $this->lang->line('Update');?></button>
</div>
</div>
</fieldset>
<INPUT type="hidden" NAME="ActionTab" id="ActionTab" SIZE="25" value="PersonalInfo">
</form>
<!-- <?php $validator = array('role' => 'form', 'data-toggle' => 'validator'); echo form_open('dashboardcustomer/profile', $validator); ?>
<fieldset>
<legend class="ps_inform">Login Information</legend>
<hr class="hr_border"></hr>
<div class="row">
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="form-group">
<input type="email" value="<?php echo set_value('customer_email', isset($data['customer_email']) ? $data['customer_email'] : ''); ?>" class="fs_input" id="customer_email" name="customer_email" placeholder="Email Address" required>
</div>
</div>
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="form-group">
<input type="password" class="fs_input" id="newpassword" name="newpassword" placeholder="Password" required>
</div>
</div>
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="form-group">
<input type="password" class="fs_input" id="confirmpassword" name="confirmpassword" placeholder="Confirm Password" required>
</div>
</div>
</div>
<div class="form-group">
<div class="margintop10">
<button type="submit" data-toggle="control-sidebar" class="btn btn-outline green btn-sm opo addressEdit opened active newsolidbtn mcfr" style="">Update</button>
</div>
</div>
</fieldset>
</form> -->
<?php $validator = array('role' => 'form', 'data-toggle' => 'validator'); echo form_open('dashboardcustomer/profile', $validator); ?>
<fieldset>
<legend class="ps_inform"><?php echo $this->lang->line('Payment_Information');?></legend>
<hr class="hr_border"></hr>
<!-- <div class="row editedSection">
<div class="col-md-12">
<label><strong>Card Number: </strong></label><br/>
</div>
<div class="clearfix"> </div>
</div> -->
<div class="row editSection ">
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="input-group form-group">
<input required type="text" class="fs_input" id="cc_number" name="cc_number" value="<?php echo $cc_number; ?>" placeholder="Card Number" maxlength="16" onkeypress="return only_num(event, this.value)" data-minlength="15">
<span class="input-group-addon" id="basic-addon1"><i class="fa fa-cc"></i></span>
</div>
</div>
<div class="col-sm-6 col-xs-12">
<div class="form-group">
<select id="cc_type" name="cc_type" placeholder="Card Type" class="fs_input cardClass" required="">
<option value=""><?php echo $this->lang->line('Card_Type');?></option>
<option value="Visa" <?php if(strtolower($cc_type) == 'visa') {echo 'selected';} ?>>Visa</option>
<option value="MasterCard" <?php if(strtolower($cc_type) == 'mastercard') {echo 'selected';} ?>>Master Card</option>
<option value="Discover" <?php if(strtolower($cc_type) == 'discover') {echo 'selected';} ?>>Discover</option>
<option value="Amex" <?php if(strtolower($cc_type) == 'amex') {echo 'selected';} ?>>Amex</option>
</select>
</div>
</div>
<div class="clearfix"></div>
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="form-group">
<?php
//$ccmonth = set_value('cc_month', isset($cardData['cc_exp_month']) ? $cardData['cc_exp_month'] : '');
?>
<select required id="cc_exp_month" name="cc_exp_month" placeholder="Expiration Month" class="fs_input">
<option value="" selected="selected"><?php echo $this->lang->line('Expiration_Month');?></option>
<option <?php if($cc_exp_month==1) { echo "selected"; } ?> value="01">Jan</option>
<option <?php if($cc_exp_month==2) { echo "selected";} ?> value="02">Feb</option>
<option <?php if($cc_exp_month==3) { echo "selected";} ?> value="03">Mar</option>
<option <?php if($cc_exp_month==4) { echo "selected";} ?> value="04">Apr</option>
<option <?php if($cc_exp_month==5) { echo "selected";} ?> value="05">May</option>
<option <?php if($cc_exp_month==6) { echo "selected";} ?> value="06">Jun</option>
<option <?php if($cc_exp_month==7) { echo "selected";} ?> value="07">Jul</option>
<option <?php if($cc_exp_month==8) { echo "selected";} ?> value="08">Aug</option>
<option <?php if($cc_exp_month==9) { echo "selected";} ?> value="09">Sep</option>
<option <?php if($cc_exp_month==10) { echo "selected";} ?> value="10">Oct</option>
<option <?php if($cc_exp_month==11) { echo "selected";} ?> value="11">Nov</option>
<option <?php if($cc_exp_month==12) { echo "selected";} ?> value="12">Dec</option>
</select>
</div>
</div>
<div class="col-md-4 col-sm-4 col-xs-12">
<!-- <div class="form-group">
<input required maxlength="4" type="text" class="fs_input" id="cc_year" name="cc_year" value="<?php echo set_value('cc_year', isset($data['cc_year']) ? $data['cc_year'] : ''); ?>" placeholder=" Year">
</div> -->
<div class="form-group">
<select id="cc_exp_year" name="cc_exp_year" placeholder="Expiration Year" class="fs_input cardClass" required="">
<option value="" selected="selected"><?php echo $this->lang->line('Expiration_Year');?></option>
<?php
$nowYear = date("Y");
$maxYear = date("Y", strtotime('+15 years'));
for($i = $nowYear; $i <= $maxYear; $i++) {
if ($i == $cc_exp_year) {
$mySelect = 'selected';
}
else {
$mySelect = '';
}
?>
<option value="<?=$i?>" <?=$mySelect?>><?=$i?></option>
<?php
}
?>
</select>
</div>
</div>
<?php
if (isset($ccData['cc_cvv'])) {
$CCCvv = ccDecrypt($ccData['cc_cvv'], $ccData['cc_time']);
}
else {
$CCCvv = '';
}
?>
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="form-group">
<input required type="password" id="cc_cvv" name="cc_cvv" maxlength="3" value="<?=$cc_cvv?>" class="fs_input" id="cc_cvv" placeholder="<?php echo $this->lang->line('CVV_Code');?>" onkeypress="return only_num(event, this.value)" data-minlength="3">
</div>
</div>
<div class="clearfix"></div>
<div class="form-group col-md-12">
<div class="margintop10">
<button type="submit" class="btn btn-info Custom-btn"><?php echo $this->lang->line('Update');?></button>
</div>
</div>
</div>
</fieldset>
<INPUT type="hidden" NAME="ActionTab" id="ActionTab" SIZE="25" value="PaymentInfo">
</form>
</div>
</div>
</div>
</div>
<!-- ./tab section -->
<div class="clearfix"></div>
</section><!-- /.content -->
</div><!-- /.content-wrapper -->