2019-10-26 12:35:06 +00:00
|
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Project:
|
|
|
|
|
* Contenido Content Management System
|
|
|
|
|
*
|
|
|
|
|
* Description:
|
|
|
|
|
* Custom subnavigation for the newsletters
|
|
|
|
|
*
|
|
|
|
|
* Requirements:
|
|
|
|
|
* @con_php_req 5.0
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @package Contenido Backend includes
|
|
|
|
|
* @version 1.0.1
|
|
|
|
|
* @author Bj<EFBFBD>rn Behrens (HerrB)
|
|
|
|
|
* @copyright four for business AG <www.4fb.de>
|
|
|
|
|
* @license http://www.contenido.org/license/LIZENZ.txt
|
|
|
|
|
* @link http://www.4fb.de
|
|
|
|
|
* @link http://www.contenido.org
|
|
|
|
|
* @since file available since contenido release <= 4.6
|
|
|
|
|
*
|
|
|
|
|
* {@internal
|
|
|
|
|
* created 2007-01-01, Bj<EFBFBD>rn Behrens (HerrB)
|
|
|
|
|
* modified 2008-06-27, Dominik Ziegler, add security fix
|
|
|
|
|
* modified 2010-05-20, Murat Purc, removed request check during processing ticket [#CON-307]
|
|
|
|
|
*
|
|
|
|
|
* $Id: include.newsletter_subnav.php 128 2019-07-03 11:58:28Z oldperl $:
|
|
|
|
|
* }}
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
if (!defined('CON_FRAMEWORK')) {
|
|
|
|
|
die('Illegal call');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($_GET['idnewsletter']))
|
|
|
|
|
{
|
|
|
|
|
# Set template data
|
2021-04-26 18:28:43 +00:00
|
|
|
|
$sCaption = i18n("Edit", "cl-newsletter");
|
2019-10-26 12:35:06 +00:00
|
|
|
|
|
|
|
|
|
$tpl->set("d", "ID", 'c_'.$tpl->dyn_cnt);
|
|
|
|
|
$tpl->set("d", "CLASS", '');
|
|
|
|
|
$tpl->set("d", "OPTIONS", '');
|
|
|
|
|
$tpl->set("d", "CAPTION", '<a class="white" onclick="sub.clicked(this)" target="right_bottom" href="'.$sess->url("main.php?area=news&frame=4&idnewsletter=$idnewsletter").'">'.$sCaption.'</a>');
|
|
|
|
|
$tpl->next();
|
|
|
|
|
|
|
|
|
|
# Set template data
|
2021-04-26 18:28:43 +00:00
|
|
|
|
$sCaption = i18n("Edit Message", "cl-newsletter");
|
2019-10-26 12:35:06 +00:00
|
|
|
|
|
|
|
|
|
$tpl->set("d", "ID", 'c_'.$tpl->dyn_cnt);
|
|
|
|
|
$tpl->set("d", "CLASS", '');
|
|
|
|
|
$tpl->set("d", "OPTIONS", '');
|
|
|
|
|
$tpl->set("d", "CAPTION", '<a class="white" onclick="sub.clicked(this)" target="right_bottom" href="'.$sess->url("main.php?area=news_edit&frame=4&idnewsletter=$idnewsletter").'">'.$sCaption.'</a>');
|
|
|
|
|
$tpl->next();
|
|
|
|
|
|
|
|
|
|
$tpl->set('s', 'COLSPAN', ($tpl->dyn_cnt * 2) + 2);
|
|
|
|
|
|
|
|
|
|
# Generate the third navigation layer
|
|
|
|
|
$tpl->generate($cfg["path"]["templates"] . $cfg["templates"]["subnav"]);
|
|
|
|
|
} else {
|
|
|
|
|
include ($cfg["path"]["contenido"].$cfg["path"]["templates"] . $cfg["templates"]["right_top_blank"]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|