From: Atif G. <ma...@us...> - 2003-01-16 21:28:44
|
Update of /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl In directory sc8-pr-cvs1:/tmp/cvs-serv15035/cgi-bin/tmpl Modified Files: Tag: REL_0_9_7 ispman.tmpl menu.tmpl status.tmpl topmenu.tmpl Log Message: Time for a new look. Index: ispman.tmpl =================================================================== RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/ispman.tmpl,v retrieving revision 1.10.4.4.2.1 retrieving revision 1.10.4.4.2.2 diff -C2 -r1.10.4.4.2.1 -r1.10.4.4.2.2 *** ispman.tmpl 16 Jan 2003 17:06:06 -0000 1.10.4.4.2.1 --- ispman.tmpl 16 Jan 2003 21:28:41 -0000 1.10.4.4.2.2 *************** *** 11,17 **** <frame name="title" src="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=topmenu" marginwidth="0" marginheight="0" scrolling="no"> <frame name="status" src="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=status" marginwidth="0" marginheight="0" scrolling="no"> ! <frameset cols="*, 250" border="none" frameborder="0"> ! <frame name="content" src="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=overview"> <frame name="main_menu" src="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=menu" marginwidth="0" marginheight="0" scrolling="auto"> </frameset> </frameset> --- 11,17 ---- <frame name="title" src="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=topmenu" marginwidth="0" marginheight="0" scrolling="no"> <frame name="status" src="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=status" marginwidth="0" marginheight="0" scrolling="no"> ! <frameset cols="250,*" border="none" frameborder="2"> <frame name="main_menu" src="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=menu" marginwidth="0" marginheight="0" scrolling="auto"> + <frame name="content" src="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=overview"> </frameset> </frameset> Index: menu.tmpl =================================================================== RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/menu.tmpl,v retrieving revision 1.31.4.7 retrieving revision 1.31.4.7.2.1 diff -C2 -r1.31.4.7 -r1.31.4.7.2.1 *** menu.tmpl 1 Jan 2003 18:34:17 -0000 1.31.4.7 --- menu.tmpl 16 Jan 2003 21:28:41 -0000 1.31.4.7.2.1 *************** *** 203,234 **** if ($r->param("domain") ){ ! $text.=qq|<A class=menu HREF="javascript:editDomain('$thisDomain')">Edit $thisDomain</a>|; ! $text.='<br>'; ! $text.=qq|<A class=menu HREF="javascript:deleteDomain('$thisDomain')">Delete $thisDomain</a>|; if ($thisDomainType eq "primary"){ ! $text.=qq|<table width=100% border=0><tr><td class=menuheader> ! Manage DNS ! </td></tr> ! <tr> ! <td> ! <FONT SIZE=1> ! ! <a class=menu target=content href='$ENV{'SCRIPT_NAME'}?mode=editDNSsOARecords&ispmanDomain=$thisDomain'>SOA Records</a> ! <BR> ! <a class=menu target=content href='$ENV{'SCRIPT_NAME'}?mode=editDNSmXRecords&ispmanDomain=$thisDomain'>MX Records</a> ! <BR> ! <a class=menu target=content href='$ENV{'SCRIPT_NAME'}?mode=editDNSnSRecords&ispmanDomain=$thisDomain'>NS Records</a> ! <BR> ! <a class=menu target=content href='$ENV{'SCRIPT_NAME'}?mode=editDNSaRecords&ispmanDomain=$thisDomain'>A Records</a> ! <BR> ! <a class=menu target=content href='$ENV{'SCRIPT_NAME'}?mode=editDNScNAMERecords&ispmanDomain=$thisDomain'>CNAME Records</a> ! </font> ! </td> ! </tr> </table> --- 203,238 ---- if ($r->param("domain") ){ ! $text.=qq| ! <table width=100% border=0> ! <tr class="light" onclick="javascript:editDomain('$thisDomain')" onmouseover="javascript:style.background='white'" onmouseout="javascript:style.background='#7490cc'"> ! <td><A class=menu HREF="javascript:editDomain('$thisDomain')">Edit $thisDomain</a></td></tr> ! ! <tr class="light" onclick="javascript:deleteDomain('$thisDomain')" onmouseover="javascript:style.background='white'" onmouseout="javascript:style.background='#7490cc'"> ! <td><A class=menu HREF="javascript:deleteDomain('$thisDomain')">Delete $thisDomain</a></td></tr> ! </table> ! ! |; ! ! if ($thisDomainType eq "primary"){ ! $text.=qq|<table width=100% border=0><tr><td class=menuheader>Manage DNS</td></tr> ! <tr class="light" onclick="javascript:parent.content.location='$ENV{'SCRIPT_NAME'}?mode=editDNSsOARecords&ispmanDomain=$thisDomain'" onmouseover="javascript:style.background='white'" onmouseout="javascript:style.background='#7490cc'"> ! <td> <a class=menu target=content href='$ENV{'SCRIPT_NAME'}?mode=editDNSsOARecords&ispmanDomain=$thisDomain'>SOA Records</a></td></tr> ! ! <tr class="light" onclick="javascript:parent.content.location='$ENV{'SCRIPT_NAME'}?mode=editDNSmXRecords&ispmanDomain=$thisDomain'" onmouseover="javascript:style.background='white'" onmouseout="javascript:style.background='#7490cc'"> ! <td> <a class=menu target=content href='$ENV{'SCRIPT_NAME'}?mode=editDNSmXRecords&ispmanDomain=$thisDomain'>MX Records</a></td></tr> ! ! <tr class="light" onclick="javascript:parent.content.location='$ENV{'SCRIPT_NAME'}?mode=editDNSnSRecords&ispmanDomain=$thisDomain'" onmouseover="javascript:style.background='white'" onmouseout="javascript:style.background='#7490cc'"> ! <td> <a class=menu target=content href='$ENV{'SCRIPT_NAME'}?mode=editDNSnSRecords&ispmanDomain=$thisDomain'>NS Records</a></td></tr> ! ! <tr class="light" onclick="javascript:parent.content.location='$ENV{'SCRIPT_NAME'}?mode=editDNSaRecords&ispmanDomain=$thisDomain'" onmouseover="javascript:style.background='white'" onmouseout="javascript:style.background='#7490cc'"> ! <td> <a class=menu target=content href='$ENV{'SCRIPT_NAME'}?mode=editDNSaRecords&ispmanDomain=$thisDomain'>A Records</a></td></tr> ! <tr class="light" onclick="javascript:parent.content.location='$ENV{'SCRIPT_NAME'}?mode=editDNScNAMERecords&ispmanDomain=$thisDomain'" onmouseover="javascript:style.background='white'" onmouseout="javascript:style.background='#7490cc'"> ! <td> <a class=menu target=content href='$ENV{'SCRIPT_NAME'}?mode=editDNScNAMERecords&ispmanDomain=$thisDomain'>CNAME Records</a></td></tr> </table> *************** *** 240,245 **** $text.=qq|<table width=100% border=0><tr><form> <td class=menuheader>Manage users </td></tr> ! <tr><td><a href="javascript:void(searchUsers('$domains->{$thisDomain}'))">Search users</a> </td></tr> ! <tr><td><a href="javascript:void(addUser('$domains->{$thisDomain}'))">Add user</a> </td></tr> <tr> --- 244,251 ---- $text.=qq|<table width=100% border=0><tr><form> <td class=menuheader>Manage users </td></tr> ! <tr class="light" onclick="javascript:void(searchUsers('$domains->{$thisDomain}'))" onmouseover="javascript:style.background='white'" onmouseout="javascript:style.background='#7490cc'"> ! <td><a class=menu href="javascript:void(searchUsers('$domains->{$thisDomain}'))">Search users</a> </td></tr> ! <tr class="light" onclick="javascript:void(addUser('$domains->{$thisDomain}'))" onmouseover="javascript:style.background='white'" onmouseout="javascript:style.background='#7490cc'"> ! <td><a class=menu href="javascript:void(addUser('$domains->{$thisDomain}'))">Add user</a> </td></tr> <tr> *************** *** 263,267 **** $text.=qq|<table width=100% border=0><tr><form> <td class=menuheader>Manage MailGroups </td></tr> ! <tr><td><a href="javascript:void(addMailGroup('$domains->{$thisDomain}'))">Add mail group</a> </td></tr> <tr> --- 269,274 ---- $text.=qq|<table width=100% border=0><tr><form> <td class=menuheader>Manage MailGroups </td></tr> ! <tr class="light" onclick="javascript:void(addMailGroup('$domains->{$thisDomain}'))" onmouseover="javascript:style.background='white'" onmouseout="javascript:style.background='#7490cc'"> ! <td><a class=menu href="javascript:void(addMailGroup('$domains->{$thisDomain}'))">Add mail group</a> </td></tr> <tr> *************** *** 283,293 **** ! $text.=qq|<form><table width=100% border=0><tr><td class=menuheader> ! Manage Vhosts</td></tr> <tr> <td> <SELECT NAME="vhosts" onChange="manageVhost(this.options)"> <option value=''>Select Vhost</option> - <OPTION VALUE="$domains->{$thisDomain}">Add Vhost</option> |; --- 290,301 ---- ! $text.=qq|<form><table width=100% border=0><tr><td class=menuheader>Manage Vhosts</td></tr> ! <tr class="light" onclick="javascript:void(addVhost('$domains->{$thisDomain}'))" onmouseover="javascript:style.background='white'" onmouseout="javascript:style.background='#7490cc'"> ! <td><a class=menu href="javascript:void(addVhost('$domains->{$thisDomain}'))">Add virtualhost</a> </td></tr> ! <tr> <td> <SELECT NAME="vhosts" onChange="manageVhost(this.options)"> <option value=''>Select Vhost</option> |; Index: status.tmpl =================================================================== RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/status.tmpl,v retrieving revision 1.1.2.1.2.5 retrieving revision 1.1.2.1.2.5.2.1 diff -C2 -r1.1.2.1.2.5 -r1.1.2.1.2.5.2.1 *** status.tmpl 18 Dec 2002 18:47:37 -0000 1.1.2.1.2.5 --- status.tmpl 16 Jan 2003 21:28:41 -0000 1.1.2.1.2.5.2.1 *************** *** 27,34 **** <input type=hidden name="mode" value="commitSession"> <table width=100%> ! <td align=left>Running Session : <perl>$ispman->{"sessID"}</perl> <br><perl>$ispman->countProcesessesInSession($ispman->{"sessID"})</perl> pending processes</td> <td align=right> ! <select name="refresh" ONCHANGE="Refresh(this.options[this.selectedIndex].value)"> <option value="10" <perl>($r->param("refresh")==10)?" selected ":""</perl>>Refresh every 10 seconds</option> <option value="30" <perl>($r->param("refresh")==30)?" selected ":""</perl>>Refresh every 30 seconds</option> --- 27,34 ---- <input type=hidden name="mode" value="commitSession"> <table width=100%> ! <td align=left class=status>Running Session : <perl>$ispman->{"sessID"}</perl> <br><perl>$ispman->countProcesessesInSession($ispman->{"sessID"})</perl> pending processes</td> <td align=right> ! <select class=statusselect name="refresh" ONCHANGE="Refresh(this.options[this.selectedIndex].value)"> <option value="10" <perl>($r->param("refresh")==10)?" selected ":""</perl>>Refresh every 10 seconds</option> <option value="30" <perl>($r->param("refresh")==30)?" selected ":""</perl>>Refresh every 30 seconds</option> *************** *** 37,43 **** </select> ! <input class="button" type=button name="refresher" value="Refresh" onClick="Refresh(this.form.refresh.options[this.form.refresh.selectedIndex].value)" ! ><input class="button" type=submit value="commit session"></td> </table> </form> --- 37,43 ---- </select> ! <input class="statusbutton" type=button name="refresher" value="Refresh" onClick="Refresh(this.form.refresh.options[this.form.refresh.selectedIndex].value)" ! ><input class="statusbutton" type=submit value="commit session"></td> </table> </form> Index: topmenu.tmpl =================================================================== RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/topmenu.tmpl,v retrieving revision 1.4.2.1.2.6 retrieving revision 1.4.2.1.2.6.2.1 diff -C2 -r1.4.2.1.2.6 -r1.4.2.1.2.6.2.1 *** topmenu.tmpl 1 Jan 2003 18:34:18 -0000 1.4.2.1.2.6 --- topmenu.tmpl 16 Jan 2003 21:28:41 -0000 1.4.2.1.2.6.2.1 *************** *** 28,51 **** <TR> <TD nowrap valign=top><nobr><a class=<perl>$class</perl> target="content" href="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=overview">Overview</a></nobr></td> - <TD valign=center align=center>.</td> <perl> if ($ispman->{'session'}->param("logintype") eq "admin") { ! return qq|<TD valign=top ><nobr><a class=$class target="content" href="$ENV{'SCRIPT_NAME'}?mode=showResellers">Resellers</a></nobr></td><TD valign=center align=center>.</td>|; } </perl> <perl> if ($ispman->{'session'}->param("logintype") eq "admin" or $ispman->{'session'}->param("logintype") eq "reseller" ) { ! return qq|<TD valign=top ><nobr><a class=$class target="content" href="$ENV{'SCRIPT_NAME'}?mode=showClients">Clients</a></nobr></td><TD valign=center align=center>.</td>|; } </perl> <TD nowrap valign=top><nobr><a class=<perl>$class</perl> target="content" href="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=summary&hidereplicas=true">Domains</a></nobr></td> - <TD valign=center align=center>.</td> <TD valign=top ><nobr><a class=<perl>$class</perl> href="javascript:addDomain()">Add domain</a></nobr></td> - <TD valign=center align=center>.</td> <perl> if ($ispman->{'session'}->param("logintype") eq "admin") { ! return qq|<TD valign=top ><nobr><a class=$class target="content" href="$ENV{'SCRIPT_NAME'}?mode=configure">Configure</a></nobr></td><TD valign=center align=center>.</td>|; } </perl> --- 28,48 ---- <TR> <TD nowrap valign=top><nobr><a class=<perl>$class</perl> target="content" href="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=overview">Overview</a></nobr></td> <perl> if ($ispman->{'session'}->param("logintype") eq "admin") { ! return qq|<TD valign=top ><nobr><a class=$class target="content" href="$ENV{'SCRIPT_NAME'}?mode=showResellers">Resellers</a></nobr></td>|; } </perl> <perl> if ($ispman->{'session'}->param("logintype") eq "admin" or $ispman->{'session'}->param("logintype") eq "reseller" ) { ! return qq|<TD valign=top ><nobr><a class=$class target="content" href="$ENV{'SCRIPT_NAME'}?mode=showClients">Clients</a></nobr></td>|; } </perl> <TD nowrap valign=top><nobr><a class=<perl>$class</perl> target="content" href="<perl>$ENV{'SCRIPT_NAME'}</perl>?mode=summary&hidereplicas=true">Domains</a></nobr></td> <TD valign=top ><nobr><a class=<perl>$class</perl> href="javascript:addDomain()">Add domain</a></nobr></td> <perl> if ($ispman->{'session'}->param("logintype") eq "admin") { ! return qq|<TD valign=top ><nobr><a class=$class target="content" href="$ENV{'SCRIPT_NAME'}?mode=configure">Configure</a></nobr></td>|; } </perl> *************** *** 54,58 **** <perl> if ($ispman->{'session'}->param("logintype") eq "admin") { ! return qq|<TD valign=center align=center>.</td><TD valign=top align=right><nobr><a class=$class target="content" href="http://sourceforge.net/tracker/?group_id=8390&atid=108390">File a BUG</a></nobr></td>|; } </perl> --- 51,55 ---- <perl> if ($ispman->{'session'}->param("logintype") eq "admin") { ! return qq|<TD valign=top align=right><nobr><a class=$class target="content" href="http://sourceforge.net/tracker/?group_id=8390&atid=108390">File a BUG</a></nobr></td>|; } </perl> |