本文整理汇总了PHP中Activity::BMActivity方法的典型用法代码示例。如果您正苦于以下问题:PHP Activity::BMActivity方法的具体用法?PHP Activity::BMActivity怎么用?PHP Activity::BMActivity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Activity
的用法示例。
在下文中一共展示了Activity::BMActivity方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: session_start
session_start();
if (!isset($_SESSION['adminname'])) {
header("Location: index.php");
exit;
}
require_once "../includes/initialize.php";
require_once 'header.php';
if (isset($_GET['report'])) {
$report = $_GET['report'];
if ($report == 'TM Report') {
$condition = array("GROUP BY bmp.TM_Emp_Id");
$check = Activity::TMActivity($condition);
} elseif ($report == 'BM Report') {
$condition = array("GROUP BY bmp.BM_Emp_Id");
$check = Activity::BMActivity($condition);
} else {
$condition = array("GROUP BY t_union.SM_Emp_Id");
$condition2 = array("GROUP BY bmp.SM_Emp_Id");
$check = Activity::SMActivity($condition, $condition2);
}
}
?>
<div class="col-lg-12" style="margin-bottom: 1em;">
<a href="adminDashBoard.php" class="badge">GO Back</a>
</div>
<script src="http://instacom.in/jardiance/js/excellentexport.min.js" type="text/javascript"></script>
<script src="http://instacom.in/jardiance/js/jquery.dataTables.min.js" type="text/javascript"></script>
<form action="Activity_list.php" method="GET" >
<div class="col-xs-3" >
示例2: session_start
<?php
session_start();
require_once "./includes/initialize.php";
if (isset($_SESSION['bdmemp'])) {
$BM_Emp_id = $_SESSION['bdmemp'];
$condition = array('WHERE ba.BM_Emp_Id = ' . $BM_Emp_id);
$Activities = Activity::BMActivity($condition);
} elseif (isset($_SESSION['tmemp'])) {
$TM_Emp_id = $_SESSION['tmemp'];
$condition = array('WHERE ta.TM_Emp_Id = ' . $TM_Emp_id);
$Activities = Activity::TMActivity($condition);
}
require_once './header.php';
?>
<div class="col-lg-12">
<a href="View.php" class="badge">GO Back</a>
<?php
if (isset($_SESSION['bdmemp'])) {
?>
<a href="TMwiseReport.php?type=bm" class="btn btn-success badge">TM REPORT</a>
<?php
}
?>
</div>
<div class="col-lg-12">
<h4>VIEW BIP ACTIVITY</h4>
<table class="table table-bordered">
<tr>
<th>Sr. No.</th>
<th>Activity Name</th>
示例3: isset
</div>
<br />
<div id="dv_tm3Region" u="caption" t="RTT|10" style="position: absolute;background-color: #7e9e49;left:0px; top: 120px; width: 100%; height: 40px; font-size: 36px; color: #fff; line-height: 40px;"><?php
echo isset($topper->chemist_meet) ? $topper->chemist_meet : '-';
?>
</div>
<br />
<div id="dv_tm3Rx" u="caption" t="RTT|10" style="position: absolute;background-color: #7e9e49;left:0px;top: 170px; width: 100%; height: 20px; font-size: 36px;font-weight:600; color:#fff; line-height: 40px;"><?php
echo isset($topper->Region) ? $topper->Region : 'NA';
?>
</div>
</div>
<div>
<?php
$condition = array('GROUP BY bmp.BM_Emp_Id ORDER BY visibility DESC LIMIT 1');
$topper = Activity::BMActivity($condition);
if (!empty($topper)) {
$topper = array_shift($topper);
}
?>
<!-- <img u="image" src="../Images/darkback.jpg" />-->
<div id="Div2" style="position: absolute; top: 10px;width: 100%; background-color: #7e9e49;height: 20px; font-size: 23px; color: #fff; line-height: 30px;">Most No. Of Visibility At Clinics(BM)</div>
<div id="dv_tm3name" u="caption" t="RTT|10" style="position: absolute;background-color: #7e9e49;left:0px; top: 70px; width: 100%; height: 40px; font-size: 43px; color: #fff; line-height: 40px;"><?php
echo isset($topper->BM_Name) ? $topper->BM_Name : 'NA';
?>
</div>
<br />
<div id="dv_tm3Region" u="caption" t="RTT|10" style="position: absolute;background-color: #7e9e49;left:0px; top: 120px; width: 100%; height: 40px; font-size: 36px; color: #fff; line-height: 40px;"><?php
echo isset($topper->visibility) ? $topper->visibility : '-';
?>
</div>