本文整理汇总了PHP中Template::set_file方法的典型用法代码示例。如果您正苦于以下问题:PHP Template::set_file方法的具体用法?PHP Template::set_file怎么用?PHP Template::set_file使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Template
的用法示例。
在下文中一共展示了Template::set_file方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: interface_plantilla_abrir
function interface_plantilla_abrir($seccion)
{
$t = new Template("tema/");
if ($seccion == "portada") {
$t->set_file("plantilla", "index.html");
}
if ($seccion == "blog") {
$t->set_file("plantilla", "blog.html");
}
return $t;
}
示例2: MG_editRSS
function MG_editRSS()
{
global $_CONF, $_MG_CONF, $_TABLES, $_USER, $LANG_MG00, $LANG_MG01;
$retval = '';
$T = new Template($_MG_CONF['template_path'] . '/admin');
$T->set_file('admin', 'rssedit.thtml');
$T->set_var('site_url', $_CONF['site_url']);
$T->set_var('site_admin_url', $_CONF['site_admin_url']);
$rss_full_select = '<input type="checkbox" name="rss_full_enabled" value="1" ' . ($_MG_CONF['rss_full_enabled'] ? ' checked="checked"' : '') . '/>';
$rss_type_select = "<select name='rss_feed_type'>";
$rss_type_select .= "<option value='RSS-2.0'" . ($_MG_CONF['rss_feed_type'] == "RSS-2.0" ? ' selected="selected"' : "") . ">RSS2.0</option>";
$rss_type_select .= "<option value='RSS-1.0'" . ($_MG_CONF['rss_feed_type'] == "RSS-1.0" ? ' selected="selected"' : "") . ">RSS1.0</option>";
$rss_type_select .= "<option value='RSS-0.91'" . ($_MG_CONF['rss_feed_type'] == "RSS-0.91" ? ' selected="selected"' : "") . ">RSS0.91</option>";
$rss_type_select .= "<option value='PIE-0.1'" . ($_MG_CONF['rss_feed_type'] == "PIE-0.1" ? ' selected="selected"' : "") . ">PIE0.1</option>";
$rss_type_select .= "<option value='ATOM-1.0'" . ($_MG_CONF['rss_feed_type'] == "ATOM-1.0" ? ' selected="selected"' : "") . ">ATOM</option>";
$rss_type_select .= "<option value='ATOM-0.3'" . ($_MG_CONF['rss_feed_type'] == "ATOM-0.3" ? ' selected="selected"' : "") . ">ATOM0.3</option>";
$rss_type_select .= "</select>";
$hide_email_select = '<input type="checkbox" name="hide_email" value="1" ' . ($_MG_CONF['hide_author_email'] ? ' checked="checked"' : '') . '/>';
$rss_ignore_empty_select = '<input type="checkbox" name="rss_ignore_empty" value="1" ' . ($_MG_CONF['rss_ignore_empty'] ? ' checked="checked"' : '') . '/>';
$rss_anonymous_only_select = '<input type="checkbox" name="rss_anonymous_only" value="1" ' . ($_MG_CONF['rss_anonymous_only'] ? ' checked="checked"' : '') . '/>';
$T->set_var(array('lang_rss_options' => $LANG_MG01['rss_options'], 'lang_rss_full' => $LANG_MG01['rss_full'], 'lang_rss_type' => $LANG_MG01['rss_type'], 'lang_rss_ignore_empty' => $LANG_MG01['rss_ignore_empty'], 'lang_rss_anonymous_only' => $LANG_MG01['rss_anonymous_only'], 'lang_rss_feed_name' => $LANG_MG01['rss_feed_name'], 'lang_save' => $LANG_MG01['save'], 'lang_cancel' => $LANG_MG01['cancel'], 'lang_reset' => $LANG_MG01['reset'], 'rss_full_select' => $rss_full_select, 'rss_type_select' => $rss_type_select, 'hide_email_select' => $hide_email_select, 'lang_hide_email' => $LANG_MG01['hide_email'], 'rss_ignore_empty_select' => $rss_ignore_empty_select, 'rss_anonymous_only_select' => $rss_anonymous_only_select, 'rss_feed_name' => $_MG_CONF['rss_feed_name'], 's_form_action' => $_MG_CONF['admin_url'] . 'rss.php'));
$T->parse('output', 'admin');
$retval .= $T->finish($T->get_var('output'));
return $retval;
}
示例3: MG_selectUsers
function MG_selectUsers($page)
{
global $glversion, $_CONF, $_MG_CONF, $_TABLES, $_USER, $LANG_MG00, $LANG_MG01;
$retval = '';
$T = new Template($_MG_CONF['template_path']);
$T->set_file('admin', 'createmembers.thtml');
$T->set_var(array('site_admin_url' => $_CONF['site_admin_url'], 'site_url' => $_CONF['site_url'], 'xhtml' => XHTML));
$T->set_block('admin', 'UserRow', 'uRow');
$start = $page * 50;
$end = 50;
$sql = "SELECT COUNT(gl.uid) AS count " . "FROM {$_TABLES['users']} AS gl " . "LEFT JOIN {$_TABLES['mg_userprefs']} AS mg ON gl.uid=mg.uid " . "WHERE gl.status = 3 AND gl.uid > 2 AND (mg.member_gallery IS NULL OR mg.member_gallery < 1)";
$result = DB_query($sql);
list($total_records) = DB_fetchArray($result);
$sql = "SELECT gl.uid, gl.status, gl.username, gl.fullname, mg.member_gallery " . "FROM {$_TABLES['users']} AS gl " . "LEFT JOIN {$_TABLES['mg_userprefs']} AS mg ON gl.uid=mg.uid " . "WHERE gl.status = 3 AND gl.uid > 2 AND (mg.member_gallery IS NULL OR mg.member_gallery < 1) " . "ORDER BY gl.username ASC LIMIT {$start},{$end}";
$result = DB_query($sql);
while ($row = DB_fetchArray($result)) {
if ($glversion[1] < 4) {
$row['status'] = 3;
}
$uid = $row['uid'];
$remote = SEC_inGroup("Remote Users", $uid) ? '(r)' : '';
$username = $row['username'];
$member_gallery = $row['member_gallery'];
$T->set_var(array('uid' => $uid, 'username' => $username . ' ' . $remote . ' - ' . $row['fullname'], 'select' => '<input type="checkbox" name="user[]" value="' . $uid . '"' . XHTML . '>'));
$T->parse('uRow', 'UserRow', true);
}
$T->set_var(array('lang_userid' => $LANG_MG01['userid'], 'lang_username' => $LANG_MG01['username'], 'lang_select' => $LANG_MG01['select'], 'lang_checkall' => $LANG_MG01['check_all'], 'lang_uncheckall' => $LANG_MG01['uncheck_all'], 'lang_save' => $LANG_MG01['save'], 'lang_cancel' => $LANG_MG01['cancel'], 'lang_reset' => $LANG_MG01['reset'], 's_form_action' => $_MG_CONF['admin_url'] . 'createmembers.php', 'pagenav' => COM_printPageNavigation($_MG_CONF['admin_url'] . 'createmembers.php', $page + 1, ceil($total_records / 50))));
$retval .= $T->finish($T->parse('output', 'admin'));
return $retval;
}
示例4: goDispAppend
function goDispAppend()
{
$t = new Template('../template/basic');
$t->set_file('f', 'tb_produre_b_detail.html');
$t->set_block('f', 'gender', 'g');
if ($this->isAppend) {
$t->set_var('action', 'add');
$t->set_var('actionName', '增加');
$t->set_var('createtime', date("Y-m-d H:i:s"));
$t->set_var('userid', $this->getUid());
} else {
$updid = $_GET[MODIFY . 'id'] + 0;
$t->set_var($this->dbObj->GetRow('SELECT * FROM ' . WEB_ADMIN_TABPOX . 'produre WHERE produre_id = ' . $updid));
$t->set_var('updid', $updid);
$t->set_var('action', 'upd');
$t->set_var('actionName', '修改');
echo 'SELECT * FROM ' . WEB_ADMIN_TABPOX . 'produre WHERE produre_id = ' . $updid;
$inrs =& $this->dbObj->Execute('SELECT * FROM ' . WEB_ADMIN_TABPOX . 'produre WHERE produre_id = ' . $updid);
while ($inrrs =& $inrs->FetchRow()) {
$t->set_var($inrrs);
}
$inrs->Close();
}
$t->set_var('path', WEB_ADMIN_HTTPPATH . '/common/');
$t->parse('out', 'f');
$t->p('out');
}
示例5: view
function view()
{
global $_CONF, $_TABLES;
$body = '';
$T = new Template($_CONF['path'] . 'plugins/tag/templates');
$T->set_file('badword', 'admin_badword.thtml');
$T->set_var('xhtml', XHTML);
$T->set_var('this_script', COM_buildURL($_CONF['site_admin_url'] . '/plugins/tag/index.php'));
$T->set_var('lang_desc_admin_badword', TAG_str('desc_admin_badword'));
$T->set_var('lang_add', TAG_str('add'));
$T->set_var('lang_lbl_tag', TAG_str('lbl_tag'));
$T->set_var('lang_delete_checked', TAG_str('delete_checked'));
$sql = "SELECT * FROM {$_TABLES['tag_badwords']}";
$result = DB_query($sql);
if (DB_error()) {
return $retval . '<p>' . TAG_str('db_error') . '</p>';
} else {
if (DB_numRows($result) == 0) {
$T->set_var('msg', '<p>' . TAG_str('no_badword') . '</p>');
} else {
$sw = 1;
while (($A = DB_fetchArray($result)) !== false) {
$word = TAG_escape($A['badword']);
$body .= '<tr><td>' . '<input id="' . $word . '" name="words[]" type="checkbox" ' . 'value="' . $word . '"><label for="' . $word . '">' . $word . '</label></td></tr>' . LB;
$sw = $sw == 1 ? 2 : 1;
}
}
}
$T->set_var('body', $body);
$T->parse('output', 'badword');
$retval = $T->finish($T->get_var('output'));
return $retval;
}
示例6: polllist
/**
* Shows all polls in system
*
* List all the polls on the system if no $pid is provided
*
* @return string HTML for poll listing
*
*/
function polllist()
{
global $_CONF, $_TABLES, $_USER, $_PO_CONF, $LANG25, $LANG_LOGIN, $LANG_POLLS;
$retval = '';
if (empty($_USER['username']) && ($_CONF['loginrequired'] == 1 || $_PO_CONF['pollsloginrequired'] == 1)) {
$retval = COM_startBlock($LANG_LOGIN[1], '', COM_getBlockTemplate('_msg_block', 'header'));
$login = new Template($_CONF['path_layout'] . 'submit');
$login->set_file(array('login' => 'submitloginrequired.thtml'));
$login->set_var('xhtml', XHTML);
$login->set_var('login_message', $LANG_LOGIN[2]);
$login->set_var('site_url', $_CONF['site_url']);
$login->set_var('lang_login', $LANG_LOGIN[3]);
$login->set_var('lang_newuser', $LANG_LOGIN[4]);
$login->parse('output', 'login');
$retval .= $login->finish($login->get_var('output'));
$retval .= COM_endBlock(COM_getBlockTemplate('_msg_block', 'footer'));
} else {
require_once $_CONF['path_system'] . 'lib-admin.php';
$header_arr = array(array('text' => $LANG25[9], 'field' => 'topic', 'sort' => true), array('text' => $LANG25[20], 'field' => 'voters', 'sort' => true), array('text' => $LANG25[3], 'field' => 'unixdate', 'sort' => true), array('text' => $LANG_POLLS['open_poll'], 'field' => 'is_open', 'sort' => true));
$defsort_arr = array('field' => 'unixdate', 'direction' => 'desc');
$text_arr = array('has_menu' => false, 'title' => $LANG_POLLS['pollstitle'], 'instructions' => "", 'icon' => '', 'form_url' => '');
$query_arr = array('table' => 'polltopics', 'sql' => $sql = "SELECT *,UNIX_TIMESTAMP(date) AS unixdate, display " . "FROM {$_TABLES['polltopics']} WHERE 1=1", 'query_fields' => array('topic'), 'default_filter' => COM_getPermSQL(), 'query' => '', 'query_limit' => 0);
$retval .= ADMIN_list('polls', 'plugin_getListField_polls', $header_arr, $text_arr, $query_arr, $defsort_arr);
}
return $retval;
}
示例7: fncview
function fncview($uid, $template)
{
$pi_name = "userbox";
global $_CONF;
global $LANG_USERBOX_ADMIN;
//template フォルダ
$tmplfld = DATABOX_templatePath('admin', 'default', $pi_name);
$tmpl = new Template($tmplfld);
$tmpl->set_file(array('view' => 'view.thtml'));
//--
$tmpl->set_var('site_admin_url', $_CONF['site_admin_url']);
if ($template === "") {
$tmpl->set_var('about_thispage', $LANG_USERBOX_ADMIN['about_admin_view']);
} else {
$tmpl->set_var('about_thispage', "");
}
$tmpl->parse('output', 'view');
$view = $tmpl->finish($tmpl->get_var('output'));
$information = array();
$retval = userbox_profile($uid, $template, "", "view");
$layout = $retval['layout'];
$information['headercode'] = $retval['headercode'];
$information['pagetitle'] = $retval['title'];
$display = $view;
$display .= $retval['display'];
$display = DATABOX_displaypage($pi_name, $layout, $display, $information);
COM_output($display);
}
示例8: MG_adminEXIF
function MG_adminEXIF()
{
global $_TABLES, $_MG_CONF, $_CONF, $LANG_MG01, $LANG_MG04;
$retval = '';
$T = new Template($_MG_CONF['template_path'] . '/admin/');
$T->set_file('admin', 'exif_tags.thtml');
$T->set_var('site_url', $_CONF['site_url']);
$T->set_var('site_admin_url', $_CONF['site_admin_url']);
$T->set_block('admin', 'exifRow', 'eRow');
$sql = "SELECT * FROM {$_TABLES['mg_exif_tags']}";
$result = DB_query($sql);
$nRows = DB_numRows($result);
for ($i = 0; $i < $nRows; $i++) {
$row = DB_fetchArray($result);
$properties[] = $row['name'];
$tag[$row['name']][] = $row['selected'];
}
$exifKeys = getExifKeys();
$x = 0;
foreach ($properties as $property) {
$title = $exifKeys[$property][0];
$T->set_var(array('exif_tag' => $title, 'selected' => $tag[$property][0] ? ' checked="checked"' : '', 'tag' => $property, 'rowcounter' => $x % 2));
$T->parse('eRow', 'exifRow', true);
$x++;
}
$T->set_var(array('lang_select' => $LANG_MG01['select'], 'lang_exiftag' => $LANG_MG01['exiftag'], 'lang_exif_admin_help' => $LANG_MG01['exif_admin_help'], 'lang_check_all' => $LANG_MG01['check_all'], 'lang_uncheck_all' => $LANG_MG01['uncheck_all'], 'lang_save' => $LANG_MG01['save'], 'lang_cancel' => $LANG_MG01['cancel'], 's_form_action' => $_MG_CONF['admin_url'] . 'exif_admin.php'));
$T->parse('output', 'admin');
$retval .= $T->finish($T->get_var('output'));
return $retval;
}
示例9: draw_user_information
function draw_user_information($error)
{
global $_USER, $_CONF, $LANG_ECOM;
$res = get_user_row($_USER['uid']);
#If it's users first time to enter there information will have to add them to database.
if (DB_numRows($res) <= 0) {
add_user_row($_USER['uid']);
#Create the row to hold ecom_userinfo
$res = get_user_row($_USER['uid']);
}
$user_info = DB_fetchArray($res);
#load template for editing user
$T = new Template($_CONF['path'] . 'plugins/ecommerce/templates');
$T->set_file('text', 'user_info.thtml');
$T->set_var('site_url', $PHP_SELF);
$T->set_var('error', $error);
$T->set_var('full_name', $user_info['fullname']);
$T->set_var('email', $user_info['email']);
$T->set_var('phone_number', $user_info['ecom_phone_number']);
$T->set_var('dob_month', $user_info['ecom_dob_month']);
$T->set_var('dob_day', $user_info['ecom_dob_day']);
$T->set_var('dob_year', $user_info['ecom_dob_year']);
$T->set_var('driver_license_number', $user_info['ecom_drivers_license_number']);
$T->set_var('driver_license_state', $user_info['ecom_drivers_license_state']);
$T->set_var('msg_1', $LANG_ECOM[1]);
$T->set_var('msg_12', $LANG_ECOM[12]);
$T->set_var('msg_146', $LANG_ECOM[146]);
$T->set_var('msg_147', $LANG_ECOM[147]);
$T->set_var('msg_148', $LANG_ECOM[148]);
$T->set_var('msg_149', $LANG_ECOM[149]);
$T->set_var('msg_150', $LANG_ECOM[150]);
echo $T->parse('output', 'text');
}
示例10: disp
function disp()
{
//定义模板
$t = new Template('../template/system');
$t->unknowns = "keep";
$t->left_delimiter = "[#";
//修改左边界符为[##
$t->right_delimiter = "#]";
//修改右边界符##]
$t->set_file('f', 'changloginorgan.html');
$t->set_block('f', 'agencylist', 'al');
$t->set_var('add', $this->getAddStr('img'));
//设置机构
$t->set_var('al');
$inrs =& $this->dbObj->Execute("select * from " . WEB_ADMIN_TABPOX . "agency where agencytype_id=4 order by agency_id desc");
while ($inrrs =& $inrs->FetchRow()) {
$t->set_var($inrrs);
$t->set_var('agency_id', $inrrs['agency_id']);
$t->set_var('agency_easyname', $inrrs['agency_easyname']);
$t->parse('al', 'agencylist', true);
}
$inrs->Close();
$t->set_var('pagelist', $this->page("agent.php?qgtype=" . $_GET[qgtype] . "&Sale_ID=" . $_GET[Sale_ID], $count, $psize, $pageid));
$t->set_var('path', WEB_ADMIN_HTTPPATH . '/common/');
$t->parse('out', 'f');
$t->p('out');
}
示例11: draw
function draw()
{
global $_TABLES, $_CONF, $LANG_ECOM;
$T = new Template($_CONF['path'] . 'plugins/ecommerce/templates/admin');
$T->set_file(array('sales_tax' => 'sales_tax.thtml', 'sales_tax_row' => 'sales_tax_row.thtml'));
$T->set_var('msg_112', $LANG_ECOM[112]);
$T->set_var('msg_113', $LANG_ECOM[113]);
//Get left colunm
$res = DB_query("SELECT ecom_tax_code, ecom_tax_id FROM {$_TABLES['ecom_tax']} WHERE ecom_tax_enabled = false");
while ($row = DB_fetchArray($res)) {
$T->set_var('tax_code', $row['ecom_tax_code']);
$T->set_var('link', 'index.php?op=tax&add=');
$T->set_var('tax_id', $row['ecom_tax_id']);
$T->set_var('display', 'add');
$T->parse('disabled_tax', 'sales_tax_row', true);
}
//Get right colunm
$T->set_var('msg_114', $LANG_ECOM[114]);
$res = DB_query("SELECT ecom_tax_code, ecom_tax_id FROM {$_TABLES['ecom_tax']} WHERE ecom_tax_enabled = true");
while ($row = DB_fetchArray($res)) {
$T->set_var('tax_code', $row['ecom_tax_code']);
$T->set_var('link', 'index.php?op=tax&remove=');
$T->set_var('tax_id', $row['ecom_tax_id']);
$T->set_var('display', 'remove');
$T->parse('enabled_tax', 'sales_tax_row', true);
}
$T->parse('output', 'sales_tax');
echo $T->finish($T->get_var('output'));
}
示例12: goDispAppend
function goDispAppend()
{
$t = new Template('../template/system');
$t->set_file('f', 'customerdetail.html');
//$t -> set_block('f','customer','c');
$t->set_block('f', 'area', 'a');
$t->set_block('f', 'sale', 's');
if ($this->isAppend) {
$t->set_var('action', 'add');
$t->set_var('actionName', '增加');
} else {
$updid = $_GET[MODIFY . 'id'] + 0;
$t->set_var($this->dbObj->GetRow('SELECT * FROM ' . WEB_ADMIN_TABPOX . 'customer WHERE customerid = ' . $updid));
$t->set_var('updid', $updid);
$t->set_var('action', 'upd');
$t->set_var('actionName', '修改');
}
$t->set_var('path', WEB_ADMIN_HTTPPATH . '/common/');
//$this->PPClass();
$t->set_var('area');
$t->set_var('area', $this->PPClass());
$t->parse('a', 'area', true);
$t->set_var('sale', $this->PPClass_sale());
$t->parse('s', 'sale', true);
$t->parse('out', 'f');
$t->p('out');
}
示例13: disp
function disp()
{
$t = new Template('../template/system');
$t->set_file('f', 'loginfo.html');
$t->set_block('f', 'row', 'r');
$rs = $this->dbObj->GetArray('select lt.logtypename,l.* from ' . WEB_ADMIN_TABPOX . 'log l,' . WEB_ADMIN_TABPOX . 'logtype lt where l.logtypeid=lt.logtypeid and l.srcuserid=' . $this->getUid());
foreach ($rs as $v) {
$t->set_var($v);
$ok = $this->loginObj->_superid ? false : true;
$t->set_var('del', $this->getDelStr($this->getUid(), $v['logid'], 'a', 'loginfo.php?deltype=log', $ok));
$t->parse('r', 'row', true);
}
$t->set_block('f', 'row2', 'r2');
$rs = $this->dbObj->GetArray("select u.username,m.* from " . WEB_ADMIN_TABPOX . "message m," . WEB_ADMIN_TABPOX . "user u where m.userid = u.userid and msgtitle='组长登录' and sendtoids like '" . $this->getUid() . "'");
foreach ($rs as $v) {
if (!$v['hadratify']) {
if (!$this->loginObj->_superid) {
$v['accept'] = '<a href="loginfo.php?action=accept&id=' . $v['msgid'] . '">认可</a>';
} else {
$v['accept'] = '认可';
}
} else {
$v['accept'] = '已认可';
}
$t->set_var($v);
$ok = $this->loginObj->_superid ? false : true;
$t->set_var('del', $this->getDelStr($this->getUid(), $v['msgid'], 'a', 'loginfo.php?deltype=msg', $ok));
$t->parse('r2', 'row2', true);
}
$t->parse('out', 'f');
$t->p('out');
}
示例14: disp
function disp()
{
//定义模板
$t = new Template('../template/finace');
$t->set_file('f', 'nianjie.html');
$t->unknowns = "remove";
$t->left_delimiter = "[#";
//修改左边界符为[#
$t->right_delimiter = "#]";
//修改右边界符#]
$annualbatch_name = date('Y', time()) . "年";
$t->set_var('annualbatch_name', $annualbatch_name);
//上次年结
$bgdate = $this->dbObj->getone('select enddate from ' . WEB_ADMIN_TABPOX . 'annualbatch where agencyid =' . $_SESSION["currentorgan"] . ' order by annualbatch_id desc');
if (!$bgdate) {
//如果没有月结过 查找最早的单时间。
$bgdate = $this->dbObj->getone('select creattime from ' . WEB_ADMIN_TABPOX . 'sell where agencyid =' . $_SESSION["currentorgan"] . ' order by sell_id asc');
$bgdate = date('Y-m-d', strtotime($bgdate));
} else {
$bgdate = date("Y-m-d", strtotime("{$m}+1 days", strtotime($bgdate)));
//设置开始时间为上次月结的下一天
}
$t->set_var('bgdate', $bgdate);
$t->set_var('enddate', date('Y-m-d'));
$t->set_var('path', WEB_ADMIN_HTTPPATH . '/common/');
$t->parse('out', 'f');
$t->p('out');
}
示例15: disp
function disp()
{
//定义模板
$t = new Template('../template/basic');
$t->set_file('f', 'upmorefile.html');
$t->unknowns = "remove";
$t->left_delimiter = "[#";
//修改左边界符为[#
$t->right_delimiter = "#]";
//修改右边界符#]
$t->set_block('f', 'mainlist', 'ml');
//设置分类
$t->set_var('ml');
$inrs =& $this->dbObj->Execute('select * from ' . WEB_ADMIN_TABPOX . 'apparatus where agencyid =' . $_SESSION["currentorgan"]);
//echo 'select * from '.WEB_ADMIN_TABPOX.'roomgroup where agencyid ='.$_SESSION["currentorgan"];
while ($inrrs =& $inrs->FetchRow()) {
$t->set_var($inrrs);
$t->parse('ml', 'mainlist', true);
}
$inrs->Close();
$t->set_var('add', $this->getAddStr('img'));
$t->set_var('path', WEB_ADMIN_HTTPPATH . '/common/');
$t->parse('out', 'f');
$t->p('out');
}