profile-account-dateline.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {template 'common/header'}
  2. <div id="js-user-edit-account" ng-controller="UserEditAccount" ng-cloak>
  3. <table class="table we7-table edit-account-dateline">
  4. <tr>
  5. <th>账户使用期限</th>
  6. <th class="text-left">总有效天数:{{ total_timelimit }} </th>
  7. <th class="text-right">有效期至:{$endtime}</th>
  8. </tr>
  9. <tr>
  10. <td>所属用户组:{{ group_info.name }}</td>
  11. <td class="text-left">有 效 天 数:{{ group_info.timelimit == 0 || !group_info ? '永久' : group_info.timelimit }}</td>
  12. <td class="text-right">
  13. </td>
  14. </tr>
  15. <tr>
  16. <td>附加权限</td>
  17. <td class="text-left">有 效 天 数:{{ extra_limit_info.timelimit }}天</td>
  18. <td class="text-right">
  19. </td>
  20. </tr>
  21. </table>
  22. </div>
  23. <script>
  24. angular.module('userManageApp').value('config', {
  25. user: {php echo !empty($user) ? json_encode($user) : 'null'},
  26. profile: {php echo !empty($profile) ? json_encode($profile) : 'null'},
  27. group_info: {php echo !empty($group_info) ? json_encode($group_info) : 'null'},
  28. extra_limit_info: {php echo !empty($extra_limit_info) ? json_encode($extra_limit_info) : 'null'},
  29. total_timelimit: {php echo $total_timelimit},
  30. groups: {php echo !empty($groups) ? json_encode($groups) : 'null'},
  31. links: {
  32. recycleUser: "{php echo url('user/display/operate', array('type' => 'recycle'))}",
  33. editUserGroup: "{php echo url('user/edit/edit_user_group', array('uid' => $uid))}",
  34. chageExtraTimelimit: "{php echo url('user/edit/edit_user_extra_limit', array('uid' => $uid))}",
  35. },
  36. });
  37. angular.bootstrap($('#js-user-edit-account'), ['userManageApp']);
  38. </script>
  39. {template 'common/footer'}