-
Notifications
You must be signed in to change notification settings - Fork 0
/
video.php
113 lines (105 loc) · 5.32 KB
/
video.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
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
include 'assets/templates/pwd.php';
include $dir . 'charmadmin/dbc/articulosDAO.php';
include $dir . 'charmadmin/dbc/colaboradoresDAO.php';
include $dir . 'charmadmin/dbc/dbconnect.php';
include $dir . 'charmadmin/controllers/utilities.php';
$dbconnect = new dbconnect("charm_charmlifec536978");
$dbc = $dbconnect->getConnection();
$articulosDAO = new articulosDAO($dbc);
if(isset($_GET['id'])){
$id = $_GET['id'];
$articulo = $articulosDAO->getTheArticulo($id,2);
}
?>
<!DOCTYPE html>
<html lang="es">
<head>
<title><?php if(isset($articulo->articulo_id)){
echo $articulo->titulo . ' - ';
} ?> CHARMlife</title>
<meta charset="utf-8">
<link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,200,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="assets/css/styles.css">
<link rel="stylesheet" type="text/css" href="assets/css/stylesheet.css">
<link rel="stylesheet" href="assets/royalslider/royalslider.css">
<link rel="stylesheet" href="assets/royalslider/skins/default/rx-default.css">
<script type="text/javascript" src="assets/royalslider/jquery-1.8.3.min.js"></script>
<script src="assets/royalslider/jquery.royalslider.min.js"></script>
<script type="text/javascript" src="assets/js/all.js"></script>
<script type="text/javascript" src="assets/js/assets.js"></script>
<script type="text/javascript">
$(function(){
$('.body').html(unescape(<?php echo '"' . html_entity_decode($articulo->contenido) . '"'; ?>));
});
</script>
</head>
<body>
<?php include "assets/templates/header.php" ?>
<section class="wrapper arts contenido">
<?php if(isset($articulo->articulo_id)){
$fotos = scandir($dir . 'charmadmin/Imagenes/'.$articulo->articulo_id);
$video = $articulosDAO->getVideoByArticuloId($articulo->articulo_id);
?>
<section class="col2">
<section class="info">
<h1><?php echo strtoupper($articulo->titulo); ?></h1>
<h2><?php echo strtoupper($articulo->subtitulo); ?></h2>
<hr>
<h3>Redacción: <a href="colaboradores.php?id=<?php echo $articulo->colaborador_id;?>"><?php echo $articulo->colaborador;?></a>, <?php echo $articulo->dia." de ".getMes($articulo->mes)." del ".$articulo->year; ?></h3>
</section>
<section class="body">
</section>
<br>
<div style="width:650px; margin:0 auto;">
<div id="videoSlider" class="royalSlider rxDefault">
<img class="rsImg" src="<?php echo $dir . 'charmadmin/Imagenes/'.$articulo->articulo_id . '/' . $fotos[2]; ?>" data-rsvideo="<?php echo $video->url; ?>">
</div>
</div>
<br>
<div class="shares" align="right">
<a href="https://twitter.com/share" class="twitter-share-button" data-lang="es">Twittear</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<a href="#" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href),'facebook-share-dialog', 'width=626,height=436'); return false;">
<img style="width:36px;height:36px;" src="http://www.playersoflife.com/assets/img/content/articulos/fb.png" alt="">
</a>
</div>
<br>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1&appId=536562106387184";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="http://charmlife.com.mx/video.php?id=<?php echo $articulo->articulo_id; ?>" data-width="450" data-layout="button_count" data-show-faces="true" data-send="true"></div>
<br>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'charmlife'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</section><!-- col2 -->
<section class="col3">
<a href="http://www.facebook.com/OpticaDelRosario" target="_blank"><img src="assets/banners/home/3.gif" class="ad"></a>
<a href="http://itzel.lag.uia.mx/publico/index.php" target="_blank"><img src="assets/banners/home/4.gif" class="ad"></a>
</section>
<br class="clear">
<?php }else{ ?>
<h1>Video no encontrada.</h1>
<?php } ?>
</section>
<?php include "assets/templates/footer.php" ?>
</body>
</html>