Source for file add.php
Documentation is available at add.php
* @package linea21.modules
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
//////////// Check Inclusion de pages ////////////
include_once("../lib/lib_common.php");
<a href="index.php" class="chemin_home"> <? echo _t('way','home'); ?></a>
<a href=" <?php echo $rub_link; ?>" id="chemin_ <? echo $rub; ?>" class="chemin_rub"> <? echo _t('menu','newsletter'); ?></a>
$mask_statut_D= 'checked="checked"';
if(isset ($_POST['enregistrer'])) {
$result= $newsletter_object->AddNewsletter($data_table, $sql_object);
$link_confirm= "confirm.php?rub=". $rub. "&todo=". $todo;
if(isset ($_POST['valider'])) {
$table[0]= $_POST['newsletter_title'];
$table[1]= $_POST['newsletter_body'];
$table[3]= $_POST['newsletter_statut'];
$integrity= $newsletter_object->CheckDataIntegrity($table);
$form_title= formatText($_POST['newsletter_title'], $text_format);
$form_body= formatText($_POST['newsletter_body'], $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= '';
include_once(THEME_ADMIN_PATH. "quickicons.php");
if(!isset ($integrity) || is_string($integrity)) {
<div class="contentcontainer">
include_once($dir. "/menurub.php");
<form id="addnews" action=" <?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post">
<label for="newsletter_title"> <? echo _t('newsletter','title'); ?> : *</label>
<input name="newsletter_title" type="text" class="textfield" id="newsletter_title" maxlength="200" value=" <?php echo $form_title; ?>" />
<label for="newsletter_body"> <? echo _t('newsletter','body'); ?> : *</label>
<textarea id="newsletter_body" name="newsletter_body" class="largetextfield" <?php echo AREA_SETTINGS; ?>> <?php echo $form_body; ?></textarea>
<label for="statut_D"> <? echo _t('newsletter','statut'); ?> : </label>
<input name="newsletter_statut" type="radio" id="statut_D" value="D" <?php echo $mask_statut_D; ?> /><span class="radio"> <?php echo _t('statut','draft'); ?></span>
<input name="newsletter_statut" type="radio" id="statut_W" value="W" <?php echo $mask_statut_W; ?> /><span class="radio"> <?php echo _t('newsletter','nightsend'); ?></span>
<input name="rub" type="hidden" value=" <?php echo $rub; ?>" id="rub" />
<input name="todo" type="hidden" value=" <?php echo $todo; ?>" id="todo" />
<input name="valider" type="submit" value=" <? echo _t('btn','valid') ?>" class="button" id="valider" />
<?php include_once($dir. "/help.php"); ?>
<div class="contentcontainer">
include_once($dir. "/menurub.php");
echo "<dl class=\"dl3\">\n";
echo "<dt>". _t('newsletter','title'). "</dt>\n";
echo "<dd>". $form_title. "</dd>\n";
echo "<dt>". _t('newsletter','body'). " :</dt>\n";
echo "<dt>". _t('divers','statut'). "</dt>\n";
<form id="addscale" action=" <?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post">
<input name="rub" type="hidden" value=" <?php echo $rub; ?>" id="rub" />
<input name="todo" type="hidden" value=" <?php echo $todo; ?>" id="todo" />
<input name="data_table" type="hidden" value=" <?php echo $table; ?>" id="data_table" />
<input name="retour" type="button" value=" <? echo _t('btn','preview'); ?>" class="button" id="retour" onclick="history.go(-1);" />
<input name="enregistrer" type="submit" value=" <? echo _t('btn','save'); ?>" class="button" id="valider" />
<?php include_once($dir. "/help.php"); ?>
|