本文整理汇总了PHP中ajax_action_greffe函数的典型用法代码示例。如果您正苦于以下问题:PHP ajax_action_greffe函数的具体用法?PHP ajax_action_greffe怎么用?PHP ajax_action_greffe使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ajax_action_greffe函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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);
}
示例2: 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> — <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);
}
示例3: 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);
}
示例4: 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);
}
示例5: 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);
}
示例6: 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);
}
示例7: inc_iconifier_dist
function inc_iconifier_dist($id_objet, $id, $script, $visible=false, $flag_modif=true) {
if ($GLOBALS['spip_display'] == 4) return "";
$texteon = $GLOBALS['logo_libelles'][($id OR $id_objet != 'id_rubrique') ? $id_objet : 'id_racine'];
$chercher_logo = charger_fonction('chercher_logo', 'inc');
// Add the redirect url when uploading via iframe
$iframe_script = generer_url_ecrire('iconifier',"type=$id_objet&$id_objet=$id&script=$script",true);
$iframe = "<input type='hidden' name='iframe_redirect' value='".rawurlencode($iframe_script)."' />\n";
$logo = $chercher_logo($id, $id_objet, 'on');
$logo_s = $chercher_logo($id, $id_objet, 'off');
if (!$logo) {
if ($flag_modif AND $GLOBALS['meta']['activer_logos'] != 'non') {
$masque = indiquer_logo($texteon, $id_objet, 'on', $id, $script, $iframe);
$masque = "<div class='cadre_padding'>$masque</div>";
$bouton = bouton_block_depliable($texteon, $visible, "on-$id_objet-$id");
$res = debut_block_depliable($visible,"on-$id_objet-$id") . $masque . fin_block();
}
} else {
list($img, $clic) = decrire_logo($id_objet,'on',$id, 170, 170, $logo, $texteon, $script, $flag_modif AND !$logo_s);
$bouton = bouton_block_depliable($texteon, $visible, "on-$id_objet-$id");
$survol = '';
$texteoff = _T('logo_survol');
if (!$logo = $logo_s) {
if ($flag_modif AND $GLOBALS['meta']['activer_logos_survol'] == 'oui') {
$masque = "<br />".indiquer_logo($texteoff, $id_objet, 'off', $id, $script, $iframe);
$survol .= "<br />".block_parfois_visible("off-$id_objet-$id", $texteoff, $masque, null, $visible);
}
$masque = debut_block_depliable($visible,"on-$id_objet-$id")
. "<div class='cadre_padding'>"
. $clic . $survol . "</div>" . fin_block();
} else {
list($imgoff, $clicoff) = decrire_logo($id_objet, 'off', $id, 170, 170, $logo, $texteoff, $script, $flag_modif);
$masque = debut_block_depliable($visible, "off-$id_objet-$id") . $clicoff . fin_block();
$survol .= "<br />".bouton_block_depliable($texteoff, $visible, "off-$id_objet-$id")
. "<div class='cadre_padding'>".$imgoff.$masque."</div>";
$masque = debut_block_depliable($visible,"on-$id_objet-$id") . $clic . fin_block() . $survol;
}
$res = "$img$masque";
}
if ($res) {
$res = debut_cadre('r', 'image-24.gif', '', $bouton, '', '', false)
. $res
. fin_cadre_relief(true);
if(_request("exec")!="iconifier") {
$js = http_script('', 'async_upload.js')
. http_script('$("form.form_upload_icon").async_upload(async_upload_icon)');
} else $js = "";
return ajax_action_greffe("iconifier", $id, $res).$js;
}
else return '';
}
示例8: 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);
}
示例9: 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') . " : " . $langue_site) .
_T('texte_selection_langue_principale') .
$res .
fin_cadre_couleur(true);
return ajax_action_greffe("configurer-langue", '', $res);
}
示例10: 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')), ' ')
. "</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);
}
示例11: 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);
}
示例12: tourner_greffe
function tourner_greffe($id_document, $document, $url, $res)
{
$res .= "<div style='text-align: center;'>"
.document_et_vignette($document, $url, true)
."</div>\n"
."<div style='text-align: center; color: 333333;' class='verdana1 spip_x-small'><doc"
. $id_document
. "></div>";
return ajax_action_greffe("tourner", $id_document, $res);
}
示例13: 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);
}
示例14: 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);
}
示例15: 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')), " ")
. "</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')), " ")
. "</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')), " ")
. "</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')), " ")
. "</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);
}