<?php
	$page_title = "Developers Option";
	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="Register" class="btn bg-default px70 hi22"/>&nbsp;
	    				<input type="button" id="btnSearch" name="btnNewCredential" value="Search" 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>Utility Key</th>
							<td><input type="text" id="sDevKey" name="sDevKey" value="<?=$this -> getFieldValue("sDevKey")?>" class="w100p"></td>
						</tr>
						<tr>
							<th>Execution Counter</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">Date of Expiration</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">Date of Last Execution</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">Date of Create Time</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">Date of Last Update</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">Utlity Key</th>
            							<th class="w4p">Secret Key</th>
            							<th class="w4p">Expiration Date</th>
            							<th class="w4p">Execution Counter</th>
            							<th class="w4p">Last Execution Time</th>
            							<th class="w4p">Date Created</th>
            							<th class="w4p">Last Update</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="Are you sure you want to delete a dev credential?"/>
	
		</div>
		<?php include_once('template/base_foot.php'); ?>
		</div>
		<script src="../js/developer.js"></script>
    	<script src="../js/bootstrap.min.js"></script>
	</body>
</html>

