<@IF "<@TOTALROWS> = -1"> There are <@CALC EXPR="<@NUMROWS>-1"> firms. <@ELSEIF "<@TOTALROWS> != 1"> There are <@CALC EXPR="<@TOTALROWS>-1"> firms. <@ELSE> There is 1 firm. @IF>
Click on the Company Name to get details about the type of services that Company offers.
Click on the URL to go to the company's website.
Company Name | URL |
Business Size |
Woman Owned? |
Address | Phone |
Contract Number |
---|---|---|---|---|---|---|
"><@COLUMN "Firms.Name"> | "><@COLUMN "Firms.URL"> | <@COLUMN "Firms.BusinessSize"> | <@IFEQUAL VALUE1="<@COLUMN 'Firms.Woman Owned'>" VALUE2="1"> Yes <@ELSE> @IF> |
<@COLUMN "Firms.StreetAddress"> <@COLUMN "Firms.City"> <@IFEMPTY VALUE="<@COLUMN 'Firms.City'>"> <@ELSE>, @IF> <@COLUMN "Firms.State"> <@COLUMN "Firms.Zip"> |
|
|
"><@COLUMN "Firms.Name"> | "><@COLUMN "Firms.URL"> | <@COLUMN "Firms.BusinessSize"> | <@IFEQUAL VALUE1="<@COLUMN 'Firms.Woman Owned'>" VALUE2="1"> Yes <@ELSE> @IF> |
<@COLUMN "Firms.StreetAddress"> <@COLUMN "Firms.City"> <@IFEMPTY VALUE="<@COLUMN 'Firms.City'>"> <@ELSE>, @IF> <@COLUMN "Firms.State"> <@COLUMN "Firms.Zip"> |
|
|
< --- Back to Index <@COMMENT> ----- BEGIN NEXT/PREV BUTTONS ----- @COMMENT> <@IF "<@MAXROWS> > 0"> <@COMMENT> If a max. number of records was specified, show Next and/or Previous buttons. @COMMENT> <@COMMENT> ----- BUILD SEARCH VALUES ----- The Next and Previous buttons must pass to Tango all the search values entered by the user. This section loops through all the args received -- via form fields (postargs) and the URL (searchargs) -- and creates hidden form fields for them. The resulting HTML is used in the form for each button. @COMMENT> <@ASSIGN arg_names <@ARGNAMES> SCOPE=LOCAL> <@ASSIGN search_vals_HTML "" SCOPE=LOCAL> <@ASSIGN crlf "<@CHAR 13><@CHAR 10>" SCOPE=LOCAL> <@COMMENT>line ending@COMMENT> <@ROWS ARRAY=arg_names> <@ASSIGN arg_name "<@COL 1>" SCOPE=LOCAL> <@IF "'<@LEFT @@arg_name 1>' != '_'"> <@COMMENT> Ignore args beginning with '_'; they'll be passed manually.@COMMENT> <@ASSIGN arg_values "<@ARG @@arg_name TYPE=ARRAY>" SCOPE=LOCAL> <@COMMENT> Assign the current argument's values to a variable. Use TYPE=ARRAY to get all the values for multi-select lists. @COMMENT> <@ROWS ARRAY=arg_values> <@COMMENT> Loop through all the values for the current arg. Build a hidden form field for each. Append field HTML to existing HTML. @COMMENT> <@ASSIGN search_vals_HTML '@@search_vals_HTML@@crlf' SCOPE=LOCAL> @ROWS> @IF> <@COMMENT>End ignoring args beginning with _ @COMMENT> @ROWS> <@COMMENT> ----- END BUILD SEARCH VALUES ----- @COMMENT>
<@IF "<@STARTROW> != 1"> <@COMMENT> We are beyond the first match; we need a Previous button @COMMENT> <@ASSIGN new_start <@CALC "<@STARTROW> - <@MAXROWS>"> SCOPE=LOCAL> <@ASSIGN new_start <@CALC "max(@@new_start 1)"> SCOPE=LOCAL> <@COMMENT> Subtract the max. number of rows per page from the current start to get new start. Use 1 if it's less than 1. @COMMENT> @IF> | <@COMMENT> ----- END PREVIOUS BUTTON ----- @COMMENT> <@COMMENT> ----- NEXT BUTTON ----- @COMMENT><@ASSIGN rows_left <@CALC "<@TOTALROWS> - (<@STARTROW> + <@MAXROWS> - 1)"> SCOPE=LOCAL> <@IF "@@rows_left > 0"> <@COMMENT>More rows? We need a Next button.@COMMENT> <@ASSIGN new_start <@CALC "<@STARTROW> + <@MAXROWS>"> SCOPE=LOCAL> <@COMMENT>Add the max. number of rows per page to the current start to get new start.@COMMENT> @IF> | <@COMMENT> ----- END NEXT BUTTON ----- @COMMENT>