Changeset 3265

Show
Ignore:
Timestamp:
05/15/07 17:18:10 (3 years ago)
Author:
inureyes
Message:

#383

Files:
2 removed
10 modified

Legend:

Unmodified
Added
Removed
  • branches/1.5/blog/owner/entry/index.php

    r3264 r3265  
    4343    $_POST['visibility'] = $_GET['visibility']; 
    4444} 
     45 
     46$tabsClass = array(); 
    4547if (isset($_POST['visibility'])) { 
    46     if($_POST['visibility']=='public') 
     48    if($_POST['visibility']=='public') { 
    4749        $visibility = '>=1'; 
    48     else if($_POST['visibility']=='protected') 
    49         $visibility = '=1';  
    50     else if($_POST['visibility']=='private') 
     50        $tabsClass['public'] = true; 
     51    } else if($_POST['visibility']=='protected') { 
     52        $visibility = '=1'; 
     53        $tabsClass['protected'] = true; 
     54    } else if($_POST['visibility']=='private') { 
    5155        $visibility = '0'; 
     56        $tabsClass['private'] = true; 
     57    } 
    5258} else { 
    5359    $visibility = null; 
     60    $tabsClass['all'] = true; 
    5461} 
    5562 
     
    649656    } 
    650657?></span></h2> 
    651  
     658                             
     659                            <ul id="entry-tabs-box"> 
     660                                <li<?php echo isset($tabsClass['all']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>"><?php echo _t('모든 글');?></a></li> 
     661                                <li<?php echo isset($tabsClass['private']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=private"><?php echo _t('비공개 글');?></a></li> 
     662                                <li<?php echo isset($tabsClass['public']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=public"><?php echo _t('공개된 글');?></a></li> 
     663                            </ul> 
     664                             
    652665                            <form id="category-form" class="category-box" method="post" action="<?php echo $blogURL;?>/owner/entry"> 
    653666                                <div class="section"> 
    654667                                    <input type="hidden" name="page" value="<?php echo $suri['page'];?>" /> 
    655                                      
     668 
    656669                                    <select id="category" name="category" onchange="document.getElementById('category-form').page.value=1; document.getElementById('category-form').submit()"> 
    657670                                        <option value="-5"<?php echo ($categoryId == -5 ? ' selected="selected"' : '');?>><?php echo _t('모든 글');?></option> 
  • branches/1.5/lib/piece/owner/contentMenu.php

    r3264 r3265  
    1313        case 'entry': 
    1414        $blogContentMenuItem = array( 
    15             array('menu'=>'dashboard','title'=>_t('바로가기'),'link'=>'/owner/entry/dashboard'), 
    1615            array('menu'=>'post','title'=>_t('글쓰기'),'link'=>'/owner/entry/post'), 
    1716            array('menu'=>'entry','title'=>_t('글 목록'),'link'=>'/owner/entry'), 
  • branches/1.5/lib/piece/owner/header.php

    r3264 r3265  
    1616$blogTopMenuItem = array( 
    1717    array('menu'=>'center','title'=>_t('센터'),'link'=>'/owner/center/dashboard'), 
    18     array('menu'=>'entry','title'=>_t('글'),'link'=>'/owner/entry/dashboard'), 
     18    array('menu'=>'entry','title'=>_t('글'),'link'=>'/owner/entry'), 
    1919    array('menu'=>'link','title'=>_t('링크'),'link'=>'/owner/link'), 
    2020    array('menu'=>'skin','title'=>_t('스킨'),'link'=>'/owner/skin'), 
  • branches/1.5/style/admin/default/plugin-config.css

    r3255 r3265  
    9595#menu 
    9696{ 
    97     background-image: url('./image/bg_pluginconfig_menu.jpg'); 
     97    background-image: url('./image/bg_tabbox.jpg'); 
    9898    background-position: left bottom; 
    9999    line-height: 2.3em; 
  • branches/1.5/style/admin/default/post.css

    r3246 r3265  
    111111 
    112112/* Post *******************************************************************************************/ 
     113 
     114#part-post-list h2.caption 
     115{ 
     116    margin-bottom: 20px; 
     117} 
     118/* tab */ 
     119 
     120#entry-tabs-box 
     121{ 
     122    background-image: url('./image/bg_tabbox.jpg'); 
     123    background-position: left bottom; 
     124    line-height: 2.3em; 
     125    list-style-type: none; 
     126    height: 2.55em; 
     127    overflow: hidden; 
     128    padding-left: 10px; 
     129} 
     130 
     131#entry-tabs-box li 
     132{ 
     133    background-color: #EFEFEF; 
     134    border: 1px solid #D9D9D9; 
     135    cursor: pointer; 
     136    display: block; 
     137    float: left; 
     138    list-style-type: none; 
     139    margin: 0 1px; 
     140    padding: 0 1em; 
     141} 
     142 
     143#entry-tabs-box li.selected 
     144{ 
     145    background-color: #FFFFFF; 
     146    border-bottom: 1px solid #FFFFFF; 
     147    cursor: default; 
     148} 
    113149 
    114150/* table header */ 
  • trunk/blog/owner/entry/index.php

    r3264 r3265  
    4343    $_POST['visibility'] = $_GET['visibility']; 
    4444} 
     45 
     46$tabsClass = array(); 
    4547if (isset($_POST['visibility'])) { 
    46     if($_POST['visibility']=='public') 
     48    if($_POST['visibility']=='public') { 
    4749        $visibility = '>=1'; 
    48     else if($_POST['visibility']=='protected') 
    49         $visibility = '=1';  
    50     else if($_POST['visibility']=='private') 
     50        $tabsClass['public'] = true; 
     51    } else if($_POST['visibility']=='protected') { 
     52        $visibility = '=1'; 
     53        $tabsClass['protected'] = true; 
     54    } else if($_POST['visibility']=='private') { 
    5155        $visibility = '0'; 
     56        $tabsClass['private'] = true; 
     57    } 
    5258} else { 
    5359    $visibility = null; 
     60    $tabsClass['all'] = true; 
    5461} 
    5562 
     
    649656    } 
    650657?></span></h2> 
    651  
     658                             
     659                            <ul id="entry-tabs-box"> 
     660                                <li<?php echo isset($tabsClass['all']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>"><?php echo _t('모든 글');?></a></li> 
     661                                <li<?php echo isset($tabsClass['private']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=private"><?php echo _t('비공개 글');?></a></li> 
     662                                <li<?php echo isset($tabsClass['public']) ? ' class="selected"' : NULL;?>><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=public"><?php echo _t('공개된 글');?></a></li> 
     663                            </ul> 
     664                             
    652665                            <form id="category-form" class="category-box" method="post" action="<?php echo $blogURL;?>/owner/entry"> 
    653666                                <div class="section"> 
    654667                                    <input type="hidden" name="page" value="<?php echo $suri['page'];?>" /> 
    655                                      
     668 
    656669                                    <select id="category" name="category" onchange="document.getElementById('category-form').page.value=1; document.getElementById('category-form').submit()"> 
    657670                                        <option value="-5"<?php echo ($categoryId == -5 ? ' selected="selected"' : '');?>><?php echo _t('모든 글');?></option> 
  • trunk/lib/piece/owner/contentMenu.php

    r3264 r3265  
    1313        case 'entry': 
    1414        $blogContentMenuItem = array( 
    15             array('menu'=>'dashboard','title'=>_t('바로가기'),'link'=>'/owner/entry/dashboard'), 
    1615            array('menu'=>'post','title'=>_t('글쓰기'),'link'=>'/owner/entry/post'), 
    1716            array('menu'=>'entry','title'=>_t('글 목록'),'link'=>'/owner/entry'), 
  • trunk/lib/piece/owner/header.php

    r3264 r3265  
    1616$blogTopMenuItem = array( 
    1717    array('menu'=>'center','title'=>_t('센터'),'link'=>'/owner/center/dashboard'), 
    18     array('menu'=>'entry','title'=>_t('글'),'link'=>'/owner/entry/dashboard'), 
     18    array('menu'=>'entry','title'=>_t('글'),'link'=>'/owner/entry'), 
    1919    array('menu'=>'link','title'=>_t('링크'),'link'=>'/owner/link'), 
    2020    array('menu'=>'skin','title'=>_t('스킨'),'link'=>'/owner/skin'), 
  • trunk/style/admin/default/plugin-config.css

    r3255 r3265  
    9595#menu 
    9696{ 
    97     background-image: url('./image/bg_pluginconfig_menu.jpg'); 
     97    background-image: url('./image/bg_tabbox.jpg'); 
    9898    background-position: left bottom; 
    9999    line-height: 2.3em; 
  • trunk/style/admin/default/post.css

    r3246 r3265  
    111111 
    112112/* Post *******************************************************************************************/ 
     113 
     114#part-post-list h2.caption 
     115{ 
     116    margin-bottom: 20px; 
     117} 
     118/* tab */ 
     119 
     120#entry-tabs-box 
     121{ 
     122    background-image: url('./image/bg_tabbox.jpg'); 
     123    background-position: left bottom; 
     124    line-height: 2.3em; 
     125    list-style-type: none; 
     126    height: 2.55em; 
     127    overflow: hidden; 
     128    padding-left: 10px; 
     129} 
     130 
     131#entry-tabs-box li 
     132{ 
     133    background-color: #EFEFEF; 
     134    border: 1px solid #D9D9D9; 
     135    cursor: pointer; 
     136    display: block; 
     137    float: left; 
     138    list-style-type: none; 
     139    margin: 0 1px; 
     140    padding: 0 1em; 
     141} 
     142 
     143#entry-tabs-box li.selected 
     144{ 
     145    background-color: #FFFFFF; 
     146    border-bottom: 1px solid #FFFFFF; 
     147    cursor: default; 
     148} 
    113149 
    114150/* table header */