function getPageMainCode()
{
    global $oTemplConfig;
    $ret = '';
    $aPhotoConf = array();
    $aPhotoConf['profileID'] = (int) $_REQUEST['ID'];
    $aPhotoConf['visitorID'] = (int) $_COOKIE['memberID'];
    $aPhotoConf['isOwner'] = $aPhotoConf['profileID'] == $aPhotoConf['visitorID'] ? true : false;
    $check_res = checkAction($aPhotoConf['visitorID'], ACTION_ID_USE_GALLERY);
    if ($check_res[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED) {
        $ret = '
			<table width="100%" cellpadding="4" cellspacing="4" border="0">
				<tr>
					<td align="center">' . $check_res[CHECK_ACTION_MESSAGE] . '</td>
				</tr>
			</table>';
        return $ret;
    }
    $oMedia = new BxDolMedia();
    $oMedia->iProfileID = $aPhotoConf['profileID'];
    $oMedia->sMediaType = isset($_REQUEST['show']) ? $_REQUEST['show'] : 'video';
    $oMedia->BxDolMedia();
    $oMedia->getActiveMediaArray();
    $ret .= ProfileDetails($oMedia->iProfileID);
    $ret .= '<div class="clear_both"></div>';
    if ($oTemplConfig->customize['media_gallery']['showMediaTabs']) {
        $ret .= '<div class="choiseBlock">';
        $ret .= getMediaTabs($oMedia->sMediaType, $oMedia->aMediaConfig);
        $ret .= '</div>';
    }
    //print_r( $oMedia -> aMedia);
    $i = 1;
    foreach ($oMedia->aMedia as $aValue) {
        $ret .= '<div class="mediaBlock">';
        $ret .= '<div class="mediaTitleVA">';
        $ret .= process_line_output($aValue['med_title']);
        $ret .= '</div>' . "\n";
        $ret .= '<div class="mediaActions">';
        $ret .= '<span>';
        $ret .= '<a href="' . $oMedia->getMediaLink($aValue) . '">';
        $ret .= _t('_download');
        $ret .= '</a>';
        $ret .= '</span>';
        /*
        $ret .= '<span>';
        	$ret .= '<a href="' . $_SERVER['PHP_SELF'] . '?show=' . $oMedia -> sMediaType . '&amp;action=delete&amp;mediaID=' . $aValue['med_id'] . '">';
        		$ret .= _t('_delete');
        	$ret .= '</a>';
        $ret .= '</span>';
        */
        $ret .= '</div>' . "\n";
        $ret .= '</div>' . "\n";
        if ($i >= $oMedia->aMediaConfig['max'][$oMedia->sMediaType]) {
            break;
        }
        $i++;
    }
    $ret .= '';
    return $ret;
}
/**
 * page code function
 */
function PageCompPageMainCode()
{
    global $site;
    global $short_date_format;
    $messageID = (int) $_GET['message'];
    $memberID = (int) $_COOKIE['memberID'];
    $sender_sql = "SELECT `Sender` FROM `Messages` WHERE `Recipient` = '{$memberID}' AND `ID` = '{$messageID}'";
    $sender_arr = db_arr($sender_sql);
    $senderID = (int) $sender_arr['Sender'];
    $message_sql = "SELECT m.`Text`, m.`Subject`, DATE_FORMAT( m.`Date`, '{$short_date_format}' ) AS `Date`, p.Status FROM `Messages` AS m LEFT JOIN Profiles AS p ON m.Sender = p.ID  WHERE m.`ID` = '{$messageID}' AND `Recipient` = '{$memberID}'";
    // Did you find me, Smoge? I see you...
    $message_arr = db_arr($message_sql);
    $ret = '';
    $ret .= '<div class="profile_ditails_block">';
    $ret .= ProfileDetails($senderID);
    $ret .= '<div class="clear_both"></div>';
    $ret .= '</div>';
    $ret .= '<div class="m_block">';
    $ret .= '<div class="m_subject_date">';
    $ret .= '<div class="name">';
    $ret .= _t('_Date') . ':';
    $ret .= '</div>';
    $ret .= '<div class="value">';
    $ret .= $message_arr['Date'];
    $ret .= '</div>';
    $ret .= '<div class="name">';
    $ret .= _t('_Subject') . ':';
    $ret .= '</div>';
    $ret .= '<div class="value">';
    $ret .= process_smiles(process_line_output($message_arr['Subject']));
    $ret .= '</div>';
    $ret .= '</div>';
    $ret .= '<div class="m_text">';
    $ret .= process_html_output($message_arr['Text'], 150);
    $ret .= '</div>';
    $ret .= '<div class="clear_both"></div>';
    $ret .= '</div>';
    if ($message_arr['Status'] == 'Active') {
        $ret .= '<div class="reply">';
        $ret .= '<a href="' . $site['url'] . 'compose.php?ID=' . $senderID . '&messageID=' . $messageID . '&amp;subject=' . process_smiles(process_line_output($message_arr['Subject'])) . '">Reply</a>';
        $ret .= '</div>';
        $ret .= '<div class="reply">';
        $ret .= "<a onClick=\"javascript:window.open( 'list_pop.php?action=spam&ID=" . $senderID . "', '', 'width=500,height=200,menubar=no,status=no,resizeable=no,scrollbars=no,toolbar=no,location=no' );\" href=\"javascript:void(0)\">" . _t('_Spam report') . "</a>";
        $ret .= '</div>';
        $ret .= '<div class="reply">';
        $ret .= '<a href="messages_inbox.php?action=delete&message=' . $messageID . '">' . _t('_Delete') . '</a>';
        $ret .= '</div>';
        $ret .= '<div class="clear_both"></div>';
    } else {
        $ret .= '';
    }
    //$ret .= '</div>';
    //####################################################
    $ret .= '<div style="position:relative; height:20px;"></div>';
    $ret .= PageCorespondence($memberID, $senderID);
    $ret .= '<div class="clear_both"></div>';
    return $ret;
}
Exemplo n.º 3
0
function PageCompPageMainCode()
{
    global $site;
    global $oTemplConfig;
    $aPhoto = getVotingItem();
    $check_res = checkAction($_COOKIE['memberID'], ACTION_ID_RATE_PHOTOS);
    if ($check_res[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED) {
        $ret = '
			<table width="100%" cellpadding="4" cellspacing="4" border="0">
				<tr>
					<td align="center">' . $check_res[CHECK_ACTION_MESSAGE] . '</td>
				</tr>
			</table>';
        return $ret;
    }
    $ret = '';
    if ($_GET['prev_id']) {
        $ret .= showPreviousRated((int) $_GET['prev_id']);
    }
    if ($oTemplConfig->customize['rate']['showSexSelector']) {
        $ret .= '<div class="rate_sex_form">';
        $ret .= '<form method="post" name="FormVote" action="' . $_SERVER['PHP_SELF'] . '">';
        $ret .= '<span>';
        $ret .= _t("_Show me");
        $ret .= '</span>';
        $ret .= '<span>';
        $ret .= '<select name="showme" onchange="document.forms[\'FormVote\'].submit()">' . "\n";
        $selected_all = $_REQUEST['showme'] == 'all' || strlen(trim($_REQUEST['showme'])) == 0 ? ' selected="selected" ' : '';
        $ret .= '<option value="all"' . $selected_all . '>' . _t("_all") . '</option>';
        $ret .= SelectOptions('Sex', $_REQUEST['showme']);
        $ret .= '</select>';
        $ret .= '</span>';
        $ret .= '</form>';
        $ret .= '</div>';
    }
    if (empty($aPhoto)) {
        $ret .= _t_action('_there_is_no_photo_that_you_can_rate');
    } else {
        if ($oTemplConfig->customize['rate']['showProfileInfo']) {
            $ret .= '<div class="clear_both"></div>';
            $ret .= ProfileDetails($aPhoto['med_prof_id']);
            $ret .= '<div class="clear_both"></div>';
        }
        $ret .= getRatingPhoto($aPhoto);
        $oVotingView = new BxTemplVotingView('media', (int) $aPhoto['med_id']);
        if ($oVotingView->isEnabled()) {
            $sUrlAdd = '';
            if ($_REQUEST['showme']) {
                $sUrlAdd .= 'showme=' . $_REQUEST['showme'] . '&';
            }
            $ret .= "\r\n\t\t\t\t<script>\r\n\t\t\t\t\tBxDolVoting.prototype.onvote = function (fRate, iCount)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdocument.location = '{$site['url']}rate.php?{$sUrlAdd}prev_id=' + this._iObjId;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tBxDolVoting.prototype.onvotefail = function ()\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdocument.location = '{$site['url']}rate.php?{$sUrlAdd}prev_id=' + this._iObjId;\r\n\t\t\t\t\t}\r\n\t\t\t\t</script>";
            $ret .= '<div style="margin-left:55px">' . $oVotingView->getBigVoting() . '</div>';
        }
    }
    return $ret;
}
/**
 * page code function
 */
function PageCompPageMainCode()
{
    global $site;
    $messageID = (int) $_GET['message'];
    $memberID = (int) $_COOKIE['memberID'];
    $sender_sql = "SELECT `Recipient` FROM `Messages` WHERE `Sender` = '{$memberID}' AND `ID` = '{$messageID}'";
    $sender_arr = db_arr($sender_sql);
    $senderID = $sender_arr['Recipient'];
    $message_sql = "SELECT m.`Text`, m.`Subject`, DATE_FORMAT( m.`Date`, '%Y-%m-%d' ) AS `Date`, p.Status FROM `Messages` AS m LEFT JOIN Profiles AS p ON m.Recipient = p.ID WHERE m.`ID` = '{$messageID}'";
    // AND`Sender` = '$senderID'";
    $message_arr = db_arr($message_sql);
    $ret = '';
    $ret .= '<div class="profile_ditails_block">';
    $ret .= ProfileDetails($senderID);
    $ret .= '<div class="clear_both"></div>';
    $ret .= '</div>';
    $ret .= '<div class="m_block">';
    $ret .= '<div class="m_subject_date">';
    $ret .= '<div class="name">';
    $ret .= _t('_Date') . ':';
    $ret .= '</div>';
    $ret .= '<div class="value">';
    $ret .= $message_arr['Date'];
    $ret .= '</div>';
    $ret .= '<div class="name">';
    $ret .= _t('_Subject') . ':';
    $ret .= '</div>';
    $ret .= '<div class="value">';
    $ret .= process_smiles(process_line_output($message_arr['Subject']));
    $ret .= '</div>';
    $ret .= '</div>';
    $ret .= '<div class="m_text">';
    $ret .= process_html_output($message_arr['Text'], 80);
    $ret .= '</div>';
    $ret .= '<div class="clear_both"></div>';
    $ret .= '</div>';
    //$ret .= '<div class="reply_block">';
    if ($message_arr['Status'] == 'Active') {
        $ret .= '<div class="reply">';
        $ret .= '<a href="' . $site['url'] . 'compose.php?ID=' . $senderID . '">Write new Message</a>';
        $ret .= '</div>';
        $ret .= '<div class="clear_both"></div>';
    } else {
        $ret .= '';
    }
    //####################################################
    $ret .= '<div style="position:relative; height:20px;"></div>';
    $ret .= PageCorespondence($memberID, $senderID);
    $ret .= '<div class="clear_both"></div>';
    return $ret;
}
function getPageMainCode()
{
    $aPhotoConf = array();
    $aPhotoConf['profileID'] = (int) $_REQUEST['ID'];
    $aPhotoConf['visitorID'] = (int) $_COOKIE['memberID'];
    $aPhotoConf['isOwner'] = $aPhotoConf['profileID'] == $aPhotoConf['visitorID'] ? true : false;
    if ($aPhotoConf['isOwner']) {
        header("Location:upload_media.php?show=photos");
        exit;
    }
    $check_res = checkAction($aPhotoConf['visitorID'], ACTION_ID_VIEW_PHOTOS);
    if ($check_res[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED) {
        $ret = '
			<table width="100%" cellpadding="4" cellspacing="4" border="0">
				<tr>
					<td align="center">' . $check_res[CHECK_ACTION_MESSAGE] . '</td>
				</tr>
			</table>';
        return $ret;
    }
    $oPhotos = new ProfilePhotos($aPhotoConf['profileID']);
    $oPhotos->getActiveMediaArray();
    $ret = '';
    if ($_REQUEST['voteSubmit'] && $_REQUEST['photoID']) {
        $oPhotos->setVoting();
        header('Location:' . $_SERVER['PHP_SELF'] . '?ID=' . $oPhotos->iProfileID . '&photoID=' . $_REQUEST['photoID']);
    }
    if (!$aPhotoConf['isOwner']) {
        $ret .= ProfileDetails($oPhotos->iProfileID);
        $ret .= '<div class="clear_both"></div>';
    }
    if (0 < $_REQUEST['photoID']) {
        $iPhotoID = $_REQUEST['photoID'];
        $ret .= $oPhotos->getMediaPage($iPhotoID);
    } else {
        $ret .= $oPhotos->getMediaPage();
    }
    return $ret;
}
function PrintGuestbook()
{
    global $logged;
    global $site;
    global $records_on_page;
    global $date_format;
    global $oTemplConfig;
    $ret = "";
    $owner = $_REQUEST['owner'] ? (int) $_REQUEST['owner'] : (int) $_COOKIE['memberID'];
    $id = $_COOKIE['memberID'] ? $_COOKIE['memberID'] : 0;
    $from = (int) $_REQUEST['from'];
    if (!$owner) {
        return $ret;
    }
    // Print owner's information
    $ret .= "<br />\r\n\t\t<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\r\n\t\t\t<tr>\r\n\t\t\t\t<td colspan=\"2\">" . ProfileDetails($owner) . "</td>\r\n\t\t\t</tr>\r\n\t\t</table>\n";
    // Print page controls
    $records_num = db_arr("SELECT COUNT( * ) AS `rec_num` FROM `Guestbook` WHERE `Recipient` = '{$owner}'");
    if ($records_num['rec_num'] > $records_on_page) {
        $ret .= "<br />\r\n\t\t\t<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\" width=\"100%\">\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<td align=\"center\" class=\"text\">";
        if ($from >= $records_on_page) {
            $nfrom = 0 < $from - $records_on_page ? $from - $records_on_page : 0;
            $ret .= "\r\n\t\t\t\t\t\t<a href=\"guestbook.php?owner={$owner}&from={$nfrom}\">&lt;&lt;&nbsp;</a>";
        }
        $i = 0;
        $pages = 1;
        while ($i < $records_num['rec_num']) {
            if ($i == $from) {
                $ret .= "\r\n\t\t\t\t\t\t{$pages}&nbsp;";
            } else {
                $ret .= "\r\n\t\t\t\t\t\t<a href=\"guestbook.php?owner={$owner}&from=" . $i . "\">{$pages}&nbsp;</a>";
            }
            $i = $i + $records_on_page;
            $pages++;
        }
        if ($records_num['rec_num'] > $from + $records_on_page) {
            $nfrom = $from + $records_on_page;
            $ret .= "\r\n\t\t\t\t\t\t<a href=\"guestbook.php?owner={$owner}&from={$nfrom}\">&nbsp;>></a>";
        }
        $ret .= "\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>\r\n\t\t\t</table>\n";
    }
    // Print guestbook entries
    $query = "\r\n\t\tSELECT\r\n\t\t\t`Guestbook`.`ID`,\r\n\t\t\tDATE_FORMAT(`Date`, '{$date_format}' ) AS 'Date',\r\n\t\t\t`IP`,\r\n\t\t\t`Sender`,\r\n\t\t\t`Profiles`.`NickName`,\r\n\t\t\t`Recipient`,\r\n\t\t\t`Text`,\r\n\t\t\t`New`\r\n\t\tFROM `Guestbook`\r\n\t\tLEFT JOIN `Profiles` ON\r\n\t\t\t`Profiles`.`ID` = `Sender`\r\n\t\tWHERE\r\n\t\t\t`Recipient`='{$owner}'\r\n\t\tORDER BY `Date` DESC\r\n\t\tLIMIT {$from}, {$records_on_page}\r\n\t\t";
    $records_res = db_res($query);
    if ($records_num['rec_num'] > 0) {
        $ret .= "<br />\r\n\t\t\t<table class=\"gb_msgs_table\">\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<th width=\"20%\">" . _t("_From") . "</th>\r\n\t\t\t\t\t<th width=\"80%\">" . _t("_Text") . "</th>\r\n\t\t\t\t</tr>";
        $tr_class = 'odd';
        while ($records_arr = mysql_fetch_array($records_res)) {
            $record_text = $records_arr['Text'];
            $ret .= "\r\n\t\t\t\t<tr class=\"gb_msg_row_{$tr_class}\">\r\n\t\t\t\t\t<td width=\"20%\" class=\"picPosition\">" . get_member_thumbnail($records_arr['Sender'], 'none') . '<b><a href="' . getProfileLink($owner) . '">' . $records_arr['NickName'] . '</a></b><br />' . $records_arr['Date'] . "</td>\r\n\t\t\t\t\t<td width=\"80%\" valign=\"top\">";
            if ($owner == $id || $logged['admin']) {
                $ret .= "\r\n\t\t\t\t\t\t\t<div class=\"gb_msg_actions\">\r\n\t\t\t\t\t\t\t\t<a href=\"guestbook.php?owner={$owner}&action=delete&delete_id={$records_arr['ID']}\">" . _t("_Delete") . "</a>\r\n\t\t\t\t\t\t\t</div>";
            }
            $ret .= "\r\n\t\t\t\t\t\t\t<div>{$record_text}</div>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t</td>\r\n\t\t\t\t</tr>";
            $tr_class = $tr_class == 'odd' ? 'even' : 'odd';
        }
        $ret .= "\r\n\t\t\t</table>";
    }
    // Print add new entry link
    $ret .= "\r\n        \t<div class=\"add_link\">\r\n\t\t\t\t<a href=\"{$_SERVER['PHP_SELF']}?owner={$owner}&amp;action=show_add\">" . _t("_Add record") . "</a>\r\n\t\t\t</div>";
    return $ret;
}
Exemplo n.º 7
0
/**
* page code function
*/
function PageCompPageMainCode()
{
    global $site;
    $ret = '';
    $en_inbox_notify = getParam("enable_inbox_notify");
    $en_dest_choice = getParam("enable_msg_dest_choice");
    $free_mode = getParam("free_mode");
    $member['ID'] = (int) $_COOKIE['memberID'];
    $member['Password'] = $_COOKIE['memberPassword'];
    $recipientID = getID($_REQUEST['ID'], 0);
    $recipient = getProfileInfo($recipientID);
    $contact_allowed = contact_allowed($member['ID'], $recipientID);
    // Check if credits could be used for message sending
    $could_use_credits = false;
    // Check if member can send messages
    $check_res = checkAction($member['ID'], ACTION_ID_SEND_MESSAGE);
    if ($check_res[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED && !$could_use_credits && !$contact_allowed) {
        $ret = '
			<table width="100%" cellpadding="4" cellspacing="4" border="0">
				<tr>
					<td align="center">' . $check_res[CHECK_ACTION_MESSAGE] . '</td>
				</tr>
			</table>';
        return $ret;
    }
    // Set if credits should be used anyway
    $must_use_credits = $could_use_credits && $check_res[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED;
    //ob_start();
    $ret = '';
    if ($_POST['action'] == "send" && strlen($_POST['text'])) {
        $action_result = "";
        // Check if recipient found
        if (!$recipient) {
            $ret = "\r\n\t\t\t\t<table width=\"100%\" cellpadding=\"4\" cellspacing=\"4\" align=\"center\">\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td align=center>" . _t("_COMPOSE_REJECT_MEMBER_NOT_FOUND") . "</td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t</table>\n";
            return $ret;
        }
        // Perform sending
        $send_result = MemberSendMessage($member, $recipient, $must_use_credits);
        switch ($send_result) {
            case 1:
                $action_result .= _t_err("_FAILED_TO_SEND_MESSAGE");
                $hide_form = '0';
                break;
            case 3:
                $action_result .= _t_err("_You have to wait for PERIOD minutes before you can write another message!", 1);
                $hide_form = '1';
                break;
            case 5:
                $action_result .= _t_err("_FAILED_TO_SEND_MESSAGE_BLOCK");
                $hide_form = '0';
                break;
            case 10:
                $action_result .= _t_err("_FAILED_TO_SEND_MESSAGE_NOT_ACTIVE");
                $hide_form = '0';
                break;
            case 21:
                $action_result .= _t_err("_FAILED_TO_SEND_MESSAGE_NO_CREDITS");
                $hide_form = '0';
                break;
            default:
                $action_result .= _t_action("_MESSAGE_SENT");
                $hide_form = '1';
                break;
        }
    }
    $ret .= '<div class="com_box"">';
    if (strlen($action_result)) {
        $ret .= $action_result;
    }
    if ($recipient && $hide_form != '1') {
        $ret .= '<div class="clear_both"></div>';
        $ret .= ProfileDetails($recipient['ID']);
        $ret .= '<div class="clear_both"></div>';
    }
    if ('1' != $hide_form) {
        $sSubject = isset($_REQUEST['subject']) ? 'Re: ' . process_db_input($_REQUEST['subject']) : '';
        ob_start();
        ?>
		<script type="text/javascript">
			<!--
			function changeDest(control)
			{
				if ( control.value == 'lovemail' )
				{
					z = document.getElementById("id0004");
					z.disabled = false;
				}
				else
				{
					xxx = document.getElementById("id0004");
					xxx.disabled = true;
				}
			}
			
			function checkForm()
			{
				var el;
				var hasErr = false;
				var fild = "";
				el = document.getElementById("inpSubj");
				if( el.value.length < 3 )
				{
					el.style.backgroundColor = "pink";
					el.style.border = "1px solid silver";
					hasErr = true;
					fild += " <?php 
        echo _t('_Subject');
        ?>
";
				}
				else
					el.style.backgroundColor = "#fff";
				
				if (hasErr)
				{
					alert( "<?php 
        echo _t('_please_fill_next_fields_first');
        ?>
!" + fild )
					return false;
				}
				else
				{
					return true;
				}
				return false;
			}
			//-->
		</script>
		
		<form name="compose_form" method="post"
		  action="<?php 
        echo $_SERVER['PHP_SELF'] . ($recipient ? "?ID={$recipient['ID']}" : "");
        ?>
" onsubmit="return checkForm();">
			<table class="composeTable">
				<tr>
		<?php 
        if (!$recipient) {
            ?>
					<td class="form_label"><?php 
            echo _t("_SEND_MSG_TO");
            ?>
</td>
					<td class="form_value">
						<input class="inpMessageTo" type="text" name="ID" />
					</td>
				</tr>
				<tr>
			<?php 
        }
        ?>
					<td class="form_label"><?php 
        echo _t('_Subject');
        ?>
:</td>
					<td class="form_value">
						<input class="inpSubj" id="inpSubj" name="mes_subject" type="text" value="<?php 
        echo $sSubject;
        ?>
" />
					</td>
				</tr>
				<tr>
					<td class="form_label"><?php 
        echo _t("_Message text");
        ?>
:</td>
					<td class="form_value">
						<textarea class="blogText" id="blogText" name="text"></textarea>
					</td>
				</tr>
		<?php 
        if ($_POST['notify'] == 'on') {
            $notify_sel = "checked";
        } else {
            $notify_sel = "";
        }
        switch ($_POST['sendto']) {
            case 'email':
                $email_sel = ' checked="checked" ';
                $lovemail_sel = "";
                $both_sel = "";
                break;
            case 'lovemail':
                $email_sel = "";
                $lovemail_sel = ' checked="checked"';
                $both_sel = "";
                break;
            default:
                $email_sel = "";
                $lovemail_sel = "";
                $both_sel = ' checked="checked"';
                break;
        }
        if ('on' == $en_dest_choice) {
            $javascript = $en_inbox_notify ? "" : "onClick=\"javascript: changeDest(this);\"";
            $notify_dis = "";
            if (!$lovemail_sel && $en_dest_choice) {
                $notify_sel = "";
                $notify_dis = ' disabled="disabled"';
            }
            ?>
				<tr>
					<td>&nbsp;</td>
					<td nowrap="nowrap">
						<input type="radio" id="id0001" name="sendto" value="email"  <?php 
            echo $javascript . $email_sel;
            ?>
 />
						<label for="id0001"><?php 
            echo _t("_Send to e-mail");
            ?>
</label>
					</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td>
						<input type="radio" id="id0002" name="sendto" value="lovemail" <?php 
            echo $javascript . $lovemail_sel;
            ?>
 />
						<label for="id0002"><?php 
            echo _t("_Send to communicator");
            ?>
</label>
						
						<input type="checkbox" id="id0004" name="notify" <?php 
            echo $notify_sel . $notify_dis;
            ?>
 />
						<label for="id0004"><?php 
            echo _t("_Notify by e-mail");
            ?>
</label>
					</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td nowrap="nowrap" colspan="3" align="left" style="padding-left:5px;">
						<input type="radio" id="id0003" name="sendto" value="both" <?php 
            echo $javascript . $both_sel;
            ?>
 />
						<label for=id0003> <?php 
            echo _t("_both2");
            ?>
</label>
					</td>
				</tr>
			<?php 
        } else {
            ?>
				<input type="hidden" name="sendto" value="lovemail" />
			<?php 
        }
        ?>
				<tr>
					<td colspan="2" class="form_colspan">
						<input class="button" type="submit" value=" <?php 
        echo _t("_Send");
        ?>
" />
					</td>
				</tr>
			</table>
			<input type="hidden" name="action" value="send" />
		</form>
		
		<?php 
        $ret .= ob_get_clean();
    } else {
        $ret .= '<div style="margin:15px 0px; text-align:center;">' . _t('_to_compose_new_message', $recipient['NickName'], $recipient['ID'], $site['url']) . '</div>';
    }
    $ret .= '</div>';
    return $ret;
}