imports system.io
imports system.web
imports system.net
imports system.xml
imports system.text
imports system.data
imports system.web.ui
imports system.datetime
imports system.data.oledb
imports system.web.security
imports system.configuration
imports system.web.ui.webcontrols
imports system.web.ui.htmlcontrols
namespace xxfaxy
public class zc_list
'表格颜色 table_color
public shared table_color as string="#AACBEE"
'表格宽度 table_width
public shared table_width as string="300px"
'栏目背景图片 column_background_image
public shared column_background_image as string="images/bg.png"
'栏目高度 column_height
public shared column_height as string="30px"
'栏目背景颜色 column_background_color
public shared column_background_color as string="#AACBEE"
'图标宽度 icon_width
public shared icon_width as string="81"
'栏目图标 column_icon
public shared column_icon as string="images/1.gif"
'图标高度 icon_height
public shared icon_height as string="44"
'标题文字一颜色 title_one_color
public shared title_one_color as string="red"
'标题文字二颜色 title_two_color
public shared title_two_color as string="blue"
'时间文字颜色 time_text_color
public shared time_text_color as string="red"
'栏目文字大小 column_text_size
public shared column_text_size as string="15px"
'栏目文字颜色 column_text_color
public shared column_text_color as string="black"
'栏目文字链接 column_text_link
public shared column_text_link as string="list.aspx?id=1"
'栏目图标说明 column_icon_alt
public shared column_icon_alt as string="ASP"
'标题文字大小 title_text_size
public shared title_text_size as string="13px"
'标题文字颜色 title_text_color
public shared title_text_color as string="black"
'时间文字大小 time_text_size
public shared time_text_size as string="13px"
'标题背景颜色 title_background_color
public shared title_background_color as string="white"
'文字行高 text_line_height
public shared text_line_height as string="25px"
'显示记录数 show_count
public shared show_count as string="10"
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
shared function list_table() as string
dim temp_string as string=""
temp_string=temp_string+"<table style={border-collapse:collapse;border:1px solid "&table_color&";width:"&table_width&";}>"
temp_string=temp_string+"<!--第一行开始-->"
temp_string=temp_string+"<tr style={background-image:url("&column_background_image&");height:"&column_height&";background-color:"&column_background_color&";}>"
temp_string=temp_string+"<td colspan=2 style={padding-left:5px;font-size:"&column_text_size&";color:"&column_text_color&";}>"
temp_string=temp_string+"<a href="&column_text_link&" title=查看更多>栏目名称</a>"
temp_string=temp_string+"</td>"
temp_string=temp_string+"</tr>"
temp_string=temp_string+"<!--第一行结束-->"
temp_string=temp_string+"<!--第二行开始-->"
temp_string=temp_string+"<tr>"
temp_string=temp_string+"<td style={borde-right:none;border-bottom:none;padding-left:5px;padding-top:5px;vertical-align:top;width:"&(icon_width+5)&";}>"
temp_string=temp_string+"<img src="&column_icon&" width="&icon_width&" height="&icon_height&" alt="&column_icon_alt&">"
temp_string=temp_string+"</td>"
temp_string=temp_string+"<td style={border-left:none;border-bottom:none;padding-left:5px;padding-top:5px;text-align:left;vertical-align:top;width:"&(table_width-icon_width-5)&";}>"
temp_string=temp_string+"<ul style={margin-left:0px;margin-bottom:0px;padding-left:0px;}>"
temp_string=temp_string+"<li style={list-style-type:none;line-height:"&text_line_height&";color:"&title_one_color&";}>"
temp_string=temp_string+"文字一"
temp_string=temp_string+"</li>"
temp_string=temp_string+"<li style={list-style-type:none;line-height:"&text_line_height&";color:"&title_two_color&";}>"
temp_string=temp_string+"文字二"
temp_string=temp_string+"</li>"
temp_string=temp_string+"</ul>"
temp_string=temp_string+"</td>"
temp_string=temp_string+"</tr>"
temp_string=temp_string+"<!--第二行结束-->"
temp_string=temp_string+"<!--第三行开始-->"
temp_string=temp_string+"<tr bgcolor="&title_background_color&">"
temp_string=temp_string+"<td style={border-right:none;border-top:none;padding-left:5px;text-align:left} colspan=2>"
temp_string=temp_string+"<table width=100%>"
temp_string=temp_string+"<tr>"
temp_string=temp_string+"<td>"
temp_string=temp_string+"<ul style={margin-left:0px;margin-bottom:0px;padding-left:0px;}>"
temp_string=temp_string+"<li style={list-style-type:none;line-height:"&text_line_height&";font-size:"&title_text_size&";color:"&title_text_color&";}>"
temp_string=temp_string+"标题"
temp_string=temp_string+"</li>"
temp_string=temp_string+"</ul>"
temp_string=temp_string+"</td>"
temp_string=temp_string+"<td align=right>"
temp_string=temp_string+"<ul>"
temp_string=temp_string+"<li style={list-style-type:none;line-height:"&text_line_height&";color:"&time_text_color&";font-size:"&time_text_size&";}>"
temp_string=temp_string+"10-08"
temp_string=temp_string+"</li>"
temp_string=temp_string+"</ul>"
temp_string=temp_string+"</td>"
temp_string=temp_string+"</tr>"
temp_string=temp_string+"</table>"
temp_string=temp_string+"</td>"
temp_string=temp_string+"</tr>"
temp_string=temp_string+"<!--第三行结束-->"
temp_string=temp_string+"</table>"
return temp_string
end function
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
end class
end namespace说&与字符串不匹配,我记得&就是用来连接字符串的啊