<?php 
if(file_exists('../../../'.$_REQUEST['tenant'].'/config.php')){require_once('../../../'.$_REQUEST['tenant'].'/config.php');}
if(file_exists('/config.php')){require_once('/config.php');}
$stmt = $GLOBALS['con']->prepare("SELECT * FROM `lwrittenscheme` WHERE `clientnumber`='".$_REQUEST['clientnumber']."' ")or die(mysqli_error($GLOBALS['con']));
$stmt->execute();$ccl=$stmt->get_result();$stmt->close();
while($cd=mysqli_fetch_array($ccl)){?>
<div class="mb-2 card p-2 list-group-item-action wsEntry w-100">
    <div class="row">
        <div class="col-8">
            <p class="p-0 m-0" style="font-size: 16px"><small><?= $cd['no']?></small>:<?= $cd['title']?></p>
        </div>
        <div class="col-4 text-end">
            <a href="javascript:void(0)" class="btn btn-info btn-sm m-0 px-3 py-2 waves-effect" onClick="editLWSC('<?= $cd['id']?>')" data-toggle="tooltip" data-placement="left" title="View <?= $cd['title']?> details"><i
                   class="fad fa-search"></i></a>
            <?php if($_SESSION['usertype']=="admins"){?><a href="javascript:void(0)" class="btn btn-danger btn-sm m-0 px-3 py-2 waves-effect" onClick="delLWSC('<?= $cd['id']?>')" data-toggle="tooltip" data-placement="left"
               title="Remove <?= $cd['title']?>"><i class="fad fa-times"></i></a><?php }?>
        </div>
    </div>
</div>
<?php }?>