| Sadece ilk veriyi kaydediyor neden olabilir? | 4 Mesajlar | 938 Okunma | ||
    
        
            
                ; ?>)
                = $item->baslik; ?>
                add
                
                    anasayfa_model->kaydedilenler($user["id"], $item->id); ?>
                    
                        - save_altKaydet
                    
                        - delete_foreverKaldır
                    
                    - reportŞikayet Et
                
            
            
                
                    
= $item->ders_adi; ?>
                    = $item->bolum_adi; ?>
                
            
        
    
    function belgeKaydet() {
        var belge_id = $(".belge").attr("id");
        $.ajax({
            url: "= base_url('ajax/belge_kaydet'); ?>",
            type: "post",
            dataType: "json",
            data: {
                belge_id: belge_id
            },
            success: function(resp) {
                if (resp.sonuc == "ok") {
                    M.toast({
                        html: 'Belge başarıyla kaydedildi.',
                        displayLength: 2000
                    });
                    setTimeout(function() {
                        window.location = "= base_url(); ?>";
                    }, 2000);
                } else if (resp.hata == "hata") {
                    M.toast({
                        html: 'Opps! Teknik bir hata oluştu.',
                        displayLength: 2000
                    });
                }
            }
        });
    }