Example #1
0
    echo " selected='selected'";
}
?>
>Closed</option>
</select>
<input type="hidden" name="thread_id" value="<?php 
echo $thread_id;
?>
" />
<input type="submit" name="submit" value="Update &raquo;" /></p>
</form>

<form action="thread-notify.php" method="post">
<p>Notify:
<?php 
if ($user_ids = get_support_user_ids()) {
    foreach ($user_ids as $user_id) {
        $user = get_user($user_id);
        echo '<label><input type="checkbox" name="notify[]" class="notify-checkbox" value="' . htmlspecialchars($user_id) . '" />' . htmlspecialchars($user->nickname) . '</label> ';
    }
}
?>
<div class="notify-toggle" style="display:none;">
<label for="notify-message">Message (seen by staff only):</label>
<textarea class="notify-message" name="notify-message" id="notify-message" style="width:100%;height:6em;"></textarea>
<input type="submit" name="notify-send" value="Notify &raquo;" style="float:right;" />
<input type="hidden" name="thread_id" value="<?php 
echo $thread_id;
?>
" />
</div>
Example #2
0
File: user.php Project: bi0xid/bach
<table cellspacing='8'>
<thead>
<tr class="tablehead">
<th><input type="checkbox" name="checkall" value="none" id="checkall" /></th>
<th>Username</th>
<th>Email</th>
<th>Name</th>
<th>Registered</th>
<th>Role</th>
</tr>
</thead>
<tbody>

<?php 
$support_users = get_support_user_ids();
foreach ((array) $support_users as $u) {
    $user = get_user($u);
    echo "<tr>";
    // can't remove self
    if ($u == $current_user->ID) {
        echo '<td>&nbsp;</td>';
    } else {
        echo "<td><input type='checkbox' name='user_ids[]' value='{$u}' class='mcheck' id='mcheck{$u}' /></td>";
    }
    echo "<td>{$user->user_login}</td>";
    echo "<td>{$user->user_email}</td>";
    echo "<td>{$user->user_nicename}</td>";
    echo "<td>{$user->user_registered}</td>";
    echo "<td>" . join(',', (array) $user->roles) . "</td>";
    echo "</tr>";