Changeset 20038

Show
Ignore:
Timestamp:
09/27/08 16:08:15 (5 years ago)
Author:
anatoo
Message:

テンプレ追加

Location:
events/phpframework/plain_php/trunk/resource
Files:
13 added
10 modified
1 moved

Legend:

Unmodified
Added
Removed
  • events/phpframework/plain_php/trunk/resource/acount_create.php

    r19863 r20038  
    3030<div id="contents"> 
    3131 
    32 <div id="wrapper"> 
     32<div class="wrapper"> 
    3333<div id="main"> 
    3434 
  • events/phpframework/plain_php/trunk/resource/css/module.css

    r19863 r20038  
    1414    padding-top: 10px; 
    1515    font-size: 90%; 
    16     border-top: 2px solid #333; 
    17 } 
    18  
    19 #page {  
    20     background-color: #EBEAE2; 
    2116} 
    2217 
    2318h2, h3 { 
    2419        font-size: 110%; 
     20} 
     21 
     22h2 img { 
     23        vertical-align: middle; 
    2524} 
    2625 
     
    4443} 
    4544 
    46 .warning { 
    47     color: #ff3333;      
    48 } 
    49  
    5045input { 
    5146        padding: 4px 3px; 
     
    5348} 
    5449 
    55 input[type=text], input[type=password] { 
     50input[type=text], input[type=password],input[type=file] { 
    5651        border: 1px solid #999999; 
    5752} 
    5853 
    59 input[type=text]:focus , input[type=password]:focus { 
     54input[type=text]:focus, input[type=password]:focus, input[type=file]:focus { 
    6055        border: 1px solid #ffcc00; 
    6156} 
    6257 
    63  
     58table { 
     59        margin-bottom: 15px; 
     60} 
    6461 
    6562input[type=submit] { 
     
    9592/* コンテンツ */ 
    9693 
    97 #contents { 
     94.wrapper { 
    9895    padding-top: 10px; 
    9996    background-image: url(../img/share/up_arrow.gif); 
    10097    background-repeat: no-repeat; 
    10198    background-position: 20px 0px; 
     99    width: 542px; 
     100} 
     101 
     102.wrapper, #sub { 
     103    float: left; 
    102104} 
    103105 
    104106#main, #sub { 
    105     float: left; 
    106107    margin-bottom: 10px; 
    107108    padding: 10px; 
    108109} 
    109110 
    110 #main { 
    111     width: 522px; 
    112 } 
    113  
    114 #main h2 { 
     111.wrapper h2 { 
    115112        margin-bottom: 10px; 
    116113} 
    117114 
     115p.message { 
     116    margin: 4px 0; 
     117} 
     118 
     119p.warning { 
     120    margin: 4px 0; 
     121    color: #f33; 
     122} 
     123     
    118124#sub { 
     125         
     126        margin-top: 10px; 
    119127    margin-left: 8px; 
    120128    width: 218px; 
     
    131139    padding: 2px 0px; 
    132140    margin-bottom: 8px; 
     141    font-size: 100%; 
    133142} 
    134143 
  • events/phpframework/plain_php/trunk/resource/css/style.css

    r19863 r20038  
    11@charset "utf-8"; 
    22 
    3 #index #login_form { 
     3#login_form { 
    44        margin-bottom: 10px; 
    55} 
    66 
    7 #index #login_form p { 
     7#login_form p { 
    88        margin: 2px 0px; 
    99} 
    1010 
    11 #login_page #login_table, #main1_page #login_table { 
     11#form_table, #login_table { 
    1212        margin:0px 0px 0px 60px; 
    1313} 
    1414 
    15 #login_page #login_table td, #login_page #login_table th, #main1_page #login_table td{ 
     15#sub_page #form_table { 
     16    margin: 0px;         
     17} 
     18 
     19#form_table td, #form_table th{ 
    1620    padding: 5px; 
    1721} 
    1822 
    19 #main1_page #main, #main1_page #sub { 
    20     float: left; 
     23#main1_page .wrapper, #main1_page #sub { 
    2124    margin-bottom: 10px; 
    22     padding: 10px; 
    23 } 
    24  
    25 #main1_page #main { 
    26     width: 770px; 
     25} 
     26 
     27#main1_page .wrapper { 
     28    width: 790px; 
     29    padding: 10px 0px; 
    2730} 
    2831 
     
    3336    border: 0px; 
    3437    background-color: #f9f6f6; 
    35 } 
    36  
    37 #main1_page #login_table td{ 
     38    padding: 10px; 
     39} 
     40 
     41#login_table td{ 
    3842        vertical-align: top; 
     43        padding: 5px; 
    3944} 
    4045 
     
    6267    right:5px; 
    6368} 
    64 #post textarea.message{ 
     69#post textarea#comment{ 
    6570    width: 510px; 
    6671    height: 3em; 
     
    8287 
    8388ul.tabNav{ 
    84         margin:0px 10px 10px;  
     89        margin:0px 10px 9px;  
     90        padding: 0px; 
    8591} 
    8692 
     
    8995        margin-left:-1px; 
    9096        margin-bottom:3px;  
    91         font-size: 90%; 
     97 
     98        margin-top: 9px; 
    9299} 
    93100 
     
    99106    background-color:#FFFFFF; 
    100107    color:#333333; 
    101     padding:5px 10px; 
     108    padding:5px 9px; 
    102109} 
    103110 
     
    121128} 
    122129 
    123 div#timeline table { 
     130#user_page #timeline { 
     131        border-top-width:0px; 
     132} 
     133 
     134div#public_timeline { 
     135} 
     136 
     137form#setting_form { 
     138    clear:both; 
     139    margin-top:-1px; 
     140    border-top:1px solid #999999; 
     141    padding:30px 0px 10px; 
     142} 
     143 
     144div#timeline table, div#public_timeline table { 
    124145        width: 100%; 
    125146        border-top: 1px solid #dddddd; 
    126147} 
    127148 
    128 div#timeline table td { 
     149div#timeline table td, div#public_timeline table td { 
    129150    padding: 13px 6px; 
    130151    border-bottom: 1px solid #dddddd; 
    131152} 
    132153 
    133 div#timeline table td.status_body { 
     154div#timeline table td.status_body, div#public_timeline table td.status_body { 
    134155    padding: 13px 5px; 
    135156} 
    136157 
    137 div#timeline table tr:hover{ 
     158div#timeline table tr:hover, div#public_timeline table tr:hover { 
    138159    background-color: #f9f9f9; 
    139160} 
    140161 
    141 div#timeline table tr:hover td.status_body span.meta a.published{ 
     162div#timeline table tr:hover td.status_body span.meta a.published,  
     163div#public_timeline table tr:hover td.status_body span.meta a.published{ 
    142164    color: #ff7171; 
    143165} 
    144166 
    145 div#timeline table td.status_body span.meta { 
     167div#timeline table td.status_body span.meta, div#public_timeline table td.status_body span.meta { 
    146168    color: #999999; 
    147169    font-size: 80%; 
     
    150172} 
    151173 
    152 div#timeline table td.status_body span.meta a.published { 
     174div#timeline table td.status_body span.meta a.published,  
     175div#public_timeline table td.status_body span.meta a.published { 
    153176        color: #999999; 
    154177} 
     
    176199    border: 1px solid #cccccc; 
    177200} 
     201 
     202ul#settings_navi { 
     203    border-bottom: 1px solid #cccccc; 
     204    padding: 0 0 0 30px; 
     205} 
     206 
     207ul#settings_navi li { 
     208    display: inline; 
     209    padding: 0; 
     210    margin: 0 4px; 
     211} 
     212 
     213ul#settings_navi a { 
     214        padding: 3px 4px; 
     215        border: 1px solid #cccccc; 
     216        border-bottom-width: 0px; 
     217} 
     218 
     219ul#settings_navi .on { 
     220    display: inline; 
     221    background-color: #666; 
     222    color: #fff; 
     223} 
     224 
     225#sub_page #contents { 
     226    padding-top: 10px; 
     227    background-image: url(../img/share/up_arrow.gif); 
     228    background-repeat: no-repeat; 
     229    background-position: 20px 0px; 
     230    width: 790px; 
     231} 
     232 
     233#sub_page .wrapper { 
     234        padding: 0; 
     235        background-image: none; 
     236    background-color: #F3F0F0; 
     237        float:left; 
     238        width: 100%; 
     239} 
     240 
     241#sub_page #main { 
     242        float: left; 
     243        margin:0; 
     244        width: 531px; 
     245        border-right: 1px solid #E1DDDD; 
     246} 
     247 
     248#sub_page #sub { 
     249        float: left; 
     250    margin: 0; 
     251    height: 100%; 
     252    border-width: 0px; 
     253} 
     254 
     255 
     256 
     257#status_page .wrapper { 
     258    width: 600px; 
     259} 
     260 
     261#status_page #main { 
     262    padding: 17px; 
     263} 
     264 
     265#status_page #main #user img { 
     266        vertical-align: middle; 
     267        margin-right: 7px; 
     268} 
     269 
     270#status_page #main #user a { 
     271    font-size: 150%; 
     272} 
     273 
     274#status_page h2 { 
     275    font-size: 180%; 
     276    font-weight: normal; 
     277    font-family: 'Georgia', 'Serif'; 
     278    margin: 0px 0px; 
     279    padding: 0px 0px; 
     280} 
     281 
     282#status_page div#status { 
     283        border-bottom: 1px solid #dddddd; 
     284        margin-bottom: 17px; 
     285        padding-bottom: 10px; 
     286} 
     287 
     288#status_page #meta { 
     289    color: #bbbbbb; 
     290    font-size: 120%; 
     291    font-style: italic; 
     292    font-family: 'Georgia', 'Serif'; 
     293} 
     294 
     295#people { 
     296        width: 100%; 
     297} 
     298 
     299#people th { 
     300    padding-right: 10px; 
     301    width: 48px; 
     302} 
     303 
     304#people th, #people td { 
     305    padding-top: 8px; 
     306    padding-bottom: 8px; 
     307    border-bottom: 1px solid #dddddd; 
     308} 
     309 
     310#people .button { 
     311    color: #666; 
     312    background-color: #eeeeee; 
     313    border: 1px solid #ccc; 
     314    padding: 2px 3px; 
     315    font-size: 70%; 
     316} 
     317#people .button:hover { 
     318    text-decoration: none; 
     319} 
  • events/phpframework/plain_php/trunk/resource/default_guide.php

    r19863 r20038  
    11    <ul id="guideNav"> 
     2        <li><a href="<?php echo $c->baseUrl; ?>/public_timeline">タイムライン</a></li> 
    23        <li><a href="<?php echo $c->baseUrl; ?>/login">ログイン</a></li> 
    34        <li><a href="<?php echo $c->baseUrl; ?>/signup">ユーザー登録</a></li> 
  • events/phpframework/plain_php/trunk/resource/index.php

    r19863 r20038  
    2929<div id="contents"> 
    3030 
    31 <div id="wrapper"> 
     31<div class="wrapper"> 
    3232<div id="main"> 
    3333<h2>Phwittrとは?</h2> 
  • events/phpframework/plain_php/trunk/resource/login.php

    r19863 r20038  
    3030<div id="contents"> 
    3131 
    32 <div id="wrapper"> 
     32 
     33 
     34<div class="wrapper"> 
    3335<div id="main"> 
    3436<h2>ログイン</h2> 
     37 
    3538<?php if ($r->existsMessage()) foreach ($r->getMessages() as $m): ?> 
    36 <p class="warning"><?php echo $m ?></p> 
     39    <?php foreach ($r->getMessages() as $m): ?> 
     40    <p class="warning"><?php echo $m ?></p> 
     41    <?php endforeach ?> 
    3742<?php endforeach ?> 
     43 
    3844<form action="<?php echo $c->baseUrl; ?>/sessions" method="post"> 
    3945    <table id="login_table"><tr> 
  • events/phpframework/plain_php/trunk/resource/logined_guide.php

    r19863 r20038  
    22        <li><a href="<?php echo $c->baseUrl; ?>/home">ホーム</a></li> 
    33        <li><a href="<?php echo $c->baseUrl; ?>/<?php echo $user_name; ?>">プロフィール</a></li> 
    4         <li><a href="<?php echo $c->baseUrl; ?>/settings">設定</a></li> 
     4        <li><a href="<?php echo $c->baseUrl; ?>/acount/settings">設定</a></li> 
    55        <li><a href="<?php echo $c->baseUrl; ?>/logout/<?php echo $session->token ?>">ログアウト</a></li> 
    66    </ul> 
  • events/phpframework/plain_php/trunk/resource/sessions.php

    r19863 r20038  
    3030<div id="contents"> 
    3131 
     32 
     33 
    3234<div id="wrapper"> 
    3335<div id="main"> 
    3436<h2>ログイン</h2> 
    35 <?php if ($r->existsMessage()) foreach ($r->getMessages() as $e_msg) { ?> 
    36 <p class="warning"><?php echo $e_msg; ?></p> 
    37 <?php } ?> 
     37 
     38<?php if ($r->existsMessage()) foreach ($r->getMessages() as $m): ?> 
     39    <?php foreach ($r->getMessages() as $m): ?> 
     40    <p class="warning"><?php echo $m ?></p> 
     41    <?php endforeach ?> 
     42<?php endforeach ?> 
    3843 
    3944<form action="<?php echo $c->baseUrl; ?>/sessions" method="post"> 
  • events/phpframework/plain_php/trunk/resource/signup.php

    r19863 r20038  
    3030<div id="contents"> 
    3131 
    32 <div id="wrapper"> 
     32<div class="wrapper"> 
    3333<div id="main"> 
    3434 
  • events/phpframework/plain_php/trunk/resource/timeline.php

    r19863 r20038  
    2929<div id="contents"> 
    3030 
    31 <div id="wrapper"> 
     31 
     32<div class="wrapper"> 
    3233<div id="main"> 
     34 
     35<?php if ($r->existsMessage()) foreach ($r->getMessages() as $m): ?> 
     36    <?php foreach ($r->getMessages() as $m): ?> 
     37    <p class="message"><?php echo $m ?></p> 
     38    <?php endforeach ?> 
     39<?php endforeach ?> 
    3340 
    3441<form action="<?php echo $c->baseUrl; ?>/status/update" method="post"> 
     
    3643<h2>What are you doing?</h2> 
    3744<span class="textCount" id="js_textcount">140</span> 
    38 <textarea class="message" name="comment"><?php echo h($status) ?></textarea> 
     45<textarea id="comment" name="comment"><?php if ($status) echo h($status) . ' ' ?></textarea> 
    3946<input type="hidden" name="token" value="<?php echo $session->token ?>" /> 
    4047<p id="button_space"> 
    41 <input type="submit" id="twit_button" value=" つぶやく " /> 
     48<input type="submit" id="twit_button" value=" update " /> 
    4249</p> 
    4350</div> 
     
    4754<li><a href="<?php echo $c->baseUrl; ?>/home"<?php if ($current_action === 'home'):?> class="on"<?php endif ?>>タイムライン</a></li> 
    4855<li><a href="<?php echo $c->baseUrl; ?>/replies"<?php if ($current_action === 'replies'):?> class="on"<?php endif ?>>返信</a></li> 
    49 <li><a href="<?php echo $c->baseUrl; ?>/<?php echo $user_name; ?>">過去発言</a></li> 
     56<li><a href="<?php echo $c->baseUrl; ?>/<?php echo $user_name; ?>">アーカイブ</a></li> 
    5057<li><a href="<?php echo $c->baseUrl; ?>/public_timeline"<?php if ($current_action === 'public_timeline'):?> class="on"<?php endif ?>>公開タイムライン</a></li> 
    5158</ul> 
    5259 
    5360<div id="timeline"> 
    54 <table> 
     61<table class="autopagerize_page_element"> 
    5562<?php foreach ($statuses as $status): ?> 
    5663  <tr> 
    5764    <td> 
    58         <img src="<?php if ($user['image']) echo $user['image']; else echo './img/friend_icon.png'; ?>"  
    59          alt="<?php echo $user_name; ?>" /> 
     65    <a href="<?php echo $c->baseUrl . '/' . $status['user_name']; ?>"><img src="<?php echo $c->templateBaseUrl . ($status['image'] ?  "/img/user/{$status['user_name']}_icon" : '/img/friend_icon') ?>.png"  
     66         alt="<?php echo $status['user_name'] ?>" /></a> 
    6067    </td> 
    6168    <td class="status_body"> 
     
    6370        <?php echo $status['comment'] ?> 
    6471        <span class="meta"> 
    65             <a href="<?php echo $c->baseUrl . '/' . $status['user_name'] . '/statuses/' . $status['id']; ?>" class="published"> 
     72            <a href="<?php echo "{$c->baseUrl}/statuses/{$status['id']}" ?>" class="published"> 
    6673                <?php echo $status['created_at']; ?></a> 
    6774        </span>     
     
    7178        <a href="<?php echo $c->baseUrl ?>/status/delete/<?php echo $status['id'] . '/' . $session->token ?>"> 
    7279            <img src="img/share/trash_icon.gif" alt="Delete" class="icon16" /></a> 
     80        <?php else: ?> 
     81            <a href="<?php echo "{$c->baseUrl}/home?status=@{$status['user_name']}" ?>"><img src="./img/share/reply_icon.gif" /></a> 
    7382        <?php endif; ?> 
    7483    </td> 
     
    8089<div id="buttom_navi"> 
    8190<?php if ($page > 0): ?> 
    82 <a href="<?php echo $c->baseUrl . '/' . $current_action . '?page=' . (string)($page - 1); ?>" rel="next">&#171; Newer</a> 
     91<a href="<?php echo $c->baseUrl . '/' . $current_action . '?page=' . (string)($page - 1); ?>" rel="prev">&#171; Newer</a> 
    8392<?php endif; ?> 
    8493 
    8594<?php if ($page_limit * ($page + 1) < $status_count): ?> 
    86 <a href="<?php echo $c->baseUrl . '/' . $current_action . '?page=' . (string)($page + 1); ?>" rel="prev">Older &#187;</a> 
     95<a href="<?php echo $c->baseUrl . '/' . $current_action . '?page=' . (string)($page + 1); ?>" rel="next">Older &#187;</a> 
    8796<?php endif; ?> 
    8897</div> 
     
    95104<h3>プロフィール</h3> 
    96105<p> 
    97 <img src="<?php if ($user['image']) echo $user['image']; else echo './img/friend_icon.png'; ?>"  
    98          alt="<?php echo $user_name; ?>" width="32" height="32" /> 
     106<a href="<?php echo "{$c->baseUrl}/{$user_name}" ?>"><img src="<?php echo $c->templateBaseUrl . ($user['image'] ?  "/img/user/{$user_name}_icon" : '/img/friend_icon') ?>.png"  
     107         alt="<?php echo $user_name; ?>" width="32" height="32" /></a> 
    99108<?php echo $user_name; ?> 
    100109</p> 
     
    107116<h3>ステータス</h3> 
    108117<table id="status"><tr> 
    109 <th><a href="<?php echo $c->baseUrl . '/' . $user_name; ?>/friends">followings</a></th><td><?php echo $following_count; ?></td> 
     118<th><a href="<?php echo $c->baseUrl ?>/friends">followings</a></th><td><?php echo $following_count; ?></td> 
    110119</tr><tr> 
    111 <th><a href="<?php echo $c->baseUrl . '/' . $user_name; ?>/followers">followers</a></th><td><?php echo $follower_count; ?></td> 
     120<th><a href="<?php echo $c->baseUrl ?>/followers">followers</a></th><td><?php echo $follower_count; ?></td> 
    112121</tr><tr> 
    113122<th><a href="<?php echo $c->baseUrl . '/' . $user_name; ?>">updates</a></th><td><?php echo $user_status_count; ?></td> 
    114123</tr></table> 
    115124 
     125<?php if (count($friends)): ?> 
     126<h3>あなたがフォロー</h3> 
     127    <p> 
     128    <?php foreach ($friends as $f): ?> 
     129        <a href="<?php echo $c->baseUrl . '/' . $f['user_name']; ?>"> 
     130        <img src="<?php echo $c->templateBaseUrl . ($f['image'] ?  "/img/user/{$f['user_name']}_icon" : '/img/friend_icon') ?>_mini.png"  
     131           alt="<?php echo $f['user_name'] ?>" /></a> 
     132    <?php endforeach ?> 
     133    <?php if ($view_all): ?><br/><a href="<?php echo $c->baseUrl ?>/friends">view all</a><?php endif ?> 
     134    </p> 
     135<?php endif ?> 
    116136 
    117137<!-- / #sub --></div> 
    118138<!-- / #contents --></div> 
     139 
    119140 
    120141