1
0
Fork 0

recoding to use as plugin with CL

Dieser Commit ist enthalten in:
o.pinke 2020-08-20 18:30:16 +02:00
Ursprung 244621b05f
Commit e8b0c80921
22 geänderte Dateien mit 2187 neuen und 2341 gelöschten Zeilen

Datei anzeigen

@ -1,13 +1,13 @@
<div class="grey">
{NEW}
{NEW}
</div>
<div class="left_list">
{STEPS}
{STEPS}
</div>
<div class="right_list">
{EDITSTEP}
{EDITSTEP}
</div>
<div class="right_list">
i18n('Warning: Changes will reset active Workflows')
i18n('Warning: Changes will reset active Workflows', 'cl-workflow')
</div>

Datei anzeigen

@ -1,34 +1,34 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE HTML>
<html>
<head>
<title>{TITLE}</title>
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<link rel="stylesheet" type="text/css" href="styles/contenido.css" />
<script type="text/javascript" src="scripts/rowMark.js"></script>
<script type="text/javascript" src="scripts/general.js"></script>
<script type="text/javascript" src="scripts/messageBox.js.php?{SESSNAME}={SESSID}"></script>
<script type="text/javascript" src="scripts/articleObject.js.php?{SESSNAME}={SESSID}"></script>
<script type="text/javascript">
<!--
<head>
<meta charset="utf-8">
<title>{TITLE}</title>
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<link rel="stylesheet" type="text/css" href="styles/contenido.css" />
<script type="text/javascript" src="scripts/rowMark.js"></script>
<script type="text/javascript" src="scripts/general.js"></script>
<script type="text/javascript" src="scripts/messageBox.js.php?{SESSNAME}={SESSID}"></script>
<script type="text/javascript" src="scripts/articleObject.js.php?{SESSNAME}={SESSID}"></script>
<script type="text/javascript">
<!--
/* Contenido Session-ID */
var sid = "{SESSID}";
/* New messageBox instance */
box = new messageBox("", "", "", 0, 0);
/* Function for deleting articles */
function deleteArticle(idart, idcat) {
var url = "main.php?area=con&action=con_deleteart&frame=4&idcat="+idcat+"&idart="+idart+"&{SESSNAME}="+sid;
window.location.href = url;
}
function setUsershow() {
document.forms['showusers'].setAttribute('action', document.forms['showusers'].getAttribute('action')+'&usershow='+document.showusers.usershow.value);
var sid = "{SESSID}";
/* New messageBox instance */
box = new messageBox("", "", "", 0, 0);
/* Function for deleting articles */
function deleteArticle(idart, idcat) {
var url = "main.php?area=con&action=con_deleteart&frame=4&idcat=" + idcat + "&idart=" + idart + "&{SESSNAME}=" + sid;
window.location.href = url;
}
//-->
function setUsershow() {
document.forms['showusers'].setAttribute('action', document.forms['showusers'].getAttribute('action') + '&usershow=' + document.showusers.usershow.value);
}
//-->
</script>
</head>
@ -39,7 +39,7 @@
<div style="clear:both;"></div>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="2" class="bordered" style="display:{DISPLAY}">
<tr>
@ -52,7 +52,7 @@
<td width="1%" class="headerbordercell" nowrap="nowrap">{TH_TEMPLATE}</td>
<td width="1%" class="headerbordercell" nowrap="nowrap">{TH_ACTIONS}</td>
</tr>
<!-- BEGIN:BLOCK -->
<tr id="{ROWID}" class="text_medium" style="{BGCOLOR}" onmouseover="artRow.over(this)" onmouseout="artRow.out(this)" onclick="artRow.click(this)">
<td nowrap="nowrap" class="bordercell">{START}</td>
@ -65,91 +65,93 @@
<td nowrap="nowrap" class="bordercell">{ACTIONS}</td>
</tr>
<!-- END:BLOCK -->
{NO_ARTICLES_ROW}
</table>
<script type="text/javascript">
<!--
rcount = 0;
/* Update frame right top for sub navigation */
{SUBNAVI}
rcount = 0;
/* Create a reference to the Article Object in frame 'right_top' */
artObj = parent.parent.frames["left"].frames["left_top"].artObj;
/* Reset article object
properties. e.g. Some article was edited and we are now back in the
overview mask. There is now no marked article, the articleObject data
should be reset. */
if ( artObj ) {
artObj.reset();
artObj.enable();
artObj.setHrefOverview(document.location.href);
}
/* Timeout to call the function afer 250ms */
window.setTimeout("createReference()", 250);
/* Javascript-Error work-around... try to create the reference after
250ms again... and hope it works.. */
function createReference() {
if( !artObj ) {
artObj=parent.parent.frames["left"].frames["left_top"].artObj;
if( artObj ) {
artObj.reset();
artObj.enable();
artObj.setHrefOverview(document.location.href);
}
}
if( !artObj ) {
return false;
}
}
/* Extract data from the article grid and send
them to the articleObject Instance. The data is stored in the
attribute 'id' of the row object. */
function conArtOverviewExtractData( obj ) {
if( !artObj ) {
var rval=createReference();
if (rval== false) {
return false;
}
}
var datastring=obj.id;
var data=datastring.split( "-" );
if ( data.length== 6 ) {
/* Send data to articleObject instance:
0: idart
1: idartlang
2: idcat
3: idcatlang
5: idcatart */
artObj.setProperties(data[0], data[1], data[2], data[3], data[4], data[5]);
}
return true;
}
/* Mark the first submenu item i.e. 'Overview' */
if( parent.parent.frames['right'].frames['right_top'].document.getElementById('c_0') ) {
menuItem=parent.parent.frames['right'].frames['right_top'].document.getElementById('c_0');
parent.parent.frames['right'].frames['right_top'].sub.click(menuItem);
}
function initTheOne() {
var theOne = document.getElementById("{FIRST_ROWID}");
artRow.reset();
artRow.over( theOne );
artRow.click( theOne )
/* Update frame right top for sub navigation */
{
SUBNAVI
}
/* Create a reference to the Article Object in frame 'right_top' */
artObj = parent.parent.frames["left"].frames["left_top"].artObj;
/* Reset article object
properties. e.g. Some article was edited and we are now back in the
overview mask. There is now no marked article, the articleObject data
should be reset. */
if (artObj) {
artObj.reset();
artObj.enable();
artObj.setHrefOverview(document.location.href);
}
/* Timeout to call the function afer 250ms */
window.setTimeout("createReference()", 250);
/* Javascript-Error work-around... try to create the reference after
250ms again... and hope it works.. */
function createReference() {
if (!artObj) {
artObj = parent.parent.frames["left"].frames["left_top"].artObj;
if (artObj) {
artObj.reset();
artObj.enable();
artObj.setHrefOverview(document.location.href);
}
}
if (!artObj) {
return false;
}
}
/* Extract data from the article grid and send
them to the articleObject Instance. The data is stored in the
attribute 'id' of the row object. */
function conArtOverviewExtractData(obj) {
if (!artObj) {
var rval = createReference();
if (rval == false) {
return false;
}
}
var datastring = obj.id;
var data = datastring.split("-");
if (data.length == 6) {
/* Send data to articleObject instance:
0: idart
1: idartlang
2: idcat
3: idcatlang
5: idcatart */
artObj.setProperties(data[0], data[1], data[2], data[3], data[4], data[5]);
}
return true;
}
/* Mark the first submenu item i.e. 'Overview' */
if (parent.parent.frames['right'].frames['right_top'].document.getElementById('c_0')) {
menuItem = parent.parent.frames['right'].frames['right_top'].document.getElementById('c_0');
parent.parent.frames['right'].frames['right_top'].sub.click(menuItem);
}
function initTheOne() {
var theOne = document.getElementById("{FIRST_ROWID}");
artRow.reset();
artRow.over(theOne);
artRow.click(theOne)
}
initTheOne();
//-->
</script>