pquery($sql, array($id)); if($adb->num_rows($result) ==1); { $label = $mod_strings[$adb->query_result($result,0,'notificationname')]; $notification_subject = $adb->query_result($result,0,'notificationsubject'); $notification_body = function_exists(iconv) ? iconv("UTF-8",$default_charset,$adb->query_result($result,0,'notificationbody')) : $adb->query_result($result,0,'notificationbody'); $notification_id = $adb->query_result($result,0,'notificationid'); $notification_status = $adb->query_result($result,0,'status'); $notification = Array(); $notification['label'] = $label; $notification['subject'] = $notification_subject; $notification['body'] = $notification_body; $notification['id'] = $notification_id; $notification['status'] = $notification_status; } $smarty->assign("NOTIFY_DETAILS",$notification); $smarty->assign("MOD", return_module_language($current_language,'Settings')); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH",$image_path); $smarty->assign("APP", $app_strings); $smarty->assign("CMOD", $mod_strings); $smarty->display("Settings/EditInventoryNotify.tpl"); } else { header("Location:index.php?module=Settings&action=listnotificationschedulers&directmode=ajax"); } ?>