コード例 #1
0
		<input type="text" name="parameter" id="parameter" placeholder="parameter=value"  value="<?php 
echo $pr['parameter'];
?>
" />
	</p>
	<p>
		<label><span>Auto subscribe</span></label>
		<input type="checkbox" name="auto_subscribe_enabled" value="1" <?php 
if ($pr['auto_subscribe_enabled'] == '1') {
    echo 'checked="checked"';
}
?>
 /> Enable auto subscribe <br />
		<?php 
$m = new Mailing($db);
$ms = $m->getMailings();
$mailings = array();
foreach ($ms as $mal) {
    $mailings[$mal['type']][] = $mal;
}
foreach ($mailings as $network => $lists) {
    ?>

			<fieldset>
				<legend><?php 
    echo ucfirst($network);
    ?>
</legend>
				<input type="radio" name="auto_subscribe_lists[<?php 
    echo $network;
    ?>
コード例 #2
0
<?php

require 'include/config.php';
require 'include/class.mailing.php';
$n = new Mailing($db);
$nets = $n->getMailings();
include 'include/top.php';
?>

<table class="tablesorter">
	<thead>
		<tr>
			<th>ID</th>
			<th>Title</th>
			<th>List ID</th>
			<th>URL</th>
			<th>Autoresponder</th>
		</tr>
	</thead>
	<tbody>
		<?php 
foreach ($nets as $net) {
    ?>

			<tr>
				<td><?php 
    echo $net['id'];
    ?>
</td>
				<td><a href="mailing_edit.php?id=<?php 
    echo $net['id'];