• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP grr_htmlSpecialChars函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: failNotEquals

  function failNotEquals($expected, $actual, $expected_label, $message=0) {
    // Private function for reporting failure to match.
    $str = $message ? ($message . ' ') : '';
    $str .= "($expected_label/actual)<br>";
    $htmlExpected = grr_htmlSpecialChars($expected);
    $htmlActual = grr_htmlSpecialChars($actual);
    $str .= sprintf("<pre>%s\n--------\n%s</pre>",
		    $htmlExpected, $htmlActual);
    $this->fail($str);
  }
开发者ID:rhertzog,项目名称:lcs,代码行数:10,代码来源:phpunit.php


示例2: SendError

function SendError( $number, $text )
{
	SetXmlHeaders() ;
	
	// Create the XML document header
	echo '<?xml version="1.0" encoding="utf-8" ?>' ;
	
	echo '<Connector><Error number="' . $number . '" text="' . grr_htmlSpecialChars( $text ) . '" /></Connector>' ;
	
	exit ;
}
开发者ID:rhertzog,项目名称:lcs,代码行数:11,代码来源:basexml.php


示例3: ConvertToXmlAttribute

function ConvertToXmlAttribute( $value )
{
	if ( defined( 'PHP_OS' ) )
	{
		$os = PHP_OS ;
	}
	else
	{
		$os = php_uname() ;
	}

	if ( strtoupper( substr( $os, 0, 3 ) ) === 'WIN' || FindBadUtf8( $value ) )
	{
		return ( utf8_encode( grr_htmlSpecialChars( $value ) ) ) ;
	}
	else
	{
		return ( grr_htmlSpecialChars( $value ) ) ;
	}
}
开发者ID:rhertzog,项目名称:lcs,代码行数:20,代码来源:util.php


示例4: if

} else {
    echo "<input type=\"text\" name=\"new_login\" size=\"40\" value=\"".htmlentities($user_login)."\" />\n";
}

echo "<table border=\"0\" cellpadding=\"5\"><tr>\n";
echo "<td>".get_vocab("last_name")." *".get_vocab("deux_points")."</td>\n<td><input type=\"text\" name=\"reg_nom\" size=\"40\" value=\"";
if ($user_nom) echo grr_htmlSpecialChars($user_nom);
echo "\" /></td>\n";
echo "<td>".get_vocab("first_name")." *".get_vocab("deux_points")."</td>\n<td><input type=\"text\" name=\"reg_prenom\" size=\"20\" value=\"";
if ($user_nom) echo grr_htmlSpecialChars($user_prenom);
echo "\" /></td>\n";
echo "<td></td><td></td>";
echo "</tr>\n";

echo "<tr><td>".get_vocab("mail_user").get_vocab("deux_points")."</td><td><input type=\"text\" name=\"reg_email\" size=\"30\" value=\"";
if ($user_mail)  echo grr_htmlSpecialChars($user_mail);
echo "\" /></td>\n";

echo "<td>".get_vocab("statut").get_vocab("deux_points")."</td>\n";
echo "<td><select name=\"reg_statut\" size=\"1\">\n";
echo "<option value=\"visiteur\" "; if ($user_statut == "visiteur") { echo "selected=\"selected\"";}; echo ">".get_vocab("statut_visitor")."</option>\n";
echo "<option value=\"utilisateur\" "; if ($user_statut == "utilisateur") { echo "selected=\"selected\"";}; echo ">".get_vocab("statut_user")."</option>\n";
// un gestionnaire d'utilisateurs ne peut pas créer un administrateur général ou un gestionnaire d'utilisateurs
if  (authGetUserLevel(getUserName(),-1) >= 6) {
  echo "<option value=\"gestionnaire_utilisateur\" "; if ($user_statut == "gestionnaire_utilisateur") { echo "selected=\"selected\"";}; echo ">".get_vocab("statut_user_administrator")."</option>\n";
  echo "<option value=\"administrateur\" "; if ($user_statut == "administrateur") { echo "selected=\"selected\"";}; echo ">".get_vocab("statut_administrator")."</option>\n";
}
echo "</select></td>\n";

