Wednesday, 17 October 2012

ZK List Item CSS with sclass and Default ZK CSS for List Item

<?page title="Practice List" contentType="text/html;charset=UTF-8"?>
<zk>

<style>
.mylist .z-listbox { background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #CFCFCF; overflow: hidden; }

.mylist .z-listitem-seld { background-image: none; }

/* Selected rows with the mouse hovering over them */ .mylist
.overseld, .mylist.overseld, .mylist .z-listitem-over,.mylist
.z-listitem-over-seld { background-image: none;
background-color: transparent; }

/* Odd rows in a listbox */ .mylist .odd .mylist .gc,.mylist
.odd,.mylist .z-listbox-odd,.mylist .z-grid-odd .mylist
.z-row-inner,.mylist .z-grid-odd { background: #F4FAFD none
repeat scroll 0 0; }


/* Header and Footer Font and Height */ .mylist
.z-listfooter-cnt, .mylist .z-listheader-cnt { border: 0 none;
color: black; font-family: "Tahoma", verdana, arial, sans-serif;
font-size: 11px; margin: 0; height: 13px; }

/* Cell Height and Font */ .mylist .z-listfooter-cnt, .mylist
.z-listcell-cnt,.mylist .z-listheader-cnt { font-size: 11px;
font-family: "Tahoma", verdana, arial, sans-serif; height: 13px;
}

.mylist .z-listbox-body .z-listcell,.mylist.z-listbox-footer
.z-listfooter { cursor: default; }

.mylist .z-listheader-sort-img { float: left; font-size: 0;
left: 90%; margin-left: auto; margin-right: auto; position:
absolute; }

.mylist .z-listbox-header tr.z-listhead, div.z-listbox-header
tr.z-auxhead {

background-image: none; background-color: #E0F7BA; color: white;
}


.mylist .z-listbox-header th.z-listheader-sort-over {
background-image: none; }
</style>

<window title="Practice List" border="normal" >
<separator />
List Box with sclass CSS Customization
<separator />
<listbox id="box1" mold="paging" pageSize="5" sclass="mylist">
<listhead sizable="true">
<listheader label="Practice Name" sort="auto" />
<listheader label="City" sort="auto" />
<listheader label="State" sort="auto" />
<listheader label="Zip Code" sort="auto" />
</listhead>
<listitem>
<listcell label="Adult Medical Day Care" />
<listcell label="Cumberland" />
<listcell label="Maryland" />
<listcell label="21502" />
</listitem>
<listitem>
<listcell label="Baptist Medical Center" />
<listcell label="Kansas" />
<listcell label="Missouri" />
<listcell label="64131" />
</listitem>
<listitem>
<listcell label="California Medical Facility" />
<listcell label="Vacaville" />
<listcell label="California" />
<listcell label="95696" />
</listitem>
<listitem>
<listcell label="Garden Park Medical Cente" />
<listcell label="Gulfport" />
<listcell label="Mississipp" />
<listcell label="395033085" />
</listitem>
<listitem>
<listcell label="Albion Health Center" />
<listcell label="Albion" />
<listcell label="New york" />
<listcell label="14420" />
</listitem>
<listitem>
<listcell label="Beacon Community Health Center" />
<listcell label="Beacon" />
<listcell label="New york" />
<listcell label="12508" />
</listitem>
</listbox>

<separator />
List Box with default ZK CSS
<separator />

<listbox id="box2" mold="paging" pageSize="5">
<listhead sizable="true">
<listheader label="Practice Name" sort="auto" />
<listheader label="City" sort="auto" />
<listheader label="State" sort="auto" />
<listheader label="Zip Code" sort="auto" />
</listhead>
<listitem>
<listcell label="Adult Medical Day Care" />
<listcell label="Cumberland" />
<listcell label="Maryland" />
<listcell label="21502" />
</listitem>
<listitem>
<listcell label="Baptist Medical Center" />
<listcell label="Kansas" />
<listcell label="Missouri" />
<listcell label="64131" />
</listitem>
<listitem>
<listcell label="California Medical Facility" />
<listcell label="Vacaville" />
<listcell label="California" />
<listcell label="95696" />
</listitem>
<listitem>
<listcell label="Garden Park Medical Cente" />
<listcell label="Gulfport" />
<listcell label="Mississipp" />
<listcell label="395033085" />
</listitem>
<listitem>
<listcell label="Albion Health Center" />
<listcell label="Albion" />
<listcell label="New york" />
<listcell label="14420" />
</listitem>
<listitem>
<listcell label="Beacon Community Health Center" />
<listcell label="Beacon" />
<listcell label="New york" />
<listcell label="12508" />
</listitem>
</listbox>


</window>
</zk>


Output :

image

1 comment:

  1. We are a third party technical support service. Avast Customer Support is here to help you out with the whole procedure to Download Avast Antivirus online, We not only fix your Avast Support related issues but will guide with how to get started with your new Avast product once it gets installed successfully. Call on our Toll Free no. 1 855 966 3855
    Gmail Customer service is a third party technical support service for Gmail users when they face any technical issue or error in their Gmail account. Our Gmail Customer Support team solves issues like forgot Gmail account password, Gmail configuration or Sync issues, recover deleted emails and many more. Toll Free number (800) 986-9271
    How you install or reinstall Office 365 or Office 2016 depends on whether your Office product is part of an Office for home or Office for business plan. If you're not sure what you have, see what office com setup products are included in each plan and then follow the steps for your product. The steps below also apply if you're installing a single, stand-alone Office application such as Access 2016 or Visio 2016. Need Help with office setup Enter Product Key? Call 1-800-000-0000 Toll Free
    Norton Tech Support is a third party service provider and not in any way associated with Norton or any of its partner companies. We offer support for Norton products and sell subscription based additional warranty on computer and other peripheral devices. Call our Toll Free number 1 855 966 3855
    Other Services
    Norton Toll Free , Office-Setup , office.com/setup.

    ReplyDelete