Beispiel #1
0
 public function run()
 {
     $module = $this->getController()->getModule()->getId();
     $timeRoute = $this->getTimeRoute($module);
     $data = array("module" => $module, "timeRoute" => $timeRoute, "lang" => Ibos::getLangSources(array("diary.default")), "time" => StatCommonUtil::getCommonTimeScope());
     $this->render(self::VIEW, $data);
 }
Beispiel #2
0
 public function run()
 {
     $this->checkReviewAccess();
     $uid = $this->getUid();
     $time = StatCommonUtil::getCommonTimeScope();
     $list = Diary::model()->fetchAddTimeByUid($uid, $time["start"], $time["end"]);
     $data = array("delay" => $this->getDelay($list), "nums" => $this->getDiaryNums($list));
     $this->render(self::VIEW, $data);
 }
Beispiel #3
0
 public function run()
 {
     $time = StatCommonUtil::getCommonTimeScope();
     if ($this->inPersonal()) {
         $this->renderPersonal($time);
     } else {
         $this->checkReviewAccess();
         $this->renderReview($time);
     }
 }
Beispiel #4
0
 public function run()
 {
     $factory = new ICChartFactory();
     $properties = array("uid" => $this->getUid(), "timeScope" => StatCommonUtil::getCommonTimeScope());
     $timeCounter = $this->createComponent("ICDiarySubmitTimeCounter", $properties);
     $scoreCounter = $this->createComponent("ICDiaryScoreTimeCounter", $properties);
     $stampCounter = $this->createComponent("ICDiaryStampCounter", $properties);
     $data = array("statAssetUrl" => Ibos::app()->assetManager->getAssetsUrl("statistics"), "time" => $factory->createChart($timeCounter, "ICDiaryLineChart"), "score" => $factory->createChart($scoreCounter, "ICDiaryLineChart"), "stamp" => $factory->createChart($stampCounter, "ICDiaryBarChart"));
     $this->render(self::VIEW, $data);
 }
Beispiel #5
0
 public function run()
 {
     $factory = new ICChartFactory();
     $properties = array("timeScope" => StatCommonUtil::getCommonTimeScope(), "type" => $this->getType(), "timestr" => $this->getTimestr());
     $flowCounter = $this->createComponent("ICRecruitTalentFlowCounter", $properties);
     $sexRatioCounter = $this->createComponent("ICRecruitSexCounter", $properties);
     $ageCounter = $this->createComponent("ICRecruitAgeCounter", $properties);
     $degreeCounter = $this->createComponent("ICRecruitDegreeCounter", $properties);
     $workYearsCounter = $this->createComponent("ICRecruitWorkYearsCounter", $properties);
     $data = array("statAssetUrl" => Ibos::app()->assetManager->getAssetsUrl("statistics"), "talentFlow" => $factory->createChart($flowCounter, "ICRecruitLineChart"), "sexRatio" => $factory->createChart($sexRatioCounter, "ICRecruitPieChart"), "age" => $factory->createChart($ageCounter, "ICRecruitPieChart"), "degree" => $factory->createChart($degreeCounter, "ICRecruitPieChart"), "workYears" => $factory->createChart($workYearsCounter, "ICRecruitPieChart"));
     $this->render(self::VIEW, $data);
 }
Beispiel #6
0
 public function run()
 {
     $module = $this->getController()->getModule()->getId();
     $timeRoute = $this->getTimeRoute($module);
     $type = $this->getType();
     $timestr = $this->getTimestr();
     if (empty($type)) {
         $type = "day";
     }
     if (empty($timestr)) {
         $timestr = "thisweek";
     }
     $data = array("module" => $module, "timeRoute" => $timeRoute, "lang" => Ibos::getLangSources(array("recruit.default")), "time" => StatCommonUtil::getCommonTimeScope(), "type" => $type, "timestr" => $timestr);
     $this->render(self::VIEW, $data);
 }
