Functional Requirements of Live Betting Management System
- Easy To play Game.
- Easy to Add Balance System.
- Easy To Withdraw.
- The user can modify Profile Photo
- Automatic Payment Method will be Paypal or credit card.
- The user can include complete History.
- ID to ID Balance Transfer.
- The user must able to work with Affiliation System.
- The user can Modify Profile
- System must have Responsive Design.
- The user must be able to One Click Registration.
- The user can Declare 7 Trade Ball Bet Game Winner.
- The user can Full Control Of Head & Tail Game.
- The user can manage Advance Dashboard.
- Modify Payment Method (Paypal Email ).
- Head & Tail Game Winner List.
- The user can view Dynamic Control Panel.
- Modify / Delete 7 Trade Ball Bet Game Schedule.
- The user can Manage 7 Trade Ball Bet Game Losser.
- The user can Trade Ball Bet Winner & Losser List.
- Live Cricket, Soccer, Hockey & Other’s Bet Creation
- Manage Game Profit Ratio.
- The user can Manage Fully Finance
Advertisement
Advertisement
addmoneyPreview.php
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 |
<?php include ('include/header.php'); ?> <link href="css/style.default.css" rel="stylesheet"> <link href="css/jquery.datatables.css" rel="stylesheet"> </head> <body> <?php include ('include/sidebar.php'); ?> <div class="pageheader"> <h2><i class="fa fa-desktop"></i> DEPOSIT PREVIEW </h2> </div> <div class="contentpanel"> <div class="row"> <?php if ($_POST) { $method = $_POST["id"]; $amount = round($_POST["amount"], 2); $data = mysql_fetch_array(mysql_query("SELECT name, minamo, maxamo, charged, chargep, rate, status FROM deposit_method WHERE id='".$method."'")); $err1 = $amount<=0 ? 1:0; $err2 = $data[6]!=1 ? 1:0; // Status OFF $err3 = $amount<$data[1]?1:0; $err4 = $amount>$data[2]?1:0; $error = $err1+$err2+$err3+$err4; if ($error == 0){ $per = $amount*$data[4]/100; $charge = round($per+$data[3] , 2); $gt = round($amount+$charge , 2); $inUS = round($gt/$data[5] , 2); $un = uniqid(); $ra = rand(10000,99999); $dtrx = md5(time().$un.$ra); ?> <div class="table-scrollable"> <table class="table table-bordered table-hover"> <tbody> <tr> <td><strong style="font-size: 1.5em;" class="pull-right">Method</strong> </td> <td> <strong style="font-size: 1.5em;"><?php echo "$data[0]"; ?></strong></td> </tr> <tr class=""> <td><strong style="font-size: 1.5em;" class="pull-right">Amount</strong> </td> <td> <strong style="font-size: 1.5em;"><?php echo "$amount $basecurrency"; ?></strong></td> </tr> <tr class=""> <td><strong style="font-size: 1.5em;" class="pull-right">Charge</strong> </td> <td> <strong style="font-size: 1.5em;"><?php echo "$charge $basecurrency"; ?></strong></td> </tr> <tr class="info"> <td><strong style="font-size: 1.5em;" class="pull-right">TOTAL</strong> </td> <td> <strong style="font-size: 1.5em;"><?php echo "$gt $basecurrency"; ?></strong></td> </tr> </tbody> </table> </div> <div class="row"><br><br> <?php $res = mysql_query("INSERT INTO deposit_data SET usid='".$uid."', tm='".time()."', method='".$method."', track='".$dtrx."', amount='".$amount."', charge='".$charge."', amountus='".$inUS."'"); if ($res) { $_SESSION['depoistTrack'] = $dtrx; ?> <div class="col-md-6"> <a href="<?php echo $baseurl;?>/AddMoney" class="btn btn-danger btn-lg btn-block"> CANCEL </a> </div> <div class="col-md-6"> <a href="<?php echo $baseurl;?>/DepositNow" class="btn btn-success btn-lg btn-block"> DEPOSIT NOW</a> </div> <?php }else{ echo "<div class=\"alert alert-danger alert-dismissable uppercase\"> <b>SOME PROBLEM OCCURE, PLEASE RELOAD THE PAGE !</b> </div>"; } ?> </div> <?php }else{ if ($err1 == 1){ echo "<div class=\"alert alert-danger alert-dismissable\"> <b>AMOUNT MUST BE A POSITIVE NUMBER!</b> </div>"; } if ($err2 == 1){ echo "<div class=\"alert alert-danger alert-dismissable\"> <b>DEPOSIT METHOD IS NOT AVAILABLE AT THIS TIME</b> </div>"; } if ($err3 == 1 || $err4 == 1){ echo "<div class=\"alert alert-danger alert-dismissable uppercase\"> <b>You Can Only Deposit Between $data[1] - $data[2] $basecurrency </b> </div>"; } echo ' <div class="row"><br> <br> <div class="col-md-6"> <a href="'.$baseurl.'/AddMoney" class="btn blue btn-lg btn-block"> ADD MONEY </a> </div> <div class="col-md-6"> <a href="'.$baseurl.'/Dashboard" class="btn btn-success btn-lg btn-block"> DASHBOARD </a> </div> </div> '; } } ?> </div> </div> <?php include ('include/footer.php'); ?> <script src="js/jquery.datatables.min.js"></script> <script src="js/select2.min.js"></script> <script> jQuery(document).ready(function() { "use strict"; jQuery('#table1').dataTable(); jQuery('#table2').dataTable({ "sPaginationType": "full_numbers" }); // Select2 jQuery('select').select2({ minimumResultsForSearch: -1 }); jQuery('select').removeClass('form-control'); // Delete row in a table jQuery('.delete-row').click(function(){ var c = confirm("Continue delete?"); if(c) jQuery(this).closest('tr').fadeOut(function(){ jQuery(this).remove(); }); return false; }); // Show aciton upon row hover jQuery('.table-hidaction tbody tr').hover(function(){ jQuery(this).find('.table-action-hide a').animate({opacity: 1}); },function(){ jQuery(this).find('.table-action-hide a').animate({opacity: 0}); }); }); </script> <script> // Spinner var spinner = jQuery('#spinner').spinner(); spinner.spinner('value', 0); </script> </body> </html> |
bidgame.php
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 |
<?php include ('include/header.php'); ?> <link href="css/style.default.css" rel="stylesheet"> <link href="css/jquery.datatables.css" rel="stylesheet"> </head> <body> <?php include ('include/sidebar.php'); ?> <div class="pageheader"> <h2><i class="fa fa-th-list"></i> BID GAMES</h2> </div> <div class="contentpanel"> <div class="panel panel-default"> <div class="panel-body"> <div class="clearfix mb30"></div> <div class="table-responsive"> <table class="table table-striped" id="table2"> <thead> <tr> <th>Title</th> <th>Option 1</th> <th>Option 2</th> <th>BID NOW</th> </tr> </thead> <tbody> <?php $ddaa = mysql_query("SELECT id, title, btext, op1, op2, op1s, op2s, status FROM bid_game WHERE status='0' ORDER BY id"); echo mysql_error(); while ($data = mysql_fetch_array($ddaa)) { $op1 = mysql_query("SELECT amount FROM bid_bid WHERE gid='".$data[0]."' AND userid='".$uid."' AND opid='1' ORDER BY id"); $co1 = 0; while ($oo1 = mysql_fetch_array($op1)) { $co1 = $co1+$oo1[0]; } $op2 = mysql_query("SELECT amount FROM bid_bid WHERE gid='".$data[0]."' AND userid='".$uid."' AND opid='2' ORDER BY id"); $co2 = 0; while ($oo2 = mysql_fetch_array($op2)) { $co2 = $co2+$oo2[0]; } echo " <tr> <td>$data[1]</td> <td>$data[3] <b>($co1 Coin)</b></td> <td>$data[4] <b>($co2 Coin)</b></td> <td> <form action=\"$baseurl/bid-now\" method=\"post\"> <input type=\"hidden\" name=\"gameid\" value=\"$data[0]\"> <button class=\"btn btn-primary btn-xs\">BID NOW</button> </form> </td> </tr> "; } ?> </tbody> </table> </div><!-- table-responsive --> </div> </div> </div><!-- contentpanel --> </section> <?php include ('include/footer.php'); ?> <script src="js/jquery.datatables.min.js"></script> <script src="js/select2.min.js"></script> <script> jQuery(document).ready(function() { "use strict"; jQuery('#table1').dataTable(); jQuery('#table2').dataTable({ "sPaginationType": "full_numbers" }); // Select2 jQuery('select').select2({ minimumResultsForSearch: -1 }); jQuery('select').removeClass('form-control'); // Delete row in a table jQuery('.delete-row').click(function(){ var c = confirm("Continue delete?"); if(c) jQuery(this).closest('tr').fadeOut(function(){ jQuery(this).remove(); }); return false; }); // Show aciton upon row hover jQuery('.table-hidaction tbody tr').hover(function(){ jQuery(this).find('.table-action-hide a').animate({opacity: 1}); },function(){ jQuery(this).find('.table-action-hide a').animate({opacity: 0}); }); }); </script> </body> </html> |
bidnow.php
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 |
<?php include ('include/header.php'); ?> </head> <body> <?php include ('include/sidebar.php'); ?> <div class="pageheader"> <h2><i class="fa fa-gamepad"></i> BID NOW </h2> </div> <div class="contentpanel"> <div class="row"> <div class="col-md-12"> <center> <?php if($_POST) { $gameid = $_POST["gameid"]; $gamedetails = mysql_fetch_array(mysql_query("SELECT title, btext, op1, op2, op1s, op2s, status FROM bid_game WHERE id='".$gameid."'")); if($gamedetails[6] == 1){ echo " <h4 style=\"color:red;\">The Game is Expired Already!!!<br/>"; include("exit.php"); exit(); } echo "<h1>$gamedetails[0]</h1>"; echo "<p>$gamedetails[1]</9>"; echo "<form action=\"$baseurl/bidnowsubmit\" method=\"post\"> <input type=\"hidden\" name=\"gameid\" value=\"$gameid\"> "; ?> <div class="col-sm-3"></div> <div class="col-sm-6"> <div class="form-group"> <h3>BID <input type="text" id="spinner" style="width: 80px;" name="bid"/> Coin <br/><br/> <?php if($gamedetails[4]==0){ echo "<button type=\"submit\" name=\"sub\" value=\"1\" class=\"btn btn-primary btn-lg\">$gamedetails[2]</button> "; }else{ echo "<button type=\"submit\" name=\"sub\" value=\"1\" class=\"btn btn-primary-alt btn-lg disabled\">$gamedetails[2] (closed)</button> "; } if($gamedetails[5]==0){ echo " <button type=\"submit\" name=\"sub\" value=\"2\" class=\"btn btn-primary btn-lg\">$gamedetails[3]</button>"; }else{ echo " <button type=\"submit\" name=\"sub\" value=\"2\" class=\"btn btn-primary-alt btn-lg disabled\">$gamedetails[3] (closed)</button>"; } ?> </div> </form> <?php }else{ echo " <h2 style=\"color:red;\">Please Select a Game To BID</h4>"; } ?> <?php echo " <h4 style=\"color:red;\">Your Current balance is : $mallu Coin</h4>"; ?> </h3> </center> </div><div class="col-sm-3"></div> </div><!-- col-sm-6 --> </div><!-- row --> </div><!-- contentpanel --> </div><!-- mainpanel --> </section> <?php include ('include/footer.php'); ?> <script> // Spinner var spinner = jQuery('#spinner').spinner(); spinner.spinner('value', 0); </script> </body> </html> |
Download full code of Betting Management System in PHP