if (strtolower(getUserName()) != strtolower($user_login)) {
  echo "<td>".get_vocab("activ_no_activ").get_vocab("deux_points")."</td>";
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:admin_user_modify.php


示例5: accumulate_periods

function accumulate_periods(&$row, &$count, &$hours, $report_start, $report_end,
    &$room_hash, &$breve_description_hash, $csv="n")
{
  global $vocab, $periods_name;
    $max_periods = count($periods_name);
    if ($_GET["sumby"] == "5")
        $temp = grr_sql_query1("select type_name from ".TABLE_PREFIX."_type_area where type_letter = '".$row[$_GET["sumby"]]."'");
    else if (($_GET["sumby"] == "3") or ($_GET["sumby"] == "6"))
        $temp = $row[$_GET["sumby"]];
    else
        $temp = grrExtractValueFromOverloadDesc($row[12],$_GET["sumby"]);
    if ($temp == "") $temp = "(Autres)";
    if ($csv == "n") {
        $breve_description = grr_htmlSpecialChars($temp);
        # Area and room separated by break:
        $room = grr_htmlSpecialChars($row[8]) .$vocab["deux_points"]. "<br />" . grr_htmlSpecialChars($row[9]);
    } else {
        # Use brief description or created by as the name:
        $breve_description = ($temp);
        # Area and room separated by break:
        $room = ($row[9]) . " " . ($row[10]);
    }
    # Accumulate the number of bookings for this room and name:
    @$count[$room][$breve_description]++;
    # Accumulate hours used, clipped to report range dates:
        $dur = (min((int)$row[2], $report_end) - max((int)$row[1], $report_start))/60;
    if ($dur < (24*60))
        @$hours[$room][$breve_description] += $dur;
    else
        @$hours[$room][$breve_description] += ($dur % $max_periods) + floor( $dur/(24*60) ) * $max_periods;
    $room_hash[$room] = 1;
    $breve_description_hash[$breve_description] = 1;
}
开发者ID:rhertzog,项目名称:lcs,代码行数:33,代码来源:report.php


示例6: AND

AND (".TABLE_PREFIX."_j_useradmin_area.login is null or (".TABLE_PREFIX."_j_useradmin_area.login=u.login and ".TABLE_PREFIX."_j_useradmin_area.id_area!=".$id_area.")))  order by u.nom, u.prenom";

    $res = grr_sql_query($sql);
    $nb_users = grr_sql_count($res);
    if ($nb_users > 0) {
    ?>
    <tr><td>
   	<h3><?php echo get_vocab("add_multiple_user_to_list").get_vocab("deux_points");?></h3>

    <form action="admin_right_admin.php" method='post'>
	  <div><select name="agent" size="8" style="width:200px;" multiple="multiple" ondblclick="Deplacer(this.form.agent,this.form.elements['reg_multi_admin_login[]'])">

    <?php
	if ($res) for ($i = 0; ($row = grr_sql_row($res, $i)); $i++) {
		if (authUserAccesArea($row[0],$id_area) == 1) {
        echo "<option value='$row[0]'>".grr_htmlSpecialChars($row[1])." ".grr_htmlSpecialChars($row[2])."</option>";
		}
	}
    ?>

	</select>
	<input type="button" value="&lt;&lt;" onclick="Deplacer(this.form.elements['reg_multi_admin_login[]'],this.form.agent)"/>
	<input type="button" value="&gt;&gt;" onclick="Deplacer(this.form.agent,this.form.elements['reg_multi_admin_login[]'])"/>
	<select name="reg_multi_admin_login[]" id="reg_multi_admin_login" size="8" style="width:200px;" multiple="multiple" ondblclick="Deplacer(this.form.elements['reg_multi_admin_login[]'],this.form.agent)">
  <option>&nbsp;</option>
  </select>
    <input type="hidden" name="id_area" value="<?php echo $id_area;?>" />
    <input type="submit" value="Enregistrer"  onclick="selectionner_liste(this.form.reg_multi_admin_login);"/></div>

    <script type="text/javascript">
    vider_liste(document.getElementById('reg_multi_admin_login'));
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:admin_right_admin.php


示例7: WHERE

    WHERE ((etat!='inactif' and (statut='utilisateur' or statut='visiteur' or statut='gestionnaire_utilisateur'))
    AND (".TABLE_PREFIX."_j_user_area.login is null or (".TABLE_PREFIX."_j_user_area.login=u.login and ".TABLE_PREFIX."_j_user_area.id_area!=".$id_area.")))  order by u.nom, u.prenom";

    $res = grr_sql_query($sql);
    $nb_users = grr_sql_count($res);
    if ($nb_users > 0) {
    ?>
    <tr><td>
   	<h3><?php echo get_vocab("add_multiple_user_to_list").get_vocab("deux_points");?></h3>

    <form action="admin_access_area.php" method='post'>
	  <div><select name="agent" size="8" style="width:200px;" multiple="multiple" ondblclick="Deplacer(this.form.agent,this.form.elements['reg_multi_user_login[]'])">

    <?php
    if ($res) for ($i = 0; ($row = grr_sql_row($res, $i)); $i++) {
        echo "<option value=\"$row[0]\">".grr_htmlSpecialChars($row[1])." ".grr_htmlSpecialChars($row[2])." </option>\n";
    }
    ?>

	</select>
	<input type="button" value="&lt;&lt;" onclick="Deplacer(this.form.elements['reg_multi_user_login[]'],this.form.agent)"/>
	<input type="button" value="&gt;&gt;" onclick="Deplacer(this.form.agent,this.form.elements['reg_multi_user_login[]'])"/>
	<select name="reg_multi_user_login[]" id="reg_multi_user_login" size="8" style="width:200px;" multiple="multiple" ondblclick="Deplacer(this.form.elements['reg_multi_user_login[]'],this.form.agent)">
  <option>&nbsp;</option>
  </select>
    <input type="hidden" name="id_area" value="<?php echo $id_area;?>" />
    <input type="submit" value="Enregistrer"  onclick="selectionner_liste(this.form.reg_multi_user_login);"/></div>

    <script type="text/javascript">
    vider_liste(document.getElementById('reg_multi_user_login'));
    </script> </form>
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:admin_access_area.php


示例8: tdcell

            #Si il y en a plus que 123, on affiche "..." après le 11ème
            for ($i = 0; $i < $n; $i++) {
                if ($i == 11 && $n > 12) {
                    echo " ...\n";
                    break;
                }
                echo "\n<table width='100%' border='0'><tr>\n";
                tdcell($d[$cday]["color"][$i]);
                echo "<span class=\"small_planning\">";
                echo $d[$cday]["data"][$i]
                    . "<br />";
                // si la réservation est à modérer, on le signale
                if ((isset($d[$cday]["moderation"][$i])) and ($d[$cday]["moderation"][$i]==1))
                   echo "&nbsp;<img src=\"img_grr/flag_moderation.png\" alt=\"".get_vocab("en_attente_moderation")."\" title=\"".get_vocab("en_attente_moderation")."\" class=\"image\" />&nbsp;\n";
                if ($acces_fiche_reservation)
                    echo "<a title=\"".grr_htmlSpecialChars($d[$cday]["who"][$i])."\" href=\"view_entry.php?id=" . $d[$cday]["id"][$i]
                    . "&amp;day=$cday&amp;month=$month&amp;year=$year&amp;page=month\">"
                    . $d[$cday]["who1"][$i]
                    . "</a>";
                else
                    echo $d[$cday]["who1"][$i];

              if ($d[$cday]["description"][$i]!= "")
                  echo "<br /><i>(".$d[$cday]["description"][$i].")</i>";
              echo "</span></td></tr></table>";
            }
        }
		//  Possibilité de faire une nouvelle réservation
		$date_now=mktime();
        $hour = date("H",$date_now); // Heure actuelle
        $date_booking = mktime(24, 0, 0, $month, $cday, $year); // minuit
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:month.php


示例9: and

            if ((isset($d[$weekday][$slot-$decale_slot*$nb_case]["statut"])) and ($d[$weekday][$slot-$decale_slot*$nb_case]["statut"]!='-')) echo "&nbsp;<img src=\"img_grr/buzy.png\" alt=\"".get_vocab("ressource actuellement empruntee")."\" title=\"".get_vocab("ressource actuellement empruntee")."\" width=\"20\" height=\"20\" class=\"image\" />&nbsp;\n";
            // si la réservation est à confirmer, on le signale
            if (($this_delais_option_reservation > 0) and (isset($d[$weekday][$slot-$decale_slot*$nb_case]["option_reser"])) and ($d[$weekday][$slot-$decale_slot*$nb_case]["option_reser"]!=-1)) echo "&nbsp;<img src=\"img_grr/small_flag.png\" alt=\"".get_vocab("reservation_a_confirmer_au_plus_tard_le")."\" title=\"".get_vocab("reservation_a_confirmer_au_plus_tard_le")."&nbsp;".time_date_string_jma($d[$weekday][$slot-$decale_slot*$nb_case]["option_reser"],$dformat)."\" width=\"20\" height=\"20\" class=\"image\" />&nbsp;\n";
            // si la réservation est à modérer, on le signale
            if ((isset($d[$weekday][$slot-$decale_slot*$nb_case]["moderation"])) and ($d[$weekday][$slot-$decale_slot*$nb_case]["moderation"]=='1'))
                echo "&nbsp;<img src=\"img_grr/flag_moderation.png\" alt=\"".get_vocab("en_attente_moderation")."\" title=\"".get_vocab("en_attente_moderation")."\" class=\"image\" />&nbsp;\n";

            if (!isset($d[$weekday][$slot-$decale_slot*$nb_case]["id"])) {
                echo "&nbsp;\"&nbsp;";
            } else {
                if (($this_statut_room == "1") or
                (($this_statut_room == "0") and (authGetUserLevel(getUserName(),$room) > 2) ))

                {
                    if ($acces_fiche_reservation)
                      echo " <a title=\"".grr_htmlSpecialChars($d[$weekday][$slot-$decale_slot*$nb_case]["who"])."\"  href=\"view_entry.php?id=" . $d[$weekday][$slot-$decale_slot*$nb_case]["id"]
                      . "&amp;day=$wday&amp;month=$wmonth&amp;year=$wyear&amp;page=week\">"
                      . $d[$weekday][$slot-$decale_slot*$nb_case]["data"] . "</a>";
                    else
                      echo " ".$d[$weekday][$slot-$decale_slot*$nb_case]["data"];

                } else {
                    echo $d[$weekday][$slot-$decale_slot*$nb_case]["data"];

                }
                if ($d[$weekday][$slot-$decale_slot*$nb_case]["description"]!= "")
                    echo "<br /><i>".$d[$weekday][$slot-$decale_slot*$nb_case]["description"]."</i>";

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


示例10: affiche_pop_up

// Affichage d'un pop-up
affiche_pop_up($msg,"admin");

echo "<table><tr>";
$this_site_name = "";
# liste des sites
echo "<td ><p><b>".get_vocab("sites").get_vocab("deux_points")."</b></p>\n";
$out_html = "<form id=\"site\" action=\"admin_admin_site.php\" method=\"post\">\n<div><select name=\"id_site\" onchange=\"site_go()\">\n";
$out_html .= "<option value=\"admin_admin_site.php?id_site=-1\">".get_vocab('select')."</option>";
$sql = "select id, sitename from ".TABLE_PREFIX."_site order by sitename";
$res = grr_sql_query($sql);
if ($res) for ($i = 0; ($row = grr_sql_row($res, $i)); $i++)
{
    $selected = ($row[0] == $id_site) ? "selected=\"selected\"" : "";
    $link = "admin_admin_site.php?id_site=$row[0]";
    $out_html .= "<option $selected value=\"$link\">" . grr_htmlSpecialChars($row[1])."</option>";
}
$out_html .= "</select>
<script type=\"text/javascript\" >
<!--
function site_go()
{
box = document.getElementById(\"site\").id_site;
destination = box.options[box.selectedIndex].value;
if (destination) location.href = destination;
}
// -->
</script>
</div>
<noscript>
<div><input type=\"submit\" value=\"Change\" /></div>
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:admin_admin_site.php


示例11: encode_message_utf8

 $checked = false;
 if (is_array($info) AND $info["count"] > 0) {
     echo encode_message_utf8("<p>Sélectionnez ci-dessous le chemin d'accès dans l'annuaire :</p>");
     $n = 0;
     for ($i = 0; $i < $info["count"]; $i++) {
         $names[] = $info[$i]["dn"];
         if (is_array($names)) {
             for ($j = 0; $j < count($names); $j++) {
                 $n++;
                 echo "<br /><input name=\"base_ldap\" value=\"".grr_htmlSpecialChars($names[$j])."\" type='radio' id='tab$n'";
                 if (!$checked) {
                     echo " checked=\"checked\"";
                     $checked = true;
                 }
                 echo " />\n";
                 echo "<label for='tab$n'>".grr_htmlSpecialChars($names[$j])."</label>\n";
             }
         }
     }
     echo "<br />Ou bien \n";
   }
 echo "<br /><input name=\"base_ldap\" value=\"\" type='radio' id=\"autre\"";
 if (!$checked) {
     echo " checked=\"checked\"";
     $checked = true;
 }
 echo " />\n";
 echo "<label for=\"autre\">".encode_message_utf8("Précisez le chemin : ")."</label>\n ";
 if (isset($_POST["ldap_base"])) $ldap_base = $_POST["ldap_base"]; else $ldap_base ="";
 if (isset($_POST["ldap_filter"])) $ldap_filter = $_POST["ldap_filter"]; else $ldap_filter ="";
 echo "<input type=\"text\" name=\"base_ldap_autre\" value=\"$ldap_base\" size=\"40\" />\n";
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:admin_config_ldap.php


示例12: affichage_champ_add_mails

function affichage_champ_add_mails($id_resa) {
    $affichage = "";
    // Les champs add :
    $overload_data = mrbsEntryGetOverloadDesc($id_resa);
    foreach ($overload_data as $fieldname=>$field) {
        if (($field["overload_mail"] == 'y') and ($field["valeur"]!="")) {
            $affichage .= bbcode(grr_htmlSpecialChars($fieldname).get_vocab("deux_points").grr_htmlSpecialChars($field["valeur"]),'nobbcode')."\n";;
        }
    }
    return $affichage;
}
开发者ID:rhertzog,项目名称:lcs,代码行数:11,代码来源:functions.inc.php


示例13:

        $ferme_table=true;
        $ouvre_table=true;
      }
      $html .= "<tr><td colspan=\"5\"><hr /></td></tr>";
  }
  $breakkey = $key;

  if (grr_sql_count($res) != 0)
    for ($i = 0; ($row = grr_sql_row($res, $i)); $i++)
      {
    $html .= "<tr>\n";
    $html .= "<td style=\"vertical-align:middle;\">$userdomain[$key]</td>\n";
    $html .= "<td><form method=\"post\" action=\"admin_overload.php\">\n";
    $html .= "<div><input type=\"hidden\" name=\"id_overload\" value=\"$row[0]\" />\n";
    $html .= "<input type=\"hidden\" name=\"action\" value=\"change\" />\n";
    $html .= "<input type=\"text\" name=\"fieldname\" value=\"".grr_htmlSpecialChars($row[1])."\" />\n";
    $html .= "<select name=\"fieldtype\">\n";
    $html .= "<option value=\"textarea\" ";
    if ($row[2] =="textarea") $html .= " selected=\"selected\"";
    $html .= " >".get_vocab("type_area")."</option>\n";
    $html .= "<option value=\"text\" ";
    if ($row[2] =="text") $html .= " selected=\"selected\"";
    $html .= " >".get_vocab("type_text")."</option>\n";
    $html .= "<option value=\"list\" ";
    if ($row[2] =="list") $html .= " selected=\"selected\"";
    $html .= " >".get_vocab("type_list")."</option>\n";
    $html .= "<option value=\"numeric\" ";
    if ($row[2] =="numeric") $html .= " selected=\"selected\"";
    $html .= " >".get_vocab("type_numeric")."</option>\n";
    $html .= "</select>\n";
    $ind_div++;
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:admin_overload.php


示例14: verif_acces_ressource

    if(isset($id_area)) {
        $sql = "select id, room_name, description, capacity, max_booking, statut_room from ".TABLE_PREFIX."_room where area_id=$id_area ";
        // on ne cherche pas parmi les ressources invisibles pour l'utilisateur
        $tab_rooms_noaccess = verif_acces_ressource(getUserName(), 'all');
        foreach($tab_rooms_noaccess as $key){
          $sql .= " and id != $key ";
        }
        $sql .= "order by order_display, room_name";
        $res = grr_sql_query($sql);
        if (! $res) fatal_error(0, grr_sql_error());
        if (grr_sql_count($res) != 0) {
            echo "<table cellpadding=\"3\" cellspacing=\"1\">";
            for ($i = 0; ($row = grr_sql_row($res, $i)); $i++) {
                $color = '';
                if ($row[5] == "0") $color =  " class=\"texte_ress_tempo_indispo\"";
                echo "<tr><td ".$color.">" . grr_htmlSpecialChars($row[1]) . "<i> - " . grr_htmlSpecialChars($row[2]);
				if ($row[3]>0) echo " ($row[3] max.)";
                echo "</i></td>\n<td><a href=\"admin_edit_room.php?room=$row[0]\"><img src=\"img_grr/edit_s.png\" alt=\"".get_vocab('edit')."\" title=\"".get_vocab('edit')."\" class=\"image\" /></a></td>\n";
                echo "<td><a href=\"admin_edit_room.php?room=$row[0]&amp;action=duplique_room\"><img src=\"img_grr/duplique.png\" alt=\"".get_vocab('duplique_ressource')."\" title=\"".get_vocab('duplique_ressource')."\" class=\"image\" /></a></td>";
                echo "<td><a href=\"admin_room_del.php?type=room&amp;room=$row[0]&amp;id_area=$id_area\"><img src=\"img_grr/delete_s.png\" alt=\"".get_vocab('delete')."\" title=\"".get_vocab('delete')."\" class=\"image\" /></a></td>";
                echo "<td><a href='javascript:centrerpopup(\"view_rights_room.php?id_room=$row[0]\",600,480,\"scrollbars=yes,statusbar=no,resizable=yes\")' title=\"".get_vocab("privileges")."\">
               <img src=\"img_grr/rights.png\" alt=\"".get_vocab("privileges")."\" class=\"image\" /></a></td>";
                echo "<td><a href='javascript:centrerpopup(\"view_room.php?id_room=$row[0]\",600,480,\"scrollbars=yes,statusbar=no,resizable=yes\")' title=\"".get_vocab("fiche_ressource")."\">
               <img src=\"img_grr/details_s.png\" alt=\"d&eacute;tails\" class=\"image\" /></a></td>";
                echo "</tr>\n";
            }
            echo "</table>";
        }  else echo get_vocab("no_rooms_for_area");
    } else {
        echo get_vocab('noarea');
    }
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:admin_room.php


示例15: reset

        }

        echo "</tr>\n";

        reset($rooms);
        $tab_ligne++;
    }
    // répétition de la ligne d'en-tête
    echo "<tr>\n<th>&nbsp;</th>";
    for ($i = 0; $i < $nbcol; $i++)
    {
        // On affiche pas toutes les ressources
        if (verif_acces_ressource(getUserName(), $id_room[$i])) {
          echo "<th";
          if ($statut_room[$id_room[$i]] == "0") echo " class='avertissement' ";
          echo ">" . grr_htmlSpecialChars($room_name[$i])."</th>";
        }
    }
    echo "<th>&nbsp;</th></tr>\n";

    echo "</table>";
    show_colour_key($area);
}
grr_sql_free($res);
/*
echo "<table border=\"1\">";
foreach ($tab as $cle => $value) {
    echo "<tr>";
    foreach ($value as $value2) {
        echo "<td>";
        echo $value2;
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:day.php


示例16: grr_sql_query

echo "<td><b><a href='admin_user.php?order_by=nom,prenom&amp;display=$display'>".get_vocab("names")."</a></b></td>";
echo "<td><b>".get_vocab("privileges")."</b></td>";
echo "<td><b><a href='admin_user.php?order_by=statut,nom,prenom&amp;display=$display'>".get_vocab("statut")."</a></b></td>";
echo "<td><b><a href='admin_user.php?order_by=source,nom,prenom&amp;display=$display'>".get_vocab("authentification")."</a></b></td>";

echo "<td><b>".get_vocab("delete")."</b></td>";
echo "</tr>";

$sql = "SELECT nom, prenom, statut, login, etat, source FROM ".TABLE_PREFIX."_utilisateurs ORDER BY $order_by";
$res = grr_sql_query($sql);
if ($res) {
    for ($i = 0; ($row = grr_sql_row($res, $i)); $i++)
    {

    $user_nom = grr_htmlSpecialChars($row[0]);
    $user_prenom = grr_htmlSpecialChars($row[1]);
    $user_statut = $row[2];
    $user_login = $row[3];
    $user_etat[$i] = $row[4];
    $user_source = $row[5];
    if (($user_etat[$i] == 'actif') and (($display == 'tous') or ($display == 'actifs'))) {
        $affiche = 'yes';
    } else if (($user_etat[$i] != 'actif') and (($display == 'tous') or ($display == 'inactifs'))) {
        $affiche = 'yes';
    } else {
        $affiche = 'no';
    }
    if ($affiche == 'yes') {
    // Affichage des login, noms et prénoms
    $col[$i][1] = $user_login;
    $col[$i][2] = "$user_nom $user_prenom";
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:admin_user.php


示例17: traite_grr_url

 * *** empty log message ***
 *
 * Revision 1.3  2009-01-20 07:19:17  grr
 * *** empty log message ***
 *
 * Revision 1.2  2008-11-16 22:00:59  grr
 * *** empty log message ***
 *
 *
 */

