ok
Direktori : /home2/selectio/www/subamangala/admin/ui-api/ |
Current File : //home2/selectio/www/subamangala/admin/ui-api/buisness-to-business-details.php |
<?php include('../config/config.php'); ?> <?php error_log("Profile Id".$_POST['profiles_id']); ?> <?php $statement = $pdo->prepare("SELECT e.*,natchatram.natchatram as profile_natchathiram FROM `profiles` e left join natchatram on natchatram.id=e.natchatram where e.id='".$_POST['profiles_id']."'"); $statement->execute(); $datas = $statement->fetchAll(PDO::FETCH_ASSOC); $totalData = $statement->rowCount(); ?> <div class="table-responsive"> <table id="StData" style="width:100%;" class="table table-striped table-bordered table-condensed table-hover display" style="width:100%; margin-bottom:5px;font-size: 12px;"> <tr id="first_tr"> <td>Party Details</td> <td>Profile Id</td> <td>Name</td> <td>Date Of Birth</td> <td>Natchathiram</td> <td>Education</td> <td>Working Place</td> <td>Monthly Income</td> <td>Father Name</td> <td>Native</td> </tr> <tr style="background-color: burlywood;font-weight: bold;"> <td><?=$datas[0]['bname']?><br><?=$datas[0]['cellno']?></td> <td><?=$datas[0]['regtype']?><?=$datas[0]['id']?></td> <td><?=$datas[0]['bname']?></td> <td><?=$datas[0]['dob']?></td> <td><?=$datas[0]['profile_natchathiram']?></td> <td><?=$datas[0]['edu']?></td> <td><?=$datas[0]['job_place']?></td> <td><?=$datas[0]['monthly_income']?></td> <td><?=$datas[0]['father_name']?></td> <td><?=$datas[0]['native_place']?></td> </tr> <?php $sql = "SELECT e.*,natchatram.natchatram as profile_natchathiram FROM `profiles` e left join natchatram on natchatram.id=e.natchatram where e.id in ($datas[0]['business_id'])"; error_log($sql); $statements = $pdo->prepare("SELECT e.*,natchatram.natchatram as profile_natchathiram FROM `profiles` e left join natchatram on natchatram.id=e.natchatram where e.id in (".$datas[0]['business_id'].")"); $statements->execute(); $datass = $statements->fetchAll(PDO::FETCH_ASSOC); $totalDatas = $statements->rowCount(); if($totalDatas>0){ foreach($datass as $matchs){ ?> <tr style="background-color: coral;font-weight: bolder;"> <td><?=$matchs['bname']?><br><?=$matchs['cellno']?></td> <td><?=$matchs['regtype']?><?=$matchs['id']?></td> <td><?=$matchs['bname']?></td> <td><?=$matchs['dob']?></td> <td><?=$matchs['profile_natchathiram']?></td> <td><?=$matchs['edu']?></td> <td><?=$matchs['job_place']?></td> <td><?=$matchs['monthly_income']?></td> <td><?=$matchs['father_name']?></td> <td><?=$matchs['native_place']?></td> </tr> <?php } }else{ ?> <tr><td colspan="10" style="text-align:center;color:red;">No Matching Profiles</td></tr> <?php } ?> </table> </div>