bbone/application/modules/User/views/view_history.php
suseendhiran17 3ae47e1bd1 suseendhiran
2023-01-12 17:22:38 +05:30

34 lines
1.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- Large modal -->
<!-- <button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg" hidden>Large modal</button> -->
<!-- <div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true"> -->
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel"><?php echo $title; ?></h4>
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<?php foreach ($user_history as $key => $value) { ?>
<div id="data" style="padding : 10px;">
<lable class="col-form-label" id="first-line"><?php echo my_date_show_time($value->created_at). " " ?><i><?php echo $value->user_name; ?></i></lable></br>
<lable class="column-title" style="color : black;" >
<?php
$column_name = str_replace("_"," ",$value->column_name);
$column_name = ucwords($column_name);
if($value->old_value == null)
{ echo "'$column_name'"." Created with "."'$value->new_value'"; }
else{ echo $column_name." Changed from "."'$value->old_value'"." to "."'$value->new_value'"; }
?>
</lable></br>
</div>
<?php } ?>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<!-- <button type="button" class="btn btn-primary">Save changes</button> -->
</div>
</div>
</div>
<!-- </div> -->