Changeset 5764
- Timestamp:
- 04/15/08 21:30:15 (2 years ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
interface/owner/entry/edit/index.php (modified) (4 diffs)
-
interface/owner/entry/index.php (modified) (1 diff)
-
style/admin/whitedream/editor.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/interface/owner/entry/edit/index.php
r5730 r5764 134 134 } 135 135 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 136 149 function EntryManager() { 137 150 this.savedData = null; … … 190 203 } 191 204 } 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 199 209 var entrytype = 0; 200 210 for (var i = 0; i < oForm.entrytype.length; i++) { … … 559 569 <dt><label for="title" id="title-line-label"><?php echo $isKeyword ? _t('키워드') : _t('제목');?></label></dt> 560 570 <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> 561 585 <input type="text" id="title" class="input-text" name="title" value="<?php echo htmlspecialchars($entry['title']);?>" onkeypress="return preventEnter(event);" size="60" /> 562 586 </dd> … … 817 841 <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> 818 842 <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>828 843 </dd> 829 844 </dl> -
trunk/interface/owner/entry/index.php
r5745 r5764 722 722 <ul id="entry-tabs-box" class="tabs-box"> 723 723 <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'];?>&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'];?>&visibility=draft"><?php echo _t('쓰고 있는 글');?></a></li>--> 725 725 <li class="entry-starred<?php echo isset($tabsClass['starred']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&visibility=starred"><?php echo _t('별표');?></a></li> 726 726 <li class="entry-private<?php echo isset($tabsClass['private']) ? ' selected' : NULL;?>"><a href="<?php echo $blogURL;?>/owner/entry?page=1<?php echo $tab['postfix'];?>&visibility=private"><?php echo _t('비공개 글');?></a></li> -
trunk/style/admin/whitedream/editor.css
r5730 r5764 53 53 border : 1px solid #999999; 54 54 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; 56 91 } 57 92
