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

Changeset 3419


Ignore:
Timestamp:
Jul 17, 2007, 5:49:59 PM (12 years ago)
Author:
maruyama
Message:

監視機能機能追加、仕様変更

Location:
OpenPNE/branches/work/maruyama/prj_watch/webapp
Files:
14 added
23 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/lib/db/review.php

    r2973 r3419  
    422422}
    423423
    424 
     424function db_review_edit_c_review_comment4c_review_comment_id($c_review_comment_id)
     425{
     426    $sql = "SELECT * FROM c_review_comment " .
     427            " WHERE c_review_comment_id = ?";
     428    $params = array(intval($c_review_comment_id));
     429    return db_get_row($sql, $params);
     430}
    425431
    426432function db_review_clip_add_c_review_id4c_review_id_c_member_id($c_review_id, $c_member_id)
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/do/delete_kakikomi_c_commu_topic.php

    r1856 r3419  
    1212        db_commu_delete_c_commu_topic($requests['target_c_commu_topic_id']);
    1313
    14         admin_client_redirect('delete_kakikomi', 'コミュニティトピックを削除しました');
     14        admin_client_redirect('topic_comment_list', 'コミュニティトピックを削除しました');
    1515    }
    1616}
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/do/delete_kakikomi_c_commu_topic_comment.php

    r1856 r3419  
    1212        db_commu_delete_c_commu_topic_comment($requests['target_c_commu_topic_comment_id']);
    1313
    14         module_client_redirect('delete_kakikomi', 'トピックコメントを削除しました');
     14        admin_client_redirect('topic_comment_list', 'トピックコメントを削除しました');
    1515    }
    1616}
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/do/delete_kakikomi_c_diary.php

    r1856 r3419  
    1212        db_diary_delete_c_diary($requests['target_c_diary_id']);
    1313
    14         admin_client_redirect('delete_kakikomi', '日記を削除しました');
     14        admin_client_redirect('diary_list', '日記を削除しました');
    1515    }
    1616}
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/do/delete_kakikomi_c_diary_comment.php

    r1856 r3419  
    1313        db_diary_delete_c_diary_comment($diary_comment['c_diary_comment_id'],$diary_comment['c_member_id']);
    1414
    15         module_client_redirect('delete_kakikomi', '日記コメントを削除しました');
     15        admin_client_redirect('diary_comment_list', '日記コメントを削除しました');
    1616    }
    1717}
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/do/delete_kakikomi_c_review.php

    r2016 r3419  
    1010    function execute($requests)
    1111    {
    12         do_delete_c_review4c_review_id($requests['target_c_review_id']);
     12        do_h_review_edit_delete_c_review_comment($requests['target_c_review_comment_id']);
    1313
    14         admin_client_redirect('delete_kakikomi', 'レビューを削除しました');
     14        admin_client_redirect('review_list', 'レビューを削除しました');
    1515    }
    1616}
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/lib/db_admin.php

    r3281 r3419  
    17851785}
    17861786
     1787function monitor_diary_list4c_diary_id($c_diary_id,$page_size,$page)
     1788{
     1789
     1790    $page = intval($page);
     1791    $page_size = intval($page_size);
     1792   
     1793    $where = " where c_diary_id = ? ";
     1794    $params[] = $c_diary_id;
     1795   
     1796    $select = " select c_diary.*";
     1797    $from = " FROM c_diary";
     1798    $order = " ORDER BY r_datetime desc";
     1799   
     1800    $sql = $select . $from . $where . $order;
     1801    $list = db_get_all_limit($sql,($page-1)*$page_size,$page_size,$params);
     1802    foreach ($list as $key => $value) {
     1803        $list[$key]['c_member'] = db_member_c_member_with_profile($value['c_member_id']);
     1804        $list[$key]['count_comments'] = db_diary_count_c_diary_comment4c_diary_id($value['c_diary_id']);
     1805    }
     1806   
     1807    $sql =
     1808        "SELECT count(*) "
     1809        . $from
     1810        . $where ;
     1811    $total_num = db_get_one($sql,$params);
     1812   
     1813    $total_page_num =  ceil($total_num / $page_size);
     1814    $next = ($page < $total_page_num);
     1815    $prev = ($page > 1);
     1816   
     1817    return array($list , $prev , $next, $total_num,$total_page_num); 
     1818}
     1819
    17871820function monitor_diary_comment_list($keyword,$page_size,$page)
    17881821{
     
    18311864}
    18321865
     1866function monitor_diary_comment_list4c_diary_comment_id($c_diary_comment_id,$page_size,$page)
     1867{
     1868    $page = intval($page);
     1869    $page_size = intval($page_size);
     1870
     1871    $where = " where c_diary_comment.c_diary_comment_id = ? ";
     1872    $params[] = $c_diary_comment_id;
     1873   
     1874    $select = " select c_diary_comment.*,c_diary.subject";
     1875    $from = " FROM c_diary_comment"
     1876        ." LEFT JOIN c_diary ON c_diary.c_diary_id = c_diary_comment.c_diary_id ";
     1877    $order = " ORDER BY r_datetime desc";
     1878   
     1879    $sql = $select . $from . $where . $order;
     1880    $list = db_get_all_limit($sql,($page-1)*$page_size,$page_size,$params);
     1881   
     1882    foreach ($list as $key => $value) {
     1883        $list[$key]['c_member'] = db_member_c_member_with_profile($value['c_member_id']);
     1884        $list[$key]['count_comments'] = db_diary_count_c_diary_comment4c_diary_id($value['c_diary_id']);
     1885    }
     1886   
     1887    $sql =
     1888        "SELECT count(*) "
     1889        . $from
     1890        . $where ;
     1891    $total_num = db_get_one($sql,$params);
     1892   
     1893    $total_page_num =  ceil($total_num / $page_size);
     1894    $next = ($page < $total_page_num);
     1895    $prev = ($page > 1);
     1896   
     1897    return array($list , $prev , $next, $total_num,$total_page_num); 
     1898}
     1899
    18331900
    18341901function monitor_topic_comment_list($keyword,$page_size,$page)
     
    18511918        }
    18521919    }
     1920   
     1921    $select = " SELECT ctc.*,ct.name as topic_name,c.name as commu_name,m.nickname";
     1922    $from = " FROM c_commu_topic_comment as ctc"
     1923            ." LEFT JOIN c_member as m ON ctc.c_member_id = m.c_member_id "
     1924            ." LEFT JOIN c_commu_topic as ct ON ct.c_commu_topic_id = ctc.c_commu_topic_id "
     1925            ." LEFT JOIN c_commu as c ON c.c_commu_id = ct.c_commu_id ";
     1926    $order = " ORDER BY r_datetime desc";
     1927   
     1928    $sql = $select . $from . $where . $order;
     1929   
     1930    $list = db_get_all_limit($sql,($page-1)*$page_size,$page_size,$params);
     1931   
     1932    foreach ($list as $key => $value) {
     1933        $list[$key]['count_comments'] = _db_count_c_commu_topic_comments4c_commu_topic_id($value['c_commu_topic_id']);
     1934    }
     1935   
     1936    $sql =
     1937        "SELECT count(*) "
     1938        . $from
     1939        . $where ;
     1940    $total_num = db_get_one($sql,$params);
     1941   
     1942    $total_page_num =  ceil($total_num / $page_size);
     1943    $next = ($page < $total_page_num);
     1944    $prev = ($page > 1);
     1945   
     1946    return array($list , $prev , $next, $total_num,$total_page_num); 
     1947}
     1948
     1949function monitor_topic_comment_list4c_commu_topic_comment_id($c_commu_topic_comment_id,$page_size,$page)
     1950{
     1951    $page = intval($page);
     1952    $page_size = intval($page_size);
     1953   
     1954    $where = " where c_commu_topic_comment_id = ? ";
     1955    $params[] = $c_commu_topic_comment_id;
    18531956   
    18541957    $select = " SELECT ctc.*,ct.name as topic_name,c.name as commu_name,m.nickname";
     
    19032006    }
    19042007   
    1905     $select = " SELECT ct.*,ct.name as topic_name,c.name as commu_name,m.nickname,ctc.body as body";
     2008    $select = " SELECT ct.*,ct.name as topic_name,c.name as commu_name,m.nickname,ctc.body as body,ctc.image_filename1 as image_filename1,ctc.image_filename2 as image_filename2,ctc.image_filename3 as image_filename3";
    19062009    $from = " FROM c_commu_topic as ct"
    19072010            ." LEFT JOIN c_member as m ON ct.c_member_id = m.c_member_id "
     
    19312034}
    19322035
     2036function monitor_topic_list4target_c_commu_topic_id($c_commu_topic_id,$page_size,$page)
     2037{
     2038    $page = intval($page);
     2039    $page_size = intval($page_size);
     2040   
     2041    $where = " where c_commu_topic_id = ? ";
     2042    $params[] = $c_commu_topic_id;
     2043   
     2044    $select = " SELECT ct.*,ct.name as topic_name,c.name as commu_name,m.nickname,ctc.body as body,ctc.image_filename1 as image_filename1,ctc.image_filename2 as image_filename2,ctc.image_filename3 as image_filename3";
     2045    $from = " FROM c_commu_topic as ct"
     2046            ." LEFT JOIN c_member as m ON ct.c_member_id = m.c_member_id "
     2047            ." LEFT JOIN c_commu as c ON c.c_commu_id = ct.c_commu_id "
     2048            ." LEFT JOIN c_commu_topic_comment as ctc ON (ctc.c_commu_topic_id = ct.c_commu_topic_id AND ctc.number = 0)";
     2049    $order = " ORDER BY r_datetime desc";
     2050   
     2051    $sql = $select . $from . $where . $order;
     2052   
     2053    $list = db_get_all_limit($sql,($page-1)*$page_size,$page_size,$params);
     2054   
     2055    foreach ($list as $key => $value) {
     2056        $list[$key]['count_comments'] = _db_count_c_commu_topic_comments4c_commu_topic_id($value['c_commu_topic_id']);
     2057    }
     2058   
     2059    $sql =
     2060        "SELECT count(*) "
     2061        . $from
     2062        . $where ;
     2063    $total_num = db_get_one($sql,$params);
     2064   
     2065    $total_page_num =  ceil($total_num / $page_size);
     2066    $next = ($page < $total_page_num);
     2067    $prev = ($page > 1);
     2068   
     2069    return array($list , $prev , $next, $total_num,$total_page_num); 
     2070}
     2071
    19332072function monitor_review_list($keyword,$page_size,$page)
    19342073{
    1935 
    19362074    $page = intval($page);
    19372075    $page_size = intval($page_size);
     
    19782116}
    19792117
     2118function monitor_review_list4c_review_id($c_review_comment_id,$page_size,$page)
     2119{
     2120    $page = intval($page);
     2121    $page_size = intval($page_size);
     2122   
     2123    $where = " where c_review_comment_id = ? ";
     2124    $params[] = $c_review_comment_id;
     2125   
     2126    $select = " select c_review_comment.*";
     2127    $from = " FROM c_review_comment";
     2128    $order = " ORDER BY r_datetime desc";
     2129   
     2130    $sql = $select . $from . $where . $order;
     2131    $list = db_get_all_limit($sql,($page-1)*$page_size,$page_size,$params);
     2132   
     2133
     2134    foreach ($list as $key => $value) {
     2135        $list[$key]['c_member'] = db_common_c_member4c_member_id_LIGHT($value['c_member_id']);
     2136        $list[$key]['c_review'] = db_review_list_product_c_review4c_review_id($value['c_review_id']);
     2137    }
     2138
     2139    $sql =
     2140        "SELECT count(*) "
     2141        . $from
     2142        . $where ;
     2143    $total_num = db_get_one($sql,$params);
     2144   
     2145    $total_page_num =  ceil($total_num / $page_size);
     2146    $next = ($page < $total_page_num);
     2147    $prev = ($page > 1);
     2148   
     2149    return array($list , $prev , $next, $total_num,$total_page_num); 
     2150}
     2151
    19802152function _db_count_c_commu_topic_comments4c_commu_topic_id($c_commu_topic_id)
    19812153{
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/page/diary_comment_list.php

    r1856 r3419  
    1616        $page = $requests['page'];
    1717        $keyword = $requests['keyword'];
     18        $target_c_diary_comment_id = $requests['target_c_diary_comment_id'];
    1819        //----------???N?G?X?g???-------------//
    1920        $page_size = 20;
     
    2122        $v = array();
    2223       
    23         list($diary_comment_list,$prev,$next,$total_num,$total_page_num)
     24        if ($target_c_diary_comment_id) {
     25            list($diary_comment_list,$prev,$next,$total_num,$total_page_num)
     26            = monitor_diary_comment_list4c_diary_comment_id($target_c_diary_comment_id,$page_size,$page);
     27        } else {
     28            list($diary_comment_list,$prev,$next,$total_num,$total_page_num)
    2429            = monitor_diary_comment_list($keyword,$page_size,$page);
     30        }
    2531        $this->set('diary_comment_list', $diary_comment_list);
    2632        $this->set('page', $page);
     
    2935        $this->set('keyword_encode', urlencode($keyword));
    3036        $this->set('keyword', $keyword);
     37        $this->set('target_c_diary_comment_id', $target_c_diary_comment_id);
    3138        $this->set('total_num', $total_num);
    3239       
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/page/diary_list.php

    r1856 r3419  
    1515        $page = $requests['page'];
    1616        $keyword = $requests['keyword'];
     17        $target_c_diary_id = $requests['target_c_diary_id'];
    1718        $page_size = 20;
    1819       
    1920        $v = array();
    2021       
    21         list($diary_list,$prev,$next,$total_num,$total_page_num)
     22        if ($target_c_diary_id) {
     23                list($diary_list,$prev,$next,$total_num,$total_page_num)
     24            = monitor_diary_list4c_diary_id($target_c_diary_id,$page_size,$page);
     25        } else {
     26                list($diary_list,$prev,$next,$total_num,$total_page_num)
    2227            = monitor_diary_list($keyword,$page_size,$page);
     28        }
    2329        $this->set('diary_list', $diary_list);
    2430        $this->set('page', $page);
     
    2733        $this->set('keyword_encode', urlencode($keyword));
    2834        $this->set('keyword', $keyword);
     35        $this->set('target_c_diary_id', $target_c_diary_id);
    2936        $this->set('total_num', $total_num);
    3037       
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/page/review_list.php

    r2016 r3419  
    1515        $page = $requests['page'];
    1616        $keyword = $requests['keyword'];
     17        $target_c_review_comment_id = $requests['target_c_review_comment_id'];
    1718        $page_size = 20;
    1819       
    1920        $v = array();
    2021       
    21         list($review_list,$prev,$next,$total_num,$total_page_num)
     22        if ($target_c_review_comment_id) {
     23            list($review_list,$prev,$next,$total_num,$total_page_num)
     24            = monitor_review_list4c_review_id($target_c_review_comment_id,$page_size,$page);
     25        } else {
     26            list($review_list,$prev,$next,$total_num,$total_page_num)
    2227            = monitor_review_list($keyword,$page_size,$page);
     28        }
     29       
    2330        $this->set('review_list', $review_list);
    2431        $this->set('page', $page);
     
    2734        $this->set('keyword_encode', urlencode($keyword));
    2835        $this->set('keyword', $keyword);
     36        $this->set('target_c_review_comment_id', $target_c_review_comment_id);
    2937        $this->set('total_num', $total_num);
    3038       
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/page/topic_comment_list.php

    r1856 r3419  
    1515        $page = $requests['page'];
    1616        $keyword = $requests['keyword'];
     17        $target_c_commu_topic_comment_id = $requests['target_c_commu_topic_comment_id'];
    1718        $page_size = 20;
    1819       
    1920        $v = array();
    2021       
    21         list($topic_comment_list,$prev,$next,$total_num,$total_page_num)
     22        if ($target_c_commu_topic_comment_id) {
     23            list($topic_comment_list,$prev,$next,$total_num,$total_page_num)
     24            = monitor_topic_comment_list4c_commu_topic_comment_id($target_c_commu_topic_comment_id,$page_size,$page);
     25        } else {
     26            list($topic_comment_list,$prev,$next,$total_num,$total_page_num)
    2227            = monitor_topic_comment_list($keyword,$page_size,$page);
     28        }
    2329        $this->set('topic_comment_list', $topic_comment_list);
    2430        $this->set('page', $page);
     
    2733        $this->set('keyword_encode', urlencode($keyword));
    2834        $this->set('keyword', $keyword);
     35        $this->set('target_c_commu_topic_comment_id', $target_c_commu_topic_comment_id);
    2936        $this->set('total_num', $total_num);
    3037       
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/page/topic_list.php

    r1856 r3419  
    1616        $page = $requests['page'];
    1717        $keyword = $requests['keyword'];
     18        $target_c_commu_topic_id = $requests['target_c_commu_topic_id'];
    1819        //----------???N?G?X?g???-------------//
    1920        $page_size = 20;
     
    2122        $v = array();
    2223       
     24        if ($target_c_commu_topic_id) {
     25            list($topic_list,$prev,$next,$total_num,$total_page_num)
     26            = monitor_topic_list4target_c_commu_topic_id($target_c_commu_topic_id,$page_size,$page);
     27        } else {
     28            list($topic_list,$prev,$next,$total_num,$total_page_num)
     29            = monitor_topic_list($keyword,$page_size,$page);
     30        }
    2331        list($topic_list,$prev,$next,$total_num,$total_page_num)
    2432            = monitor_topic_list($keyword,$page_size,$page);
     
    2937        $this->set('keyword_encode', urlencode($keyword));
    3038        $this->set('keyword', $keyword);
     39        $this->set('target_c_commu_topic_id', $target_c_commu_topic_id);
    3140        $this->set('total_num', $total_num);
    3241       
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/templates/diary_comment_list.tpl

    r2530 r3419  
    2424</form>
    2525
     26<form action="./" method="GET">
     27<input type="hidden" name="m" value="({$module_name})">
     28<input type="hidden" name="a" value="page_({$hash_tbl->hash('diary_comment_list','page')})">
     29<h3 class="item">ID検索</h3>
     30<input class="basic" type="text" name="target_c_diary_comment_id" value="({$target_c_diary_comment_id})">
     31<span class="textBtnS"><input type="submit" value="検索"></span>
     32</form>
    2633({capture name="pager"})
    2734<div class="listControl">
     
    3946({$smarty.capture.pager|smarty:nodefaults})
    4047
     48({foreach from=$diary_comment_list item=item})
    4149<table class="basicType2">
    4250<tbody>
    43 ({foreach from=$diary_comment_list item=item})
    4451({****})
    4552<tr>
    4653<th>ID</th>
     54<form action="./" method="get">
    4755<td class="type1">
    4856({$item.c_diary_comment_id})
     57<input type="hidden" name="m" value="({$module_name})" />
     58<input type="hidden" name="a" value="page_({$hash_tbl->hash('delete_diary_comment')})" />
     59<input type="hidden" name="target_c_diary_comment_id" value="({$item.c_diary_comment_id})"/>
     60<span class="textBtnS"><input type="submit" value="削除" /></span>
    4961</td>
     62</form>
    5063</tr>
    5164({****})
     
    7891</tr>
    7992({****})
    80 ({/foreach})
    8193</tbody>
    8294</table>
     95<br>
     96({/foreach})
    8397
    8498({$smarty.capture.pager|smarty:nodefaults})
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/templates/diary_list.tpl

    r1487 r3419  
    2222</form>
    2323
     24<form action="./" method="GET">
     25<input type="hidden" name="m" value="({$module_name})">
     26<input type="hidden" name="a" value="page_({$hash_tbl->hash('diary_list','page')})">
     27<h3 class="item">ID検索</h3>
     28<input class="basic" type="text" name="target_c_diary_id" value="({$target_c_diary_id})">
     29<span class="textBtnS"><input type="submit" value="検索"></span>
     30</form>
     31
    2432({capture name="pager"})
    2533<div class="listControl">
     
    3947</div>
    4048
     49({foreach from=$diary_list item=item})
    4150<table class="basicType2">
    4251<tbody>
    43 ({foreach from=$diary_list item=item})
    4452({****})
    4553<tr>
    4654<th>ID</th>
     55<form action="./" method="get">
    4756<td class="type1">
    4857({$item.c_diary_id})
     58<input type="hidden" name="m" value="({$module_name})" />
     59<input type="hidden" name="a" value="page_({$hash_tbl->hash('delete_diary')})" />
     60<input type="hidden" name="target_c_diary_id" value="({$item.c_diary_id})"/>
     61<span class="textBtnS"><input type="submit" value="削除" /></span>
    4962</td>
     63</form>
    5064</tr>
    5165({****})
     
    7488<th>日記本文</th>
    7589<td width="500">
    76 ({$item.body|nl2br})
     90({if $item.image_filename_1 || $item.image_filename_2 || $item.image_filename_3})
     91<div>
     92({if $item.image_filename_1})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename_1})" target="_blank"><img src="({t_img_url filename=$item.image_filename_1 w=120 h=120})"></a></span>({/if})
     93({if $item.image_filename_2})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename_2})" target="_blank"><img src="({t_img_url filename=$item.image_filename_2 w=120 h=120})"></a></span>({/if})
     94({if $item.image_filename_3})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename_3})" target="_blank"><img src="({t_img_url filename=$item.image_filename_3 w=120 h=120})"></a></span>({/if})
     95</div>
     96({/if})
     97({$item.body|t_truncate:"120"|nl2br})
    7798</td>
    7899</tr>
    79100({****})
    80 ({/foreach})
    81101</tbody>
    82102</table>
     103<br>
     104({/foreach})
     105
    83106
    84107<div class="listControl" id="pager02">
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/templates/review_list.tpl

    r2016 r3419  
    2121<span class="textBtnS"><input type="submit" value="検索"></span>
    2222</form>
     23<form action="./" method="GET">
     24<input type="hidden" name="m" value="({$module_name})">
     25<input type="hidden" name="a" value="page_({$hash_tbl->hash('review_list','page')})">
     26<h3 class="item">ID検索</h3>
     27<input class="basic" type="text" name="target_c_review_comment_id" value="({$target_c_review_comment_id})">
     28<span class="textBtnS"><input type="submit" value="検索"></span>
     29</form>
    2330
    2431({capture name="pager"})
     
    3946</div>
    4047
     48({foreach from=$review_list item=item})
    4149<table class="basicType2">
    4250<tbody>
    43 ({foreach from=$review_list item=item})
    4451({****})
    4552<tr>
    4653<th>ID</th>
     54<form action="./" method="get">
    4755<td class="type1">
    4856<a href="({t_url _absolute=1 m=pc a=page_h_review_list_product})&c_review_id=({$item.c_review_id})" target="_blank">({$item.c_review_id})</a>
     57<input type="hidden" name="m" value="({$module_name})" />
     58<input type="hidden" name="a" value="page_({$hash_tbl->hash('delete_review')})" />
     59<input type="hidden" name="target_c_review_comment_id" value="({$item.c_review_id})"/>
     60<span class="textBtnS"><input type="submit" value="削除" /></span>
    4961</td>
     62</form>
    5063</tr>
    5164({****})
     
    87100</tr>
    88101({****})
    89 ({/foreach})
    90102</tbody>
    91103</table>
     104({/foreach})
    92105
    93106<div class="listControl" id="pager02">
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/templates/topic_comment_list.tpl

    r1477 r3419  
    2222<span class="textBtnS"><input type="submit" value="検索"></span>
    2323</form>
     24<form action="./" method="GET">
     25<input type="hidden" name="m" value="({$module_name})">
     26<input type="hidden" name="a" value="page_({$hash_tbl->hash('topic_comment_list','page')})">
     27<h3 class="item">ID検索</h3>
     28<input class="basic" type="text" name="target_c_commu_topic_comment_id" value="({$target_c_commu_topic_comment_id})">
     29<span class="textBtnS"><input type="submit" value="検索"></span>
     30</form>
    2431</div>
    2532
     
    4249({/if})
    4350
     51({foreach from=$topic_comment_list item=item})
    4452<table class="basicType2">
    4553<tbody>
    46 ({foreach from=$topic_comment_list item=item})
    4754({****})
    4855<tr>
    4956<th>ID</th>
     57<form action="./" method="get">
    5058<td class="type1">
    5159({$item.c_commu_topic_comment_id})
     60<input type="hidden" name="m" value="({$module_name})" />
     61<input type="hidden" name="a" value="page_({$hash_tbl->hash('delete_topic_comment')})" />
     62<input type="hidden" name="target_c_commu_topic_comment_id" value="({$item.c_commu_topic_comment_id})"/>
     63<span class="textBtnS"><input type="submit" value="削除" /></span>
    5264</td>
     65</form>
    5366</tr>
    5467({****})
     
    8497<th>トピックコメント本文</th>
    8598<td width="500">
    86 ({$item.body|nl2br})
     99({if $item.image_filename1 || $item.image_filename2 || $item.image_filename3})
     100<div>
     101({if $item.image_filename1})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename1})" target="_blank"><img src="({t_img_url filename=$item.image_filename1 w=120 h=120})"></a></span>({/if})
     102({if $item.image_filename2})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename2})" target="_blank"><img src="({t_img_url filename=$item.image_filename2 w=120 h=120})"></a></span>({/if})
     103({if $item.image_filename3})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename3})" target="_blank"><img src="({t_img_url filename=$item.image_filename3 w=120 h=120})"></a></span>({/if})
     104</div>
     105({/if})
     106({$item.body|t_truncate:"120"|nl2br})
    87107</td>
    88108</tr>
    89109({****})
    90 ({/foreach})
    91110</tbody>
    92111</table>
     112<br>
     113({/foreach})
    93114
    94115({if $page_list})
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/templates/topic_list.tpl

    r1477 r3419  
    2222<span class="textBtnS"><input type="submit" value="検索"></span>
    2323</form>
     24<form action="./" method="GET">
     25<input type="hidden" name="m" value="({$module_name})">
     26<input type="hidden" name="a" value="page_({$hash_tbl->hash('topic_list','page')})">
     27<h3 class="item">ID検索</h3>
     28<input class="basic" type="text" name="target_c_commu_topic_id" value="({$target_c_commu_topic_id})">
     29<span class="textBtnS"><input type="submit" value="検索"></span>
     30</form>
    2431</div>
    2532
     
    4249({/if})
    4350
     51({foreach from=$topic_list item=item})
    4452<table class="basicType2">
    4553<tbody>
    46 ({foreach from=$topic_list item=item})
    4754({****})
    4855<tr>
    4956<th>ID</th>
     57<form action="./" method="get">
    5058<td class="type1">
    5159({$item.c_commu_topic_id})
     60<input type="hidden" name="m" value="({$module_name})" />
     61<input type="hidden" name="a" value="page_({$hash_tbl->hash('delete_topic')})" />
     62<input type="hidden" name="target_c_commu_topic_id" value="({$item.c_commu_topic_id})"/>
     63<span class="textBtnS"><input type="submit" value="削除" /></span>
    5264</td>
     65</form>
    5366</tr>
    5467({****})
     
    8497<th>トピック本文</th>
    8598<td width="500">
    86 ({$item.body|nl2br})
     99({if $item.image_filename1 || $item.image_filename2 || $item.image_filename3})
     100<div>
     101({if $item.image_filename1})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename1})" target="_blank"><img src="({t_img_url filename=$item.image_filename1 w=120 h=120})"></a></span>({/if})
     102({if $item.image_filename2})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename2})" target="_blank"><img src="({t_img_url filename=$item.image_filename2 w=120 h=120})"></a></span>({/if})
     103({if $item.image_filename3})<span class="padding_s"><a href="({t_img_url filename=$item.image_filename3})" target="_blank"><img src="({t_img_url filename=$item.image_filename3 w=120 h=120})"></a></span>({/if})
     104</div>
     105({/if})
     106({$item.body|t_truncate:"120"|nl2br})
    87107</td>
    88108</tr>
    89109({****})
    90 ({/foreach})
    91110</tbody>
    92111</table>
     112<br>
     113({/foreach})
    93114
    94115({if $page_list})
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/validate/do/delete_kakikomi_c_review.ini

    r2016 r3419  
    1 [target_c_review_id]
     1[target_c_review_comment_id]
    22type = "int"
    33required = 1
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/validate/page/diary_comment_list.ini

    r783 r3419  
    66type = "string"
    77default = ""
     8
     9[target_c_diary_comment_id]
     10type = "int"
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/validate/page/diary_list.ini

    r783 r3419  
    66type = "string"
    77default = ""
     8
     9[target_c_diary_id]
     10type = "int"
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/validate/page/review_list.ini

    r2016 r3419  
    66type = "string"
    77default = ""
     8
     9[target_c_review_comment_id]
     10type = "int"
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/validate/page/topic_comment_list.ini

    r783 r3419  
    66type = "string"
    77default = ""
     8
     9[target_c_commu_topic_comment_id]
     10type = "int"
  • OpenPNE/branches/work/maruyama/prj_watch/webapp/modules/admin/validate/page/topic_list.ini

    r783 r3419  
    66type = "string"
    77default = ""
     8
     9[target_c_commu_topic_id]
     10type = "int"
Note: See TracChangeset for help on using the changeset viewer.