Example #1
0
								    	<tbody>
								    		<?php 
$i = 0;
while (readJsonLiveBid($i, 'bidUserId') != null) {
    ?>
								    				<tr>
												        <td><?php 
    echo readJsonLiveBid($i, 'bidUserId');
    ?>
</td>
												        <td><?php 
    echo readJsonLiveBid($i, 'bidUserName');
    ?>
</td>
												        <td><?php 
    echo readJsonLiveBid($i, 'bidValue');
    ?>
</td>
								      				</tr>
								    			<?php 
    $i++;
}
?>
								    	</tbody>
								  </table>
					 			</div>
					 			<div id = "addnewamdin">
					 				<form role="form" id = "newadminform">
					 					<input type="hidden" name="act" value="addnewadmin"></input>
  										<div class="form-group">
										    <label for="text">Name:</label>
Example #2
0
            <div class="panel-heading">
                <h3 class="panel-title">Live Bid...</h3>
            </div>
            <div class="panel-body">
                <?php 
if ($itemPresent) {
    if (readJsonLiveBid(0, 'bidUserId') != null) {
        $str_i_bidvalue = number_format(readJsonLiveBid(0, 'bidValue'), 2, ".", ",");
        echo "<h4>1. " . readJsonLiveBid(0, 'bidUserName') . "<br> bid <span>&#36;{$str_i_bidvalue}</span></h4>";
        if (readJsonLiveBid(1, 'bidValue') != null) {
            $str_i_bidvalue2 = number_format(readJsonLiveBid(1, 'bidValue'), 2, ".", ",");
            echo "<h4>2. " . readJsonLiveBid(1, 'bidUserName') . "<br>  bid <span>&#36;{$str_i_bidvalue2}</span></h4>";
        }
        if (readJsonLiveBid(2, 'bidValue') != null) {
            $str_i_bidvalue3 = number_format(readJsonLiveBid(2, 'bidValue'), 2, ".", ",");
            echo "<h4>3. " . readJsonLiveBid(2, 'bidUserName') . "<br>  bid <span>&#36;{$str_i_bidvalue3}</span></h4>";
        }
    } else {
        echo "<h4 class='text'>No Bid yet... Be the first to bid.</h4>";
    }
}
?>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $("#bidsubmit").click(function(e) {
    	e.preventDefault();
       	var formdata = $("form").serialize();
       	$.ajax({
Example #3
0
    $quizPresent = true;
}
$userifo = "SELECT `u_cashbalance`, `u_itempoints`, `u_quizlevel`, `chat_status` FROM `user` WHERE `tek_userid` = '{$user_id}'";
if (!mysqli_query($link, $userifo)) {
    die('unable to get user info');
} else {
    $user_info = mysqli_fetch_assoc(mysqli_query($link, $userifo));
    $user_cash = $user_info["u_cashbalance"];
    $user_auct_points = $user_info["u_itempoints"];
    $user_quiz_level = $user_info["u_quizlevel"];
}
$i_name = readJsonItem('i_name');
$i_imgpath = readJsonItem('i_imgpath');
$i_desc = readJsonItem('i_desc');
$i_baseprice = readJsonItem('i_baseprice');
$i_currentbidvalue = readJsonLiveBid(0, 'bidValue');
if ($i_name != null) {
    $itemPresent = true;
}
mysqli_close($link);
?>
<html class="full" lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">

        <title>Auction - Just buy it</title>