actionc32.php 416 B

123456789101112131415161718192021222324
  1. <?php
  2. include_once dirname(__FILE__) . '/../main.php';
  3. $GET = query_paras();
  4. $name = urldecode($GET['name']);
  5. $uid = $GET['oid'];
  6. $arr = daoInst()->select('*')->from('tab_rolename')
  7. ->where('roleName')->eq($name)
  8. ->orWhere('userID')->eq($uid)
  9. ->fetch_array();
  10. $count = count($arr);
  11. $result = new stdClass();
  12. $result->total = $count;
  13. $result->rows = $arr;
  14. echo json_encode($result);