Changeset 17453


Ignore:
Timestamp:
2008/07/23 13:27:40 (13 years ago)
Author:
Seasoft
Message:

権限によるナビゲーションの表示・非表示制御

Location:
branches/comu-ver2
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/Smarty/templates/default/admin/login_frame.tpl

    r17351 r17453  
    3232<script type="text/javascript" src="<!--{$TPL_DIR}-->js/jquery.js"></script> 
    3333<script type="text/javascript" src="<!--{$TPL_DIR}-->js/thickbox.js"></script> 
    34 <title>EC CUBE 管理者画面</title> 
     34<title>管理機能</title> 
    3535</head> 
    3636 
  • branches/comu-ver2/data/Smarty/templates/default/admin/main_frame.tpl

    r17425 r17453  
    4646</head> 
    4747 
    48 <body onload="preLoadImg('<!--{$TPL_DIR}-->'); <!--{$tpl_onload}-->"> 
     48<body onload="preLoadImg('<!--{$TPL_DIR}-->'); <!--{$tpl_onload}-->" class="<!--{if strlen($tpl_authority) >= 1}-->authority_<!--{$tpl_authority}--><!--{/if}-->"> 
    4949<!--{$GLOBAL_ERR}--> 
    5050<noscript> 
     
    7373  <ul id="navi"> 
    7474    <li id="navi-basis" class="<!--{if $tpl_mainno eq "basis"}-->on<!--{/if}-->"> 
    75       <a href="<!--{$smarty.const.URL_DIR}-->admin/basis/index.php"><span>基本情報管理</span></a> 
     75      <a><span>基本情報管理</span></a> 
    7676      <!--{include file="`$smarty.const.TEMPLATE_ADMIN_DIR`basis/subnavi.tpl"}--> 
    7777    </li> 
    7878    <li id="navi-products" class="<!--{if $tpl_mainno eq "products"}-->on<!--{/if}-->"> 
    79       <a href="<!--{$smarty.const.URL_DIR}-->admin/products/index.php"><span>商品管理</span></a> 
     79      <a><span>商品管理</span></a> 
    8080      <!--{include file="`$smarty.const.TEMPLATE_ADMIN_DIR`products/subnavi.tpl"}--> 
    8181    </li> 
    8282    <li id="navi-customer" class="<!--{if $tpl_mainno eq "customer"}-->on<!--{/if}-->"> 
    83       <a href="<!--{$smarty.const.URL_DIR}-->admin/customer/index.php"><span>顧客管理</span></a> 
     83      <a><span>顧客管理</span></a> 
    8484      <!--{include file="`$smarty.const.TEMPLATE_ADMIN_DIR`customer/subnavi.tpl"}--> 
    8585    </li> 
    8686    <li id="navi-order" class="<!--{if $tpl_mainno eq "order"}-->on<!--{/if}-->"> 
    87       <a href="<!--{$smarty.const.URL_DIR}-->admin/order/index.php"><span>受注管理</span></a> 
     87      <a><span>受注管理</span></a> 
    8888      <!--{include file="`$smarty.const.TEMPLATE_ADMIN_DIR`order/subnavi.tpl"}--> 
    8989    </li> 
    9090    <li id="navi-total" class="<!--{if $tpl_mainno eq "total"}-->on<!--{/if}-->"> 
    91       <a href="<!--{$smarty.const.URL_DIR}-->admin/total/index.php"><span>売上集計</span></a> 
     91      <a><span>売上集計</span></a> 
    9292      <!--{include file="`$smarty.const.TEMPLATE_ADMIN_DIR`total/subnavi.tpl"}--> 
    9393    </li> 
    9494    <li id="navi-mail" class="<!--{if $tpl_mainno eq "mail"}-->on<!--{/if}-->"> 
    95       <a href="<!--{$smarty.const.URL_DIR}-->admin/mail/index.php"><span>メルマガ管理</span></a> 
     95      <a><span>メルマガ管理</span></a> 
    9696      <!--{include file="`$smarty.const.TEMPLATE_ADMIN_DIR`mail/subnavi.tpl"}--> 
    9797    </li> 
    9898    <li id="navi-contents" class="<!--{if $tpl_mainno eq "contents"}-->on<!--{/if}-->"> 
    99       <a href="<!--{$smarty.const.URL_DIR}-->admin/contents/index.php"><span>コンテンツ管理</span></a> 
     99      <a><span>コンテンツ管理</span></a> 
    100100      <!--{include file="`$smarty.const.TEMPLATE_ADMIN_DIR`contents/subnavi.tpl"}--> 
    101101    </li> 
    102102    <li id="navi-design" class="<!--{if $tpl_mainno eq "design"}-->on<!--{/if}-->"> 
    103       <a href="<!--{$smarty.const.URL_DIR}-->admin/design/index.php"><span>デザイン管理</span></a> 
     103      <a><span>デザイン管理</span></a> 
    104104      <!--{include file="`$smarty.const.TEMPLATE_ADMIN_DIR`design/subnavi.tpl"}--> 
    105105    </li> 
    106106    <li id="navi-system" class="<!--{if $tpl_mainno eq "system"}-->on<!--{/if}-->"> 
    107       <a href="<!--{$smarty.const.URL_DIR}-->admin/system/index.php"><span>システム設定</span></a> 
     107      <a><span>システム設定</span></a> 
    108108      <!--{include file="`$smarty.const.TEMPLATE_ADMIN_DIR`system/subnavi.tpl"}--> 
    109109    </li> 
    110110    <li id="navi-ownersstore" class="<!--{if $tpl_mainno eq "ownersstore"}-->on<!--{/if}-->"> 
    111       <a href="<!--{$smarty.const.URL_DIR}-->admin/ownersstore/index.php"><span>OWNERS STORE</span></a> 
     111      <a><span>OWNERS STORE</span></a> 
    112112      <!--{include file="`$smarty.const.TEMPLATE_ADMIN_DIR`ownersstore/subnavi.tpl"}--> 
    113113    </li> 
  • branches/comu-ver2/data/Smarty/templates/default/admin/system/index.tpl

    r17351 r17453  
    4444    <!--{section name=data loop=$list_data}--><!--▼メンバー<!--{$smarty.section.data.iteration}-->--> 
    4545    <tr> 
    46       <!--{assign var="auth" value=$list_data[data].authority}--><td width="65" align="center"><!--{$arrAUTHORITY[$auth]|escape}--></td> 
     46      <!--{assign var="auth" value=$list_data[data].authority}--><td><!--{$arrAUTHORITY[$auth]|escape}--></td> 
    4747      <td><!--{$list_data[data].name|escape}--></td> 
    4848      <td><!--{$list_data[data].department|escape}--></td> 
  • branches/comu-ver2/data/Smarty/templates/default/admin/system/input.tpl

    r17425 r17453  
    7373  </tr> 
    7474  <tr> 
    75     <th>管理権限</th> 
     75    <th>権限</th> 
    7676    <td> 
    7777      <!--{if $arrErr.authority}--><span class="attention"><!--{$arrErr.authority}--></span><!--{/if}--> 
  • branches/comu-ver2/data/class/SC_Session.php

    r16741 r17453  
    4141            $this->cert = $_SESSION['cert']; 
    4242            $this->login_id  = $_SESSION['login_id']; 
    43             $this->authority = $_SESSION['authority'];  // 管理者:0, 一般:1, 閲覧:2 
     43            $this->authority = $_SESSION['authority'];  // 管理者:0, 店舗オーナー:1, 閲覧:2, 販売担当:3 (XXX 現状 0, 1 を暫定実装。2, 3 は未実装。) 
    4444            $this->member_id = $_SESSION['member_id']; 
    4545            if (isset($_SESSION['uniq_id'])) { 
  • branches/comu-ver2/data/class/pages/LC_Page.php

    r17137 r17453  
    8181     * @return void 
    8282     */ 
    83     function init() {} 
     83    function init() { 
     84        $this->tpl_authority = $_SESSION['authority']; 
     85    } 
    8486 
    8587    /** 
  • branches/comu-ver2/html/install/sql/insert_data.sql

    r17444 r17453  
    558558INSERT INTO mtb_disable_logout VALUES ('4', '/shopping/card.php',3); 
    559559INSERT INTO mtb_disable_logout VALUES ('5', '/shopping/loan.php',4); 
    560 INSERT INTO mtb_authority VALUES ('0', '管理者',0); 
     560INSERT INTO mtb_authority VALUES ('0', 'システム管理者',0); 
     561INSERT INTO mtb_authority VALUES ('1', '店舗オーナー',1); 
    561562INSERT INTO mtb_work VALUES ('0', '非稼働',0); 
    562563INSERT INTO mtb_work VALUES ('1', '稼働',1); 
  • branches/comu-ver2/html/user_data/packages/default/css/admin_contents.css

    r17422 r17453  
    150150 
    151151#navi li ul { 
    152     position: absolute; 
     152    position: absolute; 
    153153    top: 30px; 
    154     left: -999em; 
    155     height: auto; 
    156     width: 14.4em; 
    157     w\idth: 13.9em; 
    158     font-weight: normal; 
     154    left: -999em; 
     155    height: auto; 
     156    width: 14.4em; 
     157    font-weight: normal; 
    159158    clear: both; 
    160159} 
    161160#navi li li, #navi li li a, #navi li li a span { 
    162     width: 14.4em; 
    163     w\idth: 13.9em; 
     161    width: 14.4em; 
    164162    height: 2em; 
    165163    line-height: 2em; 
     
    180178} 
    181179#navi li:hover ul ul, #navi li:hover ul ul ul, #navi li.sfhover ul ul, #navi li.sfhover ul ul ul { 
    182     left: -999em; 
     180    left: -999em; 
    183181} 
    184182#navi li:hover ul, #navi li li:hover ul, #navi li li li:hover ul, 
    185183#navi li.sfhover ul, #navi li li.sfhover ul, #navi li li li.sfhover ul { 
    186     left: auto; 
     184    left: auto; 
    187185} 
    188186 
     
    452450*/ 
    453451.clear-block:after { 
    454   content: "."; 
    455   display: block; 
    456   height: 0; 
    457   clear: both; 
    458   visibility: hidden; 
     452    content: "."; 
     453    display: block; 
     454    height: 0; 
     455    clear: both; 
     456    visibility: hidden; 
    459457} 
    460458 
     
    465463/* Hides from IE-mac \*/ 
    466464* html .clear-block { 
    467   height: 1%; 
     465    height: 1%; 
    468466} 
    469467.clear-block { 
    470   display: block; 
     468    display: block; 
    471469} 
    472470/* End hide from IE-mac */ 
     471 
     472/* 権限 */ 
     473x-dummy 
     474,.authority_1 #navi-basis-control 
     475,.authority_1 #navi-basis-parameter 
     476,.authority_1 #navi-basis-masterdata 
     477,.authority_1 #navi-contents-file 
     478,.authority_1 #navi-design 
     479,.authority_1 #navi-design-bloc 
     480,.authority_1 #navi-design-template 
     481,.authority_1 #navi-design-add 
     482,.authority_1 #navi-system 
     483,.authority_1 #navi-ownersstore 
     484{ 
     485    /* display: none; --- IE で不具合 */ 
     486    height: 0; 
     487    width: 0; 
     488    overflow: hidden; 
     489    border: none; 
     490    visibility: hidden; 
     491} 
Note: See TracChangeset for help on using the changeset viewer.