当前位置: 首页>>代码示例>>PHP>>正文


PHP Activity::BMActivity方法代码示例

本文整理汇总了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" >
开发者ID:Akshayf444,项目名称:BIP,代码行数:30,代码来源:Activity_list.php

示例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>
开发者ID:Akshayf444,项目名称:BIP,代码行数:31,代码来源:View_Activity.php

示例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>
开发者ID:Akshayf444,项目名称:BIP,代码行数:31,代码来源:SBHDashboard.php


注:本文中的Activity::BMActivity方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。