示例#1
0
}
$blast_status =& new Input('hidden', 'status', $stat);
$html .= $buildform->add_row('status', $stat . $blast_status->fetch());
$html .= addfield('subject', 'Subject', 'text', $R->Fields("subject"));
$html .= addfield('from_email', 'From Email', 'text', $R->Fields("from_email"));
$html .= addfield('from_name', 'From Name', 'text', $R->Fields("from_name"));
$html .= addfield('reply_to_address', 'Reply To Address', 'text', $R->Fields("reply_to_address"));
$WYSIWYG =& AMPFormElement_HTMLEditor::instance();
$WYSIWYG->addEditor('message_email_html');
$html .= addfield('message_email_html', 'HTML Email Message', 'textarea', $R->Fields("message_email_html"));
$html .= addfield('message_email_text', 'Text Email Message', 'textarea', $R->Fields("message_email_text"));
#$html .= addfield('embargo','Embargoed Till','text',$R->Fields("embargo"));
$list_options = makelistarray($List, 'id', 'name', 'Select List');
$lists =& new Select('list_ID', $list_options, $R->Fields("list_ID"));
$html .= $buildform->add_row('Send to List', $lists);
$t_options = makelistarray($T, 'id', 'name', 'Select Template');
$temp =& new Select('message_template_ID', $t_options, $R->Fields("message_template_ID"));
$html .= $buildform->add_row('HTML Email Template', $temp);
$html .= addfield('publish', 'Show Email on Website', 'checkbox', $R->Fields("publish"));
$html .= $buildform->add_content($buildform->add_btn() . ' ' . $buildform->del_btn() . $rec_id->fetch() . $sendformat->fetch() . $blast_type->fetch());
$html .= $buildform->end_table();
$form =& new Form();
$form->set_contents($html);
include "header.php";
if ($_GET['action'] == "list") {
    if ($_REQUEST['response']) {
        echo '<p><b>' . $_REQUEST['response'] . '</b></p>';
    }
    listpage($listtitle, $listsql, $fieldsarray, $filename, $orderby, $sort, $extra);
    echo '<p><a href="#" onClick="newwindow=window.open(\'blast_control.php?type=Email&process=1\',\'name\',\'height=20,width=150\'); alert (\'You may close the pop up window and your message will send without interpution\')" >START SENDING NEW EMAIL BLASTS</a></p>';
} else {
示例#2
0
文件: imgup.php 项目: radicalsuz/amp
if ($_POST['add'] && isset($new_file_name)) {
    ob_start();
    $MM_insert = $_REQUEST['MM_insert'];
    $MM_editTable = "gallery";
    $MM_fieldsStr = "section|value|new_file_name|value|caption|value|photoby|value|date|value|byemail|value|publish|value|galleryid|value";
    $MM_columnsStr = "section|',none,''|img|',none,''|caption|',none,''|photoby|',none,''|date|',none,''|byemail|',none,''|publish|',none,''|galleryid|',none,''";
    require "../Connections/insetstuff.php";
    require "../Connections/dataactions.php";
    ob_end_flush();
}
$G = $dbcon->Execute("SELECT id, galleryname FROM gallerytype") or die($dbcon->ErrorMsg());
$html = $buildform->start_table('name');
$html .= $buildform->add_header('Photo Gallery Settings');
$html .= addfield('add', 'Add to Gallery', 'checkbox');
$html .= addfield('publish', 'Publish', 'checkbox');
$gal_options = makelistarray($G, 'id', 'galleryname', 'Select Gallery');
$Gal =& new Select('galleryid', $gal_options);
$html .= $buildform->add_row('Photo Gallery', $Gal);
$html .= addfield('caption', 'Caption', 'textarea');
$Type =& new Select('section', $obj->select_type_tree2(0));
$html .= $buildform->add_row('Section', $Type);
$html .= addfield('photoby', 'Photo By', 'text');
$html .= addfield('date', 'Date', 'text');
$html .= $buildform->end_table();
echo "<h2>Image Upload</h2> ";
if (isset($result_message)) {
    echo '<br>' . $result_message . '<br><br><br>';
}
?>
<p><strong><!--Upload .JPG Image Files Only (<a href="imgother_upload.php">click here</a> for other formats, -->
<a href="crop_step1.php" target="_blank">Click here</a> to upload a .JPG you want to crop) </strong></p>