<?php $PageSecurity = 2;
include('includes/DefineSuppTransClass.php');
include('includes/DefinePOClass.php');
include('includes/SQL_CommonFunctions.inc');
include('includes/session.inc');
 //echo $_GET['type'];
 
 if($_GET['type']=='1')
 {
 $store_sql = "Select id,issue_slipno from asset_issue where issueto = '".$_GET['q']."' and site='".$_REQUEST['site']."'  and full_returning_status='0' ";
	?>
		<select name="issue_slipno" id="issue_slipno" onchange="ShowDiv(this.value,'GetIssueSlip_no-div','ajax_asset_return_details.php?issueno=1')" style="width:100%">
			<option value="0">Select Issue Slip No </option>		<?php
			
 			$store_result = DB_query($store_sql,$db);
			while($store_row = DB_fetch_array($store_result))
			{ 
				$p='';
				if($store_row['id'] == $_POST['issue_slipno'])
				$p="selected";
			
			?>
		<option value="<?php echo $store_row['id'] ; ?>" <?php echo $p;?>><?php echo $store_row['issue_slipno'] ; ?></option>
			<?php }
			?>
			</select>
<?php }

if($_GET['type']=='2')
 {
   $store_sql = "Select id,issue_slipno from asset_issue where received_by = '".$_GET['q']."' and site='".$_REQUEST['site']."' and full_returning_status='0' ";
	?>
		<select name="issue_slipno" id="issue_slipno" onchange="ShowDiv(this.value,'GetIssueSlip_no-div','ajax_asset_return_details.php?issueno=1')" style="width:100%">
			<option value="0">Select Issue Slip No </option>			<?php
			
 			$store_result = DB_query($store_sql,$db);
			while($store_row = DB_fetch_array($store_result))
			{ 
				$p='';
				if($store_row['id'] == $_POST['issue_slipno'])
				$p="selected";
			
			?>
		<option value="<?php echo $store_row['id'] ; ?>" <?php echo $p;?>><?php echo $store_row['issue_slipno'] ; ?></option>
			<?php }
			?>
			</select>
<?php }


?>
