global $target_mid, $target_mname, $block_arr; $item_list = array(); foreach (array_keys($block_arr) as $i) { $item_list[$block_arr[$i]->getVar("bid")] = $block_arr[$i]->getVar("title"); } $form = new MyXoopsGroupPermForm(_AM_MYLINKS_AGDS, 1, 'block_read', ''); if ($target_mid > 1) { $form->addAppendix('module_admin', $target_mid, $target_mname . ' ' . _AM_MYLINKS_ACTIVERIGHTS); $form->addAppendix('module_read', $target_mid, $target_mname . ' ' . _AM_MYLINKS_ACCESSRIGHTS); } foreach ($item_list as $item_id => $item_name) { $form->addItem($item_id, $item_name); } echo $form->render(); } if (!empty($_POST['submit'])) { if (!$xoopsGTicket->check(true, 'myblocksadmin')) { redirect_header(XOOPS_URL . '/', 3, $xoopsGTicket->getErrors()); } include 'mygroupperm.php'; redirect_header(XOOPS_URL . "/modules/" . $xoopsModule->dirname() . "/admin/myblocksadmin.php{$query4redirect}", 1, _MD_AM_DBUPDATED); } //xoops_cp_header(); $index_admin = new ModuleAdmin(); echo $index_admin->addNavigation('myblocksadmin.php'); if (file_exists('./mymenu.php')) { include './mymenu.php'; } list_groups(); include 'footer.php'; xoops_cp_footer();
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @package Marquee * @since 2.5.0 * @author Mage, Mamba * @version $Id $ **/ include '../../../include/cp_header.php'; include '../../../class/xoopsformloader.php'; xoops_cp_header(); include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/class/admin.php"; $module_info =& $module_handler->get($xoopsModule->getVar("mid")); $module_info = '<div id="about"> <label>' . _AM_XDIR_ABOUT_DESCRIPTION . '</label><text>' . $module_info->getInfo("description") . '</text><br /> <label>' . _AM_XDIR_ABOUT_RELEASEDATE . '</label><text class="bold">' . $module_info->getInfo("release_date") . '</text><br /> <label>' . _AM_XDIR_ABOUT_UPDATEDATE . '</label><text class="bold">' . formatTimestamp($xoopsModule->getVar("last_update"), "m") . '</text><br /> <label>' . _AM_XDIR_ABOUT_MODULE_STATUS . '</label><text>' . $module_info->getInfo("module_status") . '</text><br /> <label>' . _AM_XDIR_ABOUT_WEBSITE . '</label><text><a class="tooltip" href="' . $module_info->getInfo("module_website_url") . '" rel="external" title="' . $module_info->getInfo("module_website_name") . ' - ' . $module_info->getInfo("module_website_url") . '"> ' . $module_info->getInfo("module_website_name") . '</a></text></div>'; $about_admin = new ModuleAdmin(); $about_admin->addLabel($xoopsModule->getVar("name")); $about_admin->addLabel(_AM_XDIR_ABOUT_MODULE_INFO); $about_admin->addLineLabel($xoopsModule->getVar("name"), '', '6KJ7RW5DR3VTJ', '', 'module'); $about_admin->addLineLabel(_AM_XDIR_ABOUT_MODULE_INFO, $module_info, '', '', 'information'); $about_admin->addChangelogLabel(_AM_XDIR_ABOUT_CHANGELOG); echo $about_admin->addNavigation('about.php'); echo $about_admin->renderabout(); echo "<div class='center smallsmall italic pad5'><b>" . $xoopsModule->getVar("name") . "</b> is maintained by the <a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>"; xoops_cp_footer();
<?php /** * Private message * * You may not change or alter any portion of this comment or credits * of supporting developers from this source code or any supporting source code * which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) * @package pm * @since 2.3.0 * @author Taiwen Jiang <*****@*****.**> * @version $Id: admin.php 12593 2014-06-14 16:04:02Z beckmi $ */ include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); echo $indexAdmin->addNavigation('admin.php'); echo $indexAdmin->renderIndex(); include_once dirname(__FILE__) . '/admin_footer.php'; //xoops_cp_footer();
$lang_charset = ''; $lang_image = ''; $weight = 1; $lang_base = ''; include "langform.inc.php"; break; case 'createconfig': xlanguage_createConfig(); redirect_header('main.php', 1, _AM_XLANG_CREATED); exit; break; case "default": default: xoops_cp_header(); $mainAdmin = new ModuleAdmin(); echo $mainAdmin->addNavigation('main.php'); // if (TDMDownloads_checkModuleAdmin()){ // $mainAdmin = new ModuleAdmin(); // echo $mainAdmin->addNavigation('downloads.php'); $mainAdmin->addItemButton(_MI_XLANGUAGE_ADMENU1, 'main.php?op=add&type=base', 'add'); $mainAdmin->addItemButton(_MI_XLANGUAGE_ADMENU2, 'main.php?op=add&type=ext', 'insert_table_row'); echo $mainAdmin->renderButton(); // } // echo "<h4>" . XLANG_CONFIG_LINK . "</h4>"; languageList(); $configfile_status = @is_readable(XLANGUAGE_CONFIG_FILE) ? _AM_XLANG_CONFIGOK : _AM_XLANG_CONFIGNOTOK; echo "<table width='100%' border='0' cellspacing='1' class='outer'><tr><td class=\"odd\"><br />"; // echo " - <b><a href='index.php?op=add&type=base'>" . _AM_XLANG_ADDBASE . "</a></b><br /><br />\n"; // echo " - <b><a href='index.php?op=add&type=ext'>" . _AM_XLANG_ADDEXT . "</a></b><br /><br />\n"; echo "<b>" . $configfile_status . "</b>: " . XLANGUAGE_CONFIG_FILE . " (<a href='main.php?op=createconfig' title='" . _AM_XLANG_CREATECONFIG . "'>" . _AM_XLANG_CREATECONFIG . "</a>)<br /><br />\n"; // echo " - <b><a href='about.php'>" . _AM_XLANG_ABOUT . "</a></b>";
$marquee->setVar('marquee_source', $_POST['source']); if (!$marquee_handler->insert($marquee)) { redirect_header('marquee.php', 1, _AM_MARQUEE_ERROR_MODIFY_DB); exit; } redirect_header('marquee.php', 1, _AM_MARQUEE_DBUPDATED); } else { redirect_header('marquee.php', 3, _ERRORS); } } break; // Edit an element // Edit an element case 'edit': xoops_cp_header(); echo $marqueeAdmin->addNavigation('marquee.php'); echo '<br />'; if (isset($_GET['marqueeid'])) { $marqueeid = intval($_GET['marqueeid']); $marquee = $marquee_handler->get($marqueeid); AddEditMarqueeForm($marqueeid, 'verifybeforeedit', _AM_MARQUEE_CONFIG, $marquee->getVar('marquee_content', 'e'), $marquee->getVar('marquee_bgcolor', 'e'), $marquee->getVar('marquee_width', 'e'), $marquee->getVar('marquee_height', 'e'), $marquee->getVar('marquee_scrollamount', 'e'), $marquee->getVar('marquee_hspace', 'e'), $marquee->getVar('marquee_vspace', 'e'), $marquee->getVar('marquee_scrolldelay', 'e'), $marquee->getVar('marquee_direction', 'e'), $marquee->getVar('marquee_behaviour', 'e'), $marquee->getVar('marquee_align', 'e'), $marquee->getVar('marquee_loop', 'e'), $marquee->getVar('marquee_stoponmouseover', 'e'), _AM_MARQUEE_UPDATE, $marquee->getVar('marquee_source', 'e')); } break; // Delete an element // Delete an element case 'delete': if (!isset($_POST['ok'])) { xoops_cp_header(); echo $marqueeAdmin->addNavigation('marquee.php'); // echo '<h4>' . _AM_MARQUEE_CONFIG . '</h4>'; xoops_confirm(array('op' => 'delete', 'marqueeid' => $_GET['marqueeid'], 'ok' => 1), 'marquee.php', _AM_MARQUEE_RUSUREDEL);
<?php /** * XOOPS Profile module * * You may not change or alter any portion of this comment or credits * of supporting developers from this source code or any supporting source code * which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org) * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) * @package xoopsPoll * @since 2.5.0 * @author Mage, Mamba **/ include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; include_once __DIR__ . '/admin_header.php'; xoops_cp_header(); $module_info = $module_handler->get($xoopsModule->getVar('mid')); $aboutAdmin = new ModuleAdmin(); echo $aboutAdmin->addNavigation(basename(__FILE__)); echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); include_once __DIR__ . '/admin_footer.php';
<?php /* You may not change or alter any portion of this comment or credits of supporting developers from this source code or any supporting source code which is considered copyrighted (c) material of the original comment or credit authors. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ /** * Publisher * * @copyright The XOOPS Project (http://www.xoops.org) * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) * @package Publisher * @since 1.0 * @author Mage, Mamba * @version $Id$ */ include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); echo $indexAdmin->addNavigation('index.php'); echo $indexAdmin->renderIndex(); xoops_cp_footer();
$tplsets = array(); $tplsets_th4disp = ''; $tplset_options = "<option value=''>----</option>\n"; while (list($tplset) = $db->fetchRow($srs)) { $tplset4disp = htmlspecialchars($tplset, ENT_QUOTES); $tplsets[] = $tplset; $th_style = $tplset == $xoopsConfig['template_set'] ? "style='color: yellow;'" : ""; $tplsets_th4disp .= "<th {$th_style}><input type='checkbox' onclick=\"with(document.MainForm){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&elements[i].name.indexOf('{$tplset4disp}_check')>=0){elements[i].checked=this.checked;}}}\" />DB-{$tplset4disp}</th>"; $tplset_options .= "<option value='{$tplset4disp}'>{$tplset4disp}</option>\n"; } // get tpl_file owned by the module $sql = "SELECT tpl_file,tpl_desc,tpl_type,COUNT(tpl_id) FROM " . $db->prefix("tplfile") . " WHERE tpl_module='{$target_dirname4sql}' GROUP BY tpl_file ORDER BY tpl_type, tpl_file"; $frs = $db->query($sql); //xoops_cp_header(); $index_admin = new ModuleAdmin(); echo $index_admin->addNavigation('mytplsadmin.php'); if (file_exists('./mymenu.php')) { include './mymenu.php'; } echo "<h3 style='text-align:left;'>" . _AM_MYLINKS_TPLSETS . " : {$target_mname}</h3>\n"; // beginning of table & form echo "<form name='MainForm' action='?dirname=" . htmlspecialchars($target_dirname, ENT_QUOTES) . "' method='post'>\n" . " " . $xoopsGTicket->getTicketHtml(__LINE__) . "\n" . " <table class='outer'>\n" . " <tr>\n" . " <th>" . _AM_MYLINKS_FILENAME . "</th>\n" . " <th>type</th>\n" . " <th><input type='checkbox' onclick=\"with(document.MainForm){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&elements[i].name.indexOf('basecheck')>=0){elements[i].checked=this.checked;}}}\" />file</th>\n" . " {$tplsets_th4disp}\n" . " </tr>\n"; // STYLE for distinguishing fingerprints $fingerprint_styles = array('', 'background-color:#00FF00', 'background-color:#00CC88', 'background-color:#00FFFF', 'background-color:#0088FF', 'background-color:#FF8800', 'background-color:#0000FF', 'background-color:#FFFFFF'); // template ROWS while (list($tpl_file, $tpl_desc, $type, $count) = $db->fetchRow($frs)) { $evenodd = @$evenodd == 'even' ? 'odd' : 'even'; $fingerprint_style_count = 0; // information about the template echo " <tr>\n" . " <td class='{$evenodd}'>\n" . " <dl>\n" . " <dt>" . htmlspecialchars($tpl_file, ENT_QUOTES) . "</dt>\n" . " <dd>" . htmlspecialchars($tpl_desc, ENT_QUOTES) . "</dd>\n" . " </dl>\n" . " </td>\n" . " <td class='{$evenodd}'>{$type}<br />({$count})</td>\n"; // the base file template column
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) * @package profile * @since 2.3.0 * @author Jan Pedersen * @author Taiwen Jiang <*****@*****.**> * @version $Id: step.php 12593 2014-06-14 16:04:02Z beckmi $ */ include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); $indexAdmin->addItemButton(_ADD . ' ' . _PROFILE_AM_STEP, 'step.php?op=new', 'add', ''); echo $indexAdmin->addNavigation('step.php'); echo $indexAdmin->renderButton('right', ''); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list'); $handler =& xoops_getmodulehandler('regstep'); switch ($op) { case "list": $GLOBALS['xoopsTpl']->assign('steps', $handler->getObjects(null, true, false)); $template_main = "profile_admin_steplist.tpl"; break; case "new": $obj =& $handler->create(); include_once '../include/forms.php'; $form = profile_getStepForm($obj); $form->display(); break; case "edit":
* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Co.Ltd. http://www.xoops.com.cn * @copyright XOOPS Project (http://xoops.org) * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) * @since 1.0.0 * @author Mengjue Shao <*****@*****.**> * @author Susheng Yang <*****@*****.**> */ include __DIR__ . '/admin_header.php'; xoops_cp_header(); //loadModuleAdminMenu(1); $myModuleAdmin = new ModuleAdmin(); echo $myModuleAdmin->addNavigation(basename(__FILE__)); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? 'edit' : 'list'); $page_id = isset($_REQUEST['id']) ? $_REQUEST['id'] : ''; $page_handler = xoops_getModuleHandler('page', 'about'); switch ($op) { default: case 'list': //page order if (isset($_POST['page_order'])) { $page_order = $_POST['page_order']; foreach ($page_order as $page_id => $order) { $page_obj = $page_handler->get($page_id); if ($page_order[$page_id] != $page_obj->getVar('page_order')) { $page_obj->setVar('page_order', $page_order[$page_id]); $page_handler->insert($page_obj); }
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) * @package profile * @since 2.3.0 * @author Jan Pedersen * @author Taiwen Jiang <*****@*****.**> * @version $Id: field.php 12593 2014-06-14 16:04:02Z beckmi $ */ include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); $indexAdmin->addItemButton(_ADD . ' ' . _PROFILE_AM_FIELD, 'field.php?op=new', 'add', ''); echo $indexAdmin->addNavigation('field.php'); echo $indexAdmin->renderButton('right', ''); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list'); $profilefield_handler =& xoops_getmodulehandler('field'); switch ($op) { default: case "list": $fields = $profilefield_handler->getObjects(null, true, false); $module_handler =& xoops_gethandler('module'); $modules = $module_handler->getObjects(null, true); $cat_handler =& xoops_getmodulehandler('category'); $criteria = new CriteriaCompo(); $criteria->setSort('cat_weight'); $cats = $cat_handler->getObjects($criteria, true); unset($criteria); $categories[0] = _PROFILE_AM_DEFAULT;
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ /** * presenter module for xoops * * @copyright XOOPS Project (http://xoops.org) * @license GPL 2.0 or later * @package presenter * @since 2.5.5 * @author XOOPS Development Team <*****@*****.**> - <http://xoops.org> * @version $Id: 1.0 index.php 11532 Wed 2013/08/28 4:00:28Z XOOPS Development Team $ */ include_once __DIR__ . '/admin_header.php'; // Display Admin header xoops_cp_header(); $currentFile = basename(__FILE__); $indexAdmin = new ModuleAdmin(); //count "total cat" $count_cat = $categoriesHandler->getCount(); //count "total slides" $count_slides = $slidesHandler->getCount(); // InfoBox slides $indexAdmin->addInfoBox(_AM_PRESENTER_STATISTICS); // InfoBox cat $indexAdmin->addInfoBoxLine(_AM_PRESENTER_STATISTICS, _AM_PRESENTER_THEREARE_CATEGORIES, $count_cat); // InfoBox slides $indexAdmin->addInfoBoxLine(_AM_PRESENTER_STATISTICS, _AM_PRESENTER_THEREARE_SLIDES, $count_slides); // Render Index echo $indexAdmin->addNavigation($currentFile); echo $indexAdmin->renderIndex(); include_once __DIR__ . '/admin_footer.php';
<?php /* You may not change or alter any portion of this comment or credits of supporting developers from this source code or any supporting source code which is considered copyrighted (c) material of the original comment or credit authors. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ /** * presenter module for xoops * * @copyright XOOPS Project (http://xoops.org) * @license GPL 2.0 or later * @package presenter * @since 2.5.5 * @author XOOPS Development Team <*****@*****.**> - <http://xoops.org> * @version $Id: 1.0 about.php 11532 Wed 2013/08/28 4:00:28Z XOOPS Development Team $ */ include_once __DIR__ . '/admin_header.php'; xoops_cp_header(); $currentFile = basename(__FILE__); $aboutAdmin = new ModuleAdmin(); echo $aboutAdmin->addNavigation($currentFile); echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); include_once __DIR__ . '/admin_footer.php';
* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) * @package profile * @since 2.3.0 * @author Jan Pedersen * @author Taiwen Jiang <*****@*****.**> * @version $Id: user.php 12593 2014-06-14 16:04:02Z beckmi $ */ include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); echo $indexAdmin->addNavigation('user.php'); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : 'list'; if ($op == "editordelete") { $op = isset($_REQUEST['delete']) ? "delete" : "edit"; } $handler =& xoops_gethandler('member'); switch ($op) { default: case "list": include_once $GLOBALS['xoops']->path("/class/xoopsformloader.php"); $form = new XoopsThemeForm(_PROFILE_AM_EDITUSER, 'form', 'user.php'); $form->addElement(new XoopsFormSelectUser(_PROFILE_AM_SELECTUSER, 'id')); $form->addElement(new XoopsFormHidden('op', 'editordelete')); $button_tray = new XoopsFormElementTray(''); $button_tray->addElement(new XoopsFormButton('', 'edit', _EDIT, 'submit')); $button_tray->addElement(new XoopsFormButton('', 'delete', _DELETE, 'submit'));
function listModReq() { global $xoopsDB, $myts, $eh, $xoopsModuleConfig, $xoopsModule; //global $xoopsDB, $myts, $eh, $myCatTree, $xoopsModuleConfig, $xoopsModule; $result = $xoopsDB->query("SELECT requestid, lid, cid, title, url, logourl, description, modifysubmitter FROM " . $xoopsDB->prefix("mylinks_mod") . " ORDER BY requestid"); $totalModRequests = $xoopsDB->getRowsNum($result); //xoops_cp_header(); $index_admin = new ModuleAdmin(); echo $index_admin->addNavigation('main.php?op=listModReq'); $mylinksCatHandler =& xoops_getmodulehandler('category', $xoopsModule->getVar('dirname')); //echo "<h4>" . _MD_MYLINKS_WEBLINKSCONF . "</h4>\n"; echo "<table class='outer' style='width: 100%; border-weight: 0px; margin: 1px;'>\n" . " <tr class='even'><th>" . sprintf(_MD_MYLINKS_BROKENREPORTS, $totalModRequests) . "</th></tr>\n" . " <tr class='odd'>\n" . " <td>\n"; if ($totalModRequests > 0) { echo " <table style='width: 95%;'>\n" . " <tr>\n" . " <td>\n"; $lookup_lid = array(); while (list($requestid, $lid, $cid, $title, $url, $logourl, $description, $submitterid) = $xoopsDB->fetchRow($result)) { $catObj = $mylinksCatHandler->get($cid); $lookup_lid[$requestid] = $lid; $result2 = $xoopsDB->query("SELECT cid, title, url, logourl, submitter FROM " . $xoopsDB->prefix("mylinks_links") . " WHERE lid='{$lid}'"); list($origcid, $origtitle, $origurl, $origlogourl, $ownerid) = $xoopsDB->fetchRow($result2); $origCatObj = $mylinksCatHandler->get($origcid); $result2 = $xoopsDB->query("SELECT description FROM " . $xoopsDB->prefix("mylinks_text") . " WHERE lid='{$lid}'"); list($origdescription) = $xoopsDB->fetchRow($result2); $result7 = $xoopsDB->query("SELECT uname, email FROM " . $xoopsDB->prefix("users") . " WHERE uid='{$submitterid}'"); $result8 = $xoopsDB->query("SELECT uname, email FROM " . $xoopsDB->prefix("users") . " WHERE uid='{$ownerid}'"); $cidtitle = $catObj->getVar('title'); $cidtitle = $myts->htmlSpecialChars($cidtitle); $origcidtitle = $origCatObj->getVar('title'); $origcidtitle = $myts->htmlSpecialChars($cidtitle); /* $cidtitle = $catObj->getPathFromID(); $origcidtitle = $origCatObj->getPathFromID(); */ list($submitter, $submitteremail) = $xoopsDB->fetchRow($result7); list($owner, $owneremail) = $xoopsDB->fetchRow($result8); $title = $myts->htmlSpecialChars($title); $url = $myts->htmlSpecialChars($url); //$url = urldecode($url); // use original image file to prevent users from changing screen shots file $origlogourl = $myts->htmlSpecialChars($origlogourl); $logourl = $origlogourl; //$logourl = urldecode($logourl); $description = $myts->displayTarea($description, 0); $origurl = $myts->htmlSpecialChars($origurl); //$origurl = urldecode($origurl); //$origlogourl = urldecode($origlogourl); $origdescription = $myts->displayTarea($origdescription, 0); $owner = '' == $owner ? 'administration' : $owner; echo " <table style='border-width: 1px; border-color: black; padding: 5px; margin: auto; text-align: center; width: 800px;'>\n" . " <tr><td>\n" . " <table style='width: 100%; background-color: #DDDDDD'>\n" . "\t\t\t <tr>\n" . " <td style='vertical-align: top; width: 45%; font-weight: bold;'>" . _MD_MYLINKS_ORIGINAL . "</td>\n" . " <td rowspan='14' style='vertical-align: top; text-align: left; font-size: small;'><br />" . _MD_MYLINKS_DESCRIPTIONC . "<br />{$origdescription}</td>\n" . " </tr>\n" . " <tr><td style='vertical-align: top; width: 45%; font-size: small;'>" . _MD_MYLINKS_SITETITLE . "{$origtitle}</td></tr>\n" . " <tr><td style='vertical-align: top; width: 45%; font-size: small;'>" . _MD_MYLINKS_SITEURL . "{$origurl}</td></tr>\n" . " <tr><td style='vertical-align= top; width: 45%; font-size: small;'>" . _MD_MYLINKS_CATEGORYC . "{$origcidtitle}</td></tr>\n" . " <tr><td style='vertical-align: top; width: 45%; font-size: small;'>" . _MD_MYLINKS_SHOTIMAGE . ""; if ($xoopsModuleConfig['useshots'] && !empty($origlogourl)) { echo "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->getVar('dirname') . "/images/shots/{$origlogourl}' style='width: " . $xoopsModuleConfig['shotwidth'] . ";' />"; } else { echo " "; } echo "</td></tr>\n" . " </table>\n" . " </td></tr>\n" . " <tr><td>\n" . " <table style='width: 100%; background-color: #DDDDDD'>\n" . "\t\t <tr>\n" . " <td style='vertical-align: top; width: 45%; font-weight: bold;'>" . _MD_MYLINKS_PROPOSED . "</td>\n" . " <td rowspan='14' style='vertical-align: top; text-align: left; font-size: small;'><br />" . _MD_MYLINKS_DESCRIPTIONC . "<br />{$description}</td>\n" . " </tr>\n" . " <tr><td style='vertical-align: top; width: 45%; font-size: small;'>" . _MD_MYLINKS_SITETITLE . "{$title}</td></tr>\n" . " <tr><td style='vertical-align: top; width: 45%; font-size: small;'>" . _MD_MYLINKS_SITEURL . "{$url}</td></tr>\n" . " <tr><td style='vertical-align: top; width: 45%; font-size: small;'>" . _MD_MYLINKS_CATEGORYC . "{$cidtitle}</td></tr>\n" . " <tr><td style='vertical-align: top; width: 45%; font-size: small;'>" . _MD_MYLINKS_SHOTIMAGE . ""; if ($xoopsModuleConfig['useshots'] == 1 && !empty($logourl)) { echo "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->getVar('dirname') . "/images/shots/{$logourl}' style='width: " . $xoopsModuleConfig['shotwidth'] . ";' alt='' />"; } else { echo " "; } echo "</td></tr>\n" . " </table>\n" . " </td></tr>\n" . " </table>\n" . " <table style='text-align: center; width: 800px; margin: auto;'>\n" . " <tr>\n"; if ('' == $submitteremail) { echo " <td style='text-align: center; font-weight: bold;'>" . _MD_MYLINKS_SUBMITTER . "{$submitter}</td>\n"; } else { echo " <td style='text-align: center; font-size: small;'>" . _MD_MYLINKS_SUBMITTER . "<a href='mailto:{$submitteremail}'>{$submitter}</a></td>\n"; } if ('' == $owneremail) { echo " <td style='text-align: center; font-size: small;'>" . _MD_MYLINKS_OWNER . "{$owner}</td>\n"; } else { echo " <td style='text-align: center; font-size: small;'>" . _MD_MYLINKS_OWNER . "<a href='mailto:{$owneremail}'>{$owner}</a></td>\n"; } echo " <td style='text-align: center; font-size: small;'>\n" . " <form style='display: inline; margin-right: 1.5em;' action='main.php?op=changeModReq&requestid={$requestid}' method='post'><input type='submit' value='" . _MD_MYLINKS_APPROVE . "' /></form>\n" . " <form style='display: inline; margin-right: 1.5em;' action='main.php?op=modLink&lid=" . $lookup_lid[$requestid] . "' method='post'><input type='submit' value='" . _EDIT . "' /></form>\n" . " <form style='display: inline;' action='main.php?op=ignoreModReq&requestid={$requestid}' method='post'><input type='submit' value='" . _MD_MYLINKS_IGNORE . "' /></form>\n" . " </td>\n" . " </tr>\n" . " </table><br /><br />\n"; } echo " </td></tr></table>"; } else { echo " <em>" . _MD_MYLINKS_NOMODREQ . "</em>\n"; } echo " </td>\n" . " </tr>\n" . "</table>\n"; include 'footer.php'; }
<?php /** * Module & Theme Resource Download Harvester and Loader * * You may not change or alter any portion of this comment or credits * of supporting developers from this source code or any supporting source code * which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license GNU GPL 3 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) * @author Simon Antony Roberts (wishcraft) <*****@*****.**> * @category resources * @description Module & Theme Resource Download Harvester and Loader * @version 1.0.1 * @see 1.0.1 * @link https://github.com/ChronolabsCooperative/Xoops25ModuleResources * @link https://github.com/ChronolabsCooperative/Xoops26ModuleResources * @see http://internetfounder.wordpress.com */ $module_info =& $module_handler->get($xoopsModule->getVar("mid")); $aboutAdmin = new ModuleAdmin(); echo $aboutAdmin->addNavigation('admin?op=about'); echo $aboutAdmin->renderabout($aboutAdmin['paypal-catno'], false);
<?php include_once __DIR__ . '/admin_header.php'; /* * 处理 **/ //头部 include "martin.header.php"; $currentFile = basename(__FILE__); $myModuleAdmin = new ModuleAdmin(); echo $myModuleAdmin->addNavigation($currentFile); //parameter 参数 $action = isset($_POST['action']) ? $_POST['action'] : @$_GET['action']; $action = empty($action) ? 'list' : $action; $action = trim(strtolower($action)); $id = !empty($_POST['id']) ? $_POST['id'] : @$_GET['id']; $id = (int) $id; $typeid = !empty($_POST['typeid']) ? (int) $_POST['typeid'] : (int) @$_GET['typeid']; $hotel_id = isset($_GET['hotel_id']) ? (int) $_GET['hotel_id'] : 0; $service_id = isset($_GET['service_id']) ? (int) $_GET['service_id'] : 0; $start = isset($_GET['start']) ? (int) $_GET['start'] : 0; //确认删除 $confirm = isset($_POST['confirm']) ? $_POST['confirm'] : 0; //parameter 参数 // martin_adminMenu(3, "订房后台 > 酒店服务"); $hotelservice_handler =& xoops_getmodulehandler('hotelservice', MARTIN_DIRNAME, true); $hotelservicetype_handler =& xoops_getmodulehandler('hotelservicetype', MARTIN_DIRNAME, true); $HotelServiceObj = $id > 0 ? $hotelservice_handler->get($id) : $hotelservice_handler->create(); $HotelServiceTypeObj = $typeid > 0 ? $hotelservicetype_handler->get($typeid) : $hotelservicetype_handler->create(); switch ($action) { case "add":
* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) * @package profile * @since 2.3.0 * @author Jan Pedersen * @author Taiwen Jiang <*****@*****.**> * @version $Id: permissions.php 12593 2014-06-14 16:04:02Z beckmi $ */ include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); echo $indexAdmin->addNavigation('permissions.php'); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : "edit"; $perm_desc = ""; switch ($op) { case "visibility": //redirect_header("visibility.php", 0, _PROFILE_AM_PROF_VISIBLE); header("Location: visibility.php"); break; case "edit": $title_of_form = _PROFILE_AM_PROF_EDITABLE; $perm_name = "profile_edit"; $restriction = "field_edit"; $anonymous = false; break; case "search": $title_of_form = _PROFILE_AM_PROF_SEARCH;
* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org) * @license GNU GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html) * @package profile * @since 2.3.0 * @author Jan Pedersen * @author Taiwen Jiang <*****@*****.**> */ include_once __DIR__ . '/admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); $indexAdmin->addItemButton(_ADD . ' ' . _PROFILE_AM_FIELD, 'field.php?op=new', 'add', ''); echo $indexAdmin->addNavigation(basename(__FILE__)); echo $indexAdmin->renderButton('right', ''); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? 'edit' : 'list'); $profilefield_handler = xoops_getModuleHandler('field'); switch ($op) { default: case 'list': $fields = $profilefield_handler->getObjects(null, true, false); $module_handler = xoops_getHandler('module'); $modules = $module_handler->getObjects(null, true); $cat_handler = xoops_getModuleHandler('category'); $criteria = new CriteriaCompo(); $criteria->setSort('cat_weight'); $cats = $cat_handler->getObjects($criteria, true); unset($criteria); $categories[0] = _PROFILE_AM_DEFAULT;
* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) * @package pm * @since 2.3.0 * @author Jan Pedersen * @author Taiwen Jiang <*****@*****.**> * @version $Id: prune.php 12593 2014-06-14 16:04:02Z beckmi $ */ include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); echo $indexAdmin->addNavigation('prune.php'); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : "form"; $pm_handler =& xoops_getmodulehandler('message'); switch ($op) { default: case "form": $form = $pm_handler->getPruneForm(); $form->display(); break; case "prune": $criteria = new CriteriaCompo(); if ($_REQUEST['after']['date'] && $_REQUEST['after']['date'] != "YYYY/MM/DD") { $criteria->add(new Criteria('msg_time', strtotime($_REQUEST['after']['date']) + intval($_REQUEST['after']['time']), ">")); } if ($_REQUEST['before']['date'] && $_REQUEST['before']['date'] != "YYYY/MM/DD") { $criteria->add(new Criteria('msg_time', strtotime($_REQUEST['before']['date']) + intval($_REQUEST['before']['time']), "<"));
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // 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 // // ------------------------------------------------------------------------ // // Author: XOOPS Foundation // // URL: http://www.xoops.org/ // // Project: The XOOPS Project // // ------------------------------------------------------------------------- // include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); $indexAdmin->addItemButton(_ADD . ' ' . _PROFILE_AM_CATEGORY, 'category.php?op=new', 'add', ''); echo $indexAdmin->addNavigation('category.php'); echo $indexAdmin->renderButton('right', ''); $op = isset($_REQUEST['op']) ? $_REQUEST['op'] : (isset($_REQUEST['id']) ? "edit" : 'list'); $handler =& xoops_getmodulehandler('category'); switch ($op) { default: case "list": $criteria = new CriteriaCompo(); $criteria->setSort('cat_weight'); $criteria->setOrder('ASC'); $GLOBALS['xoopsTpl']->assign('categories', $handler->getObjects($criteria, true, false)); $template_main = "profile_admin_categorylist.tpl"; break; case "new": include_once '../include/forms.php'; $obj =& $handler->create();
/** * XoopsfaqContentsHandler::DisplayError() * * @return */ function displayError($errorString = '') { xoops_cp_header(); //xoopsFaq_AdminMenu(0); $index_admin = new ModuleAdmin(); echo $index_admin->addNavigation('index.php'); //xoopsFaq_DisplayHeading(_AM_XOOPSFAQ_CONTENTS_HEADER, '', false); xoops_error($errorString, _AM_XOOPSFAQ_SUBERROR); xoops_cp_footer(); exit; }