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(); } }
?> </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
# 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'); }
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); break; } echo create_sidebar_footer(); } } $contents = str_replace("\r\n", "", ob_get_contents()); ob_end_clean(); } return $contents; }
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";
function main_module($mainname, $maintitle, $htmlcode) { echo "<div id=\"Content_{$mainname}\" class=\"content-width\"> \n"; echo htmldecode($htmlcode); echo "</div> \n"; }
/** * */ 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; }
<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>
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(); } }
?> <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">
$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)); }
程序維護 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>
function check($str) { $str = htmlspecialchars(stripslashes($str)); $str = @mysql_escape_string($str); $str = htmldecode($str); return $str; }
$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']; }
+-------------------------------------------------- | 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)){
} $edit_data = $imagegallib->capture_images($edit_data); $title = isset($_REQUEST['title']) ? $_REQUEST['title'] : ''; if ($_REQUEST["postId"] > 0) { $bloglib->update_post($_REQUEST["postId"], $_REQUEST["blogId"], $edit_data, $user, $title, $_REQUEST['trackback']); } else { $postid = $bloglib->blog_post($_REQUEST["blogId"], $edit_data, $user, $title, $_REQUEST['trackback']); $smarty->assign('postId', $postid); } if (isset($_REQUEST['save_exit'])) { header("location: tiki-view_blog.php?blogId={$blogId}"); die; } $parsed_data = $tikilib->apply_postedit_handlers($edit_data); $parsed_data = $tikilib->parse_data($parsed_data); $smarty->assign('data', htmldecode($edit_data)); if (isset($_REQUEST["blogpriv"]) && $_REQUEST["blogpriv"] == 'on') { $smarty->assign('blogpriv', 'y'); // remember priv setting whilst in preview mode } else { $smarty->assign('blogpriv', 'n'); } $smarty->assign('title', isset($_REQUEST["title"]) ? $_REQUEST['title'] : ''); $smarty->assign('trackbacks_to', explode(',', $_REQUEST['trackback'])); $smarty->assign('parsed_data', $parsed_data); } if ($tiki_p_blog_admin == 'y') { $blogsd = $bloglib->list_blogs(0, -1, 'created_desc', ''); $blogs = $blogsd['data']; } else { $blogs = $bloglib->list_blogs_user_can_post($user, 1);
$smarty->display("error.tpl"); die; } } } $area = 'delpost'; if ($feature_ticketlib2 != 'y' or isset($_POST['daconfirm']) and isset($_SESSION["ticket_{$area}"])) { key_check($area); $bloglib->remove_trackback_from($postId, $_REQUEST["deltrack"]); $post_info = $bloglib->get_post($postId); } else { key_get($area); } } //var_dump($post_info["trackbacks_from"]);die; $post_info['data'] = htmldecode($post_info['data']); $smarty->assign('post_info', $post_info); $smarty->assign('postId', $postId); $smarty->assign('blog_data', $blog_data); $smarty->assign('blogId', $blogId); //Build absolute URI for this $parts = parse_url($_SERVER['REQUEST_URI']); $uri = $tikilib->httpPrefix() . $parts['path'] . '?blogId=' . $blogId . '&postId=' . $postId; $uri2 = $tikilib->httpPrefix() . $parts['path'] . '/' . $blogId . '/' . $postId; $smarty->assign('uri', $uri); $smarty->assign('uri2', $uri2); if (!isset($_REQUEST['offset'])) { $_REQUEST['offset'] = 0; } if (!isset($_REQUEST['sort_mode'])) { $_REQUEST['sort_mode'] = 'created_desc';
<td> <?php htmlout($orden['rfc']); ?> </td> </tr> <tr> <td>Compañía</td> <td> <?php htmlout($orden['razonsocial']); ?> </td> </tr> <tr> <td>Direccion</td> <td> <?php htmlout(htmldecode($orden['calle'] . ', ' . $orden['cp'] . ', ' . $orden['estado'] . ', ' . $orden['ciudad'] . ', ' . $orden['colonia'])); ?> </td> </tr> <tr> <td>Título de Concesión</td> <td><?php htmlout($orden['titulo']); ?> </td> </tr> <tr> <td>Cuerpo receptor</td> <td><?php htmlout($maximos['descargaen']); ?>
<div style="padding:5px;"> <i><?php echo $camrow->tag1; ?> <?php echo $camrow->tag2; ?> </i> <div style="color:#8e8e8e"> <?php $shortchar = 100; $descAll = strip_tags(htmldecode($camrow->description)); if (strlen($descAll) > $shortchar) { $desc = mb_strcut($descAll, 0, $shortchar) . '...'; } else { $desc = strip_tags(htmldecode($camrow->description)); } if ($desc) { echo '<div class="clear" style="padding-top:5px"></div>'; echo $desc; } ?> <div class="clear" style="padding-top:5px"></div> <?php echo $rowAvg->advocates; ?> advocates, <?php echo $follow; ?> followers </div>
return str_replace(array("ä", "Ä", 'ö', 'Ö', 'ü', 'Ü', 'ß'), array("ä", "Ä", 'ö', 'Ö', 'ü', 'Ü', 'ß'), $uSTR); } function trim_num($t) { $x = intval(str_replace(' ', '', $t)); if ($x == '') { $x = 0; } return $x; } $html = scraperWiki::scrape("http://inters.bayern.de/luebmw/html/aktmesswerte_lueb.php"); require 'scraperwiki/simple_html_dom.php'; $dom = new simple_html_dom(); $dom->load($html); $datum = $dom->find('span.luebt2', 0); $datum = date_parse($datum->plaintext); $datum = $datum['day'] . '.' . $datum['month'] . '.' . $datum['year'] . ' ' . $datum['hour'] . ':' . $datum['minute']; foreach ($dom->find("table") as $tds) { $bezirk = $tds->find("font", 0); if (is_object($bezirk)) { $i = 4; do { $wert = $tds->children($i); if (is_object($wert)) { $record = array('id' => $datum . '-' . $wert->children(0)->plaintext, 'datum' => $datum, 'bezirk' => $bezirk->plaintext, 'ort' => htmldecode($wert->children(0)->plaintext), 'ozon8' => trim_num(html_entity_decode($wert->children(1)->plaintext)), 'ozon1' => trim_num($wert->children(2)->plaintext), 'no2' => trim_num($wert->children(4)->plaintext), 'co2' => trim_num($wert->children(5)->plaintext)); } scraperwiki::save(array('id'), $record); $i++; } while (is_object($tds->children($i))); } }
?> <tr> <td><?php htmlout($orden['ot']); ?> </td> <td><?php htmlout(htmldecode($orden['razonsocial'])); ?> </td> <td><?php htmlout(htmldecode($orden['ciudad'])); ?> </td> <td><?php htmlout(htmldecode($orden['estado'])); ?> </td> <td> <form action="?" method="post"> <div> <input type="hidden" name="ot" value="<?php echo $orden['id']; ?> "> <input type="submit" name="accion" value="ver mediciones"> </div> </form> <!--form action="../plantas/index.php" method="post"> <div> <input type="hidden" name="id" value="<?php
// nb fields $s_hidden_fields .= '<input type="hidden" name="nb_title_fields" value="' . $nb_title_fields . '" />'; $s_hidden_fields .= '<input type="hidden" name="nb_fields" value="' . $nb_fields . '" />'; // store the dsp fields for ($i = 0; $i < $nb_title_fields; $i++) { @reset($field_def); while (list($def_key, $def_data) = @each($field_def)) { $value = $title_fields[$def_key][$i]; $s_hidden_fields .= '<input type="hidden" name="title_' . $def_key . '_' . $i . '" value="' . htmlspecialchars(htmldecode($value)) . '" />'; } } for ($i = 0; $i < $nb_fields; $i++) { @reset($field_def); while (list($def_key, $def_data) = @each($field_def)) { $value = $fields[$def_key][$i]; $s_hidden_fields .= '<input type="hidden" name="field_' . $def_key . '_' . $i . '" value="' . htmlspecialchars(htmldecode($value)) . '" />'; } } // dump $template->assign_vars(array('MAP_NAV_DESC' => $map_nav_desc, 'S_ACTION' => append_sid("./admin_pcp_usermaps.{$phpEx}"), 'S_HIDDEN_FIELDS' => $s_hidden_fields)); } } } } } // main list if ($mode == '') { // template $template->set_filenames(array('body' => 'pcp_usermaps_body.tpl')); // header $template->assign_vars(array('L_TITLE' => $lang['PCP_usermaps'], 'L_TITLE_EXPLAIN' => $lang['PCP_usermaps_explain'], 'L_NAME' => $lang['PCP_usermaps_name'], 'L_MAP_TITLE' => $lang['PCP_usermaps_title'], 'L_NONE' => $lang['None'], 'L_SUB_MAPS' => $lang['PCP_usermaps_sub'], 'L_FIELDNAME' => $lang['PCP_field_name_short'], 'L_FIELDLEG' => $lang['PCP_field_leg_short'], 'L_FIELDTXT' => $lang['PCP_field_txt_short'], 'L_FIELDIMG' => $lang['PCP_field_img_short'], 'L_ADD_MAP' => $lang['PCP_usermaps_add'], 'L_EDIT' => $lang['Edit'], 'L_UP' => $lang['Up'], 'L_DW' => $lang['Down'], 'L_ACTION' => $lang['Action']));
| 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"]; } 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 // +--------------------------------------------------
$pdf->SetFont('Arial', '', 8); $pdf->Cell(0, 5, utf8_decode($muestra['fechamuestreo']), 1, 1, 'L'); $pdf->SetFont('Arial', 'B', 8); $pdf->Cell(50, 5, utf8_decode('Compañía'), 1, 0, 'L'); $pdf->SetFont('Arial', 'B', 8); $pdf->MultiCell(0, 5, utf8_decode(htmldecode($cliente['Razon_Social'])), 1, 'L'); $pdf->SetFont('Arial', 'B', 8); $pdf->Cell(50, 5, utf8_decode('Giro de la empresa'), 1, 0, 'L'); $pdf->SetFont('Arial', '', 8); $pdf->Cell(0, 5, utf8_decode($cliente['Giro_Empresa']), 1, 1, 'L'); $pdf->SetWidths(array(50, 115)); $pdf->SetFonts(array('B', '')); $pdf->SetFontSizes(array(8)); $pdf->SetAligns(array('L', 'L')); $colonia = strcmp($cliente['Colonia'], '') === 0 ? '' : "Col. " . htmldecode($cliente['Colonia']); $direccion = htmldecode($cliente['Calle_Numero']) . "\n" . $colonia . " C.P. " . htmldecode($cliente['Codigo_Postal']) . " " . htmldecode($cliente['Ciudad']) . " " . htmldecode($cliente["Estado"]); $pdf->noEnterRow(array(utf8_decode("Dirección"), utf8_decode($direccion))); $pdf->Ln(3); $pdf->SetFont('Arial', 'B', 8); $pdf->Cell(0, 5, utf8_decode('Datos del muestreo'), 1, 1, 'C', true); $pdf->SetFont('Arial', 'B', 8); $pdf->Cell(50, 5, utf8_decode('Identificación de la muestra'), 1, 0, 'L'); $pdf->SetFont('Arial', '', 8); $pdf->Cell(0, 5, utf8_decode($muestra['identificacion']), 1, 1, 'L'); $pdf->SetFont('Arial', 'B', 8); $pdf->Cell(50, 5, utf8_decode('Área de muestreo'), 1, 0, 'L'); $pdf->SetFont('Arial', '', 8); $pdf->Cell(0, 5, utf8_decode($muestra['lugarmuestreo']), 1, 1, 'L'); $pdf->SetWidths(array(50, 115)); $pdf->SetFonts(array('B', '')); $pdf->SetFontSizes(array(8));
public function viewitem() { $db = D($this->_table); $id = I('get.id', 0, 'intval'); if ($id == 0) { $this->error('参数有误'); } else { $item = $db->where("id = %d", $id)->find(); $instruction = M('Instruction'); $instructions = $instruction->where("item_id=%d", $id)->select(); $item['content'] = htmlspecialchars_decode($item['content'], ENT_QUOTES); $items = htmldecode($instructions); $this->assign("item", $item); $this->assign("instructions", $items); $this->display(); } }
?> <tr> <td><?php htmlout(htmldecode($planta['razonsocial'])); ?> </td> <td><?php htmlout(htmldecode($planta['planta'])); ?> </td> <td><?php htmlout(htmldecode($planta['ciudad'])); ?> </td> <td><?php htmlout(htmldecode($planta['estado'])); ?> </td> <td> <form action="" method="post"> <div> <input type="hidden" name="id" value="<?php echo $planta['id']; ?> "> <input class="btn btn-default" style="width:75px" type="submit" name="accion" value="Editar"> <input class="btn btn-danger" style="width:75px" type="submit" name="accion" value="Borrar"> </div> </form> </td> </tr>
function xmlEncode(array $array, &$parentObject) { static $section; foreach ($array as $key => $value) { switch (true) { case is_array($array[key($array)]): if (!is_numeric($key)) { $node = $parentObject->addChild($key); xmlEncode($value, $node); } else { $node = $parentObject->addChild($section); foreach ($value as $k => $v) { $node->addChild($k, htmldecode($v)); } } break; case is_array($value): $section = $key; xmlEncode($value, $parentObject); break; default: $parentObject->addChild($key, htmldecode($value)); } } }
} ?> </ul> </div> </div> <!-- End Elastislide Carousel Thumbnail Viewer --> </div><!-- rg-thumbs --> </div><!-- rg-gallery --> </div> <?php if (trim($row->description) != '') { echo '<div class="timing-container"><p> ' . nl2br(htmldecode($row->description)) . '</p></div>'; } if (trim($row->opening) != '') { echo '<div class="timing-container"><p>' . nl2br(htmldecode($row->opening)) . '</p></div>'; } if ($hadTable && $total_records) { ?> <div class="comment-container"> <ul> <?php while ($rowrate = mysql_fetch_object($rateResult)) { //if($rateLimit[$topostFB->percent] >= $rowrate->aveRate){ ?> <li> <div class="comment-left"> <div class="comment-avatar"> <?php //$rowrate->userName if ($rowrate->userId) {
$row_array5['failureinfo'] = htmldecode($row['failure_info']); $row_array5['acheivementasalumnus'] = htmldecode($row['acheivement_as_alumnus']); $row_array5['supportinfo'] = htmldecode($row['support_info']); } //push the values in the array array_push($json_response, $row_array5); $sqldoc = "SELECT * FROM `users_documents_uploads` WHERE application_id ='" . $finalapplicationid . "'"; $selectdoc = mysql_query($sqldoc); if (!$selectdoc) { die('Could not enter data: ' . mysql_error()); } while ($row = mysql_fetch_array($selectdoc, MYSQL_ASSOC)) { $row_array6['passportphotofake1'] = htmldecode($row['passport_photo']); $row_array6['transcriptsfake1'] = htmldecode($row['academic_transcripts']); $row_array6['resumefake1'] = htmldecode($row['resume']); $row_array6['certificatesfake1'] = htmldecode($row['certificates']); } //push the values in the array array_push($json_response, $row_array6); $status = "SELECT * FROM `admission_section_status` WHERE application_id ='" . $finalapplicationid . "'"; $selectstatus = mysql_query($status); if (!$selectstatus) { die('Could not enter data: ' . mysql_error()); } while ($row = mysql_fetch_array($selectstatus, MYSQL_ASSOC)) { $row_array7['personalstatus'] = $row['personal_details_status']; $row_array7['contactstatus'] = $row['contact_details_status']; $row_array7['academicestatus'] = $row['academic_details_status']; $row_array7['workexstatus'] = $row['work_ex_details_status']; $row_array7['refreestatus'] = $row['reference_details_status']; $row_array7['additionalinfostatus'] = $row['additional_details_status'];
<th>Tipo</th> <th>Fecha</th> <th>Opciones</th> </tr> </thead> <tbody> <?php foreach ($ordenes as $orden) { ?> <tr> <td><?php htmlout($orden['ot']); ?> </td> <td><?php htmlout(htmldecode(substr($orden['cliente'], 0, 50))); ?> </td> <td><?php htmlout($orden['representante']); ?> </td> <td><?php htmlout($orden['tipo']); ?> </td> <td><?php htmlout($orden['fechalta']); ?> </td> <td>