|
Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/laciasmara.com/public_html/shop/application/views/account/ |
Upload File : |
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!--make some space gap on top with menu-->
<div class="banner" style="padding-top: 10px;"></div>
<div class="container margin_top_48px margin_bottom_48px">
<div class="row" style="padding-bottom:50px;">
<div class="col-sm-2 order-sm-1 order-2" style="border-right:1px solid #ccc;">
<?= Modules::run('myaccount_menu'); ?>
</div><!-- end col-sm-2-->
<div class="col-sm-10 order-sm-2 order-1">
<h4><?= strtoupper(lang('my_profile')); ?></h4>
<br>
<?= $this->session->flashdata('success'); //to display success message
?>
<!-- Form Start -->
<?php echo form_open_multipart('account/update_profile'); ?>
<div class="row form-group">
<div class="col-sm-3">
<label><?= ucwords(lang('name')); ?> <sup>*</sup></label>
</div><!--end class="col-sm-4" -->
<div class="col-sm-9">
<?php
$data = array(
'name' => 'name',
'id' => 'name',
'value' => $customer->name,
'class' => 'form-control'
);
echo form_input($data);
echo '<span style="font-size:10px;">' . form_error('name') . '</span>';
?>
</div><!--end class="col-sm-9" -->
</div><!-- end class="row"-->
<div class="row form-group">
<div class="col-sm-3">
<label><?= ucwords(lang('gender_title')); ?><sup>*</sup></label>
</div>
<div class="col-sm-9">
<select name="sex_type" class="form-control" required>
<option value="">-- <?= ucwords(lang('gender_select')); ?> --</option>
<option value="male" <?= ($customer->sex_type == 'male') ? 'selected' : ''; ?>>Male</option>
<option value="female" <?= ($customer->sex_type == 'female') ? 'selected' : ''; ?>>Female</option>
<option value="others" <?= ($customer->sex_type == 'others') ? 'selected' : ''; ?>>Others</option>
</select>
<?php echo '<span style="font-size:10px;">' . form_error('sex_type') . '</span>'; ?>
</div>
</div>
<!-- Add Birthday field -->
<div class="row form-group">
<div class="col-sm-3">
<label><?= ucwords(lang('birthday_gender')); ?> <sup>*</sup></label>
</div>
<div class="col-sm-9">
<?php
$data = array(
'name' => 'birthday',
'id' => 'birthday',
'value' => $customer->birthday,
'class' => 'form-control',
'type' => 'date',
'required' => 'required'
);
echo form_input($data);
echo '<span style="font-size:10px;">' . form_error('birthday') . '</span>';
?>
</div>
</div>
<div class="row form-group">
<div class="col-sm-3">
<label><?= ucwords(lang('hp')); ?> <sup>*</sup></label>
</div><!--end class="col-sm-4" -->
<div class="col-sm-9">
<span style="float:left; position: relative; top:10px;"></span> <?php
$data = array(
'name' => 'phone',
'id' => 'phone',
'value' => $customer->phone,
'class' => 'form-control',
'type' => 'number',
'min' => '0',
'placeholder' => '812xxxxxxxx',
'style' => 'padding-left:50px'
);
echo form_input($data);
echo '<span style="font-size:10px;">' . form_error('phone') . '</span>';
?>
<div style="position: absolute;top: 10px;left: 30px;">+62</div>
</div><!--end class="col-sm-9" -->
</div><!-- end class="row"-->
<div class="row form-group">
<div class="col-sm-3">
<label><?= ucwords(lang('email')); ?> <sup>*</sup></label>
</div><!-- end class="col-sm-3" -->
<div class="col-sm-9">
<?php
$data = array(
'name' => 'register_email',
'id' => 'register_email',
'value' => $customer->email,
'class' => 'form-control',
'required' => 'required',
'type' => 'email'
);
echo form_input($data);
echo '<span style="font-size:12px;">' . form_error('register_email') . '</span>';
?>
</div>
</div>
<?php
$reseller_id = $this->db->select('reseller_id')->from('customers')->where('id_customers', $this->session->userdata('customer')['customer_id'])->get()->row()->reseller_id;
if ($reseller_id == 4 || $reseller_id == 8) : ?>
<div class="row form-group">
<div class="col-sm-3">
<label>Alt Email <sup>*</sup></label>
</div><!-- end class="col-sm-3" -->
<div class="col-sm-9">
<?php
$data = array(
'name' => 'alt_email',
'id' => 'alt_email',
'value' => $customer->email_alt,
'class' => 'form-control',
'type' => 'email'
);
echo form_input($data);
echo '<span style="font-size:12px;">' . form_error('alt_email') . '</span>';
?>
</div>
</div>
<?php else : ?>
<?php endif; ?>
<!--<div class="row" style="padding-bottom:15px;">
<div class="col-sm-3">
</div>
<div class="col-sm-9">
<input type="checkbox" name="newsletter" value="yes" <?php echo ($customer->newsletter == 'yes' ? 'checked' : null); ?>> Daftar Newsletter dan dapatkan info promo terkini
</div>
</div>-->
<div class="row form-group">
<div class="col-sm-3">
</div><!--end class="col-sm-4" -->
<div class="col-sm-9">
<input type="submit" name="update_profile" value="<?= strtoupper(lang('update_profile')); ?>" style="background:<?= $primary_colortheme; ?>; color:white;" class="form-control" />
</div><!--end class="col-sm-9" -->
</div><!-- end class="row"-->
<?php echo form_close(); ?>
</div><!-- end col-sm-8-->
</div><!-- end row-->
</div><!-- end container -->