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

source: OpenPNE/trunk/webapp/modules/pc/page/h_album_image_insert_dialog.php @ 6695

Last change on this file since 6695 was 6695, checked in by ebihara, 13 years ago

#2271:ポップアップするためのアクションを追加

File size: 1.6 KB
Line 
1<?php
2/**
3 * @copyright 2005-2008 OpenPNE Project
4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
5 */
6
7class pc_page_h_album_image_insert_dialog extends OpenPNE_Action
8{
9    function execute($requests)
10    {
11        if (!OPENPNE_USE_ALBUM) {
12            handle_kengen_error();
13        }
14
15        $u = $GLOBALS['AUTH']->uid();
16
17        // --- リクエスト変数
18        $target_c_album_id = $requests['target_c_album_id'];
19        $direc = $requests['direc'];
20        $page = $requests['page'];
21        // ----------
22
23        $page += $direc;
24        $page_size = 50;
25
26        $target_c_album = db_album_get_c_album4c_album_id($target_c_album_id);
27        $target_c_member_id = $u;
28        if ($target_c_member_id != $target_c_album['c_member_id']) {
29            handle_kengen_error();
30        }
31
32        $this->set('target_c_member_id', $target_c_member_id);
33        $this->set('target_c_album_id', $target_c_album_id);
34        $this->set('album_info',$target_c_album);
35        $this->set("target_member", db_member_c_member4c_member_id($target_c_member_id));
36
37        $target_c_album_image = db_album_get_c_album_page4id($target_c_album_id, $page_size, $page);
38        $this->set("target_album_image", $target_c_album_image[0]);
39        $this->set('is_prev', $target_c_album_image[1]);
40        $this->set('is_next', $target_c_album_image[2]);
41        $this->set("total_num", $target_c_album_image[3]);
42        $this->set('album_list_count', count($target_c_album_image[0]));
43        $this->set('page', $page);
44        $this->set('page_size', $page_size);
45
46        $this->getView()->ext_display('h_album_image_insert_dialog.tpl');
47        exit;
48    }
49}
50
51?>
Note: See TracBrowser for help on using the repository browser.