%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php include("includes/header.php"); include("includes/sidebar.php"); ?> <!-- Page Content --> <div class="right_col" role="main"> <div class=""> <!-- Page Title Bar --> <div class="page-title"> <div class="title_left"> <h3>CME Registration</h3> </div> <div class="title_right"> <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search for..."> <span class="input-group-btn"> <button class="btn btn-default" type="button">Go!</button> </span> </div> </div> </div> </div> <!-- End of Page Title Bar --> <div class="clearfix"></div> <?php if ($this->session->flashdata('msg')): ?> <div class="alert alert-success" id="flash-msg"> <?php echo $this->session->flashdata('msg'); ?> </div> <script> setTimeout(function() { $('#flash-msg').fadeOut('slow'); }, 2000); </script> <?php endif; ?> <!-- Content Section --> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <a class="btn btn-danger" onclick="tableToExcel('#divId', 'Excel Report')" class="btn btn-danger" style=" margin-top: -6px;color:#ffffff; float:right"><i class="fa fa-bar-chart"></i>Export</a> <div class="x_panel"> <!-- Panel Title --> <div class="x_title"> <h2>View CME Registration</h2> <ul class="nav navbar-right panel_toolbox"> <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a> </li> </ul> <div class="clearfix"></div> </div> <!-- End of Panel Title --> <div id="divId"> <div class="x_content"> <table id="dataTable" class="table table-striped table-bordered"> <thead> <tr> <th class="actions"><input type="checkbox" id="check-all" class="flat"></th> <th>Sr No.</th> <th>Pass Category</th> <th>Registration Type (Special Discount on Group)</th> <th>Full Name</th> <th>Date Of Birth</th> <th>Gender</th> <th>Email ID</th> <th>Mobile Number</th> <th>Picture</th> <th>Address</th> <th>Employee ID</th> <th>ID Card No</th> <th>Aadhar Card</th> <th>Additional Information</th> <th>Transaction ID / UTR No.</th> <th>Calculated Amount</th> <th>Upload Payment Screenshot</th> <th>Date</th> <th>Status</th> <th class="actions">Action</th> </tr> </thead> <tbody> <?php foreach ($records as $key => $record): ?> <tr> <td class="a-center"><input type="checkbox" class="flat" name="table_records"></td> <td><?= $key + 1; ?></td> <td><?= htmlspecialchars($record['ticket_category']); ?></td> <td><?= htmlspecialchars($record['registration_type']); ?></td> <td><?= htmlspecialchars($record['full_name']); ?></td> <td><?= htmlspecialchars($record['dob']); ?></td> <td><?= htmlspecialchars($record['gender']); ?></td> <td><?= nl2br(str_replace(',', "\n", htmlspecialchars($record['email']))) ?></td> <td><?= nl2br(str_replace(',', "\n", htmlspecialchars($record['mobile_no']))) ?></td> <td> <?php if (!empty($record['picture'])): $pictures = explode(',', $record['picture']); foreach ($pictures as $pic): if (!empty(trim($pic))): ?> <img src="<?= base_url('assests/imgs/' . trim($pic)) ?>" alt="Attendee Picture" width="60" height="60" style="margin:3px; border-radius:6px;"> <?php endif; endforeach; endif; ?> </td> <td><?= htmlspecialchars($record['city']); ?></td> <td><?= htmlspecialchars($record['employee_id']); ?></td> <td><?= htmlspecialchars($record['id_card_no']); ?></td> <td> <?php if (!empty($record['aadhar_card'])): $aadhar_card = explode(',', $record['aadhar_card']); foreach ($aadhar_card as $aadhar): if (!empty(trim($aadhar))): ?> <img src="<?= base_url('assests/imgs/' . trim($aadhar)) ?>" alt="Attendee Aadhar Card" width="60" height="60" style="margin:3px; border-radius:6px;"> <?php endif; endforeach; endif; ?> </td> <td><?= htmlspecialchars($record['additional_information']); ?></td> <td><?= htmlspecialchars($record['transaction_id']); ?></td> <td><?= htmlspecialchars($record['calculated_amount']); ?></td> <td> <img src="<?= base_url('assests/imgs/' . $record['id_proof_img']) ?>" alt="Transaction Image" width="80" height="80"> </td> <td><?= htmlspecialchars($record['created_at']); ?></td> <td> <?php if ($record['status'] == '1'): ?> <span style="color: green;">Active</span> <?php else: ?> <span style="color: red;">Inactive</span> <?php endif; ?> </td> <td> <a href="<?= base_url(); ?>admin/CmeRegistration/remove_entry/<?= $record['id']; ?>"> <i class="fa fa-2x fa-times-circle"></i> </a> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js "></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script> <script> var tableToExcel = (function () { var uri = 'data:application/vnd.ms-excel;base64,' , template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>' , base64 = function (s) { return window.btoa(unescape(encodeURIComponent(s))) } , format = function (s, c) { return s.replace(/{(\w+)}/g, function (m, p) { return c[p]; }) } return function (table, name) { if (!table.nodeType) table = document.getElementById('dataTable'); var ctx = { worksheet: name || 'Worksheet', table: table.innerHTML } window.location.href = uri + base64(format(template, ctx)) } })() </script> <?php include("includes/footer.php"); ?>