Changeset 380

Show
Ignore:
Timestamp:
01/20/05 11:57:41 (8 years ago)
Author:
aprilp
Message:

*** empty log message ***

Location:
trunk/wifidog-auth/wifidog/admin
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/admin/templates/user_log.html

    r379 r380  
    2020        <th>Email</th> 
    2121        <th>Registered On</th> 
     22        <th>Account Status</th> 
    2223</tr> 
    2324{section name=i loop=$users_array} 
     
    2526    <td><a href="?user_id={$users_array[i].user_id}">{$users_array[i].user_id}</a></td> 
    2627    <td>{$users_array[i].email}</td> 
    27         <td>{$users_array[i].reg_date|date_format:"%Y/%m/%d"}</td> 
    28     <td></td> 
     28    <td>{$users_array[i].reg_date|date_format:"%Y/%m/%d"}</td> 
     29    {* hack, need to put info in variable before we can use $account_status_to_text *} 
     30    {assign var="info" value="$users_array[i]"} 
     31    <td>{$account_status_to_text[$info.account_status]}</td> 
    2932</tr> 
    3033{/section} 
  • trunk/wifidog-auth/wifidog/admin/user_log.php

    r379 r380  
    7878    } 
    7979 
    80     $db->ExecSql("SELECT user_id,email,reg_date FROM users ORDER BY $sort $direction LIMIT $per_page OFFSET $offset", $users_res); 
     80    $db->ExecSql("SELECT user_id,email,reg_date,account_status FROM users ORDER BY $sort $direction LIMIT $per_page OFFSET $offset", $users_res); 
    8181    if ($users_res) { 
    8282            $smarty->assign("users_array", $users_res); 
     
    8585    } 
    8686 
     87    $smarty->assign("account_status_to_text", $account_status_to_text); 
    8788    $smarty->display("admin/templates/user_log.html"); 
    8889}