Logo Search packages:      
Sourcecode: camas version File versions  Download package

defaultlayout.h

/*
 * Caudium - An extensible World Wide Web server
 * Copyright © 2000-2004 The Caudium Group
 * Based on IMHO © Stefan Wallström and Bosse Lincoln.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */
/*
 * $Id: defaultlayout.h,v 1.15 2004/01/13 11:01:36 vida Exp $
 */

#ifndef __DEFAULTLAYOUT_H
#define __DEFAULTLAYOUT_H

// BEGIN DEFAULTLAYOUT
#define DEFAULTLAYOUT \
"<imho_doctype><html>\n" \
"<head><title><imho_banner></title>\n" \
"<if supports=\"stylesheets\">\n" \
"<style type=\"text/css\">\n" \
"body {font: 10pt arial, helvetica; color: black; background-color: #8db6cd}\n" \
"\n" \
"p {font: 10pt arial, helvetica}\n" \
"b {font-weight: bold}\n" \
"\n" \
"h1 {font: 22pt arial, helvetica}\n" \
"h2 {font: 18pt arial, helvetica}\n" \
"h3 {font: 14pt arial, helvetica}\n" \
"h4 {font: 10pt arial, helvetica}\n" \
"\n" \
"th {font: 13pt arial, helvetica; color: black; font-weight: bold; line-height: 110% }\n" \
"td {font: 10pt arial, helvetica; color: black;}\n" \
"\n" \
"a {font: 10pt arial, helvetica; text-decoration: underline}\n" \
"a.mailbox {font: 10pt arial, helvetica; text-decoration: none}\n" \
"a:link {color: black}\n" \
"a:visited {color: black}\n" \
"a:active {color: black}\n" \
"\n" \
"input {font: 10pt courier; text-decoration: none}\n" \
"textarea {font: 10pt courier; text-decoration: none}\n" \
"</style>\n" \
"</if>\n" \
"\n" \
"<if not defined=\"imhostate is login\">\n" \
" <if defined=\"imhostate is in\">\n" \
"\n" \
"  <if supports=\"frames\">\n" \
"   <if defined=\"imhoframe is idlemailnotify\"> \n" \
"    <comment>Mail Notify Window</comment>\n" \
"    </head>\n" \
"    <comment>Add a refresh timeout for mail notification</comment>\n" \
"    <imho_jsnotify>\n" \
"    <if not defined=\"imhonewmail is 0\"><comment>No new mail</comment>\n" \
"     <body>\n" \
"     <center>\n" \
"     <table border=\"0\"><tr><td bgcolor=\"#000070\">\n" \
"      <imho_image image=\"newmail\" quant=\"250\" insideenvcolor=\"#202020\" bg=\"#000070\" scale=\"0.5\" /><br />\n" \
"     </td></tr>\n" \
"     <if supports=\"javascript\">\n" \
"      <script language=\"JavaScript\" type=\"text/javascript\">\n" \
"      function openWin(url,name) {\n" \
"       window.open(url, name);\n" \
"      }\n" \
"      </script>\n" \
"      <if match=\"&caudium.version; is Caudium*\">\n" \
"      <cset preparse=\"\" scope=\"var\" variable=\"url\"><imho_url target=\"_top\" href=\"reloadactivemailboxes\" /></cset>\n" \
"      <tr><td><a href=\"javascript:openWin('&var.url;','CAMAS')\"><imho_string no=\"1401\" /></a></td></tr>\n" \
"      </if>\n" \
"      <else>\n" \
"      <set variable=\"url\" eval=\"<imho_url target=\"_top\" href=\"reloadactivemailboxes\" />\">\n" \
"      <formoutput quote=\"$\">\n" \
"      <tr><td><a href=\"javascript:openWin('$url$','CAMAS')\"><imho_string no=\"1401\" /></a></td></tr>\n" \
"      </formoutput>\n" \
"      </else>\n" \
"     </if>\n" \
"     </table>\n" \
"     </center>\n" \
"     </body>\n" \
"    </if>\n" \
"    <else>\n" \
"     <body>\n" \
"     <center>\n" \
"     <table bgcolor=\"#000070\" border=\"0\"><tr><td>\n" \
"      <imho_image image=\"nonewmail\" quant=\"250\" insideenvcolor=\"#202020\" bg=\"#000070\" scale=\"0.5\" />\n" \
"     </td></tr></table>\n" \
"     </center>\n" \
"     </body>\n" \
"    </else>\n" \
"   </if> <comment>End Mail Notify Window</comment>\n" \
"\n" \
"   <else>\n" \
"   <if defined=\"imhoframe is _top\">\n" \
"     <imho_jslogout>" \
"     <frameset rows=\"50,*\" frameborder=\"no\" border=\"0\" framespacing=\"0\">\n" \
"      <imho_frame scrolling=\"no\" name=\"banner\" />\n" \
"      <imho_frame scrolling=\"no\" name=\"notbanner\" />\n" \
"    </frameset>\n" \
"    </head>\n" \
"    </if> <comment>End Top frame</comment>\n" \
"\n" \
"   <else>\n" \
"    <if defined=\"imhoframe is notbanner\">\n" \
"      <frameset cols=\"153,*\" frameborder=\"no\" border=\"0\" framespacing=\"0\">\n" \
"       <imho_frame scrolling=\"no\" name=\"head\" />\n" \
"       <imho_frame scrolling=\"auto\" name=\"mail\" />\n" \
"     </frameset>\n" \
"     </head>\n" \
"     </if><comment>End Notbanner frame</comment>\n" \
"\n" \
"    <else>\n" \
"     <if defined=\"imhoframe is banner\">\n" \
"      </head>\n" \
"       <body text=\"black\" bgcolor=\"#dde1f0\" link=\"black\" vlink=\"black\" alink=\"black\">\n" \
"       <if match=\"&caudium.version; is Caudium*\">\n" \
"       <cset preparse=\"\" scope=\"var\" variable=\"banner\"><imho_banner /></cset>\n" \
"        <imho_image image=\"bannerleft\" text=\"&var.banner;\" quant=\"250\" clouds=\"white\" fg=\"white\" bg=\"#000070\" align=\"left\" border=\"0\" hspace=\"0\" />\n" \
"     </if>\n" \
"     <else>\n" \
"       <set variable=\"banner\" eval=\"<imho_banner />\">\n" \
"       <formoutput quote=\"$\">\n" \
"        <imho_image image=\"bannerleft\" text=\"$banner$\" quant=\"250\" clouds=\"white\" fg=\"white\" bg=\"#000070\" align=\"left\" border=\"0\" hspace=\"0\" />\n" \
"       </formoutput>\n" \
"       </else>\n" \
"       <imho_image image=\"bannerright\" bg=\"#000070\" width=\"100%\" border=\"0\" hspace=\"0\" />\n" \
"       </body>\n" \
"      </if><comment>End banner frame</comment>\n" \
"\n" \
"      <else>\n" \
"      <if defined=\"imhoframe is mail\">\n" \
"       <if defined=\"imhoscreen is readmail\">\n" \
"         <frameset rows=\"40%,*\" frameborder=\"yes\" border=\"2\" framespacing=\"0\">\n" \
"          <imho_frame scrolling=\"auto\" name=\"list\" />\n" \
"          <imho_frame scrolling=\"auto\" name=\"main\" />\n" \
"        </frameset>\n" \
"        </if><comment>End of mail readmail frame set (only used when\n" \
"                      imhoscreen is readmail</comment>\n" \
"\n" \
"        <else><comment>The main CAMAS output if this frame is not split\n" \
"                       in \"list\" and \"main\"</comment>\n" \
"        </head>\n" \
"         <body bgcolor=\"#dde1f0\" text=\"black\" link=\"black\" vlink=\"black\" alink=\"black\">\n" \
"        <if defined=\"imhoscreen is mailindex\">\n" \
"          <h3><imho_mailbox />:</h3>\n" \
"        </if>\n" \
"         <imho_main nogtext=\"\" tdbgcolor=\"#a4d3ee\" thbgcolor=\"#000070\" thcolor=\"white\" checkcolor=\"black\" checksize=\"14\" arrowsize=\"14\" target=\"mail\" notopbuttons=\"\" columns=\"num,mark,new,answered,date,fromto,subject,size\" />\n" \
"        </body>\n" \
"        </else><comment>End CAMAS main output</comment>\n" \
"       </if><comment>End mail frame</comment>\n" \
" \n" \
"       <else><comment>Frame is one of the output frames \"list\", \"mail\", \n" \
"                      \"head\"</comment>\n" \
"       </head>\n" \
"        <body bgcolor=\"#dde1f0\" text=\"black\" link=\"black\" vlink=\"black\" alink=\"black\">\n" \
"\n" \
"        <if defined=\"imhoframe is head\"><comment>Buttons etc</comment>\n" \
"         <imho_name /><br /><hr />\n" \
"         <table width=\"100%\" border=\"2\" cellspacing=\"0\" cellpadding=\"3\">\n" \
"         <imho_buttonoutput target=\"mail\" quote=\"$\" noupdate=\"\">\n" \
"           <tr><td bgcolor=\"#000070\" align=\"center\">\n" \
"           <a href=\"$button-url$\" target=\"$button-target$\" style=\"text-decoration: none\"><font color=\"white\">$button-text$</font></a>\n" \
"          </td></tr>\n" \
"        </imho_buttonoutput>\n" \
"        </table>\n" \
"        <br />\n" \
"         <table width=\"100%\" border=\"2\" cellspacing=\"0\" cellpadding=\"3\">\n" \
"         <imho_buttonoutput buttons=\"inboxes\" target=\"mail\" quote=\"$\" noupdate=\"\">\n" \
"           <tr><td bgcolor=\"#9099b4\" align=\"center\">\n" \
"           <a href=\"$button-url$\" target=\"$button-target$\" style=\"text-decoration: none\"><font color=\"white\">$button-text$</font></a>\n" \
"          </td></tr>\n" \
"        </imho_buttonoutput>\n" \
"      <if supports=\"javascript\"><if defined=\"imhomailnotify is yes\">\n" \
"          <tr><td bgcolor=\"#000070\" align=\"center\"><font color=\"white\">\n" \
"        <script language=\"JavaScript\" type=\"text/javascript\">\n" \
"           function openWin(url,name,opts) {\n" \
"             window.open(url, name, opts);\n" \
"        }\n" \
"        </script>\n" \
"           <if match=\"&caudium.version; is Caudium*\">\n" \
"           <cset preparse=\"\" scope=\"var\" variable=\"url\"><imho_url target=\"idlemailnotify\" href=\"checkactivemailboxes\" /></cset>\n" \
"           <a style=\"text-decoration: none\" href=\"javascript:openWin('&var.url;','Notify','toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=100,height=100');\"><font color=\"white\"><imho_string no=\"1400\" /></font></a>\n" \
"           </if>\n" \
"           <else>\n" \
"           <set variable=\"url\" eval=\"<imho_url target=\"idlemailnotify\" href=\"checkactivemailboxes\" />\">\n" \
"           <formoutput quote=\"$\">\n" \
"           <a style=\"text-decoration: none\" href=\"javascript:openWin('$url$','Notify','toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=100,height=100');\"><font color=\"white\"><imho_string no=\"1400\" /></font></a>\n" \
"           </formoutput>\n" \
"           </else>\n" \
"        </font>\n" \
"          </td></tr>\n" \
"      </if></if>\n" \
"         <tr><td bgcolor=\"#000070\" align=\"center\">\n" \
"         <imho_a href=\"reloadactivemailboxes\" target=\"mail\" style=\"text-decoration: none\"><font color=\"white\"><imho_string no=\"203\" /></font></a>\n" \
"        </td></tr>\n" \
"        </table>\n" \
"        <br />\n" \
"         <imho_about />\n" \
"        </if><comment>End head frame (buttons etc)</comment>\n" \
"\n" \
"       <else>\n" \
" \n" \
"        <if defined=\"imhoframe is list\">\n" \
"          <h3><imho_mailbox />:</h3>\n" \
"          <imho_mailindex nogtext=\"\" tdbgcolor=\"#a4d3ee\" thbgcolor=\"#000070\" thcolor=\"white\" checkcolor=\"black\" checksize=\"14\" arrowsize=\"14\" uptarget=\"mail\" sidetarget=\"main\" notopbuttons=\"\" columns=\"num,mark,new,answered,date,fromto,subject,size\" />\n" \
"         </if><comment>End list frame</comment>\n" \
"\n" \
"         <else><comment>Finally! If no other frame, output imho_main</comment>\n" \
"          <imho_main nogtext=\"\" tdbgcolor=\"#a4d3ee\" thbgcolor=\"#000070\" thcolor=\"white\" checkcolor=\"black\" checksize=\"14\" arrowsize=\"14\" target=\"mail\" nobackbutton=\"\" />\n" \
"       </else>\n" \
"        </else><comment>End list or main frames</comment>\n" \
"       </body>\n" \
"       </else><comment>End output frames</comment>\n" \
"      </else><comment>End not banner frame</comment>\n" \
"     </else><comment>End not banner frameset</comment>\n" \
"    </else><comment>End not top frame</comment>\n" \
"   </else><comment>End not mail notify window</comment>\n" \
"  </if>\n" \
"\n" \
"  <else><comment>No frames</comment>\n" \
"   </head>\n" \
"   <body text=\"black\" bgcolor=\"#dde1f0\" link=\"black\" vlink=\"black\" alink=\"black\">\n" \
"   <if match=\"&caudium.version; is Caudium*\">\n" \
"   <cset preparse=\"\" scope=\"var\" variable=\"banner\"><imho_banner /></cset>\n" \
"   <imho_image image=\"bannerleft\" text=\"&var.banner;\" quant=\"250\" clouds=\"white\" fg=\"white\" bg=\"#000070\" align=\"left\" border=\"0\" hspace=\"0\" />\n" \
"   </if>\n" \
"   <else>\n" \
"   <set variable=\"banner\" eval=\"<imho_banner />\">\n" \
"   <formoutput quote=\"$\">\n" \
"   <imho_image image=\"bannerleft\" text=\"$banner$\" quant=\"250\" clouds=\"white\" fg=\"white\" bg=\"#000070\" align=\"left\" border=\"0\" hspace=\"0\" /></formoutput>\n" \
"   </else>\n" \
"   <imho_image image=\"bannerright\" bg=\"#000070\" width=\"100%\" border=\"0\" hspace=\"0\" />\n" \
"\n" \
"   <table width=\"100%\" nowrap=\"nowrap\" cellpadding=\"2\" cellspacing=\"2\"><tr>\n" \
"    <td bgcolor=\"#9099b4\">\n" \
"     <table width=\"100%\"><tr><td>\n" \
"      <table border=\"1\" cellpadding=\"5\" cellspacing=\"2\"><tr>\n" \
"       <imho_buttonoutput quote=\"$\">\n" \
"         <td bgcolor=\"#000070\" align=\"center\">\n" \
"         <a href=\"$button-url$\" target=\"$button-target$\" style=\"text-decoration: none\"><font color=\"white\">$button-text$</font></a>\n" \
"         </td>\n" \
"       </imho_buttonoutput>\n" \
"       </tr></table>\n" \
"     </td></tr></table>\n" \
"    </td>\n" \
"    <td bgcolor=\"#000070\" align=\"center\">\n" \
"      <font color=\"#ffffff\"><imho_name /> : <imho_title /></font>\n" \
"    </td>\n" \
"   </tr></table>\n" \
"\n" \
"   <imho_main nogtext=\"\" tdbgcolor=\"#a4d3ee\" thbgcolor=\"#000070\" thcolor=\"white\" checkcolor=\"black\" checksize=\"14\" arrowsize=\"14\" columns=\"num,mark,new,answered,date,fromto,subject,size\" />\n" \
"   <hr /><imho_about />\n" \
"   </body>\n" \
"\n" \
"  </else>\n" \
"\n" \
" </if>\n" \
"\n" \
" <else> <comment>Logged out</comment>\n" \
"  </head>\n" \
"  <if supports=\"javascript\">\n" \
"  <script language=\"JavaScript\" type=\"text/javascript\"><!--\n" \
"    if (window.name == \"Notify\") {\n" \
"      window.close(); \n" \
"    }\n" \
"  //-->\n</script>\n" \
"  </if>\n" \
"  <body bgcolor=\"#dde1f0\" text=\"black\" link=\"black\" vlink=\"black\" alink=\"black\">\n" \
"  <if match=\"&caudium.version; is Caudium*\">\n" \
"  <cset preparse=\"\" scope=\"var\" variable=\"banner\"><imho_banner /></cset>\n" \
"  <imho_image image=\"bannerleft\" text=\"&var.banner;\" quant=\"250\" clouds=\"white\" fg=\"white\" bg=\"#000070\" align=\"left\" border=\"0\" hspace=\"0\" /></formoutput>\n" \
"  <imho_image image=\"bannerright\" bg=\"#000070\" width=\"100%\" border=\"0\" hspace=\"0\" />\n" \
"  </if>\n" \
"  <else>\n" \
"  <set variable=\"banner\" eval=\"<imho_banner />\">\n" \
"  <formoutput quote=\"$\">\n" \
"  <imho_image image=\"bannerleft\" text=\"$banner$\" quant=\"250\" clouds=\"white\" fg=\"white\" bg=\"#000070\" align=\"left\" border=\"0\" hspace=\"0\" /></formoutput>\n" \
"  <imho_image image=\"bannerright\" bg=\"#000070\" width=\"100%\" border=\"0\" hspace=\"0\" />\n" \
"  </else>\n" \
"  <imho_main />\n" \
"  <hr /><imho_about />\n" \
"  </body>\n" \
" </else>\n" \
"</if>\n" \
"\n" \
"<else> <comment>Login screen</comment>\n" \
" <killframe />\n" \
" <if supports=\"javascript\">\n" \
"  <script language=\"JavaScript\" type=\"text/javascript\"><!--\n" \
"    if (window.name == \"Notify\") {\n" \
"      window.close(); \n" \
"    }\n" \
"  //-->\n</script>\n" \
" </if>\n" \
" </head>\n" \
" <body bgcolor=\"#dde1f0\" text=\"black\" link=\"black\" vlink=\"black\" alink=\"black\">\n" \
" <if match=\"&caudium.version; is Caudium*\">\n" \
" <cset preparse=\"\" scope=\"var\" variable=\"banner\"><imho_banner /></cset>\n" \
" <imho_image image=\"bannerleft\" text=\"&var.banner;\" quant=\"250\" clouds=\"white\" fg=\"white\" bg=\"#000070\" align=\"left\" border=\"0\" hspace=\"0\" />\n" \
" </if>\n" \
" <else>\n" \
" <set variable=\"banner\" eval=\"<imho_banner />\">\n" \
" <formoutput quote=\"$\">\n" \
" <imho_image image=\"bannerleft\" text=\"$banner$\" quant=\"250\" clouds=\"white\" fg=\"white\" bg=\"#000070\" align=\"left\" border=\"0\" hspace=\"0\" />\n" \
" </formoutput>\n" \
" </else>\n" \
" <imho_image image=\"bannerright\" bg=\"#000070\" width=\"100%\" border=\"0\" hspace=\"0\" />\n" \
" <center>\n" \
"   <br /><h2><imho_banner /></h2>\n" \
"   <imho_main nogtext=\"\" />\n" \
" </center>\n" \
"  <hr /><imho_about />\n" \
" </body>\n" \
"</else>\n" \
"\n" \
"</html>\n" \
"\n"
// END DEFAULTLAYOUT

#endif // __DEFAULTLAYOUT_H
/*                                                                             
 * Local Variables:                                                            
 * c-basic-offset: 2                                                           
 * End:                                                                        
 *                                                                             
 * vim: softtabstop=2 tabstop=2 expandtab autoindent formatoptions=croqlt smartindent cindent shiftwidth=2
 */


Generated by  Doxygen 1.6.0   Back to index