[phpwebapp-commits] CVS: top10/templates/admin/users users.php,NONE,1.1.2.1 users.db,NONE,1.1.2.1 us
Brought to you by:
dashohoxha
|
From: Dashamir H. <das...@us...> - 2004-01-13 15:48:27
|
Update of /cvsroot/phpwebapp/top10/templates/admin/users
In directory sc8-pr-cvs1:/tmp/cvs-serv10917/templates/admin/users
Modified Files:
Tag: maisp
users.html
Added Files:
Tag: maisp
users.php users.db users.css footer.html
Log Message:
the list of users (evaluators)
--- NEW FILE: users.php ---
<?php
/*
This file is part of Top10. Top10 is a web application for ranking
and evaluating web application projects at SourceForge.
Copyright 2003 Dashamir Hoxha, das...@us...
Top10 is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your
option) any later version.
Top10 is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with Top10; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
class users extends WebObject
{
function on_next($event_args)
{
$page = $event_args["page"];
WebApp::setSVar("users_rs->current_page", $page);
}
}
?>
--- NEW FILE: users.db ---
<!--# -*-SQL-*- #tell emacs to use the SQL mode #-->
<Recordset ID="users_rs" type="PagedRS" recs_per_page="10">
<Query>
SELECT * FROM users
</Query>
</Recordset>
--- NEW FILE: users.css ---
.textbox, textarea
{
border: none;
font-family: arial, helvetica, sans-se;
font-size: 12pt;
color: #000044;
}
#footer-table
{
width: 100%;
background-color: #eeeeee;
border: 1px solid #dddddd;
margin-top: 3px;
margin-bottom: 5px;
}
--- NEW FILE: footer.html ---
<table id="footer-table" cellspacing="0" cellpadding="0">
<tr>
<td>
Total: {{AllRecs}} users
</td>
<td width="10"></td>
<td>
Page {{CurrPage}} of {{LastPage}}
</td>
<td width="10"></td>
<td>
<If condition="'{{CurrPage}}'<>'{{PrevPage}}'">
<input type="button" value="<<"
onclick="SendEvent('users','next','page=1')">
<input type="button" value=" < "
onclick="SendEvent('users','next','page={{PrevPage}}')">
</If>
<If condition="'{{CurrPage}}'<>'{{LastPage}}'">
<input type="button" value=" > "
onclick="SendEvent('users','next','page={{NextPage}}')">
<input type="button" value=">>"
onclick="SendEvent('users','next','page={{LastPage}}')">
</If>
</td>
</tr>
</table>
Index: users.html
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/admin/users/Attic/users.html,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** users.html 13 Jan 2004 14:34:01 -0000 1.1.2.1
--- users.html 13 Jan 2004 15:48:24 -0000 1.1.2.2
***************
*** 1 ****
! users.html
--- 1,52 ----
! <WebBox ID="users">
! <br>
! <Repeat rs="users_rs">
! <IfEmpty>
! No Users Selected! <br>
! </IfEmpty>
! <Header>
! <table cellspacing="1" cellpadding="2" bgcolor="#dddddd">
! <form name="proj_list" onsubmit="return false;">
! <tr>
! <td bgcolor="#eeeeee" align="center" width="2%">Nr</td>
! <td bgcolor="#eeeeee" align="center">username</td>
! <td bgcolor="#eeeeee" align="center">Real Name</td>
! <td bgcolor="#eeeeee" align="center">E-mail</td>
! <td bgcolor="#eeeeee" align="center">Homepage</td>
! <td bgcolor="#eeeeee" align="center">Public</td>
! <td bgcolor="#eeeeee" align="center">Save</td>
! </tr>
! </Header>
! <RepeatBody>
! <tr>
! <td bgcolor="white" width="2%" align="center">{{CurrentRecNr}}</td>
! <td bgcolor="white">
! {{username}}
! </td>
! <td bgcolor="white">
! <input type="text" name="realname" value="{{realname}}"
! class="textbox" size="20" onfocus="select()" />
! </td>
! <td bgcolor="white">
! <input type="text" name="email" value="{{email}}"
! class="textbox" size="20" onfocus="select()" />
! </td>
! <td bgcolor="white">
! <input type="text" name="homepage" value="{{homepage}}"
! class="textbox" size="20" onfocus="select()" />
! </td>
! <td bgcolor="white" align="center">
! <input type="checkbox" name="public" value="{{public}}">
! </td>
! <td bgcolor="white" align="center">
! <a class="button" href="">Save</a>
! </td>
! </tr>
! </RepeatBody>
! <Footer>
! </form>
! </table>
! <Include SRC="{{./}}footer.html" />
! </Footer>
! </Repeat>
! </WebBox>
|