Changeset 5764

Show
Ignore:
Timestamp:
04/15/08 21:30:15 (9 months ago)
Author:
inureyes
Message:

#920

  • human-friendly UI로 에디터쪽을 개편
  • 관련 CSS 수정
  • 드래프트 기능 삭제. 별표로 커버가 됩니다.
Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/owner/entry/edit/index.php

    r5730 r5764  
    134134                                } 
    135135                                 
     136                                var star = <?php echo ($entry['starred'] == 2 ? 'true' : 'false');?>; 
     137 
     138                                function setStar() { 
     139                                    if(star == true) { 
     140                                        star = false; 
     141                                        document.getElementById("starred").className = 'unstar-icon'; 
     142                                    } else { 
     143                                        star = true; 
     144                                        document.getElementById("starred").className = 'star-icon'; 
     145                                    } 
     146                                    return true; 
     147                                } 
     148 
    136149                                function EntryManager() { 
    137150                                    this.savedData = null; 
     
    190203                                            } 
    191204                                        } 
    192                                         var starred = 1; 
    193                                         for (var i = 0; i < oForm.starred.length; i++) { 
    194                                             if (oForm.starred[i].checked) { 
    195                                                 starred = oForm.starred[i].value; 
    196                                                 break; 
    197                                             } 
    198                                         } 
     205                                        var starred  = 2; 
     206                                        if(star == true) starred = 2; 
     207                                        else starred = 0; 
     208 
    199209                                        var entrytype = 0; 
    200210                                        for (var i = 0; i < oForm.entrytype.length; i++) { 
     
    559569                                            <dt><label for="title" id="title-line-label"><?php echo $isKeyword ? _t('키워드') : _t('제목');?></label></dt> 
    560570                                            <dd> 
     571                                            <div id="starred" class="<?php echo ($entry['starred'] == 2 ? 'star-icon' : 'unstar-icon');?>"> 
     572<a href="#void" onclick="setStar(); return false;" title="<?php echo _t('별표를 줍니다.');?>"><span class="text"><?php echo _t('별표');?></span></a> 
     573                                                 
     574                                                 
     575                                                 
     576                                                 
     577                                                 
     578                                                 
     579                                                 
     580                                                 
     581                                                 
     582                                                 
     583                                                 
     584                                                </div> 
    561585                                                <input type="text" id="title" class="input-text" name="title" value="<?php echo htmlspecialchars($entry['title']);?>" onkeypress="return preventEnter(event);" size="60" /> 
    562586                                            </dd> 
     
    817841                                                    <div id="status-public" class="status-public"><input type="radio" id="visibility_public" class="radio" name="visibility" value="2"<?php echo (abs($entry['visibility']) == 2 ? ' checked="checked"' : '');?> /><label for="visibility_public"><?php echo _t('공개');?></label></div> 
    818842                                                    <div id="status-syndicated" class="status-syndicated"<?php if($isKeyword) echo _t('style="display: none"');?>><input type="radio" id="visibility_syndicated" class="radio" name="visibility" value="3"<?php echo $countResult == false ? ' onclick="viewWhatIsEolin();"' : NULL; echo (abs($entry['visibility']) == 3 ? ' checked="checked"' : '');?> /><label for="visibility_syndicated"><?php echo _t('발행');?><?php echo $countResult == true ? ' (<a href="#void" onclick="viewWhatIsEolin();">'._t('설명').'</a>)' : NULL;?></label></div> 
    819                                                 </dd> 
    820                                             </dl> 
    821                                              
    822                                             <dl id="finish-line" class="line"> 
    823                                                 <dt><span class="label"><?php echo _t('완성여부');?></span></dt> 
    824                                                 <dd> 
    825                                                     <div id="status-finished" class="status-finished"><input type="radio" id="write_finished" class="radio" name="starred" value="1"<?php echo (abs($entry['starred']) > 0 ? ' checked="checked"' : '');?> /><label for="write_finished"><?php echo _t('완성한 글');?></label></div> 
    826                                                     <div id="status-draft" class="status-draft"><input type="radio" id="write_draft" class="radio" name="starred" value="0"<?php echo (abs($entry['starred']) == 0 ? ' checked="checked"' : '');?> /><label for="write_draft"><?php echo _t('쓰고 있는 글');?></label></div> 
    827                                                     <div id="status-starred" class="status-starred"><input type="radio" id="write_starred" class="radio" name="starred" value="0"<?php echo (abs($entry['starred']) == 2 ? ' checked="checked"' : '');?> /><label for="write_starred"><?php echo _t('별표가 붙은 글');?></label></div> 
    828843                                                </dd> 
    829844                                            </dl> 
  • trunk/interface/owner/entry/index.php

    r5745 r5764  
    722722                            <ul id="entry-tabs-box" class="tabs-box"> 
    723723                                <li class="entry-all<?php echo isset($tabsClass['all']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>"><?php echo _t('모든 글');?></a></li> 
    724                                 <li class="entry-draft<?php echo isset($tabsClass['draft']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=draft"><?php echo _t('쓰고 있는 글');?></a></li> 
     724<!--                                <li class="entry-draft<?php echo isset($tabsClass['draft']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=draft"><?php echo _t('쓰고 있는 글');?></a></li>--> 
    725725                                <li class="entry-starred<?php echo isset($tabsClass['starred']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=starred"><?php echo _t('별표');?></a></li> 
    726726                                <li class="entry-private<?php echo isset($tabsClass['private']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&amp;visibility=private"><?php echo _t('비공개 글');?></a></li> 
  • trunk/style/admin/whitedream/editor.css

    r5730 r5764  
    5353    border                           : 1px solid #999999; 
    5454    vertical-align                   : middle; 
    55     width                            : 560px; 
     55    width                            : 537px; 
     56} 
     57 
     58#starred 
     59{ 
     60    width                            : 20px; 
     61    display                          : inline; 
     62    padding-right                    : 10px; 
     63} 
     64 
     65.star-icon span, 
     66.unstar-icon span 
     67{ 
     68    display                          : none; 
     69} 
     70 
     71.star-icon a 
     72{ 
     73    background-image                 : url("./image/icon_starred.gif"); 
     74    background-position              : left bottom; 
     75    background-repeat                : no-repeat; 
     76    display                          : block;  
     77    width                            : 16px; 
     78    height                           : 20px; 
     79    float                            : left; 
     80} 
     81 
     82.unstar-icon a 
     83{ 
     84    background-image                 : url("./image/icon_unstarred.gif"); 
     85    background-position              : left bottom; 
     86    background-repeat                : no-repeat; 
     87    display                          : block;  
     88    width                            : 16px; 
     89    height                           : 20px; 
     90    float                            : left; 
    5691} 
    5792