Changeset 9848
- Timestamp:
- 03/30/09 01:35:41 (3 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 8 edited
-
cache (modified) (1 prop)
-
inc/admin.inc.php (modified) (1 diff)
-
inc/js/functions.js (modified) (3 diffs)
-
inc/js/jquery.dolPopup.js (added)
-
inc/params.inc.php (modified) (1 diff)
-
short_profile_info.php (modified) (1 diff)
-
templates/base/_header.html (modified) (2 diffs)
-
templates/tmpl_uni/thumbnail_couple.html (modified) (1 diff)
-
templates/tmpl_uni/thumbnail_single.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/cache
- Property svn:ignore
-
old new 1 1 tiny_mce_*.gz 2 user*.php2 *.php 3 3 *.inc
-
- Property svn:ignore
-
trunk/inc/admin.inc.php
r9781 r9848 52 52 </div> 53 53 54 <img src="$sCloseImg" class="login_ajx_close" onclick="$('#login_div').hide();return false;"/>54 <img src="$sCloseImg" class="login_ajx_close" /> 55 55 </div> 56 56 BLAH; 57 57 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 ); 66 62 67 63 echo $sMemberLoginFormAjx; -
trunk/inc/js/functions.js
r9681 r9848 750 750 return false; 751 751 752 //alert( ('#page_block_' + iBlockID + ' .boxContent') + ' ' + $('#page_block_' + iBlockID + ' .boxContent').length );753 754 752 getHtmlData($('#page_block_' + iBlockID), (sUrl + '&pageBlock=' + iBlockID)); 755 753 … … 794 792 } 795 793 796 function showPopupLoginForm () {794 function showPopupLoginFormOld() { 797 795 if ($('#login_div').length) { 798 796 //alert(1); … … 838 836 } 839 837 838 function 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 859 function 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 840 875 function 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) 844 879 return false; 845 880 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; 849 885 iTop = iTop > 0 ? iTop : 0; 850 iLeft = iLeft > 0 ? iLeft : 0; 851 852 $(el).css({ 886 887 $el.css({ 853 888 position: 'fixed', 854 top: iTop,855 left: iLeft889 left: iLeft, 890 top: iTop 856 891 }); 857 892 } -
trunk/inc/params.inc.php
r9789 r9848 50 50 'login.js', 51 51 'ie7_flash_fix.js', 52 'BxDolVoting.js' 52 'BxDolVoting.js', 53 'jquery.dolPopup.js' 53 54 )); 54 55 -
trunk/short_profile_info.php
r9768 r9848 47 47 ?> 48 48 <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" /> 50 50 </div> 51 51 <? 52 52 $sClose = ob_get_clean(); 53 53 $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 ); 60 57 } 61 58 -
trunk/templates/base/_header.html
r9789 r9848 25 25 __dol_images__ 26 26 __dol_lang__ 27 <script type="text/javascript" language="javascript">27 <script type="text/javascript" language="javascript"> 28 28 var site_url = '<bx_url_root />'; 29 29 … … 31 31 $( 'div.RSSAggrCont' ).dolRSSFeed(); 32 32 } ); 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 }40 33 </script> 41 34 <!--[if lt IE 7.]> -
trunk/templates/tmpl_uni/thumbnail_couple.html
r9722 r9848 1 1 <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;"> 3 3 <div class="thumbnail_image_couple" style="float:left;width:__sys_img_width1__px;height:__sys_img_height1__px;"> 4 4 <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 1 1 <div class="thumbnail_block" style="float:__sys_thb_float__;width:__sys_thb_width__px;height:__sys_thb_height__px;"> 2 2 <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;"> 4 4 <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__" /> 5 5 <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.