Requirement Constraints

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 29 October 2012

ZK Search Text Box

Posted on 17:54 by Unknown

Search1



Search2

   1: <?page title="Search" contentType="text/html;charset=UTF-8"?>
   2: <zk>
   3:     <style src="/Search1.css" />
   4:     <window title="Search" border="normal">
   5:         <box orient="horizontal" sclass="searchform">
   6:             <textbox sclass="searchfield" /> <button label="Ok" mold="trendy"      />
   7:         </box>
   8:     </window>
   9: </zk>
Search1.css

   1: .searchform {
   2:     display: inline-block;
   3:     zoom: 1; /* ie7 hack for display:inline-block */
   4:     *display: inline;
   5:     border: solid 1px #d2d2d2;
   6:     padding: 3px 5px;
   7:     -webkit-border-radius: 2em;
   8:     -moz-border-radius: 2em;
   9:     border-radius: 2em;
  10:     -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, .1);
  11:     -moz-box-shadow: 0 1px 0px rgba(0, 0, 0, .1);
  12:     box-shadow: 0 1px 0px rgba(0, 0, 0, .1);
  13:     background: #f1f1f1;
  14:     background: -webkit-gradient(linear, left top, left bottom, from(#fff),
  15:         to(#ededed) );
  16:     background: -moz-linear-gradient(top, #fff, #ededed);
  17:     filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',
  18:         endColorstr='#ededed' ); /* ie7 */
  19:     -ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',
  20:         endColorstr='#ededed' ); /* ie8 */
  21: }
  22:  
  23: .searchform .searchfield {
  24:     background: #fff;
  25:     padding: 6px 6px 6px 8px;
  26:     width: 202px;
  27:     border: solid 1px #bcbbbb;
  28:     outline: none;
  29:     -webkit-border-radius: 2em;
  30:     -moz-border-radius: 2em;
  31:     border-radius: 2em;
  32:     -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2);
  33:     -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2);
  34:     box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2);
  35: }
  36:  
  37: .z-button .z-button-tl,.z-button .z-button-tr {
  38:     background-image: none;
  39:     -moz-border-radius: 20px;
  40:     -webkit-border-radius: 20px;
  41:     -khtml-border-radius: 20px;
  42:     border-radius: 20px
  43: }
  44:  
  45: .z-button .z-button-tm,.z-button .z-button-cl,.z-button .z-button-cr,.z-button .z-button-bm,.z-button .z-button-bl,.z-button .z-button-br
  46:     {
  47:     background-image: none;
  48: }
  49:  
  50: .z-button .z-button-cm {
  51:     background-image: none;
  52:     background-color: gold;
  53:     border-radius: 20px background-image:  none;
  54:     border-radius: 20px 20px 20px 20px;
  55:     height: 27px;
  56:     top: 20px;
  57:     width: 27px;
  58: }
  59:  
  60: .z-button .z-button-tl,.z-button .z-button-tr {
  61:     height: 0;
  62: }
Search2.zul

   1: <?page title="Search" contentType="text/html;charset=UTF-8"?>
   2: <zk>
   3:     <style src="/Search2.css" />
   4:     <window title="Search" border="normal">
   5:         <box orient="horizontal" sclass="searchform">
   6:             <textbox sclass="searchfield"  placeholder="Please type some text" /> <button label="Search" mold="trendy"      />
   7:         </box>
   8:     </window>
   9: </zk>
