<tr class="table_head">
            <td style="width:10%">username</td>
            <td style="width:20%">Email</td>
            <td style="width:5%">Role</td>
            <td style="width:5%">Active</td>
            <td style="width:5%">Lock</td>
            <td style="width:5%">Allow Email</td>
            <td style="width:5%">T A C</td>                                                       
            <td style="width:5%"><strong>Option</strong></td>
        </tr>                                               
        <?php 
while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
    echo '<tr class="table_data">';
    echo '<td>' . $row['username'] . '</td>';
    echo '<td>' . $row['email'] . '</td>';
    echo '<td>' . display_role($row['role']) . '</td>';
    echo '<td>' . display_yes_or_no($row['active']) . '</td>';
    echo '<td>' . display_user_lock_yes_or_no($row['user_lock']) . '</td>';
    echo '<td>' . display_yes_or_no($row['allow_email']) . '</td>';
    echo '<td>' . display_yes_or_no($row['tac']) . '</td>';
    echo '<td><table><tr>';
    echo '       <td><a class="edit_link" href="edit_user.php?user_id=' . $row['user_id'] . '" title="Edit"> <img src="' . EDIT . '" alt="Edit"> </a></td>';
    echo '       <td><a class="delete" href="" OnClick="DeleteUser(' . $row['user_id'] . ');" title="Delete"> <img src="' . TRASH . '" alt="Trash"> </a></td>';
    echo '</tr></table></td>';
    echo '</tr>';
}
// */
?>
    </table>
    <div class="page_nav" style="padding:5px; text-align:center; margin:10px 0px 10px 0px;">
        <?php 
        $display .= '<br/> </tr>';
    }
    //end foreach
    $count_action /= 2;
    $display .= "<input id='count_action' type='hidden' name='count_action' value='{$count_action}'>";
    $display .= "<input id='count_resource' type='hidden' name='count_resource' value='{$count_resource}'>";
    return $display;
}
//end display_resource_action()
?>
<form class='form_admin_privilege' action='admin_privilege.php'>
    <label class='privilege_display'>Role&nbsp&nbsp</label>
    <select id='role' name='role'>
        <option selected='true' value='select' disabled>select</option>;
        <?php 
echo display_role();
?>
    </select>
    <table class="table-responsive">
        <?php 
echo display_resource_action();
?>
        <div id='reload'>
        <input id='privilege_data_hidden' type='hidden' value='<?php 
echo $acl->privilege_data();
?>
'>
    </div>
    </table>
    <br/><input id='set_privilege' class="btn btn-primary" type='button' value='Update'>
</form>
Example #3
0
		<tr><th>携帯電話番号</th><td><input type="text" name="customer_mobile" class="inputalpha" value="<?php 
echo $hash['data']['customer_mobile'];
?>
" /></td></tr>

		<tr><th>出身中学</th><td><?php 
echo display_juniorhighschool_list($hash['data']['customer_juniorhighschool']);
?>
</td></tr>
		<tr><th>部活動</th><td><?php 
echo display_club_list($hash['data']['customer_club']);
?>
</td></tr>

		<tr><th>役割</th><td><?php 
echo display_role($hash['data']['customer_role']);
?>
</td></tr>
		<tr><th>夫婦</th><td><input type="text" name="customer_couple" class="inputvalue" value="<?php 
echo $hash['data']['customer_couple'];
?>
" /></td></tr>
		<tr><th>年会費</th><td><input type="text" name="customer_annualfee" class="inputvalue" value="<?php 
echo $hash['data']['customer_annualfee'];
?>
" /></td></tr>
		<tr><th>懇親会</th><td><input type="text" name="customer_party" class="inputvalue" value="<?php 
echo $hash['data']['customer_party'];
?>
" /></td></tr>
		<tr><th>備考</th><td><textarea name="customer_comment" class="inputcomment" rows="5"><?php 
if (!empty($email)) {
    echo $email;
}
?>
"
                <?php 
if (empty($email)) {
    echo 'disabled="disabled"';
}
?>
 >
           </div> 
           <div class="field">                
                <?php 
if (!empty($role)) {
    echo '<label for="dob">Role: ' . display_role(@$role) . '</label>';
    //select_user_role(@$role);
    //echo display_role(@$role);
} else {
    echo '<label for="dob">Role: *  No role</label> ';
}
?>
           </div>         
           <!--<div class="field">
                <label for="name">Name: *</label>
                <input class="a_text" type="text" name="name" id="name" required="required" 
                value="<?php 
//if(!empty($full_name)){echo $full_name;}
?>
" <?php 
//if(empty($full_name)){echo 'disabled="disabled"';}