 
 	<!--- assemble sqlstring (variable "sqlstring") --->
 	<cfinclude template="/includes/forms/permit_search_results.cfm">
-
 
 
 <cfquery name="matchPermit" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">

<cfquery name="ctPermitAgentRole" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
	select permit_agent_role from ctpermit_agent_role order by permit_agent_role
</cfquery>
<cfif #action# is "nothing">
	<cfset title="permit search">

<cfoutput>

<p>
	<a href="Permit.cfm?action=newPermit">create permit</a>
</p>

<p>
	Find Permits
</p>
<form name="findPermit" action="Permit.cfm" method="post">
	<input type="hidden" name="action" value="search">
	<cfinclude template="/includes/forms/permit_search.cfm">


</form>
</cfoutput>
</cfif>
<!--------------------------------------------------------------------------->
<cfif action is "search">

		$("input[type='date'], input[type='datetime']" ).datepicker();
	});
</script>
<cfquery name="ctPermitType" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
	select permit_type from ctpermit_type order by permit_type
</cfquery>
