CHttpRequest.Send(url); } } //--> </script> <?php if ($ID > 0) { ?> <tr> <td width="40%" valign="top"><?php echo GetMessage("FORM_MAIL_TEMPLATE"); ?> </td> <td width="60%" valign="top" nowrap style="padding:0px" id="form_templates"> <?php $arr = CFormStatus::GetTemplateList($ID); //echo '<pre>'; print_r($arr); echo '</pre>'; if (is_array($arr) && count($arr) > 0) { $arrMAIL = array(); reset($arr); if (is_array($arr["reference_id"])) { foreach ($arr['reference_id'] as $key => $value) { $arrMAIL[$value] = $arr["reference"][$key]; } } ?> <?php if (count($arrMAIL) > 0) { echo '<table cellspacing="0" cellpadding="0" id="form_templates_table"><tbody>'; } ?>