function render() { global $xoopsConfig; $textutil =& xoonips_getutility('text'); $xoopsTpl = new XoopsTpl(); $this->setXooNIpsStyleSheet($xoopsTpl); $xoopsTpl->assign('token_hidden', $GLOBALS['xoopsGTicket']->getTicketHtml(__LINE__, 600, 'xoonips_transfer_admin_list_item', 600)); $xoopsTpl->assign('from_uname', $textutil->html_special_chars($this->get_uname_by_uid($this->_params['from_uid']))); $xoopsTpl->assign('to_uname', $textutil->html_special_chars($this->get_uname_by_uid($this->_params['to_uid']))); $xoopsTpl->assign('from_index_path', $this->get_index_path_by_index_id($this->_params['from_index_id'])); $xoopsTpl->assign('to_index_path', $this->get_index_path_by_index_id($this->_params['to_index_id'])); $xoopsTpl->assign('transfer_items', $this->get_transfer_item_template_vars()); $xoopsTpl->assign('group_names_to_subscribe', $this->get_gnames_to_subscribe()); $xoopsTpl->assign('group_names_to_subscribe_messages', $this->get_gnames_to_subscribe_messages()); $xoopsTpl->assign('child_item_ids_to_transfer', $this->get_child_item_ids_to_transfer()); foreach ($this->_params as $key => $val) { $xoopsTpl->assign($key, $val); } $form = $xoopsTpl->fetch('db:xoonips_transfer_admin_item_list.html'); global $xoonips_admin; $title = _AM_XOONIPS_MAINTENANCE_TRANSFER_ADMIN_ITEM_LIST_PAGE_TITLE; $description = _AM_XOONIPS_MAINTENANCE_TRANSFER_ADMIN_ITEM_LIST_MESSAGE; // breadcrumbs $breadcrumbs = array(array('type' => 'top', 'label' => _AM_XOONIPS_TITLE, 'url' => $xoonips_admin['admin_url'] . '/'), array('type' => 'link', 'label' => _AM_XOONIPS_MAINTENANCE_TITLE, 'url' => $xoonips_admin['myfile_url']), array('type' => 'link', 'label' => _AM_XOONIPS_MAINTENANCE_ITEM_TITLE, 'url' => $xoonips_admin['mypage_url']), array('type' => 'label', 'label' => $title, 'url' => '')); // templates require_once '../class/base/pattemplate.class.php'; $tmpl = new PatTemplate(); $tmpl->setBaseDir('templates'); $tmpl->readTemplatesFromFile('maintenance_item_transfer.tmpl.html'); // assign template variables $tmpl->addVar('header', "TITLE", $title); $tmpl->addVar('main', "TITLE", $title); $tmpl->setAttribute('description', 'visibility', 'visible'); $tmpl->addVar('description', "DESCRIPTION", $description); $tmpl->setAttribute('breadcrumbs', 'visibility', 'visible'); $tmpl->addRows('breadcrumbs_items', $breadcrumbs); $tmpl->addVar('main', 'BODY', $form); // display xoops_cp_header(); $tmpl->displayParsedTemplate('main'); xoops_cp_footer(); }
// GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------- // if (!defined('XOOPS_ROOT_PATH')) { exit; } // class files require_once '../class/base/pattemplate.class.php'; // title $title = _AM_XOONIPS_POLICY_ITEM_TITLE; $description = _AM_XOONIPS_POLICY_ITEM_DESC; // breadcrumbs $breadcrumbs = array(array('type' => 'top', 'label' => _AM_XOONIPS_TITLE, 'url' => $xoonips_admin['admin_url'] . '/'), array('type' => 'link', 'label' => _AM_XOONIPS_POLICY_TITLE, 'url' => $xoonips_admin['myfile_url']), array('type' => 'label', 'label' => $title, 'url' => '')); // menu $menu = array(array('label' => _AM_XOONIPS_POLICY_ITEM_PUBLIC_TITLE, 'url' => $xoonips_admin['myfile_url'] . '?page=item&action=public'), array('label' => _AM_XOONIPS_POLICY_ITEM_TYPE_TITLE, 'url' => $xoonips_admin['myfile_url'] . '?page=item&action=type'), array('label' => _AM_XOONIPS_POLICY_ITEM_IMEXPORT_TITLE, 'url' => $xoonips_admin['myfile_url'] . '?page=item&action=imexport'), array('label' => _AM_XOONIPS_POLICY_ITEM_COMMENT_TITLE, 'url' => $xoonips_admin['myfile_url'] . '?page=item&action=comment')); // templates $tmpl = new PatTemplate(); $tmpl->setBaseDir('templates'); $tmpl->readTemplatesFromFile('adminmenu.tmpl.html'); $tmpl->addVar('header', 'TITLE', $title); $tmpl->setAttribute('description', 'visibility', 'visible'); $tmpl->addVar('description', 'DESCRIPTION', $description); $tmpl->setAttribute('breadcrumbs', 'visibility', 'visible'); $tmpl->addRows('breadcrumbs_items', $breadcrumbs); $tmpl->addRows('menu', $menu); xoops_cp_header(); $tmpl->displayParsedTemplate('main'); xoops_cp_footer();
function render() { global $xoopsUser, $xoopsConfig, $xoopsUserIsAdmin, $xoopsLogger; $xoopsTpl = new XoopsTpl(); $this->setXooNIpsStyleSheet($xoopsTpl); $transfer_item_options = $this->get_transfer_item_template_vars(); $xoopsTpl->assign('transfer_item_options', array_slice($transfer_item_options, ($this->_params['page'] - 1) * 50, 50)); $xoopsTpl->assign('transfer_item_options_hidden', array_merge(array_slice($transfer_item_options, 0, ($this->_params['page'] - 1) * 50), array_slice($transfer_item_options, $this->_params['page'] * 50))); foreach ($this->_params as $key => $val) { $xoopsTpl->assign($key, $val); } $xoopsTpl->assign('pages', $this->get_page_number_array()); $xoopsTpl->assign('maxpage', $this->get_max_page()); $form = $xoopsTpl->fetch('db:xoonips_transfer_admin_item_select.html'); global $xoonips_admin; $title = _AM_XOONIPS_MAINTENANCE_ITEM_TRANSFER_TITLE; // $description = ""; // breadcrumbs $breadcrumbs = array(array('type' => 'top', 'label' => _AM_XOONIPS_TITLE, 'url' => $xoonips_admin['admin_url'] . '/'), array('type' => 'link', 'label' => _AM_XOONIPS_MAINTENANCE_TITLE, 'url' => $xoonips_admin['myfile_url']), array('type' => 'link', 'label' => _AM_XOONIPS_MAINTENANCE_ITEM_TITLE, 'url' => $xoonips_admin['mypage_url']), array('type' => 'label', 'label' => $title, 'url' => '')); // templates require_once '../class/base/pattemplate.class.php'; $tmpl = new PatTemplate(); $tmpl->setBaseDir('templates'); $tmpl->readTemplatesFromFile('maintenance_item_transfer.tmpl.html'); // assign template variables $tmpl->addVar('header', 'TITLE', $title); $tmpl->addVar('main', 'TITLE', $title); // $tmpl->setAttribute( 'description', 'visibility', 'visible' ); // $tmpl->addVar( 'description', "DESCRIPTION", $description ); $tmpl->setAttribute('breadcrumbs', 'visibility', 'visible'); $tmpl->addRows('breadcrumbs_items', $breadcrumbs); $tmpl->addVar('main', 'BODY', $form); // display xoops_cp_header(); $tmpl->displayParsedTemplate('main'); xoops_cp_footer(); }