content.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:2k
源码类别:

WEB邮件程序

开发平台:

PHP

  1. <?php
  2. if ( $form_mode == PIMP_MAIL_PREFERENCES ) {
  3.    $form_mode = PIMP_MAIL_PREF_SERVER;
  4. }
  5. $url_util = new UrlObject();
  6. $server_pref_url = $url_util->PostUrl(
  7.    $default->base_url,
  8.    Array(
  9.       'session_id'         => $session_id,
  10.       'form_mode'          => PIMP_MAIL_PREF_SERVER
  11.    )
  12. );
  13. $sig_pref_url     = $url_util->PostUrl(
  14.    $default->base_url,
  15.    Array(
  16.       'session_id'         => $session_id,
  17.       'form_mode'          => PIMP_MAIL_PREF_SIG
  18.    )
  19. );
  20. echo $template_obj->GetValue( 'content_table_start' );
  21. ?>
  22.       <tr <?php echo $template_obj->GetValue( 'nav_bgcolor' ); ?>>
  23.          <td colspan="2">
  24.          <?php echo $template_obj->GetValue( 'nav_font' ); ?>
  25.          <b>Mail Preferences</b>
  26.          </td>
  27.       </tr>
  28.       <tr <?php echo $template_obj->GetValue( 'nav_bgcolor' ); ?>>
  29.          <?php if ( $form_mode == PIMP_MAIL_PREF_SERVER ) { ?>
  30.          <td <?php echo $template_obj->GetValue( 'title_bgcolor' ); ?>>
  31.          <?php echo $template_obj->GetValue( 'title_font' ); ?>
  32.          <b>Server Preferences</b>
  33.          </td>
  34.          <?php } else { ?>
  35.          <td>
  36.          <?php echo $template_obj->GetValue( 'nav_font' ); ?>
  37. <b><A Href="<?php echo $server_pref_url; ?>">Server Preferences</a></b>
  38.          </td>
  39.          <?php } ?>
  40.          <?php if ( $form_mode == PIMP_MAIL_PREF_SIG ) { ?>
  41.          <td <?php echo $template_obj->GetValue( 'title_bgcolor' ); ?>>
  42.          <?php echo $template_obj->GetValue( 'title_font' ); ?>
  43.          <b>Signature</b>
  44.          </td>
  45.          <?php } else { ?>
  46.          <td>
  47.          <?php echo $template_obj->GetValue( 'nav_font' ); ?>
  48. <b><A Href="<?php echo( $sig_pref_url ); ?>">Signature</a></b>
  49.          </td>
  50.          <?php } ?>
  51.       </tr>
  52.    <?php
  53.    switch( $form_mode ) {
  54.       case PIMP_MAIL_PREF_SERVER:
  55.          include( './pimp/templates/preferences/server.inc' );
  56.          break;
  57.       case PIMP_MAIL_PREF_SIG:
  58.          include( './pimp/templates/preferences/signature.inc' );
  59.          break;
  60.    }
  61.    ?>
  62.    </table>
  63.    </td></tr>
  64. </table>