<?php
$module_css_path = ($line_domain['theme'] != "" && $line_domain['theme'] != "default") ? ($path . ('assets/themes/' . $line_domain['theme'] . '/')) : $path;

$optres['css'][] = $module_css_path . 'amodules/rates/css/rates.css';
$optres['js'][] = $path . 'amodules/rates/js/rates.js';
$optres ['js'][] = $path . "assets/js/jquery.matchHeight-min.js";

$cf_show_left_side = false;
$cf_show_right_side = false;
//echo '<pre>', var_export($_GET, true), '</pre>';
//require_once(dirname(__FILE__) . "/../../adbcon.php");
$dom = str_replace('www.', '', strtolower($_SERVER['HTTP_HOST']));
$have_prices = false;
$domain_title = $dom;
$domainname = isset($_REQUEST['domainname']) ? trim($_REQUEST['domainname']) : $ultra_domainname;
//$domainname = "www.cyprusdevelopers.com";
$str_domainname = str_replace('www.', '', $domainname);
$q = "SELECT * FROM domaincategories WHERE domainname like '%$str_domainname';";
$r = @mysql_query($q);
if($r && mysql_num_rows($r) == 1) {
    $row = mysql_fetch_assoc($r);
    $domain_title = stripslashes($row['c_title_en']);
	$domainname = $row['domainname'];
    $dom = str_replace("www.", "", $domainname);
}

/*
if ($dom == 'cyprusdevelopers-com'){
	$dom = 'cyprusdevelopers';
}*/
$assets_path = $path . "amodules/rates/assets/";
$name = $domain_title;
$pricelist_file = "https://www.cypruswebsites.com/acrons/pricelist/pricelist.csv";
$csv = array_map('str_getcsv', file($pricelist_file));

foreach($csv as $p){
	if(strpos($dom, strtolower($p[0]).'.') !== false) {
        $have_prices = true;
		$name = $p[0];
		$p1 = $p[1];
		$p2 = $p[2];
		$p3 = $p[3];
		$p4 = $p[4];
	}
}
?>

<header>
	<h1>Cyprus Network Pricing: <?=$ultra_domainname?></h1>
