14 if (!defined(
'IN_PEEL')) {
25 $result[
'menu_items'][
'content_various'][
$GLOBALS[
'wwwroot_in_admin'] .
'/modules/banner/administrer/banner.php'] = $GLOBALS[
"STR_ADMIN_MENU_CONTENT_BANNERS"];
41 $frm[
"reference"] =
"";
43 $frm[
"description"] =
"";
51 $frm[
"tag_html"] =
"";
52 $frm[
'id_categorie'] =
"";
53 $frm[
'extra_javascript'] =
"";
56 $frm[
"annonce_number"] =
"";
57 $frm[
"on_home_page"] =
"";
58 $frm[
"on_ad_creation_page"] =
"";
59 $frm[
"on_first_page_category"] =
"";
60 $frm[
"on_other_page_category"] =
"";
61 $frm[
"on_ad_page_details"] =
"";
62 $frm[
"on_other_page"] =
"";
63 $frm[
"pages_allowed"] =
"";
64 $frm[
"keywords"] =
"";
66 $frm[
"titre_bouton"] =
$GLOBALS[
"STR_MODULE_BANNER_ADMIN_ADD_BUTTON"];
67 $frm[
"nouveau_mode"] =
"insere";
85 $qid =
query(
"SELECT *
90 $frm[
"nouveau_mode"] =
"maj";
91 $frm[
"titre_bouton"] =
$GLOBALS[
'STR_ADMIN_FORM_SAVE_CHANGES'];
104 if (
$frm[
'nouveau_mode'] !=
'insere') {
105 $title =
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_UPDATE'];
107 $title =
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_CREATE'];
109 $tpl =
$GLOBALS[
'tplEngine']->createTemplate(
'modules/bannerAdmin_formulaire_banniere.tpl');
111 $tpl->assign(
'title', $title);
112 $tpl->assign(
'mode',
$frm[
"nouveau_mode"]);
115 $tpl->assign(
'description',
vb(
$frm[
"description"]));
117 $tpl->assign(
'extra_javascript',
vb(
$frm[
"extra_javascript"]));
118 $tpl->assign(
'keywords',
vb(
$frm[
"keywords"]));
119 $tpl->assign(
'tag_html',
vb(
$frm[
"tag_html"]));
121 $tpl->assign(
'position',
vb(
$frm[
"position"]));
123 $tpl->assign(
'banner_help', affiche_contenu_html(
"banner_help",
true));
124 $tpl->assign(
'cette_page_href',
$GLOBALS[
'administrer_url'] .
'/sites.php');
125 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_PLACE_EXPLAIN', sprintf(
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_PLACE_EXPLAIN'],
$GLOBALS[
'administrer_url'] .
'/sites.php'));
129 $tpl->assign(
'on_other_page_category',
vb(
$frm[
"on_other_page_category"]));
130 $tpl->assign(
'on_home_page',
vb(
$frm[
"on_home_page"]));
131 $tpl->assign(
'on_other_page',
vb(
$frm[
"on_other_page"]));
132 $tpl->assign(
'on_search_engine_page',
vb(
$frm[
"on_search_engine_page"]));
134 $tpl->assign(
'on_first_page_category',
vb(
$frm[
"on_first_page_category"]));
137 $tpl->assign(
'on_ad_creation_page',
vb(
$frm[
"on_ad_creation_page"]));
138 $tpl->assign(
'on_ad_page_details',
vb(
$frm[
"on_ad_page_details"]));
140 $tpl->assign(
'annonce_number',
vb(
$frm[
"annonce_number"]));
141 $tpl->assign(
'pages_allowed',
vb(
$frm[
"pages_allowed"]));
142 $tpl->assign(
'STR_MODULE_ANNONCES_DESCRIPTION',
$GLOBALS[
'STR_MODULE_ANNONCES_DESCRIPTION']);
145 FROM peel_categories_annonces
153 $tpl_cat_opts = array();
155 $tpl_cat_opts[] = array(
156 'value' => intval($cat[
'id']),
157 'issel' =>
vb(
$frm[
"id_categorie"]) == $cat[
'id'],
158 'name' => $cat[
'nom_' .
$_SESSION[
'session_langue']]
161 $tpl->assign(
'cat_options', $tpl_cat_opts);
162 $tpl->assign(
'conf_site_href',
$GLOBALS[
'administrer_url'] .
'/sites.php?mode=modif&id=1');
163 $tpl->assign(
'drop_src',
$GLOBALS[
'administrer_url'] .
'/images/b_drop.png');
165 if (!empty(
$frm[
"image"])) {
168 'nom' =>
$frm[
"image"],
176 $tpl->assign(
'image', $tpl_image);
181 $tpl->assign(
'titre_bouton',
vb(
$frm[
"titre_bouton"]));
182 $tpl->assign(
'STR_BEFORE_TWO_POINTS',
$GLOBALS[
'STR_BEFORE_TWO_POINTS']);
183 $tpl->assign(
'STR_ADMIN_WEBSITE',
$GLOBALS[
'STR_ADMIN_WEBSITE']);
186 $tpl->assign(
'STR_ADMIN_ONLINE',
$GLOBALS[
'STR_ADMIN_ONLINE']);
187 $tpl->assign(
'STR_ADMIN_OFFLINE',
$GLOBALS[
'STR_ADMIN_OFFLINE']);
188 $tpl->assign(
'STR_ADMIN_LINK',
$GLOBALS[
'STR_ADMIN_LINK']);
189 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_EXTRA_JAVASCRIPT',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_EXTRA_JAVASCRIPT']);
190 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_KEYWORDS',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_KEYWORDS']);
191 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_TAG_HTML',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_TAG_HTML']);
192 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_TAG_HTML_EXPLAIN',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_TAG_HTML_EXPLAIN']);
193 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_TARGET',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_TARGET']);
194 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_TARGET_SELF',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_TARGET_SELF']);
195 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_TARGET_BLANK',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_TARGET_BLANK']);
196 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_TARGET_TOP',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_TARGET_TOP']);
197 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_TARGET_PARENT',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_TARGET_PARENT']);
198 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_PLACE',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_PLACE']);
199 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_PLACE_EXPLAIN',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_PLACE_EXPLAIN']);
200 $tpl->assign(
'STR_ADMIN_POSITION',
$GLOBALS[
'STR_ADMIN_POSITION']);
201 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_POSITION_EXPLAIN',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_POSITION_EXPLAIN']);
202 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_AD_PLACE',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_AD_PLACE']);
203 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_AD_ID',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_AD_ID']);
204 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_ODD_EVEN_ALL',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_ODD_EVEN_ALL']);
205 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_ODD_EVEN_ODD',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_ODD_EVEN_ODD']);
206 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_ODD_EVEN_EVEN',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_ODD_EVEN_EVEN']);
207 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_START_PUBLICATION_DATE',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_START_PUBLICATION_DATE']);
208 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_END_PUBLICATION_DATE',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_END_PUBLICATION_DATE']);
209 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_DATES_EXPLAIN',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_DATES_EXPLAIN']);
212 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_SPACE_EXPLAIN',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_SPACE_EXPLAIN']);
213 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_ON_AD_PAGE_DETAILS',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_ON_AD_PAGE_DETAILS']);
214 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_ON_ANNOUNCEMENT_CREATION_PAGE',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_ON_ANNOUNCEMENT_CREATION_PAGE']);
215 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_ON_FIRST_PAGE_CATEGORY',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_ON_FIRST_PAGE_CATEGORY']);
216 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_ON_OTHER_PAGE_CATEGORY',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_ON_OTHER_PAGE_CATEGORY']);
217 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_ON_HOME_PAGE',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_ON_HOME_PAGE']);
218 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_ON_OTHER_PAGE',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_ON_OTHER_PAGE']);
219 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_ON_SEARCH_ENGINE_PAGE',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_ON_SEARCH_ENGINE_PAGE']);
220 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_IMAGE_OR_FLASH',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_IMAGE_OR_FLASH']);
221 $tpl->assign(
'STR_ADMIN_FILE_NAME',
$GLOBALS[
'STR_ADMIN_FILE_NAME']);
222 $tpl->assign(
'STR_ADMIN_DELETE_IMAGE',
$GLOBALS[
'STR_ADMIN_DELETE_IMAGE']);
223 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_WIDTH',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_WIDTH']);
224 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_HEIGHT',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_HEIGHT']);
225 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_SIZE_EXPLAIN',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_SIZE_EXPLAIN']);
226 $tpl->assign(
'STR_ADMIN_LANGUAGE',
$GLOBALS[
'STR_ADMIN_LANGUAGE']);
227 $tpl->assign(
'STR_ADMIN_DESCRIPTION',
$GLOBALS[
'STR_ADMIN_DESCRIPTION']);
242 $qid =
query(
"SELECT description
249 echo
$GLOBALS[
'tplEngine']->createTemplate(
'global_success.tpl', array(
'message' => sprintf(
$GLOBALS[
"STR_MODULE_BANNER_ADMIN_MSG_DELETED_OK"], $prod[
'description'])))->fetch();
251 $this_cache_object =
new Cache(null, array(
'group' =>
'affiche_banner_data'));
252 $this_cache_object->delete_cache_file(
true);
253 unset($this_cache_object);
266 if (empty(
$frm[
'etat'])) {
269 if (!empty(
$frm[
'image']) || !empty(
$frm[
'tag_html'])) {
270 $sql =
"INSERT INTO peel_banniere (
280 , do_not_display_on_pages_related_to_user_ids_list
283 , on_ad_creation_page";
286 , on_first_page_category
287 , on_other_page_category
288 , on_search_engine_page
314 , '" . intval(
vn(
$frm[
'annonce_number'])) .
"'
315 , '" . intval(
vn(
$frm[
'on_ad_page_details'])) .
"'
316 , '" . intval(
vn(
$frm[
'on_ad_creation_page'])) .
"'";
319 , '" . intval(
vn(
$frm[
'on_first_page_category'])) .
"'
320 , '" . intval(
vn(
$frm[
'on_other_page_category'])) .
"'
321 , '" . intval(
vn(
$frm[
'on_search_engine_page'])) .
"'
328 , '" . intval(
vn(
$frm[
'id_categorie'])) .
"'
329 , '" . intval(
vn(
$frm[
'width'])) .
"'
330 , '" . intval(
vn(
$frm[
'height'])) .
"'
331 , '" . intval(
vn(
$frm[
'rang'])) .
"'
332 , '" . intval(
vn(
$frm[
'on_home_page'])) .
"'
333 , '" . intval(
vn(
$frm[
'on_other_page'])) .
"'
338 echo
$GLOBALS[
'tplEngine']->createTemplate(
'global_success.tpl', array(
'message' => sprintf(
$GLOBALS[
"STR_MODULE_BANNER_ADMIN_MSG_OK"],
vb($_POST[
'description']))))->fetch();
340 $this_cache_object =
new Cache(null, array(
'group' =>
'affiche_banner_data'));
341 $this_cache_object->delete_cache_file(
true);
342 unset($this_cache_object);
344 echo
$GLOBALS[
'tplEngine']->createTemplate(
'global_error.tpl', array(
'message' =>
$GLOBALS[
"STR_MODULE_BANNER_ADMIN_ERROR_INSERTED"]))->fetch();
358 $sql =
'UPDATE peel_banniere SET
366 , annonce_number = "' . intval(
vn(
$frm[
'annonce_number'])) .
'"
369 , on_ad_page_details = "' . intval(
vn(
$frm[
'on_ad_page_details'])) .
'"
370 , on_ad_creation_page = "' . intval(
vn(
$frm[
'on_ad_creation_page'])) .
'"';
373 , on_other_page_category = "' . intval(
vn(
$frm[
'on_other_page_category'])) .
'"
374 , on_first_page_category = "' . intval(
vn(
$frm[
'on_first_page_category'])) .
'"
375 , on_search_engine_page = "' . intval(
vn(
$frm[
'on_search_engine_page'])) .
'"
379 , on_home_page = "' . intval(
vn(
$frm[
'on_home_page'])) .
'"
380 , on_other_page = "' . intval(
vn(
$frm[
'on_other_page'])) .
'"
384 , id_categorie = "' . intval(
vn(
$frm[
'id_categorie'])) .
'"
385 , width = "' . intval(
vn(
$frm[
'width'])) .
'"
386 , height = "' . intval(
vn(
$frm[
'height'])) .
'"
387 , rang = "' . intval(
vn(
$frm[
'rang'])) .
'"
390 WHERE id = "' . intval(
$id) .
'"';
392 $ouptut =
$GLOBALS[
'tplEngine']->createTemplate(
'global_success.tpl', array(
'message' => sprintf(
$GLOBALS[
"STR_MODULE_BANNER_ADMIN_MSG_UPDATED_OK"],
$id)))->fetch();
394 $this_cache_object =
new Cache(null, array(
'group' =>
'affiche_banner_data'));
395 $this_cache_object->delete_cache_file(
true);
396 unset($this_cache_object);
398 $ouptut =
$GLOBALS[
'tplEngine']->createTemplate(
'global_error.tpl', array(
'message' =>
$GLOBALS[
"STR_MODULE_BANNER_ADMIN_ERR_UPDATED"]))->fetch();
410 $tpl =
$GLOBALS[
'tplEngine']->createTemplate(
'modules/bannerAdmin_liste.tpl');
411 $tpl->assign(
'add_src',
$GLOBALS[
'administrer_url'] .
'/images/add.png');
413 $tpl->assign(
'drop_src',
$GLOBALS[
'administrer_url'] .
'/images/b_drop.png');
414 $tpl->assign(
'edit_src',
$GLOBALS[
'administrer_url'] .
'/images/b_edit.png');
416 FROM peel_banniere pb " . $inner .
"
419 " ORDER BY date_debut DESC";
423 $tpl_results = array();
426 $extension = @pathinfo($ligne[
'image'], PATHINFO_EXTENSION);
431 }
elseif (!empty($ligne[
'image'])) {
434 $tpl_results[] = array(
435 'tr_rollover' => tr_rollover(
$i,
true),
436 'description' => $ligne[
'description'],
437 'drop_href' =>
get_current_url(
false) .
'?mode=suppr&id=' . $ligne[
'id'],
438 'edit_href' =>
get_current_url(
false) .
'?mode=modif&id=' . $ligne[
'id'],
439 'position' => $ligne[
'position'],
440 'rang' => $ligne[
'rang'],
445 'hit' => $ligne[
'hit'],
446 'vue' => $ligne[
'vue'],
447 'lang' => $ligne[
'lang'],
448 'etat_onclick' =>
'change_status("banner", "' . $ligne[
'id'] .
'", this, "'.
$GLOBALS[
'administrer_url'] .
'")',
449 'modif_etat_src' => $GLOBALS[
'administrer_url'] .
'/images/' . (empty($ligne[
'etat']) ?
'puce-blanche.gif' :
'puce-verte.gif'),
454 $tpl->assign(
'results', $tpl_results);
456 $tpl->assign(
'links_multipage',
$Links->GetMultipage());
457 $tpl->assign(
'STR_ADMIN_WEBSITE',
$GLOBALS[
'STR_ADMIN_WEBSITE']);
458 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_LIST_TITLE',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_LIST_TITLE']);
459 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_CREATE',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_CREATE']);
460 $tpl->assign(
'STR_ADMIN_ACTION',
$GLOBALS[
'STR_ADMIN_ACTION']);
461 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_PLACE',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_PLACE']);
462 $tpl->assign(
'STR_ADMIN_POSITION',
$GLOBALS[
'STR_ADMIN_POSITION']);
463 $tpl->assign(
'STR_ADMIN_NAME',
$GLOBALS[
'STR_ADMIN_NAME']);
465 $tpl->assign(
'STR_ADMIN_BEGIN_DATE',
$GLOBALS[
'STR_ADMIN_BEGIN_DATE']);
466 $tpl->assign(
'STR_ADMIN_END_DATE',
$GLOBALS[
'STR_ADMIN_END_DATE']);
467 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_HIT',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_HIT']);
468 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_VIEWED',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_VIEWED']);
469 $tpl->assign(
'STR_ADMIN_LANGUAGE',
$GLOBALS[
'STR_ADMIN_LANGUAGE']);
471 $tpl->assign(
'STR_ADMIN_DELETE_WARNING',
$GLOBALS[
'STR_ADMIN_DELETE_WARNING']);
473 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_UPDATE',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_UPDATE']);
474 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_NOTHING_FOUND',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_NOTHING_FOUND']);
495 query(
"UPDATE peel_banniere
501 echo
$GLOBALS[
'tplEngine']->createTemplate(
'global_success.tpl', array(
'message' => sprintf(
$GLOBALS[
'STR_ADMIN_RUBRIQUES_MSG_DELETED_OK'], $file[
'image'])))->fetch();
503 $this_cache_object =
new Cache(null, array(
'group' =>
'affiche_banner_data'));
504 $this_cache_object->delete_cache_file(
true);
505 unset($this_cache_object);
516 $tpl =
$GLOBALS[
'tplEngine']->createTemplate(
'modules/bannerAdmin_filtre.tpl');
521 $sql_annonce_categorie =
query(
'SELECT id,nom_' .
$_SESSION[
'session_langue'] .
'
522 FROM peel_categories_annonces pca
524 ORDER BY nom_' .
$_SESSION[
'session_langue'] .
'');
525 while ($this_categorie =
fetch_assoc($sql_annonce_categorie)) {
527 'value' => $this_categorie[
'id'],
528 'issel' => intval(
vb(
$frm[
'filter_categorie_banniere'])) == $this_categorie[
'id'],
529 'name' =>
vb($this_categorie[
'nom_' .
$_SESSION[
'session_langue'] .
''])
533 $sql_annonce_categorie =
query(
'SELECT id, nom_' .
$_SESSION[
'session_langue'] .
'
534 FROM peel_categories pc
536 ORDER BY nom_' .
$_SESSION[
'session_langue']);
537 while ($this_categorie =
fetch_assoc($sql_annonce_categorie)) {
539 'value' => $this_categorie[
'id'],
540 'issel' =>
vb(
$frm[
'filter_categorie_banniere']) == $this_categorie[
'id'],
541 'name' =>
vb($this_categorie[
'nom_' .
$_SESSION[
'session_langue'] .
''])
546 $tpl->assign(
'filter_lang',
vb(
$frm[
'filter_lang']));
547 $tpl->assign(
'filter_date_debut',
vb(
$frm[
'filter_date_debut']));
548 $tpl->assign(
'filter_date_fin',
vb(
$frm[
'filter_date_fin']));
549 $tpl->assign(
'filter_description',
vb(
$frm[
'filter_description']));
550 $tpl->assign(
'filter_categorie_banniere',
vb(
$frm[
'filter_categorie_banniere']));
551 $tpl->assign(
'filter_etat',
vb(
$frm[
'filter_etat']));
552 $tpl->assign(
'STR_BEFORE_TWO_POINTS',
$GLOBALS[
'STR_BEFORE_TWO_POINTS']);
554 $tpl->assign(
'STR_ADMIN_CHOOSE_SEARCH_CRITERIA',
$GLOBALS[
'STR_ADMIN_CHOOSE_SEARCH_CRITERIA']);
555 $tpl->assign(
'STR_ADMIN_SEARCH_IN_TITLE',
$GLOBALS[
'STR_ADMIN_SEARCH_IN_TITLE']);
557 $tpl->assign(
'STR_ADMIN_LANGUAGE',
$GLOBALS[
'STR_ADMIN_LANGUAGE']);
558 $tpl->assign(
'STR_ADMIN_BEGIN_DATE',
$GLOBALS[
'STR_ADMIN_BEGIN_DATE']);
559 $tpl->assign(
'STR_ADMIN_END_DATE',
$GLOBALS[
'STR_ADMIN_END_DATE']);
561 $tpl->assign(
'STR_MODULE_BANNER_ADMIN_ALL',
$GLOBALS[
'STR_MODULE_BANNER_ADMIN_ALL']);
562 $tpl->assign(
'STR_ADMIN_ONLINE',
$GLOBALS[
'STR_ADMIN_ONLINE']);
563 $tpl->assign(
'STR_ADMIN_OFFLINE',
$GLOBALS[
'STR_ADMIN_OFFLINE']);
get_site_name($site_ids, $skip_rights_check=false)
Retourne le nom d'un ou de plusieurs sites à partir de l'id.
if(!empty($GLOBALS['site_parameters']['order_specific_field_titles'])) if(check_if_module_active('socolissimo')&&!empty($_REQUEST)&&!empty($_REQUEST['PUDOFOID'])&&!empty($_REQUEST['CEEMAIL'])&&!empty($_REQUEST['SIGNATURE'])&&!empty($_REQUEST['ORDERID'])) elseif(!empty($_POST)) elseif(check_if_module_active('socolissimo')&&!empty($_SESSION['session_commande']['is_socolissimo_order'])) foreach(array('bill'=> 1, 'ship'=> 2) as $address_type=> $session_commande_address_id) $frm['societe1']
affiche_formulaire_ajout_banniere($categorie_id=0, &$frm)
Affiche un formulaire vierge pour ajouter une bannière.
get_current_url($with_get=true, $get_short_url=false, $take_away_get_args_array=null)
get_current_url()
if(!defined('IN_PEEL')) banner_hook_admin_menu_items($params)
Renvoie les éléments de menu affichables.
insere_banniere(&$frm)
insere_banniere()
get_site_id_select_options($selected_site_id=null, $selected_site_name=null, $display_first_option=null, $select_current_site_id_by_default=false)
Créer les options pour le select qui liste les noms de sites configurés en back office.
affiche_filtre_banner($frm)
Supprime le produit spécifié par $id.
affiche_formulaire_modif_banniere($id, &$frm)
affiche_formulaire_modif_banniere()
nohtml_real_escape_string($value, $allowed_tags=null)
Protège les données pour insertion dans MySQL ET supprime les tags HTML pour protéger de toute sorte ...
if(!empty($_GET['id'])) if(isset($_POST['form_name'], $_POST['form_subject'], $_POST['form_text'], $_POST['form_lang'])&&empty($_GET['id'])) if(empty($_GET['id'])) $tpl
if(!defined('IN_PEEL')) $GLOBALS['page_types_array']
real_escape_string($value)
real_escape_string()
supprime_banniere($id)
supprime_banniere()
getFlashBannerHTML($url, $width=680, $height=250, $mode_transparent=false)
Renvoie le HTML d'un tag corespondant à l'URL du fichier flash transmis en paramètre.
get_filter_site_cond($table_technical_code, $table_alias=null, $use_strict_rights_if_in_admin=false, $specific_site_id=null, $exclude_public_items=false, $admin_force_multisite_if_allowed=false)
Retourne la condition SQL permettant de filtrer les données pour une table.
query($query, $die_if_error=false, $database_object=null, $silent_if_error=false, $security_sql_filter=true)
The query() function is meant to be called anywhere you want to make a query.
if(strlen($date2)== '10') if($type== 'users-by-age'&&a_priv('admin_users', true)) elseif($type== 'forums-count'&&a_priv('admin_content', true)) elseif($type== 'forums-categories'&&a_priv('admin_content', true)) elseif($type== 'users-count'&&a_priv('admin_users', true)) elseif($type== 'product-categories'&&a_priv('admin_products', true)) elseif($type== 'users-by-sex'&&a_priv('admin_users', true)) elseif($type== 'users-by-country'&&a_priv('admin_users', true)) elseif($type== 'sales'&&a_priv('admin_sales', true))
delete_banner_image($id, $file)
Supprime le produit spécifié par $id.
delete_uploaded_file_and_thumbs($filename)
delete_uploaded_file_and_thumbs()
fetch_assoc($query_result)
fetch_assoc()
affiche_formulaire_banniere(&$frm)
affiche_formulaire_banniere()
affiche_liste_banniere($inner= '', $cond= '')
affiche_liste_banniere()
get_site_id_sql_set_value($site_ids)
Retourne la valeur SQL d'un champ INT ou SET suivant que ce soit un entier ou un tableau.
maj_banniere($id, &$frm)
Met à jour la bannière $id avec de nouvelles valeurs.
get_url_from_uploaded_filename($filename)
get_url_from_uploaded_filename()
check_if_module_active($module_name, $specific_file_name=null)
Renvoie si un module est présent et activé ou non - Peut être appelé avant ou après le chargement d'u...
if(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']