コード例 #1
0
<?php

$NBFrame_ini_short_open_tag = ini_set('short_open_tag', 'On');
$environment =& NBFrame::getEnvironment();
?>
<script src="<?php 
echo $environment->getActionUrl('NBFrame.LoadCalendarJS', array('lang' => $GLOBALS['xoopsConfig']['language']));
?>
" type="text/javascript"></script>
<input type="text" name="<?php 
echo $field['name'];
?>
" id="<?php 
echo $field['id'];
?>
" size="<?php 
echo $field['size'];
?>
" maxlength="<?php 
echo $field['maxlength'];
?>
" value="<?php 
echo $field['date'];
?>
" <?php 
echo $field['extra'];
?>
 />
<input type="reset" value=" ... " onclick="return NBFrameCalendarShow('<?php 
echo $field['name'];
?>
<?php

/**
 *
 * @package MyGmap
 * @version $Id$
 * @copyright Copyright 2006-2008 NobuNobuXOOPS Project <http://sourceforge.net/projects/nobunobuxoops/>
 * @author NobuNobu <*****@*****.**>
 * @license http://www.gnu.org/licenses/gpl.txt GNU GENERAL PUBLIC LICENSE Version 2
 *
 */
if (!class_exists('mygmap_MyGmapCategoryAdminList')) {
    NBFrame::using('+admin.MyGmapCategoryAdminList', NBFrame::getEnvironment());
    class mygmap_MyGmapCategoryAdminList extends MyGmapCategoryAdminList
    {
        function prepare()
        {
            parent::prepare();
            $this->mElements['mygmap_category_id']['caption'] = 'Num';
        }
    }
}
コード例 #3
0
 function langConstPrefix($prefix = '', $dirname, $target = NBFRAME_TARGET_MAIN)
 {
     if (empty($dirname) && $target == NBFRAME_TARGET_LOADER) {
         $environment =& NBFrame::getEnvironment(NBFRAME_TARGET_LOADER);
         if ($environment) {
             $dirname = $environment->getDirName();
         } else {
             if (!empty($GLOBALS['xoopsModule']) && $GLOBALS['xoopsModule']->getVar('dirname') == 'altsys' && !empty($_GET['dirname'])) {
                 $dirname = htmlspecialchars($_GET['dirname'], ENT_QUOTES);
             }
         }
     }
     if (empty($dirname)) {
         return '';
     }
     if (!empty($prefix)) {
         return '_' . $prefix . '_' . strtoupper($dirname) . '_';
     } else {
         return '_' . strtoupper($dirname) . '_';
     }
 }
コード例 #4
0
 * @package NBFrame
 * @version $Id$
 * @copyright Copyright 2007 NobuNobuXOOPS Project <http://sourceforge.net/projects/nobunobuxoops/>
 * @author NobuNobu <*****@*****.**>
 * @license http://www.gnu.org/licenses/gpl.txt GNU GENERAL PUBLIC LICENSE Version 2
 *
 */
if (!defined('NBFRAME_BASE_DIR')) {
    exit;
}
if (!defined('NBFRAME_COMMON_FUNCTION_INCLUDED')) {
    define('NBFRAME_COMMON_FUNCTION_INCLUDED', 1);
    if (preg_match('/^4/', PHP_VERSION)) {
        include_once dirname(__FILE__) . '/NBFramePHP4.inc.php';
    } else {
        include_once dirname(__FILE__) . '/NBFramePHP5.inc.php';
    }
    require_once NBFRAME_BASE_DIR . '/class/NBFrame.class.php';
}
$environment =& NBFrame::getEnvironment(NBFRAME_TARGET_LOADER, '', true);
$environment->setDirBase($_NBFrame_moduleBaseDir);
if (file_exists($_NBFrame_moduleBaseDir . '/mytrustdirname.php')) {
    require $_NBFrame_moduleBaseDir . '/mytrustdirname.php';
    $environment->setOrigDirName($mytrustdirname);
}
if ($fname = $environment->findFile('module_settings.php', '/', false, '=')) {
    @(include $fname);
}
if ($fname = $environment->findFile('custom_settings.php', '/', false, '=')) {
    @(include $fname);
}
コード例 #5
0
<?php

/**
 *
 * @package NBFrame
 * @version $Id$
 * @copyright Copyright 2007 NobuNobuXOOPS Project <http://sourceforge.net/projects/nobunobuxoops/>
 * @author NobuNobu <*****@*****.**>
 * @license http://www.gnu.org/licenses/gpl.txt GNU GENERAL PUBLIC LICENSE Version 2
 *
 */
include dirname(dirname(__FILE__)) . '/include/NBFrameLoader.inc.php';
$preloadEnvironment =& NBFrame::getEnvironment(NBFRAME_TARGET_LOADER);
@(include NBFRAME_BASE_DIR . '/include/NBFramePreload.inc.php');