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

Changeset 2833


Ignore:
Timestamp:
May 12, 2007, 4:25:57 PM (12 years ago)
Author:
ogawa
Message:

#709:「CMD設定」のページャをはずす

Location:
OpenPNE/branches/2.8.x/webapp/modules/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2.8.x/webapp/modules/admin/lib/db_admin.php

    r2795 r2833  
    20592059
    20602060
    2061 //CMDを全て取得(ページャー付き)
    2062 function db_admin_get_c_cmd_all($page, $page_size, &$pager)
     2061//CMDを全て取得
     2062function db_admin_get_c_cmd_all()
    20632063{
    20642064    $sql = 'SELECT * FROM c_cmd ORDER BY c_cmd_id';
    2065 
    2066     $list = db_get_all_page($sql, $page, $page_size, $params);
    2067 
    2068     $sql = 'SELECT count(*) FROM c_cmd';
    2069     $total_num = db_get_one($sql, $params);
    2070     $pager = admin_make_pager($page, $page_size, $total_num);
    2071 
    2072     return $list;
     2065    return db_get_all($sql);
    20732066}
    20742067
  • OpenPNE/branches/2.8.x/webapp/modules/admin/page/list_c_cmd.php

    r1856 r2833  
    1010    function execute($requests)
    1111    {
    12         $pager = array();
    13         $c_cmd_list = db_admin_get_c_cmd_all($requests['page'], $requests['page_size'], $pager);
     12        $c_cmd_list = db_admin_get_c_cmd_all();
    1413
    1514        $permit_list = db_get_permit_list();
     
    2524        }
    2625
    27         $this->set("pager", $pager);
    2826        $this->set("c_cmd_list", $c_cmd_list);
    2927        return 'success';
  • OpenPNE/branches/2.8.x/webapp/modules/admin/templates/list_c_cmd.tpl

    r2802 r2833  
    99
    1010({if $msg})<p class="actionMsg">({$msg})</p>({/if})
    11 <h2>CMD一覧</h2>
     11<h2>CMD設定</h2>
    1212<div class="contents">
    1313
    1414<p>※CMD名称記述例 : ファイル名から拡張子を取り除いたもの<br>youtube.js → youtube</p>
    15 
    16 ({if $pager && $pager.total_num > 0})
    17 ({capture name="pager"})
    18 <div class="listControl">
    19 <p class="display">
    20 ({$pager.total_num}) 件中 ({$pager.start_num}) - ({$pager.end_num})件目を表示しています
    21 </p>
    22 <p class="listMove">
    23 ({if $pager.prev_page})
    24 <a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_cmd')})&amp;page=({$pager.prev_page})&amp;page_size=({$pager.page_size})({$cond})">前へ</a>&nbsp;
    25 ({/if})
    26 ({foreach from=$pager.disp_pages item=i})
    27 ({if $i == $pager.page})
    28 &nbsp;<strong>({$i})</strong>&nbsp;
    29 ({else})
    30 <a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_cmd')})&amp;page=({$i})&amp;page_size=({$pager.page_size})({$cond})">&nbsp;({$i})&nbsp;</a>
    31 ({/if})
    32 ({/foreach})
    33 ({if $pager.next_page})
    34 &nbsp;<a href="?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_cmd')})&amp;page=({$pager.next_page})&amp;page_size=({$pager.page_size})({$cond})">次へ</a>
    35 ({/if})
    36 </p>
    37 </div>({*/div class="listControl"*})
    38 ({/capture})
    39 
    40 ({$smarty.capture.pager|smarty:nodefaults})
    41 ({/if})
    4215
    4316<table class="basicType2">
     
    6740
    6841({foreach from=$permit_list key=key item=name})
    69 <input name="permit[]" type="checkbox" value="({$key})"({if $c_cmd.permit[$name] == 1}) checked="checked"({/if})>({$name})
     42<input name="permit[]" type="checkbox" value="({$key})"({if $c_cmd.permit[$name] == 1}) checked="checked"({/if})>({$name})<br />
    7043({/foreach})
    7144
     
    10073<td><input type="text" class="basic" name="name"></td>
    10174<td>
     75
    10276({foreach from=$permit_list key=key item=name})
    103 <input name="permit[]" type="checkbox" value="({$key})" checked="checked">({$name})
     77<input name="permit[]" type="checkbox" value="({$key})" checked="checked">({$name})<br />
    10478({/foreach})
     79
    10580</td>
    10681<td colspan='2' align='center'><span class="textBtnS"><input type="submit" class="submit" value=" 追 加 "></span></td>
     
    11085</table>
    11186
    112 ({if $pager && $pager.total_num > 0})
    113 ({$smarty.capture.pager|smarty:nodefaults})
    114 ({/if})
    115 
    11687({$inc_footer|smarty:nodefaults})
Note: See TracChangeset for help on using the changeset viewer.