| Zeile 7... |
Zeile 7... |
| 7 |
function checkLength(o,n,min,max,o_name)
|
7 |
function checkLength(o,n,min,max,o_name)
|
| 8 |
{
|
8 |
{
|
| 9 |
if ( o.val().length > max || o.val().length < min )
|
9 |
if ( o.val().length > max || o.val().length < min )
|
| 10 |
{
|
10 |
{
|
| 11 |
o.addClass('ui-state-error');
|
11 |
o.addClass('ui-state-error');
|
| 12 |
text="Länge des Feldes '" + n + "' muss zwischen "+min+" und "+max+" liegen.";
|
12 |
text="Länge des Feldes '" + n + "' muss zwischen "+min+" und "+max+" liegen.";
|
| 13 |
switch(o_name)
|
13 |
switch(o_name)
|
| 14 |
{
|
14 |
{
|
| 15 |
case "s_name":
|
15 |
case "s_name":
|
| 16 |
updateIniSectionTips(text);
|
16 |
updateIniSectionTips(text);
|
| 17 |
break;
|
17 |
break;
|
| Zeile 48... |
Zeile 48... |
| 48 |
'neue Sektion erstellen': function() {
|
48 |
'neue Sektion erstellen': function() {
|
| 49 |
var bValid = true;
|
49 |
var bValid = true;
|
| 50 |
s_name.removeClass('ui-state-error');
|
50 |
s_name.removeClass('ui-state-error');
|
| 51 |
v_name.removeClass('ui-state-error');
|
51 |
v_name.removeClass('ui-state-error');
|
| 52 |
bValid = bValid && checkLength(s_name,"Sektionsname",1,255,'s_name');
|
52 |
bValid = bValid && checkLength(s_name,"Sektionsname",1,255,'s_name');
|
| 53 |
bValid = bValid && checkLength(s_v_name,"Schlüsselname",1,255,'s_name');
|
53 |
bValid = bValid && checkLength(s_v_name,"Schlüsselname",1,255,'s_name');
|
| 54 |
if (bValid) {
|
54 |
if (bValid) {
|
| 55 |
attribs="";
|
55 |
attribs="";
|
| 56 |
section_name=s_name.val();
|
56 |
section_name=s_name.val();
|
| 57 |
//$tabs.tabs("add", "#"+section_name, section_name );
|
57 |
//$tabs.tabs("add", "#"+section_name, section_name );
|
| 58 |
kType=$('#s_v_typ').val();
|
58 |
kType=$('#s_v_typ').val();
|
| Zeile 94... |
Zeile 94... |
| 94 |
buttons: {
|
94 |
buttons: {
|
| 95 |
'neuen Wert erstellen': function() {
|
95 |
'neuen Wert erstellen': function() {
|
| 96 |
var bValid = true;
|
96 |
var bValid = true;
|
| 97 |
var kType=$('#typ').val();
|
97 |
var kType=$('#typ').val();
|
| 98 |
v_name.removeClass('ui-state-error');
|
98 |
v_name.removeClass('ui-state-error');
|
| 99 |
bValid = bValid && checkLength(v_name,"Schlüsselname",1,255,'v_name');
|
99 |
bValid = bValid && checkLength(v_name,"Schlüsselname",1,255,'v_name');
|
| 100 |
if (bValid) {
|
100 |
if (bValid) {
|
| 101 |
sect_name=$('#sect_name').val();
|
101 |
sect_name=$('#sect_name').val();
|
| 102 |
if(kType=="email")
|
102 |
if(kType=="email")
|
| 103 |
{
|
103 |
{
|
| 104 |
typeStr='<input name="ini['+sect_name+']['+v_name.val()+']" value="" type="email" size="40"><input type="hidden" name="ini['+sect_name+']['+v_name.val()+'][@][type]" value="email">';
|
104 |
typeStr='<input name="ini['+sect_name+']['+v_name.val()+']" value="" type="email" size="40"><input type="hidden" name="ini['+sect_name+']['+v_name.val()+'][@][type]" value="email">';
|
| Zeile 411... |
Zeile 411... |
| 411 |
}
|
411 |
}
|
| Zeile 412... |
Zeile 412... |
| 412 |
|
412 |
|
| 413 |
</style>
|
413 |
</style>
|
| 414 |
{include file="list_configs.tpl"}
|
414 |
{include file="list_configs.tpl"}
|
| 415 |
{if $cfg_file}
|
415 |
{if $cfg_file}
|
| 416 |
<h1>Datei {$cfg_file} ändern</h1>
|
416 |
<h1>Datei {$cfg_file} ändern</h1>
|
| 417 |
<!-- Dateiinhalt -->
|
417 |
<!-- Dateiinhalt -->
|
| 418 |
<form method="post">
|
418 |
<form method="post">
|
| 419 |
<table width="100%" id="sections" cellspacing="0" cellpadding="0">
|
419 |
<table width="100%" id="sections" cellspacing="0" cellpadding="0">
|
| 420 |
<tr>
|
420 |
<tr>
|
| 421 |
<th class="links">Eigenschaft</th>
|
421 |
<th class="links">Eigenschaft</th>
|
| 422 |
<th class="rechts">Wert</th>
|
422 |
<th class="rechts">Wert</th>
|
| 423 |
</tr>
|
423 |
</tr>
|
| 424 |
<tr>
|
424 |
<tr>
|
| 425 |
<td colspan="2" align="center" class="links">
|
425 |
<td colspan="2" align="center" class="links">
|
| 426 |
{if $isTemplate===true}
|
426 |
{if $isTemplate===true}
|
| 427 |
<span class="add ui-icon ui-icon-plus" id="add" style="cursor:pointer" title="Rubrik hinzufügen"></span>
|
427 |
<span class="add ui-icon ui-icon-plus" id="add" style="cursor:pointer" title="Rubrik hinzufügen"></span>
|
| 428 |
{/if}
|
428 |
{/if}
|
| 429 |
</td>
|
429 |
</td>
|
| 430 |
</tr>
|
430 |
</tr>
|
| 431 |
</table>
|
431 |
</table>
|
| Zeile 434... |
Zeile 434... |
| 434 |
{foreach $templateConfig as $section => $value}
|
434 |
{foreach $templateConfig as $section => $value}
|
| 435 |
<li id="reiter_{$section}">
|
435 |
<li id="reiter_{$section}">
|
| 436 |
<a href="#{$section}">{$section}</a>
|
436 |
<a href="#{$section}">{$section}</a>
|
| 437 |
{if array_key_exists($section,$config) && $section!="none"}
|
437 |
{if array_key_exists($section,$config) && $section!="none"}
|
| 438 |
{if $smarty.server.PHP_AUTH_USER=="admin" || $site=="weban.de"}
|
438 |
{if $smarty.server.PHP_AUTH_USER=="admin" || $site=="weban.de"}
|
| 439 |
<span class="delete_section ui-icon ui-icon-trash" id="delete__{$section}" style="float:right;cursor:pointer" title="Rubrik löschen"></span>
|
439 |
<span class="delete_section ui-icon ui-icon-trash" id="delete__{$section}" style="float:right;cursor:pointer" title="Rubrik löschen"></span>
|
| 440 |
{/if}
|
440 |
{/if}
|
| 441 |
{/if}
|
441 |
{/if}
|
| 442 |
{if $isTemplate===false && !array_key_exists($section,$config)}
|
442 |
{if $isTemplate===false && !array_key_exists($section,$config)}
|
| 443 |
{if $smarty.server.PHP_AUTH_USER=="admin" || $site=="weban.de"}
|
443 |
{if $smarty.server.PHP_AUTH_USER=="admin" || $site=="weban.de"}
|
| 444 |
<span class="activate_section ui-icon ui-icon-plus" id="activate__{$section}" style="float:right;cursor:pointer" title="Rubrik aktivieren"></span>
|
444 |
<span class="activate_section ui-icon ui-icon-plus" id="activate__{$section}" style="float:right;cursor:pointer" title="Rubrik aktivieren"></span>
|
| 445 |
{/if}
|
445 |
{/if}
|
| 446 |
{/if}
|
446 |
{/if}
|
| 447 |
{if $isTemplate===true}
|
447 |
{if $isTemplate===true}
|
| 448 |
<span class="add_ini_value ui-icon ui-icon-plus" id="add--{$section}" style="float:right;cursor:pointer" title="Wert hinzufügen"></span>
|
448 |
<span class="add_ini_value ui-icon ui-icon-plus" id="add--{$section}" style="float:right;cursor:pointer" title="Wert hinzufügen"></span>
|
| 449 |
{/if}
|
449 |
{/if}
|
| 450 |
{if $templateAttribs.$section["@"].comment}
|
450 |
{if $templateAttribs.$section["@"].comment}
|
| 451 |
<span class="ui-icon ui-icon-info" style="float:right;cursor:help" title="{$templateAttribs.$section["@"].comment}"></span>
|
451 |
<span class="ui-icon ui-icon-info" style="float:right;cursor:help" title="{$templateAttribs.$section["@"].comment}"></span>
|
| 452 |
{/if}
|
452 |
{/if}
|
| 453 |
{if is_array($templateAttribs.$section) && $isTemplate}
|
453 |
{if is_array($templateAttribs.$section) && $isTemplate}
|
| Zeile 531... |
Zeile 531... |
| 531 |
{/if}
|
531 |
{/if}
|
| 532 |
<div style="width:80%;float:left;">
|
532 |
<div style="width:80%;float:left;">
|
| 533 |
<label id="label_{$section}_{$k}" for="{$section}_{$k}">
|
533 |
<label id="label_{$section}_{$k}" for="{$section}_{$k}">
|
| 534 |
{if $disabled}<strike>{/if}{$k}{if $disabled}</strike>{/if}</label>
|
534 |
{if $disabled}<strike>{/if}{$k}{if $disabled}</strike>{/if}</label>
|
| 535 |
{if $smarty.server.PHP_AUTH_USER=="admin" || $site=="weban.de"}
|
535 |
{if $smarty.server.PHP_AUTH_USER=="admin" || $site=="weban.de"}
|
| 536 |
<span class="add_ini_value ui-icon ui-icon-plus" id="add--{$section}__{$k}" style="float:right;cursor:pointer;display:{if $disabled}inline{else}none{/if};" title="Wert hinzufügen"></span><span class="del_ini_value ui-icon ui-icon-trash" id="del--{$section}__{$k}" style="float:right;cursor:pointer;display:{if !$disabled}inline{else}none{/if};" title="Wert löschen"></span>
|
536 |
<span class="add_ini_value ui-icon ui-icon-plus" id="add--{$section}__{$k}" style="float:right;cursor:pointer;display:{if $disabled}inline{else}none{/if};" title="Wert hinzufügen"></span><span class="del_ini_value ui-icon ui-icon-trash" id="del--{$section}__{$k}" style="float:right;cursor:pointer;display:{if !$disabled}inline{else}none{/if};" title="Wert löschen"></span>
|
| 537 |
{/if}
|
537 |
{/if}
|
| 538 |
</div>
|
538 |
</div>
|
| 539 |
<div style="width:20%;float:left;">
|
539 |
<div style="width:20%;float:left;">
|
| 540 |
{if is_array($templateAttribs.$section.$k) && $templateAttribs.$section.$k["@"].comment}
|
540 |
{if is_array($templateAttribs.$section.$k) && $templateAttribs.$section.$k["@"].comment}
|
| 541 |
<span class="ui-icon ui-icon-info" style="float:right;cursor:help" title="{$templateAttribs.$section.$k["@"].comment}"></span>
|
541 |
<span class="ui-icon ui-icon-info" style="float:right;cursor:help" title="{$templateAttribs.$section.$k["@"].comment}"></span>
|
| Zeile 556... |
Zeile 556... |
| 556 |
<tr>
|
556 |
<tr>
|
| 557 |
<td colspan="2" class="links" align="center">
|
557 |
<td colspan="2" class="links" align="center">
|
| 558 |
<input type="hidden" name="file" value="{$cfg_file}">
|
558 |
<input type="hidden" name="file" value="{$cfg_file}">
|
| 559 |
<input type="hidden" name="mode" value="save">
|
559 |
<input type="hidden" name="mode" value="save">
|
| 560 |
<input type="hidden" name="root" value="{$root}">
|
560 |
<input type="hidden" name="root" value="{$root}">
|
| 561 |
<input type="submit" value="Daten ändern" id="changeFile">
|
561 |
<input type="submit" value="Daten ändern" id="changeFile">
|
| 562 |
</td>
|
562 |
</td>
|
| 563 |
</tr>
|
563 |
</tr>
|
| 564 |
</table>
|
564 |
</table>
|
| 565 |
</form>
|
565 |
</form>
|
| 566 |
{if $isTemplate===false}
|
566 |
{if $isTemplate===false}
|
| Zeile 731... |
Zeile 731... |
| 731 |
<p class="validateIniSectionTips">Alle Felder sind Pflicht.</p>
|
731 |
<p class="validateIniSectionTips">Alle Felder sind Pflicht.</p>
|
| 732 |
<form>
|
732 |
<form>
|
| 733 |
<fieldset>
|
733 |
<fieldset>
|
| 734 |
<label for="s_name">Rubrikname</label>
|
734 |
<label for="s_name">Rubrikname</label>
|
| 735 |
<input type="text" name="s_name" id="s_name" class="text ui-widget-content ui-corner-all"><br>
|
735 |
<input type="text" name="s_name" id="s_name" class="text ui-widget-content ui-corner-all"><br>
|
| 736 |
<label for="v_name">Schlüsselame</label>
|
736 |
<label for="v_name">Schlüsselame</label>
|
| 737 |
<input type="text" name="s_v_name" id="s_v_name" class="text ui-widget-content ui-corner-all">
|
737 |
<input type="text" name="s_v_name" id="s_v_name" class="text ui-widget-content ui-corner-all">
|
| 738 |
<br>
|
738 |
<br>
|
| 739 |
<label for="s_v_typ">Eingabetyp:</label>
|
739 |
<label for="s_v_typ">Eingabetyp:</label>
|
| 740 |
<select id="s_v_typ">
|
740 |
<select id="s_v_typ">
|
| 741 |
{html_options options=$types selected="string"}
|
741 |
{html_options options=$types selected="string"}
|
| Zeile 761... |
Zeile 761... |
| 761 |
</div>
|
761 |
</div>
|
| 762 |
</fieldset>
|
762 |
</fieldset>
|
| 763 |
</form>
|
763 |
</form>
|
| 764 |
</div>
|
764 |
</div>
|
| Zeile 765... |
Zeile 765... |
| 765 |
|
765 |
|
| 766 |
<div id="ini-value-form" title="Einen neuen Schlüssel erstellen">
|
766 |
<div id="ini-value-form" title="Einen neuen Schlüssel erstellen">
|
| 767 |
<p class="validateIniValueTips">Alle Felder sind Pflicht.</p>
|
767 |
<p class="validateIniValueTips">Alle Felder sind Pflicht.</p>
|
| 768 |
<form>
|
768 |
<form>
|
| 769 |
<fieldset>
|
769 |
<fieldset>
|
| 770 |
<label for="name">Name</label>
|
770 |
<label for="name">Name</label>
|
| Zeile 796... |
Zeile 796... |
| 796 |
</div>
|
796 |
</div>
|
| 797 |
</fieldset>
|
797 |
</fieldset>
|
| 798 |
</form>
|
798 |
</form>
|
| 799 |
</div>
|
799 |
</div>
|
| Zeile 800... |
Zeile 800... |
| 800 |
|
800 |
|
| 801 |
<div id="delete-ini-section-confirm-new" title="Rubrik löschen?">
|
801 |
<div id="delete-ini-section-confirm-new" title="Rubrik löschen?">
|
| 802 |
<p>
|
802 |
<p>
|
| 803 |
<span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>Die Rubrik '<span id="d_section_out"></span>' wird permanent gelöscht. Sind sie sicher?
|
803 |
<span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>Die Rubrik '<span id="d_section_out"></span>' wird permanent gelöscht. Sind sie sicher?
|
| 804 |
</p>
|
804 |
</p>
|
| 805 |
<input type="hidden" id="d_section" value="">
|
805 |
<input type="hidden" id="d_section" value="">
|
| Zeile 806... |
Zeile 806... |
| 806 |
</div>
|
806 |
</div>
|
| 807 |
|
807 |
|
| 808 |
<div id="delete-ini-key-confirm" title="Schlüssel löschen?">
|
808 |
<div id="delete-ini-key-confirm" title="Schlüssel löschen?">
|
| 809 |
<p>
|
809 |
<p>
|
| 810 |
<span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>Der Schlüssel '<span id="d_key_out"></span>' in der Rubrik '<span id="d_section_out_2"></span>' wird permanent gelöscht. Sind sie sicher?
|
810 |
<span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>Der Schlüssel '<span id="d_key_out"></span>' in der Rubrik '<span id="d_section_out_2"></span>' wird permanent gelöscht. Sind sie sicher?
|
| 811 |
</p>
|
811 |
</p>
|
| Zeile 812... |
Zeile 812... |
| 812 |
<input type="hidden" id="d_key" value="">
|
812 |
<input type="hidden" id="d_key" value="">
|
| Zeile 818... |
Zeile 818... |
| 818 |
<div id="createNewDocDialogWizard" title="neue Konfigurationsdatei anlegen">
|
818 |
<div id="createNewDocDialogWizard" title="neue Konfigurationsdatei anlegen">
|
| 819 |
<form id="demoForm" method="post" action="/toolbox/createConfig.php" class="bbq">
|
819 |
<form id="demoForm" method="post" action="/toolbox/createConfig.php" class="bbq">
|
| 820 |
<div id="fieldWrapper">
|
820 |
<div id="fieldWrapper">
|
| 821 |
<div id="step_visualization"></div>
|
821 |
<div id="step_visualization"></div>
|
| 822 |
<div class="step" id="first">
|
822 |
<div class="step" id="first">
|
| 823 |
<span class="font_normal_07em_black">neue Konfigurationsdatei anlegen - Schritt 1 - Web auswählen</span><br />
|
823 |
<span class="font_normal_07em_black">neue Konfigurationsdatei anlegen - Schritt 1 - Web auswählen</span><br />
|
| 824 |
<div id="createNewDocDialogStep1" class="indent"></div>
|
824 |
<div id="createNewDocDialogStep1" class="indent"></div>
|
| 825 |
</div>
|
825 |
</div>
|
| 826 |
<div id="second" class="step">
|
826 |
<div id="second" class="step">
|
| 827 |
<span class="font_normal_07em_black">neue Konfigurationsdatei anlegen - Schritt 2 - Shop auswählen</span><br />
|
827 |
<span class="font_normal_07em_black">neue Konfigurationsdatei anlegen - Schritt 2 - Shop auswählen</span><br />
|
| 828 |
<div id="createNewDocDialogStep2" class="indent"></div>
|
828 |
<div id="createNewDocDialogStep2" class="indent"></div>
|
| 829 |
</div>
|
829 |
</div>
|
| 830 |
<div id="third" class="step">
|
830 |
<div id="third" class="step">
|
| 831 |
<span class="font_normal_07em_black">neue Konfigurationsdatei anlegen - Schritt 3 - Template auswählen</span><br />
|
831 |
<span class="font_normal_07em_black">neue Konfigurationsdatei anlegen - Schritt 3 - Template auswählen</span><br />
|
| 832 |
<div id="createNewDocDialogStep3" class="indent"></div>
|
832 |
<div id="createNewDocDialogStep3" class="indent"></div>
|
| 833 |
</div>
|
833 |
</div>
|
| 834 |
<div id="confirmation" class="step">
|
834 |
<div id="confirmation" class="step">
|
| 835 |
<span class="font_normal_07em_black">neue Konfigurationsdatei anlegen - Schritt 4 - Auswahl der Shop-Umgebung</span><br />
|
835 |
<span class="font_normal_07em_black">neue Konfigurationsdatei anlegen - Schritt 4 - Auswahl der Shop-Umgebung</span><br />
|
| 836 |
<span class="font_normal_07em_black">Mit dem Klck auf "Erstellen" wird die Konfigurationsdatei erstellt.</span><br /><br>
|
836 |
<span class="font_normal_07em_black">Mit dem Klck auf "Erstellen" wird die Konfigurationsdatei erstellt.</span><br /><br>
|