$oSelTemplate->autoFill($aItems);
        $oSelTemplate->setDefault($iTplIDArt);
        unset($aItems);
        unset($oArticles);
        unset($oTemplateArticles);
        $oForm->add(i18n("HTML Template", $plugin_name), $oSelTemplate->render() . " " . i18n("Note, that changing the template discards the current html message content", $plugin_name));
        if ($iTplIDArt != 0) {
            $sFrameSrc = $cfgClient[$client]["path"]["htmlpath"] . "front_content.php?changeview=edit&action=con_editart&idart=" . $oNewsletter->get("idart") . "&idcat=" . $oClientLang->getProperty("newsletter", "html_newsletter_idcat") . "&lang=" . $lang . "&contenido=" . $sess->id;
            $oForm->add(i18n("HTML Message", $plugin_name), '<iframe width="100%" height="600" src="' . $sFrameSrc . '"></iframe><br />' . $sTagInfoHTML);
        } else {
            // Add a real note, that a template has to be specified
            $notis .= $notification->returnNotification("warning", i18n("Newsletter type has been set to HTML/text, please remember to select an html template", $plugin_name)) . "<br />";
            $oForm->add(i18n("HTML Message", $plugin_name), i18n("Please choose a template first", $plugin_name));
        }
    }
    $oTxtMessage = new cHTMLTextarea("txtMessage", $oNewsletter->get("message"), 80, 20);
    $oForm->add(i18n("Text Message", $plugin_name), $oTxtMessage->render() . "<br />" . $sTagInfoText);
    $sExecScript = '
	<script type="text/javascript">
		// Enabled/Disable group box
		function fncShowHide(strItemID) {
			objItem = document.getElementById(strItemID);

			if (objItem.style.display == "none") {
				objItem.style.display = "inline";
			} else {
				objItem.style.display = "none";
			}
		}

		// Create messageBox instance
     case 9:
         $oForm->add(i18n("Status", $plugin_name), sprintf(i18n("Finished (started: %s, finished: %s)", $plugin_name), date($sDateFormat, strtotime($oJob->get("started"))), date($sDateFormat, strtotime($oJob->get("finished")))));
         break;
 }
 $oForm->add(i18n("Statistics", $plugin_name), sprintf(i18n("Planned: %s, Send: %s", $plugin_name), $oJob->get("rcpcount"), $oJob->get("sendcount")));
 $oForm->add(i18n("From", $plugin_name), $oJob->get("newsfrom") . " (" . $oJob->get("newsfromname") . ")");
 $oForm->add(i18n("Subject", $plugin_name), $oJob->get("subject"));
 if ($oJob->get("type") == "html") {
     $oForm->add(i18n("Type", $plugin_name), i18n("HTML and text", $plugin_name));
     $txtMessageHTML = new cHTMLTextarea("txtMessageHTML", $oJob->get("message_html"), 80, 20);
     $txtMessageHTML->setDisabled("disabled");
     $oForm->add(i18n("HTML Message", $plugin_name), $txtMessageHTML->render());
 } else {
     $oForm->add(i18n("Type", $plugin_name), i18n("Text only", $plugin_name));
 }
 $txtMessageText = new cHTMLTextarea("txtMessageText", $oJob->get("message_text"), 80, 20);
 $txtMessageText->setDisabled("disabled");
 $oForm->add(i18n("Text Message", $plugin_name), $txtMessageText->render());
 $aSendTo = unserialize($oJob->get("send_to"));
 switch ($aSendTo[0]) {
     case "all":
         $sSendToInfo = i18n("Send newsletter to all recipients", $plugin_name);
         break;
     case "default":
         $sSendToInfo = i18n("Send newsletter to the members of the default group", $plugin_name);
         break;
     case "selection":
         $sSendToInfo = i18n("Send newsletter to the members of the selected group(s):", $plugin_name);
         unset($aSendTo[0]);
         foreach ($aSendTo as $sGroup) {
             $sSendToInfo .= "<br />" . $sGroup;
        }
    }
}
$oForm = new UI_Table_Form("properties");
$oForm->setVar("frame", $frame);
$oForm->setVar("area", $area);
$oForm->setVar("action", "recipients_import_exec");
$oForm->addHeader(i18n("Import recipients", $plugin_name));
$oSelDelimiter = new cHTMLSelectElement("selDelimiter");
$aItems = array();
$aItems[] = array("semicolon", i18n("Semicolon", $plugin_name));
$aItems[] = array("tab", i18n("Tab", $plugin_name));
$oSelDelimiter->autoFill($aItems);
$oSelDelimiter->setDefault($_REQUEST["selDelimiter"]);
$oForm->add(i18n("Delimiter", $plugin_name), $oSelDelimiter->render());
$oAreaData = new cHTMLTextarea("txtData", $_REQUEST["txtData"], 80, 20);
$sInfo = '<a href="javascript:fncShowHide(\'idInfoText\');"><strong>' . i18n("Import information", $plugin_name) . '</strong></a>' . '<div id="idInfoText" style="display: none">' . '<br /><br /><strong>' . i18n("Specify colum types:", $plugin_name) . '</strong>' . i18n("<br />The first line must contain the column names; this specifies the column order.<br />&lt;column name&gt;[delimiter]&lt;column name&gt;...", $plugin_name) . '<br /><br /><strong>' . i18n("Data structure:", $plugin_name) . '</strong><br />' . i18n("The recipients have to be entered using the following format:<br />&lt;data&gt;[Delimiter]&lt;data&gt;... - each recipient in a new line.", $plugin_name) . '<br /><br /><strong>' . i18n("Example:", $plugin_name) . '</strong>' . i18n("<br />name;mail;confirmed<br />Smith;jon.smith@example.org;1", $plugin_name) . '<br /><br /><strong>' . i18n("The following column names will be recognized:", $plugin_name) . '</strong><br />' . implode("<br />\n", $aFields) . '</div>';
$oForm->add(i18n("Recipients", $plugin_name), $oAreaData->render() . "<br />" . $sInfo);
unset($sInfo);
$sExecScript = '
<script type="text/javascript">
    /* Enabled/Disable group box */
    function fncShowHide(strItemID) {
        objItem = document.getElementById(strItemID);

        if (objItem.style.display == "none") {
           objItem.style.display = "inline";
        } else {
           objItem.style.display = "none";
        }
    }