Changeset 4753

Show
Ignore:
Timestamp:
12/13/07 21:39:46 (11 months ago)
Author:
inureyes
Message:

#722

  • 관련 기능 추가
Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/blog/owner/entry/edit/item.php

    r4730 r4753  
    66$IV = array( 
    77    'GET' => array( 
    8         'draft' => array('any', 'mandatory' => false), 
     8        'draft'       => array('any', 'mandatory' => false), 
    99        'popupEditor' => array('any', 'mandatory' => false), 
    10         'returnURL' => array('string', 'mandatory' => false) 
     10        'returnURL'   => array('string', 'mandatory' => false), 
     11        'category'    => array('int', 'default' => 0) 
    1112    ), 
    1213    'POST' => array( 
    13         'category' => array('int', 'default' => 0), 
    14         'search' => array('string', 'default' => ''), 
     14        'category'  => array('int', 'default' => 0), 
     15        'search'    => array('string', 'default' => ''), 
    1516        'returnURL' => array('string', 'mandatory' => false) 
    1617    ) 
     
    2930    $suri['id'] = 0; 
    3031 
    31 if(isset($_GET['draft'])) { 
     32if (isset($_GET['draft'])) { 
    3233    $entry = getEntry(getBlogId(), $suri['id'], true); 
    3334} else { 
     
    3738    respondErrorPage(_t('포스트 정보가 존재하지 않습니다.')); 
    3839    $isKeyword = ($entry['category'] == -1); 
     40} 
     41 
     42if (defined('__TEXTCUBE_POST__') && isset($_GET['category'])) { 
     43    $entry['category'] = $_GET['category']; 
    3944} 
    4045 
  • trunk/components/Needlworks.Database.php

    r4737 r4753  
    1818        require_once ROOT.'/components/Needlworks.DBMS.MySQL.php'; 
    1919} 
     20 
     21/* TableQuery */ 
     22// class TableQuery will be depreacted after 1.6 tree. 
     23// (Will be replaced to POD Framework) 
    2024 
    2125class TableQuery { 
  • trunk/lib/piece/owner/contentMenu.php

    r4715 r4753  
    11<?php 
     2/// Copyright (c) 2004-2007, Needlworks / Tatter Network Foundation 
     3/// All rights reserved. Licensed under the GPL. 
     4/// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) 
     5 
    26if(isset($blogMenu['topMenu'])) { 
    37    switch($blogMenu['topMenu']) { 
     
    132136    $firstChildClass = ' firstChild'; 
    133137    $submenuURL = null; 
     138    if (isset($_POST['category'])) $currentCategory = $_POST['category']; 
     139    else if (isset($_GET['category'])) $currentCategory = $_GET['category']; 
     140    else $currentCategory = null; 
    134141    foreach($blogContentMenuItem as $contentMenuItem) {  
    135142        $PostIdStr = null; 
     
    152159                            (isset($_GET['name']) && ('adminMenu?name='.$_GET['name'] == $contentMenuItem['menu'])) || 
    153160                            ($contentMenuItem['menu'] == 'trash' && strpos($blogMenu['contentMenu'],'trash') !== false) || 
    154                             ($blogMenu['contentMenu'] == 'edit' && $contentMenuItem['menu'] == 'post')) ? " class=\"selected{$firstChildClass}\"" : '');?>><a href="<?php echo $blogURL.$contentMenuItem['link'].($service['useRewriteEngine'] ? '' : '/index.php');?>"><span class="text"><?php echo $contentMenuItem['title'];?></span></a></li> 
     161                            ($blogMenu['contentMenu'] == 'edit' && $contentMenuItem['menu'] == 'post')) ? " class=\"selected{$firstChildClass}\"" : '');?>><a href="<?php  
     162                        echo $blogURL. 
     163                            $contentMenuItem['link']. 
     164                            ($service['useRewriteEngine'] ? '' : '/index.php'). 
     165                            ($contentMenuItem['menu'] == 'post' && isset($currentCategory) ? '?category='.$currentCategory : ''); 
     166                        ?>"><span class="text"><?php echo $contentMenuItem['title'];?></span></a></li> 
    155167<?php 
    156168        $firstChildClass = null;