$row = Sql_fetch_array($result); printf('<input type="hidden" name="listname[%d]" value="%s"><input type="hidden" name="lists[%d]" value="%d">%s <b>%s</b>', $c, stripslashes($row["name"]), $c, $row["id"], $GLOBALS['I18N']->get('Adding users to list'), stripslashes($row["name"])); } else { print '<h3>' . $GLOBALS['I18N']->get('Select the lists to add the emails to') . '</h3>'; /* while ($row = Sql_fetch_array($result)) { printf('<li><input type="hidden" name="listname[%d]" value="%s"><input type="checkbox" name="lists[%d]" value="%d">%s', $c, stripslashes($row["name"]), $c, $row["id"], stripslashes($row["name"])); $some = 1; $c++; } */ if (!$some) { echo $GLOBALS['I18N']->get('No lists available') . ' ' . PageLink2("editlist", $GLOBALS['I18N']->get('Add a list')); } else { $selected_lists = getSelectedLists('lists'); print listSelectHTML($selected_lists, 'lists', $subselect, s('Select the lists to add the emails to')); } } /* } */ if (defined('IN_WEBBLER') && Sql_Table_Exists("groups")) { $result = Sql_query("SELECT id,name FROM groups ORDER BY listorder"); $c = 0; if (Sql_Affected_Rows() == 1) { $row = Sql_fetch_array($result); printf('<p class="information"><input type="hidden" name="groupname[%d]" value="%s"><input type="hidden" name="groups[%d]" value="%d">Adding users to group <b>%s</b></p>', $c, $row["name"], $c, $row["id"], $row["name"]); } else { print '<p class="information">' . $GLOBALS['I18N']->get('Select the groups to add the users to') . '</p>'; while ($row = Sql_fetch_array($result)) { if ($row["id"] == $everyone_groupid) {
values("(no subject)","draft",now())',$GLOBALS["tables"]["message"])); $id = Sql_Insert_id(); Redirect("send&id=$id"); } */ $list_content = ' <div id="listselection" class="accordion"> <h3><a name="lists">' . $GLOBALS['I18N']->get('Please select the lists you want to send your campaign to') . ':</a></h3> '; $list_content .= listSelectHTML($messagedata['targetlist'], 'targetlist', $subselect); if (USE_LIST_EXCLUDE) { $list_content .= ' <h3><a name="excludelists">' . $GLOBALS['I18N']->get('Please select the lists you want to exclude from this campaign') . '</a></h3>'; if (!isset($messagedata['excludelist']) || !is_array($messagedata['excludelist'])) { $messagedata['excludelist'] = array(); } $list_content .= listSelectHTML($messagedata['excludelist'], 'excludelist', $subselect, $GLOBALS['I18N']->get('The campaign will go to users who are a member of the lists above, unless they are a member of one of the lists you select here.')); } $list_content .= '</div>'; ## close accordion if (isset($show_lists) && $show_lists) { # print htmlspecialchars($list_content); $panelcontent .= $list_content; } $panelcontent .= $saveDraftButton; $panel = new UIPanel($tabs->tabTitle(), $panelcontent, $tabs->prevNextNav()); print $panel->display(); if (isset($testpanel)) { print $testpanel->display(); } print '</form>';
$content .= sprintf('<tr><td><!--%d--></td><td>%s</td></tr>', $lst['id'], stripslashes($lst['name'])); } } $content .= '</table>'; $panel = new UIPanel(htmlspecialchars($campaignTitle), $content); print $panel->display(); ?> <a name="resend"></a><p class="information"><?php echo s('Send this campaign to another list'); ?> :</p> <?php echo formStart(' class="messageResend" '); ?> <input type="hidden" name="id" value="<?php echo $id; ?> " /> <?php if (sizeof($lists_done)) { if (empty($subselect)) { $subselect .= ' where id not in (' . join(',', $lists_done) . ')'; } else { $subselect .= ' and id not in (' . join(',', $lists_done) . ')'; } } $selectAgain = listSelectHTML(array(), 'list', $subselect, ''); print $selectAgain; print '<input class="submit" type="submit" name="resend" value="' . s('Resend') . '" /></form>';