Struts provides five tag libraries, namely: HTML, Beans, Logic, Template, and Nested.
Tag Library
Description
HTML tags
Used to create HTML input forms that interact with the Struts framework and other corresponding HTML tags
Bean Label
used when accessing JavaBeans and its properties, and defining a new bean
The defined tag of the ThinkPHP template engine is usedDetermine whether a constant has been defined.The defined tag of ThinkPHP is used to determine whether a constant has been defined. Its functionEquivalent to the defined () function in PHP. The usage of the defined label is as follows:
Define a constant in a module operation (such as Index/display) and out
This article mainly introduces the differences and comparison between the Thinkphp template Tag if and eq, and analyzes the differences between the Thinkphp template Tag if and eq for variable comparison, for more information about the Thinkphp template
ThinkPHP template IF label usage details. The IF tag of ThinkPHP can be used to define complex condition judgments, for example, ifcondition ($ nameeq1) OR ($ namegt100) value1elseifcondition $ nameeq2value2elsevalue3if note ThinkPHP IF Tag can
Used to define complex condition judgmentsFor example:
value1
value2
value3
Note: The condition attribut
Phpcms v9 template making common code collection
1. Intercept Call title length
{Str_cut ($r [title],36, ')}, followed by quotation marks to remove ....
2. Format time
Call format Time 2011-05-06 11:22:33
{Date (' y-m-d h:i:s ', $r [Inputtime])}
3. Multi-column Call Multi-Recommendation bit call
Call Requirements: The article range is 59 60 613 columns, and pushed to 27 and 282 recommended bits;Starting with the third article, 7 consecutive artic
Insert tagPlacement tag
Attribute
Description
Content
Defines the content to be inserted, such as a JSP file or an HTML file.
Direct
If this parameter is set to true, the content specified by the content attribute is directly displayed on the JSP instead of as a file containing the content.
Name
Name of the content t
"," typeid = '1 '"$ Vb = explode ('.', $ va [0]); // split the Tag Name and field name {t: global. title$ Rarr ['tagname'] = trim (strtolower ($ vb [0]), $ glarr1); // filter the prefix {t: Get the tag name array or golbal$ Rarr ['tagfield'] = strtr ($ vb [1], $ glarr2); //
[0]); Split label signature and field name {T:global.title
$rarr [' tagname ']=trim strtr (strtolower ($vb [0]), $glarr 1);/filter prefix {t: Get tag name array or Golbal
$rarr [' Tagfield ']=strtr ($vb [1], $glarr 2); Get Field name title
unset ($vs [0]); $vsstr =implode ('} ', $vs); Remove the prefix and return t
When using the template column of the gridview, you sometimes need to use the following:
ASP: templatefield
>
Itemtemplate
>
Input
ID
= Ttchk
Name
= Ttchk
Type
= Checkbox
Value
= "
Saleorderid ") %
>
"Onclick =" ontttablecheck (this) "runat =" server "/>
Itemtemplate
>
ASP: templatefield
>
when running the result, the system prompts that the se
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.