HomeHelpTrac

Changeset 9848


Ignore:
Timestamp:
03/30/09 01:35:41 (3 years ago)
Author:
Sergey Zotov
Message:
 
Location:
trunk
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/cache

    • Property svn:ignore
      •  

        old new  
        11tiny_mce_*.gz 
        2 user*.php 
         2*.php 
        33*.inc 
  • trunk/inc/admin.inc.php

    r9781 r9848  
    5252                        </div> 
    5353                         
    54                         <img src="$sCloseImg" class="login_ajx_close" onclick="$('#login_div').hide();return false;" /> 
     54                        <img src="$sCloseImg" class="login_ajx_close" /> 
    5555                    </div> 
    5656BLAH; 
    5757                 
    58                 $sMemberLoginFormAjx = ' 
    59                     <div id="login_div" class="login_ajax">' . 
    60                         $GLOBALS['oFunctions']->transBox( 
    61                             DesignBoxContent(_t('_Member Login'), $sFormCode, 1, $sCaptionItem), 
    62                             true 
    63                         ) . 
    64                     '</div> 
    65                 '; 
     58                $sMemberLoginFormAjx = $GLOBALS['oFunctions']->transBox( 
     59                    DesignBoxContent(_t('_Member Login'), $sFormCode, 1, $sCaptionItem), 
     60                    true 
     61                ); 
    6662                 
    6763                echo $sMemberLoginFormAjx; 
  • trunk/inc/js/functions.js

    r9681 r9848  
    750750        return false; 
    751751     
    752     //alert( ('#page_block_' + iBlockID + ' .boxContent') + ' ' + $('#page_block_' + iBlockID + ' .boxContent').length ); 
    753      
    754752    getHtmlData($('#page_block_' + iBlockID), (sUrl + '&pageBlock=' + iBlockID)); 
    755753     
     
    794792} 
    795793 
    796 function showPopupLoginForm() { 
     794function showPopupLoginFormOld() { 
    797795    if ($('#login_div').length) { 
    798796        //alert(1); 
     
    838836} 
    839837 
     838function showPopupLoginForm() { 
     839    var oPopupOptions = { 
     840        fog: {color: '#fff', opacity: .7}, 
     841    }; 
     842     
     843    if ($('#login_div').length) 
     844        $('#login_div').dolPopup(oPopupOptions); 
     845    else { 
     846        $('<div id="login_div" style="display: none;"></div>').prependTo('body').load( 
     847            site_url + 'member.php', 
     848            { 
     849                action: 'show_login_form', 
     850                relocate: String(window.location) 
     851            }, 
     852            function() { 
     853                $(this).dolPopup(oPopupOptions); 
     854            } 
     855        ); 
     856    } 
     857} 
     858 
     859function showFloatUserInfo(iId, oEv) { 
     860    var oEv = oEv || window.event; 
     861     
     862    if (!$('#short_profile_info').length) { 
     863        $('<div id="short_profile_info" style="display: none;"></div>').prependTo('body'); 
     864    } 
     865     
     866    $('#short_profile_info').load( 
     867        site_url + 'short_profile_info.php?ID=' + iId, 
     868        function() { 
     869            $(this).dolPopup({position: oEv}); 
     870        } 
     871    ); 
     872} 
     873 
     874 
    840875function setDivToCenter(el) { 
    841     var el = (typeof el == 'object') ? el : this; 
    842      
    843     if (el == window) 
     876    var $el = $(el || this); 
     877     
     878    if ($el.length == 0 || $el[0] == window) 
    844879        return false; 
    845880     
    846     var iTop  = ((window.innerHeight ? window.innerHeight : screen.height) - $(el).width())  / 2; 
    847     var iLeft = ((window.innerWidth  ? window.innerWidth  : screen.width)  - $(el).height()) / 2; 
    848      
     881    var iLeft = ((window.innerWidth  ? window.innerWidth  : screen.width)  - $el.height()) / 2; 
     882    var iTop  = ((window.innerHeight ? window.innerHeight : screen.height) - $el.width())  / 2; 
     883     
     884    iLeft = iLeft > 0 ? iLeft : 0; 
    849885    iTop  = iTop  > 0 ? iTop  : 0; 
    850     iLeft = iLeft > 0 ? iLeft : 0; 
    851      
    852     $(el).css({ 
     886     
     887    $el.css({ 
    853888        position: 'fixed', 
    854         top:  iTop, 
    855         left: iLeft 
     889        left: iLeft, 
     890        top:  iTop 
    856891    }); 
    857892} 
  • trunk/inc/params.inc.php

    r9789 r9848  
    5050    'login.js', 
    5151    'ie7_flash_fix.js', 
    52     'BxDolVoting.js' 
     52    'BxDolVoting.js', 
     53    'jquery.dolPopup.js' 
    5354)); 
    5455 
  • trunk/short_profile_info.php

    r9768 r9848  
    4747    ?> 
    4848        <div class="reduce"> 
    49             <img src="<?= $sCloseIcon ?>" class="login_ajx_close" onclick="$('#short_profile_info').animate({opacity:'hide'}, 400); return false;" /> 
     49            <img src="<?= $sCloseIcon ?>" class="login_ajx_close" /> 
    5050        </div> 
    5151    <? 
    5252    $sClose = ob_get_clean(); 
    5353    $sClose = str_replace('__site_images__', $site['images'], $sClose); 
    54     echo 
    55         '<div id="short_profile_info">'. 
    56             $oFunctions->transBox( 
    57                 $sClose . $oSysTemplate->parseHtmlByName($sTemplate, $aUnit) 
    58             ). 
    59         '</div>';    
     54    echo $oFunctions->transBox( 
     55        $sClose . $oSysTemplate->parseHtmlByName($sTemplate, $aUnit) 
     56    ); 
    6057} 
    6158 
  • trunk/templates/base/_header.html

    r9789 r9848  
    2525    __dol_images__ 
    2626    __dol_lang__ 
    27     <script type="text/javascript" language="javascript"> 
     27    <script type="text/javascript" language="javascript"> 
    2828        var site_url = '<bx_url_root />'; 
    2929         
     
    3131            $( 'div.RSSAggrCont' ).dolRSSFeed(); 
    3232        } ); 
    33         function getUserInfo (eElem, iId, oEv) { 
    34             var sUrl = '<bx_url_root />short_profile_info.php'; 
    35             var sCode = $.get(sUrl, {ID: iId}, function (data) { 
    36                 showFloatDesc(data, 400); 
    37                 moveFloatDesc(oEv); 
    38             } ); 
    39         } 
    4033    </script>     
    4134    <!--[if lt IE 7.]> 
  • trunk/templates/tmpl_uni/thumbnail_couple.html

    r9722 r9848  
    11<div class="thumbnail_block" style="float:__sys_thb_float__;width:__sys_thb_width__px;height:__sys_thb_height__px;"> 
    2     <a href="__usr_profile_url__" style="cursor:pointer;" onclick="javascript: getUserInfo(this, __iProfId__, event); return false;"> 
     2    <a href="__usr_profile_url__" style="cursor:pointer;" onclick="showFloatUserInfo(__iProfId__, event); return false;"> 
    33        <div class="thumbnail_image_couple" style="float:left;width:__sys_img_width1__px;height:__sys_img_height1__px;"> 
    44            <img src="<bx_image_url:spacer.gif />" style="float:left;background-image:url(__usr_thumb_url0__);width:__sys_cpl_img_width__px;height:__sys_cpl_img_height__px; border-top-width:2px; border-left-width:2px; border-right-width:0px; border-bottom-width:0px;" alt="__usr_thumb_title0__" title="__usr_thumb_title0__" /> 
  • trunk/templates/tmpl_uni/thumbnail_single.html

    r9722 r9848  
    11<div class="thumbnail_block" style="float:__sys_thb_float__;width:__sys_thb_width__px;height:__sys_thb_height__px;"> 
    22    <div class="thumbnail_image" style="width:__sys_img_width1__px;height:__sys_img_height1__px;"> 
    3         <a href="__usr_profile_url__" onclick="javascript: getUserInfo(this, __iProfId__, event); return false;"> 
     3        <a href="__usr_profile_url__" onclick="showFloatUserInfo(__iProfId__, event); return false;"> 
    44            <img src="<bx_image_url:spacer.gif />" style="background-image:url(__usr_thumb_url0__); width:__sys_img_width__px;height:__sys_img_height__px;" alt="__usr_thumb_title0__" title="__usr_thumb_title0__" /> 
    55            <img src="__sys_status_url__" alt="__sys_status_title__" title="__sys_status_title__" class="sys-online-offline" /> 
Note: See TracChangeset for help on using the changeset viewer.