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

require_once 'inc/header.php';
?>
<!-- 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>

<style>
.prize-pics {
  float: left;
  margin-left: 10px;
  width: 220px;
}
.thumbnail {
  display: block;
  padding: 5px;
  margin-bottom: 20px;
  line-height: 1.42857;
  background-color: #FFF;
  border: 1px solid #EEE;
  border-radius: 4px;
  transition: all 0.2s ease-in-out 0s;
}
.prize-pics img {
    border: 1px dotted #545454;
}
.prize-pics p {
  height: 30px;
  font-family: monospace;
  font-weight: bold;
  background: none repeat scroll 0% 0% rgba(208, 208, 208, 0.91);
  border: 1px solid rgba(0, 0, 0, 0.11);
  border-radius: 3px;
  color: #FFF;
  text-transform: uppercase;
  float: initial;
}
</style>
<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';                    ?>
 
         <?php
       
            $id 
sprintf("%s"mysql_real_escape_string($_GET['id']));
            
$result mysql_query("SELECT * FROM vn_prizes WHERE id='{$id}'") or die(mysql_error());

            if (
mysql_num_rows($result) == 0) {
            
            
header("Location: /prizes");
            }
                
$row mysql_fetch_array($result);
            
                
                
                  if (empty(
$row['description'])) {
                    
$description "<div style='text-align:center;'>Няма</div>";
                } else {
                    
$description "<table>$row[description]</table>";
                }
                if (
$row['image2']) {
                    
$image2 "<a class='prize-img thumbnail' style='width:90px;float:left;margin-right:14px;' rel='group' href='$row[image2]'><img src='$row[image2]' alt='$row[title]' width='90' height='90' /></a>";
                }
                if (
$row['image3']) {
                    
$image3 "<a class='prize-img thumbnail' style='width:90px;float:left;' rel='group' href='$row[image3]'><img src='$row[image3]' alt='$row[title]' width='90' height='90' /></a>";
                }
                
                  
$points number_format($row['points'], 0','' ');

        
?>
                        <ul>
                            <li><a href="index.php">Home</a></li>
                            <li><a href="/prizes">Prize</a></li>
                            <li><?php echo $row['title'];?> </li>
                        </ul>
                    </div>
                </div>

            </header>
            <div id="main-box" class="full-width">
                <div id="main">
                    <div class="signup-panel">
                        <div class="left" style="width:666px;">
                            <h2><span><?php echo $row['title'];?></span></h2>
                            <div class="content-padding">
           
            <div style="width:460px;">
                   <div class="conteiner" style="margin-top:0px; width:610px;">
                        <div class="conteiner2">
                            <div class="prize-pics">
                            <p style="
                            font-size: 20px;
                            text-align: center;
                            ">Images</p>
                            
                            <?php echo "<a class='prize-img thumbnail' rel='group' href='$row[image]'><img src='$row[image]' alt='$row[title]' width='207' height='200' /></a>"?>
                                <?php echo $image2;?>
                                <?php echo $image3;?>
                                
                                
                            </div>
                            <div class="prize-pics" style="width:340px;">
                            <p style="
                    font-size: 20px;
                    text-align: center;
                    ">Description</p>
                            <font>
                            <?php echo $description;?>
                            </font>
                            
                            </div>
                            <div style="clear:both;"></div>
                            <div style="text-align: center; padding: 20px;">
                                <h4>
                                <i class="fa fa-circle-o"></i>&nbsp;<b>Points:</b> <?php echo $points;?><br>
                                <i class="fa fa-dropbox"></i>&nbsp;<b>Availability:</b> 
                                <?php

                                
if($row['quantity'] == 0){
                                echo 
'No';
                                }else{
                                echo 
'Yes';
                                }
                                
?><br>
                                </h4>
                                <?php

                                
if($row['quantity']>=1){
                                
?>
                                <a href="/getprizei-<?php echo $row['id'];?>" class="button" style="width:200px; padding:8px; margin-top:5px;">Get prize</a>
        <?php
        
        
}?>
                        </div>
                        </div>
                    </div>

                            </div>
                        </div>
                        <div class="clear-float"></div>
                    </div>
                    
                    <div class="right" style="width:245px;">
                            
                                <div class="content-padding">
                                    
                                    <div class="form-split-about">
                                    
                                    
                                <?php
         
//include ads
         
include("inc/ads250.php");
         
?>
                                    
                                    </div>
                                    
                                </div>
                            </div>

                            <div class="clear-float"></div>
                    
                </div>
                <div class="clear-float"></div>
            </div>
    </div>
</div>

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