// Affichage d'un lien pour format imprimable
if ( ( !isset($_GET['pview'])  or ($_GET['pview'] != 1)) and (isset($affiche_pview))) {
    echo "<div class=\"format_imprimable\"><a href=\"". traite_grr_url($grr_script_name) ."?";
    if (isset($_SERVER['QUERY_STRING']) and ($_SERVER['QUERY_STRING'] != ''))
        echo grr_htmlSpecialChars($_SERVER['QUERY_STRING']) . "&amp;";
    echo "pview=1\" ";
    if (getSettingValue("pview_new_windows")==1) echo " target=\"_blank\"";
    echo ">" . get_vocab("ppreview") . "</a></div>";
}
    // Affichage du message d'erreur en cas d'échec de l'envoi de mails automatiques
    if (!(getSettingValue("javascript_info_disabled"))) {
      if ((isset($_SESSION['session_message_error'])) and ($_SESSION['session_message_error']!=''))  {
        echo "<script type=\"text/javascript\">";
        echo "<!--\n";
        echo " alert(\"".get_vocab("title_automatic_mail")."\\n".$_SESSION['session_message_error']."\\n".get_vocab("technical_contact")."\")";
        echo "//-->";
        echo "</script>";
        $_SESSION['session_message_error'] = "";
      }
    }
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:trailer.inc.php


