forked from pkriete/simplypost
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Styled tables and member list is now generated.
- Loading branch information
Pascal Kriete
authored and
Pascal Kriete
committed
Nov 8, 2008
1 parent
82e3534
commit 163c284
Showing
9 changed files
with
122 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
table { | ||
width: 99%; | ||
position: relative; | ||
} | ||
|
||
table tr td | ||
{ | ||
padding: 5px 6px 5px 6px; | ||
border-bottom: 1px solid #ccc; | ||
} | ||
|
||
table tr th | ||
{ | ||
color: #e5e5e5; | ||
text-align: left; | ||
font-weight: bold; | ||
padding: 7px 6px 7px 6px; | ||
background-color: #252c34; | ||
} | ||
|
||
table tr.switch | ||
{ | ||
background-color: #f5f5ee; | ||
} | ||
|
||
table td.true | ||
{ | ||
color: #009933; | ||
} | ||
|
||
table td.false | ||
{ | ||
color: #990000; | ||
} | ||
|
||
table tr:hover | ||
{ | ||
background-color: #ffffe4; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
<h1>Members</h1> | ||
<h2>Members</h2> | ||
|
||
<p>Member List</p> | ||
<p>New Member</p> | ||
<p>Member Settings</p> | ||
<p><?php echo anchor( backend_url('members/create'), 'Add a Member'); ?></p> | ||
|
||
<table cellspacing="0" cellpadding="0"> | ||
<thead> | ||
<tr> | ||
<th>Username</th> | ||
<th>E-Mail</th> | ||
<th>User Group</th> | ||
<th>Join Date</th> | ||
<th>Post Count</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<?php foreach($members as $key => $member): ?> | ||
<tr<?php echo ($key & 1) ? ' class="switch"': ''; ?>> | ||
<td><?php echo $member->username; ?></td> | ||
<td><?php echo $member->email; ?></td> | ||
<td><?php echo ucfirst($member->user_group); ?></td> | ||
<td><?php echo date('m/j/Y', $member->join_date); ?></td> | ||
<td><?php echo $member->post_count; ?></td> | ||
</tr> | ||
<?php endforeach; ?> | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters