| Current Path : /var/www/cesa.co.za/php/ |
| Current File : /var/www/cesa.co.za/php/membersearch_smme.php |
<?php
session_start();
include_once( 'inc_db.php' );
?>
<h1>CESA SMME Firms Directory</h1>
<form method="post" action="/membersearch" enctype="multipart/form-data">
<input type="hidden" name="from" value="smme">
<p><strong>Search for a Consulting Engineering Qualifying Small Enterprise (QSE)
or Exempt Micro Enterprise (EME)</strong></p>
<table border="0">
<tr>
<td valign="top" nowrap="nowrap"><b>Turnover:</b><br>
<input type="radio" name="SMME" value="EME" id="SMME_small" />
EME < R6 million<br>
<input type="radio" name="SMME" value="QSE" id="SMME_medium" />
QSE >= R6 million and < R25 million<br>
<input name="SMME" type="radio" id="SMME_any" value="QSE_EME" checked="checked" />
QSE and EME (< R25 million)
</td>
<td valign="top" nowrap="nowrap">
<br><br>
</td>
</tr>
<tr>
<td colspan="2" valign="top" nowrap="nowrap">
<strong>Black Ownership:</strong><br>
<input name="BlackOwned" type="radio" id="BlackOwned" value="" checked="true" />
Any / all<br>
<input type="radio" name="BlackOwned" value="Equal to or greater than 25 and less than 51%" id="BlackOwned4" />
Equal to or greater than 25 and less than 51%<br>
<input type="radio" name="BlackOwned" value="100%" id="BlackOwned5" />
100% Black Owned</td>
<td colspan="2" valign="top" nowrap="nowrap">
<br>
<input name="BlackOwned" type="radio" id="BlackOwned" value="Less than 10%" />
Less than 10%<br>
<input type="radio" name="BlackOwned" value="Equal to or greater than 51 and less than 100%" id="BlackOwned3" />
Equal to or greater than 51 and less than 100%</td>
</tr>
<tr>
<td colspan="2" valign="top" nowrap="nowrap"><strong>Black Women
Ownership:</strong><br>
<input name="BlackWomenOwned" type="radio" id="BlackOwned6" checked="true" value="" />
Any / all<br>
<input type="radio" name="BlackWomenOwned" value="Less than 10%" id="BlackOwned9" />
Less than 10%<br>
<input type="radio" name="BlackWomenOwned" value="Equal to or greater than 10 and less than 30%" id="BlackOwned9" />
Equal to or greater than 10 and less than 30%<br>
<input type="radio" name="BlackWomenOwned" value="100%" id="BlackOwned8" />
100% Black Women Owned</td>
<td colspan="2" valign="top" nowrap="nowrap">
<br>
<input type="radio" name="BlackWomenOwned" value="Equal to or greater than 30 and less than 51%" id="BlackOwned7" />
Equal to or greater than 30 and less than 51%
<br>
<input type="radio" name="BlackWomenOwned" value="Equal to or greater than 51 and less than 100%" id="BlackOwned7" />
Equal to or greater than 51 and less than 100%</td>
</tr>
</table>
<p>Country:
<select name="country">
<option value="any" selected>Any Country</option>
<option value="South Africa">South Africa</option>
<option value="outside">Outside of South Africa</option>
<?php
/* $sql = "select distinct Country from tblMemberFirmOffices order by Country";
$result = mysql_query($sql);
while ($row=mysql_fetch_array($result)) {
echo "<option value=\"".$row["Country"]."\">".$row["Country"];
}
*/
?>
</select>
Province:
<select name="province">
<option value="any" selected>Any
<?php
$sql = "select distinct TRIM(Province) AS Province from tblMemberFirmOffices order by Province";
$result = mysqli_query($conni, $sql);
while ($row = mysqli_fetch_assoc($result)) {
echo "<option value=\"" . $row["Province"] . "\">" . $row["Province"];
}
mysqli_free_result($result);
?>
</select>
City/town:
<input name="towncity" type="text" placeholder="Leave blank for all">
</p>
<p>
<b>With a name containing the words </b><input name="containing" type="text" placeholder="Leave blank for all" size="40">
</p>
<p>
<b>and having the following specialisations or skills</b>:
<input type="button" onclick="javascript: jQuery('.skill').prop('checked', false);" value="Select none">
<input type="button" onclick="javascript: jQuery('.skill').prop('checked', true);" value="Select all">
<table width="600" border="0" cellpadding="2">
<tr><td valign="top" nowrap="nowrap">
<?php
$sql = "SELECT * FROM FirmSkillsList WHERE SkillPriority=1 ORDER BY SkillName";
$recSkills = mysqli_query($conni, $sql);
$iNumS = 0;
while ($rowSkills = mysqli_fetch_assoc($recSkills)) {
?>
<input type="checkbox" class="skill" name="Skills[]" value="<?php echo $rowSkills["SkillsListID"]; ?>" checked id="skill<?php echo $rowSkills["SkillsListID"]; ?>"><?php echo $rowSkills["SkillName"]; ?><br>
<?php
$iNumS++;
if ($iNumS >= 10) {
$iNumS = 0;
?>
</td><td valign="top" nowrap="nowrap">
<?php
}
}
?>
</td></tr></table>
<p>
<input type="checkbox" name="QMS" value="1" id="QMS" />
Has implemented a
Quality Management System
<br>
<input type="checkbox" name="ISO" value="1" id="ISO" />
QMS is ISO Certified
<br>
</p>
<input type="hidden" name="action" value="1">
<input type="submit" name="search" value="search for a member firm"> <input type="reset" name="reset" value="clear the form">
</form>