示例18: foreach

				<th>Value</th>
			</tr>
		</thead>
<?php

if ( isset( $_POST ) )
	$postArray = &$_POST ;			// 4.1.0 or later, use $_POST
else
	$postArray = &$HTTP_POST_VARS ;	// prior to 4.1.0, use HTTP_POST_VARS

foreach ( $postArray as $sForm => $value )
{
	if ( get_magic_quotes_gpc() )
		$postedValue = grr_htmlSpecialChars( stripslashes( $value ) ) ;
	else
		$postedValue = grr_htmlSpecialChars( $value ) ;

?>
		<tr>
			<th style="vertical-align: top"><?php echo $sForm?></th>
			<td><pre><?php echo $postedValue?></pre></td>
		</tr>
	<?php
}
?>
	</table>
	<div id="footer">
		<hr />
		<p>
			CKEditor - The text editor for Internet - <a href="http://ckeditor.com/">http://ckeditor.com</a>
		</p>
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:sample_posteddata.php


示例19:

    // Minutes à ajouter à l'heure $eveningends pour avoir la fin réelle d'une journée.
    echo "<tr>\n";
    echo "<td>".get_vocab("eveningends_minutes_area").get_vocab("deux_points")."</td>\n";
    echo "<td><input type=\"text\" name=\"eveningends_minutes_area\" size=\"5\" value=\"".grr_htmlSpecialChars($row["eveningends_minutes_area"])."\" /></td>\n";
    echo "</tr>";

    // Resolution - quel bloc peut être réservé, en secondes
    echo "<tr>\n";
    echo "<td>".get_vocab("resolution_area").get_vocab("deux_points")."</td>\n";
    echo "<td><input type=\"text\" name=\"resolution_area\" size=\"5\" value=\"".grr_htmlSpecialChars($row["resolution_area"])."\" /></td>\n";
    echo "</tr>";

    // Valeur par défaut de la durée d'une réservation
    echo "<tr>\n";
    echo "<td>".get_vocab("duree_par_defaut_reservation_area").get_vocab("deux_points")."</td>\n";
    echo "<td><input type=\"text\" name=\"duree_par_defaut_reservation_area\" size=\"5\" value=\"".grr_htmlSpecialChars($row["duree_par_defaut_reservation_area"])."\" /></td>\n";
    echo "</tr>";


    // Format d'affichage du temps : valeur 0 pour un affichage « 12 heures » et valeur 1 pour un affichage  « 24 heure ».
    echo "<tr>\n";
    echo "<td>".get_vocab("twentyfourhour_format_area").get_vocab("deux_points")."</td>\n";
    echo "<td>\n";
    echo "<label><input type=\"radio\" name=\"twentyfourhour_format_area\" value=\"0\" ";
    if ($row['twentyfourhour_format_area'] == 0) echo " checked=\"checked\"";
    echo " />".get_vocab("twentyfourhour_format_12")."</label>\n<br />";
    echo "<label><input type=\"radio\" name=\"twentyfourhour_format_area\" value=\"1\" ";
    if ($row['twentyfourhour_format_area'] == 1) echo " checked=\"checked\"";
    echo " />".get_vocab("twentyfourhour_format_24")."</label>\n";
    echo "</td>\n";
    echo "</tr>\n";
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:admin_edit_room.php


