本文整理汇总了PHP中tpl::set_ar_out方法的典型用法代码示例。如果您正苦于以下问题:PHP tpl::set_ar_out方法的具体用法?PHP tpl::set_ar_out怎么用?PHP tpl::set_ar_out使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tpl
的用法示例。
在下文中一共展示了tpl::set_ar_out方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showForm
/**
* Zeigt das Formular an, in dem User ihre Einträge machen können
*
* @param $text Vorbelegung für den text
* @param $mail Vorbelegung für die Emailadresse
* @param $page Vorbelegung für die Homepage
*/
function showForm($text = "", $mail = "", $page = "", $fehler = "")
{
global $allgAr;
$tpl = new tpl('gbook.htm');
$ar = array('uname' => $_SESSION['authname'], 'SMILIES' => getsmilies(), 'ANTISPAM' => get_antispam('gbook', 1), 'TXTL' => $allgAr['Gtxtl'], 'TEXT' => $text, 'PAGE' => $page, 'MAIL' => $mail, 'FEHLER' => $fehler);
$tpl->set_ar_out($ar, "formular_eintrag");
if (!isset($_SESSION['klicktime_gbook'])) {
$_SESSION['klicktime_gbook'] = 0;
}
}
示例2: show_sitemap
function show_sitemap($q, $lv, $table, $menu, $where, $was)
{
$limit = 200;
$page = $menu->getA(2) == 'p' ? $menu->getE(2) : 1;
$MPL = db_make_sites($page, $where, $limit, '?sitemap-' . $menu->get(1), $table);
$anfang = ($page - 1) * $limit;
$q = db_query($q . " LIMIT " . $anfang . "," . $limit);
$tpl = new tpl('sitemap');
$l = '';
while ($r = db_fetch_row($q)) {
$l .= $tpl->list_get('links', array(str_replace('{id}', $r[0], $lv), $r[1]));
}
$tpl->set_ar_out(array('MPL' => $MPL, 'site' => $was, 'links' => $l), 1);
}
示例3: sharchiv
function sharchiv()
{
$tpl = new tpl('shbox4', 0);
echo '<div>
<h4 align="center" class="Chead">' . $this->version . ' Archiv</h4>
</div>';
$erg = db_query('SELECT * FROM `prefix_shbox4` ORDER BY `id` DESC');
while ($row = db_fetch_assoc($erg)) {
$text = $row['txt'];
$text = $this->shtext($text);
$ar = array('AUSGABE' => '<p class="Cdark" style="margin:0;">' . $this->shdate($row['time'], $row['uid']) . '</p>
<p class="Cnorm" style="margin:0;">' . $this->colortext($this->sh_usercheck($row['uid']), $text) . '</p>
<br />');
$tpl->set_ar_out($ar, 2);
}
$tpl->set_ar(array('VERS' => $this->version()));
$tpl->out(3);
}
示例4: wd
function wd($wdLINK, $wdTEXT, $wdZEIT = 3)
{
global $lang;
if (!is_array($wdLINK)) {
$urls = '<a href="' . $wdLINK . '">' . $lang['forward2'] . '</a>';
$wdURL = $wdLINK;
} else {
$urls = '';
$i = 0;
foreach ($wdLINK as $k => $v) {
if ($i == 0) {
$wdURL = $v;
}
$urls .= '<a href="' . $v . '">' . $k . '</a><br />';
$i++;
}
}
$tpl = new tpl('weiterleitung.htm');
$ar = array('LINK' => $urls, 'URL' => $wdURL, 'ZEIT' => $wdZEIT, 'TEXT' => $wdTEXT);
$tpl->set_ar_out($ar, 0);
unset($tpl);
}
示例5: get_ini_menu
/**
* Die Adminnavigation aus der angegeben XML-Datei auslesen
*
* @param $file die zu lesende XML-Datei
*/
function get_ini_menu($file)
{
$menus = simplexml_load_file($file);
$umenu = '';
$tpl = new tpl('adminsubmenu', 1);
if ($menus->attributes()->hide == 'true') {
$tpl->out(4);
return $umenu;
}
foreach ($menus->list as $liste) {
$tpl->set_out('headline', $liste->attributes()->title, 0);
$tpl->out(1);
foreach ($liste->modul as $mod) {
// wenn der nutzer die nötigen rechte hat
if ($mod->right >= $_SESSION['authright'] or !isset($mod->right)) {
$tpl->set_ar_out(array('url' => $mod->url, 'title' => utf8_decode($mod->title)), 2);
}
}
$tpl->out(3);
}
return $umenu;
}
示例6: elseif
}
$tpl->out(4);
} elseif ($row['status'] == 3) {
// lastwars
$row['memberliste'] = lastwars_get_memberlist($_GET['mehr']);
$wlpar = array(1 => 'gewonnen', 2 => 'verloren', 3 => 'unentschieden');
$row['erg'] = $row['owp'] . ' zu ' . $row['opp'];
$row['ergliste'] = get_erg_liste($_GET['mehr']);
$row['wlp'] = $wlpar[$row['wlp']];
$title = $allgAr['title'] . ' :: Wars :: Lastwars';
$hmenu = '<a href="?wars" class="smalfont">Wars</a><b> » </b>Lastwars';
$design = new design($title, $hmenu);
$design->header();
$tpl = new tpl('wars_last');
$row['tag'] = empty($row['tag']) ? $row['gegner'] : $row['tag'];
$tpl->set_ar_out($row, 0);
// kommentare fuer lastwars
if ($allgAr['wars_last_komms'] < 0 and has_right($allgAr['wars_last_komms'])) {
// aktion
if (isset($_POST['kommentar_fuer_last_wars'])) {
$name = $_SESSION['authname'];
$text = escape($_POST['text'], 'textarea');
db_query("INSERT INTO prefix_koms (name,cat,text,uid) VALUES ('" . $name . "','WARSLAST', '" . $text . "', " . $_GET['mehr'] . " )");
}
if (isset($_GET['kommentar_fuer_last_wars_loeschen']) and is_siteadmin('wars')) {
db_query("DELETE FROM prefix_koms WHERE cat = 'WARSLAST' AND uid = " . $_GET['mehr'] . " AND id = " . $_GET['kommentar_fuer_last_wars_loeschen']);
}
// anzeigen
$tpl->out(1);
$class = '';
$erg = db_query("SELECT name,text,id FROM prefix_koms WHERE cat = 'WARSLAST' AND uid = " . $_GET['mehr'] . " ORDER BY id DESC");
示例7: ROUND
$tpl->set('minus', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE betrag < 0"), 0));
$tpl->set('plus', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE betrag > 0"), 0));
$tpl->set('saldo', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse"), 0));
$tpl->set('Jminus', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE betrag < 0 AND datum >= '" . $jaka . "' AND datum <= '" . $jake . "'"), 0));
$tpl->set('Jplus', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE betrag > 0 AND datum >= '" . $jaka . "' AND datum <= '" . $jake . "'"), 0));
$tpl->set('Jsaldo', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE datum >= '" . $jaka . "' AND datum <= '" . $jake . "'"), 0));
$tpl->set('Mminus', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE betrag < 0 AND datum >= '" . $aka . "' AND datum <= '" . $ake . "'"), 0));
$tpl->set('Mplus', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE betrag > 0 AND datum >= '" . $aka . "' AND datum <= '" . $ake . "'"), 0));
$tpl->set('Msaldo', db_result(db_query("SELECT ROUND(SUM(betrag),2) FROM prefix_kasse WHERE datum >= '" . $aka . "' AND datum <= '" . $ake . "'"), 0));
$tpl->set('month', $lang[date('F', $akt)]);
$tpl->set('pm', $pm);
$tpl->set('nm', $nm);
$tpl->set('py', $py);
$tpl->set('ny', $ny);
$tpl->set('jahr', $y);
$tpl->out(0);
$class = '';
$erg = db_query("SELECT name, verwendung, id, ROUND(betrag,2) as betrag FROM prefix_kasse WHERE datum >= '" . $aka . "' AND datum <= '" . $ake . "' ORDER BY datum DESC");
while ($r = db_fetch_assoc($erg)) {
$class = $class == 'Cmite' ? 'Cnorm' : 'Cmite';
$r['class'] = $class;
if (has_right(-8, 'kasse')) {
$r['verwendung'] .= '<span style="float: right;">
<a href="admin.php?kasse-' . $r['id'] . '"><img src="include/images/icons/edit.gif" border="0" title="' . $lang['change'] . '" alt="' . $lang['change'] . '" /></a>
<a href="index.php?kasse-d' . $r['id'] . '"><img src="include/images/icons/del.gif" border="0" title="' . $lang['delete'] . '" alt="' . $lang['delete'] . '" /></a>
</span>';
}
$tpl->set_ar_out($r, 1);
}
$tpl->out(2);
$design->footer();
示例8: escape
$page = $menu->getA(3) == 'p' ? $menu->getE(3) : 1;
$filtername = escape($menu->get(2), 'string');
} else {
$page = $menu->getA(1) == 'p' ? $menu->getE(1) : 1;
}
$anfang = ($page - 1) * $limit;
$tpl = new tpl('user/memb_list.htm');
if (isset($_GET['filtername']) and !empty($_GET['filtername'])) {
$filtername = escape($_GET['filtername'], 'string');
}
if (!empty($filtername)) {
$sql_search = " WHERE prefix_user.name LIKE '%" . $filtername . "%'";
$MPL = db_make_sites($page, $sql_search, $limit, '?user-filtername-' . $filtername, 'user');
} else {
$sql_search = "";
$MPL = db_make_sites($page, "", $limit, '?user', 'user');
}
$tpl->set_out('SITELINK', $MPL, 0);
$class = '';
$erg = db_query("SELECT\r\n posts,\r\n prefix_user.id,\r\n prefix_grundrechte.name as recht_name,\r\n regist,\r\n prefix_user.name\r\nFROM prefix_user\r\n LEFT JOIN prefix_grundrechte ON prefix_user.recht = prefix_grundrechte.id\r\n {$sql_search}\r\nORDER by recht,prefix_user.posts DESC LIMIT " . $anfang . "," . $limit);
while ($row = db_fetch_object($erg)) {
if ($class == 'Cmite') {
$class = 'Cnorm';
} else {
$class = 'Cmite';
}
$ar = array('NAME' => $row->name, 'RANG' => userrang($row->posts, $row->id), 'CLASS' => $class, 'POSTS' => $row->posts, 'UID' => $row->id, 'DATE' => date('d.m.Y', $row->regist), 'GRUPE' => $row->recht_name);
$tpl->set_ar_out($ar, 1);
}
$tpl->set_out('filtername', $filtername ? $filtername : '', 2);
$design->footer();
示例9: escape
db_query('UPDATE `prefix_rules` SET `text` = "' . $text . '", `titel` = "' . $titel . '", `zahl` = "' . $zahl . '" WHERE `id` = "' . $sid . '"');
}
}
if (!empty($_GET['delete'])) {
$delete = escape($_GET['delete'], 'integer');
db_query('DELETE FROM `prefix_rules` WHERE `id` = "' . $delete . '" LIMIT 1');
}
if (empty($_GET['sid'])) {
$row = array();
$row['sub'] = 'Eintragen';
$row['zahl'] = '';
$row['titel'] = '';
$row['text'] = $row['sid'] = '';
} else {
$abf = 'SELECT `text`,`zahl`,`titel`,`id` as `sid` FROM `prefix_rules` WHERE `id` = "' . escape($_GET['sid'], 'integer') . '"';
$erg = db_query($abf);
$row = db_fetch_assoc($erg);
$row['sub'] = 'Ändern';
}
$clas = '';
$tpl = new tpl('rules', 1);
$row['ANTISPAM'] = get_antispam('adminuser_action', 0, true);
$tpl->set_ar_out($row, 0);
$erg = db_query('SELECT * FROM `prefix_rules` ORDER BY `zahl`');
while ($row = db_fetch_assoc($erg)) {
$clas = $clas == 'Cmite' ? 'Cnorm' : 'Cmite';
$row['class'] = $clas;
$tpl->set_ar_out($row, 1);
}
$tpl->out(2);
$design->footer();
示例10: die
* @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL)
* @copyright (C) 2000-2010 ilch.de
* @version $Id$
*/
defined('main') or die('no direct access');
defined('admin') or die('only admin access');
if ($menu->get(1) == "phpinfo") {
phpinfo();
} else {
$design = new design('Ilch Admin-Control-Panel :: Serverkonfiguration', '', 2);
$design->header();
$tpl = new tpl('checkconf', 1);
$tpl->out(0);
// # Server conf
$tpl->set_out('head', $lang['phpserverconf'], 1);
$tpl->set_ar_out(array('class' => 'Cmite', 'opt' => 'version', 'val' => phpversion()), 3);
$confstrings = array("safe_mode", "display_errors", "max_execution_time", "memory_limit", "register_globals", "file_uploads", "upload_max_filesize", "post_max_size", "disable_functions");
$class = 'Cmite';
foreach ($confstrings as $str) {
if ($class == 'Cmite') {
$class = 'Cnorm';
} else {
$class = 'Cmite';
}
$tpl->set("class", $class);
$tpl->set("opt", $str);
$tpl->set("val", ini_get($str));
$tpl->out(3);
}
// sockets
if ($class == 'Cmite') {
示例11: escape
db_query("UPDATE prefix_history SET date = '" . $date . "',title = '" . $title . "',txt = '" . $txt . "' WHERE id = '" . $IdToEdit . "'");
}
} else {
echo 'Datum stimmt nicht, bitte im Format DD.MM.YYYY eingeben also z.B. 29.12.2005<br />';
}
}
if (!isset($IdToDelete)) {
if ($menu->getA(1) == 'e' and is_numeric($menu->getE(1)) and empty($IdToEdit)) {
$IdToEdit = escape($menu->getE(1), 'integer');
$erg = db_query("SELECT id,DATE_FORMAT(date,'%d.%m.%Y') as date,title,txt FROM prefix_history WHERE id = '" . $IdToEdit . "'");
$_ilch = db_fetch_assoc($erg);
$_ilch['pkey'] = $IdToEdit;
} else {
$_ilch = array('pkey' => '', 'date' => date('d.m.Y'), 'title' => '', 'txt' => '');
}
$tpl->set_ar_out($_ilch, 0);
$limit = 20;
$page = $menu->getA(1) == 'p' ? escape($menu->getE(1), 'integer') : 1;
$MPL = db_make_sites($page, 'ORDER BY `date` DESC', $limit, '?history', 'history');
$anfang = ($page - 1) * $limit;
$abf = "SELECT `id`,`date`,`title` FROM prefix_history ORDER BY `date` DESC LIMIT " . $anfang . "," . $limit;
$erg = db_query($abf);
while ($row = db_fetch_assoc($erg)) {
$class = $class == 'Cmite' ? 'Cnorm' : 'Cmite';
$row['class'] = $class;
list($y, $m, $d) = explode('-', $row['date']);
$row['date'] = $d . '.' . $m . '.' . $y;
$tpl->set_ar_out($row, 1);
}
$tpl->set_out('MPL', $MPL, 2);
}
示例12: die
<?php
/**
* @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL)
* @copyright (C) 2000-2010 ilch.de
* @version $Id$
*/
defined('main') or die('no direct access');
$title = $allgAr['title'] . ' :: Awards';
$hmenu = 'Awards';
$design = new design($title, $hmenu);
$design->header();
$tpl = new tpl('awards.htm');
$tpl->out(0);
$class = 'Cnorm';
$erg = db_query("SELECT `platz`, `text`, `wofur`, `team`, `bild`, DATE_FORMAT(time, '%d.%m.%Y') as `time` FROM `prefix_awards` ORDER BY `time` DESC");
while ($row = db_fetch_assoc($erg)) {
$class = $class == 'Cmite' ? 'Cnorm' : 'Cmite';
if ($row['bild'] != '' and trim($row['bild']) != 'http://') {
$row['bildutime'] = '<span style="float: left; margin-right: 10px;"><img src="' . $row['bild'] . '" alt="' . $row['wofur'] . '" title="' . $row['wofur'] . '"/><br /><font class="smalfont">' . $row['time'] . '</font></span><br />';
} else {
$row['bildutime'] = $lang['date'] . ': ' . $row['time'] . '<br />';
}
$row['class'] = $class;
$tpl->set_ar_out($row, "tabelle");
}
$tpl->out("ende");
$design->footer();
示例13: tpl
$design->footer(1);
}
}
#anzeigen
$design->header();
$tpl = new tpl('selfbp', 1);
$akl = '';
if (isset($_REQUEST['akl'])) {
$akl = $_REQUEST['akl'];
}
#löschen
if (isset($_REQUEST['del'])) {
$del = $_REQUEST['del'];
$a = substr($del, 0, 1);
$e = substr($del, 1);
if ($e != 'neu') {
unlink('include/contents/selfbp/self' . $a . '/' . $e);
}
}
$text = get_text($akl);
$properties = get_properties($text);
if (!isset($properties['wysiwyg'])) {
$properties['wysiwyg'] = 1;
}
$text = edit_text($text, false);
#$text = rteSafe($text);
$filename = get_filename($akl);
$akl = get_akl($akl);
$view = get_view($properties['view']);
$tpl->set_ar_out(array('akl' => $akl, 'text' => $text, 'filename' => $filename, 'exfilename' => $filename, 'wysiwyg' => $properties['wysiwyg'], 'title' => $properties['title'], 'hmenu' => $properties['hmenu'], 'view' => $view, 'viewoptions' => $properties['viewoptions'], 'wysiwyg_editor' => $properties['wysiwyg'] == 1 ? '<script type="text/javascript">buttonPath = "include/images/icons/editor/"; imageBrowse = "admin.php?selfbp-imagebrowser"; makeWhizzyWig("bbwy", "all");</script>' : ''), 0);
$design->footer();
示例14: tpl
}
}
// Class
$class = 'Cmite';
// Template laden
$tpl = new tpl('modules/loader', 1);
// Template-Header
$tpl->out(0);
// Module abfragen und Ausgeben
$erg = db_query("SELECT `id`, `pos`, `task`, `file`, `description` FROM `prefix_loader` ORDER BY `pos` ASC");
if (db_num_rows($erg) > 0) {
$tpl->out(3);
while ($row = db_fetch_assoc($erg)) {
$class = $class == 'Cmite' ? 'Cnorm' : 'Cmite';
$row['class'] = $class;
$tpl->set_ar_out($row, 4);
}
}
// Tabellenuebergang
$tpl->out(1);
// Aendern oder Einfuegen
if ($aid == 'edit') {
$lid = $menu->get(3);
$erg = db_query('SELECT `task`, `file`, `description` FROM `prefix_loader` WHERE `id` = ' . $lid);
$row = db_fetch_assoc($erg);
$task = getTasks($row['task']);
$tpl->set_ar_out(array('aname' => 'Eintrag bearbeiten', 'task' => $task, 'file' => $row['file'], 'description' => $row['description'], 'ANTISPAM' => get_antispam('adminuser_action', 0, true)), 5);
} else {
$task = getTasks('');
$tpl->set_ar_out(array('aname' => 'Eintrag hinzufügen', 'task' => $task, 'file' => '', 'description' => '', 'ANTISPAM' => get_antispam('adminuser_action', 0, true)), 5);
}
示例15: design
$catname = '';
}
$title = $allgAr['title'] . ' :: Gallery ' . $cattitle;
$hmenu = '<a class="smalfont" href="?gallery">Gallery</a>' . $catname;
$design = new design($title, $hmenu);
$design->header();
$tpl = new tpl('gallery');
$erg = db_query("SELECT id,name,`besch` FROM prefix_gallery_cats WHERE recht >= {$_SESSION['authright']} AND cat = " . $cid . " ORDER BY pos");
if (db_num_rows($erg) > 0) {
$tpl->out(1);
$class = 'Cnorm';
while ($row = db_fetch_assoc($erg)) {
$row['gallery'] = count_files($row['id']);
$class = $class == 'Cmite' ? 'Cnorm' : 'Cmite';
$row['class'] = $class;
$tpl->set_ar_out($row, 2);
}
$tpl->out(3);
}
$limit = $img_per_site;
$page = $menu->getA(2) == 'p' ? escape($menu->getE(2), 'integer') : 1;
$MPL = db_make_sites($page, '', $limit, '?gallery-' . $cid, "gallery_imgs LEFT JOIN prefix_gallery_cats ON prefix_gallery_imgs.cat = prefix_gallery_cats.id WHERE prefix_gallery_imgs.cat = " . $cid . " AND (recht >= " . $_SESSION['authright'] . " OR recht IS NULL)");
$anfang = ($page - 1) * $limit;
$erg = db_query("SELECT prefix_gallery_imgs.id,prefix_gallery_imgs.cat,datei_name,endung,prefix_gallery_imgs.`besch`,klicks,vote_wertung,vote_klicks FROM prefix_gallery_imgs LEFT JOIN prefix_gallery_cats ON prefix_gallery_imgs.cat = prefix_gallery_cats.id WHERE prefix_gallery_imgs.cat = " . $cid . " AND (recht >= " . $_SESSION['authright'] . " OR recht IS NULL) ORDER BY id ASC LIMIT " . $anfang . "," . $limit);
if (db_num_rows($erg) > 0) {
$tpl->set('imgperline', $allgAr['gallery_imgs_per_line']);
$tpl->set('cname', $cname);
$tpl->set('breite', $allgAr['gallery_normal_width'] + 30);
$tpl->set('MPL', $MPL);
$tpl->out(4);
$class = 'Cnorm';