Changeset 5325

Show
Ignore:
Timestamp:
02/21/08 01:50:55 (11 months ago)
Author:
graphittie
Message:

#703 : 전체 블로그들 및 사용자 관리 패널.

  • #828을 위한 구조 변경.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/interface/owner/control/blog/index.php

    r5285 r5325  
    1818global $blogURL; 
    1919$page = $_GET['page']; 
    20  
     20?> 
     21    <div id="part-create-newblog" class="part"> 
     22        <h2 class="caption"><span class="main-text"><?php echo _t('새 블로그 만들기'); ?></span></h2> 
     23         
     24        <form onsubmit="return false;"> 
     25            <fieldset> 
     26                <dl> 
     27                    <dt><label for="sgtOwner"><?php echo _t('소유자'); ?></label> 
     28                    <dd><input type="text" id="sgtOwner" class="bi-owner-loginid" class="input-text" name="location" value="<?php echo getUserEmail(1);?>" /></dd> 
     29                    <dt><label for="bi-identify"><?php echo _t('블로그 구분자'); ?></label></dt> 
     30                    <dd><input type="text" id="bi-identify" name="bi-identify" /></dd> 
     31                </dl> 
     32            </fieldset> 
     33            <div class="button-box"> 
     34                <input type="submit" class="input-button" value="<?php echo _t("새 블로그 생성");?>" onclick="sendBlogAddInfo(ctlUserSuggestObj.getValue(),document.getElementById('bi-identify').value);return false;"> 
     35            </div> 
     36        </form> 
     37    </div> 
     38     
     39    <div id="part-blog-list" class="part"> 
     40        <h2 class="caption"><span class="main-text"><?php echo _t('블로그 목록');?></span></h2> 
     41         
     42<?php 
    2143if ( $service['type'] == "single" ) { 
    2244?> 
    23 <div class="main-explain-box"> 
    24     <p class="explain"><?php echo _t('현재 단일 블로그 모드 텍스트 큐브가 설정되어 있습니다. 단일 블로그 모드에서는 대표 블로그 만이 외부에 보여집니다.')?></p> 
    25 </div>   
     45        <p class="message"><?php echo _t('현재 단일 블로그 모드 텍스트 큐브가 설정되어 있습니다. 단일 블로그 모드에서는 대표 블로그 만이 외부에 보여집니다.')?></p> 
    2646<?php 
    2747} 
    2848?> 
    29 <h2 class="caption"><span class="main-text"><?php echo _t('새 블로그 만들기'); ?></span></h2> 
    30 <div id=container-add-blog> 
    31 <form onsubmit="return false;"> 
    32 <span class="label"><?php echo _t('소유자'); ?> : </span> 
    33 <span id="sgtOwner"><input type="text" class="bi-owner-loginid" name="location" value="<?php echo getUserEmail(1);?>" /></span>&nbsp;<?php echo _t('블로그 구분자'); ?> : <input type=text name='bi-identify' id='bi-identify'> 
    34 <input type=submit value="<?php echo _t("새 블로그 생성");?>" onclick="sendBlogAddInfo(ctlUserSuggestObj.getValue(),document.getElementById('bi-identify').value);return false;"> 
    35 </form> 
    36 </div> 
    37 <h2 class="caption"><span class="main-text">Blog List</span></h2> 
    38 <div id=container-blog-list class='part'> 
    39 <table class="data-inbox" id="table-blog-list" cellpadding="0" cellspacing="0"> 
    40 <thead> 
    41     <tr> 
    42     <th><?php echo _t('블로그 ID')?></th> 
    43     <th><?php echo _t('블로그 구분자')?></th> 
    44     <th><?php echo _t('블로그 제목')?></th> 
    45     <th><?php echo _t('블로그 소유자')?></th> 
    46     </td><?php if ( $service['type'] != "single" ) {?> 
    47     <th><?php echo _t('바로 가기')?></th> 
    48     <?php }?> 
    49     </tr></thead> 
    50 <tbody> 
     49         
     50        <table class="data-inbox" id="table-blog-list" cellpadding="0" cellspacing="0"> 
     51            <thead> 
     52                <tr> 
     53                <th><?php echo _t('블로그 ID')?></th> 
     54                <th><?php echo _t('블로그 구분자')?></th> 
     55                <th><?php echo _t('블로그 제목')?></th> 
     56                <th><?php echo _t('블로그 소유자')?></th> 
     57<?php if ( $service['type'] != "single" ) {?> 
     58                <th><?php echo _t('바로 가기')?></th> 
     59<?php }?> 
     60                </tr> 
     61            </thead> 
     62            <tbody> 
    5163<?php 
    5264$row = 25; 
     
    6779        } 
    6880        $bsetting['owner']= POD::queryCell("SELECT userid FROM `{$database['prefix']}Teamblog` WHERE acl & ".BITWISE_OWNER." != 0 AND blogid = " . $itemBlogId); 
    69         ?> 
    70  
    71 <tr id="table-blog-list_<?php echo $itemBlogId?>"> 
    72     <td> 
    73         <?php echo $itemBlogId?> 
    74     </td> 
    75     <td> 
    76         <a href="<?php echo $blogURL?>/owner/control/blog/detail/<?php echo $itemBlogId?>"><?php echo $bsetting['name']?></a> 
    77     </td> 
    78     <td> 
    79         <?php echo $bsetting['title']?> 
    80     </td> 
    81     <td> 
    82         <?php echo User::getName($bsetting['owner'])."(".User::getEmail($bsetting['owner']).")";?> 
    83     </td><?php if ( $service['type'] != "single" ) {?> 
    84     <td class="name"> 
    85         <a href="<?php echo getDefaultUrl($itemBlogId);?>"><?php echo _t("보기");?></a> 
    86     </td><?php }?> 
    87 </tr> 
     81?> 
     82                <tr id="table-blog-list_<?php echo $itemBlogId?>"> 
     83                    <td> 
     84                        <?php echo $itemBlogId?> 
     85                    </td> 
     86                    <td> 
     87                        <a href="<?php echo $blogURL?>/owner/control/blog/detail/<?php echo $itemBlogId?>"><?php echo $bsetting['name']?></a> 
     88                    </td> 
     89                    <td> 
     90                        <?php echo $bsetting['title']?> 
     91                    </td> 
     92                    <td> 
     93                        <?php echo User::getName($bsetting['owner'])."(".User::getEmail($bsetting['owner']).")";?> 
     94                    </td><?php if ( $service['type'] != "single" ) {?> 
     95                    <td class="name"> 
     96                        <a href="<?php echo getDefaultUrl($itemBlogId);?>"><?php echo _t("보기");?></a> 
     97                    </td><?php }?> 
     98                </tr> 
    8899<?php 
    89100    } 
    90101} 
    91102?> 
    92 </tbody> 
    93 </table> 
    94 </div> 
     103            </tbody> 
     104        </table> 
     105    </div> 
    95106<?php 
    96107$paging = array('url' => "", 'prefix' => '?page=', 'postfix' => '', 'total' => 0, 'pages' => 0, 'page' => 0); 
     
    100111$pagingItemTemplate = '<a [##_paging_rep_link_##]>[[##_paging_rep_link_num_##]]</a>'; 
    101112?> 
    102 <div id="page-navigation"> 
    103     <span id="page-list"><?php echo getPagingView($paging, $pagingTemplate, $pagingItemTemplate);?></span> 
    104     <span id="total-count"><?php echo _f('총 %1개의 블로그',$blogcount);?></span> 
    105 </div> 
     113    <div id="page-navigation"> 
     114        <span id="page-list"><?php echo getPagingView($paging, $pagingTemplate, $pagingItemTemplate);?></span> 
     115        <span id="total-count"><?php echo _f('총 %1개의 블로그',$blogcount);?></span> 
     116    </div> 
    106117<?php  
    107118require ROOT . '/lib/piece/owner/footer.php';