Пример #1
0
    $MM_fieldsStr = "name|value|description|value|publish|value";
    $MM_columnsStr = "name|',none,''|description|',none,''|publish|',none,''";
    //|$delim,$altVal,$emptyVal|  |',none,''|
    require "../Connections/insetstuff.php";
    require "../Connections/dataactions.php";
    ob_end_flush();
}
if (isset($_GET['id'])) {
    $R__MMColParam = $_GET['id'];
} else {
    $R__MMColParam = "8000000";
}
$R = $dbcon->Execute("SELECT * FROM {$table} WHERE id = {$R__MMColParam}") or die($dbcon->ErrorMsg());
$rec_id =& new Input('hidden', 'MM_recordId', $_GET['id']);
//build form
$html = $buildform->start_table('name');
$html .= $buildform->add_header('Add/Edit ' . $listtitle, 'banner');
$html .= addfield('name', 'List Name', 'text', $R->Fields("name"));
$html .= addfield('description', 'List Description', 'textarea', $R->Fields("description"));
$html .= addfield('publish', 'Publish', 'checkbox', $R->Fields("publish"), '1');
$html .= $buildform->add_content($buildform->add_btn() . ' ' . $buildform->del_btn() . $rec_id->fetch());
$html .= $buildform->end_table();
$form =& new Form();
$form->set_contents($html);
include "header.php";
if ($_GET['action'] == "list") {
    listpage($listtitle, $listsql, $fieldsarray, $filename, $orderby, $sort, $extra);
} else {
    echo $form->fetch();
}
include "footer.php";
Пример #2
0
    $MM_columnsStr = "name|',none,''|mod_id|',none,''|mod_intro_list_id|',none,''|mod_intro_detail_id|',none,''|sql|',none,''|list_html|',none,''|detail_html|',none,''|display_fields|',none,''|sort_field|',none,''|sort_class|',none,''|sort_field2|',none,''|sort_class2|',none,''|sql_order|',none,''";
    //|$delim,$altVal,$emptyVal|  |',none,''|
    require "../Connections/insetstuff.php";
    require "../Connections/dataactions.php";
    ob_end_flush();
}
if (isset($_GET['id'])) {
    $R__MMColParam = $_GET['id'];
} else {
    $R__MMColParam = "8000000";
}
$R = $dbcon->Execute("SELECT * FROM {$table} WHERE id = {$R__MMColParam}") or die($dbcon->ErrorMsg());
$rec_id =& new Input('hidden', 'MM_recordId', $_GET['id']);
//build form
$html = $buildform->start_table('name');
$html .= $buildform->add_header('Add/Edit ' . $listtitle, 'banner');
$html .= addfield('name');
$html .= $buildform->add_header('HTML for Display Pages');
$html .= addfield('list_html', 'List HTML', 'textarea', $R->Fields("list_html"), '', '55', '15');
$html .= addfield('detail_html', 'Detail HTML', 'textarea', $R->Fields("detail_html"), '', '55', '15');
$html .= $buildform->add_header('SQL');
$html .= addfield('sql', 'SQL', 'textarea', $R->Fields("sql"));
$html .= addfield('sql_order');
$html .= addfield('display_fields', 'Display Fields', 'textarea', $R->Fields("display_fields"));
$html .= $buildform->add_header('Fields for Grouping');
$html .= addfield('sort_field');
$html .= addfield('sort_class', "Sort HTML", 'textarea', $R->Fields("sort_class"));
$html .= addfield('sort_field2');
$html .= addfield('sort_class2', "2nd Level Sort HTML", 'textarea', $R->Fields("sort_class2"));
$html .= $buildform->add_header('Module and Text Page IDs');
$html .= addfield('mod_id');
Пример #3
0
$buildform = new BuildForm();
include_once "FeedOnFeeds/init.php";
$table = "px_feeds";
$listtitle = "Subscribed Feeds";
$listsql = "select * from {$table} WHERE(isNull(service) OR service='Content') ";
$orderby = " order by id desc ";
$fieldsarray = array('ID' => 'id', 'Title' => 'title', 'URL' => 'url');
$url = $_POST['rss_url'];
if (!$url) {
    $url = $_GET['rss_url'];
}
$opml = $_POST['opml_url'];
$file = $_POST['opml_file'];
$maxfilesize =& new Input('hidden', 'MAX_FILE_SIZE', '100000');
$html = $buildform->start_table('name');
$html .= $buildform->add_header('Add RSS Feed', 'banner');
$html .= $buildform->add_content($maxfilesize->fetch());
$html .= addfield('rss_url', 'RSS or Weblog URL:', 'text');
$html .= addfield('opml_url', 'OPML URL:', 'text');
$html .= $buildform->add_content($buildform->add_btn());
$html .= $buildform->end_table();
$form =& new Form();
$form->set_contents($html);
include "header.php";
echo $form->fetch();
if ($url) {
    fof_add_feed($url);
}
if ($opml) {
    if (!($content_array = file($opml))) {
        echo "Cannot open {$opml}<br>";
Пример #4
0
	$htmlt=$dbcon->Execute("select header2 from template where id =1 ") or DIE($dbcon->ErrorMsg());
	$htmltemplate = $htmlt->Fields("header2");
	$htmltemplate = str_replace("Header Image", $websitename, $htmltemplate);
	$htmltemplate = str_replace("navigation", $fnav, $htmltemplate);
	$sql = "update template set header2 = '$htmltemplate' where id=1 ";
	$updateit=$dbcon->Execute($sql) or DIE($dbcon->ErrorMsg());
	ampredirect("articlelist.php");
}

//declare form objects
$rec_id = & new Input('hidden', 'MM_recordId', $_GET[id]);

//build form
$html  = "<h2>AMP SETUP WIZARD</h2>"; 
$html .= $buildform->start_table('wizard');
$html .= $buildform->add_header('Site Information');

$html .= addfield('websitename','Web Site Name','text');
$html .= addfield('basepath','Website URL','text');
$html .= addfield('metadescription','Meta Description','textarea');
$html .= addfield('emfrom','System email sent from this address:','text');
$html .= addfield('emfaq','System Adminsitrators Email Address','text');

$html .= $buildform->add_header('Top Level Sections');
$html .= addfield('section1','Section Name','text');
$html .= addfield('desc_section1','Intro Text','textarea');
$html .= addfield('section2','Section Name','text');
$html .= addfield('desc_section2','Intro Text','textarea');
$html .= addfield('section3','Section Name','text');
$html .= addfield('desc_section3','Intro Text','textarea');
$html .= addfield('section4','Section Name','text');
Пример #5
0
    #$imnae2 = upload_image($_POST['newname'],$getimgset->Fields("optw"),$getimgset->Fields("optl"),$getimgset->Fields("thumb"));
}
// insert, update, delete
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>';
}
Пример #6
0
if ($r->Fields("new") == "1") {
    echo "CHECKED";
}
?>
>
              <?php 
