Вход Регистрация
Файл: public_html/init/a_cat3.php
Строк: 95
<?php
require('../classes/config.php');
include 
"../inc/language.php";
$lang = (object) $languagepackage;

include 
"../inc/db.php";
$db = new db();

$cat $db->query('SELECT * FROM '.htmlspecialchars($_GET['db']).' WHERE bigid = "'.$_GET['at'].'"');
$catnum mysql_num_rows($cat);
?>

<script>
function save3(id){
var text = jQuery('input[name=kat3_'+id+']').val();
jQuery('.katetext3_'+id).html(text);
jQuery('.editable3_'+id).slideToggle(50);
jQuery.post('kateadmin.php', { sk : 'edit', i : id, name : text, kate : ' kategorie_under2' }, function(){});
}
</script>

<div style="float:left; clear:both; padding-bottom:10px;">
<div style="float:left;">
<input type="text" style="width:97px;" placeholder="<?php echo $lang->admin04?>" name="ka3" />
</div>
<div style="float:left; padding-left:5px;">
<input type="submit" value="<?php echo $lang->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="addnewKate3('ka3', 'kategorie_under2', 'app_3')">
</div>
</div>

<div style="float:left; clear:both;" class="app_3"></div>
<?php
while($c $db->fetch_row($cat)){ ?><div style="float:left;"  class="hi_3_<?php print $c[0]; ?>">
<a href="javascript:void()" onClick="selectcat3('<?php print $c[0]; ?>', '<?php print $c[2]; ?>')"><div class="bigCat cpipe3_<?php print $c[0]; ?> cpipe3all">

<div style="float:left;" class="editable3_<?php print $c[0]; ?> katetext3_<?php print $c[0]; ?>">
<?php print $c[2]; ?>
</div>

</div></a>

                <div style="float:left; display:none; padding-bottom:5px; width:180px; position:relative; z-index:2;" class="editable3_<?php print $c[0]; ?>">
                <input type="text" value="<?php print $c[2]; ?>" name="kat3_<?php print $c[0]; ?>" style="width:180px;" />
                <br /><br />
                <input type="submit" value="<?php echo $lang->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="save3('<?php print $c[0]; ?>')" />
                </div>

<div style="float:left; clear:both; padding:3px; font-size:11px; border-top:1px solid #e2e2e2; background:#f5f5f5; width:198px;"><a href="javascript:void()" onclick="adel('<?php echo $c[0]; ?>', 'kategorie_under2', '3_')"><?php echo $lang->admin00?></a> | <a href="javascript:void()" title="Admin" onclick="jQuery('.editable3_<?php print $c[0]; ?>').slideToggle(50)"><?php echo $lang->admin01?></a></div></div>
<?php }  ?>

        <script>function addnewKate3(name, db, div){
            jQuery.get('aadd1.php', { value : jQuery('input[name='+name+']').val(), d : db, big : '<?php echo $_GET['at']; ?>' }, function(r){ 
            jQuery('.'+div).prepend('<div class="bigCat cpipe cpipeall">'+jQuery('input[name='+name+']').val()+'</div>');
            });        
        }
        </script>
Онлайн: 0
Реклама