<td class='toggleSelection'>
                  <input type='checkbox' value='<?php 
            echo $this->_tpl_vars['key'];
            ?>
' />
                </td>
                <td>
                    <a href='affiliate-edit.php?affiliateid=<?php 
            echo $this->_tpl_vars['key'];
            ?>
' class='inlineIcon iconWebsite'><?php 
            echo is_array($_tmp = $this->_tpl_vars['affiliate']['name']) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html');
            ?>
</a>
                    <?php 
            echo OA_Admin_Template::_function_ox_entity_id(array('type' => 'Website', 'id' => $this->_tpl_vars['key']), $this);
            ?>

                </td>
                <?php 
            if ($this->_tpl_vars['showAdDirect']) {
                ?>
                <td>
                    <?php 
                echo is_array($_tmp = @$this->_tpl_vars['affiliate']['adv_signup']) ? $this->_run_mod_handler('default', true, $_tmp, '&nbsp;') : smarty_modifier_default($_tmp, '&nbsp;');
                ?>

                </td>
                <?php 
            }
            ?>
</a>
                    <?php 
            } else {
                ?>
                      <span class='inlineIcon <?php 
                echo OA_Admin_Template::_function_ox_banner_icon(array('type' => $this->_tpl_vars['banner']['type'], 'active' => $this->_tpl_vars['banner']['active']), $this);
                ?>
'><?php 
                echo is_array($_tmp = $this->_tpl_vars['banner']['description']) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html');
                ?>
</span>
                    <?php 
            }
            ?>
                  <?php 
            echo OA_Admin_Template::_function_ox_entity_id(array('type' => 'Banner', 'id' => $this->_tpl_vars['bannerId']), $this);
            ?>

                </td>
                <td>
                    <?php 
            echo $this->_tpl_vars['banner']['preview'];
            ?>

                </td>
                <td class='alignRight verticalActions'>
                    <ul class='rowActions'>
                      <?php 
            if ($this->_tpl_vars['canACL']) {
                ?>
                        <li>
                     <span class='inlineIcon iconAdvertiserSystem'><?php 
                echo is_array($_tmp = $this->_tpl_vars['client']['clientname']) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html');
                ?>
</span>
                  <?php 
            } else {
                ?>
                    <a href='advertiser-edit.php?clientid=<?php 
                echo $this->_tpl_vars['clientId'];
                ?>
' class='inlineIcon iconAdvertiser'><?php 
                echo is_array($_tmp = $this->_tpl_vars['client']['clientname']) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html');
                ?>
</a>
                    <?php 
                echo OA_Admin_Template::_function_ox_entity_id(array('type' => 'Advertiser', 'id' => $this->_tpl_vars['clientId']), $this);
                ?>

                  <?php 
            }
            ?>
                </td>
                <td class='alignRight horizontalActions'>
                    <ul class='rowActions'>
                        <li>
                            <a href='campaign-edit.php?clientid=<?php 
            echo $this->_tpl_vars['clientId'];
            ?>
' class='inlineIcon <?php 
            if ($this->_tpl_vars['client']['type'] == $this->_tpl_vars['MARKET_TYPE']) {
                ?>
</a>
                    <?php 
            } else {
                ?>
                      <span class='inlineIcon <?php 
                echo OA_Admin_Template::_function_ox_zone_icon(array('delivery' => $this->_tpl_vars['zone']['delivery'], 'active' => $this->_tpl_vars['zone']['active'], 'warning' => $this->_tpl_vars['zone']['lowPriorityWarning']), $this);
                ?>
'><?php 
                echo is_array($_tmp = $this->_tpl_vars['zone']['zonename']) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html');
                ?>
</span>
                    <?php 
            }
            ?>
                  <?php 
            echo OA_Admin_Template::_function_ox_entity_id(array('type' => 'Zone', 'id' => $this->_tpl_vars['zoneId']), $this);
            ?>

                </td>
                <td>
                    <?php 
            echo OA_Admin_Template::_function_ox_zone_size(array('width' => $this->_tpl_vars['zone']['width'], 'height' => $this->_tpl_vars['zone']['height'], 'delivery' => $this->_tpl_vars['zone']['delivery']), $this);
            ?>

                </td>
                <td>
                    <?php 
            echo is_array($_tmp = is_array($_tmp = $this->_tpl_vars['zone']['description']) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')) ? $this->_run_mod_handler('default', true, $_tmp, '&nbsp;') : smarty_modifier_default($_tmp, '&nbsp;');
            ?>

                </td>
                        ?>
'><?php 
                        echo is_array($_tmp = $this->_tpl_vars['campaign']['campaignname']) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html');
                        ?>
</a>
                            <?php 
                    }
                    ?>
                        <?php 
                }
                ?>
                    <?php 
            }
            ?>
                    <?php 
            echo OA_Admin_Template::_function_ox_entity_id(array('type' => 'Campaign', 'id' => $this->_tpl_vars['campaignId']), $this);
            ?>

                </td>
                <td>
                    <?php 
            echo OA_Admin_Template::_function_ox_campaign_status(array('clientid' => $this->_tpl_vars['clientId'], 'campaignid' => $this->_tpl_vars['campaignId'], 'status' => $this->_tpl_vars['campaign']['status']), $this);
            ?>

                </td>
                <td>
                    <?php 
            echo OA_Admin_Template::_function_ox_campaign_type(array('type' => $this->_tpl_vars['campaign']['type']), $this);
            ?>

                </td>