}); }); </script> <div class="row-fluid"> <div class="span2"> <?php include 'includes/sidebar.php'; ?> </div> <div class="span10"> <div class="row-fluid"> <div class="span12"> <div> <p class="lead"><?php echo get_app_data('app_name'); ?> </p> </div> <h2><?php echo _('Autoresponders'); ?> </h2> <br/> <p class="well"><?php echo _('List'); ?> : <a href="<?php echo get_app_info('path'); ?> /subscribers?i=<?php
echo _('Query string'); ?> </label> <div class="well"> <?php echo _("Optionally append a query string to all links in your email newsletter. A good use case is Google Analytics tracking. Don't include '?' in your query string."); ?> </div> <div class="control-group"> <div class="controls"> <input type="text" class="input-xlarge" id="query_string" name="query_string" placeholder="eg. utm_source=sendy&utm_medium=email&utm_content=email%20newsletter&utm_campaign=email%20newsletter"> </div> </div> <?php $allowed_attachments = get_app_data('allowed_attachments'); $allowed_attachments_array = array_map('trim', explode(',', $allowed_attachments)); $allowed_attachments_exts = implode(', ', $allowed_attachments_array); if ($allowed_attachments != '') { ?> <label class="control-label" for="attachments"><?php echo _('Attachments'); ?> </label> <div class="control-group"> <div class="controls"> <input type="file" id="attachments" name="attachments[]" multiple /> </div> <p class="thirtytwo"><i>Allowed file types: <?php echo $allowed_attachments_exts; ?>
</h3> </div> <div class="modal-body"> <form action="<?php echo get_app_info('path'); ?> /includes/app/duplicate.php" method="POST" accept-charset="utf-8" class="form-vertical" name="duplicate-form" id="duplicate-form"> <div class="control-group"> <label class="control-label" for="on-brand"><?php echo _('Choose a brand you\'d like to duplicate this campaign on'); ?> :</label><br/> <div class="controls"> <select id="on-brand" name="on-brand"> <?php echo '<option value="' . get_app_info('app') . '" id="brand-' . get_app_info('app') . '">' . get_app_data('app_name') . '</option>'; $q = 'SELECT id, app_name FROM apps WHERE userID = ' . get_app_info('main_userID'); $r = mysqli_query($mysqli, $q); if ($r && mysqli_num_rows($r) > 0) { while ($row = mysqli_fetch_array($r)) { $app_id = $row['id']; $app_name = $row['app_name']; //sub users can only duplicate a campaign in their own brand if (get_app_info('is_sub_user') != true) { if ($app_id != get_app_info('app')) { echo '<option value="' . $app_id . '" id="brand-' . $app_id . '">' . $app_name . '</option>'; } } } } ?>
?> "> </div> </div> <label class="control-label" for="reply_to"><?php echo _('Reply to email'); ?> </label> <div class="control-group"> <div class="controls"> <input type="text" class="input-xlarge" id="reply_to" name="reply_to" placeholder="<?php echo _('Reply to email'); ?> " value="<?php echo get_app_data('reply_to'); ?> "> </div> </div> <label class="control-label" for="plain"><?php echo _('Plain text'); ?> </label> <div class="control-group"> <div class="controls"> <textarea class="input-xlarge" id="plain" name="plain" rows="10" placeholder="<?php echo _('Plain text of this email'); ?> "></textarea>
} //Reset current limit to 0 and set the month_of_next_reset to the next month $q = 'UPDATE apps SET current_quota = 0, month_of_next_reset = "' . $month_next . '" WHERE id = ' . get_app_info('app'); $r = mysqli_query($mysqli, $q); if ($r) { //Update new $brand_month_of_next_reset $brand_month_of_next_reset = $month_next; } } //Calculate day of reset for next month $month_next = strtotime('1 ' . $brand_month_of_next_reset); $month_next = strftime("%m", $month_next); $no_of_days_next_month = cal_days_in_month(CAL_GREGORIAN, $month_next, $year_today); $brand_limit_resets_on = get_app_data('day_of_reset') > $no_of_days_next_month ? $no_of_days_next_month : get_app_data('day_of_reset'); //Get sends left $brand_current_quota = get_app_data('current_quota'); $brand_sends_left = $brand_monthly_quota - $brand_current_quota; $ses_sends_left = $brand_sends_left; } else { $ses_sends_left = -1; } //unlimited sending } else { if ($aws_keys_available == 'true') { $ses_sends_left = round($quotaArray[0] - $quotaArray[2]); } } ?> <?php if (get_app_info('is_sub_user')) {