Update of /cvsroot/phpwebapp/top10/templates/proj_list/footer
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10079/templates/proj_list/footer
Modified Files:
list_footer.js list_footer.html
Log Message:
Index: list_footer.js
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_list/footer/list_footer.js,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** list_footer.js 2 Oct 2003 07:09:40 -0000 1.5
--- list_footer.js 22 Jul 2004 09:38:22 -0000 1.6
***************
*** 21,24 ****
--- 21,29 ----
*/
+ function next_rs_page(page)
+ {
+ SendEvent('list_footer','next','page='+page);
+ }
+
function add_new_project()
{
***************
*** 29,32 ****
--- 34,45 ----
{
var projects = document.proj_list.project;
+
+ if (projects.type=="checkbox")
+ {
+ //there is only 1 project in the list
+ return (projects.checked ? projects.value : '');
+ }
+
+ //else
var checked_projects = new Array;
for(i=0; projects[i]; i++)
Index: list_footer.html
===================================================================
RCS file: /cvsroot/phpwebapp/top10/templates/proj_list/footer/list_footer.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** list_footer.html 2 Oct 2003 07:09:40 -0000 1.5
--- list_footer.html 22 Jul 2004 09:38:22 -0000 1.6
***************
*** 1,42 ****
! <WebBox ID="list_footer">
<table class="footer-table">
<tr>
! <td>
! Found: {{AllRecs}} records
! </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('list_footer','next','page=1')">
! <input type="button" value=" < "
! onclick="SendEvent('list_footer','next','page={{PrevPage}}')">
! </If>
! <If condition="'{{CurrPage}}'<>'{{LastPage}}'">
! <input type="button" value=" > "
! onclick="SendEvent('list_footer','next','page={{NextPage}}')">
! <input type="button" value=">>"
! onclick="SendEvent('list_footer','next','page={{LastPage}}')">
! </If>
! </td>
<td align="right">
<a class="button" href="javascript:add_new_project()">Add New Project</a>
! <If condition="'{{ADMIN}}'=='true'">
<a class="button" href="javascript:edit_selected()">Edit</a>
<a class="button" href="javascript:del_selected()">Delete</a>
! <If condition="'{{filter->new}}'=='true'">
<a class="button" href="javascript:approve_selected()">Approve</a>
<a class="button" href="javascript:approve_all()">Approve All</a>
! </If>
! </If>
! <If condition="'{{ADMIN}}'!='true'">
<a class="button" href="javascript:add_to_list()">Add to My List</a>
! </If>
</td>
</tr>
</table>
! </WebBox>
--- 1,44 ----
! <webbox id="list_footer">
<table class="footer-table">
<tr>
! <rsnavig rs="proj_list_rs">
! <td>
! Found: {{AllRecs}} records
! </td>
! <td width="10"></td>
! <td>
! Page {{CurrPage}} of {{LastPage}}
! </td>
! <td width="10"></td>
! <td>
! <if condition="'{{CurrPage}}'!='{{PrevPage}}'">
! <input type="button" value="&lt;&lt;"
! onclick="next_rs_page(1)" />
! <input type="button" value=" &lt; "
! onclick="next_rs_page({{PrevPage}})" />
! </if>
! <if condition="'{{CurrPage}}'!='{{LastPage}}'">
! <input type="button" value=" > "
! onclick="next_rs_page({{NextPage}})" />
! <input type="button" value=">>"
! onclick="next_rs_page({{LastPage}})" />
! </if>
! </td>
! </rsnavig>
<td align="right">
<a class="button" href="javascript:add_new_project()">Add New Project</a>
! <if condition="'{{ADMIN}}'=='true'">
<a class="button" href="javascript:edit_selected()">Edit</a>
<a class="button" href="javascript:del_selected()">Delete</a>
! <if condition="'{{filter->new}}'=='true'">
<a class="button" href="javascript:approve_selected()">Approve</a>
<a class="button" href="javascript:approve_all()">Approve All</a>
! </if>
! </if>
! <if condition="'{{ADMIN}}'!='true'">
<a class="button" href="javascript:add_to_list()">Add to My List</a>
! </if>
</td>
</tr>
</table>
! </webbox>
|