home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Komunik / sambar / sambar51p.exe / sysuser / webmail / webmail.stm < prev   
Encoding:
Text File  |  2002-03-24  |  6.5 KB  |  213 lines

  1. <RCif RCEloggedin ! true>
  2.     <HTML>
  3.     <HEAD>
  4.     <META HTTP-EQUIV="REFRESH" CONTENT="1; URL=index.htm"> 
  5.     </HEAD>
  6.     <BODY>
  7.     <FONT SIZE=+2 COLOR=#ff0000><B>Mail user not logged in!</B></FONT>
  8.     </BODY>
  9.     </HTML>
  10. <RCexit>
  11. <RCendif>
  12.  
  13. <RCXmailverify>
  14. <HTML>
  15. <HEAD>
  16. <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  17. <META HTTP-EQUIV="Expires" CONTENT="-1">
  18. <LINK REL="StyleSheet" HREF="<RCShome>/default.css" type="text/css">
  19.     
  20. <TITLE><RCPname> <RCSfolder></TITLE>
  21. <RC$npage = RCShome/webmail.stm>
  22. <SCRIPT language="JavaScript">
  23. <!--
  24. agent = navigator.userAgent;
  25. browserOK = 0;
  26. if (navigator.appName == "Netscape" && 
  27.     navigator.appVersion.substring(0,1) >= 2)
  28. {
  29.     browserOK = 1
  30. }
  31. else 
  32. {
  33.     if (navigator.appName == "Microsoft Internet Explorer" && 
  34.         navigator.appVersion.substring(0,1) >= 4)
  35.     {
  36.         browserOK = 1
  37.     }
  38. }
  39.  
  40. function    checkUncheck(xxx)
  41. {
  42.     if (browserOK)
  43.     {
  44.         for (i = 0; i < document.forms["mform"].length; i++)
  45.         {
  46.             document.forms["mform"].elements[i].checked = xxx
  47.         }
  48.     }
  49. }
  50.  
  51. function    submitForm(i)
  52. {
  53.     if (i == 1)
  54.         document.mform.action="/session/maildele";
  55.     else 
  56.         document.mform.action="/session/mailmoveall";
  57.  
  58.     document.mform.submit();
  59. }
  60. //-->
  61. </script>
  62. </HEAD>
  63. <BODY BGCOLOR="#ffffff" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
  64. <RCif RCEmailserver ! true>
  65. <FONT SIZE=+2 COLOR=#ff0000><B>Mail Server NOT enabled!</B></FONT>
  66. </BODY></HTML>
  67. <RCexit>
  68. <RCendif>
  69.  
  70. <RCif RCEhasmbox ! true>
  71. <FONT SIZE=+2 COLOR=#ff0000><B>User <RCEusername> does not have a mailbox!</B></FONT>
  72. </BODY></HTML>
  73. <RCexit>
  74. <RCendif>
  75.  
  76. <RCif RCScount = NULL>
  77. <RCScount = 25>
  78. <RCendif>
  79.  
  80. <RC$npage = RCShome/webmail.stm>
  81. <RC$nummsgs = RC@mailattr(RCSfolder, nummsgs)>
  82. <RC$foldersize = RC@mailattr(RCSfolder, size)>
  83. <RC$usage_pc = RC@floor(RC$foldersize / RCEmboxsize * 100)>
  84. <RC$fsize_kb = RC@floor(RC$foldersize / 1024)>
  85. <RC$msize_kb = RC@floor(RCEmboxsize / 1024)>
  86.  
  87. <!--- -------------------- --->
  88. <!---        Header        --->
  89. <!--- -------------------- --->
  90. <RCinclude RCShome/actions.stm>
  91. <TABLE valign=top WIDTH=100% border=0 cellspacing=0>
  92. <TR><TD colspan=2 nowrap>
  93.     <TABLE width=100% border=0>
  94.     <TR>
  95.     <TD valign=top align=left nowrap>
  96.         <font size=4><B>Mailbox:</B></font><font color=#0000FF><RCEusername></font><br>
  97.         <font color=#404040><RCEdatetime></font>
  98.     </TD>
  99.     <TD valign=top align=left nowrap>
  100.         <font size=4><B><RCSfolder></B></font><BR>
  101.         <font color=#404040>Folder size: <RC$foldersize> bytes</font>
  102.     </TD>
  103.     <TD valign=top align=right nowrap>
  104.         <font size=4 color=#0000FF><RCEvhost></font><br>
  105.         <font color=#404040><B>WebMail</B></font>
  106.     </TD>
  107.     </TR>
  108.     </TABLE>
  109. </TD>
  110. <TR>
  111. <TD align=left nowrap>
  112. <font color=#404040>
  113.  <RC@mailinfo(capacity)>% of <RC@mailinfo(maxmboxsize)> used.
  114. </font>
  115. </TD>
  116. <TD align=right nowrap>
  117.     <RCXmailnav folder=RCSfolder start=RC$start count=RCScount page=RC$npage>
  118. </TD>
  119. </TR>
  120. </TABLE>
  121.  
  122. <TABLE valign=top WIDTH=100% border=0 cellspacing=0>
  123. <TR><TD>
  124. <TR>
  125. <TD WIDTH=100% valign="top">
  126.     <FORM METHOD=POST NAME="mform">
  127.     <INPUT type=hidden name=RCpage value="<RC$npage>">
  128.     <INPUT TYPE=hidden NAME=start VALUE="<RC$start>">
  129.     <INPUT TYPE=hidden NAME=count VALUE="<RCScount>">
  130.     <INPUT TYPE=hidden NAME=folder VALUE="<RCSfolder>">
  131.     <TABLE width=100% border=0 cellpadding=1 cellspacing=0>
  132.     <TR valign=bottom bgcolor=#000080>
  133.     <TH align=left width=5%><FONT color=white>Msg</FONT></TH>
  134.     <TH align=left width=15%>
  135.         <RCif RCSfolder = sent>
  136.             <FONT color=white>Recipient</FONT>
  137.         <RCelse>
  138.             <FONT color=white>Sender</FONT>
  139.         <RCendif>
  140.     </TH>
  141.     <TH align=left nowrap width=5%>
  142.         <RCif RCSsort = asc>
  143.             <A HREF=<RC$npage>?start=1&RCSsort=desc><IMG border=0 height=15 width=15 SRC="/sysimage/icons/uparrow.gif" ALT="Sort Descending"></A>
  144.         <RCelse>
  145.             <A HREF=<RC$npage>?start=1&RCSsort=asc><IMG border=0 height=15 width=15 SRC="/sysimage/icons/dnarrow.gif" ALT="Sort Ascending"></A>
  146.         <RCendif>
  147.         <FONT color=white>Date</FONT>
  148.     </TH>
  149.     <TH align=left width=5%><FONT color=#000080>.</FONT></TH>
  150.     <TH align=left width=5%><FONT color=white>Size</FONT></TH>
  151.     <TH align=left><FONT color=white>Subject</FONT></TH>
  152.     </TR>
  153.     <RCXmaillist folder=RCSfolder usecss=true start=RC$start count=RCScount sort=RCSsort home=RCShome>
  154.     <TR>
  155.     <TD colspan=6 class="wmmainheader" valign=center>
  156. <!--- -------------------- --->
  157. <!---    Bottom Actions    --->
  158. <!--- -------------------- --->
  159.        <TABLE width="100%" border=0 cellpadding=1 cellspacing=0>
  160.     <tr><td colspan=12 bgcolor=#000080 height=10></td></tr>
  161.     <tr>
  162.     <td>
  163.           <A HREF="javascript:checkUncheck(true)" onMouseOver="on('check')" onMouseOut="off()">
  164.           <img src="<RCShome>/images/check.gif" alt="Check All Messages" name="check" border="0" width=98 height=26></A></td>    
  165.     <td><img src="<RCShome>/images/grey_bar.gif" border="0" width=3 height=26></td>
  166.     <td>
  167.           <A HREF="javascript:checkUncheck(false)" onMouseOver="on('uncheck')" onMouseOut="off()">
  168.           <img src="<RCShome>/images/uncheck.gif" alt="UnCheck All Messages" name="uncheck" border="0" width=98 height=26></A></td>    
  169.     <td><img src="<RCShome>/images/grey_bar.gif" border="0" width=3 height=26></td>
  170.     <td>
  171.           <A HREF="javascript:submitForm(1)" onMouseOver="on('delete')" onMouseOut="off()">
  172.           <img src="<RCShome>/images/delete.gif" alt="Delete Selected Messages" name="delete" border="0" width=78 height=26></A></td>    
  173.     <td><img src="<RCShome>/images/grey_bar.gif" border="0" width=3 height=26></td>
  174.  
  175.     <RCif RC@mailinfo(numfolders) > 1>
  176.         <td>
  177.                 <A HREF="javascript:submitForm(2)" onMouseOver="on('moveto')" onMouseOut="off()">
  178.         <img src="<RCShome>/images/moveto.gif" alt="Move Selected Messages" name="moveto" border="0" width=98 height=26></A>
  179.         </td>
  180.         <td valign=middle>
  181.         <RCXmailfolders folder=RCSfolder home=RCShome type=pick>
  182.         </td>
  183.         <td><img src="<RCShome>/images/grey_bar.gif" border="0" width=3 height=26></td>
  184.     <RCendif>
  185.     </form>
  186.     </td>
  187.     <TD>
  188.        <A HREF="javascript:document.gotomessage.submit()" onMouseOver="on('goto')" onMouseOut="off()">
  189.        <img src="<RCShome>/images/goto.gif" alt="Go to message" name="goto" border="0" width=73 height=26></A>
  190.     </TD>
  191.     <TD align=middle>
  192.         <FORM NAME=gotomessage METHOD=GET ACTION="<RC$npage>">
  193.         <FONT COLOR=#ffffff> . . . </FONT>
  194.         <INPUT TYPE=hidden NAME=count VALUE="<RCScount>">
  195.         <!INPUT TYPE=submit VALUE="Go To">
  196.         <INPUT TYPE=text NAME=start SIZE=4 VALUE="1">
  197.         </FORM>
  198.     </TD>
  199.  
  200.         <td width="100%"> </td>
  201.         </tr>
  202.         </table>
  203.  
  204.     </TD>
  205.     </TR>
  206.     </TABLE>
  207. </TD>
  208. </TR>
  209. </TABLE>
  210. <p> </p>
  211. </BODY>
  212. </HTML>
  213.