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

Changeset 10029


Ignore:
Timestamp:
Jan 7, 2009, 9:25:09 PM (11 years ago)
Author:
nagasawa
Message:

The introduction sentence was able to be operated on the friend management

Location:
OpenPNE3/plugins/opIntroFriendPlugin/trunk
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opIntroFriendPlugin/trunk/apps/pc_frontend/modules/introfriend/actions/components.class.php

    r10004 r10029  
    99class introfriendComponents extends sfComponents
    1010{
     11  public function executeIntroFriendManage()
     12  {
     13    $this->id = $this->getUser()->getAttribute('id');
     14    $this->introFriend = IntroFriendPeer::getByFromAndTo($this->getUser()->GetMemberId(), $this->id);
     15  }
    1116  public function executeIntroFriendList()
    1217  {
  • OpenPNE3/plugins/opIntroFriendPlugin/trunk/apps/pc_frontend/modules/introfriend/templates/deleteSuccess.php

    r9921 r10029  
    33      . '<form style="width: 48%; float: right; text-align: left" action="" method="post"><input type="submit" value="' . __('No') . '" /></form>'
    44      . '<div style="clear: left"></div>';
    5 include_box( 'infobox', __('you really delete it?'));
     5include_box( 'infobox', __('Do you really delete it?'), $html);
    66
  • OpenPNE3/plugins/opIntroFriendPlugin/trunk/apps/pc_frontend/modules/introfriend/templates/showSuccess.php

    r10017 r10029  
    66  $img = link_to(image_tag_sf_image($member->getImageFilename(), array('size' => '76x76'))
    77       . '<br />' . $member->getName(), 'member/' . $member->getId());
    8   $list[$img] = nl2br($obj['essay']);
     8  $list[$img] = '<p>' . nl2br($obj['essay']) . '</p>';
     9  if ($member->getId() == $sf_user->getMemberId()) {
     10    $list[$img] .= '<ul><li>'
     11                 . link_to('紹介文を編集する', 'introfriend/index?id=' . $id)
     12                 . '</li><li>'
     13                 . link_to('紹介文を削除する', 'introfriend/delete?id=' . $id)
     14                 . '</li></ul>';
     15  }
    916}
    1017include_list_box('introFriend', $list, array( 'title' => __('Introductory essay from my friend')));
  • OpenPNE3/plugins/opIntroFriendPlugin/trunk/lib/action/opIntroFriendPluginIntroFriendActions.class.php

    r10012 r10029  
    6363          $this->form->save();
    6464        }
     65        $this->redirect('member/profile?id=' . $this->id);
    6566        return sfView::SUCCESS;
    6667      }
     
    8485      {
    8586        if (isset($this->introFriend)) $this->introFriend->delete();
     87        $this->redirect('member/profile?id=' . $this->id);
    8688      }
    87       $this->redirect('member/' . $this->id);
     89      $this->redirect('introfriend/show?id=' . $this->id);
    8890    }
    8991  }
Note: See TracChangeset for help on using the changeset viewer.