From: Atif G. <ma...@us...> - 2003-01-17 19:10:35
|
Update of /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/domains/edit In directory sc8-pr-cvs1:/tmp/cvs-serv27734/cgi-bin/tmpl/domains/edit Modified Files: Tag: REL_0_9_7 footer.tmpl header.tmpl Log Message: UI changes Index: footer.tmpl =================================================================== RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/domains/edit/footer.tmpl,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.1.8.1 diff -C2 -r1.1.2.1 -r1.1.2.1.8.1 *** footer.tmpl 7 Feb 2002 11:40:07 -0000 1.1.2.1 --- footer.tmpl 17 Jan 2003 19:09:52 -0000 1.1.2.1.8.1 *************** *** 1,7 **** <input type=hidden name="domain" value="<perl>$r->param('domain')</perl>"> - <tr><td align=right colspan=2> <input type=button class="button" onClick="document.forms[0].reset()" value="Discard Changes"> <input type=button class="button" onClick="document.forms[0].submit()" value="Save Entry"> </td></tr> </form></table> --- 1,11 ---- <input type=hidden name="domain" value="<perl>$r->param('domain')</perl>"> <tr><td align=right colspan=2> + <table width=100%> + <td align=left><input type=button class="hotbutton" onClick="deleteDomain()" value="Delete Domain"></td> + <td align=right> <input type=button class="button" onClick="document.forms[0].reset()" value="Discard Changes"> <input type=button class="button" onClick="document.forms[0].submit()" value="Save Entry"> + </td> + </tr></table> </td></tr> </form></table> Index: header.tmpl =================================================================== RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/domains/edit/header.tmpl,v retrieving revision 1.1.10.1 retrieving revision 1.1.10.2 diff -C2 -r1.1.10.1 -r1.1.10.2 *** header.tmpl 16 Jan 2003 17:06:07 -0000 1.1.10.1 --- header.tmpl 17 Jan 2003 19:09:58 -0000 1.1.10.2 *************** *** 1,3 **** --- 1,11 ---- <LINK HREF="<perl>$ispman->getConfig('ispmanUrlPrefix')</perl>/ispman.css" REL="stylesheet" TYPE="text/css"> + <script> + function deleteDomain(){ + domain="<perl>$r->param('domain')</perl>"; + if (confirm("This action will delete \n\t\t* all users from this domain, \n\t\t * their mailboxes, \n\t\t * virtual hosts for this domain, \n\t\t * dnsdata related to this domain.\n\n") ) { + top.content.location="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=deleteDomain&domain="+domain; + } + } + </script> |