ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 6519


Ignore:
Timestamp:
Apr 11, 2008, 2:13:27 PM (12 years ago)
Author:
ebihara
Message:

#2061:メンバーリストで、ログインIDによる検索ができるようにした

Location:
OpenPNE/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/public_html/modules/admin/default.css

    r6391 r6519  
    574574#admin_page_list_c_member table.userListTable td.cell03,
    575575#admin_page_list_c_member table.userListTable td.cell15 { background-color: #FFFFFF; font-weight: bold;}
     576
     577/* 検索フォーム */
     578#admin_page_list_c_member p#searchUsername { margin-left: 2em; }
    576579
    577580/****************************************/
  • OpenPNE/trunk/webapp/modules/admin/lib/db_admin.php

    r6349 r6519  
    3838    }
    3939    return $c_member_list;
     40}
     41
     42function db_admin_c_member4username($username)
     43{
     44    $sql = 'SELECT c_member_id FROM c_username WHERE username = ?';
     45    $c_member_id = db_get_one($sql, array($username));
     46
     47    $c_member = db_member_c_member4c_member_id($c_member_id, true, true, 'private');
     48    return $c_member;
    4049}
    4150
  • OpenPNE/trunk/webapp/modules/admin/page/list_c_member.php

    r4933 r6519  
    6060        $v['SNS_NAME'] = SNS_NAME;
    6161        $v['c_profile_list'] = db_member_c_profile_list4null();
     62        $v['c_member_list'] = array();
    6263        if ($requests['mail_address']) {
    6364            $v['c_member_list'] = db_admin_c_member4mail_address($requests['mail_address']);
     65        } elseif ($requests['username'] && OPENPNE_AUTH_MODE != 'email') {
     66            if ($c_member = db_admin_c_member4username($requests['username'])) {
     67                $v['c_member_list'] = array($c_member);
     68            }
    6469        } else {
    6570            $v['c_member_list'] = _db_admin_c_member_list($requests['page'], $requests['page_size'], $pager, $cond_list, $order);
  • OpenPNE/trunk/webapp/modules/admin/templates/list_c_member.tpl

    r6397 r6519  
    2121</p>
    2222</form>
     23({if $smarty.const.OPENPNE_AUTH_MODE != 'email'})
     24<form action="./" method="get">
     25<p id="searchUsername">
     26<input type="hidden" name="m" value="({$module_name})" />
     27<input type="hidden" name="a" value="page_({$hash_tbl->hash('list_c_member')})" />
     28<strong>ログインID検索</strong>(完全一致):
     29<input type="text" class="basic" name="username" value="({$requests.username})" size="30" />
     30<span class="textBtnS"><input type="submit" value="検索" /></span>
     31</p>
     32</form>
     33({/if})
     34
    2335<div class="userList">
    2436({if $pager})
  • OpenPNE/trunk/webapp/modules/admin/validate/page/list_c_member.ini

    r2322 r6519  
    1010type = "string"
    1111
     12[username]
     13type = "string"
     14
    1215[order]
    1316type = "string"
Note: See TracChangeset for help on using the changeset viewer.