Location: PHPKode > projects > Active Agenda > active_agenda-0.8.2-beta/s2a/active_agenda/includes/ntfSendForm.php
<?php
//ntfSendForm.php
/**
 * Custom snippet for displying the "Send" button in the Notifications Send screen
 *
 * LICENSE NOTE:
 *
 * Copyright  2003-2007 Active Agenda Inc., All Rights Reserved.
 *
 * Unless explicitly acquired and licensed from Licensor under a "commercial license",
 * the contents of this file are subject to the Reciprocal Public License ("RPL")
 * Version 1.4, or subsequent versions as allowed by the RPL,and You may not copy
 * or use this file in either source code or executable form, except in compliance
 * with the terms and conditions of the RPL. You may obtain a copy of the RPL from
 * Active Agenda Inc. at http://www.activeagenda.net/license.
 *
 * All software distributed under the Licenses is provided strictly on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND ACTIVE AGENDA
 * INC. HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY 
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT,
 * OR NON-INFRINGEMENT. See the Licenses for specific language governing rights and
 * limitations under the Licenses.
 *
 * author         Mattias Thorslund <hide@address.com>
 * copyright      2003-2007 Active Agenda Inc.
 * license        http://www.activeagenda.net/license
 **/

if($ntf_sent){
    $content .= gettext("This notification has been sent.");
} else {
    if(ntf_checkForRecipients()){
        $sendFormTemplate = '<div class="searchFilter"><p>%s</p>%s</div>';
        $sendPhrase = gettext("To send this notification to the recipients listed below, press the button.");
        $sendForm = '<form action="'.$targetlink.'" method="post">
    <input class="btn" type="submit" name="Send" value="'.gettext("Send this Notification").'"/>
</form>';
        $content .= sprintf(
            $sendFormTemplate, 
            $sendPhrase,
            $sendForm
            );
    } else {
        $content .= gettext("There are no recipients for this notification. To send it, first go to the Recipients screen and add some.");
    }
}
?>
Return current item: Active Agenda