Changeset 5330

Show
Ignore:
Timestamp:
02/21/08 08:06:04 (11 months ago)
Author:
graphittie
Message:

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

  • #828을 위한 구조 변경.
  • 언어 리소스 변경.
  • TODO: 자바스크립트 로직 재작성.
Location:
trunk/interface/owner/control
Files:
4 modified

Legend:

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

    r5328 r5330  
    101101                                <ul> 
    102102                                    <?php if ($bid == getServiceSetting("defaultBlogId",1)) { ?><li><em><?php echo _t('이 블로그는 대표 블로그입니다.');?></em></li><?php } ?> 
    103                                     <li><?php echo _f('이 블로그에는 총 %1개의 글이 있습니다.', POD::queryCell("SELECT Count(*) FROM {$database['prefix']}Entries WHERE blogid = ".$bid));?></li> 
    104                                     <li><?php echo _f('이 블로그에는 총 %1개의 걸린글(트랙백)이 있습니다.', POD::queryCell("SELECT Count(*) FROM {$database['prefix']}Trackbacks WHERE blogid = ".$bid));?></li> 
    105                                     <li><?php echo _f('이 블로그에는 총 %1개의 댓글이 있습니다.', POD::queryCell("SELECT Count(*) FROM {$database['prefix']}Comments WHERE blogid = ".$bid));?></li> 
    106                                     <li><?php echo _f('이 블로그가 사용중인 첨부파일의 총 용량은 %1입니다.', misc::getSizeHumanReadable(POD::queryCell(" SELECT sum( size ) FROM `{$database['prefix']}Attachments` WHERE blogid = ".$bid)));?></li> 
     103                                    <li><?php echo sprintf(_t('이 블로그에는 총 %d개의 글이 있습니다.'), POD::queryCell("SELECT Count(*) FROM {$database['prefix']}Entries WHERE blogid = ".$bid));?></li> 
     104                                    <li><?php echo sprintf(_t('이 블로그에는 총 %d개의 걸린글(트랙백)이 있습니다.'), POD::queryCell("SELECT Count(*) FROM {$database['prefix']}Trackbacks WHERE blogid = ".$bid));?></li> 
     105                                    <li><?php echo sprintf(_t('이 블로그에는 총 %d개의 댓글이 있습니다.'), POD::queryCell("SELECT Count(*) FROM {$database['prefix']}Comments WHERE blogid = ".$bid));?></li> 
     106                                    <li><?php echo sprintf(_t('이 블로그가 사용중인 첨부파일의 총 용량은 %s입니다.'), misc::getSizeHumanReadable(POD::queryCell(" SELECT sum( size ) FROM `{$database['prefix']}Attachments` WHERE blogid = ".$bid)));?></li> 
    107107                                </ul> 
    108108                            </div> 
     
    173173                                <a class="button" href="#void" onclick="deleteBlog(<?php echo $bid;?>); return false;"><?php echo _t("블로그 삭제");?></a> 
    174174                                <?php if ($bid != getServiceSetting("defaultBlogId",1)) { ?><a class="button" href="<?php echo $blogURL;?>/owner/control/action/blog/setDefault/?blogid=<?php echo $bid;?>" onclick="setDefaultBlog('<?php echo $bid;?>); return false;"><?php echo _t('대표 블로그 설정');?></a><?php } ?> 
     175                                <a class="button" href="<?php echo $blogURL;?>/owner/control/blog"><?php echo _t("돌아가기");?></a> 
    175176                            </div> 
    176177                        </div> 
  • trunk/interface/owner/control/system/index.php

    r5324 r5330  
    5757?> 
    5858    <div id="part-system-generalinfo" class="part"> 
    59         <h2 class="caption"><span class="main-text"><?php echo _t('Server Info'); ?></span></h2> 
     59        <h2 class="caption"><span class="main-text"><?php echo _t('Server 정보'); ?></span></h2> 
    6060         
    6161        <table> 
     
    9898     
    9999    <div id="part-system-phpinfo" class="part"> 
    100         <h2 class="caption"><span class="main-text"><?php echo _t('PHP Info'); ?></span></h2> 
     100        <h2 class="caption"><span class="main-text"><?php echo _t('PHP 정보'); ?></span></h2> 
    101101         
    102102<?php  
  • trunk/interface/owner/control/user/detail/index.php

    r5285 r5330  
    1717$usersetting['owner']= POD::queryCell("SELECT userid FROM `{$database['prefix']}Teamblog` WHERE acl & ".BITWISE_OWNER." != 0 AND blogid = " . $blogid); 
    1818?> 
    19                         <div id="part-center-about" class="part"> 
    20  
     19                        <div id="part-user-about" class="part"> 
    2120                            <h2 class="caption"><span class="main-text"><?php echo _t('사용자 정보');?></span></h2> 
    22                          
    23                             <h3><?php echo $usersetting['name'];?></h3> 
    2421                             
    25                             <div class="main-explain-box"> 
    26                                 <p class="explain"><?php echo $usersetting['loginid'];?></h3> 
    27                                 </p> 
    28                                 <div id="copyright"> 
    29                                     <?php if(POD::queryExistence("SELECT * FROM `{$database['prefix']}UserSettings` WHERE name ='AuthToken' AND userid = " . $userid)) {echo _t("임시 암호가 설정되어 있습니다.") . '<br/>';}?> 
    30                                     <?php echo _f('이 계정은 %1에 생성되었습니다.', date("D M j G:i:s T Y",$usersetting['created']));?><br/> 
    31                                 </div> 
     22                            <div id="team-user-about" class="container"> 
     23                                <h3><?php echo $usersetting['name'];?></h3> 
     24                                 
     25                                <div class="main-explain-box"> 
     26                                    <p class="explain"><?php echo $usersetting['loginid'];?></p> 
     27                                </div> 
     28                                 
     29                                <ul> 
     30                                    <?php if(POD::queryExistence("SELECT * FROM `{$database['prefix']}UserSettings` WHERE name ='AuthToken' AND userid = " . $userid)) { echo '<li><em>'._t("임시 암호가 설정되어 있습니다.").'</em></li>';}?> 
     31                                    <li><?php echo sprintf(_t('이 계정은 %s에 생성되었습니다.'), date("D M j G:i:s T Y", $usersetting['created']));?></li> 
     32                                </ul> 
    3233                            </div> 
    3334                             
    34                             <div id="developer-description" class="section"> 
     35                            <!--div id="developer-description" class="section"> 
    3536                                <h3><span class="text"><?php echo _t('팀블로그');?></span></h3> 
    3637                                 
     
    4950                                        <tbody> 
    5051                                            <tr> 
    51     <?php echo "<td class=\"name\"><a href=\"".$blogURL."/owner/control/action/user/delete/?userid=" . $userid . "\" onclick =  \"cleanUser(".$userid.");return false;\">"._t('사용자 삭제')."</a></td>";?> 
     52    <?php echo "<td class=\"name\"></td>";?> 
    5253                                            </tr> 
    53                                                 <td><a href="<?php echo $blogURL;?>/owner/control/user"><?php echo _t('이전 메뉴로 돌아가기');?></a></td> 
     54                                                <td></td> 
    5455                                            <tr> 
    5556                                            </tr> 
     
    5758                                    </table> 
    5859                                </div> 
     60                            </div --> 
     61                             
     62                            <div id="team-joined-list" class="container"> 
     63                                <h4><span class="text"><?php echo _t('참여중인 블로그');?></span></h4> 
    5964                                 
    60                                 <div id="developer-container" class="container"> 
    61                                     <h4><span class="text"><?php echo _t('참여중인 Blog');?></span></h4> 
    62                                     <table> 
    63                                         <colgroup> 
    64                                             <col class="name"></col> 
    65                                             <col class="role"></col> 
    66                                         </colgroup> 
    67                                         <thead> 
    68                                             <tr> 
    69                                                 <th class="name"><?php echo _t('블로그');?></th> 
    70                                                 <th class="role"><?php echo _t('권한 그룹');?></th> 
    71                                             </tr> 
    72                                         </thead> 
    73                                         <tbody><?php 
     65                                <table class="data-inbox"> 
     66                                    <thead> 
     67                                        <tr> 
     68                                            <th class="name"><?php echo _t('블로그');?></th> 
     69                                            <th class="role"><?php echo _t('권한 그룹');?></th> 
     70                                        </tr> 
     71                                    </thead> 
     72                                    <tbody><?php 
    7473$teamblog = POD::queryAll("SELECT * FROM `{$database['prefix']}Teamblog` WHERE userid = " . $userid); 
    7574    foreach ($teamblog as $row){ 
     
    8685    } 
    8786?> 
    88                                         </tbody> 
    89                                     </table> 
    90                                 </div> 
    91                                  
    92                             <div id="supporter-description" class="section"> 
    93                                 <h3><span class="text"><?php echo _t('OpenID');?></span></h3> 
    94                                 <div id="tester-container" class="container"> 
    95                                 </div> 
     87                                    </tbody> 
     88                                </table> 
     89                            </div> 
     90                             
     91                            <div class="button-box"> 
     92                                <a class="button" href="<?php echo $blogURL;?>/owner/control/action/user/delete/?userid=<?php echo $userid;?>" onclick="cleanUser('<?php echo $userid;?>'); return false;"><?php echo _t('사용자 삭제');?></a> 
     93                                <a class="button" href="<?php echo $blogURL;?>/owner/control/user"><?php echo _t('돌아가기');?></a> 
    9694                            </div> 
    9795                        </div> 
  • trunk/interface/owner/control/user/index.php

    r5285 r5330  
    1818 
    1919?> 
    20 <h2 class="caption"><span class="main-text"><?php echo _t('새 사용자 등록'); ?></span></h2> 
    21 <div id=container-add-user> 
    22 <form onsubmit="return false;"> 
    23 <span id="sgtOwner"></span><?php echo _t('이름'); ?> : <input type=text name='ui-name' id='ui-name'> 
    24 <span id="sgtOwner"></span><?php echo _t('이메일'); ?> : <input type=text name='ui-email' id='ui-email'> 
    25 <input type=submit value="<?php echo _t("새 사용자 등록");?>" onclick="sendUserAddInfo(document.getElementById('ui-name').value,document.getElementById('ui-email').value);return false;"> 
    26 </form> 
    27 </div> 
    28 <h2 class="caption"><span class="main-text">User List</span></h2> 
    29 <div id=container-user-list class='part'> 
    30 <table class="data-inbox" id="table-user-list" cellpadding="0" cellspacing="0"> 
    31 <thead><tr><th><?php echo _t('사용자 ID');?></th><th><?php echo _t('로그인 ID');?></th><th><?php echo _t('이름');?></th><th><?php echo _t('마지막 로그인');?></th></tr></thead> 
    32 <tbody> 
     20    <div id="part-create-newuser" class="part"> 
     21        <h2 class="caption"><span class="main-text"><?php echo _t('새 사용자 등록'); ?></span></h2> 
     22         
     23        <form onsubmit="return false;"> 
     24            <fieldset> 
     25                <dl> 
     26                    <dt><?php echo _t('이름'); ?></dt> 
     27                    <dd><input type="text" class="input-text" id="ui-name" name="ui-name" /></dd> 
     28                    <dt><?php echo _t('이메일'); ?></dt> 
     29                    <dd><input type="text" class="input-text" id="ui-email" name="ui-email" /></dd> 
     30                </dl> 
     31            </fieldset> 
     32            <div class="button-box"> 
     33                <a class="button" href="#void" onclick="sendUserAddInfo(document.getElementById('ui-name').value,document.getElementById('ui-email').value); return false;"><?php echo _t("새 사용자 등록");?></a> 
     34            </div> 
     35        </form> 
     36    </div> 
     37     
     38    <div id="part-user-list" class="part"> 
     39        <h2 class="caption"><span class="main-text"><?php echo _t('사용자 목록');?></span></h2> 
     40         
     41        <div id="container-user-list" class="part"> 
     42            <table id="table-user-list" class="data-inbox"> 
     43                <thead> 
     44                    <tr> 
     45                        <th><?php echo _t('사용자 ID');?></th> 
     46                        <th><?php echo _t('로그인 ID');?></th> 
     47                        <th><?php echo _t('이름');?></th> 
     48                        <th><?php echo _t('마지막 로그인');?></th> 
     49                    </tr> 
     50                </thead> 
     51                <tbody> 
    3352<?php 
    3453$row = 25; 
     
    4160    $tempString = ""; 
    4261    foreach($userlist as $row) { 
    43         ?> 
    44  
    45 <tr id="table-user-list_<?php echo $row['userid']?>"> 
    46     <td> 
    47         <?php echo $row['userid']?> 
    48     </td> 
    49     <td> 
    50         <a href="<?php echo $blogURL?>/owner/control/user/detail/<?php echo $row['userid']?>"><?php echo $row['loginid']?></a> 
    51     </td> 
    52     <td> 
    53         <?php echo $row['name']?> 
    54     </td> 
    55     <td> 
    56         <?php echo ($row['lastLogin']?date("Y/m/d H:i:s T",$row['lastLogin']):"")?> 
    57     </td> 
    58 </tr> 
     62?> 
     63                    <tr id="table-user-list_<?php echo $row['userid']?>"> 
     64                        <td><?php echo $row['userid']?></td> 
     65                        <td><a href="<?php echo $blogURL?>/owner/control/user/detail/<?php echo $row['userid']?>"><?php echo $row['loginid']?></a></td> 
     66                        <td><?php echo $row['name']?></td> 
     67                        <td><?php echo ($row['lastLogin']?date("Y/m/d H:i:s T",$row['lastLogin']):"")?></td> 
     68                    </tr> 
    5969<?php 
    6070    } 
    6171} 
    6272?> 
    63 </tbody> 
    64 </table> 
    65 </div> 
     73                </tbody> 
     74            </table> 
     75        </div> 
     76    </div> 
     77     
    6678<?php 
    6779$paging = array('url' => "", 'prefix' => '?page=', 'postfix' => '', 'total' => 0, 'pages' => 0, 'page' => 0); 
     
    7183$pagingItemTemplate = '<a [##_paging_rep_link_##]>[[##_paging_rep_link_num_##]]</a>'; 
    7284?> 
    73 <div id="page-navigation"> 
    74     <span id="page-list"><?php echo getPagingView($paging, $pagingTemplate, $pagingItemTemplate);?></span> 
    75     <span id="total-count"><?php echo _f('총 %1명의 사용자',$usercount);?></span> 
    76 </div> 
    77  
     85    <div id="page-navigation"> 
     86        <span id="page-list"><?php echo getPagingView($paging, $pagingTemplate, $pagingItemTemplate);?></span> 
     87        <span id="total-count"><?php echo _f('총 %1명의 사용자',$usercount);?></span> 
     88    </div> 
     89     
    7890<?php  
    7991$page=(isset($_GET['page']) ? $_GET['page'] : 1 );