Файл: public_html/tpl/page/createadmin/index.html
Строк: 168
<?php
<script>
jQuery('.headerLoginViewModule1').hide();
function selectcat(id, i){ jQuery('.nextbox').hide(); jQuery('.cpipeall').removeClass('bigCat1'); jQuery('.cpipe'+id).addClass('bigCat1'); jQuery.get('init/a_cat.php', { at : id, db : 'kategorie_under' }, function(response){ jQuery('.cat_next1').show(); jQuery('.cat_next3').hide(); jQuery('.cat_next2').hide(); jQuery('.cat1_html').html(response); jQuery('#kate1').text(id); }); }
function selectcat1(id, i){ jQuery('#kate2').text(id); jQuery('#kate4').text(''); jQuery('#kate3').text(''); jQuery('.cpipe1all').removeClass('bigCat1'); jQuery('.cpipe1_'+id).addClass('bigCat1'); jQuery.get('init/a_cat2.php', { at : id, db : 'kategorie_under1' },
function(response){ if(response == 'off'){ jQuery('.cat_next2').show(); jQuery('.cat2_html').html(''); jQuery('.cat_next3').hide(); jQuery('.nextbox').show(); }else{ jQuery('.cat_next2').show(); jQuery('.cat2_html').html(response); jQuery('.nextbox').hide(); jQuery('.cat_next3').hide(); } });
}
function selectcat2(id, i){ jQuery('#kate3').text(id); jQuery('#kate4').text(''); jQuery('.cpipe2all').removeClass('bigCat1'); jQuery('.cpipe2_'+id).addClass('bigCat1'); jQuery.get('init/a_cat3.php', { at : id, db : 'kategorie_under2' },
function(response){ if(response == 'off'){ jQuery('.cat_next3').show(); jQuery('.cat3_html').html(''); jQuery('.nextbox').show(); }else{ jQuery('.cat_next3').show(); jQuery('.cat3_html').html(response); jQuery('.nextbox').hide(); } });
}
function selectcat3(id, i){ jQuery('#kate4').text(id); jQuery('.cpipe3all').removeClass('bigCat1'); jQuery('.cpipe3_'+id).addClass('bigCat1');
jQuery('.nextbox').show();
}
function pagedetail(){
var kate1 = jQuery('#kate1').text();
var kate2 = jQuery('#kate2').text();
var kate3 = jQuery('#kate3').text();
var kate4 = jQuery('#kate4').text();
window.location.href = '2create.php?k1=' + kate1 + '&k2=' + kate2 + '&k3=' + kate3 + '&k4=' + kate4;
}
</script>
<div id="kate1" style="display:none;"></div>
<div id="kate2" style="display:none;"></div>
<div id="kate3" style="display:none;"></div>
<div id="kate4" style="display:none;"></div>
<div style="float:left; clear:both; padding-top:20px;">
<div style="float:left; width:968px; border:1px solid #e2e2e2; border-radius:5px; background:#fff;">
<div style="float:left; padding:20px; font-size:18px; color:#333;"><b>{$lang152}</b></div>
<div style="float:left; clear:both; padding:12px; padding-top:0;">
<div style="float:left; background:#fff; width:938px; border:1px solid #fff; border-radius:5px;">
<div style="float:left; width:214px; padding:10px;">
<div style="float:left; font-size:14px; font-weight:bold; color:#555;">{$lang153}</div>
<div style="float:left; clear:both; padding-top:10px;">
<div style="float:left; clear:both; padding-bottom:10px;">
<div style="float:left;">
<input type="text" style="width:97px;" placeholder="{$admin04}" name="ka0" />
</div>
<div style="float:left; padding-left:5px;">
<input type="submit" value="{$admin03}" style="border:0px solid #6e7cc5; cursor:pointer; background:url(tpl/img/bgr.png); padding:5px 8px; font-size:14px; color:#fff; font-weight:bold; border-radius:3px; font-family:arial;" onclick="addnewKate('ka0', 'kategorie_big', 'catx_html');">
</div>
</div>
<script>
function save(id){
var text = jQuery('input[name=kat_'+id+']').val();
jQuery('.katetext_'+id).html(text);
jQuery('.editable_'+id).slideToggle(50);
jQuery.post('kateadmin.php', { sk : 'edit', i : id, name : text, kate : 'kategorie_big' }, function(){});
}
</script>
<div style="float:left; clear:both;" class="catx_html">
{loop="$cats2"}
<div style="float:left;" class="hi_0_{$value.0}"><a href="javascript:void()" onClick="selectcat('{$value.0}', '{$value.1}')"><div class="bigCat cpipe{$value.0} cpipeall">
<div style="float:left;" class="editable_{$value.0} katetext_{$value.0}">
{$value.1}
</div>
</div></a>
<div style="float:left; display:none; padding-bottom:5px; width:180px; position:relative; z-index:2;" class="editable_{$value.0}">
<input type="text" value="{$value.1}" name="kat_{$value.0}" style="width:180px;" />
<br /><br />
<input type="submit" value="{$admin02}" style="border:0px solid #6e7cc5; cursor:pointer; background:url(tpl/img/bgr.png); padding:5px 8px; font-size:14px; color:#fff; font-weight:bold; border-radius:3px; font-family:arial;" onclick="save('{$value.0}')" />
</div>
<div style="float:left; clear:both; padding:3px; font-size:11px; border-top:1px solid #e2e2e2; background:#f5f5f5; width:198px;">
<div style="float:left;">
<a href="javascript:void()" onclick="adel('{$value.0}', 'kategorie_big', '0_')" title="{$value.1}">{$admin00}</a> | <a href="javascript:void()" title="{$value.1}" onclick="jQuery('.editable_{$value.0}').slideToggle(50)">{$admin01}</a>
</div>
</div></div>
{/loop}
</div>
</div>
</div>
<script>function adel(i, data, m){
jQuery('.hi_'+m+i).slideUp(50);
jQuery.get('adel.php', { id : i, a : data }, function(){ });
}</script>
<div style="float:left; width:214px; padding:10px; display:none;" class="cat_next1">
<div style="float:left; font-size:14px; font-weight:bold; color:#555;">{$lang154}</div>
<div style="float:left; clear:both; padding-top:10px;" class="cat1_html">
</div>
</div>
<div style="float:left; width:214px; padding:10px; display:none;" class="cat_next2">
<div style="float:left; font-size:14px; font-weight:bold; color:#555;">{$lang155}</div>
<div style="float:left; clear:both; padding-top:10px;" class="cat2_html">
</div>
</div>
<div style="float:left; width:214px; padding:10px; display:none;" class="cat_next3">
<div style="float:left; font-size:14px; font-weight:bold; color:#555;">{$lang156}</div>
<div style="float:left; clear:both; padding-top:10px;" class="cat3_html">
</div>
</div>
</div>
<script>function addnewKate(name, db, div){
jQuery.get('aadd.php', { value : jQuery('input[name='+name+']').val(), d : db }, function(r){
jQuery('.'+div).prepend('<a href="javascript:void()" onClick="selectcat(''+r+'', ''+jQuery('input[name='+name+']').val()+'')"><div class="bigCat cpipe cpipeall">'+jQuery('input[name='+name+']').val()+'</div></a>');
});
}
</script>
<div style="float:right; clear:both; padding-top:10px; display:none;" class="nextbox">
</div>
</div>
</div>
</div>
?>