示例20: get_vocab

?>
<h3 style="text-align:center;"><?php echo get_vocab("room").get_vocab("deux_points")."&nbsp;".grr_htmlSpecialChars($row["room_name"]);

$id_area = mrbsGetRoomArea($id_room);
$area_name = grr_sql_query1("select area_name from ".TABLE_PREFIX."_area where id='".$id_area."'");
$area_access = grr_sql_query1("select access from ".TABLE_PREFIX."_area where id='".$id_area."'");
echo "<br />(".$area_name;
if ($area_access == 'r') echo " - ".get_vocab("access");
echo ")";
echo "</h3>";

if ($row['statut_room'] == "0")
    echo "<h2 style=\"text-align:center;\"><span class=\"avertissement\">".get_vocab("ressource_temporairement_indisponible")."</span></h2>";

echo "<h3>".get_vocab("description")."</h3>\n";
echo "<div>".grr_htmlSpecialChars($row["description"])."&nbsp;</div>\n";
if ($row["comment_room"] != '') {
    echo "<h3>".get_vocab("match_descr")."</h3>\n";
    echo "<div>".$row["comment_room"]."</div>\n";
}
if ($row["capacity"] != '0') {
    echo "<h3>".get_vocab("capacity_2")."</h3>\n";
    echo "<p>".$row["capacity"]."</p>\n";
}

if ($row["max_booking"] != "-1")
        echo "<p>".get_vocab("msg_max_booking").get_vocab("deux_points").$row["max_booking"]."</p>";
// Limitation par domaine
$max_booking_per_area = grr_sql_query1("SELECT max_booking FROM ".TABLE_PREFIX."_area WHERE id = '".protect_data_sql($id_area)."'");
if ($max_booking_per_area >= 0)
    echo "<p>".get_vocab("msg_max_booking_area").get_vocab("deux_points").$max_booking_per_area."</p>";
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:view_room.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP grr_resumeSession函数代码示例发布时间:2022-05-15
下一篇:
PHP grp函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap