Show
Ignore:
Timestamp:
05/25/07 16:25:33 (20 months ago)
Author:
inureyes
Message:

#408

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.5/components/Textcube.Core.php

    r3313 r3344  
    131131            $Path = str_replace("/".$blog['name'], "", $_SERVER["REQUEST_URI"]); 
    132132     
    133         $blogn = ('<script type="text/javascript"> 
    134             function teamblog(){ 
    135                 var bs = document.getElementById("teamblog"); 
    136                 if(bs.value != "") 
    137                     location.href = "'.$blogURL.'/owner/setting/teamblog/changeBlog/?bs=" + bs.value + "&path='.$Path.'"; 
    138             } 
    139             </script>'); 
    140         $blogn .= '<select id="teamblog" onChange="teamblog();"><optgroup label="'._t('참여중인 블로그').'">'; 
     133        $blogn = "<select id=\"teamblog\" onchange=\"location.href='{$blogURL}/owner/setting/teamblog/changeBlog/?bs='+this.value+'&path={$Path}'\">"; 
    141134     
    142135        $isEnd = $_SESSION['admin']+1; 
    143136        $myres = DBQuery::queryRow("SELECT * FROM `{$database['prefix']}Teamblog` WHERE `userid`='".$_SESSION['admin']."' and enduser='".$isEnd."'"); 
    144137        if(!empty($myres['profile'])){ 
    145             if($owner == $_SESSION['admin'] && $myres['userid'] > 1) $myblogsel = " selected "; 
    146             $blogn .= '<option value="'.$myres['userid'].'" '. $myblogsel .'/>'._t('내 블로그').'</option>'; 
     138            if($owner == $_SESSION['admin'] && $myres['userid'] > 1) $myblogsel = ' selected="selected"'; 
     139            $blogn .= '<option value="'.$myres['userid'].'" '. $myblogsel .'>'._t('내 블로그').'</option>'; 
    147140        } 
    148141     
     
    157150                } 
    158151                $blogn .= '<option value="' . $res['teams'] . '"'; 
    159                 if($res['teams'] == $owner) $blogn .= ' selected'; 
     152                if($res['teams'] == $owner) $blogn .= ' selected="selected"'; 
    160153                $blogn .= '>' . $title . '</option>'; 
    161154            } 
    162155        } 
    163         $blogn .= '</optgroup>  </select>&nbsp;&nbsp;&nbsp;&nbsp;'; 
     156        $blogn .= '</select>'; 
    164157 
    165158        return $blogn;