本文整理汇总了PHP中basis_db::convert_html_chars方法的典型用法代码示例。如果您正苦于以下问题:PHP basis_db::convert_html_chars方法的具体用法?PHP basis_db::convert_html_chars怎么用?PHP basis_db::convert_html_chars使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类basis_db
的用法示例。
在下文中一共展示了basis_db::convert_html_chars方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: studiengang
{
sortList: [[0,0]],
widgets: ["zebra"]
});
});
</script>
</head>
<body>';
$stgkuerzel = '';
if ($studiengang_kz != '') {
$stg_obj = new studiengang();
$stg_obj->load($studiengang_kz);
$stgkuerzel = $stg_obj->kuerzel;
}
echo '
<h2>Studierende ZGV - Studiensemester ' . $db->convert_html_chars($studiensemester_kurzbz) . ' Studiengang ' . $db->convert_html_chars($stgkuerzel) . '</h2>
';
echo '<form action="' . $_SERVER['PHP_SELF'] . '" METHOD="POST">
Studiensemester: <SELECT name="stsem">';
foreach ($stsem->studiensemester as $row) {
if ($studiensemester_kurzbz == $row->studiensemester_kurzbz) {
$selected = 'selected';
} else {
$selected = '';
}
echo '<OPTION value="' . $row->studiensemester_kurzbz . '" ' . $selected . '>' . $row->studiensemester_kurzbz . '</OPTION>';
}
echo '</SELECT>';
echo ' Studiengang: <SELECT name="stg_kz">';
foreach ($stg->result as $row) {
if ($studiengang_kz == '') {
示例2:
</ul>
<br>
<a href ="<?php
echo APP_ROOT . 'soap/lehrveranstaltung.wsdl.php';
?>
">Show WSDL </a>
<br>
<h2>Testformular</h2>
<?php
if ($method == 'studiengang') {
echo '
<form action="' . $_SERVER["PHP_SELF"] . '?method=studiengang" method="post">
<table border="0" cellpadding="5" cellspacing="0" bgcolor="#E0E0E0">
<tr>
<td align="right">Name* :</td>
<td><input name="username" type="text" size="30" maxlength="255" value="' . $db->convert_html_chars(isset($_REQUEST['username']) ? $_REQUEST['username'] : "") . '"></td>
</tr>
<tr>
<td align="right">Passwort* :</td>
<td><input name="passwort" type="password" size="30" maxlength="255" value="' . $db->convert_html_chars(isset($_REQUEST['passwort']) ? $_REQUEST['passwort'] : "") . '"></td>
</tr>
<tr>
<td align="right">Studiengang* :</td>
<td><input name="studiengang" type="text" size="30" maxlength="10" value="' . $db->convert_html_chars(isset($_REQUEST['studiengang']) ? $_REQUEST['studiengang'] : "") . '"></td>
</tr>
<tr>
<td align="right">Studiensemester* :</td>
<td><input name="semester" type="text" size="30" maxlength="10" value="' . $db->convert_html_chars(isset($_REQUEST['semester']) ? $_REQUEST['semester'] : "") . '"></td>
</tr>
<tr>
<td align="right">Ausbildungssemester :</td>
示例3: benutzerberechtigung
</head>
<body>
<h2>FH Ausweis</h2>
';
$uid = get_uid();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($uid);
if (!$rechte->isBerechtigt('basis/fhausweis') && !$rechte->isBerechtigt('assistenz')) {
die('Sie haben keine Berechtigung für diese Seite');
}
$db = new basis_db();
$filter = isset($_POST['filter']) ? $_POST['filter'] : '';
$person_id = isset($_GET['person_id']) ? $_GET['person_id'] : '';
$datum_obj = new datum();
echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="POST">
Suche: <input type="text" name="filter" value="' . $db->convert_html_chars($filter) . '"/>
<input type="submit" name="search" value="Suchen" />
</form>';
if (isset($_POST['search'])) {
$person = new person();
$person->getTab($filter);
if (count($person->personen) == 1) {
//wenn nur ein Ergebnis zurueck kommt - gleich anzeigen
$person_id = $person->personen[0]->person_id;
} else {
echo '<table class="tablesorter" id="myTable">
<thead>
<th>Aktion</th>
<th>PersonID</th>
<th>Vorname</th>
<th>Nachname</th>
示例4: studienplan
<box class='Datum' id="student-rolle-datum-datum" />
</row>
<row>
<label value="Bestätigt am" control="student-rolle-datum-bestaetigt_datum"/>
<box class='Datum' id="student-rolle-datum-bestaetigt_datum" />
</row>
<row>
<label value="Studienplan" control="student-rolle-menulist-studienplan"/>
<menulist id="student-rolle-menulist-studienplan" >
<menupopup>
<menuitem value="" label="-- keine Auswahl --"/>
<?php
$studienplan = new studienplan();
$studienplan->getStudienplaene($prestudent->studiengang_kz);
foreach ($studienplan->result as $row) {
echo '<menuitem value="' . $row->studienplan_id . '" label="' . $db->convert_html_chars($row->bezeichnung . ' (' . $row->studienplan_id . ')') . '"/>';
}
?>
</menupopup>
</menulist>
</row>
<row>
<label value="Anmerkung"/>
<textbox id="student-rolle-textbox-anmerkung" multiline="true" />
</row>
</rows>
</grid>
<hbox>
<spacer flex="1" />
<button id="student-rolle-button-speichern" oncommand="StudentRolleSpeichern()" label="Speichern" />
</hbox>
示例5:
$searchstr = $_GET['searchstr'];
} else {
$searchstr = '';
}
if (isset($_GET['typ'])) {
$typ = $_GET['typ'];
} else {
$typ = 'Zutrittskarte';
}
$htmlstr .= '
<table width="100%">
<tr>
<td>
<form accept-charset="UTF-8" name="search" method="GET">
Bitte Suchbegriff eingeben:
<input type="text" name="searchstr" size="30" value="' . $db->convert_html_chars($searchstr) . '">
<SELECT name="typ">
<option value="Zutrittskarte" ' . ($typ == 'Zutrittskarte' ? 'selected' : '') . '>Zutrittskarte</option>
<option value="Schluessel" ' . ($typ == 'Schluessel' ? 'selected' : '') . '>Schluessel</option>
</SELECT>
<input type="submit" value="Suchen">
</form>
</td>
<td align="right">
<form name="suche" method="POST" action="">
Kartennummer (Lesegerät): <input type="text" value="" id="bmsuche" maxlength=12 size=12 name="bmsuche" tabindex="1"/>
<input type="submit" name="submit" value="Suchen">
</form>
</td>
</tr></table>';
if (isset($_GET['searchstr']) || isset($_POST['bmsuche'])) {
示例6: phrasen
$p = new phrasen(getSprache());
echo '<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>' . $p->t('passwort/Title') . '</title>
<link rel="stylesheet" href="../../../skin/fhcomplete.css" />
<link rel="stylesheet" href="../../../skin/style.css.php" />
</head>
<body>
';
$benutzer = new benutzer();
if (!$benutzer->load($uid)) {
die('Benutzer nicht gefunden');
}
echo '<h1>' . $p->t('passwort/PasswortAenderFuer', array($db->convert_html_chars($benutzer->vorname), $db->convert_html_chars($benutzer->nachname), $db->convert_html_chars($benutzer->uid))) . '</h1>';
if (!isset($_SERVER['HTTPS']) || isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'off') {
$httpspath = str_replace('http://', 'https://', APP_ROOT) . 'cis/private/profile/change_password.php';
echo '<div style="border: 2px solid red; text-align:center">' . $p->t('passwort/NoHttps') . '<br>
<a href="' . $httpspath . '">' . $p->t('passwort/ZuHttpsWechseln') . '</a></div><br>';
}
echo $p->t('passwort/InfotextPolicy') . '
<br>
<br>
<form action="' . $_SERVER['PHP_SELF'] . '" method="POST">
<table>
<tr>
<td>' . $p->t('passwort/AltesPasswort') . '</td>
<td><input type="password" name="passwort_alt"></td>
</tr>
<tr>
示例7: now
$command = 'add';
if (!$error) {
move_uploaded_file($_FILES['datei']['tmp_name'], PAABGABE_PATH . $paabgabe_id . '_' . $uid . '.pdf');
}
if (file_exists(PAABGABE_PATH . $paabgabe_id . '_' . $uid . '.pdf')) {
/*$qry="UPDATE campus.tbl_paabgabe SET
abgabedatum = now(),
updatevon = '".$user."',
updateamum = now()
WHERE paabgabe_id='".$paabgabe_id."'";
$result=$db->db_query($qry);*/
echo '<h2>' . $p->t('abgabetool/abgabeStudentenbereich') . ' - ' . $p->t('abgabetool/abgabeZusatzdaten') . '</h2>';
$qry_zd = "SELECT * FROM lehre.tbl_projektarbeit WHERE projektarbeit_id=" . $db->db_add_param($projektarbeit_id, FHC_INTEGER);
if ($result_zd = @$db->db_query($qry_zd)) {
if ($row_zd = @$db->db_fetch_object($result_zd)) {
$htmlstr = "<div>" . $p->t('abgabetool/betreuer') . ": <b>" . $db->convert_html_chars($betreuer) . "</b><br>" . $p->t('abgabetool/titel') . ": <b>" . $db->convert_html_chars($titel) . "<b><br><br></div>\n";
$htmlstr .= "<table class='detail' style='padding-top:10px;'>\n";
$htmlstr .= "<tr></tr>\n";
$htmlstr .= '<form accept-charset="UTF-8" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="POST" name="projektabgabe">' . "\n";
$htmlstr .= '<input type="hidden" name="projektarbeit_id" value="' . $db->convert_html_chars($projektarbeit_id) . '">' . "\n";
$htmlstr .= '<input type="hidden" name="paabgabe_id" value="' . $db->convert_html_chars($paabgabe_id) . '">' . "\n";
$htmlstr .= '<input type="hidden" name="paabgabetyp_kurzbz" value="' . $db->convert_html_chars($paabgabetyp_kurzbz) . '">' . "\n";
$htmlstr .= '<input type="hidden" name="abgabedatum" value="' . $db->convert_html_chars($abgabedatum) . '">' . "\n";
$htmlstr .= '<input type="hidden" name="titel" value="' . $db->convert_html_chars($titel) . '">' . "\n";
$htmlstr .= '<input type="hidden" name="uid" value="' . $db->convert_html_chars($uid) . '">' . "\n";
$htmlstr .= '<input type="hidden" name="betreuer" value="' . $db->convert_html_chars($betreuer) . '">' . "\n";
$htmlstr .= '<input type="hidden" name="bid" value="' . $db->convert_html_chars($bid) . '">' . "\n";
$htmlstr .= '<input type="hidden" name="command" value="add">' . "\n";
$htmlstr .= "<tr>\n";
$htmlstr .= "<td><b>" . $p->t('abgabetool/spracheDerArbeit') . ":</b></td><td>";
$sprache = @$db->db_query("SELECT sprache FROM public.tbl_sprache");
示例8: changeSprache
<link href="../skin/style.css.php" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
<script src="../include/js/jquery.js" type="text/javascript"></script>
</head>
<script type="text/javascript">
function changeSprache(sprache)
{
var menu = '';
var content = '';
menu = document.getElementById('menue').contentWindow.location.href;
content = document.getElementById('content').contentWindow.location.href;
menu = escape(menu);
content = escape(content);
window.location.href="index.php?sprache="+sprache+"&content_id=<?php
echo $db->convert_html_chars($id);
?>
&menu="+menu+"&content="+content;
}
function gettimestamp()
{
var now = new Date();
var ret = now.getHours()*60*60*60;
ret = ret + now.getMinutes()*60*60;
ret = ret + now.getSeconds()*60;
ret = ret + now.getMilliseconds();
return ret;
}
function loadampel()
{
$('#ampel').load('ampel.php?'+gettimestamp());
示例9:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="../include/js/jquery.js"></script>
<title>STIP-Client</title>
</head>
<body>
<h1>Testclient für Webservice Stipendienstelle</h1>
<a href="stip.wsdl.php">Show WSDL</a> <br>
<a href="stip_client_error.php">Error Tester</a>
<br><br>
<form action="stip_client.php" method="post">
<table border="0" cellpadding="5" cellspacing="0" bgcolor="#E0E0E0">
<tr>
<td align="right">Username:</td>
<td><input name="username" type="text" size="30" maxlength="50" value="<?php
echo $db->convert_html_chars(isset($_REQUEST['username']) ? $_REQUEST['username'] : "");
?>
"></td>
</tr>
<tr>
<td align="right">Passwort:</td>
<td><input name="password" type="password" size="30" maxlength="50" value=""></td>
</tr>
<tr>
<td align="right">ErhKz:</td>
<td><input name="ErhKz" type="text" size="30" maxlength="3" value="<?php
echo $db->convert_html_chars(isset($_REQUEST['ErhKz']) ? $_REQUEST['ErhKz'] : "");
?>
"></td>
</tr>
<tr>
示例10: studiengang
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
</head>
<body class="background_main">
<h2>Personensuche</h2>';
$stg = new studiengang();
$stg->getAll('typ, kurzbz', false);
$stg_arr = array();
foreach ($stg->result as $row) {
$stg_arr[$row->studiengang_kz] = $row->kuerzel;
}
echo '
<form accept-charset="UTF-8" name="search" method="GET">
Bitte Suchbegriff eingeben:
<input type="text" name="searchstr" size="30" value="' . $db->convert_html_chars($searchstr) . '">
<input type="submit" value="Suchen">
</form>';
if ($searchstr != '') {
$qry = "SELECT person_id FROM public.tbl_person WHERE person_id in(\n\t\t\tSELECT distinct person_id FROM public.tbl_person LEFT JOIN public.tbl_benutzer USING(person_id) WHERE\n\t\t\tnachname ~* '" . $db->db_escape($searchstr) . "' OR \n\t\t\tvorname ~* '" . $db->db_escape($searchstr) . "' OR\n\t\t\talias ~* '" . $db->db_escape($searchstr) . "' OR\n\t\t\tCOALESCE(nachname,'') || ' ' || COALESCE(vorname,'') = '" . $db->db_escape($searchstr) . "' OR \n\t\t\tCOALESCE(vorname,'') || ' ' || COALESCE(nachname,'') = '" . $db->db_escape($searchstr) . "' OR \n\t\t\tuid ~* '" . $db->db_escape($searchstr) . "'\n\t\t\t) ORDER BY nachname, vorname;";
if ($result = $db->db_query($qry)) {
$auth = new authentication();
echo $db->db_num_rows($result) . ' Person(en) gefunden<br><br>';
echo '<table>';
echo '<tr class="liste" align="center">';
echo "<td colspan='5'><b>Person</b></td>";
echo "<td colspan='4'><b>Benutzer</b></td>";
echo "<td colspan='4'><b>Mitarbeiter</b></td>";
echo "<td colspan='4'><b>Student</b></td>";
echo '</tr>';
echo '<tr class="liste" align="center">';
示例11: die
<link rel="stylesheet" href="../../skin/jquery.css" type="text/css"/>
<script type="text/javascript" src="../../include/js/jquery.js"></script>
<title>Kartenkorrektur</title>
</head>
<body>
<h2>Zutrittskarte - Zuordnungskorrektur</h2>';
if (!$rechte->isBerechtigt('basis/fhausweis', 'suid')) {
die('Sie haben keine Berechtigung für diese Seite');
}
$db = new basis_db();
$kartennummer_hitag = isset($_POST['kartennummer_hitag']) ? $_POST['kartennummer_hitag'] : '';
$karten_user = isset($_POST['karten_user']) ? $_POST['karten_user'] : '';
$kartennummer_mifare = isset($_POST['kartennummer_mifare']) ? $_POST['kartennummer_mifare'] : '';
$action = isset($_POST['action']) ? $_POST['action'] : '';
if ($action == 'kartentausch') {
echo '<br>Korrigiere Karte von User: ' . $db->convert_html_chars($karten_user);
echo ' ' . $db->convert_html_chars($kartennummer_hitag) . ' -> ' . $db->convert_html_chars($kartennummer_mifare);
echo '<br>';
$benutzer = new benutzer();
if (!$benutzer->load($karten_user)) {
echo '<span class="error">Fehler beim Laden des Benutzers</span>';
} else {
$error = false;
//Neue Karte aktivieren
$bmp = new betriebsmittelperson();
if ($bmp->getKartenzuordnungPerson($benutzer->person_id, $kartennummer_hitag)) {
$bm = new betriebsmittel();
if ($bm->load($bmp->betriebsmittel_id)) {
$bm->updateamum = date('Y-m-d H:i:s');
$bm->updatevon = $uid;
$bm->nummer2 = $kartennummer_mifare;
示例12:
<html>
<head>
<title>Zusatzdaten PA-Abgabe</title>
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
<link rel="stylesheet" href="../../include/js/tablesort/table.css" type="text/css">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script src="../../include/js/tablesort/table.js" type="text/javascript"></script>
</head>
<body class="Background_main" style="background-color:#eeeeee;">
<h3>Abgabe Zusatzdaten</h3>';
$row_zd = '';
$qry_zd = "SELECT * FROM lehre.tbl_projektarbeit WHERE projektarbeit_id='" . $projektarbeit_id . "'";
if ($result_zd = $db->db_query($qry_zd)) {
$row_zd = $db->db_fetch_object($result_zd);
}
echo '<div>Student: <b>' . $uid . '</b><br>Titel: <b>' . (isset($row_zd->titel) ? $db->convert_html_chars($row_zd->titel) : '') . '<b><br><br></div>
<table class="detail" style="padding-top:10px;">
<tr></tr>
<tr>
<td><b>Sprache der Arbeit:</b></td>
<td><input type="text" name="sprache" id="sprache" value="' . (isset($row_zd->sprache) ? $db->convert_html_chars($row_zd->sprache) : '') . '" size="10" maxlength="8" readonly="readonly"></td>
</tr>
<tr>
<td width="30%"><b>Kontrollierte Schlagwörter:*</b></td>
<td width="40%"><input type="text" name="kontrollschlagwoerter" id="kontrollschlagwoerter" value="' . (isset($row_zd->kontrollschlagwoerter) ? $db->convert_html_chars($row_zd->kontrollschlagwoerter) : '') . '" size="60" maxlength="150" readonly="readonly"></td>
</tr>
<tr>
<td><b>Dt. Schlagwörter:</b></td>
<td><input type="text" name="schlagwoerter" value="' . (isset($row_zd->schlagwoerter) ? $db->convert_html_chars($row_zd->schlagwoerter) : '') . '" size="60" maxlength="150" readonly="readonly"></td>
</tr>
示例13: prestudent
<input type="hidden" name="stg_kz" value="' . $stg_kz . '" />
<tr>
<td>' . $row->vorname . '</td>
<td>' . $row->nachname . '</td>
<td>' . $studiengang->kurzbzlang . ' - ' . $studiengang->bezeichnung . '</td>';
$prestudent = new prestudent();
$prestudent->getLastStatus($row->prestudent_id);
$output .= '<td>' . $prestudent->status_kurzbz . '</td>
<td>
<input type="hidden" name="prestudent_id" value="' . $row->prestudent_id . '" />
<select name="stpl">
<option value="">-- keine Auswahl--</option>';
$studienplan = new studienplan();
$studienplan->getStudienplaene($row->studiengang_kz);
foreach ($studienplan->result as $stpl) {
$output .= '<option value="' . $stpl->studienplan_id . '">' . $db->convert_html_chars($stpl->bezeichnung . ' (' . $stpl->studienplan_id . ')') . '</option>';
}
$output .= '
</select><input type="submit" name="schick" value="Speichern"/>
</td>
</tr></form>';
}
}
$output .= '</tbody></table>';
//}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
示例14:
* Authors: Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>
*/
require_once '../../config/vilesci.config.inc.php';
require_once '../../include/basis_db.class.php';
$db = new basis_db();
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<html lang="de_AT">
<head>
<title>VileSci-Betriebsmittel</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css" />
</head>
<frameset rows="40%,*">';
if (isset($_GET['searchstr'])) {
$searchstr = $_GET['searchstr'];
} else {
$searchstr = '';
}
echo ' <frame src="betriebsmittel_uebersicht.php?searchstr=' . $db->convert_html_chars($searchstr) . '" id="betriebsmittel_uebersicht" name="betriebsmittel_uebersicht" frameborder="0" />';
echo '
<frame src="betriebsmittel_details.php" id="betriebsmittel_details" name="betriebsmittel_details" frameborder="0" />
<noframes>
<body bgcolor="#FFFFFF">
This application works only with a frames-enabled browser.<br />
<a href="main.php">Use without frames</a>
</body>
</noframes>
</frameset>
</html>';
示例15:
">searchRaum</a> - Sucht einen freien Raum</li>
</ul>
<a href ="<?php
echo APP_ROOT . 'soap/ort.wsdl.php';
?>
">Show WSDL </a></li>
<br>
<h2>Testformular</h2>
<?php
if ($method == 'getOrtFromKurzbz') {
echo '
<form action="' . $_SERVER["PHP_SELF"] . '?method=getOrtFromKurzbz" method="post">
<table border="0" cellpadding="5" cellspacing="0" bgcolor="#E0E0E0">
<tr>
<td align="right">Username* :</td>
<td><input id="username" name="username" type="text" size="30" maxlength="255" value="' . $db->convert_html_chars(isset($_REQUEST['username']) ? $_REQUEST['username'] : "") . '"></td>
</tr>
<tr>
<td align="right">Passwort* :</td>
<td><input id="passwort" name="passwort" type="password" size="30" maxlength="255" value="' . $db->convert_html_chars(isset($_REQUEST['passwort']) ? $_REQUEST['passwort'] : "") . '"></td>
</tr>
<tr>
<td align="right">Ort_Kurzbz* :</td>
<td><input id="ort_kurzbz" name="ort_kurzbz" type="text" size="30" maxlength="10" value="' . $db->convert_html_chars(isset($_REQUEST['ort_kurzbz']) ? $_REQUEST['ort_kurzbz'] : "") . '"></td>
</tr>
<tr>
<td align="right"></td>
<td>
<input type="submit" value="Absenden (PHP)" name="submit">
<input type="button" onclick="sendSoap();" value="Absenden (JS)">
</td>