0

how to make a space between two table

asked 2012-05-30 10:10:30 +0800

manishashrm gravatar image manishashrm
195

Hi All,

i want to make a space between two table. please see the below code . bothe the table havinge the same header ID , Name, date,, i want some space between these two tables how can i?

<?page id="manageCust" title="Manage Customers" cacheable="false" 
      language="xul/html" zscriptLanguage="Java" contentType="text/html;charset=UTF-8"?>
      
<zk>
<style>


<![CDATA[  
<!-- .header {  -->
<!-- 	background-color: #165379;   -->
<!-- 	border-bottom: 1px solid #454545;  -->
<!-- 	color: red;  -->
<!-- 	padding-left: 7500px; -->
<!-- }  -->
.header-bar {  
	height: 12px 
	}
.header-title1 { 
	color: white; 
	font-family: Tahoma; 
	font-size: 22px;
font-weight: bold;
}  
.header-title2 { 
	color: #efefef; 
	font-family: Georgia; 
	font-size: 20px; 
	font-style: italic; } 
]]>
body{
background-image:url('post-276844-12834749164609[1].jpg');


}
</style>

<vlayout> 
<!-- 	<separator class="header" /> -->
	<label class="header-title1" value="Another ZK Blog" />
    <label class="header-title2" value="ZK, Open Source, Ajax, Java, Web developer, Driect RIA, High Speed Low Drag" />
    
</vlayout> 

      <zscript><![CDATA[
      import java.sql.*;
      import com.test.services.CustomerService;
      import org.zkoss.zk.ui.event.EventListener;
      import com.test.base.Customer;
      List myList;
      int custCount;
      public void submit() {
            CustomerService custSvc = new CustomerService();
            myList = custSvc.getAllCustomers();
      }
    
]]>
      </zscript>
     
            

            <vbox>
            <?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit"?>
                  <zscript><![CDATA[
      CustomerService custSvc = new CustomerService();
      myList = custSvc.getAllCustomers();
      custCount = custSvc.getCustomerCount();
      Customer cust = new Customer();
      public void showEdit(String custId) throws Exception {
          System.out.println("cust id"+custId);
          CustomerService custSvc = new CustomerService();
        cust = custSvc.getCustomer(custId);
       System.out.println("cust id is lookinggggg"+cust);
       System.out.println("cust id is lookinggggg name"+cust.getName());
       //customerId.value = cust.getId();
       customerName.value = cust.getName();
       customerName1.value = cust.getName();
       customerName2.value = cust.getName();
       customerName3.value = cust.getName();
     //  customerDate.value = cust.getDate();
      // customerDeleted.value = cust.getDeleted();
      

    } 
      
]]></zscript>
<toolbar>
<toolbarbutton label="Save"/>
<toolbarbutton label="Cancel"/>
</toolbar>
                  <listbox id="customerList" model="@{myList}" mold="paging" pageSize="3"
                        multiple="true" width="995px"
                        rows="${custCount}">
                        <listhead sizable="true">
                              <listheader label="Id" sort="auto(id)"/>
                              <listheader label="Name" sort="auto(name)"/>
                              <listheader label="Active Date" sort="auto(date)"/>
                              <listheader label="Deleted?" />
                        </listhead>
                        <listitem self="@{each=myList}" onClick="showEdit(self.getLabel())">
                              <listcell label="@{myList.id}" />
                              <listcell label="@{myList.name}" />
                              <listcell label="@{myList.date}" />
                              <listcell label="@{myList.deleted}"/>
                        </listitem>
                  </listbox>
            </vbox>

   
     <grid>
            <columns width="995px">
                  <column label="Id"/>
                  <column label="Name"/>
                  <column label="Date"/>
                  <column label="Deleted?"/>
            </columns>
            <rows>
      
                  <row >
                       <label id="customerName"  value="@{cust.name }"/>
                       <label id="customerName1"  value="@{cust.name }"/>
                       <label id="customerName2"  value="@{cust.name }"/>
                       <label id="customerName3"  value="@{cust.name }"/>
                  </row> 
                  
            </rows>
      </grid>
    
      
      
</zk>


delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-05-30 12:11:06 +0800

gganassin gravatar image gganassin flag of Luxembourg
540 6
http://www.hybris.com/

Hi!

need space?

<space height="5px" /> or <space width="5px" />

Giovanni

link publish delete flag offensive edit

answered 2012-05-31 08:34:02 +0800

manishashrm gravatar image manishashrm
195

Thanks a lot gganassin, Its the exactly same what i want.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-05-30 10:10:30 +0800

Seen: 186 times

Last updated: May 31 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More