本文整理汇总了PHP中htmldecode函数的典型用法代码示例。如果您正苦于以下问题:PHP htmldecode函数的具体用法?PHP htmldecode怎么用?PHP htmldecode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了htmldecode函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: viewitem
public function viewitem()
{
$db = D('BestForBaby');
$id = I('get.id', 0, 'intval');
if ($id == 0) {
$this->error('商品不存在', '/index.php/home/bestforbaby', 2);
die;
} else {
$item = $db->where("id = %d", $id)->find();
$instruction = M('Instruction');
$instructions = $instruction->where("item_id=%d", $id)->select();
$item[0]['content'] = htmlspecialchars_decode($item[0]['content'], ENT_QUOTES);
$items = htmldecode($instructions);
$this->assign("item", $item);
$this->assign("instructions", $items);
$this->display();
}
}
示例2: htmlout
?>
</select-->
</div>
<br><br>
<div class="form-group">
<label for="planta">Planta: </label>
<select name="planta" id="planta" class="form-control">
<option selected="selected" disabled value="0">--Selecciona planta--</option>
</select>
<button type="button" class="btn btn-default" id="refreshPlantas">Refrescar plantas</button>
</div>
<br><br>
<div class="form-group">
<label for="atencion">La orden irá dirigida a:</label>
<input name="atencion" class="form-control" style="width: 350px;" id="atencion" value="<?php
htmlout(htmldecode($atencion));
?>
">
</div>
<br><br>
<div class="form-group">
<label for="atenciontel">Teléfono: </label>
<input name="atenciontel" class="form-control" id="atenciontel" value="<?php
htmlout($atenciontel);
?>
">
</div>
<br><br>
<div class="form-group">
<label for="atencioncorreo">Correo electrónico: </label>
<input name="atencioncorreo" class="form-control" style="width: 350px;" id="atencioncorreo" value="<?php
示例3: getXML
# get page url to display
if ($_GET['id'] != '') {
$id = $_GET['id'];
$file = $id . ".bak.xml";
$path = GSBACKUPSPATH . 'pages/';
$data = getXML($path . $file);
$title = htmldecode($data->title);
$pubDate = $data->pubDate;
$parent = $data->parent;
$metak = htmldecode($data->meta);
$metad = htmldecode($data->metad);
$url = $data->url;
$content = htmldecode($data->content);
$private = $data->private;
$template = $data->template;
$menu = htmldecode($data->menu);
$menuStatus = $data->menuStatus;
$menuOrder = $data->menuOrder;
} else {
redirect('backups.php?upd=bak-err');
}
if ($private != '') {
$private = '<span style="color:#cc0000">(' . i18n_r('PRIVATE_SUBTITLE') . ')</span>';
} else {
$private = '';
}
if ($menuStatus == '') {
$menuStatus = i18n_r('NO');
} else {
$menuStatus = i18n_r('YES');
}
示例4: createSideFunc
function createSideFunc($value, $key)
{
global $settingInfo, $strModifyInfo, $strLogout, $strLoginSubmit, $strUserRegister;
global $strSearchErr, $strKeyword, $strSearchTitle, $strSearchContent, $strSearchTitleContent, $strFind;
$contents = "";
ob_start();
if (is_array($value)) {
$sidename = is_int($key) && !empty($value['name']) ? $value['name'] : $key;
$sidetitle = $value['modTitle'];
$htmlcode = empty($value['htmlCode']) ? "" : $value['htmlCode'];
$installDate = empty($value['installDate']) ? "" : $value['installDate'];
$pluginPath = empty($value['pluginPath']) ? "" : $value['pluginPath'];
$isInstall = $value['isInstall'];
if (in_array($sidename, array("statistics", "category", "guestbook", "hotTags", "recentlogs", "recentComments", "archives", "links"))) {
echo readfromfile(F2BLOG_ROOT . "cache/cache_{$sidename}.php");
} else {
if ($installDate > 0) {
//表示为插件
echo '<?php do_filter("' . $sidename . '","' . $sidename . '","', $sidetitle . '","', $htmlcode . '","' . $isInstall . '");' . "?>\n";
} else {
switch ($sidename) {
case "calendar":
echo create_sidebar_header("Calendar", $sidetitle, $isInstall);
echo "<?php \n";
echo "if (!empty(\$job) && \$job==\"calendar\" && \$seekname!=gmdate('Ym', time()+3600*\$settingInfo['timezone'])){\n";
echo "\tif (\$settingInfo['showcalendar']==1){\n";
echo "\t\tinclude(\"include/ncalendar.inc.php\");\n";
echo "\t}else{\n";
echo "\t\tinclude(\"include/calendar.inc.php\");\n";
echo "\t}\n";
echo "}else{\n";
echo "\techo readfromfile(F2BLOG_ROOT.\"./cache/cache_calendar.php\");\n";
echo "}?>\n";
break;
case "skinSwitch":
echo create_sidebar_header("SkinSwitchForPJBlog", $sidetitle, $isInstall);
echo "<form name=\"skinForm\" action=\"\" method=\"post\" style=\"margin:0px;\">\n";
echo " <select name=\"skinSelect\" onchange=\"if (this.value!='0') {document.forms['skinForm'].submit();}\">\n";
echo "\t<?php \n";
echo "\tforeach(\$skinlistcache as \$key=>\$value){\n";
echo "\t\t\$selected=(\$key==\$blogSkins)?\"selected\":\"\";\n";
echo "\t\techo \"<option value='\$key' \$selected>\$key</option>\n\";\n";
echo "\t}\n";
echo "\t?>\n";
echo " </select>\n";
echo "</form>\n";
break;
case "aboutBlog":
echo create_sidebar_header("AboutMe", $sidetitle, $isInstall);
echo "<p align=\"center\"> \n";
echo "<img src=\"./attachments/" . $settingInfo['logo'] . "\" align=\"middle\" alt=\"\" />\n";
echo "<br />" . $settingInfo['name'] . "<br />" . $settingInfo['blogTitle'] . "\n";
echo "</p> \n";
break;
case "userPanel":
echo create_sidebar_header("User", $sidetitle, $isInstall);
echo "<?php if (!empty(\$_SESSION['username']) && \$_SESSION['username']!=\"\") { ?> \n";
echo "<a href=\"register.php\" class=\"sideA\">{$strModifyInfo}</a> \n";
echo "<a href=\"login.php?action=logout\" class=\"sideA\">{$strLogout}</a> \n";
echo "<?php } else { ?> \n";
echo "<?php if (\$settingInfo['loginStatus']==0) { ?> \n";
echo "<a href=\"login.php\" class=\"sideA\">{$strLoginSubmit}</a> \n";
echo "<?php } ?> \n";
echo "<?php if (\$settingInfo['isRegister']==0) { ?> \n";
echo "<a href=\"register.php\" class=\"sideA\">{$strUserRegister}</a> \n";
echo "<?php } ?> \n";
echo "<?php } ?> \n";
break;
case "search":
echo create_sidebar_header("Search", $sidetitle, $isInstall);
echo "<form style=\"MARGIN: 0px\" onsubmit=\"if (this.seekname.value.length<1) {alert('" . $strSearchErr . "');this.seekname.focus();return false}\" action=\"index.php\"> \n";
echo " {$strKeyword} ";
if ($settingInfo['disSearch'] == 0) {
//不显示类别与按键
echo " <input class=\"userpass\" name=\"seekname\" onmouseup=\"document.getElementById('searchbar').style.display=''\"/> \n";
echo "\t<div style=\"overflow: hidden; height: 3px\"> </div> \n";
echo " <div id=\"searchbar\" style=\"display:none\"> \n";
echo "\t<select name=\"job\"> \n";
echo "\t<option value=\"searchTitle\" selected=\"selected\">{$strSearchTitle}</option> \n";
echo "\t<option value=\"searchContent\">{$strSearchContent}</option> \n";
echo "\t<option value=\"searchAll\">{$strSearchTitleContent}</option> \n";
echo "\t</select> \n";
echo " <input name=\"submit\" type=\"submit\" class=\"userbutton\" value=\"{$strFind}\" /> \n";
echo " </div> \n";
} else {
echo " <input class=\"userpass\" name=\"seekname\"> \n";
echo "\t<div style=\"overflow: hidden; height: 3px\"> </div> \n";
echo "\t<select name=\"job\"> \n";
echo "\t<option value=\"searchTitle\" selected=\"selected\">{$strSearchTitle}</option> \n";
echo "\t<option value=\"searchContent\">{$strSearchContent}</option> \n";
echo "\t<option value=\"searchAll\">{$strSearchTitleContent}</option> \n";
echo "\t</select> \n";
echo " <input name=\"submit\" type=\"submit\" class=\"userbutton\" value=\"{$strFind}\" /> \n";
}
echo "</form> \n";
break;
default:
//自定HTML代码
echo create_sidebar_header($sidename, $sidetitle, $isInstall);
echo htmldecode($htmlcode);
//.........这里部分代码省略.........
示例5: htmldecode
require_once "../../module/config.php";
require_once "../../module/fb.php";
//id
$id = $_SESSION['id'];
$tid = $_GET["tid"];
$query_team = $db->runQuery("select * from " . $team . " where num={$tid}");
$row_team = $db->fetch_array($query_team);
if ($row_team) {
$member_id = $row_team["member_id"];
//創立者ID
$team_name = $row_team["team_name"];
//隊伍名稱
$team_class = $row_team["team_class"];
//隊伍類別
$team_memo = htmldecode($row_team["team_memo"]);
//隊伍簡介
$team_picture = $row_team["team_picture"];
//隊伍LOGO
$wdate = $row_team["wdate"];
//建立日期
} else {
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文件</title>
<?php
require_once "../../module/meta.php";
示例6: main_module
function main_module($mainname, $maintitle, $htmlcode)
{
echo "<div id=\"Content_{$mainname}\" class=\"content-width\"> \n";
echo htmldecode($htmlcode);
echo "</div> \n";
}
示例7: consultar
/**
*
*/
function consultar($tipo, $numero, $modo = NULL)
{
$sql = "SELECT id, tipo_identificacion, numero_documento, nombre1, nombre2,\n apellido1,apellido2,direccion, telefono, fecha_nacimiento,sexo,barrio,unidad_medida,\n zona,grupo_etnico,municipio,edad\n FROM {$this->tabla}\n WHERE tipo_identificacion = '" . strtoupper($tipo) . "'\n AND numero_documento = '" . strtoupper($numero) . "'";
$rst = $this->queryRow($sql);
if ($modo) {
return $rst;
}
if (!$rst) {
$respuesta = "{\"documento\":\"0\"}";
} else {
foreach ($rst as $key => $valor) {
$array[$key] = htmldecode($valor);
}
$rst = $array;
$respuesta = json_encode($rst);
}
header("Content-type: application/json");
echo $respuesta;
}
示例8: htmlout
<h3>Confirmación de borrado de la planta</h3>
<form action="" method="post">
<h4>Estás seguro de que deseas borrar la planta número: <?php
htmlout(htmldecode($valores['planta']));
?>
,
de: <?php
htmlout(htmldecode($valores['razonsocial']));
?>
,
ubicada en el estado: <?php
htmlout(htmldecode($valores['estado']));
?>
,
ciudad: <?php
htmlout(htmldecode($valores['ciudad']));
?>
.<h4>
<p>
<input type="hidden" name="id" value="<?php
htmlout($id);
?>
">
<input type="hidden" name="ot" value="<?php
htmlout($_SESSION['OT']);
?>
">
<input type="submit" class="btn btn-danger" style="width:90px" name="accion" value="Cancelar">
<input type="submit" class="btn btn-primary" style="width:90px"name="accion" value="Continuar">
</p>
</form>
示例9: viewItem
public function viewItem()
{
$db = D('BestForBaby');
$id = I('get.id', 0, 'intval');
if ($id == 0) {
$this->error('商品不存在', '/index.php/home/bestforbaby', 2);
die;
} else {
$item = $db->relation(true)->find($id);
$categoryDB = M("Category");
$category = $categoryDB->where("layer=%d", $this->_categoryLayer)->select();
//get brand, corp and category
$brandDb = D("BrandView");
$brand = $brandDb->find($item['brand_id']);
//var_dump($brand);
$instruction = M('Instruction');
$instructions = $instruction->where("item_id=%d", $id)->select();
$item['content'] = htmlspecialchars_decode($item['content'], ENT_QUOTES);
$items = htmldecode($instructions);
//get versions
$version = $item['brand_id'] ? $db->where("brand_id=%d", $item['brand_id'])->select() : null;
//get the image set under each view&size option
$options;
//if view is not empty
if (!is_null($item['view'])) {
//not null, to obtain the images of each view
foreach ($item['view'] as $t) {
$view_id = $t['id'];
$imgDB = D('ItemImgView');
$img = $imgDB->where("item_id = {$id} and view_id = {$view_id}")->select();
if ($img) {
$this->assign("itemViewImg", $img);
$this->assign("selectedView", $view_id);
break;
}
}
}
$Ins = new InstructionController();
$title = $Ins->listTitle($id);
//template assignments
$this->assign("title", $title);
$this->assign("version", $version);
$this->assign("item", $item);
$this->assign("brand", $brand);
$this->assign("imgs", $options);
$this->assign("itemView", $item['view']);
$this->assign("itemSize", $item['size']);
$this->assign("instructions", $items);
$this->initTpl(__FUNCTION__);
$this->assign("category", $category);
$this->display();
}
}
示例10: htmlout
?>
<tr>
<td><?php
htmlout($calibracion['id']);
?>
</td>
<td><?php
htmlout(htmldecode($calibracion['Numero_Inventario']));
?>
</td>
<td><?php
htmlout(htmldecode($calibracion['laboratorioacreditacion']));
?>
</td>
<td><?php
htmlout(htmldecode($calibracion['fechacalibracion']));
?>
</td>
<td>
<form action="?" method="post">
<div>
<input type="hidden" name="id" value="<?php
echo $calibracion['id'];
?>
">
<input type="hidden" name="numero" value="<?php
echo $calibracion['Numero_Inventario'];
?>
">
<input type="submit" name="accion" value="ver">
<input type="submit" name="accion" value="editar">
示例11: while
$sav_cat = '';
@reset($field_def);
while (list($def_key, $def_data) = @each($field_def)) {
$def_type = $def_data['type'];
$def_name = 'field_det_' . $def_key;
$def_value = $field_det[$def_key];
$protected = $def_key == 'field_name' && !empty($field);
$style = $protected ? '<b>%s</b>' : '';
if ($field_def[$def_key]['cat'] == $cur_cat) {
$template->assign_block_vars('row', array('L_FIELD' => pcp_format_lang($def_data['lang_key']), 'L_FIELD_EXPLAIN' => pcp_format_lang($def_data['explain']), 'FIELD' => pcp_format_input($def_type, $def_name, $def_value, $style, $protected)));
if ($sav_cat != $def_data['cat']) {
$sav_cat = $def_data['cat'];
$template->assign_block_vars('row.cat', array('L_CAT' => pcp_format_lang($field_cat[$cur_cat])));
}
} else {
$s_hidden_fields .= '<input type="hidden" name="' . $def_name . '" value="' . htmlspecialchars(htmldecode($def_value)) . '" />';
}
}
// we don't accept yet rename of existing fields in the database, because of ms- databases
if (!empty($field) && isset($fields_table[$field])) {
$template->assign_block_vars('protected', array());
} else {
$template->assign_block_vars('opened', array());
}
// footer
$s_hidden_fields .= '<input type="hidden" name="mode" value="' . $mode . '" />';
$s_hidden_fields .= '<input type="hidden" name="field" value="' . $field . '" />';
$s_hidden_fields .= '<input type="hidden" name="sort" value="' . $sort . '" />';
$s_hidden_fields .= '<input type="hidden" name="order" value="' . $order . '" />';
$template->assign_vars(array('S_ACTION' => append_sid("./admin_pcp_userfields.{$phpEx}"), 'S_HIDDEN_FIELDS' => $s_hidden_fields));
}
示例12: htmldecode
程序維護 By <a href="http://blog.phptw.idv.tw" target="_blank"><strong>墮落程式</strong></a>
Design by <a href="mailto:<?php
echo $getDefaultSkinInfo['DesignerMail'];
?>
"><?php
echo $getDefaultSkinInfo['SkinDesigner'];
?>
</a> Skin from <?php
echo $getDefaultSkinInfo['SkinSource'];
?>
<?php
/*if ($settingInfo['about']!="") {
echo "<a href=\"http://www.miibeian.gov.cn\" target=\"_blank\">".$settingInfo['about']."</a>";
}*/
if ($settingInfo['footcode'] != "") {
echo htmldecode($settingInfo['footcode']);
}
if ($settingInfo['isProgramRun'] == 1) {
$mtime = explode(' ', microtime());
$totaltime = number_format($mtime[0] + $mtime[1] - $starttime, 6);
if ($settingInfo['gzipstatus'] == 1) {
$gzipstatus = "Gzip enabled";
} else {
$gzipstatus = "";
}
echo "<br /> Processed in <b>" . $totaltime . "</b> second(s), <b>" . $DMC->querycount . "</b> queries, {$gzipstatus}<br />\n";
}
?>
</p>
</div>
</div>
示例13: check
function check($str)
{
$str = htmlspecialchars(stripslashes($str));
$str = @mysql_escape_string($str);
$str = htmldecode($str);
return $str;
}
示例14: htmldecode
$row_array6['appliedyear'] = $row['applied_to_jbims_before_year'];
$row_array6['supportinfo'] = htmldecode($row['other_support_information']);
}
//push the values in the array
array_push($json_response, $row_array6);
$payment = "SELECT * FROM `users_payment_details` WHERE application_id ='" . $finalapplicationid . "'";
$selectpayment = mysql_query($payment);
if (!$selectpayment) {
die('Could not enter data: ' . mysql_error());
}
while ($row = mysql_fetch_array($selectpayment, MYSQL_ASSOC)) {
$row_array7['paymentmode'] = $row['payment_mode'];
$row_array7['ddpaymentmode'] = $row['dd_payment_mode'];
$row_array7['referencenumber'] = $row['dd_reference_number'];
$row_array7['paymentemailid'] = $row['dd_email_address'];
$row_array7['nameofbank'] = htmldecode($row['dd_bank_name']);
$row_array7['paymentdate'] = $row['dd_date'];
$row_array7['paymentamount'] = $row['payment_amount'];
$row_array7['paymentstatus'] = $row['payment_status'];
}
//push the values in the array
array_push($json_response, $row_array7);
$cat = "SELECT * FROM `users_cat_score_details` WHERE application_id ='" . $finalapplicationid . "'";
$selectcat = mysql_query($cat);
if (!$selectcat) {
die('Could not enter data: ' . mysql_error());
}
while ($row = mysql_fetch_array($selectcat, MYSQL_ASSOC)) {
$row_array8['catapplicationid'] = $row['cat_application_id'];
$row_array8['catexamdate'] = $row['cat_exam_date'];
}
示例15: header
+--------------------------------------------------
| CONFIGURATION AND INSTALATION NOTES
+--------------------------------------------------
| This program does not include any instalation or configuration
| notes because it simply does not require them.
| Just throw this file anywhere in your webserver and enjoy !!
+--------------------------------------------------
*/
// +--------------------------------------------------
// | Header and Globals
// +--------------------------------------------------
header("Pragma: no-cache");
header("Cache-Control: no-store");
foreach ($_GET as $key => $val) $$key=htmldecode($val);
foreach ($_POST as $key => $val) $$key=htmldecode($val);
foreach ($_COOKIE as $key => $val) $$key=htmldecode($val);
if (empty($_SERVER["HTTP_X_FORWARDED_FOR"])) $ip = $_SERVER["REMOTE_ADDR"]; //nao usa proxy
else $ip = $_SERVER["HTTP_X_FORWARDED_FOR"]; //usa proxy
$islinux = !(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN');
$url_info = parse_url($_SERVER["HTTP_REFERER"]);
$doc_root = ($islinux) ? $_SERVER["DOCUMENT_ROOT"] : ucfirst($_SERVER["DOCUMENT_ROOT"]);
$script_filename = $doc_root.$_SERVER["PHP_SELF"];
$path_info = pathinfo($script_filename);
// +--------------------------------------------------
// | Config
// +--------------------------------------------------
$cfg = new config();
$cfg->load();
ini_set("display_errors",1);
ini_set("error_reporting",$error_reporting);
if (!isset($dir_atual)){