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

Changeset 8519


Ignore:
Timestamp:
Sep 27, 2008, 9:17:55 PM (12 years ago)
Author:
toraneko
Message:

特定のカテゴリをコミュニティ作成時に選べないようにする機能追加

Location:
OpenPNE/branches/work/toraneko/prj_newfeature/prj_commu_adm/webapp
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/work/toraneko/prj_newfeature/prj_commu_adm/webapp/lib/db/commu.php

    r8374 r8519  
    15551555            ' ORDER BY pcat.sort_order, cat.sort_order';
    15561556    return db_get_all($sql);
     1557}
     1558
     1559// 作成可能なコミュニティカテゴリリストを取得
     1560function db_commu_c_commu_category4createflag()
     1561{
     1562    $create_flag = 1;
     1563    $sql = 'SELECT cat.* FROM c_commu_category AS cat' .
     1564            ' INNER JOIN c_commu_category_parent AS pcat' .
     1565            ' USING (c_commu_category_parent_id)' .
     1566            ' WHERE cat.create_flag = ?' .
     1567            ' ORDER BY pcat.sort_order, cat.sort_order';
     1568    $params = array(intval($create_flag));
     1569    return db_get_all($sql,$params);
    15571570}
    15581571
  • OpenPNE/branches/work/toraneko/prj_newfeature/prj_commu_adm/webapp/lib/db/deprecated_lib.php

    r4933 r8519  
    409409    return db_commu_c_commu_topic4c_commu_topic_id_3($c_commu_topic_id);
    410410}
    411 
    412 
    413 function _db_c_commu_category4null()
    414 {
    415     return db_commu_c_commu_category4null();
    416 }
    417 
    418411
    419412function p_h_com_find_all_c_commu_category_list4null()
  • OpenPNE/branches/work/toraneko/prj_newfeature/prj_commu_adm/webapp/modules/admin/do/update_c_commu_category.php

    r4933 r8519  
    1818            $requests['c_commu_category_id'],
    1919            $requests['name'],
    20             $requests['sort_order']);
     20            $requests['sort_order'],
     21            $requests['create_flag']);
    2122
    2223        admin_client_redirect('edit_category', '小カテゴリを編集しました');
  • OpenPNE/branches/work/toraneko/prj_newfeature/prj_commu_adm/webapp/modules/admin/lib/db_admin.php

    r8316 r8519  
    361361}
    362362
    363 function db_admin_update_c_commu_category($c_commu_category_id, $name, $sort_order)
     363function db_admin_update_c_commu_category($c_commu_category_id, $name, $sort_order, $create_flag)
    364364{
    365365    $data = array(
    366366        'name' => $name,
    367         'sort_order' => intval($sort_order)
     367        'sort_order' => intval($sort_order),
     368        'create_flag' => intval($create_flag),
    368369    );
    369370    $where = array('c_commu_category_id' => intval($c_commu_category_id));
  • OpenPNE/branches/work/toraneko/prj_newfeature/prj_commu_adm/webapp/modules/admin/templates/edit_category.tpl

    r8374 r8519  
    7070<table class="basicType2">
    7171<thead>
    72 <tr class="smallCtgItem"><th colspan="4"><a name="opt_({$item.name})">({$item.name})</a></th></tr>
     72<tr class="smallCtgItem"><th colspan="5"><a name="opt_({$item.name})">({$item.name})</a></th></tr>
    7373<tr class="smallCtgTable">
    7474<th>項目名</th>
    7575<th>並び順</th>
     76<th>作成</th>
    7677<th colspan="2">操作</th>
    7778</tr>
     
    8990({/strip})</td>
    9091<td><input class="basic" type="text" name="sort_order" value="({$option.sort_order})" size="5" /></td>
     92<td><select class="basic" name="create_flag">
     93<option value="1"({if $option.create_flag}) selected="selected"({/if})>可</option>
     94<option value="0"({if !$option.create_flag}) selected="selected"({/if})>不可</option>
     95</select></td>
    9196<td><span class="textBtnS"><input type="submit" value=" 変 更 " /></span></td>
    9297</form>
     
    112117({/strip})</td>
    113118<td><input class="basic" type="text" name="sort_order" value="" size="5" /></td>
     119<td><input class="basic" type="text" name="sort_order" value="" size="5" /></td>
    114120<td colspan="2"><span class="textBtnS"><input type="submit" value="項目追加" /></span></td>
    115121</form>
  • OpenPNE/branches/work/toraneko/prj_newfeature/prj_commu_adm/webapp/modules/admin/validate/do/update_c_commu_category.ini

    r2 r8519  
    1010type = "int"
    1111default = 0
     12
     13[create_flag]
     14type = "int"
     15required = 1
  • OpenPNE/branches/work/toraneko/prj_newfeature/prj_commu_adm/webapp/modules/ktai/page/h_com_add.php

    r4933 r8519  
    1212
    1313        //カテゴリのリスト
    14         $this->set("c_commu_category_list", db_commu_c_commu_category4null());
     14        $this->set("c_commu_category_list", db_commu_c_commu_category4createflag());
    1515
    1616        return 'success';
  • OpenPNE/branches/work/toraneko/prj_newfeature/prj_commu_adm/webapp/modules/pc/page/h_com_add.php

    r6410 r8519  
    2828        $this->set('inc_navi', fetch_inc_navi('h'));
    2929
    30         $c_commu_category_list = db_commu_c_commu_category4null();
     30        $c_commu_category_list = db_commu_c_commu_category4createflag();
    3131        $this->set("c_commu_category", $c_commu_category_list);
    3232
Note: See TracChangeset for help on using the changeset viewer.