Changeset 20339 for events/phpframework/plain_php/trunk/resource/user.php
- Timestamp:
- 10/01/08 08:02:29 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/plain_php/trunk/resource/user.php
r20038 r20339 9 9 <base href="<?php echo $c->templateBaseUrl ?>/" /> 10 10 <link rel="shortcut icon" href="./img/share/favicon.ico" /> 11 <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo $c->baseUrl ?>/<?php echo $user['user_name'] ?>/rss" /> 11 12 13 12 14 <!-- *** stylesheet *** --> 13 15 <link href="./css/import.css" rel="stylesheet" type="text/css" media="all" /> 14 16 15 17 <!-- *** javascript *** --> 16 18 <script src="./js/jquery.js" type="text/javascript"></script> 19 <script type="text/javascript"> 20 $(document).ready(function () { 21 $(".delete_link").click(function (){ 22 return confirm("Sure you want to delete this update? There is NO undo!"); 23 }); 24 }); 25 </script> 17 26 </head> 18 27 … … 37 46 38 47 48 <?php if (!$user['private_flag'] || $is_logined && $is_following): ?> 49 50 <?php if ($is_logined): ?> 51 52 <?php if (!$is_self && $is_following): ?> 53 <a class="button" href="<?php echo "{$c->baseUrl}/friendships/destroy/{$user['id']}/{$session->token}" ?>">remove</a> 54 <?php elseif (!$is_self && !$is_following): ?> 55 <a class="button" href="<?php echo "{$c->baseUrl}/friendships/create/{$user['id']}/{$session->token}" ?>">follow</a> 56 <?php endif ?> 57 58 <?php if ($is_requesting_self): ?> 59 <a class="button" href="<?php echo "{$c->baseUrl}/friend_requests/accept/{$user['id']}/{$session->token}" ?>">accept</a> 60 <a class="button" href="<?php echo "{$c->baseUrl}/friend_requests/deny/{$user['id']}/{$session->token}" ?>">deny</a> 61 <?php endif ?> 62 63 <?php endif ?> 64 39 65 <div id="timeline" class="autopagerize_page_element"> 40 66 <table> … … 50 76 <td> 51 77 <?php if($session && $status['user_name'] === $session->user_name): ?> 52 <a href="<?php echo $c->baseUrl ?>/status/delete/<?php echo $status['id'] . '/' . $session->token ?>">78 <a class="delete_link" href="<?php echo $c->baseUrl ?>/status/delete/<?php echo $status['id'] . '/' . $session->token ?>"> 53 79 <img src="img/share/trash_icon.gif" alt="Delete" class="icon16" /></a> 54 80 <?php elseif ($session): ?> … … 60 86 </table> 61 87 </div> 88 89 90 91 <?php else: ?> 92 <h3>このユーザーはプライベートです。</h3> 93 <?php if (!$is_self): ?> 94 95 96 <?php if ($is_requesting): ?> 97 フォローできるようにリクエスト中です。 98 <?php elseif (!$is_following): ?> 99 <a class="button" href="<?php echo "{$c->baseUrl}/friendships/create/{$user['id']}/{$session->token}" ?>"> 100 <?php if ($user['private_flag']) echo 'send request'; else echo 'remove' ?></a> 101 102 <?php endif ?> 103 104 <?php if ($is_requesting_self): ?> 105 <a class="button" href="<?php echo "{$c->baseUrl}/friend_requests/accept/{$user['id']}/{$session->token}" ?>">accept</a> 106 <a class="button" href="<?php echo "{$c->baseUrl}/friend_requests/deny/{$user['id']}/{$session->token}" ?>">deny</a> 107 <?php endif ?> 108 109 <?php endif ?> 110 111 <?php endif ?> 62 112 63 113 <?php if ($page > 0 || $page_limit * ($page + 1) < $status_count): ?> … … 82 132 </p> 83 133 84 <?php if ($latest_status ): ?>134 <?php if ($latest_status && (!$user['private_flag'] || $is_logined && $is_following)): ?> 85 135 <h3>最近のつぶやき</h3> 86 136 <p><?php echo $latest_status['comment']; ?></p>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)