<span class="badge pull-right"><?php echo $this->getUnreviews(); ?> </span> <?php } ?> <i class="o-rp-appraise"></i> <?php echo $lang['Reveiw']; ?> </a> </li> <?php if (Module::getIsEnabled('statistics') && isset($statModule['report'])) { ?> <?php echo $this->widget(StatCommon::getWidgetName('report', StatConst::SIDEBAR_WIDGET), array('hasSub' => $this->checkIsHasSub()), true); ?> <?php } ?> </ul> </div> </div> <!-- 汇报类型设置 --> <div id="d_report_type" style="width: 520px; display:none;"> <form id="d_report_type_form"> <table class="table table-operate mbz" id="rp_type_table"> <thead>
</li> <?php if ($this->issetAttention()) { ?> <li> <a href="<?php echo $this->createUrl('attention/index'); ?> "> <i class="o-da-shared"></i> <?php echo Ibos::lang('Attention diary'); ?> </a> </li> <?php } ?> <?php if (Module::getIsEnabled('statistics') && isset($statModule['diary'])) { ?> <?php echo $this->widget(StatCommon::getWidgetName('diary', StatConst::SIDEBAR_WIDGET), array('hasSub' => $this->checkIsHasSub(), 'fromController' => 'stats'), true); ?> <?php } ?> </ul> </div> </div>
<?php use application\core\utils\Ibos; use application\core\utils\Module; $isInstallCalendar = Module::getIsEnabled('calendar'); if ($isInstallCalendar) { $sql = "DROP TABLE IF EXISTS {{calendar_rep_record}};\r\n\t\t\tCREATE TABLE IF NOT EXISTS {{calendar_rep_record}} (\r\n\t\t\t`id` int(10) unsigned NOT NULL AUTO_INCREMENT,\r\n\t\t\t`cid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '日程的id',\r\n\t\t\t`rid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '来自日志的计划id',\r\n\t\t\t`repid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '总结的id',\r\n\t\t\tPRIMARY KEY (`id`),\r\n\t\t\tKEY `cid` (`cid`) USING BTREE,\r\n\t\t\tKEY `rid` (`rid`) USING BTREE,\r\n\t\t\tKEY `repid` (`repid`) USING BTREE\r\n\t\t ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;"; Ibos::app()->db->createCommand($sql)->query(); }
?> </td> <td> <?php if ($module['iscore'] == 1) { echo $lang['System built in']; ?> <?php } elseif ($module['iscore'] == 2) { echo $lang['Core depend']; ?> <?php } else { ?> <input type="checkbox" <?php if ($module['disabled'] == 0 && Module::getIsEnabled($module['module'])) { ?> checked<?php } ?> value="<?php echo $module['module']; ?> " data-toggle="switch" class="visi-hidden"> <?php } ?> </td> <td> <?php if (!empty($module['managerUrl'])) {
"> <i class="o-portal-office"></i> 办公门户 </a> </li> <li> <a href="<?php echo Ibos::app()->urlManager->createUrl('weibo/home/index'); ?> "> <i class="o-portal-personal"></i> 个人门户 </a> </li> <?php if (Module::getIsEnabled('app')) { ?> <li > <a href="<?php echo Ibos::app()->urlManager->createUrl('app/default/index'); ?> "> <i class="o-portal-app"></i> 常用工具 </a> </li> <?php } ?> </ul> </div>
require_once $yii; require_once $ibosApplication; $commonConfig = (require CONFIG_PATH . 'common.php'); Yii::setPathOfAlias('application', PATH_ROOT . DIRECTORY_SEPARATOR . 'system'); Yii::createApplication('application\\core\\components\\Application', $commonConfig); Cache::rm('module'); $allModules = getModuleDirs(); $customModules = array_diff($allModules, $sysModules); $modules = !empty($customModules) ? array_merge($sysModules, $customModules) : $sysModules; defined('IN_MODULE_ACTION') or define('IN_MODULE_ACTION', true); foreach ($modules as $module) { if (getIsInstall($module)) { $installPath = getInstallPath($module); $config = (require $installPath . 'config.php'); if (isset($config['authorization'])) { Module::updateAuthorization($config['authorization'], $module, $config['param']['category']); } $extentionScript = $installPath . 'extention.php'; // 执行模块扩展脚本(如果有) if (file_exists($extentionScript)) { include_once $extentionScript; } } } // 安装演示数据 if (isset($_SESSION['extData']) && $_SESSION['extData'] == md5('extData')) { $sqlData = file_get_contents(PATH_ROOT . './install/data/installExtra.sql'); $search = array('{time}', '{time1}', '{time2}', '{date}', '{date+1}'); $replace = array(time(), strtotime('-1 hour'), strtotime('+1 hour'), strtotime(date('Y-m-d')), strtotime('-1 day', strtotime(date('Y-m-d')))); $sql = str_replace($search, $replace, $sqlData); executeSql($sql);
<?php use application\core\utils\Ibos; use application\core\utils\Module; $isInstallDiary = Module::getIsEnabled('diary'); if ($isInstallDiary) { $sql = "DROP TABLE IF EXISTS {{calendar_record}};\r\n\t\t\tCREATE TABLE IF NOT EXISTS {{calendar_record}} (\r\n\t\t\t`id` int(10) unsigned NOT NULL AUTO_INCREMENT,\r\n\t\t\t`cid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '日程的id',\r\n\t\t\t`rid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '来自日志的计划id',\r\n\t\t\t`did` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '日志的id',\r\n\t\t\tPRIMARY KEY (`id`),\r\n\t\t\tKEY `cid` (`cid`) USING BTREE,\r\n\t\t\tKEY `rid` (`rid`) USING BTREE,\r\n\t\t\tKEY `did` (`did`) USING BTREE\r\n\t\t ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;"; Ibos::app()->db->createCommand($sql)->query(); } $isInstallReport = Module::getIsEnabled('report'); if ($isInstallReport) { $sql1 = "DROP TABLE IF EXISTS {{calendar_rep_record}};\r\n\t\t\tCREATE TABLE IF NOT EXISTS {{calendar_rep_record}} (\r\n\t\t\t`id` int(10) unsigned NOT NULL AUTO_INCREMENT,\r\n\t\t\t`cid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '日程的id',\r\n\t\t\t`rid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '来自日志的计划id',\r\n\t\t\t`repid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '总结的id',\r\n\t\t\tPRIMARY KEY (`id`),\r\n\t\t\tKEY `cid` (`cid`) USING BTREE,\r\n\t\t\tKEY `rid` (`rid`) USING BTREE,\r\n\t\t\tKEY `repid` (`repid`) USING BTREE\r\n\t\t ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;"; Ibos::app()->db->createCommand($sql1)->query(); }
?> checked<?php } ?> > </div> </div> <div class="control-group"> <label class="control-label "><?php echo $lang['Vote']; ?> </label> <div class="controls"> <?php if (!ModuleUtil::getIsEnabled('vote')) { ?> <label class="toggle toggle-off toggle-disabled" title="未安装投票模块" > </label> <?php } else { ?> <input type="checkbox" name="articlevoteenable" value='1' id="" data-toggle="switch" <?php if ($data['articlevoteenable']) { ?> checked<?php } ?> > <?php }
?> </strong> </div> <div class="uic-operate"> <?php if (Ibos::app()->user->uid !== $user['uid']) { ?> <a href="javascript:Ibos.showCallingDialog(<?php echo $user['uid']; ?> );void(0);" title="打电话" class="co-tcall"></a> <?php } ?> <?php if (Module::getIsEnabled('email')) { ?> <a target="_blank" href="<?php echo Ibos::app()->createUrl('email/content/add', array('toid' => $user['uid'])); ?> " title="<?php echo $lang['Send email']; ?> " class="co-temail"></a><?php } ?> <?php if (Ibos::app()->user->uid !== $user['uid']) { ?> <a title="<?php echo $lang['Send message'];