/var/www/hkosl.com/alliancealliance/special_offer.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
<?php
    
require_once ('webadmin/basic_info.php');

    
$this_menu_info get_menu_info(3);

    
$page basename($_SERVER['SCRIPT_FILENAME']);

    
$limit 10;
    if (!empty(
$_GET['start'])){
        
$start $_GET['start'];
    } else{
        
$start 0;
    }


    
$all_news_info get_news_list($this_menu_info["typeid"]);
    
$count count($all_news_info);

    
$numpage $count $limit;

    
$news_info get_news_list($this_menu_info["typeid"], $start$limit);

?>

<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
    <?php require_once("html_head.php"?>
</head>

<body>

<?php require_once("google_analysis.php"); ?>

<?php require_once("html_header.php"?>

<section id="content" class="special_offer">

    <?php require_once("banner.php"?>

    <div class="container">
        <div style="padding-top: 20px;">
            <div style="padding-bottom: 20px;">

                <div class="head_title">
                    <?=$this_menu_info["title_".$langcode]?>
                </div>

                <div style="padding-top: 20px; text-align: justify;">
                    <table style="width: 100%;">
                        <?php
                            
if(!empty($news_info)){

                            foreach(
$news_info as $news){

                                if(!empty(
$news["cover_img_".$langcode])){
                                    
$cover_img '<img src="images/news/'.$news["cover_img_".$langcode].'" style="width: 100%;"/>';
                                }else{
                                    
$cover_img "";
                                }

                                echo 
'<tr>
                            <td style="width: 350px;">
                                '
.$cover_img.'
                            </td>

                            <td>
                                <div class="special_offer_content">
                                    <a href="special_offer_detail.php?id='
.$news["id"].'"><p class="nopadding_nomargin title">'.$news["title_".$langcode].'</p></a>

                                    <div>
                                        '
.$news["short_desc_".$langcode].'
                                    </div>
                                </div>
                            </td>

                            <td class="tc" style="vertical-align: middle; width: 100px;">
                                <a href="special_offer_detail.php?id='
.$news["id"].'">
                                    <img src="images/special_offer_dtl_icon.png"/>
                                </a>
                            </td>
                        </tr>'
;
                            } }
                        
?>
                    </table>

                    <?php
                        
require_once ("pagenav.php");
                    
?>
                </div>

            </div>
        </div>
    </div>

</section>

<?php require_once("html_footer.php"); ?>

</body>
</html>