コード例 #1
0
ファイル: Util.php プロジェクト: rajnishp/bjs
 /**
  * Sends bulk Email to groups using MSGING
  * @param $group_id
  * @param $message Subject of the email
  * @param $body Text of the Email
  * @param $org_id Org ID sending from
  * @return boolean : if sending was successful
  */
 static function sendBulkEmailToGroupsNew($group_id, $message, $body, $org_id, $default_arguments, $queue_id)
 {
     global $logger;
     $logger->info("==BULKEMAIL==\n<br/>Sending [TO: {$group_id}] [FROM: {$org_id}] \n<br/> {$message} .<br />Default Args: " . print_r($default_arguments, true));
     $group_id_array = array();
     array_push($group_id_array, $group_id);
     $cm = new CampaignController();
     $msging = new MsgingThriftClient();
     $msg_id = $msging->addEmailForGroups($org_id, $message, $body, $group_id_array, time(), $default_arguments);
     $campaign_id = $cm->getCampaignIdByGroupId($group_id);
     $cm->addFieldsToBulkSmsCampaign($campaign_id, $msg_id, $group_id, $queue_id);
     $cm->updateLastSentDateForGroup($group_id);
     return $msg_id;
 }
コード例 #2
0
											' . HTML::link('bid/' . $campaign, 'View Bids (' . $cpStatus . ')') . ' </button></a>';
    } else {
        echo '<a><button type="button" id="bid" name="bid" class ="btn btn-warning btn-sm btn-flat" style="width: 60px; margin-right:100px; font-size:large;">
											' . HTML::linkRoute('campaign.bid', 'Bid', $campaign, ['data-toggle' => 'modal', 'data-target' => '#myModal']) . ' </button></a>';
    }
} else {
    echo $cam_action;
}
?>
										
							</div>
														
							<div class="col-md-4 grid">
								
								<?php 
$res = CampaignController::getLikes($campaign);
?>
								<div class="col-md-6">
									<input type="button" value="<?php 
echo $res->likes;
?>
" class="button_like" id="linkeBtn" />
								</div>
								
							</div>
						</div>
                         
                    </div>

                </div>
            </div>