no_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 bgcolor="' .
  6.       $template_obj->GetValue( 'title_bgcolor' ) .
  7.    '">'
  8. );
  9. $template_obj->Register(
  10.    'title_row_end',
  11.    '</tr>'
  12. );
  13. $template_obj->Register(
  14.    'title_cell_start',
  15.    '<td bgcolor="' .
  16.       $template_obj->GetValue( 'title_bgcolor' ) .
  17.    '">' .
  18.       $template_obj->GetValue( 'title_font' ) .
  19.    '<b>'
  20. );
  21. $template_obj->Register(
  22.    'title_cell_end',
  23.    '</b></font></td>'
  24. );
  25. /* navigation row */
  26. $template_obj->Register( 
  27.    'nav_row_start',
  28.    '<tr bgcolor="' . 
  29.       $template_obj->GetValue( 'nav_bgcolor' ) .
  30.    '">'
  31. );
  32. $template_obj->Register(
  33.    'nav_row_end',
  34.    '</tr>'
  35. );
  36. $template_obj->Register(
  37.    'nav_cell_start',
  38.    '<td bgcolor="' .
  39.       $template_obj->GetValue( 'nav_bgcolor' ) .
  40.    '">' .
  41.       $template_obj->GetValue( 'nav_font' )
  42. );
  43. $template_obj->Register(
  44.    'nav_cell_end',
  45.    '</font></td>'
  46. );
  47. /* default row */
  48. $template_obj->Register( 
  49.    'default_row_start',
  50.    '<tr bgcolor="' .
  51.       $template_obj->GetValue( 'default_bgcolor' ) .
  52.    '">'
  53. );
  54. $template_obj->Register(
  55.    'default_row_end',
  56.    '</tr>'
  57. );
  58. $template_obj->Register(
  59.    'default_cell_start',
  60.    '<td bgcolor="' .
  61.       $template_obj->GetValue( 'default_bgcolor' ) .
  62.    '">' .
  63.       $template_obj->GetValue( 'default_font' )
  64. );
  65. $template_obj->Register(
  66.    'default_cell_end',
  67.    '</font></td>'
  68. );
  69. /* Mail - new */
  70. $template_obj->Register( 
  71.    'mail_new_row_start',
  72.    '<tr bgcolor="' .
  73.       $template_obj->GetValue( 'mail_new_bgcolor' ) .
  74.    '">'
  75. );
  76. $template_obj->Register(
  77.    'mail_new_row_end',
  78.    '</tr>'
  79. );
  80. $template_obj->Register(
  81.    'mail_new_cell_start',
  82.    '<td bgcolor="' .
  83.       $template_obj->GetValue( 'mail_new_bgcolor' ) .
  84.    '">' .
  85.       $template_obj->GetValue( 'mail_new_font' )
  86. );
  87. $template_obj->Register(
  88.    'mail_new_cell_end',
  89.    '</font></td>'
  90. );
  91. /* Mail - deleted */
  92. $template_obj->Register( 
  93.    'mail_deleted_row_start',
  94.    '<tr bgcolor="' .
  95.       $template_obj->GetValue( 'mail_deleted_bgcolor' ) .
  96.    '">'
  97. );
  98. $template_obj->Register(
  99.    'mail_deleted_row_end',
  100.    '</tr>'
  101. );
  102. $template_obj->Register(
  103.    'mail_deleted_cell_start',
  104.    '<td bgcolor="' .
  105.       $template_obj->GetValue( 'mail_deleted_bgcolor' ) .
  106.    '">' .
  107.       $template_obj->GetValue( 'mail_deleted_font' )
  108. );
  109. $template_obj->Register(
  110.    'mail_deleted_cell_end',
  111.    '</font></td>'
  112. );
  113. /* Mail - read */
  114. $template_obj->Register( 
  115.    'mail_read_row_start',
  116.    '<tr bgcolor="' .
  117.       $template_obj->GetValue( 'mail_read_bgcolor' ) .
  118.    '">'
  119. );
  120. $template_obj->Register(
  121.    'mail_read_row_end',
  122.    '</tr>'
  123. );
  124. $template_obj->Register(
  125.    'mail_read_cell_start',
  126.    '<td bgcolor="' .
  127.       $template_obj->GetValue( 'mail_read_bgcolor' ) .
  128.    '">' .
  129.       $template_obj->GetValue( 'mail_read_font' )
  130. );
  131. $template_obj->Register(
  132.    'mail_read_cell_end',
  133.    '</font></td>'
  134. );
  135. /*
  136. Reregister the bgcolor element to bgcolor="#XXXXXX"
  137. */
  138. $content_bgcolors = Array(
  139.  'content_bgcolor',
  140.  'title_bgcolor',
  141.  'nav_bgcolor',
  142.  'default_bgcolor',
  143.  'mail_new_bgcolor',
  144.  'mail_deleted_bgcolor',
  145.  'mail_read_bgcolor'
  146. );
  147. for( $x = 0; $x < count( $content_bgcolors ); $x++ ) {
  148.    $current_bgcolor = $content_bgcolors[ $i ];
  149.    $template_obj->Register( 
  150.       $current_bgcolor,
  151.       'bgcolor="' . $template_obj->Get( $current_bgcolor ) . '"'
  152.    );
  153. }
  154. ?>