
<form method="post" action="userController.php?do=show">
    <table width="200" border="1" class="table-black">
        <tr>
            <td><label>مجموعة المستخدمين :</label></td>
            <td><select data-placeholder="اختر مجموعة" class="chzn-select" style="max-width:350px; width:200px;" tabindex="1" name="usergroupid" id="usergroupid" onchange="getResult();">
                    <option value="-1"></option>


                    {foreach $UserGroupData as $UserGroup}




                    <option value="{$UserGroup->usergroupid}">{$UserGroup->usergroupname}</option>





                    {/foreach}


                </select></td>
            <td><input type="submit" class="left button green aw_l20" value="بحث" /></td>
        </tr>
    </table>
</form>
<table cellpadding="0" cellspacing="0" border="0" class="display table-black" id="">
    <thead>
        <tr>
            <th>اسم العضو</th>
            <th>اسم المجموعة</th>
            <th>تعديل</th>
            <th>حذف مؤقت</th>
        </tr>
    </thead>
    <tbody>
    <style>
        .gradeX
        {
            background-color:#FB758F;
        }
    </style>
    {foreach $userData as $user}
    {if {$user->conditions} eq 1}
    <tr id="tt" class="odd gradeX"> {elseif {$user->conditions} eq 0}

    <tr class="gradeA"> {/if}
        <td>{$user->username}</td>
        <td>{$user->usergroupname}</td>
        <td><a href="userController.php?do=edit&userid={$user->userid}"> تعديل </a></td>
        <td><a href="userController.php?do=delete&userid={$user->userid}&conditions={$user->conditions}"> حذف </a></td>
    </tr>
    {/foreach}
</tbody>

</table>
<div class="dataTables_info" id="datatable_2_info"> هناك &nbsp;[{$paginate.first}-{$paginate.last}]&nbsp; عنصر من &nbsp; &nbsp; [{$paginate.total}]</div>
<div class="dataTables_paginate paging_full_numbers" id="datatable_2_paginate"> {if {paginate_prev} eq ""}
    {else} <span class="next paginate_button" id="datatable_2_next">{paginate_prev}</span> {/if} <span> {if {paginate_middle} eq ""}
        {else} <span class="paginate_button">{paginate_middle format="page"}</span> {/if} </span> {if {paginate_next} eq ""}
    {else} <span class="last paginate_button" id="datatable_2_last">{paginate_next}</span> {/if} </div>
