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

Changeset 10972 for OpenPNE3/trunk/apps


Ignore:
Timestamp:
Mar 10, 2009, 11:50:54 AM (14 years ago)
Author:
ShogoKawahara
Message:

#3689:added ability to reissue member's password in the pc_backend

Location:
OpenPNE3/trunk/apps/pc_backend
Files:
3 added
2 edited

Legend:

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

    r10352 r10972  
    163163    return sfView::SUCCESS;
    164164  }
     165
     166  /**
     167   * Executes reissuePassword action
     168   *
     169   * @param sfWebRequest $request A request object
     170   */
     171  public function executeReissuePassword(sfWebRequest $request)
     172  {
     173    $id = $request->getParameter('id');
     174    $this->member = MemberPeer::retrieveByPk($id);
     175    $this->forward404Unless($this->member);
     176
     177    $this->form = new ReissuePasswordForm($this->member);
     178    if ($request->isMethod(sfWebRequest::POST))
     179    {
     180      $this->form->bind($request->getParameter('member_config'));
     181      if ($this->form->isValid())
     182      {
     183        $this->form->save();
     184      }
     185    }
     186    return sfView::SUCCESS;
     187  }
    165188}
  • OpenPNE3/trunk/apps/pc_backend/modules/member/templates/listSuccess.php

    r10706 r10972  
    2121<?php echo image_tag('icn_delete_account.gif', array('alt' => __('強制退会'))) ?>: <?php echo __('強制退会') ?>
    2222&nbsp;
     23<?php echo image_tag('icn_passwd.gif', array('alt' => __('パスワード再発行'))) ?>: <?php echo __('パスワード再発行') ?>
     24&nbsp;
    2325<?php echo image_tag('icn_blacklist.gif', array('alt' => __('携帯電話個体識別番号をブラックリストに登録'))) ?>: <?php echo __('携帯電話個体識別番号をブラックリストに登録') ?>
    2426</p>
     
    2729
    2830<tr>
    29 <td colspan="<?php echo 6 + count($profiles) + 3 ?>">
     31<td colspan="<?php echo 6 + count($profiles) + 4 ?>">
    3032<?php echo pager_navigation($pager, 'member/list?page=%d', true, '?'.$sf_request->getCurrentQueryString()) ?>
    3133</td>
     
    3335
    3436<tr>
    35 <th colspan="2"><?php echo __('操作') ?></th>
     37<th colspan="3"><?php echo __('操作') ?></th>
    3638<th><?php echo __('ID') ?></th>
    3739<th><?php echo __('ニックネーム') ?></th>
     
    5456</td>
    5557<td>
     58<?php echo link_to(image_tag('icn_passwd.gif', array('alt' => __('パスワード再発行'))), 'member/reissuePassword?id='.$member->getId()) ?>
     59</td>
     60<td>
    5661<?php echo link_to(image_tag('icn_blacklist.gif', array('alt' => __('携帯電話個体識別番号をブラックリストに登録'))), 'member/blacklist?uid='.$member->getConfig('mobile_uid')) ?>
    5762</td>
Note: See TracChangeset for help on using the changeset viewer.