Ejemplo n.º 1
0
					$selected = $default_recipient == $row['id'] ? 'SELECTED' : '';

					echo '<option '.$selected.' value='.$row['id'].'>'.$row['display_name'].'</option>';

				}

				echo '</select>';

			echo '</div>';

			$subject = ($action == 'reply' && isset($original)) ? $original_subject : "Subject of mail";

			$message = ($action == 'reply' && isset($original)) ? $original_message : "Message...";

			echo $wps_ui->mail_subject($subject, "my-compose-form-subject").'<br />';

			echo $wps_ui->mail_message($message, "my-compose-form-message").'<br />';

			echo $wps_ui->mail_send_button("Send", "my-submit-button");

		echo '</div>';

		echo '</form>';

		// Inbox or Sent

		$override_show_state = $action == 'reply' ? 'style="display:none;"' : '';

		echo '<div '.$override_show_state.' id="my-inbox">';
Ejemplo n.º 2
0
				// And show the drop down list of friends (you could choose a different selection method if you prefer)

				echo '<select name="my-recipient">';

				foreach ($friends_array as $i => $row) {				

					echo '<option value='.$row['id'].'>'.$row['display_name'].'</option>';

				}

				echo '</select>';

			echo '</div>';

			echo $wps_ui->mail_subject("Subject of mail", "my-compose-form-subject").'<br />';

			echo $wps_ui->mail_message("Message...", "my-compose-form-message").'<br />';

			echo $wps_ui->mail_send_button("Send", "my-submit-button");

		echo '</div>';

		echo '</form>';

		// Inbox	

		echo '<div id="my-inbox">';

			echo '<div id="my-inbox-header">';