Esempio n. 1
0
 function RtfGenerator($con)
 {
     $this->con = $con;
     $this->fielddata = ProcessFields($con);
     foreach ($this->maptagsrc as $key => $value) {
         $this->maptag["{$key}"] = $value[0];
         $this->maptag["{$key}/"] = $value[0] . $value[1];
         $this->maptag["/{$key}"] = $value[1];
     }
 }
<html>
	<head>
	    <title>CTC Newsletter - Fields</title>
		<link rel="shortcut icon" href="icon.gif" />
		<style>
			<?php 
require 'editor.css';
?>
			#fieldstab { border: solid 2px black; border-bottom: solid 2px white; background: none;}
		</style>
		<script type="text/javascript" src="/mambots/editors/tinymce3.0.3/jscripts/tiny_mce/tiny_mce.js"></script>
	</head>
	<body onload=Load()>
		<script>
		<?php 
ProcessFields($con);
$date = $_POST["date"];
if (!$con->query("UPDATE ctcweb9_newsletter.fields SET `order` = id WHERE `order` < 0")) {
    die($con->error);
}
$table = 'ctcweb9_newsletter.fields';
$tableroot = 'ctcweb9_newsletter.fieldsGrouped';
$groupcols = JsonFromQuery($con, "SHOW FULL COLUMNS FROM {$table} LIKE 'id'") . ',' . JsonFromQuery($con, "SHOW FULL COLUMNS FROM {$table} LIKE 'type'");
$grouprows = JsonFromQuery($con, "SELECT min(id) id, `type` " . "FROM {$table} GROUP BY `type`");
$cols = JsonFromQuery($con, "SHOW FULL COLUMNS FROM {$table}");
$positions = "SELECT DISTINCT con_position name FROM ctcweb9_joom1.jos_contact_details";
$columns = "SELECT DISTINCT `column`     name FROM {$table}";
$types = "SELECT DISTINCT `type`       name FROM {$table}";
?>
		</script>
	    <form name="newsletterform" method="post" onsubmit="return false">