ACC SHELL
<?php
$aNav = array();
if(isset($nav))
{
foreach($nav as $nUrl => $nTitle)
$aNav[] = "<a href=\"admin.php?$nUrl\">$nTitle</a>";
}
if(!isset($new)) $new=array();
?>
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'."\n"; ?>
<!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"><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Admin</title>
<link rel="stylesheet" type="text/css" href="css/admin.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="js/admin.js"></script>
<script type="text/javascript">
tinyMCE.init({
language: "cs",
mode : "exact",
elements : "text",
theme : "advanced",
plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount",
height : "300",
theme_advanced_buttons1 : "cut,copy,paste,pastetext,pasteword,|,undo,redo,|,link,unlink,insertfile,image,|,cleanup,code,|,tablecontrols",
theme_advanced_buttons2 : "formatselect,|,bold,italic,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,outdent,indent",
theme_advanced_buttons3 : "",
theme_advanced_blockformats : "Nadpis 1=h2,Nadpis 2=h3,Nadpis 3=h4,Text=p",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
theme_advanced_styles : 'Galerie=lightbox',
extended_valid_elements : "iframe[src|width|height|frameborder]",
entity_encoding : "raw",
convert_urls : false,
external_image_list_url : "<?php echo "tiny_mce/upload.php?pic&" . mktime(); ?>",
external_link_list_url : "<?php echo "tiny_mce/upload.php?" . mktime(); ?>"
});
</script>
</head>
<body>
<!-- MENU -->
<div id="menu">
<?php include_once 'menu.inc.php'; ?>
<ul>
<?php foreach($menu as $mUrl => $mTitle): ?>
<li<?php echo (isset($_GET[$mUrl]) || (isset($_GET['text']) && "text=$_GET[text]" === $mUrl)) ? ' class="active"' : ''; ?>><a href="<?php echo "admin.php?$mUrl"; ?>"><?php echo $mTitle; ?></a></li>
<?php endforeach; ?>
<li class="right"><a href="admin.php?odhlasit">Odhlásit</a></li>
</ul>
<div class="clear"></div>
</div>
<!-- /MENU -->
<!-- NAV -->
<div id="nav">
<small><?php echo implode(' • ', $aNav); ?></small>
<?php foreach($new as $nUrl => $nTitle): ?><a href="<?php echo "admin.php?$nUrl"; ?>" class="new"><span class="add"></span> <?php echo $nTitle; ?></a><?php endforeach; ?>
<div class="clear"></div>
</div>
<!-- /NAV -->
<!-- CONTENT -->
<div id="content">
<div id="full-width">
<?php if( isset($errors) ): ?>
<script type="text/javascript">
<?php foreach($errors as $error): ?>
alert('<?php echo $error; ?>');
<?php endforeach; ?>
</script>
<?php endif; ?>
ACC SHELL 2018