* @version $id SVN * @access public * @license http://opensource.org/licenses/gpl-3.0.html */ //////////// Check Inclusion de pages //////////// if (!function_exists('AuthenthificationProcess')) { include_once("../lib/lib_common.php"); ReloadIndex('admin'); } //////////// ?>
'._t('newsletter', 'content').'

', $xml->body->asXML()); $newsletter_object = new newsletter; if(isset($_POST['enregistrer'])) { $data_table=unserialize(urldecode($_POST['data_table'])); $result=$newsletter_object->AddNewsletter($data_table, $sql_object); $link_confirm="confirm.php?rub=".$rub."&todo=".$todo; if(is_numeric($result)) header("Location: ".$link_confirm); else system_error(); } if(isset($_POST['valider'])) { $table[0]=$_POST['newsletter_title']; $html = $_POST['newsletter_body']; if (get_magic_quotes_gpc()) $html=stripslashes($html); $html = removeEmptyP($html); // we get only the text contained into #main div include_once('../lib/vendor/simpleDOM/SimpleDOM.php'); $xml = simpledom_load_string($html); $att = 'id'; $body_content = ''; foreach ($xml->children() as $el) { if($el->attributes()->$att == 'main') { $body_content = $el->innerHTML(); } } $table[1]=$body_content; $table[2]=GetSessionElement('id'); // ID posteur $table[3]=$_POST['newsletter_statut']; $newsletter_object= new newsletter; $integrity=$newsletter_object->CheckDataIntegrity($table); if(is_string($integrity)) { $text_format='2FIELD'; $body_content=$_POST['newsletter_body']; } else { $text_format='2HTML'; } $form_title=formatText($_POST['newsletter_title'], $text_format); $form_body=formatText($body_content, $text_format); if($_POST['newsletter_statut']=='D') $mask_statut_D="checked=\"checked\""; else $mask_statut_D=''; if($_POST['newsletter_statut']=='W') $mask_statut_W="checked=\"checked\""; else $mask_statut_P=''; $table=urlencode(serialize($table)); } include_once(THEME_ADMIN_PATH."quickicons.php"); ?>

:
/> />

\n"; echo "
"._t('newsletter','title')."
\n"; echo "
". $form_title."
\n"; echo "
"._t('newsletter','body')." :
\n"; echo "
".linkin_content($form_body)."
\n"; echo "
"._t('divers','statut')."
\n"; echo "
". display_statut($_POST['newsletter_statut']). "
\n"; echo "\n"; ?>