&ID=<?php 
    echo $ID;
    ?>
&action=send&lang=<?php 
    echo LANGUAGE_ID;
    ?>
'"
							title="<?php 
    echo GetMessage("sender_chain_edit_btn_send_desc");
    ?>
" />
					<?php 
}
?>
					<?php 
if ($ID > 0 && $POST_RIGHT >= "W" && \Bitrix\Sender\MailingChainTable::isManualSentPartly($ID)) {
    ?>
						<input style="margin-left: 80px;" type="button"
							value="<?php 
    echo GetMessage("sender_chain_edit_btn_send2");
    ?>
"
							onclick="window.location='/bitrix/admin/sender_mailing_chain_admin.php?MAILING_ID=<?php 
    echo $MAILING_ID;
    ?>
&ID=<?php 
    echo $ID;
    ?>
&action=send&lang=<?php 
    echo LANGUAGE_ID;
    ?>
	</td>
</tr>
<?php 
$oFilter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage() . "?MAILING_ID=" . $MAILING_ID, "form" => "find_form"));
$oFilter->End();
?>
</form>

<?php 
//******************************
// Send mailing and show progress
//******************************
if ($_REQUEST['action'] == "send") {
    $canSend = \Bitrix\Sender\MailingChainTable::isReadyToSend($ID);
    if (!$canSend) {
        $canSend = \Bitrix\Sender\MailingChainTable::isManualSentPartly($ID);
    }
    if ($canSend) {
        ?>
		<div id="progress_message"></div>
		<script>
			var stop = false;
			function Stop()
			{
				stop=true;
				document.getElementById('btn_stop').disabled = true;
				document.getElementById('btn_cont').disabled = false;
			}
			function Cont()
			{
				stop=false;
Example #3
0
            echo $MAILING_ID;
            ?>
&ID=<?php 
            echo $ID;
            ?>
&action=stop&lang=<?php 
            echo LANGUAGE_ID;
            ?>
'"
									title="<?php 
            echo GetMessage("sender_chain_edit_btn_stop_desc");
            ?>
" />
								<?php 
        }
    } elseif (\Bitrix\Sender\MailingChainTable::isManualSentPartly($ID)) {
        ?>
							<input style="margin-left: 80px; margin-right: 15px;" type="button"
								value="<?php 
        echo GetMessage("sender_chain_edit_btn_send2");
        ?>
"
								onclick="window.location='/bitrix/admin/sender_mailing_chain_admin.php?MAILING_ID=<?php 
        echo $MAILING_ID;
        ?>
&ID=<?php 
        echo $ID;
        ?>
&action=send&lang=<?php 
        echo LANGUAGE_ID;
        ?>