no_style_sheets.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:3k
- <?php
- /* title row */
- $template_obj->Register(
- 'title_row_start',
- '<tr bgcolor="' .
- $template_obj->GetValue( 'title_bgcolor' ) .
- '">'
- );
- $template_obj->Register(
- 'title_row_end',
- '</tr>'
- );
- $template_obj->Register(
- 'title_cell_start',
- '<td bgcolor="' .
- $template_obj->GetValue( 'title_bgcolor' ) .
- '">' .
- $template_obj->GetValue( 'title_font' ) .
- '<b>'
- );
- $template_obj->Register(
- 'title_cell_end',
- '</b></font></td>'
- );
- /* navigation row */
- $template_obj->Register(
- 'nav_row_start',
- '<tr bgcolor="' .
- $template_obj->GetValue( 'nav_bgcolor' ) .
- '">'
- );
- $template_obj->Register(
- 'nav_row_end',
- '</tr>'
- );
- $template_obj->Register(
- 'nav_cell_start',
- '<td bgcolor="' .
- $template_obj->GetValue( 'nav_bgcolor' ) .
- '">' .
- $template_obj->GetValue( 'nav_font' )
- );
- $template_obj->Register(
- 'nav_cell_end',
- '</font></td>'
- );
- /* default row */
- $template_obj->Register(
- 'default_row_start',
- '<tr bgcolor="' .
- $template_obj->GetValue( 'default_bgcolor' ) .
- '">'
- );
- $template_obj->Register(
- 'default_row_end',
- '</tr>'
- );
- $template_obj->Register(
- 'default_cell_start',
- '<td bgcolor="' .
- $template_obj->GetValue( 'default_bgcolor' ) .
- '">' .
- $template_obj->GetValue( 'default_font' )
- );
- $template_obj->Register(
- 'default_cell_end',
- '</font></td>'
- );
- /* Mail - new */
- $template_obj->Register(
- 'mail_new_row_start',
- '<tr bgcolor="' .
- $template_obj->GetValue( 'mail_new_bgcolor' ) .
- '">'
- );
- $template_obj->Register(
- 'mail_new_row_end',
- '</tr>'
- );
- $template_obj->Register(
- 'mail_new_cell_start',
- '<td bgcolor="' .
- $template_obj->GetValue( 'mail_new_bgcolor' ) .
- '">' .
- $template_obj->GetValue( 'mail_new_font' )
- );
- $template_obj->Register(
- 'mail_new_cell_end',
- '</font></td>'
- );
- /* Mail - deleted */
- $template_obj->Register(
- 'mail_deleted_row_start',
- '<tr bgcolor="' .
- $template_obj->GetValue( 'mail_deleted_bgcolor' ) .
- '">'
- );
- $template_obj->Register(
- 'mail_deleted_row_end',
- '</tr>'
- );
- $template_obj->Register(
- 'mail_deleted_cell_start',
- '<td bgcolor="' .
- $template_obj->GetValue( 'mail_deleted_bgcolor' ) .
- '">' .
- $template_obj->GetValue( 'mail_deleted_font' )
- );
- $template_obj->Register(
- 'mail_deleted_cell_end',
- '</font></td>'
- );
- /* Mail - read */
- $template_obj->Register(
- 'mail_read_row_start',
- '<tr bgcolor="' .
- $template_obj->GetValue( 'mail_read_bgcolor' ) .
- '">'
- );
- $template_obj->Register(
- 'mail_read_row_end',
- '</tr>'
- );
- $template_obj->Register(
- 'mail_read_cell_start',
- '<td bgcolor="' .
- $template_obj->GetValue( 'mail_read_bgcolor' ) .
- '">' .
- $template_obj->GetValue( 'mail_read_font' )
- );
- $template_obj->Register(
- 'mail_read_cell_end',
- '</font></td>'
- );
- /*
- Reregister the bgcolor element to bgcolor="#XXXXXX"
- */
- $content_bgcolors = Array(
- 'content_bgcolor',
- 'title_bgcolor',
- 'nav_bgcolor',
- 'default_bgcolor',
- 'mail_new_bgcolor',
- 'mail_deleted_bgcolor',
- 'mail_read_bgcolor'
- );
- for( $x = 0; $x < count( $content_bgcolors ); $x++ ) {
- $current_bgcolor = $content_bgcolors[ $i ];
- $template_obj->Register(
- $current_bgcolor,
- 'bgcolor="' . $template_obj->Get( $current_bgcolor ) . '"'
- );
- }
- ?>