if ($MM_new) {
    echo $MM_new;
} else {
    echo "LISTED AS NEW";
}
?>
 </td></tr>
			  <?php 
if ($AMP_customartfield1 or $AMP_customartfield2 or $AMP_customartfield3 or $AMP_customartfield4) {
    echo $buildform->add_header('Custom AMP Fields');
    if ($AMP_customartfield1) {
        echo addfield($AMP_customartfield1[0], $AMP_customartfield1[1], $AMP_customartfield1[2], $r->Fields("custom1"), $AMP_customartfield1[4]);
    }
    if ($AMP_customartfield2) {
        echo addfield($AMP_customartfield2[0], $AMP_customartfield2[1], $AMP_customartfield2[2], $r->Fields("custom2"), $AMP_customartfield2[4]);
    }
    if ($AMP_customartfield3) {
        echo addfield($AMP_customartfield3[0], $AMP_customartfield3[1], $AMP_customartfield3[2], $r->Fields("custom3"), $AMP_customartfield3[4]);
    }
    if ($AMP_customartfield4) {
        echo addfield($AMP_customartfield4[0], $AMP_customartfield4[1], $AMP_customartfield4[2], $r->Fields("custom4"), $AMP_customartfield4[4]);
    }
}
?>
		     <tr class="intitle">