</header>
<div class="article-body cyprus price-list">
    <p>The <strong>Cyprus Network</strong> offers a sophisticated way of delivering targeted audience to advertisers. Our 2200 Portals receive today more than 700.000 unique visitors per month and enjoy a steady and continuous increase in traffic. We are projecting to reach 25.000.000 (Twenty Five Millions) annual visitors.</p>
    <p>We place advertising Banners and Logos on market-specific Portals within the  <strong>Cyprus Network</strong> that are a hundred percent related to each industry or service. If you request that your Banner or Logo being placed on an unrelated website it is at our discretion not to accept such an offer. This is to guarantee that our users always receive the information they have requested as a result of their specific search.</p>

    <?php
    if($have_prices) {
        ?>

        <h2><span class="package"><?= $name ?>.com</span> Price List</h2>

        <p><strong>First year introductory prices:</strong></p>

        <div class="table-responsive">
            <table class="table table-bordered table-striped price-table" id="t1">
                <thead>
                <tr class="rhead">
                    <th class="col-sm-2">&nbsp;</th>
                    <th class="col-sm-2 text-center"><a href="#pack1" class="package underline">Package 1</a></th>
                    <th class="col-sm-2 text-center"><a href="#pack2" class="package underline">Package 2</a></th>
                    <th class="col-sm-2 text-center"><a href="#pack3" class="package underline">Package 3</a></th>
                    <th class="col-sm-2 text-center"><a href="#pack4" class="package underline">Package 4</a></th>
                </tr>
                </thead>
                <tbody>
                <tr class="r1">
                    <th><a href="#sec1" title="Banner Section" class="section underline">Section 1</a></th>
                    <td class="bullet"><i class="fa fa-check text-success  fa-lg"></i></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr class="r2">
                    <th><a href="#sec2" title="Top 10 Section" class="section underline">Section 2</a></th>
                    <td class="bullet"><i class="fa fa-check text-success  fa-lg"></i></td>
                    <td class="bullet"><i class="fa fa-check text-success  fa-lg"></i></td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr class="r1">
                    <th><a href="#sec3" title="Bottom Home Page Section" class="section underline">Section 3</a></th>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td class="bullet"><i class="fa fa-check text-success  fa-lg"></i></td>
                    <td>&nbsp;</td>
                </tr>
                <tr class="r2">
                    <th><a href="#sec4" title="Town Section" class="section underline">Section 4</a></th>
                    <td class="bullet"><i class="fa fa-check text-success  fa-lg"></i></td>
                    <td class="bullet"><i class="fa fa-check text-success  fa-lg"></i></td>
                    <td class="bullet"><i class="fa fa-check text-success  fa-lg"></i></td>
                    <td class="bullet"><i class="fa fa-check text-success  fa-lg"></i></td>
                </tr>
                </tbody>
                <tfoot>
                <tr class="prices-row">
                    <th>Monthly Price (&euro;)*</th>
                    <td class="price-value"><?= $p1 ?></td>
                    <td class="price-value"><?= $p2 ?></td>
                    <td class="price-value"><?= $p3 ?></td>
                    <td class="price-value"><?= $p4 ?></td>
                </tr>
                </tfoot>
            </table>
        </div>

        <div class="row">
            <div class="col-sm-5 col-xs-10">
                <div class="alert alert-info">
                    <p>
                        <b><i class="fa fa-info-circle fa-lg"></i> Notes:</b>
                    </p>
                    <p>

                        <i class="fa fa-chevron-right"></i> Minimum duration 12 months.<br>
                        <i class="fa fa-chevron-right"></i> Prices are subject to VAT.
                    </p>
                </div>
            </div>
        </div>


        <h2><span class="package"><?= $name ?>.com</span> Packages</h2>
        <h3><a name="pack1" class="package">Package 1</a></h3>
        <p class="pack">This is the package for the leading companies in Cyprus who are seeking the highest exposure
            possible. Package 1 gives a Banner advertisement (<a href="#sec1" class="section">Section 1</a>) in all pages of the portal,
            &quot;Featured Section&quot; upper line (<a href="#sec2" class="section">Section 2</a>) logo in the Homepage and a Logo in
            each Town Page (<a href="#sec4" class="section">Section 4</a>) that the company maintains offices.</p>
        <h3><a name="pack2" class="package">Package 2</a></h3>
        <p class="pack">This is the most popular Package again available to the leading companies within a specific
            industry. The company receives a &quot;Featured Section&quot; lower line (<a href="#sec2" class="section">Section 2</a>)
            Logo placement and a Logo in each Town Page (<a href="#sec4" class="section">Section 4</a>) that the company maintains
            offices.</p>
        <h3><a name="pack3" class="package">Package 3</a></h3>
        <p class="pack">This package is similar to Package 2, with the only difference that the Logo of the company
            appears lower in the Homepage, in <a href="#sec3" class="section">Section 3</a> instead of <a href="#sec2" class="section">Section 2</a>.
        </p>
        <h3><a name="pack4" class="package">Package 4</a></h3>
        <p class="pack">This is a low cost solution for smaller companies. The Logo of the company appears in the Town
            Page (<a href="#sec4" class="section">Section 4</a>).</p>
        <h2><span class="package"><?= $name ?>.com</span>  Advertising Sections</h2>

        <div class="row">
            <div class="col-md-25 col-sm-5 col-xs-10">
                <div class="box box-default box-solid box-section" data-mh="sections">
                    <div class="box-header with-border">
                        <b><a name="sec1"></a> Section 1</b>
                    </div>
                    <div class="box-image">
                        <img src="<?=$assets_path . 'section_1.jpg';?>" class="img-responsive">
                    </div>
                    <div class="box-body">
                        <p>
                            <strong>Section 1</strong> is dedicated to the Banners that appear on the right hand site the
                            portal. The banners have a much greater exposure than the Logos due to their size and appearance.
                            Banners are displayed in random order in <strong>all pages</strong> of the portal.
                        </p>
                    </div>
                </div>
            </div>
            <div class="col-md-25 col-sm-5 col-xs-10">
                <div class="box box-default box-solid box-section" data-mh="sections">
                    <div class="box-header with-border">
                        <b><a name="sec2"></a> Section 2</b>
                    </div>
                    <div class="box-image">
                        <img src="<?=$assets_path . 'section_2.jpg';?>" class="img-responsive">
                    </div>
                    <div class="box-body">
                        <p>
                            <strong>Section 2</strong> is the upper advertising section of the Homepage in each portal. The
                            company's Logo appears in the &quot;Featured Section&quot; box and enjoys a very large exposure with
                            a steady position within the box.
                        </p>
                    </div>
                </div>
            </div>
        
            <div class="col-md-25 col-sm-5 col-xs-10">
                <div class="box box-default box-solid box-section" data-mh="sections">
                    <div class="box-header with-border">
                        <b><a name="sec3"></a> Section 3</b>
                    </div>
                    <div class="box-image">
                        <img src="<?=$assets_path . 'section_3.jpg';?>" class="img-responsive">
                    </div>
                    <div class="box-body">
                        <p>
                            <strong>Section 3</strong> appears bellow Section 2. The Logos receive again a high exposure due to
                            their placement in the Homepage of each business portal along with the other leading companies of
                            the industry. The logos are randomly placed.
                        </p>
                    </div>
                </div>
            </div>
            <div class="col-md-25 col-sm-5 col-xs-10">
                <div class="box box-default box-solid box-section" data-mh="sections">
                    <div class="box-header with-border">
                        <b><a name="sec4"></a> Section 4</b>
                    </div>
                    <div class="box-image">
                        <img src="<?=$assets_path . 'section_4.jpg';?>" class="img-responsive">
                    </div>
                    <div class="box-body">
                        <p>
                            <strong>Section 4</strong> (Town Section) is mainly for the district and category separation of
                            companies. People would usually visit the Town Section to find businesses near their own location.
                            The logos are randomly placed.
                        </p>
                    </div>
                </div>
            </div>
        </div>
        <?php
    }
    else {
    ?>
    <p>For <?=$domain_title;?>.com pricing please contact us by <a href="mailto:info@cyprusnet.com">email</a> or phone at 77 77 77 74.</p>
    <?php
    }
    ?>
    <p id="footer">
    <a href="mailto:advertise@cyprusnet.com?subject=Advertising on <?=$domainname?>" class="btn btn-default"><i class="fa fa-envelope text-primary"></i> Contact Cyprus Network</a>
    </p>
</div>