$filter = get_http_var('filter', 'unapproved'); $email_ids = get_http_var('email_id'); admPageHeader(); ?> <h2>Journo email addresses</h2> <p>Select addresses with the checkboxes, then select the action you want to perform at the top or bottom of the page.</p> <?php EmitFilterForm($filter); switch ($action) { case "approve": SetBios($email_ids, 't'); break; case "unapprove": SetBios($email_ids, 'f'); break; } EmitAddressList($filter); admPageFooter(); /********************************/ function EmitFilterForm($filter) { $f = array('all' => 'All addresses', 'approved' => 'Approved addresses only', 'unapproved' => 'Unapproved addresses only'); ?> <form method="get" action="/adm/journo-email"> Show <?php echo form_element_select("filter", $f, $filter); ?> <input type="submit" name="submit" value="Find" />
<p>Select bios with the checkboxes, then select the action you want to perform at the top or bottom of the page.</p> <?php if ($scrape) { print "<b><pre>Re-scraping {$scrape}... "; system("/usr/bin/python2.4 ../bin/update-bio {$scrape}"); print 'done.</pre></b><br />'; } EmitFilterForm($filter); switch ($action) { case "approve": SetBios($bio_ids, 't'); break; case "unapprove": SetBios($bio_ids, 'f'); break; } EmitBioList($filter); admPageFooter(); /********************************/ function EmitFilterForm($filter) { $f = array('all' => 'All bios', 'approved' => 'Approved bios only', 'unapproved' => 'Unapproved bios only'); ?> <form method="get" action="/adm/journo-bios"> Show <?php echo form_element_select("filter", $f, $filter); ?> <input type="submit" name="submit" value="Find" />