function do_html_header($auth_user, $title = '', $selected_account)
{
    // print an HTML header including cute logo :)
    global $table_width;
    //draw title bar
    ?>
  <html>
  <head>
    <title><?php 
    echo $title;
    ?>
</title>
    <style>
      h1 { font-family: 'Comic Sans MS',  sans-serif; font-size: 32; 
           font-weight: bold; color:  black; margin-bottom: 0}
      b { font-family: 'Arial', sans-serif; font-size: 13; 
          font-weight: bold; color: black }
      th { font-family: 'Comic Sans MS',  sans-serif; font-size: 18
           font-weight: bold; color:  black; }
      body, li, td { font-family: Arial, Helvetica, sans-serif; 
                     font-size: 12; margin = 5px }
      a { color: #000000 }
    </style>
  </head>
  <body>
  <table width = <?php 
    echo $table_width;
    ?>
 cellspacing = 0 cellpadding = 3 bgcolor = "#ff6600" border = 0>
  <tr bgcolor = "#ff6600">
  <td bgcolor = "#ff6600" width = 103><img src = "images/warm-mail.gif" 
                 width = 103 height = 45 alt ="" valign = middle></td>
  <td bgcolor = "#ff6600" width = <?php 
    echo $table_width - 110;
    ?>
><h1><?php 
    echo $title;
    ?>
</h1></td>
  <?php 
    // include the account select box only if the user has more than one account
    if (number_of_accounts($auth_user) > 1) {
        echo '<form target="index.php?action=open-mailbox" method=post>';
        echo '<td bgcolor = "#ff6600" align = right valign = middle>';
        display_account_select($auth_user, $selected_account);
        echo '</td>';
        echo '</form>';
    }
    ?>
  </tr>
  </table>
  <table width = <?php 
    echo $table_width;
    ?>
 cellpadding = 0 cellspacing = 0 border = 0>
  <tr><td>
<?php 
}
示例#2
0
function do_html_header($title = '', $auth_user = '', $selected_account = '')
{
    // print an HTML header including cute logo :)
    global $table_width;
    //draw title bar
    ?>

  <table width = <?php 
    echo $table_width;
    ?>
 cellspacing = 0 cellpadding = 3 bgcolor = "#ff6600" border = 0>
  <tr bgcolor = "#ff6600">
  <td bgcolor = "#ff6600" width = 103><img src = "<?php 
    echo base_url('images/webemail/warm-mail.gif');
    ?>
" 
                 width = 103 height = 45 alt ="" valign = "middle" /></td>
  <td bgcolor = "#ff6600" width = <?php 
    echo $table_width - 110;
    ?>
><h1><?php 
    echo $title;
    ?>
</h1></td>
  <?php 
    // include the account select box only if the user has more than one account
    if (number_of_accounts($auth_user) > 1) {
        echo '<form target="' . base_url('index.php/webemail?action=open-mailbox') . '" method="post">';
        echo '<td bgcolor = "#ff6600" align = "right" valign = "middle">';
        display_account_select($auth_user, $selected_account);
        echo '</td>';
        echo '</form>';
    }
    ?>
  </tr>
  </table>
  <table width = <?php 
    echo $table_width;
    ?>
 cellpadding = 0 cellspacing = 0 border = 0>
  <tr><td>
<?php 
}
示例#3
0
function do_html_header($auth_user = '', $title, $selected_account = '')
{
    ?>
    <html>
    <head>
        <title><?php 
    echo $title;
    ?>
</title>
    </head>
    <body>
    <h1><?php 
    echo $title;
    ?>
</h1>
    <?php 
    if (number_of_accounts($auth_user) > 1) {
        echo "<form action=\"index.php?action=open-mailbox\" method=\"post\">\n            <td bgcolor=\"#ff6600\" align=\"right\" valign=\"middle\">";
        display_account_select($auth_user, $selected_account);
        echo "</td>\n            </form>";
    }
}