Search2.CSS

   1: .searchform {
   2:     background: #eaf8fc;
   3:     background-image: -moz-linear-gradient(#fff, #d4e8ec);
   4:     background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #d4e8ec),
   5:         color-stop(1, #fff) );
   6:     -moz-border-radius: 35px;
   7:     border-radius: 35px;
   8:     border-width: 1px;
   9:     border-style: solid;
  10:     border-color: #c4d9df #a4c3ca #83afb7;
  11:     width: 500px;
  12:     height: 35px;
  13:     padding: 10px;
  14:     margin: 100px auto 50px;
  15:     overflow: hidden; /* Clear floats */
  16: }
  17:  
  18: .searchform .searchfield {
  19:     padding: 5px 9px;
  20:     height: 23px;
  21:     width: 380px;
  22:     border: 1px solid #a4c3ca;
  23:     font: normal 13px 'trebuchet MS', arial, helvetica;
  24:     background: #f1f1f1;
  25:     -moz-border-radius: 50px 3px 3px 50px;
  26:     border-radius: 50px 3px 3px 50px;
  27:     -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) inset, 0 1px 0
  28:         rgba(255, 255, 255, 1);
  29:     -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) inset, 0 1px 0
  30:         rgba(255, 255, 255, 1);
  31:     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) inset, 0 1px 0
  32:         rgba(255, 255, 255, 1);
  33: }
  34:  
  35: .z-button .z-button-tm,
  36: .z-button .z-button-cl,
  37: .z-button .z-button-cr,
  38: .z-button .z-button-bm,
  39: .z-button .z-button-bl,
  40: .z-button .z-button-br,
  41: .z-button .z-button-tl,
  42: .z-button .z-button-tr
  43:     {
  44:     background-image: none;
  45: }
  46:  
  47:  
  48:  
  49: .z-button .z-button-cm {
  50:     background-image: none;
  51:     background: #6cbb6b;
  52:     background-image: -moz-linear-gradient(#95d788, #6cbb6b);
  53:     background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #6cbb6b),
  54:         color-stop(1, #95d788) );
  55:     -moz-border-radius: 3px 50px 50px 3px;
  56:     border-radius: 3px 50px 50px 3px;
  57:     border-width: 1px;
  58:     border-style: solid;
  59:     border-color: #7eba7c #578e57 #447d43;
  60:     -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 0
  61:         rgba(255, 255, 255, 0.3) inset;
  62:     -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 0
  63:         rgba(255, 255, 255, 0.3) inset;
  64:     box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3)
  65:         inset;
  66:     height: 26px;
  67:     margin: -5px 0 0 10px;
  68:     padding: 0;
  69:     width: 90px;
  70:     cursor: pointer;
  71:     font: bold 14px Arial, Helvetica;
  72:     color: #23441e;
  73:     text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  74:     float: left;
  75:     padding-top:7px;
  76: }
  77:  
  78: .z-button-over .z-button-cm {
  79:     background: #95d788;
  80:     background-image: -moz-linear-gradient(#6cbb6b, #95d788);
  81:     background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #95d788),
  82:         color-stop(1, #6cbb6b) );
  83: }
Email ThisBlogThis!Share to XShare to Facebook
Posted in ZK CSS | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • ZK Example for inline Editing with Add New and Delete
    I am quite impressed on this demo from ZK . But adding new record and delete existing record is missing as part of typical CRUD. So i thoug...
  • EDI 5010 Documentation 837 Professional - Loop 2010BB Payer Name
    2010BB Payer Name          In this loop, all the information will be taken from Insurance master screen. Take a look of our sample screen...
  • EDI 5010 Documentation–837 - BHT - Beginning of Hierarchical Transaction
    BHT – Beginning of Hierarchical Transaction Loop Seg ID Segment Name Format Length Ref# Req Value   BHT Beginning of Hier...
  • Hibernate Validator Example 2
    In this example, we will see some more validation constraints such as @email, @past, @length, etc. And also we will also define custom error...
  • ZK Passing Parameter between two files using MVVM–Part 1
    Overview This is the first series of articles about Passing parameter between two zul files using MVVM Design pattern .This article will fo...
  • MVVM Command annotation and Notify change example
    Here is an example, how to pass parameter on a zul through MVVM Command binding annotation. ZK URL http://books.zkoss.org/wiki/ZK%20Develo...
  • History of Present Illness
    HPI - One of the main component of Clinical History. What is an HPI ? The history of present illness (HPI) is a chronological description...
  • Patient Demographics
    Patient browse (search) is the key element for any EMR / PMS Software. In my past 15 years experience, i involved more than 5 times in desig...
  • ViewModel Class Java Annotation @Init, @NotifyChange, @Command
    In following sections we'll list all syntaxes that can be used in implementing a ViewModel and applying ZK bind annotation. The ZK binde...
  • Good Website Design Links
    Form Design Label Placement in Forms International Address Fields in Web Forms 40 Eye-Catching Registration Pages blog-comment-form-...

Categories

  • Billing Process
  • C Workbook
  • C++ Workbook
  • Eclipse Tips
  • EDI 5010
  • EMR Appointment Features
  • EMR Labs Stuff
  • EMR PMS Links
  • EMR Use cases
  • EMR Vital Sign
  • Good Website Design
  • Hibernate Criteria Queries
  • Hibernate Introduction
  • Hibernate Introduction Setup
  • Hibernate Mapping
  • Hibernate POC
  • Hibernate Validator
  • Hibernate–Java Environment setup
  • HPI
  • Java
  • Maven
  • MU Certification
  • NPI
  • PQRS
  • Practice Management System
  • Spring Security
  • Tech Links
  • Today Tech Stuff
  • zk
  • ZK Hibernate
  • ZK 5 Databinding
  • ZK Application
  • ZK Calling Another ZUL
  • ZK CheckBox
  • ZK CreateComponents
  • ZK CSS
  • ZK extended Components
  • ZK Foreach
  • ZK Forum Posts
  • ZK Framework
  • ZK Hibernate Setup
  • ZK ID Space
  • ZK Include
  • ZK Installation
  • ZK iReport
  • ZK Layout
  • ZK Listitem Pagination
  • ZK Message Box
  • ZK MVC
  • ZK MVC Combox Box
  • ZK MVC CRUD Examples
  • ZK MVC Listbox
  • ZK MVVM
  • ZK MVVM Combo
  • ZK MVVM CRUD
  • ZK MVVM ListBox
  • ZK Spring
  • ZK TextBox

Blog Archive

  • ►  2013 (105)
    • ►  December (3)
    • ►  September (7)
    • ►  August (13)
    • ►  July (1)
    • ►  June (11)
    • ►  May (3)
    • ►  April (14)
    • ►  March (19)
    • ►  February (21)
    • ►  January (13)
  • ▼  2012 (177)
    • ►  December (1)
    • ►  November (13)
    • ▼  October (19)
      • Form Fields Layout
      • EMR and PMS Links
      • ZK Search Text Box
      • ZK MVVM CRUD Without DB Connection - Part 6
      • ZK MVVM CRUD Without DB Connection
      • ZK MVVM CRUD Without DB Connection - Part 5
      • ZK Button CSS Customization
      • ZK Modal window CSS Customization
      • Button on Focus underline the text
      • ZK MVVM CRUD Without DB Connection - Part 4
      • ZK List Item CSS with sclass and Default ZK CSS fo...
      • ZK MVVM CRUD Without DB Connection - Part 2
      • ZK MVVM CRUD Without DB Connection - Part 3
      • ZK MVVM CRUD Without DB Connection - Part 1
      • Good Website Design Links
      • ZK Panel CSS Customization
      • History of Present Illness
      • EMR Use cases
      • Java Static Import
    • ►  September (24)
    • ►  August (26)
    • ►  July (6)
    • ►  June (37)
    • ►  May (30)
    • ►  April (16)
    • ►  March (1)
    • ►  January (4)
  • ►  2011 (5)
    • ►  December (1)
    • ►  November (1)
    • ►  July (1)
    • ►  June (1)
    • ►  April (1)
  • ►  2010 (1)
    • ►  September (1)
Powered by Blogger.

About Me

Unknown
View my complete profile