Revision 607 (by ahitrov, 2016/10/28 20:56:45) Order by section switch on-off.
Administrative panel content maximizing.

<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
	body {
		background-color: #FFFFFF;
		margin: 0px;
		font-family: Tahoma, Arial, sans-serif;
	}
	form {
		margin:  0px;
		padding: 0px;
	}
	input, select, textarea {
		font-family: Tahoma, Arial, sans-serif;
		font-size:9pt;
	}
	a {
		color:#0000ee;
	}
	a:visited.v {
		color:#0000ee;
	}

	fieldset {padding:6px;margin-bottom:10px;border:2px solid #8093B0;}
	fieldset legend {font-size:8pt;font-weight:bold;font-family:Tahoma;padding:3px 6px 3px 6px;margin-bottom:6px;color:#ffffff;background-color:#8093B0;}

	table { font-size:13px; }
	input { font-size:12px; }
	
	.tatop {font-size:11px;font-family:Tahoma;color:#ffffff;}
	.tatop a {color:#ffffff;}
	.npath {font-size:11px;font-family:Tahoma;padding:8px;}
	
	.textnorm { font-size:12px; font-family:Tahoma; }
	.input_btn {background-color:#930300;color:#FFFFFF;height:2.4em;}
	
	table.tlistdocs { margin-top:10px; margin-bottom:10px; border-right:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9; }
	table.tlistdocs td, table.tlistdocs th { border:1px solid #d9d9d9; border-right:0px; border-bottom:0px; }
	table.tlistdocs td {font-size:12px;font-family:Arial;}
	table.tlistdocs table td {border:0px;}
	
	table.tform th, table.tform td {
		font-size:   11px;
		font-family: Tahoma;
		text-align:  left;
	}
	
	th {font-size:11px;font-family:Tahoma;text-align:left;}
	
	h5, .hdr5 {font-size:11px;font-family:Tahoma;font-weight:bold;padding-top:10px;padding-bottom:5px;}
	
	.rem { color:gray; font-size:90%; padding:4px }
	.err { color:red; font-size:90%; padding:4px }
	.hiddensect { color:#909090; }
	.hiddensect a { color:#909090; }
	
	.btn {font-size:9pt;}

	.bb {
		border: solid 1px #000000;
	}
	.gb {
		background-color: #D8D8D8;
	}
	.undo {
		font-family: Tahoma;
		font-size: 9pt;
		background-color: #FFD8D8;
	}
	.link_string { font: 12px Tahoma; padding:5px 10px; border-bottom:1px solid gray; }
	.link_string p { margin:0; padding:0; }

	.mm_act { background:#d0d0d0; border-top:1px solid gray; border-right:1px solid gray; text-decoration:none; }
	
</style>
<title>Редакторский интерфейс<% (length($title) > 0) ? " | $title" : "" %></title>
<link rel="stylesheet" type="text/css" href="/contenido/i/js/jquery-ui-1.10.3.custom/css/flick/jquery-ui-1.10.3.custom.css" media="all" />
<script language="javascript" type="text/javascript" src="/contenido/i/js/jquery-1.9.1.min.js"></script>
<% $m->comp_exists('/contenido/components/custom_head.msn') ? $m->comp('/contenido/components/custom_head.msn') : '' %>
<script language="javascript" type="text/javascript" src="/contenido/i/js/links.js"></script>
<script language="javascript" type="text/javascript" src="/contenido/i/js/tinymce-3.5.11/jquery.tinymce.js"></script>
<script language="javascript" type="text/javascript" src="/contenido/i/js/jquery-ui-1.10.3.custom/jquery-ui-1.10.3.custom.min.js"></script>
% if ( @plugins ) {
%	foreach my $plugin ( @plugins ) {
%		my ($include_dir, $include_comp);
%		if ( $plugin eq $state->project ) {
%			$include_dir = $state->{mason_comp}.'/contenido/'.$plugin.'/components/';
%		} else {
%			$include_dir = $state->{plug_src}.'/'.$plugin.'/comps/contenido/'.$plugin.'/components/';
%		}
%		$include_comp = '/contenido/'.$plugin.'/components/title_inc.msn';
%		if ( -e $include_dir && $m->comp_exists($include_comp) ) {
<& $include_comp &>
%		}
%	}
% }
<script language="javascript" type="text/javascript">
<!--
var WYSIWYGControls = new Array();
var sDocumentClass;
var nDocumentID;
$(document).ready(function() {
	$('textarea.tinymce').tinymce({
			// Location of TinyMCE script
			script_url : '/contenido/i/js/tinymce-3.5.11/tiny_mce.js',

			// General options
			theme : "advanced",
			plugins : "style,layer,table,advhr,advimage,advlink,inlinepopups,preview,media,contextmenu,paste,noneditable,visualchars,nonbreaking,template,advlist",
			// TinyMCE 4.x
			//theme : "modern",
			//plugins : "style,layer,table,hr,image,link,code,textcolor,preview,media,contextmenu,paste,noneditable,visualchars,nonbreaking,template,advlist",

			// Theme options
			theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect,|,forecolor,backcolor,|,undo,redo,|,preview,help,code",
			theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,outdent,indent,blockquote,|,link,unlink,anchor,image,|,tablecontrols",
			theme_advanced_buttons3 : "cleanup,removeformat,visualaid,|,sub,sup,|,charmap,media,hr,advhr,|,insertlayer,moveforward,movebackward,absolute,|,styleprops,|,visualchars,nonbreaking",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar_location : "bottom",
			theme_advanced_resizing : true,

			convert_urls : false,

			extended_valid_elements : "iframe[src|width|height|name|align|noresize|scrolling|frameBorder|marginWidth|marginHeight],form[action|method|target|enctype|name|id|onSubmit]",

			paste_create_paragraphs : false,
			paste_create_linebreaks : false,
			paste_auto_cleanup_on_paste : true,
			paste_convert_middot_lists : false,

			// Example content CSS (should be your site CSS)
			//content_css : "css/content.css",

			// Drop lists for link/image/media/template dialogs
			//template_external_list_url : "lists/template_list.js",
			//external_link_list_url : "lists/link_list.js",
			//external_image_list_url : "lists/image_list.js",
			//media_external_list_url : "lists/media_list.js"
			external_image_list_url : "/contenido/image_list.js?class=" + sDocumentClass + "&id=" + nDocumentID

	});
});
function getCookie(name) {
    var matches = document.cookie.match(new RegExp(
	"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
    ));
    return matches ? decodeURIComponent(matches[1]) : undefined;
}
function setCookie(name, value, options) {
    options = options || {};

    var expires = options.expires;

    if (typeof expires == "number" && expires) {
	var d = new Date();
	d.setTime(d.getTime() + expires * 1000);
	expires = options.expires = d;
    }
    if (expires && expires.toUTCString) {
	options.expires = expires.toUTCString();
    }

    value = encodeURIComponent(value);

    var updatedCookie = name + "=" + value;

    for (var propName in options) {
	updatedCookie += "; " + propName;
	var propValue = options[propName];
	if (propValue !== true) {
		updatedCookie += "=" + propValue;
	}
    }

    document.cookie = updatedCookie;
}
//-->
</script>
</head>
<body>

<%args>

	$style => undef
	$title => undef

</%args>
<%init>

	my $pn = $state->project_name();
	my ($pn_name, $pn_domen) = split(/\./, $pn);

	my @plugins = ($state->project, split(/\s+/, $state->plugins));

</%init>