All pastes #731551 Raw Edit

Unnamed

public php v1 · immutable
·published 2007-10-10 04:23 UTC
rendered paste body
<html><head><title>Evacutracker 2007 - User Rights Manager</title><SCRIPT language="JavaScript">function getPrivs(field){for (i = 0; i < field.length; i++)	field[i].checked = true ;}</SCRIPT></head><body><form id="formPrivs" name="formPrivs" method="post" action="postpriv.php"><table width="253" border="1" cellpadding="0" cellspacing="2" bordercolor="#000000"><tr><td>Click to select all</td><?php// Add, Edit, Delete, Search, Print, Transfer$options = array('A', 'E', 'D', 'S', 'P', 'T');$tables = array('evac_info', 'evac_info_prereg', 'evac_users', 'evac_news', 'Bus_Roster', 'Sex_Offenders');foreach($options as $option) {echo "<td>" . $option . "</td>\n";}echo "</tr>";foreach($tables as $table) {echo "<tr>\n<td><a href=\"#\" onClick=\"getPrivs(document.formPrivs.$table)\">" . $table . "</a></td>\n";foreach($options as $option) {echo "<td><input type=checkbox name=\"" . $table . "_" . $option . "\"></td>\n";}echo "</tr>";}echo "</table></br>";?><p>For default values, try the following:</p><p>    <select name="select" id="select">      <option>Admin</option>      <option selected="selected">Users</option>      <option>EarlyEntryUsers</option>      <option>View</option>    </select></p><p>	<input type="submit" name="SetPrivs" value="Set Privileges" />	<input type="reset" name="ResetPrivs" value="Reset" /></p></form></body></html>