<?php
	$page_title = "開発者向けのオプション";
	include_once('template/base_head.php');
?>
			<aside id="colLeft">
	    		<h1><a href="account_list"><img src="../img/logo.png" alt="iWallet"></a></h1>
	    		<div class="aside-heading">
	    			<div class="btns">
	    				<input type="button" id="btnNewCredential" name="btnNewCredential" value="登録" class="btn bg-default px70 hi22"/>&nbsp;
	    				<input type="button" id="btnSearch" name="btnNewCredential" value="検索" class="btn bg-default px60 hi22"/>&nbsp;
	    			</div>
	    		</div>
	    		<form id="searchForm" action="" method="post">
					<table class="conditions fontS w100p">
						<colgroup>
							<col class="w40p">
							<col class="w60p">
						</colgroup>

						<tr>
							<th>DEVキー</th>
							<td><input type="text" id="sDevKey" name="sDevKey" value="<?=$this -> getFieldValue("sDevKey")?>" class="w100p"></td>
						</tr>
						<tr>
							<th>シークレットキー</th>
							<td><input type="text" id="sExecutionCounter" name="sExecutionCounter" value="<?=$this -> getFieldValue("sExecutionCounter")?>" class="w100p"></td>
						</tr>
						
						<tr>
							<td colspan="2" class="divider"><hr /></td>
						</tr>
						
						<tr>
							<td colspan="2">
								<span class="th">満了日</span>
								<?php $this -> dispDateRangeFlg("expireDateSearch"); ?>
								<input type="text" id="expireDateFrom" name="expireDateFrom" value="<?=$this -> getFieldValue("expireDateFrom")?>" class="px110"> - 
								<input type="text" id="expireDateTo" name="expireDateTo" value="<?=$this -> getFieldValue("expireDateTo")?>" class="px110">
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">最後実行日</span>
								<?php $this -> dispDateRangeFlg("executionDateSearch"); ?>
								<input type="text" id="executionDateFrom" name="executionDateFrom" value="<?=$this -> getFieldValue("executionDateFrom")?>" class="px110"> - 
								<input type="text" id="executionDateTo" name="executionDateTo" value="<?=$this -> getFieldValue("executionDateTo")?>" class="px110">
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">作成日</span>
								<?php $this -> dispDateRangeFlg("createDateSearch"); ?>
								<input type="text" id="createDateFrom" name="createDateFrom" value="<?=$this -> getFieldValue("createDateFrom")?>" class="px110"> - 
								<input type="text" id="createDateTo" name="createDateTo" value="<?=$this -> getFieldValue("createDateTo")?>" class="px110">
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">最後変更日</span>
								<?php $this -> dispDateRangeFlg("updateDateSearch"); ?>
								<input type="text" id="updateDateFrom" name="updateDateFrom" value="<?=$this -> getFieldValue("updateDateFrom")?>" class="px110"> - 
								<input type="text" id="updateDateTo" name="updateDateTo" value="<?=$this -> getFieldValue("updateDateTo")?>" class="px110">
							</td>
						</tr>
					</table>
				</form>
			</aside>
				
			<div id="colMain">
	    		<div class="mainIn">
	    			<?php include_once('template/base_nav.php'); ?>
	    			<article>
	    				<div class="article-heading">
	    					<h2><?php echo $page_title; ?>　</h2>
	    					<?php $this -> dispPager(); ?>
	    				</div>
	    				<?php $this -> echoMessage(); ?>
	    				<form id="acForm" action="" method="POST">
	    					<table class="table col bdr default odd w100p fontXS calign">
        						<thead>
        							<tr>
            							<th class="w4p">DEVキー</th>
            							<th class="w4p">シークレットキー</th>
            							<th class="w4p">満了日</th>
            							<th class="w4p">実行カウンター</th>
            							<th class="w4p">最後実行日</th>
            							<th class="w4p">作成日</th>
            							<th class="w4p">最後変更日</th>
            							<th class="w9p" aria-hidden="true"></th>
            						</tr>
        						</thead>
        						<tbody>
        							<?php $this -> echoList(); ?>
        						</tbody>
    						</table>
    						<input type="hidden" name="type" id="type"/>
    						<input type="hidden" name="developer_key" id="developer_key"/>
	    				</form>
	    				<div class="article-bottom">
	    					<?php $this -> dispPager(); ?>
	    				</div>
	    			</article>
	    		</div>
			</div>
	
			<input type="hidden" id="confirm_delete_devcred" value="開発者向けのクレデンシャルを削除してもよろしいですか？"/>
	
		</div>
		<?php include_once('template/base_foot.php'); ?>
		</div>
		<script src="../js/developer.js"></script>
    	<script src="../js/bootstrap.min.js"></script>
	</body>
</html>

