本文整理汇总了PHP中Activity::SMActivity方法的典型用法代码示例。如果您正苦于以下问题:PHP Activity::SMActivity方法的具体用法?PHP Activity::SMActivity怎么用?PHP Activity::SMActivity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Activity
的用法示例。
在下文中一共展示了Activity::SMActivity方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
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" >
<select class="form-control" name="report">
<option value="TM Report" <?php
if (isset($report) && $report == 'TM Report') {
echo "selected";
示例2: 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 t_union.SM_Emp_Id ORDER BY visibility DESC LIMIT 1');
$topper = Activity::SMActivity($condition, array('GROUP BY bmp.SM_Emp_Id'));
if (!empty($topper)) {
$topper = array_shift($topper);
}
?>
<!-- <img u="image" src="Images/darkback.jpg" />-->
<div id="Div2" style="position: absolute; top: 10px;background-color: #7e9e49;width: 100%; height: 20px; font-size: 23px; color: #fff; line-height: 30px;">Most No. Of Visibility At Clinics</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->SM_Name) ? $topper->SM_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>
示例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->Territory) ? $topper->Territory : 'NA';
?>
</div>
</div>
<div>
<?php
$condition = array('GROUP BY bmp.TM_Emp_Id ORDER BY visibility DESC LIMIT 1');
$topper = Activity::SMActivity($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(TM)</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->TM_Name) ? $topper->TM_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>