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

WEB邮件程序

开发平台:

PHP

  1. <?php
  2. /* title row */
  3. $template_obj->Register(
  4.    'title_row_start',
  5.    '<tr class="title" bgcolor="' .
  6.       $template_obj->GetValue( 'title_bgcolor' ) .
  7.    '">'
  8. );
  9. $template_obj->Register( 'title_row_end',       '</tr>' );
  10. $template_obj->Register(
  11.    'title_cell_start',
  12.    '<td class="title" bgcolor="' .
  13.       $template_obj->GetValue( 'title_bgcolor' ) .
  14.    '"><b>'
  15. );
  16. $template_obj->Register( 'title_cell_end',      '</b></td>' );
  17. /* navigation row */
  18. $template_obj->Register(
  19.    'nav_row_start',
  20.    '<tr class="nav" bgcolor="' .
  21.       $template_obj->GetValue( 'nav_bgcolor' ) .
  22.    '">'
  23. );
  24. $template_obj->Register( 'nav_row_end',         '</tr>');
  25. $template_obj->Register(
  26.    'nav_cell_start',
  27.    '<td class="nav" bgcolor="' .
  28.       $template_obj->GetValue( 'nav_bgcolor' ) .
  29.    '">'
  30. );
  31. $template_obj->Register( 'nav_cell_end',        '</td>' );
  32. /* default row */
  33. $template_obj->Register(
  34.    'default_row_start',
  35.    '<tr class="default" bgcolor="' .
  36.       $template_obj->GetValue( 'default_bgcolor' ) .
  37.    '">'
  38. );
  39. $template_obj->Register( 'default_row_end',     '</tr>' );
  40. $template_obj->Register(
  41.    'default_cell_start',
  42.    '<td class="default" bgcolor="' .
  43.       $template_obj->GetValue( 'default_bgcolor' ) .
  44.    '">'
  45. );
  46. $template_obj->Register( 'default_cell_end',    '</td>' );
  47. /* Mail - new */
  48. $template_obj->Register( 'mail_new_row_start',  '<tr class="mailnew">' );
  49. $template_obj->Register( 'mail_new_row_end',    '</tr>' );
  50. $template_obj->Register( 'mail_new_cell_start', '<td class="mailnew">' );
  51. $template_obj->Register( 'mail_new_cell_end',   '</td>' );
  52. /* Mail - deleted */
  53. $template_obj->Register( 'mail_deleted_row_start',    '<tr class="maildeleted">' );
  54. $template_obj->Register( 'mail_deleted_row_end',      '</tr>' );
  55. $template_obj->Register( 'mail_deleted_cell_start',   '<td class="maildeleted">' );
  56. $template_obj->Register( 'mail_deleted_cell_end',     '</td>' );
  57. /* Mail - read */
  58. $template_obj->Register( 'mail_read_row_start',       '<tr class="mailread">' );
  59. $template_obj->Register( 'mail_read_row_end',         '</tr>' );
  60. $template_obj->Register( 'mail_read_cell_start',      '<td class="mailread">' );
  61. $template_obj->Register( 'mail_read_cell_end',        '</td>' );
  62. /*
  63. Reregister the bgcolor element to class="XYZ"
  64. */
  65. $content_bgcolors = Array(
  66.  'content_bgcolor'         => 'content',
  67.  'title_bgcolor'           => 'title',
  68.  'nav_bgcolor'             => 'nav',
  69.  'default_bgcolor'         => 'default',
  70.  'mail_new_bgcolor'        => 'mailnew',
  71.  'mail_deleted_bgcolor'    => 'maildeleted',
  72.  'mail_read_bgcolor'       => 'mailread'
  73. );
  74. reset( $content_bgcolors );
  75. while( list( $current_bgcolor, $class_value ) = each( $content_bgcolors ) ) {
  76.    $template_obj->Register( 
  77.       $current_bgcolor,
  78.       'class="' . $class_value . '"'
  79.    );
  80. }
  81. ?>