Changeset 3344 for trunk/components/Textcube.Core.php
- Timestamp:
- 05/25/07 16:25:33 (20 months ago)
- Files:
-
- 1 modified
-
trunk/components/Textcube.Core.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/components/Textcube.Core.php
r3313 r3344 131 131 $Path = str_replace("/".$blog['name'], "", $_SERVER["REQUEST_URI"]); 132 132 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}'\">"; 141 134 142 135 $isEnd = $_SESSION['admin']+1; 143 136 $myres = DBQuery::queryRow("SELECT * FROM `{$database['prefix']}Teamblog` WHERE `userid`='".$_SESSION['admin']."' and enduser='".$isEnd."'"); 144 137 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>'; 147 140 } 148 141 … … 157 150 } 158 151 $blogn .= '<option value="' . $res['teams'] . '"'; 159 if($res['teams'] == $owner) $blogn .= ' selected ';152 if($res['teams'] == $owner) $blogn .= ' selected="selected"'; 160 153 $blogn .= '>' . $title . '</option>'; 161 154 } 162 155 } 163 $blogn .= '</ optgroup> </select> ';156 $blogn .= '</select>'; 164 157 165 158 return $blogn;
