当前位置: 首页>>代码示例>>PHP>>正文


PHP ajax_action_post函数代码示例

本文整理汇总了PHP中ajax_action_post函数的典型用法代码示例。如果您正苦于以下问题:PHP ajax_action_post函数的具体用法?PHP ajax_action_post怎么用?PHP ajax_action_post使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ajax_action_post函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: configuration_compteur_dist

function configuration_compteur_dist()
{
	global $spip_lang_right;

	$res = "<div class='verdana2'>"
	. _T('info_question_gerer_statistiques')
	. "</div>"
	. "<div class='verdana2'>"
	.  afficher_choix('activer_statistiques', 
			  $GLOBALS['meta']["activer_statistiques"],
			  array('oui' => _T('item_gerer_statistiques'),
				'non' => _T('item_non_gerer_statistiques')), ' &nbsp; ')
	  . "</div>";
	if ($GLOBALS['meta']["activer_statistiques"]=='oui'){
		$res .= "<br /><div class='verdana2' id='captures_voir'>"
		. _T('info_question_vignettes_referer')
		. "</div>"
		. "<div class='verdana2'>"
		.  afficher_choix('activer_captures_referers', 
				  $GLOBALS['meta']["activer_captures_referers"],
				  array('oui' => _T('info_question_vignettes_referer_oui'),
					'non' => _T('info_question_vignettes_referer_non')))
		  . "</div>";
	}


	$res = debut_cadre_trait_couleur("statistiques-24.gif", true, "", _T('info_forum_statistiques').aide ("confstat"))
	.  ajax_action_post('configurer', 'compteur', 'config_fonctions', '', $res)
	.  fin_cadre_trait_couleur(true);

	return ajax_action_greffe("configurer-compteur", '', $res);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:32,代码来源:compteur.php

示例2: configuration_langue_dist

function configuration_langue_dist()
{
 $l_site = $GLOBALS['meta']['langue_site'];
 $langue_site = traduire_nom_langue($l_site);

 $res = "<option value='$l_site' selected='selected'>$langue_site</option>\n";
 
 foreach (explode(",",$GLOBALS['meta']['langues_proposees']) as $l) {
	if ($l <> $l_site)
		$res .= "<option value='$l'>".traduire_nom_langue($l)."</option>\n";
 }

 $res = ajax_action_post('configurer',
			 'langue',
			 'config_lang', '',
			 "<label for='changer_langue_site'>" .
			 _T('info_langue_principale') .
			 "</label>" .
			 " : <select name='changer_langue_site' id='changer_langue_site'>\n$res</select>\n",
			 '');

 $res =  debut_cadre_couleur("langues-24.gif", true, "", _T('info_langue_principale') . "&nbsp;:&nbsp;" . $langue_site) .
	   _T('texte_selection_langue_principale') .
	  $res .
	   fin_cadre_couleur(true);

 return ajax_action_greffe("configurer-langue", '', $res);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:28,代码来源:langue.php

示例3: inc_petitionner_dist

function inc_petitionner_dist($id_article, $script, $args, $ajax=false)
{
	global $spip_lang_right;

	$petition = sql_fetsel("*", "spip_petitions", "id_article=$id_article");

	if (!autoriser('modererpetition', 'article', $id_article))
		return petitionner_decompte($id_article, $petition);

	$choix = petitionner_choisir($petition);

	if ($petition) {
			$res = $choix
			. petitionner_decompte($id_article, $petition)
			. petitionner_params($petition)
			. petitionner_message($petition);
			$class = '';
	} else {
			$res = $choix;
			$class = $ajax ? '' : ' visible_au_chargement';
	}

	$atts = " class='$class' style='float: $spip_lang_right;' id='valider_petition'";

	$res = ajax_action_post('petitionner', $id_article, $script, $args, $res,_T('bouton_changer'), $atts);

	return ajax_action_greffe("petitionner", $id_article, $res);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:28,代码来源:petitionner.php

示例4: configuration_visiteurs_dist

function configuration_visiteurs_dist()
{
	global $spip_lang_left ;

	if (!avoir_visiteurs(false,false)) {
		$res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">"
		. "\n<tr><td class='verdana2'>"
		. _T('info_question_accepter_visiteurs')
		. "</td></tr>"
		. "\n<tr><td style='text-align: $spip_lang_left' class='verdana2'>"
		. afficher_choix('accepter_visiteurs', $GLOBALS['meta']['accepter_visiteurs'],
				       array('oui' => _T('info_option_accepter_visiteurs'),
					'non' => _T('info_option_ne_pas_accepter_visiteurs')))
		. "</td></tr></table>\n";

		$res = ajax_action_post('configurer', 'visiteurs', 'config_contenu','',$res);
	} else {
		$res = _T('info_forums_abo_invites');
	}

	$res = debut_cadre_trait_couleur("redacteurs-24.gif", true, "", _T('info_visiteurs'))
	. $res
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-visiteurs', '', $res);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:26,代码来源:visiteurs.php

示例5: configuration_ie6config

function configuration_ie6config()
{
	$iecompat = $GLOBALS['meta']["iecompat"];
	if (!$iecompat) $iecompat = "non";

	$res = _T("msiecompat:choix_explication");
	
	$res .= afficher_choix('iecompat', $iecompat,
		array('non' => _T("msiecompat:choix_non"),
			'ifixpng' => _L('iFixPng'),
			'IE7' => _L("IE7.js"),
			'IE7squish' => _L("IE7.js + ie7-squish.js"),
			'IE8' => _L('IE8.js'),
			'IE8squish' => _L('IE8.js + ie7-squish.js')
			/*,
			'IE9' => _L('IE9.js'),
			'IE9squish' => _L('IE9.js + ie7-squish.js')
			*/
		), 
		" <br /> ");
	
	
	$res = debut_cadre_trait_couleur(find_in_path("imgs/ie6-logo24.png"), true, "", _T("msiecompat:choix_titre"))
	. ajax_action_post('configurer', 'ie6config', 'configuration','',$res)
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-ie6config', '', $res);

}
开发者ID:rhertzog,项目名称:lcs,代码行数:29,代码来源:ie6config.php

示例6: configuration_type_urls_dist

function configuration_type_urls_dist()
{
	if ($GLOBALS['type_urls'] != 'page') // fixe par mes_options
		return '';

	$dispo = array();
	foreach (find_all_in_path('urls/', '\w+\.php$', array()) as $f) {
		$r = basename($f, '.php');
		if ($r == 'index' OR strncmp('generer_',$r,8)==0) continue;
		include_once $f;
		$exemple = 'URLS_' . strtoupper($r) . '_EXEMPLE';
		$exemple = defined($exemple) ? constant($exemple) : '?';
		$dispo[$r] = "<em>$r</em> &mdash; <tt>" . $exemple . '</tt>';
	}

	$res = "<p class='verdana2'>"
		. _T('texte_type_urls')
		. "</p>"
		. "<div class='verdana2'>"
		. afficher_choix('type_urls', $GLOBALS['meta']['type_urls'], $dispo)
		. "</div>"
		. "<p><em>"
		. _T('texte_type_urls_attention', array('htaccess' => '<tt>.htaccess</tt>'))
		. "</em></p>";


	$res = '<br />'.debut_cadre_trait_couleur("", true, "",  _T('titre_type_urls').aide("confurl"))
	.  ajax_action_post('configurer', 'type_urls', 'config_fonctions', '', $res)
	.  fin_cadre_trait_couleur(true);

	return ajax_action_greffe("configurer-type_urls", '', $res);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:32,代码来源:type_urls.php

示例7: configuration_forums_prives_dist

function configuration_forums_prives_dist()
{
	$res = "<div class='verdana2'>"
	. _T('info_config_forums_prive')
	. "<br />\n"

	. "<p>"._T('info_config_forums_prive_objets')
	. "<br />\n"
	. afficher_choix('forum_prive_objets', $GLOBALS['meta']['forum_prive_objets'],
		array('oui' => _T('item_config_forums_prive_objets'),
			'non' => _T('item_non_config_forums_prive_objets')))
	."</p>\n"

	. "<p>"._T('info_config_forums_prive_global')
	. "<br />\n"
	. afficher_choix('forum_prive', $GLOBALS['meta']['forum_prive'],
		array('oui' => _T('item_config_forums_prive_global'),
			'non' => _T('item_non_config_forums_prive_global')))
	."</p>\n"

	. "<p>"._T('info_config_forums_prive_admin')
	. "<br />\n"
	. afficher_choix('forum_prive_admin', $GLOBALS['meta']['forum_prive_admin'],
		array('oui' => _T('item_activer_forum_administrateur'),
			'non' => _T('item_desactiver_forum_administrateur')))
	."</p>\n"

	. "</div>";

	$res = debut_cadre_trait_couleur("forum-interne-24.gif", true, "", _T('titre_config_forums_prive'))
	. ajax_action_post('configurer', 'forums_prives', 'config_contenu','',$res)
	 . fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-forums_prives', '', $res);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:35,代码来源:forums_prives.php

示例8: configuration_documents_dist

function configuration_documents_dist(){
	global $spip_lang_left, $spip_lang_right;

	$res = "<table border='0' cellspacing='1' cellpadding='3' width=\"100%\">";
	$res .= "<tr><td class='verdana2'>";
	$res .= _T('texte_documents_joints');
	$res .= _T('texte_documents_joints_2');
	$res .= "</td></tr>";

	$res .= "<tr>";
	$res .= "<td align='$spip_lang_left' class='verdana2'>";
	$res .= afficher_choix('documents_article',
		$GLOBALS['meta']["documents_article"],
		array('oui' => _T('item_autoriser_documents_joints'),
			'non' => _T('item_non_autoriser_documents_joints')), "<br />\n");
	$res .= "<br /><br />\n";
	$res .= afficher_choix('documents_rubrique',
		$GLOBALS['meta']["documents_rubrique"],
		array('oui' => _T('item_autoriser_documents_joints_rubriques'),
			'non' => _T('item_non_autoriser_documents_joints_rubriques')), "<br />\n");
	$res .= "<br /><br />\n";
	$res .= afficher_choix('documents_date',
		$GLOBALS['meta']["documents_date"],
		array('oui' => _T('item_autoriser_selectionner_date_en_ligne'),
			'non' => _T('item_non_autoriser_selectionner_date_en_ligne')), "<br />\n");
	$res .= "</td></tr>";
	$res .= "</table>\n";

	$res = debut_cadre_trait_couleur("doc-24.gif", true, "", _T('titre_documents_joints'))
	. ajax_action_post('configurer', 'documents', 'configuration','',$res)
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-documents', '', $res);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:34,代码来源:documents.php

示例9: configuration_notifications_forum_dist

function configuration_notifications_forum_dist()
{
	$res = '';
	$m = $GLOBALS['meta']['prevenir_auteurs'];
	$l = $GLOBALS['liste_des_forums'];
	unset($l['info_pas_de_forum']);
	foreach ($l as $desc => $val) {
		$name = 'prevenir_auteurs_' . $val;
		$lib = _T($desc);
		$vu = (($m == 'oui') OR strpos($m,",$val,")!==false);
		$res .= "<input type='checkbox' name='$name' value='oui' id='$name'"
			. ($vu ? " checked='checked'" : '')
			. " /> <label for='$name'>"
			. ($vu ? "<b>$lib</b>" : $lib)
			.  "</label><br />";
	}

	$res = "<div class='verdana2'>"
		. _T('info_option_email')
	  . "<br /><br />"
	  . $res
	  . "</div>\n";

	$res = debut_cadre_trait_couleur("mail-forum-24.gif", true, "", _T('info_envoi_forum'))
	. ajax_action_post('configurer_notifications_forum', 0, 'config_contenu','',$res)
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer_notifications_forum', 0, $res);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:29,代码来源:notifications_forum.php

示例10: forum_envoi_form

function forum_envoi_form($id, $row, $script, $statut, $titre, $corps, $form, $objet, $args, $fct_ajax='') {

	$id_parent = $row['id_forum'];
	$cat = $id . '/'
	  . $id_parent . '/'
	  . $statut . '/'
	  . $script . '/'
	  . $objet;

	// si reponse directe a l'article etc, reincruster tout le forum
	// sinon incruster juste le fil
	$args .= "#poster_forum_prive" 
	 . (!$id_parent ? '' : ("-" . $row['id_thread']));

	$corps .= "\n<div>&nbsp;</div>" .
	  debut_cadre_formulaire(($statut == 'privac') ? "" : 'background-color: #dddddd;', true) .
$form
	. "<div style='text-align: right'>"
	. "<input type='submit' value='"
	. _T('bouton_voir_message')
	. "' /></div>"
	. fin_cadre_formulaire(true);

	if (_AJAX)
	  return ajax_action_post('poster_forum_prive',$cat, $script, $args, $corps, array(),'','', "&id=$id&id_parent=$id_parent&statut=$statut", $fct_ajax);
	else return redirige_action_auteur('poster_forum_prive',$cat, $script, $args, $corps, "\nmethod='post' id='formulaire'");
}
开发者ID:rhertzog,项目名称:lcs,代码行数:27,代码来源:forum_envoi.php

示例11: configuration_previsualiseur_dist

function configuration_previsualiseur_dist()
{
	$recom = array("info_administrateurs" => _T('info_preview_admin'),
                       "info_redacteurs" =>  _T('info_preview_comite'));

	$voir = $GLOBALS['meta']["preview"];

	$res = '';

	foreach($GLOBALS['liste_des_statuts'] as $k => $v) {
		if (isset($recom[$k])) {
			$vu = strpos($voir,",$v,")!==false;
			$lib = _T($k);

			$res .= "<input type='checkbox' name='preview[]' value='$v' id='preview$v'"
			. ($vu ? " checked='checked'" : '')
			. " /> <label for='preview$v'>"
			. ($vu ? "<b>$lib</b>" : $lib)
			.  "</label><br />";
		}
	}

	$res = "<div class='verdana2'>"
	. _T('info_preview_texte')
	. "<br /><br />"
	. $res
	. "</div>";

	$res = debut_cadre_trait_couleur("naviguer-site.png", true, "", _T('previsualisation')
	. aide("previsu"))
	. ajax_action_post('configurer_previsualiseur', 0, 'config_fonctions', '', $res)
	. fin_cadre_trait_couleur(true);

	return ajax_action_greffe("configurer_previsualiseur", 0, $res);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:35,代码来源:previsualiseur.php

示例12: configuration_accueil_dist

function configuration_accueil_dist()
{
	$res = configuration_bloc_votre_site();

	$res = 
	debut_cadre_couleur("racine-site-24.gif", true).
	ajax_action_post('configurer', 'accueil', 'configuration','',$res)
	. fin_cadre_couleur(true)
	;

	return ajax_action_greffe('configurer-accueil','', $res);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:12,代码来源:accueil.php

示例13: configuration_relayeur_dist

function configuration_relayeur_dist($retour_proxy='')
{
	global $spip_lang_left;

	$res = $submit = '';

	$http_proxy = $GLOBALS['meta']["http_proxy"];
	$http_noproxy = $GLOBALS['meta']["http_noproxy"];

	if ($http_proxy) {
		include_spip('inc/distant');
		// Masquer un eventuel password authentifiant
		$http_proxy=entites_html(no_password_proxy_url($http_proxy));
		if ($http_proxy) {
			$res = "\n<p style='text-align: $spip_lang_left;' class='verdana1 spip_small'>"
			. "<label for='test_proxy'>" 
			. _T('texte_test_proxy')
			. "</label>"
			. "</p>"
			. "\n<p>"
			. "<input type='text' name='test_proxy' id='test_proxy' value='http://www.spip.net/' size='40' class='forml' />"
			. "</p>";

			if($retour_proxy) {
				$res .= debut_boite_info(true)
				. $retour_proxy
				. fin_boite_info(true);
			}
			$submit = array('valider_proxy' => _T('bouton_valider'),
					'tester_proxy' => _T('bouton_test_proxy'));
		}
	}

	$encours = "<label for='http_proxy'>" . ($http_proxy ? $http_proxy : "http://proxy:8080") . '</label>' ;
	$exemple = "<label for='http_noproxy'>" . ($http_noproxy ? $http_noproxy : "127.0.0.1 .mondomaine.net") . "</label>";
	$res = "\n<div class='verdana2'>"
	  . propre(_T('texte_proxy', array('proxy_en_cours' => "<b><tt><html>$encours</html></tt></b>")))
	  . "</div>"
	  . "\n<div class='verdana2'>"
	  . "<input type='text' name='http_proxy' id='http_proxy' size='40' class='forml' value='$http_proxy' />"
	  . "<br />"
	  . propre(_T('pas_de_proxy_pour', array('exemple' => "<b><tt><html>$exemple</html></tt></b>")))
	  . "<input type='text' name='http_noproxy' id='http_noproxy' size='40' class='forml' value='$http_noproxy' />"
	  . $res
	  . "</div>";

	$res = debut_cadre_trait_couleur("base-24.gif", true, "", _T('info_sites_proxy').aide ("confhttpproxy"))
	.  ajax_action_post('configurer_relayeur', 0, 'config_fonctions', '', $res, $submit)
	.  fin_cadre_trait_couleur(true);

	return ajax_action_greffe("configurer_relayeur", 0, $res);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:52,代码来源:relayeur.php

示例14: configuration_referenceur_dist

function configuration_referenceur_dist()
{
  global $spip_lang_right;

	$res =  "<p>"._T('texte_multilinguisme')."</p>"
	. "<div>"
	. _T('info_multi_articles')
	. "<div style='text-align: $spip_lang_right;'>"
	. afficher_choix('multi_articles', $GLOBALS['meta']['multi_articles'],
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</div>"
	. "</div>"
	. "<div>"
	. _T('info_multi_rubriques')
	. "<div style='text-align: $spip_lang_right;'>"
	. afficher_choix('multi_rubriques', $GLOBALS['meta']['multi_rubriques'],
		array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
	. "</div>"
	. "</div>";

	if  ($GLOBALS['meta']['multi_rubriques'] == 'oui') {
		$res .= "\n<div>"
		. _T('info_multi_secteurs')
		. "<div style='text-align: $spip_lang_right;'>"
		. afficher_choix('multi_secteurs', $GLOBALS['meta']['multi_secteurs'],
			array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
		. "</div>"
		. "</div>";
	} else
		$res .= "<input type='hidden' name='multi_secteurs' id='multi_secteurs' value='".$GLOBALS['meta']['multi_secteurs']."' />";

	if (($GLOBALS['meta']['multi_rubriques'] == 'oui') OR ($GLOBALS['meta']['multi_articles'] == 'oui')) {
		$res .= "<hr />"
		. "<p>"._T('texte_multilinguisme_trad')."</p>";

		$res .= _T('info_gerer_trad')
		. "<div style='text-align: $spip_lang_right;'>"
		. afficher_choix('gerer_trad', $GLOBALS['meta']['gerer_trad'],
			array('oui' => _T('item_oui'), 'non' => _T('item_non')), " &nbsp; ")
		. "</div>";
	} else
		$res .= "<input type='hidden' name='gerer_trad' id='gerer_trad' value='".$GLOBALS['meta']['gerer_trad']."' />";

	$res = debut_cadre_couleur("traductions-24.gif", true, "", _T('info_multilinguisme'))
	. ajax_action_post('configurer', 'referenceur', 'config_multilang', '', $res)
	. fin_cadre_couleur(true);

	return ajax_action_greffe("configurer-referenceur", '', $res);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:49,代码来源:referenceur.php

示例15: configuration_messagerie_agenda_dist

function configuration_messagerie_agenda_dist()
{
	$res = "<div class='verdana2'>"
	. _T('texte_messagerie_agenda')
	. "<br />\n"
	. afficher_choix('messagerie_agenda', $GLOBALS['meta']['messagerie_agenda'],
		array('oui' => _T('item_messagerie_agenda'),
			'non' => _T('item_non_messagerie_agenda')))
	. "</div>";

	$res = debut_cadre_trait_couleur("messagerie-24.gif", true, "", _T('titre_messagerie_agenda'))
	. ajax_action_post('configurer', 'messagerie_agenda', 'config_contenu','',$res)
	 . fin_cadre_trait_couleur(true);

	return ajax_action_greffe('configurer-messagerie_agenda', '', $res);
}
开发者ID:rhertzog,项目名称:lcs,代码行数:16,代码来源:messagerie_agenda.php


注:本文中的ajax_action_post函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。