<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta name="robots" content="index,follow" />
    <title><?php
        echo $this->a_core->getSiteName();
    ?></title>
    <link rel="shortcut icon" href="favicon.ico" />
    <link rel="stylesheet" media="all" type="text/css" href="../templates/pzone/gray/css/site.css" />
    <link rel="stylesheet" media="all" type="text/css" href="../templates/pzone/gray/css/other.css" />
    <link rel="stylesheet" media="all" type="text/css" href="../templates/pzone/gray/css/affiliate.css" />
    <link rel="stylesheet" media="all" type="text/css" href="../templates/affiliate/default/css/tooltips.css" />

    <script type="text/javascript" src="<?php echo $GLOBALS['WEB_INCLUDE_PATH'].$_SESSION[SESSION_PREFIX.'javascript']; ?>"></script>
    <script type="text/javascript">
    // function for checking or unchecking all items
    var checkedAllItems = false;
    // preload images
    //...
    </script>
</head>

<body>

<?php initQuickHelp(); ?>

<div id="headMain">
    <div id="logo">
        <a href="index.php"><img src="<?php echo $this->a_core->getSiteLogo4Affiliate(); ?>" title="" alt=""></a>
    </div>

    <div class="headRight fr">
        <div id="tools">
            <?php echo  $this->a_this->fetchTemplate('logged_field'); ?>
        </div>

        <div class="headBottom clear fr" style="width: 530px;">
        <div id="headNav">
            <ul style="display: block;">
            <li><a href="../index.php"><?php echo L_G_HOME; ?></a></li>
            <?php
                $s = '<li><a href="../index.php?md=Affiliate_PZone_Views_Post&id=%s">%s</a></li>';
                $rs = $this->a_core->getShow2Nav_Articles();
                if($rs)
                foreach($rs as $row) {
                    echo sprintf($s,$row['ID'],$row['title']);
                }

                $s = '<li><a href="../index.php?md=Affiliate_PZone_Views_Post&cateid=%s">%s</a></li>';
                $rs = $this->a_core->getShow2Nav_Cates();
                if($rs)
                foreach($rs as $row) {
                    echo sprintf($s,$row['ID'],$row['catename']);
                }

                $s = '<li><a href="%s" target="_blank">%s</a></li>';
                $rs = $this->a_core->getShow2Nav_Links();
                if($rs)
                foreach($rs as $row) {
                    echo sprintf($s,$row['siteurl'],$row['sitetitle']);
                }
            ?>
            <div class="clear"></div>
            </ul>
        </div>
        </div><!--end.headBottom-->
    </div><!--end.headRight-->
</div><!--end#headMain-->

<div style="clear: both;"></div>
<div id="headLine"></div>

