function finaliseMainAdItem($propertyInfo, $jsonObject, $dest, $imgUrl) { $templateDir = array(); $templateDirWeb = array(); makeTemplateDir($propertyInfo, $templateDir, $templateDirWeb); $mainImg = imagecreatefromjpeg($imgUrl); $mainImg2 = imagecreatefromjpeg($imgUrl); $no_features = 3; if ($propertyInfo['no_car'] == "N/A") { $no_features = 2; } // $no_features = 2; allocateTemplates($mainImg, $jsonObject, $templateDir, "auction", $no_features); allocateTemplates($mainImg2, $jsonObject, $templateDir, "justlisted", $no_features); fillText($mainImg, $jsonObject, $propertyInfo, $templateDir, "auction", $no_features); fillText($mainImg2, $jsonObject, $propertyInfo, $templateDir, "justlisted", $no_features); // $dest = "{$_SERVER['DOCUMENT_ROOT']}/myApp/api/assets/testDraw/"; imagejpeg($mainImg, $dest . "0.jpg", 100); imagejpeg($mainImg2, $dest . "00.jpg", 100); imagedestroy($mainImg); imagedestroy($mainImg2); // allocateLogo (imgUrls, $jsonObject, $templateDir); }
if ($HTTP_GET_VARS['__dynaform__'] == '') $HTTP_SESSION_VARS['CURRENT_REQ_DYNAFORM'] = $Row['UID']; } */ $filename = 'rbac/userAssignRole'; $fieldName = get_ajax_value('field'); $fieldValue = get_ajax_value('value'); $fieldParent = get_ajax_value('parent'); $function = get_ajax_value('function'); $appid = get_ajax_value('application'); $Dynaform = get_ajax_value('Dynaform'); $InitValue = get_ajax_value('InitValue'); switch ($function) { case 'text': fillText($fieldName, $fieldParent, $fieldValue, $appid, $filename); break; case 'dropdown': fillDropdown($fieldName, $fieldParent, $fieldValue, $appid, $filename, $InitValue); break; default: echo '<small>none</small>'; } function fillCaption($fieldName, $fieldParent, $valueRecived, $appid, $filename) { $options = reload($fieldName, $fieldParent, $valueRecived, $appid, $filename); header("Content-Type: text/xml"); print '<?xml version="1.0" encoding="UTF-8"?> <data> <value>' . $value . '</value> </data>';