字符串总结--写给自己看的
2010-05-08 09:29
483 查看
<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1073750139 0 0 159 0;}
@font-face
{font-family:"/@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
mso-pagination:none;
font-size:10.5pt;
mso-bidi-font-size:11.0pt;
font-family:Calibri;
mso-fareast-font-family:宋体;
mso-bidi-font-family:"Times New Roman";
mso-font-kerning:1.0pt;}
/* Page Definitions */
@page
{mso-page-border-surround-header:no;
mso-page-border-surround-footer:no;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:42.55pt;
mso-footer-margin:49.6pt;
mso-paper-source:0;
layout-grid:15.6pt;}
div.Section1
{page:Section1;}
-->
if
(strlen(
$rs2
[
'product_name'
])>
12
){
$books
=
$rs2
[product_name];
$bookname
= substr(
"
$books
"
,
0
,
8
).
"..."
;
}
else
{
$bookname
=
$rs2
[
'product_name'
];
}
$sql33
=
"select `id`,(case when length(`title`)>18 then
concat(left(`title`,9),'...') else `title` end) `title`
from `artic` where `sortid`=6"
;
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1073750139 0 0 159 0;}
@font-face
{font-family:"/@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
mso-pagination:none;
font-size:10.5pt;
mso-bidi-font-size:11.0pt;
font-family:Calibri;
mso-fareast-font-family:宋体;
mso-bidi-font-family:"Times New Roman";
mso-font-kerning:1.0pt;}
/* Page Definitions */
@page
{mso-page-border-surround-header:no;
mso-page-border-surround-footer:no;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:42.55pt;
mso-footer-margin:49.6pt;
mso-paper-source:0;
layout-grid:15.6pt;}
div.Section1
{page:Section1;}
-->
if
(strlen(
$rs2
[
'product_name'
])>
12
){
$books
=
$rs2
[product_name];
$bookname
= substr(
"
$books
"
,
0
,
8
).
"..."
;
}
else
{
$bookname
=
$rs2
[
'product_name'
];
}
$sql33
=
"select `id`,(case when length(`title`)>18 then
concat(left(`title`,9),'...') else `title` end) `title`
from `artic` where `sortid`=6"
;
相关文章推荐
- 写给自己看的考试总结17.10.27
- 黑马程序员-自己总结的java学习笔记(3)java字符串对象。
- 写给自己,迟来的2017总结
- 工作起航 ——写给即将再次步入社会的自己暨研究生三年总结
- 写给自己的工作总结
- 写给自己和程序员的一些话(12年末-13年初总结)
- 我的研究之路能走多远?--对近日心境变化的总结,写给自己
- 写给自己的2016年总结
- 工作起航 ——写给即将再次步入社会的自己暨研究生三年总结
- 使用GIT管理自己的源代码图文教程(写给自己使用总结)(zt)
- 写给自己的工作总结——代码规范
- c总结2 ---自己实现字符串的拷贝(指针学习1)
- 毕业俩个月的总结---------------------写给自己
- 写给自己的年总结和下年计划
- 字符串中的字串问题,两种算法了解。以及自己这两天看到的些东西的总结
- 写给自己的wpf 总结,在wpf中,画图的时候,方法总结一二
- 2014年总结(写给自己,重要)
- 写给自己(学习编程一学期的总结)
- 工作起航 ——写给即将再次步入社会的自己暨研究生三年总结
- 2012写给自己的年度总结