From: Florian G. <re...@us...> - 2006-12-02 21:31:16
|
Update of /cvsroot/perfparse/_perfparse-phpgui/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20640/phpgui/templates Modified Files: edit_host_list.tpl.html Log Message: Changes in database schema: delete policy uses a id instead of name and in the other tables are only 2 entries for the delete policy. Made group editing work in php gui, started phpgui delete policy editing. Started database conversion program for new schema .... Index: edit_host_list.tpl.html =================================================================== RCS file: /cvsroot/perfparse/_perfparse-phpgui/templates/edit_host_list.tpl.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** edit_host_list.tpl.html 29 Nov 2006 14:06:02 -0000 1.2 --- edit_host_list.tpl.html 2 Dec 2006 21:31:11 -0000 1.3 *************** *** 19,23 **** </td></tr></table></p> <form method="get"> ! <input type=hidden name="edit_host_list" value="1"> <p align=center> <table width=600 border=1 cellpadding=5 cellspacing=0 bgcolor="#CCCCCC"><tr><td> --- 19,23 ---- </td></tr></table></p> <form method="get"> ! <input type=hidden name="page" value="edit_host_list"> <p align=center> <table width=600 border=1 cellpadding=5 cellspacing=0 bgcolor="#CCCCCC"><tr><td> *************** *** 28,43 **** </td> <td> ! <select name="group_name"> ! <option selected>bsb</option> </select> ! <input type=submit value="Enter"> </td></form> </tr> </table> </td></tr></table></p> <form method="get"> ! <input type=hidden name="edit_host_list" value="1"> ! <input type=hidden name="group_name" value="bsb"> ! <input type=hidden name="add" value="1"> <p align=center> <table width=600 border=1 cellpadding=5 cellspacing=0 bgcolor="#CCCCCC"><tr><td> --- 28,52 ---- </td> <td> ! <font face="Arial, Helvetica" size=2> ! <{if $group_id}> ! <{tr}>Selected group: <{/tr}><{$groups.$group_id}><br /> ! <{tr}>Select another group: <{/tr}> ! <{/if}> ! <select name="group_id"> ! <{foreach from=$groups key=groupId item=group_name}> ! <option value="<{$groupId}>" <{if $groupId == $group_id}>selected="selected"<{/if}>><{$group_name}></option> ! <{/foreach}> </select> ! ! <input type=submit value="<{tr}>Enter<{/tr}>"> </td></form> </tr> </table> </td></tr></table></p> + <{if $group_id}> <form method="get"> ! <input type=hidden name="page" value="edit_host_list"> ! <input type=hidden name="group_id" value="<{$group_id}>"> ! <input type=hidden name="action" value="add_host"> <p align=center> <table width=600 border=1 cellpadding=5 cellspacing=0 bgcolor="#CCCCCC"><tr><td> *************** *** 48,58 **** </td> <td> ! <select name="host_name"> ! <option>www.opus-bayern.de<option>bvbx5<option>bvbx7<option>bsbrouter<option>bvbd206<option>bvbnt1<option>hp10.vd17.de<option>bvbx6<option>bvbc01<option>bvbnt3<option>somehostname<option>bayreuth </select> ! <input type=submit value="Enter"> ! </td></form> </tr> </table> </td></tr></table></p> <p align=center> <table width=600 border=1 cellpadding=5 cellspacing=0 bgcolor="#CCCCCC"><tr><td> --- 57,71 ---- </td> <td> ! <select name="host_id"> ! <{foreach from=$notin_group_hosts item=hostinfo}> ! <option value="<{$hostinfo.host_id}>"><{$hostinfo.host_name}></option> ! <{/foreach}> ! </select> ! <input type=submit value="<{tr}>Enter<{/tr}>"> ! </td> </tr> </table> </td></tr></table></p> + </form> <p align=center> <table width=600 border=1 cellpadding=5 cellspacing=0 bgcolor="#CCCCCC"><tr><td> *************** *** 69,87 **** <td align=center width="1%"><font face="Arial, Helvetica" size=2><b>Remove</td> </tr> <tr bgcolor="#FFFFFF"> ! <td><font face="Arial, Helvetica" size=2>bvbsw01</td> ! <td align=center><font face="Arial, Helvetica" size=2>&host_name=bvbsw01">Remove</a> ! </td> ! </tr> ! <tr bgcolor="#FFFFFF"> ! <td><font face="Arial, Helvetica" size=2>www.bsb-muenchen.de</td> ! <td align=center><font face="Arial, Helvetica" size=2>&host_name=%2E">Remove</a> ! </td> ! </tr> ! <tr bgcolor="#FFFFFF"> ! <td><font face="Arial, Helvetica" size=2>gw-server</td> ! <td align=center><font face="Arial, Helvetica" size=2>&host_name=%2D">Remove</a> </td> </tr> </table></tr></td></table></p> </body></html> --- 82,93 ---- <td align=center width="1%"><font face="Arial, Helvetica" size=2><b>Remove</td> </tr> + <{foreach from=$group_hosts item=hostinfo}> <tr bgcolor="#FFFFFF"> ! <td><font face="Arial, Helvetica" size=2><{$hostinfo.host_name}></td> ! <td align=center><font face="Arial, Helvetica" size=2><a href="perfparse.php?page=edit_host_list&group_id=<{$group_id}>&action=remove_host&host_id=<{$hostinfo.host_id}>"><{tr}>Remove<{/tr}></a> </td> </tr> + <{/foreach}> </table></tr></td></table></p> + <{/if}> </body></html> |