A custom field that uses the icon image to display the status of each item. effect:
Because this field is displayed based on a Status field in the list, the code of the field is as follows:
Field code
<Field type = "computed" readonly = "true" name = "iconstatus" displayname = "iconstatus" sortable = "false" filterable = "false" enablelookup = "false" sourceid =" http://schemas.microsoft.com/sharepoint/v3 "staticname =" listitemiconstatus "id =" {94010832-fab9-4bd5-98fb-b581_fa9618} ">
<Fieldrefs>
<Fieldref name = "status"/>
</Fieldrefs>
<Displaypattern>
<Switch>
<Expr>
<Column name = "status"/>
</Expr>
<Case value = "completed">
<HTML> <! [CDATA [ & nbsp;]> <! -- <Column name = "status" htmlencode = "true"/> -->
</Case>
<Case value = "cancel">
<HTML> <! [CDATA [ & nbsp;]> <! -- <Column name = "status" htmlencode = "true"/> -->
</Case>
<Case value = "issue">
<HTML> <! [CDATA [ & nbsp;]> <! -- <Column name = "status" htmlencode = "true"/> -->
</Case>
<Default>
<HTML> <! [CDATA [ & nbsp;]> <! -- <Column name = "status" htmlencode = "true"/> -->
</Default>
</Switch>
</Displaypattern>
</Field>
Upload it with the source code in the attachment
/Files/CECI/mossfields.rar
Http://iconset.codeplex.com/