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

Changeset 10144


Ignore:
Timestamp:
Jan 14, 2009, 11:27:33 PM (11 years ago)
Author:
ebihara
Message:

#3308:added ability to register blacklist from the member list

Location:
OpenPNE3/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_backend/modules/member/actions/actions.class.php

    r10122 r10144  
    9292  public function executeBlacklist(sfWebRequest $request)
    9393  {
     94    $uid = $request->getParameter('uid');
     95
    9496    $this->pager = new sfPropelPager('Blacklist', 20);
    9597    $this->pager->setPage($request->getParameter('page', 1));
     
    9799
    98100    $this->form = new BlacklistForm();
     101    if ($uid)
     102    {
     103      $this->form->setDefault('uid', $uid);
     104    }
    99105    if ($request->isMethod(sfWebRequest::POST))
    100106    {
  • OpenPNE3/trunk/apps/pc_backend/modules/member/templates/listSuccess.php

    r10122 r10144  
    1717<p><?php echo __('該当するメンバーは存在しません。') ?></p>
    1818<?php else: ?>
     19
     20<p>
     21<?php echo image_tag('icn_blacklist.gif', array('alt' => __('携帯電話個体識別番号をブラックリストに登録'))) ?>: <?php echo __('携帯電話個体識別番号をブラックリストに登録') ?>
     22</p>
     23
    1924<table>
    2025
    2126<tr>
    22 <td colspan="<?php echo 3 + count($profiles) + 3 ?>">
     27<td colspan="<?php echo 4 + count($profiles) + 3 ?>">
    2328<?php echo pager_navigation($pager, 'member/list?page=%d', true, '?'.$sf_request->getCurrentQueryString()) ?>
    2429</td>
     
    2631
    2732<tr>
     33<th><?php echo __('操作') ?></th>
    2834<th><?php echo __('ID') ?></th>
    2935<th><?php echo __('ニックネーム') ?></th>
     
    3945<?php foreach ($pager->getResults() as $i => $member): ?>
    4046<tr style="background-color:<?php echo cycle_vars('member_list', '#fff, #eee') ?>;">
     47<td>
     48<?php if ($member->getConfig('mobile_uid')) : ?>
     49<?php echo link_to(image_tag('icn_blacklist.gif', array('alt' => __('携帯電話個体識別番号をブラックリストに登録'))), 'member/blacklist?uid='.$member->getConfig('mobile_uid')) ?>
     50<?php endif; ?>
     51</td>
    4152<td><?php echo $member->getId() ?></td>
    4253<td><?php echo $member->getName() ?></td>
Note: See TracChangeset for help on using the changeset viewer.