<table border="0" align="center" cellpadding="0" cellspacing="0" id="mian" ms-controller="marketingchannelorder">
  <tbody><tr>
   <!--leftNav-->
    <td width="198" height="450" valign="top" id="tdleft">
      <div id="left" ms-widget="leftMenu">        
    </div>
    <!--End leftNav-->
    </td>
    <td valign="top" id="right" class="addrightbg">   
    <div class="boxtip" id="boxtip"><h1> 渠道订单</h1>
         <p>来自于渠道代理商产生的订单。</p>
        <a href="#/Market/Channel" class="btn_back"></a>
    </div>
       <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="seacrhTable">
                    <tbody>
                        <tr>
                            <td width="460" class="searchico">
                                <div class="input-append" style="margin-bottom: 10px;">
                                    <input type="text" class="span4" ms-duplex="keyword" ms-attr-placeholder="lang.SearchKeyWordForContract" ms-enter="doSearch">
                                    <button class="add-on ibtsearch" type="button" id="btnsel" ms-click="doSearch" style="height: 28px; font-size: 12px; padding: 3px 12px;">
                                        {{lang.SearchBtn}}
                                    </button>
                                    <button class="add-on ibtsearch clearall" type="button" ms-click="clear" style="height: 28px; font-size: 12px; padding: 3px 12px;">
                                        {{lang.ShowAllBtn}}</button>
                                </div>
                            </td>
                            <td class="fgray">
                                <span style="float: left;">{{lang.SearchHistory}}</span><div class="hotlist">
                                    <span class="bindSearchHistory" ms-each-item="history">
                                        <a href="javascript:void(0)" ms-value="item" ms-click="historyClick">{{item}}&nbsp;&nbsp;</a>
                                    </span>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" id="seacrhField" class="seacrhField">
                    <tbody>
                       <!-- <tr class="quickword">
                            <td colspan="4">
                                <span id="issample">{{lang.ContractFormat}}</span>
                                <div style="display: inline;">
                                    <a href="javascript:void(0)" ms-click="itemClick" value="0" key="issample" class="selected">{{lang.Unlimited}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="1" key="issample">{{lang.SimpleFormat}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="2" key="issample">{{lang.FullFormat}}</a>
                                </div>
                            </td> 
                        </tr>-->
                        <tr class="quickword">
                            <td colspan="4">
                                <span id="signcontractdate">{{lang.SignDate}}</span>
                                <div style="display: inline;">
                                    <a href="javascript:void(0)" class="selected" ms-click="itemClick" value="0" key="signcontractdate">{{lang.Unlimited}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="1" key="signcontractdate">1{{lang.MonthSpan}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="3" key="signcontractdate">3{{lang.MonthSpan}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="6" key="signcontractdate">6{{lang.MonthSpan}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="9" key="signcontractdate">9{{lang.MonthSpan}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="12" key="signcontractdate">12{{lang.MonthSpan}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="24" key="signcontractdate">24{{lang.MonthSpan}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="36" key="signcontractdate">36{{lang.MonthSpan}}</a>
                                </div>
                            </td>
                        </tr>
                        <tr class="quickword">
                            <td colspan="4">
                                <span id="contractdate">{{lang.ContractLimit}}</span>
                                <div style="display: inline;">
                                    <a href="javascript:void(0)" class="selected" ms-click="itemClick" value="0" key="contractdate">{{lang.Unlimited}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="1" key="contractdate">1{{lang.MonthSpan}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="3" key="contractdate">3{{lang.MonthSpan}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="6" key="contractdate">6{{lang.MonthSpan}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="9" key="contractdate">9{{lang.MonthSpan}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="12" key="contractdate">12{{lang.MonthSpan}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="24" key="contractdate">24{{lang.MonthSpan}}</a>
                                    <a href="javascript:void(0)" ms-click="itemClick" value="36" key="contractdate">36{{lang.MonthSpan}}</a>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="seabox"><span class="first">{{lang.CurrSearchCondition}}</span>
                                <div style="display: inline;" ms-with="showItem">
                                    <span class="searchItem" ms-if="$val">{{$val}}<i><a href="javascript:void(0)" ms-click="remove"></a></i></span>
                                </div>
                                <span class="last" ms-if="has"><a href="javascript:void(0)" ms-click="clear">{{lang.ClearAll}}</a></span>
                            </td>
                        </tr>
                    </tbody>
                </table>
                </div>
               <!-- <div class="boxTitlenob">
                    <h2>合同列表</h2>
                </div>-->
                <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tableList" id="tableList">
                    <thead>
                        <tr class="dobtn" style="background-color: rgba(0, 0, 0, 0);">
                            <td colspan="10" bgcolor="#FFFFFF"> 
                                <a ms-if="DELETE" href="javascript:void(0)" class="doalldel" ms-click="doalldel">{{lang.BtachDelBtn}}</a>
                            </td>
                        </tr>
                        <tr class="head" style="background-color: rgba(0, 0, 0, 0);">
                            <td width="3%" align="center">
                                <input type="checkbox" id="cbo_tableList" class="checkAll">
                            </td>
                            <td width="8%" align="center">{{lang.Number}}
                            </td>
                            <td width="8%" align="center">{{lang.Type}}
                            </td>
                            <td width="30%" align="center">{{lang.ContractName}}
                            </td>
                            <td width="8%" align="center">{{lang.State}}
                            </td>
                            <td width="10%" align="center">{{lang.Amount}}
                            </td>
                            <td width="15%" align="center">代理商名称
                            </td>
                            <td width="5%" align="center">签约日期
                            </td>
                            <td width="10%" align="center">合同期限
                            </td>
                            <td width="6%" align="center">{{lang.Opts}}
                            </td>
                        </tr>
                    </thead>
                    <tbody ms-each-item="contractlist">
                        <tr style="background-color: rgb(255, 255, 255);">
                            <td align="center">
                                <input type="checkbox" name="checkbox" ms-value="item.Id">
                            </td>
                            <td align="left">{{item.ContractNum}}
                            </td>
                            <td align="left">{{item.ContractTypeDisplay}}
                            </td>
                            <td align="left">
                                <a ms-href="'#/Market/Contract/'+item.Id+'/view'">{{item.ContractName}}</a>
                            </td>
                            <td align="center">{{item.StateDisplay}}
                            </td>
                            <td align="right">{{item.Amount}}
                            </td>
                            <td align="left">{{item.CustomerDisplay}}
                            </td>
                            <td align="left">{{item.SignAContractDate | truncate(10,'')}}
                            </td>
                            <td align="center">{{item.StartDate | truncate(10,'')}} 至 {{item.EndDate | truncate(10,'')}}
                            </td>
                            <td align="center">
                                <a ms-href="'#/Market/Contract/'+item.Id+'/view'" class="doview" ms-title="lang.ViewBtn"></a>
                                <a ms-if="item.EDIT" ms-href="'#/Market/Contract/'+item.Id+'/edit'" class="doedit" ms-title="lang.EditBtn"></a>
                                <a ms-if="!item.EDIT" href="javascript:void(0)" class="noedit" ms-title="lang.EditBtn"></a>
                                <a ms-if="item.DELETE" href="javascript:void(0)" class="dodel" ms-click="dodel" ms-value="item.Id" ms-attr-index="$index" ms-title="lang.DelBtn"></a>
                                <a ms-if="!item.DELETE" href="javascript:void(0)" class="nodel"  ms-title="lang.DelBtn"></a>
                            </td>
                        </tr>
                    </tbody>
                    <tfoot>
                        <tr style="background-color: rgba(0, 0, 0, 0);">
                            <td colspan="10" ms-widget='paging,upaing,contractpaing'></td>
                        </tr>
                    </tfoot>
                </table>   
    </td>
  </tr>
</tbody></table>