-
Notifications
You must be signed in to change notification settings - Fork 1
/
index-new.php
679 lines (632 loc) · 41.1 KB
/
index-new.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
<?php
include("config.php");
$banners = array();
$sql_banners = "SELECT title,thumb_img,banner_img FROM b_banners WHERE istatus = '1' ORDER BY img_order ASC LIMIT 5";
$res_banners = mysql_query($sql_banners);
if (mysql_num_rows($res_banners) > 0) {
while ($row_banner = mysql_fetch_array($res_banners, MYSQL_ASSOC)) {
$banners[] = $row_banner;
}
}
?>
<?php include("./mainheader-new.php"); ?>
<body>
<div id="wrapper">
<?php include_once("header.php"); ?>
<script type="text/javascript">
var window_weight = window.innerWidth;
var start_limit = 0;
var crusel_limit = 4;
if (window_weight < 980 && window_weight > 600) {
crusel_limit = 2;
} else if (window_weight < 600) {
crusel_limit = 1;
}
$(window).resize(function () {
window_weight = window.innerWidth;
if (window_weight < 980 && window_weight > 600) {
crusel_limit = 2;
} else if (window_weight < 600) {
crusel_limit = 1;
}
//getPlanerlist('1');
});
//call function on window load function
$(document).ready(function () {
getPlanerlist('1');
var width = $(window).width();
if (width < 767) {
document.getElementById('first-carausal').style = "display:block";
}
});
function getPlanerlist(TheDay) {
var url = "ajax/getplannerlist.php";
var loading_spinner_rectangle = '<div align="left" style="margin-left:380px"><img src="images/ajax-loader.gif"/></div>';
//var nextday = document.getElementById('nextday').value;
//start_limit = document.getElementById('startlimit').value;
var TheDate;
var NextDay;
var PreDay;
var startlimit
if (crusel_limit == 1) {
start_limit = document.getElementById('startlimit').value;
if (TheDay == 1 && start_limit == 0) {
TheDate = document.getElementById('txtdate1').value;
NextDay = 1;
PreDay = 3;
document.getElementById('startlimit').value = "1"
} else if (TheDay == 1 && start_limit == 1) {
TheDate = document.getElementById('txtdate1').value;
NextDay = 1;
PreDay = 3;
document.getElementById('startlimit').value = "2"
} else if (TheDay == 1 && start_limit == 2) {
TheDate = document.getElementById('txtdate1').value;
NextDay = 1;
PreDay = 3;
document.getElementById('startlimit').value = "3"
} else if (TheDay == 1 && start_limit == 3) {
TheDate = document.getElementById('txtdate1').value;
NextDay = 2;
PreDay = 1;
document.getElementById('startlimit').value = "0";
} else if (TheDay == 2 && start_limit == 0) {
TheDate = document.getElementById('txtdate2').value;
NextDay = 2;
PreDay = 1;
document.getElementById('startlimit').value = "2"
} else if (TheDay == 2 && start_limit == 1) {
TheDate = document.getElementById('txtdate2').value;
NextDay = 2;
PreDay = 1;
document.getElementById('startlimit').value = "2"
} else if (TheDay == 2 && start_limit == 2) {
TheDate = document.getElementById('txtdate2').value;
NextDay = 2;
PreDay = 1;
document.getElementById('startlimit').value = "3"
} else if (TheDay == 2 && start_limit == 3) {
TheDate = document.getElementById('txtdate2').value;
NextDay = 3;
PreDay = 1;
document.getElementById('startlimit').value = "0";
} else if (TheDay == 3 && start_limit == 0) {
TheDate = document.getElementById('txtdate3').value;
NextDay = 3;
PreDay = 2;
document.getElementById('startlimit').value = "1"
} else if (TheDay == 3 && start_limit == 1) {
TheDate = document.getElementById('txtdate3').value;
NextDay = 3;
PreDay = 2;
document.getElementById('startlimit').value = "2"
} else if (TheDay == 3 && start_limit == 2) {
TheDate = document.getElementById('txtdate3').value;
NextDay = 3;
PreDay = 2;
document.getElementById('startlimit').value = "3"
} else if (TheDay == 3 && start_limit == 3) {
TheDate = document.getElementById('txtdate3').value;
NextDay = 1;
PreDay = 2;
document.getElementById('startlimit').value = "0";
}
} else if (crusel_limit == 2) {
start_limit = document.getElementById('startlimit').value;
if (TheDay == 1 && start_limit == 0) {
TheDate = document.getElementById('txtdate1').value;
NextDay = 1;
PreDay = 3;
document.getElementById('startlimit').value = "2"
} else if (TheDay == 1 && start_limit == 2) {
TheDate = document.getElementById('txtdate1').value;
NextDay = 2;
PreDay = 1;
document.getElementById('startlimit').value = "0";
} else if (TheDay == 2 && start_limit == 0) {
TheDate = document.getElementById('txtdate2').value;
NextDay = 2;
PreDay = 1;
document.getElementById('startlimit').value = "2"
} else if (TheDay == 2 && start_limit == 2) {
TheDate = document.getElementById('txtdate2').value;
NextDay = 3;
PreDay = 1;
document.getElementById('startlimit').value = "0";
} else if (TheDay == 3 && start_limit == 0) {
TheDate = document.getElementById('txtdate3').value;
NextDay = 3;
PreDay = 2;
document.getElementById('startlimit').value = "2"
} else if (TheDay == 3 && start_limit == 2) {
TheDate = document.getElementById('txtdate3').value;
NextDay = 1;
PreDay = 2;
document.getElementById('startlimit').value = "0";
}
} else {
start_limit = 0;
if (TheDay == 1) {
TheDate = document.getElementById('txtdate1').value;
NextDay = 2;
PreDay = 3;
}
if (TheDay == 2) {
TheDate = document.getElementById('txtdate2').value;
NextDay = 3;
PreDay = 1;
}
if (TheDay == 3) {
TheDate = document.getElementById('txtdate3').value;
NextDay = 1;
PreDay = 2;
}
}
var month = new Array();
month[0] = "Jan";
month[1] = "Feb";
month[2] = "Mar";
month[3] = "Apr";
month[4] = "May";
month[5] = "Jun";
month[6] = "Jul";
month[7] = "Aug";
month[8] = "Sep";
month[9] = "Oct";
month[10] = "Nov";
month[11] = "Dec";
var d = new Date(TheDate);
var datetext = d.getDate();
var monthtext = month[d.getMonth()];
$("#hboplanner").html(loading_spinner_rectangle);
$("#datediv").html(datetext);
$("#monthdiv").html(monthtext);
/* Post Details */
start_limit = document.getElementById('startlimit').value;
var dataString = 'movie_date=' + TheDate + '&start_limit=' + start_limit + '&end_limit=' + crusel_limit;
$.ajax({
type: "POST",
url: "ajax/getplannerlist.php",
data: dataString,
success: function (successdata) {
document.getElementById('txtpredate').value = PreDay;
document.getElementById('txtnextdate').value = NextDay;
$("#hboplanner").html(successdata);
}
});
}
</script>
<div id="marquee_video_player_container">
<center>
<div style="width: 810px; height: 360px;" class="is-splash mbsplash" id="marquee_video_player_playlist"></div>
</center>
<div class="close_popup_video">Close</div>
</div>
<!-- --------------Start crausal jquery -------------->
<div class="clearfix slide_head_text" id="block_schedule_header">
<div class="container clearfix font_content font_block_header shows_font special_font title_block">
Current Highlights
<div id="special_title_schedule" class="glow glow_position in en"></div>
</div>
</div>
<div id="marquee_container">
<div id="marquee">
<?php
if (!empty($banners)) {
foreach ($banners as $banner) {
// if (!empty($row_banner['title']) && !empty($row_banner['thumb_img']) && !empty($row_banner['banner_img'])) {
?>
<div style="position: relative; display: none;" class="marquee_item marque-first-auto clearfix marquee_item_version_flash">
<div class="marquee_video_play_flash" >
</div>
<div style="width: 100%; overflow: hidden;">
<div class="marque-slide">
<center>
<img src="<?php echo $banner['banner_img']; ?>" alt="<?php echo $banner['title']; ?>" title="<?php echo $banner['title']; ?>" border="0" >
</center>
</div>
<div class="marquee_fade clearfix" id="first-carausal" style="display:none;">
<div class="container clearfix font_content" style="position: relative;">
<div style="display: none;" class="marquee_content marquee_content_hide">
<p class="font_block_header shows_font"><a href="#" title="<?php echo $banner['title']; ?>" class="font_block_header shows_font"><?php echo $banner['title']; ?></a> <br>
</p>
<p class="msynopsis"> </p>
<a href="/" title="<?php echo $banner['title']; ?>" class="shows_font marquee_findoutmore"> </a>
<p> </p>
</div>
</div>
</div>
</div>
<div class="marquee_fade clearfix" style="position: relative;"></div>
<div style="display: none;" class="marquee_timer">5000</div>
</div>
<?php
}
}
//display movie crousal
$fromdate = date('Y-m-d');
$todate = date('Y-m-d', strtotime(date('Y-m-d') . "+ 13 day"));
$sql_carausal = "select * from b_movies WHERE (DATE(AiringDateTime) BETWEEN '" . $fromdate . "' AND '" . $todate . "' OR promospot=1 ) AND `Status`=1 AND HomeCarausalPath !='' group by Title ORDER BY AiringDateTime ASC limit 0,8";
$res_carausal = mysql_query($sql_carausal);
if (mysql_num_rows($res_carausal) > 0) {
while ($row_carausal = mysql_fetch_array($res_carausal)) {
?>
<div style="<?php echo $row_carausal['HomeCarausalPath']; ?>"); display: none;" class="marquee_item clearfix ">
<img src="//hbosouthasia.com/<?php echo $row_carausal['HomeCarausalPath']; ?>" alt="<?php echo $row_carausal['Title']; ?>" title="<?php echo $row_carausal['Title']; ?>" width="1300">
<?php if ($row_carausal['VideoPath'] != '') { ?>
<div class="marquee_video_play">
<div style="display: none;" class="marquee_video_link"><?php echo $row_carausal['VideoPath']; ?></div>
</div>
<?php } ?>
<div class="marquee_fade clearfix">
<div style="position: relative;" class="container clearfix font_content">
<div class="marquee_content marquee_content_hide" style="display: none;">
<p class="font_block_header shows_font"><a class="font_block_header shows_font" title="<?php echo $row_carausal['Title']; ?>" href="<?php echo getmoviename($row_carausal['Title'], $row_carausal['MovieID']) ?>"><?php echo $row_carausal['Title']; ?></a> <br>
<?php echo DateFormat($row_carausal['AiringDateTime']); ?> </p>
<p class="msynopsis"><?php echo $row_carausal['Synopsis']; ?></p>
<a class="shows_font marquee_findoutmore" title="<?php echo $row_carausal['Title']; ?>" href="<?php echo getmoviename($row_carausal['Title'], $row_carausal['MovieID']) ?>">Find Out More</a>
<p>
<iframe scrolling="no" frameborder="0" allowtransparency="true" style="border:none; overflow:hidden; width:135px; height:25px;" src="https://www.facebook.com/plugins/like.php?href=http://www.hbosouthasia.com/<?php echo getmoviename($row_carausal['Title'], $row_carausal['MovieID']) ?>&layout=button_count&show_faces=false&width=135&action=like&colorscheme=light&height=25"></iframe>
</p>
</div>
</div>
</div>
<div style="display: none;" class="marquee_timer">5000</div>
</div>
<?php
$movietitle.= '<li>' . $row_carausal['Title'] . '</li>';
$moviethumbnail.= '<li><a onClick="return false;" href=""><img width="48" height="32" border="0" class="marquee_nav_thumbnail" src="http://www.hbosouthasia.com/' . $row_carausal['FilePath'] . '" alt=" ' . $row_carausal['Title'] . '" title=" ' . $row_carausal['Title'] . '" ></a></li>';
}
}
?>
<div style="height:380px;" class="mbsplash"></div>
</div>
<div class="marquee_left_right_container">
<div class="marquee_left_arrow"><</div>
<div class="marquee_right_arrow">></div>
</div>
<div id="marquee_nav_container" style="top: 366px;">
<div class="glyph marquee_nav_tip_arrow_up" id="marquee_nav_tip_arrow"></div>
<div class="container clearfix font_content">
<div id="marquee_nav_content">
<div class="font_content font_show_name" id="marquee_nav_showtitle_box"></div>
<div id="marquee_nav_thumanails">
<ul id="marquee_nav_thumbnail_list">
<!-- Banner's Thumbnails -->
<?php
if (!empty($banners)) {
foreach ($banners as $banner) {
?>
<li>
<a onClick="return false;" href="">
<img width="48" height="32" border="0" class="marquee_nav_thumbnail" src="<?php echo $banner['thumb_img']; ?>" alt="<?php echo $banner['title']; ?>" title="<?php echo $banner['title']; ?>"/>
</a>
</li>
<?php
}
}
?>
<!-- Banner's Thumbnails -->
<?php echo $moviethumbnail; ?>
</ul>
</div>
<ul id="marquee_nav_showtitles">
<!-- Banner's Titles -->
<?php
if (!empty($banners)) {
foreach ($banners as $banner) {
?>
<li><?php echo $banner['title']; ?></li>
<?php
}
}
?>
<?php echo $movietitle; ?>
</ul>
</div>
</div>
</div>
</div>
<script src="assets/js/flash-detect-min.js" type="text/javascript"></script>
<script src="assets/js/home-marquee.js" type="text/javascript"></script>
<script language="javascript">
$(document).ready(function () {
if (FlashDetect.installed) {
$('#marquee div.marquee_item_version_nonflash').remove();
} else {
$('#marquee div.marquee_item_version_flash').remove();
}
$('#marquee').simplebanner();
});
function playMarqueeVideo(video) {
$('div.marquee_video_play_flash').each(function () {
if ($(this).children('div.marquee_video_link').html() == video) {
$(this).click();
}
});
}
function replayMarqueeItem(marquee) {
$('#marquee_nav_thumbnail_list').children().eq(marquee).mouseleave();
}
</script>
<!-- End Jquery Crausal -->
<div class="block_container highlight_block_line block_background_top" id="block_schedule">
<div class="clearfix" id="block_schedule_header">
<h3 class="container clearfix font_content font_block_header shows_font special_font title_block">
Tonight On HBO
<div id="special_title_schedule" class="glow glow_position in en"></div>
</h3>
</div>
<!-- Start tonight jquery slider -->
<div class="container clearfix section group channel_section_header">
<div class="schedule-wrap">
<div class="col span_2_of_15" id="block_schedule_channel_list">
</div>
<div class="col" id="block_schedule_content">
<div class="block_schedule_top_nav_item view_full_schedule"><a class="shows_font special_font font_small" id="block_schedule_channel_list_view_full_schedule" href="<?php echo $site; ?>/movie-schedule.php">View Full Schedule</a></div>
<div class="block_schedule_top_nav_item calendar_container">
<div class="divTable">
<div class="divRow">
<div class="divCell">
<input id="startlimit" type="hidden" name="startlimit" value="0">
<input id="nextday" type="hidden" name="nextday" value="1">
<input id="txtdate1" type="hidden" value="<?php echo date('Y-m-d'); ?>">
<input id="txtdate2" type="hidden" value="<?php echo date('Y-m-d', strtotime(date('Y-m-d', strtotime(date('Y-m-d'))) . " + 1 days")); ?>">
<input id="txtdate3" type="hidden" value="<?php echo date('Y-m-d', strtotime(date('Y-m-d', strtotime(date('Y-m-d'))) . " + 2 days")); ?>">
<input id="txtpredate" type="hidden" value="3">
<div class="calendar_left" onClick="getPlanerlist(document.getElementById('txtpredate').value);
return false;"><
</div>
</div>
<div class="divCell">
<div id="monthdiv" class="calendar_picker calendar_picker_header"><?php echo date('M'); ?></div>
<div id="datediv" class="calendar_picker calendar_picker_date font_large"><?php echo date('j'); ?></div>
</div>
<div class="divCell">
<input id="txtnextdate" type="hidden" value="2">
<div class="calendar_right" onClick="getPlanerlist(document.getElementById('txtnextdate').value);
return false;">dd></div>
</div>
</div>
</div>
</div>
<div class="block_schedule_nav">
<div class="glyph" id="block_schedule_nav_left" onClick="getPlanerlist(document.getElementById('txtpredate').value);
return false;" >
</div>
</div>
<div class="block_schedule_container">
<div id="hboplanner">
</div>
</div>
<div class="block_schedule_nav">
<div class="glyph" id="block_schedule_nav_right" onClick="getPlanerlist(document.getElementById('txtnextdate').value);
return false;">
</div>
</div>
</div>
</div>
</div>
<!-- End tonight jquery slider -->
</div>
<div class="block_container block_background_recommended block_bottom_space highlight_block_line weekly_update_block">
<div class="container clearfix font_content">
<div class="col span_7_of_15 font_content">
<div class="font_block_header channel_section_header bottom_spacing shows_font special_font title_block">
<?php
$fromdate = date('Y-m-d');
$todate = date('Y-m-d', strtotime(date('Y-m-d') . "+ 2 day"));
$sql = "select * from b_movies where IsHighlight=1
AND DATE(AiringDateTime) BETWEEN '" . $fromdate . "' AND '" . $todate . "' AND Status=1 ORDER BY AiringDateTime ASC LIMIT 3";
$res = mysql_query($sql);
if (mysql_num_rows($res) > 0) {
?>
<div id="special_title_thisweek" class="glow_position in en"></div>Next 3 Days Highlights</div>
<div class="weekly-update-bg">
<?php
$i = 1;
while ($row = mysql_fetch_array($res)) {
$divclass = 'weekly_thumb_block';
if ($i > 1 && ($i % 2) == 0) {
$divclass = '';
}
if ($i == 1) {
?>
<div class="channel_block_main_thumb border_shadow">
<div class="channel_block_description longer">
<div class="big_txt">
<div class="show_thumb_title_large timeline_wrap_text"><a title="<?php echo $row['Title']; ?>" href="<?php echo getmoviename($row['Title'], $row['MovieID']) ?>" class="shows_font"><?php echo $row['Title']; ?></a></div>
<p class="show_thumb_time_large"><?php echo DateFormat($row['AiringDateTime']); ?></p>
</div>
</div>
<a title="<?php echo $row['Title']; ?>" href="<?php echo getmoviename($row['Title'], $row['MovieID']) ?>"><img width="460" height="307" border="0" alt="<?php echo $row['Title']; ?>" title="<?php echo $row['Title']; ?>" src="http://www.hbosouthasia.com/<?php echo $row['FilePathBig']; ?>"></a>
</div>
<?php } else { ?>
<div class="column border_shadow weekly_block_small_thumb <?php echo $divclass; ?>">
<div class="channel_block_description middle">
<div class="small_txt">
<div class="show_thumb_title_large timeline_wrap_text"><a title="<?php echo $row['Title']; ?>" href="<?php echo getmoviename($row['Title'], $row['MovieID']) ?>" class="shows_font"><?php echo $row['Title']; ?></a></div>
<span class="show_thumb_time"><?php echo DateFormat($row['AiringDateTime']); ?>
</div>
</div>
<a title="<?php echo $row['Title']; ?>" href="<?php echo getmoviename($row['Title'], $row['MovieID']) ?>">
<img width="225" height="150" border="0" alt="<?php echo $row['Title']; ?>" title="<?php echo $row['Title']; ?>" src="http://www.hbosouthasia.com/<?php echo $row['FilePath']; ?>">
</a>
</div>
<?php
}
$i++;
}
?>
</div>
</div>
<?php } ?>
<div class="col span_7_of_15 font_content week_block_margin" style="min-height:560px;">
<?php
$fromdate = date('Y-m-d');
$todate = date('Y-m-d', strtotime(date('Y-m-d') . "+ 10 day"));
$sql_most_like = "SELECT COUNT(*) AS totalcount,c.MovieID,`SeriesID`,`Title`,`FilePathBig`,`Genre`,`AiringDateTime`,FilePath FROM c_likes c JOIN `b_movies` b ON(b.`MovieID`=c.`MovieID`) WHERE c.MovieID IN (SELECT MovieID FROM b_movies WHERE DATE(AiringDateTime) BETWEEN '" . $fromdate . "' AND '" . $todate . "' AND IsHighlight!=1 AND STATUS=1) GROUP BY c.MovieID ORDER BY 1 DESC LIMIT 3";
$res_most_like = mysql_query($sql_most_like);
if (mysql_num_rows($res_most_like) > 0) {
?>
<div class="font_block_header channel_section_header bottom_spacing shows_font special_font title_block"> You May Also Like<div class="heart"><img alt="Heart – More Movies You Like" title="Heart – More Movies You Like" src="images/heart.png"></div>
<div id="special_title_hbooriginal" class="in en"></div>
</div>
<div class="weekly-update-bg pl">
<?php
$i = 1;
while ($row = mysql_fetch_array($res_most_like)) {
$divclass = 'weekly_thumb_block';
if ($i > 1 && ($i % 2) == 0) {
$divclass = '';
}
if ($i == 1) {
?>
<div class="channel_block_main_thumb border_shadow">
<div class="channel_block_description longer">
<div class="big_txt">
<div class="show_thumb_title_large timeline_wrap_text"><a title="<?php echo $row['Title']; ?>" href="<?php echo getmoviename($row['Title'], $row['MovieID']) ?>" class="shows_font"><?php echo $row['Title']; ?></a></div>
<p class="show_thumb_time_large"><?php echo DateFormat($row['AiringDateTime']); ?></p>
</div>
</div>
<a title="<?php echo $row['Title']; ?>" href="<?php echo getmoviename($row['Title'], $row['MovieID']) ?>"><img width="460" height="307" border="0" alt="<?php echo $row['Title']; ?>" title="<?php echo $row['Title']; ?>" src="http://www.hbosouthasia.com/<?php echo $row['FilePathBig']; ?>"></a> </div>
<?php } else { ?>
<div class="column border_shadow weekly_block_small_thumb <?php echo $divclass; ?>">
<div class="channel_block_description middle">
<div class="small_txt">
<div class="show_thumb_title_large timeline_wrap_text"><a title="<?php echo $row['Title']; ?>" href="<?php echo getmoviename($row['Title'], $row['MovieID']) ?>" class="shows_font"><?php echo $row['Title']; ?></a></div>
<span class="show_thumb_time"><?php echo DateFormat($row['AiringDateTime']); ?></div>
</div>
<a title="<?php echo $row['Title']; ?>" href="<?php echo getmoviename($row['Title'], $row['MovieID']) ?>"><img width="225" height="150" border="0" alt="<?php echo $row['Title']; ?>" title="<?php echo $row['Title']; ?>" src="http://www.hbosouthasia.com/<?php echo $row['FilePath']; ?>"></a> </div>
<?php
} $i++;
}
?>
</div>
</div>
<?php } ?>
<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/en_GB/sdk.js#xfbml=1&version=v2.4&appId=363974010402867";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="col span_7_of_15 font_content" style="margin:0px;">
<div class="font_block_header channel_section_header bottom_spacing shows_font special_font title_block">
<div class="glow_position in en" id="special_title_thisweek"></div>
HBO India on Twitter
</div>
<div class="weekly-update-bg float-n">
<a class="twitter-timeline" href="https://twitter.com/HBOINDIA" data-widget-id="360746124857974784" data-show-replies="false" data-tweet-limit="4" width="480">Tweets by @HBOINDIA</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>
</div>
</div>
<div class="col span_7_of_15 font_content" id="fb-hbo">
<div class="font_block_header channel_section_header bottom_spacing shows_font special_font title_block" style="margin-left: -51px;">
<div class="glow_position in en" id="special_title_thisweek"></div>
HBO India on Facebook
</div>
<div class="weekly-update-bg fb-wrap">
<div class="fb-page" data-href="https://www.facebook.com/HBOIndia" data-width="480" data-height="505" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false" data-show-posts="true"><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/HBOIndia"><a href="https://www.facebook.com/HBOIndia">HBO India</a></blockquote></div></div>
</div>
</div>
<div class="col shows_listing_block border_shadow fb-did-hbo">
<div class="text"><h2 class="cl-text">Did You Know</h2></div>
<span>
<?php
$sql_didyouknow = "SELECT * FROM `d_didyouknow` WHERE DATE(ShowDate)<='" . date('Y-m-d') . "' AND `Status`=1 order by ShowDate DESC LIMIT 0,1";
$res_didyouknow = mysql_query($sql_didyouknow);
if (mysql_num_rows($res_didyouknow) > 0) {
$row_didyouknow = mysql_fetch_array($res_didyouknow);
echo $row_didyouknow['StoryLine'];
}
?>
<div class="share">
<a href="https://twitter.com/intent/tweet?text=<?php echo $row_didyouknow['StoryLine']; ?>&url=http://www.hbosouthasia.com" target="_blank" alt="Share on Twitter" title="Share on Twitter">
<img alt="HBOIndia Tweets" title="HBOIndia Tweets" src="images/tweet.png"/>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="block_background_body_bottom"></div>
<script type="text/x-handlebars-template" id="cross-promo-block-template">
<div class="col span_9_of_15 border_shadow">
<div class="channel_block_main_thumb channel_block_thumb_margin">
{{video}}
<div class="channel_block_description long"><div class="big_txt"><span class="show_thumb_time_large">{{time}}</span></div></div>
<a href="{{url}}" title="{{title}}"><img src="{{img}}" border="0" width="393" height="262" alt="{{title}}" /></a>
<div class="{{original}}"></div>
</div>
<div class="channel_block_secondary_thumb">
<div class="font_large font_block_{{channel}}"><a class="font_block_{{channel}}" href="{{url}}" title="{{title}}"><span class="show_thumb_title_large">{{title}}</span></a></div>
<p class="show_thumb_desc_large">{{synopsis}}</p>
<a href="{{url}}" title="Find Out More" class="font_block_{{channel}} font_small"><span class="font_block_{{channel}} font_small_header font_small">Find Out More</span></a>
<div class="schedule_block_channel_fb_like home_block_fb_like"><iframe src="https://www.facebook.com/plugins/like.php?href={{facebook}}&amp;layout=button_count&amp;show_faces=false&amp;width=135&amp;action=like&amp;colorscheme=light&amp;height=25" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:135px; height:25px;" allowtransparency="true"></iframe></div>
</div>
</div>
{{#each thumb}}
<div class="col span_3_of_15 border_shadow channel_block_third_thumb">
{{video}}
<div class="channel_block_description short">
<div class="small_txt">
<div class="show_thumb_title timeline_wrap_text font_block_{{channel}}"><a class="font_block_{{channel}}" href="{{url}}" title="{{title}}">{{title}}</a></div>
<span class="show_thumb_time">{{time}}</span>
</div>
</div>
<a href="{{url}}" title="{{title}}"><img src="{{img}}" border="0" width="192" height="128" alt="{{title}}" /></a>
<div class="{{original}}"></div>
</div>
{{/each}}
</script>
<?php include("footerlink.php"); ?>
<?php include("copyright.php"); ?>
</div>
<script type="text/x-handlebars-template" id="now-showing-block-template">
<span class="font_content font_header">{{header}}</span> <span class="font_content">{{time}}</span><br />
<span class="font_content font_show_name"><a href="{{url}}" class="shows_font show_thumb_title_large" title="{{title}}"><span>{{title}}</span></a></span><br />
</script>
<script type="text/x-handlebars-template" id="shows-popup-block-template">
{{#each this}}
<div class="nav_shows_popup_content_column">
<span class="font_content font_small_header">{{column_name}}&nbsp;</span>
<div class="column weekly_block_small_thumb">
<a class="shows_font" href="{{url_1}}" title="{{title_1}}"><img src="{{img_1}}" border="0" width="195" height="130" /></a>
<div class="{{original_1}}"></div>
<div class="column weekly_block_small_thumb nav_shows_popup_show_first">
<div class="show_thumb_title timeline_wrap_text shows_font"><a class="shows_font" href="{{url_1}}" title="{{title_1}}">{{title_1}}</a></div>
<span class="show_thumb_time">{{time_1}}</span>
</div>
</div>
<div class="column weekly_block_small_thumb nav_shows_popup_show">
<div class="show_thumb_title timeline_wrap_text shows_font"><a class="shows_font" href="{{url_2}}" title="{{title_2}}">{{title_2}}</a></div>
<span class="show_thumb_time">{{time_2}}</span>
</div>
<div class="column weekly_block_small_thumb nav_shows_popup_show">
<div class="show_thumb_title timeline_wrap_text shows_font"><a class="shows_font" href="{{url_3}}" title="{{title_3}}">{{title_3}}</a></div>
<span class="show_thumb_time">{{time_3}}</span>
</div>
</div>
{{/each}}
</script>
<script type="text/javascript">
var home_schedule_ajax = '';
var now_showing_ajax = '';
</script>
<?php include("footeranalytics.php"); ?>
</body>
</html>