1. Teil der Wiederherstellung der Editoren-Funktionalität (Sortables, Draggables und Bild-Behandlungen fehlen)

This commit is contained in:
2016-09-12 22:28:39 +00:00
parent 4328a19cab
commit dd2d342013
406 changed files with 15843 additions and 0 deletions

30
templates/headline.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
/**
* Created by CS medien- & kommunikationssysteme.
* @author Christian Steinle
* @date 09.09.2016
*
* @copyright CS medien- & kommunikationssysteme (http://www.steinle-computer.de)
*/
header('Access-Control-Allow-Origin: *');
$includeFile = dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php';
if (file_exists(dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php'))
{
$includeFile = dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php';
}
include_once($includeFile);
?>
<form id="editor_form" action="" method="post">
<input type="hidden" name="userId" id="userId" value=""/>
<input type="hidden" name="prefix" id="prefix" value=""/>
<input type="hidden" name="dataSet" id="dataSet" value=""/>
<input type="hidden" name="request" id="request" value="updateData"/>
<input type="text" name="content" id="content" value="" class="headline"/>
<div class="bottom">
<input type="button" class="submitButton formSubmit" value="<?php echo $lang['button']['save']; ?>">
</div>
</form>

12
templates/keyvisual.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
/**
* Created by CS medien- & kommunikationssysteme.
* @author Christian Steinle
* @date 09.09.2016
*
* @copyright CS medien- & kommunikationssysteme (http://www.steinle-computer.de)
*/
header('Access-Control-Allow-Origin: *');
?>
<div>Keyvisual</div>

View File

@@ -0,0 +1,96 @@
<?php
/**
* Created by CS medien- & kommunikationssysteme.
* @author Christian Steinle
* @date 09.09.2016
*
* @copyright CS medien- & kommunikationssysteme (http://www.steinle-computer.de)
*/
header('Access-Control-Allow-Origin: *');
$includeFile = dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php';
if (file_exists(dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php'))
{
$includeFile = dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php';
}
include_once($includeFile);
?>
<form id="editor_form" action="" method="post">
<input type="hidden" name="userId" id="userId" value=""/>
<input type="hidden" name="prefix" id="prefix" value=""/>
<input type="hidden" name="dataSet" id="dataSet" value=""/>
<input type="hidden" name="siteId" id="siteId" value=""/>
<input type="hidden" name="request" id="request" value="updateData"/>
<input type="hidden" name="spieldauer" value="regular"/>
<div class="editor_slider">
<div class="inner">
<label for="headline"><?php echo $lang['spielbericht']['headline']; ?></label>
<input type="text" name="headline" id="headline" value=""/><br class="fix"/>
<label for="datum"><?php echo $lang['spielbericht']['date']; ?></label>
<input type="date" name="datum" id="datum" value=""/><br/>
<label for="teamname"><?php echo $lang['spielbericht']['team']; ?></label>
<select name="teamname" id="teamname"></select><br/>
<label for="spieltyp"><?php echo $lang['spielbericht']['typ']; ?></label>
<select name="spieltyp" id="spieltyp"></select><br/>
<label for="verschoben"><?php echo $lang['spielbericht']['delayed']; ?></label>
<input type="date" name="verschoben" id="verschoben" value=""/><br/>
<label for="spieldauer"><?php echo $lang['spielbericht']['dauer']; ?></label>
<select name="spieldauer" id="spieldauer"></select><br/>
<label for="gegner"><?php echo $lang['spielbericht']['gegner']; ?></label>
<input type="text" name="gegner" id="gegner" value=""/><br/>
<label for="heimspiel"><?php echo $lang['spielbericht']['ort']; ?></label>
<input type="radio" name="heimspiel" id="heimspiel_Y" value="Y"/><label for="heimspiel_Y"><?php echo $lang['spielbericht']['heim']; ?></label><input type="radio" name="heimspiel" id="heimspiel_N" value="N"/><?php echo $lang['spielbericht']['auswaerts']; ?><br/>
<label><?php echo $lang['spielbericht']['halbzeit']; ?></label>
<input type="text" class="tiny" name="heimtoreHalb" id="heimtoreHalb" value=""/><label class="tiny">&nbsp;:&nbsp;</label><input type="text" class="tiny" name="gasttoreHalb" id="gasttoreHalb" value=""/><br/>
<label><?php echo $lang['spielbericht']['ende']; ?></label>
<input type="text" class="tiny" name="heimtoreEnd" id="heimtoreEnd" value=""/><label class="tiny">&nbsp;:&nbsp;</label><input type="text" class="tiny" name="gasttoreEnd" id="gasttoreEnd" value=""/><br/>
<label for="spieler"><?php echo $lang['spielbericht']['spieler']; ?></label>
<textarea name="spieler" id="spieler"></textarea><br/>
<label for="tore"><?php echo $lang['spielbericht']['tore']; ?></label>
<textarea name="tore" id="tore"></textarea><br/>
<label for="besonderes"><?php echo $lang['spielbericht']['besonderes']; ?></label>
<textarea name="besonderes" id="besonderes"></textarea><br/>
<label for="vorschau"><?php echo $lang['spielbericht']['vorschau']; ?></label>
<textarea name="vorschau" id="vorschau"></textarea><br/>
<div class="bottom">
<input type="button" class="submitButton formNext" value="<?php echo $lang['button']['next']; ?>">
<input type="button" class="submitButton formCancel" value="<?php echo $lang['button']['cancel']; ?>">
</div>
</div>
<div class="inner">
<textarea class="ckeditor" name="text" id="text"></textarea>
<div class="bottom">
<input type="button" class="submitButton formSubmit" value="<?php echo $lang['button']['save']; ?>">
<input type="button" class="submitButton formPrev" value="<?php echo $lang['button']['prev']; ?>">
</div>
</div>
</div>
<script>
initEditor();
function initEditor() {
if (editor.contentData === null) {
window.setTimeout(initEditor, 50);
return false;
}
CKEDITOR.replace('text', {
enterMode: CKEDITOR.ENTER_P,
extraPlugins: 'divarea',
height: '500px',
language: '<?php echo $_POST['lang']; ?>',
toolbarGroups: [
{name: 'clipboard', groups: ['clipboard', 'undo']},
{name: 'editing', groups: ['find', 'selection', 'spellchecker']},
{name: 'basicstyles', groups: ['basicstyles', 'cleanup']},
{name: 'paragraph', groups: ['list']},
{name: 'links'},
{name: 'about'}
]
});
}
</script>
</form>

126
templates/struktur.php Normal file
View File

@@ -0,0 +1,126 @@
<?php
/**
* Created by CS medien- & kommunikationssysteme.
* @author Christian Steinle
* @date 09.09.2016
*
* @copyright CS medien- & kommunikationssysteme (http://www.steinle-computer.de)
*/
header('Access-Control-Allow-Origin: *');
$includeFile = dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php';
if (file_exists(dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php'))
{
$includeFile = dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php';
}
include_once($includeFile);
?>
<form id="editor_form" action="" method="post">
<input type="hidden" name="userId" id="userId" value=""/>
<input type="hidden" name="prefix" id="prefix" value=""/>
<input type="hidden" name="siteId" id="siteId" value=""/>
<input type="hidden" name="dataSet" id="dataSet" value=""/>
<input type="hidden" name="navStart" id="navStart" value=""/>
<input type="hidden" name="navId" id="navId" value=""/>
<div id="struktur"></div>
<div id="navPoint" class="box">
<p class="headline"><b><?php echo $lang['struktur']['editing']; ?></b></p>
<p id="breadCrumb"></p>
<div id="showAction">
</div>
</div>
</form>
<div id="actionTemplates" class="hidden">
<div class="actionChooser">
<span data-show="Rename" class="submitButton" title="<?php echo $lang['struktur']['renameHelper']; ?>"><?php echo $lang['struktur']['rename']; ?></span><br class="fix"/>
<span data-show="Activate" class="submitButton" title="<?php echo $lang['struktur']['activateHelper']; ?>"><?php echo $lang['struktur']['activate']; ?></span><br class="fix"/>
<span data-show="Deactivate" class="submitButton" title="<?php echo $lang['struktur']['deactivateHelper']; ?>"><?php echo $lang['struktur']['deactivate']; ?></span><br class="fix"/>
<span data-show="Sort" class="submitButton" title="<?php echo $lang['struktur']['sortHelper']; ?>"><?php echo $lang['struktur']['sort']; ?></span><br class="fix"/>
<span data-show="Move" class="submitButton" title="<?php echo $lang['struktur']['moveHelper']; ?>"><?php echo $lang['struktur']['move']; ?></span><br class="fix"/>
<span data-show="Submenu" class="submitButton" title="<?php echo $lang['struktur']['submenuHelper']; ?>"><?php echo $lang['struktur']['submenu']; ?></span><br class="fix"/>
<span data-show="Menu" class="submitButton" title="<?php echo $lang['struktur']['menuHelper']; ?>"><?php echo $lang['struktur']['menu']; ?></span><br class="fix"/>
</div>
<div class="actionRename">
<input type="hidden" name="formAction" value="renameNavPoint"/>
<input type="hidden" name="request" value="updateData"/>
<label for="navName"><?php echo $lang['struktur']['navNameRename']; ?></label><input type="text" name="navName" id="navName" value=""/>
<div id="bottom">
<input type="button" class="submitButton formSubmit" value="<?php echo $lang['button']['save']; ?>">
<input data-show="Chooser" type="button" class="submitButton" value="<?php echo $lang['button']['cancel']; ?>"/>
</div>
</div>
<div class="actionActivate">
<input type="hidden" name="formAction" value="updateActive"/>
<input type="hidden" name="request" value="updateData"/>
<input type="hidden" name="navActive" value="Y"/>
<p><?php echo $lang['struktur']['navNameEnable']; ?></p>
<input type="text" name="navName" id="navName" value="" disabled="disabled"/>
<div id="bottom">
<input type="button" class="submitButton formSubmit" value="<?php echo $lang['button']['save']; ?>">
<input data-show="Chooser" type="button" class="submitButton" value="<?php echo $lang['button']['cancel']; ?>"/>
</div>
</div>
<div class="actionDeactivate">
<input type="hidden" name="formAction" value="updateActive"/>
<input type="hidden" name="request" value="updateData"/>
<input type="hidden" name="navActive" value="N"/>
<p><?php echo $lang['struktur']['navNameDisable']; ?></p>
<input type="text" name="navName" id="navName" value="" disabled="disabled"/>
<div id="bottom">
<input type="button" class="submitButton formSubmit" value="<?php echo $lang['button']['save']; ?>">
<input data-show="Chooser" type="button" class="submitButton" value="<?php echo $lang['button']['cancel']; ?>"/>
</div>
</div>
<div class="actionSort">
Die Sortierung muss noch implementiert werden
<div id="bottom">
<input data-show="Chooser" type="button" class="submitButton" value="<?php echo $lang['button']['cancel']; ?>"/>
</div>
</div>
<div class="actionMove">
<input type="hidden" name="formAction" value="moveNavPoint"/>
<input type="hidden" name="request" value="updateData"/>
<p><?php echo $lang['struktur']['navNameMove'][0]; ?></p>
<input type="text" name="navName" id="navName" value="" disabled="disabled"/><br class="fix"/>
<p><?php echo $lang['struktur']['navNameMove'][1]; ?></p>
<input type="text" name="parentNavName" id="parentNavName" value="" disabled="disabled"/><br class="fix"/>
<div id="otherMain_box">
</div>
<div id="bottom">
<input type="button" class="submitButton formSubmit" value="<?php echo $lang['button']['save']; ?>">
<input data-show="Chooser" type="button" class="submitButton" value="<?php echo $lang['button']['cancel']; ?>"/>
</div>
</div>
<div class="actionSubmenu">
<input type="hidden" name="formAction" value="addSubNav"/>
<input type="hidden" name="request" value="insertData"/>
<p><?php echo $lang['struktur']['newSubMenu']; ?></p>
<input type="text" name="navName" id="navName" value="" disabled="disabled"/><br class="fix"/>
<label for="new_subnavName"><?php echo $lang['struktur']['newNavName']; ?></label><input type="text" name="new_subnavName" id="new_subnavName" value=""/><br class="fix"/>
<label for="new_subnavType"><?php echo $lang['struktur']['newNavType']; ?></label><select name="new_subnavType" id="new_subnavType" class="navigationType"></select><br class="fix"/>
<div id="bottom">
<input type="button" class="submitButton formSubmit" value="<?php echo $lang['button']['save']; ?>">
<input data-show="Chooser" type="button" class="submitButton" value="<?php echo $lang['button']['cancel']; ?>"/>
</div>
</div>
<div class="actionMenu">
<input type="hidden" name="formAction" value="addNavPoint"/>
<input type="hidden" name="request" value="insertData"/>
<p>Neuen Menü-Punkt anlegen nach folgendem Navigations-Punkt:</p>
<input type="text" name="navName" id="navName" value="" disabled="disabled"/><br class="fix"/>
<label for="new_navName"><?php echo $lang['struktur']['newNavName']; ?></label><input type="text" name="new_navName" id="new_navName" value=""/><br class="fix"/>
<label for="new_navType"><?php echo $lang['struktur']['newNavType']; ?></label><select name="new_navType" id="new_navType" class="navigationType"></select><br class="fix"/>
<div id="bottom">
<input type="button" class="submitButton formSubmit" value="<?php echo $lang['button']['save']; ?>">
<input data-show="Chooser" type="button" class="submitButton" value="<?php echo $lang['button']['cancel']; ?>"/>
</div>
</div>
</div>

30
templates/subline.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
/**
* Created by CS medien- & kommunikationssysteme.
* @author Christian Steinle
* @date 09.09.2016
*
* @copyright CS medien- & kommunikationssysteme (http://www.steinle-computer.de)
*/
header('Access-Control-Allow-Origin: *');
$includeFile = dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php';
if (file_exists(dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php'))
{
$includeFile = dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php';
}
include_once($includeFile);
?>
<form id="editor_form" action="" method="post">
<input type="hidden" name="userId" id="userId" value=""/>
<input type="hidden" name="prefix" id="prefix" value=""/>
<input type="hidden" name="dataSet" id="dataSet" value=""/>
<input type="hidden" name="request" id="request" value="updateData"/>
<input type="text" name="content" id="content" value="" class="subline"/>
<div class="bottom">
<input type="button" class="submitButton formSubmit" value="<?php echo $lang['button']['save']; ?>">
</div>
</form>

56
templates/text.php Normal file
View File

@@ -0,0 +1,56 @@
<?php
/**
* Created by CS medien- & kommunikationssysteme.
* @author Christian Steinle
* @date 09.09.2016
*
* @copyright CS medien- & kommunikationssysteme (http://www.steinle-computer.de)
*/
header('Access-Control-Allow-Origin: *');
$includeFile = dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php';
if (file_exists(dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php'))
{
$includeFile = dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php';
}
include_once($includeFile);
?>
<form id="editor_form" action="" method="post">
<input type="hidden" name="userId" id="userId" value=""/>
<input type="hidden" name="prefix" id="prefix" value=""/>
<input type="hidden" name="dataSet" id="dataSet" value=""/>
<input type="hidden" name="request" id="request" value="updateData"/>
<textarea class="ckeditor" name="content" id="content"></textarea>
<div class="bottom">
<input type="button" class="submitButton formSubmit" value="<?php echo $lang['button']['save']; ?>">
<input type="button" class="submitButton formCancel" value="<?php echo $lang['button']['cancel']; ?>">
</div>
<script>
initEditor();
function initEditor() {
if (editor.contentData === null) {
window.setTimeout(initEditor, 50);
return false;
}
CKEDITOR.replace('content', {
enterMode: CKEDITOR.ENTER_P,
extraPlugins: 'divarea',
height: '500px',
language: '<?php echo $_POST['lang']; ?>',
toolbarGroups: [
{name: 'clipboard', groups: ['clipboard', 'undo']},
{name: 'editing', groups: ['find', 'selection', 'spellchecker']},
{name: 'basicstyles', groups: ['basicstyles', 'cleanup']},
{name: 'paragraph', groups: ['list']},
{name: 'links'},
{name: 'about'}
]
});
}
</script>
</form>

32
templates/widget.php Normal file
View File

@@ -0,0 +1,32 @@
<?php
/**
* Created by CS medien- & kommunikationssysteme.
* @author Christian Steinle
* @date 12.09.2016
*
* @copyright CS medien- & kommunikationssysteme (http://www.steinle-computer.de)
*/
header('Access-Control-Allow-Origin: *');
$includeFile = dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php';
if (file_exists(dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php'))
{
$includeFile = dirname(__DIR__) . '/lang/lang-' . $_POST['lang'] . '.php';
}
include_once($includeFile);
?>
<form id="editor_form" action="" method="post">
<input type="hidden" name="userId" id="userId" value=""/>
<input type="hidden" name="prefix" id="prefix" value=""/>
<input type="hidden" name="dataSet" id="dataSet" value=""/>
<input type="hidden" name="request" id="request" value="updateData"/>
<label for="wettbewerb"><?php echo $lang['widget']['wettbewerb']; ?></label><input type="text" name="wettbewerb" id="wettbewerb" value=""/>
<div class="bottom">
<input type="button" class="submitButton formSubmit" value="<?php echo $lang['button']['save']; ?>">
<input type="button" class="submitButton formCancel" value="<?php echo $lang['button']['cancel']; ?>">
</div>
</form>