<div class="byd-layout-cell byd-content">
<form name="form1" method="post">
<div class="byd-post">
<div class="byd-post-tl"></div>
<div class="byd-post-tr"></div>
<div class="byd-post-bl"></div>
<div class="byd-post-br"></div>
<div class="byd-post-tc"></div>
<div class="byd-post-bc"></div>
<div class="byd-post-cl"></div>
<div class="byd-post-cr"></div>
<div class="byd-post-cc"></div>
<div class="byd-post-body">
<div class="byd-post">
<div class="byd-post-tl"></div>
<div class="byd-post-tr"></div>
<div class="byd-post-bl"></div>
<div class="byd-post-br"></div>
<div class="byd-post-tc"></div>
<div class="byd-post-bc"></div>
<div class="byd-post-cl"></div>
<div class="byd-post-cr"></div>
<div class="byd-post-cc"></div>
<div class="byd-post-body">
<div style="text-align: center;">
                    <label class="table_caption"><u>お知らせ 車両の移動一覧</u></label>
                </div>
                <div align="right"><input type="Button" name="btn_cancle" value="戻る" onclick="javascript:location.href='./main';" tabindex="13"></div>
<br />
<!--車両一覧-->
                <!-- jQuery -->
                <script type="text/javascript" src="./js/jquery.js" charset="utf-8"></script>
                <!-- データテーブル1.7.6 -->
                <script type="text/javascript" src="./js/jquery.dataTables.min.js" charset="utf-8"></script>
                <!-- テーブルにデータを設定する -->
                <script type="text/javascript" src="./js/setdatatbl.js" charset="utf-8"></script>
                <div id="list"><!-- list Start -->
                <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
<THEAD>
<TR class="gradeU">
<TH style="text-align: center;">No</TH>
<TH><input type="checkbox" id="chk_0" name="chk_0" value="" tabindex="1">消去</TH>
<TH>更新日</TH>
<TH>解約日</TH>
<TH>登録番号</TH>
<TH>車名</TH>
<TH>契約番号</TH>
<TH>使用場所</TH>
<TH>ステータス</TH>
</TR>
</THEAD>
<tbody>
<?php
for($intRow = 0; $intRow < count($aryLstData); $intRow++ ){
//該当レコードが1以上の場合
?>
<tr>
<td width="5%" align="center"><?php echo $intRow+1 ?></td>
<td width="7%">
<input type="checkbox" name="infoid[]" value="<?php echo $aryLstData[$intRow]['TInfo']['infoid']; ?>"  tabindex="2"/> 
<input type="hidden" name="chk_upddtime_<?php echo $aryLstData[$intRow]['TInfo']['infoid']; ?>" value="<?php echo $aryLstData[$intRow]['TInfo']['upddtime'];  ?>">
</td>
<td width="12%"><?php echo $aryLstData[$intRow]['TInfo']['upddtime']; ?></td>
<td width="12%"><?php echo $aryLstData[$intRow]['TInfo']['trgetdate']; ?></td>
<td width="12%"><?php echo $aryLstData[$intRow]['TInfo']['addno']; ?></td>
<td width="12%"><?php echo $aryLstData[$intRow]['TInfo']['canm']; ?></td>
<td width="12%"><a href="javascript:document.form1.sel_contractno.value='<?php echo $aryLstData[$intRow]['TInfo']['contractno']; ?>'; document.form1.action='/ep_relation200'; document.form1.submit();" tabindex="2"><?php echo $aryLstData[$intRow]['TInfo']['contractno']; ?></a></td>
<td width="12%"><?php echo $aryLstData[$intRow]['TInfo']['useplace']; ?></td>
<td width="12%"><?php echo $aryLstData[$intRow]['TInfo']['status']; ?></td>
</tr>
<?php
}
?>


<tfoot>
<tr>
<th width="5%"><input type="text" name="No" value="No" class="search_init" tabindex="3"/></th>
<th width="7%"><input type="text" name="チェック" value="消去" class="search_init" tabindex="4"/></th>
<th width="12%"><input type="text" name="Date" value="更新日" class="search_init" tabindex="5"/></th>
<th width="12%"><input type="text" name="LeaseDate" value="解約日" class="search_init" tabindex="6"/></th>
<th width="12%"><input type="text" name="Group" value="登録番号" class="search_init" tabindex="7"/></th>
<th width="12%"><input type="text" name="OfficeBuil" value="車名" class="search_init" tabindex="8"/></th>
<th width="12%"><input type="text" name="LeaseNum" value="契約番号" class="search_init" tabindex="9"/></th>
<th width="12%"><input type="text" name="CarNum" value="使用場所" class="search_init" tabindex="10"/></th>
<th width="12%"><input type="text" name="CarNum" value="ステータス" class="search_init" tabindex="11"/></th>
</tr>
</tfoot>
</tbody>
</table>
<script type="text/javascript" charset="utf-8">
                   SetDataTable2("#example");
                </script>
                <div class="cleared"></div>
                </div><!-- list end -->
</div>
</div>
<input type="button" name="btnDel" value="表示消去" onClick="javascript:fncSave('del');"  tabindex ="12">
<div class="cleared"></div>
</div>
</div>
</form>
</div>
              
<script type="text/javascript">
// <![CDATA[

// 保存処理
function fncSave(strType){

document.form1.mode.value = strType;

if(strType == '<?php echo G_DEL; ?>'){
// 「削除」ボタン押下時
if(window.confirm('削除してよろしいですか?') == false){
// 「いいえ」の場合
return false;
}
}

document.form1.submit();
}


// }}>
</script>
<script type="text/javascript" charset="utf-8">
document.getElementById("chk_0").focus();
</script>
<input type="hidden" name="mode" value=""> 
<input type="hidden" name="sel_contractno" value=""> 
<script
type="text/javascript"> 
$(function() { 
$("#chk_0").click(function() {

if($(this).attr("checked") == true){
$("input[name='infoid[]']").each(function() { 
$(this).attr("checked", true); 
}); 
}else{
$("input[name='infoid[]']").each(function() { 
$(this).attr("checked", false);
});
}

}); 
}); 
</script>