payfrit-works/modules/get_children_of_item_id_clone.cfm

18 lines
No EOL
820 B
Text

<cfset this_looper = incrementvalue(attributes.looper)>
<cfquery name="check_for_children" datasource="#application.datasource#">
SELECT ItemName, ItemPrice, ItemID
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">&nbsp;&nbsp;</cfloop><input type="checkbox" name="itemIDstoclone" value="#check_for_children.ItemID#">&nbsp;#check_for_children.ItemName#<cfif ItemPrice gt 0> - #dollarformat(ItemPrice)#</cfif><br>
<cfmodule template="#application.wwwrootprefix#modules/get_children_of_item_id_clone.cfm" sending_ItemID=#check_for_children.ItemID# looper=#this_looper#>
</cfoutput>
</cfif>