getMessage(); } $func = new functions(); $db = new dbquery(); $db->connect(); $resourcesControler = new ResourcesControler(); $_SESSION['resourcesConfig'] = $resourcesControler->loadResourcesConfig("xml/resources.xml"); //$func->show_array($_SESSION['resourcesConfig']); //$func->show_array($_SESSION); //$func->show_array($_REQUEST); for($cptCat=0;$cptCat".$_SESSION['resourcesConfig']['category'][$_REQUEST['category_id']]['field'][$cptIdx]['label']." :"; $theForm .= " "; $theForm .= ""; if($_SESSION['resourcesConfig']['category'][$_REQUEST['category_id']]['field'][$cptIdx]['type'] == "select") { if($_SESSION['resourcesConfig']['category'][$_REQUEST['category_id']]['field'][$cptIdx]['table']) { $theForm .= ""; } elseif($_SESSION['resourcesConfig']['category'][$_REQUEST['category_id']]['field'][$cptIdx]['values_list']) { $theForm .= ""; } } elseif($_SESSION['resourcesConfig']['category'][$_REQUEST['category_id']]['field'][$cptIdx]['type'] == "textarea") { $theForm .= ""; } elseif($_SESSION['resourcesConfig']['category'][$_REQUEST['category_id']]['field'][$cptIdx]['type'] == "date") { $theForm .= ""; } elseif($_SESSION['resourcesConfig']['category'][$_REQUEST['category_id']]['field'][$cptIdx]['type'] == "text") { if($_SESSION['resourcesConfig']['category'][$_REQUEST['category_id']]['field'][$cptIdx]['autocompletion_script']) { $theForm .= ""; $theForm .= "
"; $theForm .= ""; } else { $theForm .= ""; } } elseif($_SESSION['resourcesConfig']['category'][$_REQUEST['category_id']]['field'][$cptIdx]['type'] == "div") { $theForm .= "
"; } $theForm .= ""; $theForm .= ""; if($_SESSION['resourcesConfig']['category'][$_REQUEST['category_id']]['field'][$cptIdx]['is_mandatory'] == "true") { $theForm .= "* "; } else { $theForm .= "  "; } $theForm .= ""; } echo "{status : 0, theForm : '".addslashes($theForm)."'}"; exit(); ?>