+ Fix bugs on user's identifications images
This commit is contained in:
parent
b4776d9566
commit
6f22d1cc1d
|
@ -402,65 +402,66 @@
|
|||
|
||||
<?php if ($row->status) {
|
||||
$user_image = $this->db->wallet_service_url . '/photos/'.$row->user_image;
|
||||
$user_image_file = @fopen($user_image ,'r');
|
||||
|
||||
$document_front = $this->db->wallet_service_url . '/documents/'.$row->document_image_front;
|
||||
$document_front_file = @fopen($document_front ,'r');
|
||||
|
||||
$document_back = $this->db->wallet_service_url . '/documents/'.$row->document_image_back;
|
||||
$document_back_file = @fopen($document_back ,'r');
|
||||
?>
|
||||
<label class="text-center text-muted" style="padding: 10px"> Identification </label>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-6">
|
||||
<label for="m-transac"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('Nom'); ?></label>
|
||||
<input class="form-control" disabled
|
||||
|
||||
<input class="form-control" readonly
|
||||
value="<?php echo $row->id_firstname ?>">
|
||||
</div>
|
||||
<div class="form-group col-sm-6">
|
||||
<label for="code-m"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('Prénom'); ?></label>
|
||||
<input class="form-control" disabled
|
||||
<input class="form-control" readonly
|
||||
value="<?php echo $row->id_lastname ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-4">
|
||||
<label for="code-p"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('birth_date'); ?></label>
|
||||
<input class="form-control" disabled name="code-p"
|
||||
<input class="form-control" readonly
|
||||
value="<?php echo $row->birth_date ?>">
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label for="category"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('Ville'); ?></label>
|
||||
<input class="form-control" disabled
|
||||
<input class="form-control" readonly
|
||||
value="<?php echo $row->id_town ?>">
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label for="category"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('Pays'); ?></label>
|
||||
<input class="form-control" disabled
|
||||
<input class="form-control" readonly
|
||||
value="<?php echo $row->id_country?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-4">
|
||||
<label for="date-ins"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('identity_document'); ?></label>
|
||||
<input class="form-control" disabled id="date-ins"
|
||||
name="date-ins"
|
||||
<input class="form-control" readonly
|
||||
value="<?php echo $row->identity_document ?>">
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label for="date-ins"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('id_identity_document'); ?></label>
|
||||
<input class="form-control" disabled id="date-ins"
|
||||
name="date-ins"
|
||||
<input class="form-control" readonly
|
||||
value="<?php echo $row->id_identity_document ?>">
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label for="date-ins"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('expiry_date_document'); ?></label>
|
||||
<input class="form-control" disabled id="date-ins"
|
||||
name="date-ins"
|
||||
<input class="form-control" readonly
|
||||
value="<?php echo $row->expiry_date_document ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
@ -468,7 +469,7 @@
|
|||
<div class="col-12">
|
||||
<label><?= $this->lang->line('user_image') ?></label>
|
||||
<div>
|
||||
<img src="<?= is_file($user_image) ? $user_image : '../../images/broken.png' ?>"
|
||||
<img src="<?= $user_image_file ? $user_image : '../../images/broken.png' ?>"
|
||||
alt="user_image"/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -477,13 +478,13 @@
|
|||
<div class="row" style="margin-top: 10px">
|
||||
<div class="col-sm-6 text-center">
|
||||
<label><?= $this->lang->line('document_image_front') ?></label>
|
||||
<img src="<?= is_file($document_front) ? $document_front : '../../images/broken.png' ?>"
|
||||
<img src="<?= $document_front_file ? $document_front : '../../images/broken.png' ?>"
|
||||
alt="document_front"/>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-6 text-center">
|
||||
<label><?= $this->lang->line('document_image_back') ?></label>
|
||||
<img src="<?= is_file($document_back) ? $document_back : '../../images/broken.png'?>"
|
||||
<img src="<?= $document_back_file ? $document_back : '../../images/broken.png'?>"
|
||||
alt="document_back"/>
|
||||
|
||||
</div>
|
||||
|
@ -604,20 +605,25 @@
|
|||
</div>
|
||||
<?php if ($row->status) {
|
||||
$user_image = $this->db->wallet_service_url . '/photos/'.$row->user_image;
|
||||
$user_image_file = @fopen($user_image ,'r');
|
||||
|
||||
$document_front = $this->db->wallet_service_url . '/documents/'.$row->document_image_front;
|
||||
$document_front_file = @fopen($document_front ,'r');
|
||||
|
||||
$document_back = $this->db->wallet_service_url . '/documents/'.$row->document_image_back;
|
||||
$document_back_file = @fopen($document_back ,'r');
|
||||
?>
|
||||
<label class="text-center text-muted" style="padding: 10px"> Identification </label>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-6">
|
||||
<label for="m-transac"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('Nom'); ?></label>
|
||||
<input class="form-control" readonly
|
||||
|
||||
value="<?php echo $row->id_firstname ?>">
|
||||
</div>
|
||||
<div class="form-group col-sm-6">
|
||||
<label for="code-m"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('Prénom'); ?></label>
|
||||
<input class="form-control" readonly
|
||||
value="<?php echo $row->id_lastname ?>">
|
||||
|
@ -625,19 +631,19 @@
|
|||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-4">
|
||||
<label for="code-p"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('birth_date'); ?></label>
|
||||
<input class="form-control" readonly name="code-p"
|
||||
value="<?php echo $row->birth_date ?>">
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label for="category"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('Ville'); ?></label>
|
||||
<input class="form-control" readonly
|
||||
value="<?php echo $row->id_town ?>">
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label for="category"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('Pays'); ?></label>
|
||||
<input class="form-control" readonly
|
||||
value="<?php echo $row->id_country?>">
|
||||
|
@ -645,19 +651,19 @@
|
|||
</div>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-4">
|
||||
<label for="date-ins"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('identity_document'); ?></label>
|
||||
<input class="form-control" readonly
|
||||
value="<?php echo $row->identity_document ?>">
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label for="date-ins"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('id_identity_document'); ?></label>
|
||||
<input class="form-control" readonly
|
||||
value="<?php echo $row->id_identity_document ?>">
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
<label for="date-ins"
|
||||
<label
|
||||
class="col-form-label"><?php echo $this->lang->line('expiry_date_document'); ?></label>
|
||||
<input class="form-control" readonly
|
||||
value="<?php echo $row->expiry_date_document ?>">
|
||||
|
@ -667,7 +673,7 @@
|
|||
<div class="col-12">
|
||||
<label><?= $this->lang->line('user_image') ?></label>
|
||||
<div>
|
||||
<img src="<?= is_file($user_image) ? $user_image : '../../images/broken.png' ?>"
|
||||
<img src="<?= $user_image_file ? $user_image : '../../images/broken.png' ?>"
|
||||
alt="user_image"/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -676,13 +682,13 @@
|
|||
<div class="row" style="margin-top: 10px">
|
||||
<div class="col-sm-6 text-center">
|
||||
<label><?= $this->lang->line('document_image_front') ?></label>
|
||||
<img src="<?= is_file($document_front) ? $document_front : '../../images/broken.png' ?>"
|
||||
<img src="<?= $document_front_file ? $document_front : '../../images/broken.png' ?>"
|
||||
alt="document_front"/>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-6 text-center">
|
||||
<label><?= $this->lang->line('document_image_back') ?></label>
|
||||
<img src="<?= is_file($document_back) ? $document_back : '../../images/broken.png'?>"
|
||||
<img src="<?= $document_back_file ? $document_back : '../../images/broken.png'?>"
|
||||
alt="document_back"/>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue