_get_where_clause(); $image_path = 'themes/'.$theme.'/images/'; $name = empty($_REQUEST['name']) ? '' : $_REQUEST['name']; $code = empty($_REQUEST['code']) ? '' : $_REQUEST['code']; $product_category = empty($_REQUEST['product_category']) ? '' : $_REQUEST['product_category']; $request_data = empty($_REQUEST['request_data']) ? '' : $_REQUEST['request_data']; $hide_clear_button = empty($_REQUEST['hide_clear_button']) ? false : true; $button = "
\n"; if(!$hide_clear_button){ $button .= "\n"; } $button .= "\n"; $button .= "
\n"; $form = new XTemplate('modules/EcmProducts/Popup_picker.html'); $form->assign('MOD', $mod_strings); $form->assign('APP', $app_strings); $form->assign('THEME', $theme); $form->assign('MODULE_NAME', $currentModule); $form->assign('NAME', $name); $form->assign('request_data', $request_data); $form->assign('CODE', $code); $www=$GLOBALS['db']->query("select id,name from ecmproductcategories where deleted='0' order by name"); $pc=''; while($r=$GLOBALS['db']->fetchByAssoc($www)){ $pc.='