-
Notifications
You must be signed in to change notification settings - Fork 2
/
_list_form.php
33 lines (28 loc) · 980 Bytes
/
_list_form.php
1
<form method=POST> <fieldset> <p> <label for="id">ID</label> <input id="id" name="id" type="text" value="<?=isset($l->id) ? $l->id : NOT_SET?>" disabled> </p> <p> <label for="name"><?=NAME?></label> <input id="name" name="name" type="text" value="<?=isset($l->name) ? $l->name : ''?>"> </p> <p> <label for="email_addresses"><?=EMAIL_ADDRESSES?></label> <?php $email_addresses_plain_text = ''; if (isset($l->id)) { $email_addresses = User::all_where("list_id = {$l->id}"); foreach ($email_addresses as $em) { $email_addresses_plain_text .= "$em->email\r\n"; } } ?> <textarea id="email_addresses" name="email_addresses" rows=15><?=$email_addresses_plain_text?></textarea> </p> <p> <input id="submit" name="submit" type="submit" value="<?=(isset($_GET['id'])) ? UPDATE_LIST : CREATE_LIST?>"> </p> </fieldset></form>