sMediaType = 'photo'; $this -> iProfileID = $iProfileID; parent::BxDolMedia(); $aMember = getProfileInfo( $this -> iProfileID ); $sSex = $aMember['Sex']; //$sSex = db_value( "SELECT `Sex` FROM `Profiles` WHERE `ID` = '{$this -> iProfileID}'" ); if( $sSex == 'male' or $sSex == 'Male' ) { $this -> sSexIcon = 'man_small.gif'; $this -> sSexPic = 'man_big.gif'; } elseif( $sSex == 'female' or $sSex == 'Female' ) { $this -> sSexIcon = 'woman_small.gif'; $this -> sSexPic = 'woman_big.gif'; } else { $this -> sSexIcon = 'visitor_small.gif'; $this -> sSexPic = 'visitor_big.gif'; } } function getMediaPage( $iMediaID = '' ) { //print_r( $this -> aMedia); $ret = ''; //$ret .= print_r($_POST, true); $bShowMenu = false; $bWithoutJS = false; if( 0 < $this -> iMediaCount ) { $iMediaID = ( 0 < $iMediaID ) ? $iMediaID : $this -> aMedia['0']['PrimPhoto']; $aCurPhoto = $this -> getElementArrayByID($iMediaID); if( empty( $aCurPhoto ) ) { $sPhotoUrl = getTemplateIcon( $this -> sSexPic ); $bShowMenu = false; $bWithoutJS = true; } else { $ret .= '