RemovedMinersz.php 10.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
<!DOCTYPE html>
<html>
    <head>
        <!-- Basic Page Info -->
        <meta charset="utf-8">
        <title>Miner-Doc - Admin Panel</title>

        <!-- Site favicon -->
        <link rel="apple-touch-icon" sizes="180x180" href="vendors/images/apple-touch-icon.png">
        <link rel="icon" type="image/png" sizes="32x32" href="vendors/images/favicon-32x32.png">
        <link rel="icon" type="image/png" sizes="16x16" href="vendors/images/favicon-16x16.png">

        <!-- Mobile Specific Metas -->
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

        <!-- Google Font -->
        <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
        <!-- CSS -->
        <link rel="stylesheet" type="text/css" href="vendors/styles/core.css">
        <link rel="stylesheet" type="text/css" href="vendors/styles/icon-font.min.css">
        <link rel="stylesheet" type="text/css" href="src/plugins/datatables/css/dataTables.bootstrap4.min.css">
        <link rel="stylesheet" type="text/css" href="src/plugins/datatables/css/responsive.bootstrap4.min.css">
        <link rel="stylesheet" type="text/css" href="vendors/styles/style.css">

        <!-- Global site tag (gtag.js) - Google Analytics -->
        <script async src="https://www.googletagmanager.com/gtag/js?id=UA-119386393-1"></script>
        <script>
            window.dataLayer = window.dataLayer || [];
            function gtag() {
                dataLayer.push(arguments);
            }
            gtag('js', new Date());

            gtag('config', 'UA-119386393-1');
        </script>
    </head>

    <body>


        <div class="header">

            <div class="header-right">

                <div class="user-info-dropdown">
                    <div class="dropdown">
                        <a class="dropdown-toggle" href="#" role="button" data-toggle="dropdown">
                            <span class="user-icon">
                                <img src="vendors/images/photo1.jpg" alt="">
                            </span>
                            <span class="user-name">Admin</span>
                        </a>
                        <div class="dropdown-menu dropdown-menu-right dropdown-menu-icon-list">
                            <a class="dropdown-item" onclick="Logzoutzbuyer()"><i class="dw dw-logout" ></i> Log Out</a>
                        </div>
                    </div>
                </div>

            </div>
        </div>



        <?php
        include './navmenuuser.php';
        ?>
        <div class="mobile-menu-overlay"></div>

        <div class="main-container">
            <div class="pd-ltr-20 xs-pd-20-10">
                <div class="min-height-200px">
                    <div class="page-header">
                        <div class="row">
                            <div class="col-md-6 col-sm-12">
                                <div class="title">
                                    <h4>Admin Home</h4>
                                </div>
                                <nav aria-label="breadcrumb" role="navigation">
                                    <ol class="breadcrumb">
                                        <li class="breadcrumb-item"><a href="Homepage.php">Home</a></li>
                                        <li class="breadcrumb-item active" aria-current="page">Removed Miners</li>
                                    </ol>
                                </nav>
                            </div>

                        </div>
                    </div>
                    <!-- Simple Datatable start -->
                    <div class="card-box mb-30">
                        <div class="pd-20">
                            <h4 class="text-blue h4">Miner Details</h4>
                        </div>
                        <div class="pb-20">
                            <table class="data-table table stripe hover nowrap">
                                <thead>
                                    <tr>

                                        <th class="table-plus datatable-nosort">Organization Name</th>
                                        <th>Address</th>                                        
                                        <th>REG No</th>
                                        <th>Contact</th>
                                        <th>Description</th>
                                        <th>Email</th>                                        
                                        <th></th>
                                        <th></th>



                                    </tr>
                                </thead>
                                <tbody>

                                    <?php
                                    include './phpfiles/DB.php';


                                    $sqlzy34 = "SELECT * FROM minersregister where statusz='Remove'";
                                    $query4 = $conn->query($sqlzy34);

                                    foreach ($query4 as $value4) {
                                        ?>
                                        <tr>

                                            <td class="table-plus" id="bb<?php echo $value4['id'] ?>"><?php echo $value4['orgname']; ?></td>
                                            <td ><?php echo $value4['orgaddress']; ?></td>                                            
                                            <td><?php echo $value4['orgregisternumber']; ?></td>
                                            <td><?php echo $value4['orgcontact']; ?></td>
                                            <td><?php echo $value4['orgdesc']; ?></td>
                                            <td><?php echo $value4['orgemailz']; ?></td>
                                            <td> <button class="btn btn-success btn-large" onclick="acceptrequest3(<?php echo $value4['id']; ?>)">Active</button></td>

                                        </tr>
                                        <?php
                                    }
                                    ?>
                                </tbody>
                            </table>
                        </div>
                    </div>

                </div>
                <div class="footer-wrap pd-20 mb-20 card-box">
                    Miner - Doc  by<a href="#" target="_blank">Minosh Balasuriya</a>
                </div>
            </div>
        </div>
        <!-- js -->

        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
        <script src="//cdn.jsdelivr.net/npm/sweetalert2@10"></script>
        <script src="vendors/scripts/core.js"></script>
        <script src="vendors/scripts/script.min.js"></script>
        <script src="vendors/scripts/process.js"></script>
        <script src="vendors/scripts/layout-settings.js"></script>
        <script src="src/plugins/datatables/js/jquery.dataTables.min.js"></script>
        <script src="src/plugins/datatables/js/dataTables.bootstrap4.min.js"></script>
        <script src="src/plugins/datatables/js/dataTables.responsive.min.js"></script>
        <script src="src/plugins/datatables/js/responsive.bootstrap4.min.js"></script>
        <!-- buttons for Export datatable -->
        <script src="src/plugins/datatables/js/dataTables.buttons.min.js"></script>
        <script src="src/plugins/datatables/js/buttons.bootstrap4.min.js"></script>
        <script src="src/plugins/datatables/js/buttons.print.min.js"></script>
        <script src="src/plugins/datatables/js/buttons.html5.min.js"></script>
        <script src="src/plugins/datatables/js/buttons.flash.min.js"></script>
        <script src="src/plugins/datatables/js/pdfmake.min.js"></script>
        <script src="src/plugins/datatables/js/vfs_fonts.js"></script>
        <!-- Datatable Setting js -->
        <script src="vendors/scripts/datatable-setting.js"></script>

        <script>

                                            function acceptrequest3(vv) {


                                                var eleid = vv;

                                                $.post("phpfiles/ActiveMiner.php",
                                                        {
                                                            seriaz: eleid

                                                        },
                                                function(data, status) {

                                                    Swal.fire({
                                                        icon: 'success',
                                                        title: 'Miner Accepted...!',
                                                        showConfirmButton: true,
                                                        timer: 1500
                                                    });

                                                    window.location = "ActiveMinersz.php";

                                                });



                                            }




                                            function Logzoutzbuyer() {
                                                var k = "g";
                                                $.post("phpfiles/userlogout.php",
                                                        {
                                                            pw: k

                                                        },
                                                function(data, status) {

                                                    if (data == "ok") {


                                                        Swal.fire({
                                                            icon: 'success',
                                                            title: 'Logout sucess',
                                                            showConfirmButton: true,
                                                            timer: 1500
                                                        });
                                                        window.location = "Homepage.php";


                                                    }

                                                });
                                            }




        </script>

    </body>

</html>