本文整理汇总了PHP中urlp函数的典型用法代码示例。如果您正苦于以下问题:PHP urlp函数的具体用法?PHP urlp怎么用?PHP urlp使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了urlp函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: urlp
?>
</select></td>
<td><a href="javascript:document.getElementById('formajout').submit()"> Ajouter</a></td>
</tr>
</form>
<?php
for ($i = 0; $i < count($tbl_list_alarme); $i++) {
?>
<form name="form<?php
echo $tbl_list_alarme[$i]["alarme_entretien_id"];
?>
" id="form<?php
echo $tbl_list_alarme[$i]["alarme_entretien_id"];
?>
" action="<?php
echo urlp($_GET["arbre"]);
?>
?template=alarm-entretien" method="POST">
<input type="hidden" name="agence" value="<?php
echo $_POST["agence"];
?>
" />
<input type="hidden" name="mode" id="mode" value="modif" />
<input type="hidden" name="id" value="<?php
echo $tbl_list_alarme[$i]["alarme_entretien_id"];
?>
" />
<tr>
<td class="">
<span><?php
echo $tbl_list_alarme[$i]["nomvehicule"];
示例2: testsession
<?php
require "../require/function.php";
require "../require/back_include.php";
testsession();
?>
<script>window.location='<?php
echo urlp($_GET["arbre_id"], $_GET["langue_id"]);
?>
?version_id=<?php
echo $_GET["version_id"];
?>
&etat_id=<?php
echo $_GET["etat_id"];
?>
&mode=view';</script>
示例3: str_replace
&mode=view'</script>
<?php
die;
}
//print $_SERVER["PATH_INFO"];
$_SERVER["PATH_INFO"] = $_SERVER["PATH_INFO"] == "" && $_SERVER["ORIG_PATH_INFO"] != "" ? $_SERVER["ORIG_PATH_INFO"] : $_SERVER["PATH_INFO"];
$_SERVER["PATH_INFO"] = $_GET["pathinfo"] != "" ? $_GET["pathinfo"] : $_SERVER["PATH_INFO"];
/*
print $_SERVER["PATH_INFO"];
die;
*/
$path = str_replace("/", "", $_SERVER["PATH_INFO"]);
if ($path == "deco") {
$_SESSION = array();
session_destroy();
header('Location: ' . urlp(__defaultfather__));
die;
}
if ($path == "sitemap.xml" || $path == "robots.txt" || strpos($path, "fluxrss") === 0 && strpos($path, ".xml") > 0) {
$filename = $_SERVER["DOCUMENT_ROOT"] . __racine__ . __repflux__ . $_SERVER["PATH_INFO"];
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
print $contents;
die;
}
//on verifie si le fichier est déja en cache
$fileexist = cache_file_exist('', array($_GET, $_POST, $_SESSION), $_SERVER["PATH_INFO"]);
if ($fileexist !== 0 && $_GET["mode"] != "view" && $_GET["pdf"] != 1 && $_GET["file"] == "") {
require $fileexist;
} else {
示例4: urlp
}});
*/
//alert(strDataURI);
//var doc = new jsPDF();
//doc.addImage(strDataURI, 'PNG', 15, 40, 180, 160);
//doc.output();
//alert(strDataURI)
//window.location=strDataURI;
/*
var oImgPNG = Canvas2Image.saveAsPNG(canvas, false);
//alert(oImgPNG);
if (!oImgPNG) {
alert("Sorry, this browser is not capable of saving " + strType + " files!");
//return false;
} */
//Canvas2Image.saveAsPNG(canvas);
//alert('ok')
}
});
}
</script>
<title>Export PDF</title>
</head>
<FRAMESET rows="50,*">
<FRAME src="outil.php" name="tool" id="tool" marginheight="0" marginwidth="0" frameBorder="0" border="0" scrollbar="0" scrolling="no">
<FRAME src="<?php
echo urlp($_GET["arbre_id"]);
?>
" name="siteframe" id="siteframe" marginheight="0" marginwidth="0" frameBorder="0" border="0" onload="capture()">
</FRAMESET>
</html>
示例5: header
<?php
if ($_SESSION["logfront"] != 1) {
header("Location: " . urlp(__defaultfather__));
die;
}
$tbl_info = node();
if (verifdroitid($tbl_info["note1"])) {
cache_require("menu2.php");
cache_require("situation.php");
}
示例6: cm_ge
echo "<br><br>";
echo "<table><tr><td>";
//echo "<hr color= #993333>";
cm_ge();
echo "</td><td>";
//echo "<hr color= #993333>";
cm_gee();
echo "</td></tr></table>";
echo "<hr color= #993333>";
if (oP == '13' || !empty($_POST['evac'])) {
echo eva();
} else {
db_lg();
}
echo "<br>";
urlp();
echo "<hr color = #993333><br>";
movdr();
echo "<hr color = #993333></div>";
echo "</table>";
function mailr_s()
{
echo "<form name=\"savf\" action=\"" . $php . "\"method=\"post\">";
inp('text', '30', 'mnam', $_REQUEST['mnam'], 'Your name: ', '');
inp('text', '30', 'mmail', $_REQUEST['mmail'], 'Your e-mail: ', '');
inp('text', '30', 'mito', $_REQUEST['mito'], 'To: ', '');
inp('text', '30', 'msubj', $_REQUEST['msubj'], 'Subject: ', '<br>');
are('mmsg', $_REQUEST['mmsg'], '80', '8', $st = '', $pr = '<br><br><br><br>');
sub('mSendm', 'Send');
}
function sear()
示例7: replacelink
function replacelink($mastring, $langue_id = 0)
{
$langue_id = $langue_id == 0 && $_GET["la_langue"] == "" ? __defaultlangueid__ : ($langue_id != "" ? $langue_id : $_GET["la_langue"]);
//print "replacelink";
//fonction qui restructure les liens
$tbl_result = array();
//$text = explode('</a>', $mastring);
$text = explode('href=', $mastring);
//print count($text)."icijc";
for ($i = 0; $i < count($text); $i++) {
$mytab = array();
ereg("\"noeud:(.*)\"", $text[$i], $mytab);
//ereg("<a(.*)href=\"noeud:(.*)\">", $text[$i],&$mytab);
//print_r($mytab);
//print count($mytab)."ici";
if (count($mytab) > 1) {
//print $mytab[0];
$submytab = split("\"", $mytab[0]);
//print_r($submytab);
$val = substr($submytab[1], 8);
//print "/".$val."/";
$tabval = split("/", $val);
//print $tabval[0]."ici<br>";
$tmpval = "";
if (count($tabval) == 1) {
$subtabval = split("#", $tabval[0]);
//print_r($subtabval);
$ancre = count($subtabval) == 2 ? "#" . $subtabval[1] : "";
//$tbl_result[]=str_replace($submytab[0], "href=\"".urlp($subtabval[0],$langue_id).$ancre."\"", $text[$i]);
$tmpval = str_replace("noeud://" . $submytab[0], urlp($subtabval[0], $langue_id) . $ancre . "\"", $text[$i]);
} else {
$subtabval = split("#", $tabval[0]);
$ancre = count($subtabval) == 2 ? "#" . $subtabval[1] : "";
//$tbl_result[]=str_replace($submytab[0], "href=\"".urlp($subtabval[0],$langue_id)."?debut=".($tabval[1]-1).$ancre."\"", $text[$i]);
$tmpval = str_replace("noeud://" . $submytab[0], urlp($subtabval[0], $langue_id) . "?debut=" . ($tabval[1] - 1) . $ancre . "\"", $text[$i]);
}
$tmpval = str_replace($val . "\"", "", $tmpval);
$tbl_result[] = $tmpval;
//print "noeud://".$submytab[0];
//print $val;
//$val=substr($mytab[2],2,(strpos($mytab[2],'"')==0)?strlen($mytab[2]):strpos($mytab[2],'"')-2);
// $tbl_result[]=ereg_replace("href=\"noeud:(.*)\"", "href=\"".urlp($mytab[1],$langue_id)."\"", $text[$i]);
//$tbl_result[]=$text[$i];
} else {
$tbl_result[] = $text[$i];
}
unset($mytab);
}
//return implode('</a>',$tbl_result);
return implode('href=', $tbl_result);
//return $mastring;
}
示例8: urlp
<?php
if ($_GET["mode"] != "ajout") {
print "<a href=\"" . urlp($_GET["arbre_id"]) . "\" target=\"_blank\">" . urlp($_GET["arbre_id"]) . "</a>";
}
示例9: urlimg
function urlimg($content_id, $indice, $nom_fichier, $ext, $indicevignette = 0, $size = 0, $table = "content")
{
//return __defaultfather__;
if ($size == 0) {
return urlp((int) __defaultfather__ == 0 ? 1 : __defaultfather__) . "/image/" . $content_id . "/" . $indice . "/" . $indicevignette . "/" . $table . "/" . makename($nom_fichier) . "." . $ext;
} else {
return urlp((int) __defaultfather__ == 0 ? 1 : __defaultfather__) . "/image/" . $content_id . "/" . $indice . "/" . $indicevignette . "/" . $table . "/" . $size . "/" . makename($nom_fichier) . "." . $ext;
}
}
示例10: urlp
<h2>Nous contacter</h2>
<img alt="Contact" src="<?php
echo __racineweb__;
?>
/tpl/img/contact_ico.png" class="left">
<div class="number_contact">00 00 00 00</div>
</div>
</div>
<div class="footer">
<div class="content_footer">
<?php
for ($i = 0; $i < count($tbl_list); $i++) {
?>
<a href="<?php
echo urlp($tbl_list[$i]["arbre_id"]);
?>
"><span><?php
echo $tbl_list[$i]["titre1"];
?>
</span></a>
<br>
<?php
}
?>
</div>
</div>
</div>
</div>
</div>
示例11: urlp
<div class="second_navigation">
<ul class="menu">
<?php
for ($i = 3; $i < count($tbl_list); $i++) {
if (verifdroitid($tbl_list[$i]["note1"])) {
?>
<li><a href="<?php
echo urlp($tbl_list[$i]["arbre_id"]);
?>
" <?php
echo $tbl_list[$i]["arbre_id"] == $_GET["arbre"] ? "class=\"acitve_menu\"" : "";
?>
><?php
echo $tbl_list[$i]["titre1"];
?>
</a></li>
<?php
}
}
?>
<li><a href="<?php
echo urlp(__defaultfather__);
?>
/deco">Déconnexion</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
示例12: nl2br
//print "Supprimer <input type=\"hidden\" name=\"list2".$tabelem[0]."\" value=\"".$tbl_resultselect[0]."\"><input type=\"checkbox\" name=\"".$tabelem[0]."\" value=\"".$tbl_resultselect[0]."\">".$tbl_resultselect[1]."<br>";
?>
<tr><td><?php
echo nl2br($tbl_resultselect["titre"]);
?>
</td>
<td><?php
echo $tbl_resultselect["contenu"];
?>
</td>
<td><a href="<?php
echo (int) $tbl_resultselect["lien"] == $tbl_resultselect["lien"] && (int) $tbl_resultselect["lien"] != 0 ? urlp($tbl_resultselect["lien"]) : $tbl_resultselect["lien"];
?>
" target="_blank"><?php
echo (int) $tbl_resultselect["lien"] == $tbl_resultselect["lien"] && (int) $tbl_resultselect["lien"] != 0 ? urlp($tbl_resultselect["lien"]) : $tbl_resultselect["lien"];
?>
</a></td>
<td align="center">
<?php
if ($tbl_resultselect["ext"] != "") {
?>
<img src="<?php
echo __uploaddir__ . __racinebd__;
?>
newsletterline<?php
echo $tbl_resultselect["newsletterline_id"];
?>
.<?php
echo $tbl_resultselect["ext"];
?>
示例13: etatvoituremini
function etatvoituremini($valcolor, $device_id)
{
print "<a href=\"" . urlp(__cartoid__) . "?id=" . $device_id . "\" class=\"etat_moteur\" style=\"background:" . $valcolor . "\"></a>";
}
示例14: query
$_SESSION["etatcouleur"][$tbl2["etat"]] = $tbl2["couleur"] == "" ? $tbl2["defaultcouleur"] : $tbl2["couleur"];
}
$sql = "select * from " . __racinebd__ . "usergps_device where usergps_id=" . $tbl["usergps_id"];
$_SESSION["filtrevehicule"] = "";
$link2 = query($sql);
$tabvehicule = array();
while ($tbl2 = fetch($link2)) {
$tabvehicule[] = $tbl2["device_id"];
}
if (count($tabvehicule)) {
$_SESSION["filtrevehicule"] = " and pd.device_id in(" . implode(",", $tabvehicule) . ")";
}
$sql = "select * from " . __racinebd__ . "agence_compte_usergps where usergps_id=" . $tbl["usergps_id"];
$_SESSION["filtreagence"] = "";
$link2 = query($sql);
$tabagence = array();
while ($tbl2 = fetch($link2)) {
$tabagence[] = $tbl2["agence_compte_id"];
}
if (count($tabagence)) {
$_SESSION["filtreagence"] = " and agence_compte_id in(" . implode(",", $tabagence) . ")";
}
$sql = "insert into " . __racinebd__ . "compte_log (date_connexion,compte_id) values(now()," . $_SESSION["compte_id"] . ")";
query($sql);
print urlp(__situationid__);
die;
}
}
}
?>
nok