18 lines
No EOL
1.1 KiB
Text
18 lines
No EOL
1.1 KiB
Text
<cfset this_looper = incrementvalue(attributes.looper)>
|
|
|
|
<cfquery name="check_for_children" datasource="#application.datasource#">
|
|
SELECT ItemName, ItemPrice, ItemID, ItemRequiresChildSelection, ItemMaxNumSelectionReq, ItemIsCheckedByDefault
|
|
FROM Items
|
|
WHERE ItemParentItemID = #attributes.sending_ItemID#
|
|
AND
|
|
ItemIsActive = 1
|
|
</cfquery>
|
|
|
|
<cfif check_for_children.recordcount gt 0>
|
|
|
|
<cfoutput query="check_for_children">
|
|
<cfloop index="this_many_spaces" from="1" to="#this_looper#" step="1"> </cfloop>#check_for_children.ItemName#<cfif ItemPrice gt 0> - #dollarformat(ItemPrice)#</cfif><cfif check_for_children.ItemIsCheckedByDefault eq 1> (default)</cfif><cfif ItemRequiresChildSelection eq 1 and ItemMaxNumSelectionReq gt 1> (must choose 1, up to #ItemMaxNumSelectionReq#)<cfelseif ItemRequiresChildSelection eq 1> (must choose 1)<cfelseif ItemMaxNumSelectionReq gt 0> (choose up to #ItemMaxNumSelectionReq#)</cfif><br>
|
|
<cfmodule template="#application.wwwrootprefix#modules/get_children_of_item_id.cfm" sending_ItemID=#check_for_children.ItemID# looper=#this_looper#>
|
|
</cfoutput>
|
|
|
|
</cfif> |