Вход Регистрация
Файл: IPBMafia.ru_IPB_3.4.6_Final_Rus _Nulled/board/upload/admin/js/acp.members.js
Строк: 93
<?php
/************************************************/
/* IPB3 Javascript                                */
/* -------------------------------------------- */
/* acp.members.js - Member functions            */
/* (c) IPS, Inc 2008                            */
/* -------------------------------------------- */
/* Author: Rikki Tissier                        */
/************************************************/

var _temp window.IPBACP;

_temp.prototype.members = {
    
    
popups: {},
    
fields: {},
    
    
movePruneAction: function( etype )
    {
        $(
'f_search_type').value type;
        $(
'memberListForm').submit(); 
    },
    
    
switchSearch: function(etype)
    {
        try {
            if( 
type == 'advanced' )
            {
                $(
'm_simple').hide();
                $(
'm_advanced').show();
            }
            else
            {
                $(
'm_advanced').hide();
                $(
'm_simple').show();
            }
        } catch(
err) {}
    },
    
    
goToTab: function(tabid
    {
        var 
evt;
        var 
el = $(tabid);

        if ( 
document.createEvent )
        {
            
evt document.createEvent("MouseEvents");
            
evt.initMouseEvent("click"truetruewindow00000falsefalsefalsefalse0null);
        }

        (
evt) ? el.dispatchEvent(evt) : (el.click && el.click());
    },

    
newPhoto: function( eurl )
    {
        
Event.stop(e);
        
        
acp.members.hideActionMenu();
        
        
url ipb.vars['base_url'] + url '&secure_key=' ipb.vars['md5_hash'];
        
url url.replace( /&amp;/g'&' );
        
        
acp.members.popups['photo'] = new ipb.Popup('m_photo', { type'pane'modalfalsehideAtStartfalsew'600px'ajaxURLurl } );        
    },
    
    
banManager: function( eurl )
    {
        
Event.stop(e);
        
        
acp.members.hideActionMenu();
        
        
url ipb.vars['base_url'] + url '&secure_key=' ipb.vars['md5_hash'];
        
url url.replace( /&amp;/g'&' );
        
        
acp.members.popups['photo'] = new ipb.Popup('m_ban', { type'pane'modalfalsehideAtStartfalsew'600px'h500ajaxURLurl } );        
    },

    
removePhoto: function( emember_id )
    {
        
Event.stop(e);
        
Debug.write("Removing photo...");
        
        
url ipb.vars['base_url'] + "app=members&amp;module=ajax&amp;section=editform&amp;do=remove_photo&amp;member_id=" member_id '&secure_key=' ipb.vars['md5_hash'];

        new 
Ajax.Requesturl.replace( /&amp;/g'&' ),
                          {
                            
method'GET',
                            
evalJSON'force',
                            
onSuccess: function ()
                            {
                                if( 
Object.isUndefinedt.responseJSON ) )
                                {
                                    
Debug.writet.responseText );
                                    
alertipb.lang['templates_servererror'] + t.responseText );
                                    return;
                                }
                                
                                if( 
t.responseJSON['error'] )
                                {
                                    
Debug.writet.responseJSON['error'] );
                                    
alertipb.lang['templates_servererror'] + t.responseJSON['error']);
                                    return;
                                }
                                else
                                {
                                    try {
                                        $(
'MF__pp_photo').src t.responseJSON['pp_main_photo'];
                                        $(
'MF__pp_photo').setStyle( { widtht.responseJSON['pp_main_width'] + 'px' } );
                                        $(
'MF__pp_photo').setStyle( { heightt.responseJSON['pp_main_height'] + 'px' } );
                                        $(
'MF__pp_photo_container').setStyle( { widtht.responseJSON['pp_main_width'] + 'px' } );
                                        $(
'MF__removephoto').remove();
                                    } catch(
err) {
                                        
Debug.writeerr );
                                    }
                                }
                            }
                          } );
    },
    
    
editField: function( eidlangurl )
    {
        
Event.stop(e);
        
        
acp.members.hideActionMenu();
        
        
url ipb.vars['base_url'] + url '&secure_key=' ipb.vars['md5_hash'];
        
url url.replace( /&amp;/g'&' );

        
acp.members.popupsid ] = new ipb.Popup('m_' id, { type'pane'modalfalsehideAtStartfalsew'700px'ajaxURLurl } );
    },

    
hideActionMenu: function()
    {
        if ( $(
'member_tasks_menucontent').visible() )
        {
            $(
'member_tasks_menucontent').hide();
        }
    }
};
?>
Онлайн: 3
Реклама