Вход Регистрация
Файл: Source/pages/winner.php
Строк: 121
<?php
/*
 * Script name: Points4Prize
 * Author: Soft Projects
 * Date created: 15/07/2015
 */

require_once 'inc/header.php';
?>
<body class="no-slider">
    <!-- <body class="has-top-menu"> -->
    <!-- BEGIN #slider-imgs -->
    <div id="slider-imgs">
        <div class="featured-img-box">
            <div id="featured-img-1" class="featured-img"></div>
            <div id="featured-img-2" class="featured-img invisible"></div>
            <div id="featured-img-3" class="featured-img invisible"></div>
            <div id="featured-img-4" class="featured-img invisible"></div>
        </div>
        <!-- END #slider-imgs -->
    </div>

    <!-- BEGIN #top-layer -->
    <div id="top-layer">
        <div id="header-top">
            <?php
            
require_once 'inc/header_top.php';
            
?>
        </div>
        <section id="content">
            <header id="header">
                <div id="menu-bottom">

                    <?php
                    
require_once 'inc/menu_bottom.php';
                    
?>

                </div>

                <div class="wrapper">
                    <div class="header-breadcrumbs">
 <?php                    require_once 'inc/stats.php';                    ?>
                        <ul>
                            <li><a href="index.php">Home</a></li>
                            <li>Request prize #<?php


$ID 
= (int) htmlspecialchars($_GET['id']);

$result mysql_query("SELECT * FROM vn_awarded WHERE id='$ID'") or die(mysql_error());
$row mysql_fetch_array($result);

if(empty(
$row)){
    
header("Location:index.php");
}

$date date("j F Y"$row['date']);

$result2 mysql_query("SELECT user,vip FROM vn_users WHERE id='$row[userid]'") or die(mysql_error());
$row2 mysql_fetch_assoc($result2);

$result3 mysql_query("SELECT * FROM vn_prizes WHERE id='$row[prizeid]'") or die(mysql_error());
$row3 mysql_fetch_array($result3);




                            echo 
$ID;?> </li>
                        </ul>
                    </div>
                </div>

            </header>
            <div id="main-box" class="full-width">
                <div id="main">
                
                           
           <!-- Add jQuery library -->
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>

<!-- Add mousewheel plugin (this is optional) -->
<script type="text/javascript" src="/assets/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>

<!-- Add fancyBox -->
<link rel="stylesheet" href="/assets/fancybox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />
<script type="text/javascript" src="/assets/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>

<!-- Optionally add helpers - button, thumbnail and/or media -->
<link rel="stylesheet" href="/assets/fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" type="text/css" media="screen" />
<script type="text/javascript" src="/assets/fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
<script type="text/javascript" src="/assets/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.6"></script>

<link rel="stylesheet" href="/assets/fancybox/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7" type="text/css" media="screen" />
<script type="text/javascript" src="/assets/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script>

<script type="text/javascript">
  /* <![CDATA[ */

    (function () {

    // Fancybox selector
    $("a.prize-img").fancybox();
    $("a.inline").fancybox({
        'hideOnContentClick': true
    });
    
      })();

    /* ]]> */
</script>
                
                    <div class="signup-panel">
                    <div class="content-padding">
                    <h2><span>Request prize #<?php echo $ID;?> </span></h2>
                 <div style="width:500px;float:left;">
                Name prize: <?php echo $row3['title']; ?> <hr />
                Date requested: <?php echo $date?><hr />
                User : <?php echo $row2['user']; ?><hr />
                Status: 
                <?php
                  
if($row['status'] == 0) {
                 
$status "<img src='assets/img/winners/processing.png' alt='Processing' title='Processing' width='16' height='16' /><br /> Processing";
                 } elseif(
$row['status'] == 1) {
                 
$status "<img src='assets/img/winners/check.png' alt='Check' title='Check' width='16' height='16' /><br /> Check";
                 } elseif(
$row['status'] == 2) {
                  
$status "<img src='assets/img/winners/canceled.png' alt='Canceled' title='Canceled' width='16' height='16' /><br /> Canceled";
                 } elseif(
$row['status'] == 3) {
                 
$status "<img src='assets/img/winners/fsend.png' alt='Processing dispatch' title='Processing dispatch' width='16' height='16' /><br /> Processing dispatch";
                 } elseif(
$row['status'] == 4) {
                 
$status "<img src='assets/img/winners/sent.png' alt='Sent' title='Sent' width='16' height='16' /><br /> Sent";
                 } elseif(
$row['status'] == 5) {
                 
$status "<img src='assets/img/winners/received.png' alt='Received' title='Received' width='16' height='16' /><br /> Received";
                 }
                 
                echo 
$status;
                
?>
                <hr />
                Information:
                
                <?php
                
if($row['status'] == 112) {
                    echo 
"
                    <a class='prize-img thumbnail button' rel='group' style='background-color: #519623;padding:4px;font-size:11px;' href='
$row[dok]'>
                    Proof
                    </a>"
;
                    
                    }
                    else{

                echo 
$row['dok']; 
                
                }
?>
                </div>
                <div style="width:300px;float:right;">
            Picture:
                <hr />
                <br />
                
                <img src="<?php echo $row3['image']; ?>" width="200px" />
            </div>
                        <div class="clear-float"></div>
                    </div>
                </div>
                <div class="clear-float"></div>
            </div>
    </div>
</div>

<?php
require_once 'inc/footer.php';
?>
Онлайн: 2
Реклама