Ejemplo n.º 1
0
<?
include 'functions.inc.php';
$mailster = new Mailster($_GET["name"]);
$mailster->delete();
echo "Deleted!";
?>
Ejemplo n.º 2
0
<? 

include 'functions.inc.php';

$name=$_POST["name"];
$display_name=$_POST["display_name"];
$address=$_POST["address"];
$emails=$_POST["emails"];

Mailster::save($name, $display_name, $address, $emails);

echo "Saved.";
echo "<br/>";
echo "<a href='list.php'>Back to list</a>";
?>
Ejemplo n.º 3
0
<? 
include 'functions.inc.php';
$mailster = new Mailster($_GET["name"]);
?>
<html>
<head>
	<title>Edit <?= $mailster->display_name() ?></title>
	<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>Editing Mailing List '<?= $mailster->display_name() ?>'</h1>
<? form($mailster->name(), $mailster->display_name(), $mailster->address(), $mailster->emails()); ?>
</body>
</html>
Ejemplo n.º 4
0
<? 
include 'functions.inc.php';
$mailster = new Mailster($_GET["name"]);
?>
<html>
<head>
	<title>Using <?= $mailster->display_name() ?></title>
	<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
	<h1>Using <?= $mailster->display_name() ?></h1>

	<form enctype="multipart/form-data" action="send.php" method="post">
		<input type="hidden" name="name" value="<?= $mailster->name() ?>">
		<table>
			<tr>
				<td>From:</td><td><input type="text" disabled="true" value="<?= $mailster->from() ?>">
			<tr>
				<td>Subject:</td><td><input type="text" name="subject"></td>
			</tr>
			<tr>
				<td>Body:</td><td><textarea name="body" cols="80" rows="30"></textarea></td>
			</tr>
			<tr>
				<td>Attachment:</td><td><input name="attachment" type="file" /></td>
			</tr>
			<tr>
				<td><input type="submit" value="Send!"/></td>
			</tr>
		</table>
	</form>