Beispiel #7
0
 public function actionIndex()
 {
     if (EnvUtil::submitCheck("formhash")) {
         if (isset($_POST["statmodules"])) {
         } else {
             $_POST["statmodules"] = array();
         }
         Setting::model()->updateSettingValueByKey("statmodules", $_POST["statmodules"]);
         CacheUtil::update("setting");
         $this->success(Ibos::lang("Operation succeed", "message"));
     } else {
         $res = Setting::model()->fetchSettingValueByKey("statmodules");
         $statModules = $res ? unserialize($res) : array();
         $data = array("statModules" => $statModules, "enabledModules" => StatCommonUtil::getStatisticsModules());
         $this->render("index", $data);
     }
 }
Beispiel #8
0
    ?>
">
						<i class="o-da-shared"></i>
						<?php 
    echo Ibos::lang('Attention diary');
    ?>
					</a>
				</li>
			<?php 
}
?>
			<?php 
if (ModuleUtil::getIsEnabled('statistics') && isset($statModule['diary'])) {
    ?>
				<?php 
    echo $this->widget(StatCommonUtil::getWidgetName('diary', StatConst::SIDEBAR_WIDGET), array('hasSub' => $this->checkIsHasSub()), true);
    ?>
			<?php 
}
?>
        </ul>
    </div>
</div>
<script type="text/ibos-template" id="sidebar_template">
    <td data-action="toOneDay" data-id="<%=diaryid%>" class="<%=className%>"><%=day%></td>
</script>
<script>
	Ibos.app.setPageParam({
		'currentYear': <?php 
echo $currentDateInfo['year'];
?>
Beispiel #9
0
 protected function getData()
 {
     return array("statAssetUrl" => Ibos::app()->assetManager->getAssetsUrl("statistics"), "widgets" => StatCommonUtil::getWidget("diary"));
 }
Beispiel #10
0
 public function run()
 {
     $time = StatCommonUtil::getCommonTimeScope();
     $this->renderOverview($time);
 }
Beispiel #11
0
	                            </ul>
	                        </li>
						<?php 
    }
    ?>
						<?php 
}
?>
                    </ul>
                </div>
            </li>
			<?php 
if (ModuleUtil::getIsEnabled("statistics") && isset($statModule["report"])) {
    ?>
				<?php 
    echo $this->widget(StatCommonUtil::getWidgetName("report", StatConst::SIDEBAR_WIDGET), array("hasSub" => $this->checkIsHasSub()), true);
    ?>
			<?php 
}
?>
        </ul>
    </div>
</div>
<script>
	Ibos.app.setPageParam({
		'currentSubUid': "<?php 
echo EnvUtil::getRequest("uid") ? EnvUtil::getRequest("uid") : 0;
?>
"
	});
</script>
Beispiel #12
0
    if ($id == 'attention') {
        ?>
class="active"<?php 
    }
    ?>
>
					<a href="<?php 
    echo $this->getController()->createUrl('attention/index');
    ?>
">
						<i class="o-da-shared"></i>
						<?php 
    echo Ibos::lang('Attention diary');
    ?>
					</a>
				</li>
			<?php 
}
?>
			<?php 
if (ModuleUtil::getIsEnabled('statistics') && isset($statModule['diary'])) {
    ?>
				<?php 
    echo $this->widget(StatCommonUtil::getWidgetName('diary', StatConst::SIDEBAR_WIDGET), array('hasSub' => $hasSub, 'fromController' => 'review'), true);
    ?>
			<?php 
}
?>
        </ul>
    </div>
</div>
Beispiel #13
0
 protected function getData()
 {
     $typeid = EnvUtil::getRequest("typeid");
     return array("typeid" => empty($typeid) ? 1 : $typeid, "statAssetUrl" => Ibos::app()->assetManager->getAssetsUrl("statistics"), "widgets" => StatCommonUtil::getWidget("report"));
 }
Beispiel #14
0
 protected function getData()
 {
     $type = EnvUtil::getRequest("type");
     $timestr = EnvUtil::getRequest("time");
     return array("type" => $type, "timestr" => $timestr, "statAssetUrl" => Ibos::app()->assetManager->getAssetsUrl("statistics"), "widgets" => StatCommonUtil::getWidget("recruit"));
 }