
PK 
<?php
session_start();
require_once 'common/common.php';
require_once 'common/secure.php';
include "connexion.php";
include "head.php";
?>
<head>
<title>ANIBS BUSSINESS SOLUTIONS</title>
<SCRIPT language=JavaScript>
function reload(form)
{
var val=form.cat.options[form.cat.options.selectedIndex].value;
self.location='certificate.php?cat=' + val ;
}
</script>
<body>
<?
$cat=$_SESSION[cat]=$_GET['cat']; // Use this line or below line if register_global is off
//@$cat=$HTTP_GET_VARS['cat']; // Use this line or above line if register_global is off
///////// Getting the data from Mysql table for first list box//////////
$quer2=mysql_query("SELECT DISTINCT * FROM head WHERE parhead='0'");
///////////// End of query for first list box////////////
?>
<div id="content">
<div class="error-notice">
Select the Followings:
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<form action="form.php" method="get">
<tr>
<td align="center" width="48%">Client Name:
<?php
/////// for second drop down list we will check if category is selected else we will display all the subcategory/////
if(isset($cat) and strlen($cat) > 0){
$quer=mysql_query("SELECT DISTINCT * FROM head WHERE status='active' order by headname");
}else{
$quer=mysql_query("SELECT DISTINCT * FROM head WHERE status='active' order by headname");
}
////////// end of query for second subcategory drop down list box ///////////////////////////
?>
<input name='clntid' id="importerslist" size="80" type="text" />
<?php
/*echo "<select name='clntid'><option value=''>Select one</option>";
while($noticia = mysql_fetch_array($quer)) {
echo "<option value='$noticia[headid]'>".$noticia[headname]." –> ".substr($noticia['headaddress'],0,20)."</option>";
}
echo "</select>";
*/?>
</td>
</tr>
<tr>
<td width="52%">
Cert. Type:
<select name="dtype">
<option value="import">Importer</option>
<option selected value="export">Exporter</option>
</select>
</td>
</tr>
<tr>
<td width="52%">
Form Type:
<select name="formno">
<option value="a">ALP</option>
<option value="b">AQIS</option>
<!--option value="c">PPQ</option-->
<option value="d">AUS</option>
<option value="e">NSPM</option>
</select>
</td>
</tr>
<tr>
<td width="52%">Sub Certificate: <input type="checkbox" name="sub_c" value="yes"></td>
</tr>
<tr>
<td colspan="2" align="center">
<center>
<?php echo "<input type=submit value='» Start Certification »'; class=amo-submit>";
?>
</center>
</td>
</tr>
</form>
</table>
<p align="center"> Choose the above data carefully and correctly.</p>
</div>
</div>
<hr class="hide" />
<?php
include"foot.php";
?>


PK 99