<apex:page controller="ImportDocTController" action="{!init}" docType="html-5.0" >
<body>
<table>
    <apex:form >
    <!-- 测试样式第一个表格，可忽略 -->
        <apex:pageBlock >
            <apex:pageBlockTable value="{!testList}" var="t">
                <apex:column value="{!t.Id}" ></apex:column>
                <apex:column value="{!t.Name}" ></apex:column>
                <apex:column value="{!t.code__c}" colspan="{!t.Num__c}" ></apex:column>
                <apex:column value="{!t.Name}" ></apex:column>
                <apex:column value="{!t.Name}" ></apex:column>
            </apex:pageBlockTable>
        </apex:pageBlock>
    <!-- 测试样式第二个表格，可忽略 -->
        <apex:pageBlock >
        <table border="1">
            <apex:repeat value="{!testList}" var="m">
                <tr>
                    <td>{!m.Id}</td>
                    <td>{!m.Name}</td>
                    <td>{!IF(2>1,m.code__c,"2")}</td>
                    <td >{!m.code__c}</td>
                    <apex:variable var="type" value="" rendered="{!IF(m.Num__c =null ,false,true)}"> 
                        <td rowspan="{!m.Num__c}">{!m.Num__c}</td>
                    </apex:variable>
                    
                </tr>
            </apex:repeat>
        </table>
        <br/>
    <!-- 测试样式第三个表格，成品 -->
        <table border="1">
            <apex:repeat value="{!newinitList}" var="i">
                <tr>
                    <td>{!i.Id}</td>
                    <td>{!i.Name}</td>
                    <td>{!IF(2>1,i.code,"2")}</td>
                    <td >{!i.code}</td>
                    <td >{!i.count}</td>
                    <apex:variable var="type" value="" rendered="{!IF(i.count =null ,false,true)}"> 
                        <td rowspan="{!i.count}">合并</td>
                    </apex:variable>
                    
                </tr>
            </apex:repeat>
        </table>
        </apex:pageBlock>
    </apex:form>
</table>
</body>
</apex:page>