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


PHP user::getUser方法代码示例

本文整理汇总了PHP中user::getUser方法的典型用法代码示例。如果您正苦于以下问题:PHP user::getUser方法的具体用法?PHP user::getUser怎么用?PHP user::getUser使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在user的用法示例。


在下文中一共展示了user::getUser方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getAssociatedUser

 public function getAssociatedUser()
 {
     if ($this->_user) {
         return user::getUser($this->_user);
     } else {
         return null;
     }
 }
开发者ID:noccy80,项目名称:lepton-ng,代码行数:8,代码来源:audit.php

示例2: remove

 function remove($username = null)
 {
     using('lepton.user.*');
     if ($username) {
         if (substr($username, 0, 1) == '#') {
             $uobj = user::getUser(intval(substr($username, 1)));
         } else {
             $uobj = user::find($username);
         }
         if (user::remove($uobj)) {
             console::writeLn("Removed user");
         } else {
             console::writeLn("User not removed, does it exist?");
         }
     } else {
         console::writeLn("Use: user remove username");
     }
 }
开发者ID:noccy80,项目名称:lepton-ng,代码行数:18,代码来源:useractions.php

示例3: setUser

 /**
  * @brief Assign a user to the current session.
  *
  * @param $id The user id to assign
  */
 protected function setUser($id)
 {
     // Check if the user is active
     $u = user::getUser($id);
     if ($u == null) {
         throw new UserException("Unassociated user id / Integrity failure", UserException::ERR_USER_UNASSOCIATED);
     }
     if (!$u->active) {
         throw new UserException("User is not active, check audit log", UserException::ERR_USER_INACTIVE);
     }
     // TODO: Assign to session
     if (ModuleManager::has('lepton.mvc.session')) {
         session::set(User::KEY_USER_AUTH, $id);
     }
     if (class_exists('request')) {
         $db = new DatabaseConnection();
         $db->updateRow("UPDATE users SET lastlogin=NOW(), lastip=%s WHERE id=%d", request::getRemoteIp(), $id);
     }
     if (class_exists('UserEvents')) {
         event::invoke(UserEvents::EVENT_USER_LOGIN, array('id' => $id));
     }
 }
开发者ID:noccy80,项目名称:lepton-ng,代码行数:27,代码来源:authentication.php

示例4: unset

    }
    unset($_POST['oldpassword']);
    $arrData['user_id'] = $_POST['user_id'];
    $arrData['birthday'] = $_POST['birthday'];
    $arrData['sex'] = $_POST['sex'];
    $arrData['user_group'] = $_POST['user_group'];
    unset($_POST);
    $objWebInit->saveInfo($arrData, 1, false);
    check::AlertExit('修改成功!', $arrGWeb['WEB_ROOT_pre'] . '/mcenter/admin/');
}
if ($_GET['action'] == 'edit') {
    $userid = intval($_GET['id']);
    if (empty($userid)) {
        check::AlertExit("Submit Error!(userid empty)", 1);
    }
    $arrUserinfo = $objWebInit->getUser($userid, '*', '', false);
    //mcenter,user两张表共有信息已mcenter为准
    $strWhere = ' WHERE user_id =' . $userid;
    $field = 'user_name,password,real_name';
    $arrMcInfo = check::getAPI('mcenter', 'getUserWhere', "{$strWhere}^{$field}");
    $arrUserinfo = array_merge($arrUserinfo, $arrMcInfo);
    $arrTemp = array();
    foreach ($arrGMeta as $k => $v) {
        if ($k != 'index') {
            $arrTemp[$k] = $v['name'];
        }
    }
    //生日转换:年-月-日
    $arrBDTemp = explode('-', $arrUserinfo['birthday']);
    $arrUserinfo['year'] = $arrBDTemp[0];
    $arrUserinfo['month'] = $arrBDTemp[1];
开发者ID:TiMoChao,项目名称:xingfu,代码行数:31,代码来源:modifyinfo.php

示例5: user

<?php

/**
 * 用户登录信息文件
 *
 * @author		Arthur(ArthurXF@gmail.com)
 * @copyright	(c) 2006 by bizeway.com
 * @version		$Id$
 * @package		ArthurXF
 * @subpackage	user
 */
if (is_object($objWebInit) && !empty($_SESSION['user_id'])) {
    include_once __WEB_ROOT . "/user/class/user.class.php";
    $objuser = new user();
    $objuser->arrGPdoDB = $objWebInit->arrGPdoDB;
    $objuser->db();
    $arrUserInfo = $objuser->getUser("user_id='" . $_SESSION['user_id'] . "'");
    $arrUserInfo = array_pop($arrUserInfo);
    //全站公用block
    @(include '../_block.php');
    // 输出到模板
    $arrMOutput["smarty_assign"]['modifyTrade'] = $_SESSION['user_grade'] < ADVANCE_USER ? 0 : 1;
    $arrMOutput["smarty_assign"]['arrUserInfo'] = $arrUserInfo;
}
开发者ID:TiMoChao,项目名称:lc_ad_first,代码行数:24,代码来源:userinfo.php

示例6: get_form_html

function get_form_html($form_id, $id)
{
    ob_start();
    ?>
    <style>
        .field_name{
            width: 20%;
        }
        .field input{
            width: 100%;
            margin-left: 0px;
        }
        .field .parent{
            padding: 0px 0px;
        }
        .field select{
            width: 100%;
        }
    </style>
    <div id="head_div" style="padding: 5px 0; background-color: #ECECEC;  color: #21ACD7;
         border-radius: 5px;margin-left: auto;display: none; text-align: center; ">
    </div>
    <?php 
    $user = new user();
    $user->id = $_SESSION['user_id'];
    $user->getUser();
    $user_type = new user_type();
    $user_type->id = $user->user_type_id;
    $user_type->getUserType();
    ?>
    <div style="margin-top: 10px; background-color:transparent;padding-bottom: 30px;">
        <form action="#" method="post" class="action_form" operation="update" style="width:100%;" >
            <table style="width:100%;">
                <tr>
                    <td class="field_name">                    
                        <font>USER NAME</font>
                    </td>
                    <td class="field"> 
                        <div  class="parent">
                            <input value="<?php 
    echo $user->user_name;
    ?>
" type="text" id="user_name" disabled="disabled" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="field_name">                    
                        <font>USER TYPE</font>
                    </td>
                    <td class="field"> 
                        <div  class="parent">
                            <input value="<?php 
    echo $user_type->user_type_name;
    ?>
" type="text" id="user_type"  disabled="disabled" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="field_name"> 
                        <font>PASSWORD </font>
                    </td>
                    <td class="field"> 
                        <div class="parent">
                            <input value="" type="password" id="password_field" required autocomplete="off" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="field_name"> 
                        <font>RE-ENTER PASSWORD </font>
                    </td>
                    <td class="field"> 
                        <div class="parent">
                            <input value="" type="password" id="password_copy" required autocomplete="off" />
                        </div>
                    </td>
                </tr>
                <tr></tr>
                <tr>
                    <td></td>
                    <td>
                        <div style="padding: 0px 12px;">
                            <div style="width: 100%; margin-left: -12px; padding: 12px; 
                                 background-color: #0d92bb; border-radius: 5px; float: left;">
                                <div style="width: 50%; float: right;  ">
                                     <input style="width: 100%;" type="submit" value="UPDATE" />
                                </div>
                                <div style="width: 50%;">
                                    <input style="width: 100%;" type="reset" value="CANCEL" />
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <script type="text/javascript">
//.........这里部分代码省略.........
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:101,代码来源:39.php

示例7: sendUserDeletedArticle

 /**
  * Функция отправляет пользователю сообщение о том, что его статья удалена
  *
  * @param (array) $arrData - массив данных статьи
  *
  * @return void
  */
 public function sendUserDeletedArticle(&$arrData)
 {
     /** Получаем данные пользователя **/
     $user = new user();
     if ($uData = $user->getUser("id IN (" . secure::escQuoteData($arrData['id']) . ")")) {
         $mailer = new mailer();
         // массив для замены в шаблоне
         $mailer->setAddReplace(array('%ARTICLE_TITLE%' => $arrData['title'], '%COMMENTS%' => CONF_MAIL_FORMAT_HTML ? nl2br($arrData['comments']) : $arrData['comments']));
         // отправляем письмо администратору
         $mailer->sendEmail(CONF_MAIL_ADMIN_EMAIL, CONF_SITE_NAME, false, $uData['email'], $uData['first_name'], MAIL_MODERATE_ARTICLES_DELETED . ': ' . $arrData['title'], 'user.article.deleted.txt');
         unset($mailer);
         // уничтожаем объект
     }
     unset($user);
     // уничтожаем объект
 }
开发者ID:innova-market,项目名称:JobExpert,代码行数:23,代码来源:articles.class.php

示例8: get_form_html

function get_form_html($form_id, $date)
{
    ob_start();
    ?>
    <div id="head_div" style="padding: 5px 0; background-color: #ECECEC;  color: #21ACD7;
         border-radius: 5px;margin-left: auto; text-align: center; ">
        DAY END REPORT OF 
        <input id="date_field" value="<?php 
    if ($date == 0) {
        $date = date('d/m/Y', time());
    }
    echo $date;
    ?>
" />
    </div>
    <div id="sales_items_table" style="margin-top: 10px; background-color:transparent;padding-bottom: 30px;">
        <style>
            div#purchace_items td{
                border: 1px solid #21ACD7;
            }
            div#purchace_items tbody td{
                padding: 5px 0 5px 5px;
            }
            div#purchace_items tbody td input,div#purchace_items tbody td select{
                padding: 0;
                border: 0;
                margin: 0;
                height: 100%;
                width: 100%;
                background-color: transparent;
            }
        </style>
        <div id="purchace_items" style="width: 100%; padding: 10px 0; color: #21ACD7;"> 
            <font>SALES ITEMS</font>
            <table id="sales_items_table" style="border-collapse: collapse; width: 100%; 
                   background-color: #fff; border-radius: 10px;  color: #21ACD7;  margin-top: 5px; margin-bottom: 20px;">
                <thead style="text-align: center;">
                    <tr>
                        <td style="width: 5%;">
                            #
                        </td>
                        <td>
                            ITEM
                        </td>
                        <td style="width: 15%;">
                            COUNT
                        </td>
                        <td style="width: 15%;">
                            TOTAL
                        </td>
                    </tr>
                </thead>
                <tbody style="padding-left: 3px; text-align: center; ">
                    <?php 
    $grand_total = 0;
    $total_count = 0;
    $user = new user();
    $user->id = $_SESSION['user_id'];
    $user->getUser();
    $shop = new company();
    $shop->id = $user->company_id;
    $shop->getCompany();
    $sale_item = new sales_items();
    $date = str_replace('/', '-', $date);
    $date = date('Y-m-d', strtotime($date));
    $sales_items = $sale_item->getOneDaysSaleItems($user->company_id, $date);
    $i = 0;
    if ($sales_items == NULL || sizeof($sales_items) == 0) {
        echo '<tr><td colspan="8"> No Sales Items Found </td></tr>';
    } else {
        foreach ($sales_items as $sales_item) {
            $grand_total = $grand_total + $sales_item->total;
            $total_count = $total_count + $sales_item->quantity;
            ?>
                        <tr>
                            <td style="text-align: center;">
                                <?php 
            echo ++$i;
            ?>
                            </td>
                            <?php 
            $item = new item();
            $item->id = $sales_item->item_id;
            $item->getItem();
            ?>
                            <td style="text-align: left;">
                                <?php 
            echo $item->item_name . ' ( ' . $item->item_code . ' )';
            ?>
                            </td>
                            <td>
                                <?php 
            echo number_format($sales_item->quantity, 3, '.', '');
            ?>
                            </td>
                            
                            <td id="tax">
                                <?php 
            echo number_format($sales_item->total, 2, '.', '');
            ?>
//.........这里部分代码省略.........
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:101,代码来源:24.php

示例9: get_form_html

function get_form_html($form_id, $id)
{
    ob_start();
    ?>
    <style>
        .field_name{
            width: 20%;
        }
        .field input{
            width: 100%;
            margin-left: 0px;
        }
        .field .parent{
            padding: 0px 0px;
        }
        .field select{
            width: 100%;
        }
    </style>
    <div id="head_div" style="padding: 5px 0; background-color: #ECECEC;  color: #21ACD7;
         border-radius: 5px;margin-left: auto;display: none; text-align: center; ">
    </div>
    <?php 
    $user = new user();
    if ($id != 0) {
        $user->id = $id;
        $user->getUser();
    }
    ?>
    <div style="margin-top: 10px; background-color:transparent;padding-bottom: 30px;">
        <form action="#" method="post" class="action_form" operation="add" style="width:100%;" >
            <table style="width:100%;">
                <tr>
                    <td class="field_name">                    
                        <font>NAME</font>
                    </td>
                    <td class="field"> 
                        <div  class="parent">
                            <input value="<?php 
    echo $user->name;
    ?>
" type="text" id="name" required />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="field_name"> 
                        <font>SHOP</font>
                    </td>
                    <td class="field"> 
                        <div class="parent">
                            <select id="shop" required  <?php 
    if ($id != 0) {
        echo 'disabled = "disabled"';
    }
    ?>
 >
                                <option value=""></option>
                                <?php 
    $company = new company();
    $companies = $company->getCompanies();
    if (is_array($companies) and count($companies) != 0) {
        foreach ($companies as $company) {
            echo '<option';
            if ($user->company_id === $company->id) {
                echo ' selected ';
            }
            echo ' value="' . $company->id . '"';
            echo ' >';
            echo $company->company_name . ' - ' . $company->company_code;
            echo '</option>';
        }
    }
    //print_r($companies);
    ?>
                            </select>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="field_name"> 
                        <font>TYPE</font>
                    </td>
                    <td class="field"> 
                        <div class="parent">
                            <select id="type" required ="" <?php 
    if ($id != 0) {
        echo 'disabled = "disabled"';
    }
    ?>
 >
                                <option value=""></option>
                                <?php 
    $user_type = new user_type();
    $user_types = $user_type->getUserTypes();
    if (is_array($user_types) and count($user_types) != 0) {
        foreach ($user_types as $user_type) {
            echo '<option';
            if ($user->user_type_id === $user_type->id) {
                echo ' selected ';
//.........这里部分代码省略.........
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:101,代码来源:29.php

示例10: IN

         $strWhere = "id IN (" . secure::escQuoteData($_POST['paymentData']['user_id']) . ")";
         if ($userData = $user->getUser($strWhere)) {
             $_POST['message'] = nl2br($_POST['message']);
             $hand->deletePayment($_POST['paymentData']['id'], $userData['email'], $_POST['message']) ? messages::messageChangeSaved(MESSAGE_CHANGE_SAVED, false, CONF_ADMIN_FILE . '?m=mods&s=payments&action=payments&id=hand' . $filterString) : ($arrErrors[] = db::$message_error);
         }
     } elseif ('processing' === $_POST['action'] && !empty($_POST['paymentData']['id']) && !empty($_POST['paymentData']['user_id']) && !empty($_POST['message'])) {
         $user = new user();
         $strWhere = "id IN (" . secure::escQuoteData($_POST['paymentData']['user_id']) . ")";
         if ($userData = $user->getUser($strWhere)) {
             $_POST['message'] = nl2br($_POST['message']);
             $hand->processingPayment($_POST['paymentData']['id'], $userData['email'], $_POST['message'], $_POST['arrFiles']) ? messages::messageChangeSaved(MESSAGE_CHANGE_SAVED, false, CONF_ADMIN_FILE . '?m=mods&s=payments&action=payments&id=hand' . $filterString) : ($arrErrors[] = db::$message_error);
         }
     } elseif ('close' === $_POST['action'] && !empty($_POST['paymentData']['id']) && !empty($_POST['paymentData']['user_id']) && !empty($_POST['message']) && !empty($_POST['paymentData']['action'])) {
         $user = new user();
         $strWhere = "id IN (" . secure::escQuoteData($_POST['paymentData']['user_id']) . ")";
         if ($userData = $user->getUser($strWhere)) {
             // Собираем массив всех необходимых данных
             $_POST['message'] = nl2br($_POST['message']);
             $hand->closePayment($_POST['paymentData'], $userData['email'], $_POST['message']) ? messages::messageChangeSaved(MESSAGE_CHANGE_SAVED, false, CONF_ADMIN_FILE . '?m=mods&s=payments&action=payments&id=hand' . $filterString) : ($arrErrors[] = db::$message_error);
         }
     }
 }
 $arrOrderBy = array('datetime' => 'DESC');
 $strWhere = "token IN ('active', 'processing')" . $strWhereOrderId;
 if ($arrHandPayments = $hand->getRecords($strWhere, $arrOrderBy, false, false)) {
     foreach ($arrHandPayments as $key => $value) {
         $arrHandPayments[$key]['description'] = $payments->generatePaymentDescription($value['action']);
     }
 }
 $smarty->assignByRef('arrHandPayments', $arrHandPayments);
 $smarty->assign('paymentsTemplate', SD_ROOT_DIR . 'core/mods/payments/hand/templates/adm.hand.payments.tpl');
开发者ID:innova-market,项目名称:JobExpert,代码行数:31,代码来源:admin.php

示例11: array

        $_SESSION['payment'] = array('service' => 'register_' . strtolower($_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type']), 'id' => $_SESSION['sd_user']['data']['id'], 'user_type' => $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type']);
        // очищаем куки и сессию пользователя
        $user->clearUserSessionAndCookie();
        messages::messageChangeSaved(MESSAGE_REGISTER_SUCCESS_DO_PAYMENT, MESSAGE_REGISTER_SUCCESS_DO_PAYMENT_TEXT, chpu::createChpuUrl(CONF_SCRIPT_URL . 'index.php?ut=' . $user_type . '&do=payments'), 10000);
    } else {
        $smarty->assignByRef('user_email', $_SESSION['sd_user']['data']['email']);
        $smarty->assign('user_type', $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type']);
        // передаем в Smarty права пользователя
        $smarty->assign('codex', $_SESSION['sd_' . DB_PREFIX . 'codex']);
        // значения, возвращаемые в форму
    }
} else {
    // если пользователь не вошел, проверяем его Кукисы и очищаем их, либо делаем автоматический вход
    if (!isset($_SESSION['sd_user']) && isset($_COOKIE['remid']) && $_COOKIE['remid'] && isset($_COOKIE['remh']) && $_COOKIE['remh']) {
        // проверяем, есть ли в кукисах наши параметры
        $arrData = $user->getUser("id IN (" . secure::escQuoteData((int) $_COOKIE['remid']) . ")");
        // если пользователь с таким id найден, сверяем хеш
        if (!empty($arrData)) {
            // выполняем вход
            if ($_COOKIE['remh'] === $user->cookieUserHash($arrData)) {
                $user->authorizeUser($arrData['email'], $arrData['password'], false, true);
                die('<script type="text/javascript">window.location="' . chpu::createChpuUrl(CONF_SCRIPT_URL . 'index.php?ut=' . $_SESSION['sd_user'][DB_PREFIX . 'conf']['user_type']) . '";</script>');
            } else {
                cookies::deleteAccessCookie();
            }
        } else {
            cookies::deleteAccessCookie();
        }
    } else {
        cookies::deleteAccessCookie();
    }
开发者ID:innova-market,项目名称:JobExpert,代码行数:31,代码来源:index.php

示例12: get_form_html

function get_form_html($form_id, $id, $page, $limit, $adjacents)
{
    ob_start();
    $purchace_obj = new purchaces();
    $user = new user();
    $user->id = $_SESSION['user_id'];
    $user->getUser();
    $count = $purchace_obj->getPurchacesCount($user->company_id);
    if ($page == 1) {
        $start = 0;
        $head_message = "LAST {$limit} PURCHACES";
    } else {
        $start = ($page - 1) * $limit;
        $head_message = "PURCHACE {$start} TO " . ($start + $limit);
    }
    ?>
    <div id="head_div" style="padding: 10px 0; background-color: #ECECEC;  color: #21ACD7;
         border-radius: 5px;margin-left: auto; text-align: center;overflow-x: auto; ">
         <?php 
    echo $head_message;
    ?>
    </div>
    <div style="margin-top: 10px; background-color:transparent;padding-bottom: 30px;">
        <style>
            div#purchace_items td, div#purchace_items th{
                border: 1px solid #21ACD7;
            }
            div#purchace_items tbody td{
                padding: 5px 0 5px 5px;
            }
            div#purchace_items tbody td input,div#purchace_items tbody td select{
                padding: 0;
                border: 0;
                margin: 0;
                height: 100%;
                width: 100%;
                background-color: transparent;
            }
        </style>
        <input type="text" id="search" placeholder="Enter Search Key here..." style="width: 100%; margin-left: 0px;" onkeyup="search()" />
        <style>
            img#search{
                position: relative;
                height: 20px;
                width: 20px;
                float: right;
                top: -29px;
                right: 10px;
            }
        </style>
        <img id="search" src="../ui/images/search.png" onclick="search()" />
        
        <div style="padding: 10px 0; background-color: transparent; 
             border-radius: 5px;margin-left: auto; text-align: center;overflow-x: auto; ">
             <?php 
    echo pagination($limit, $adjacents, $count, $page);
    ?>
        </div>
        
        <div id="purchace_items" style="width: 100%; padding: 10px 0; color: #21ACD7;">           
            <table id="items_table" style="border-collapse: collapse; width: 100%; 
                   background-color: #fff; border-radius: 10px;  color: #21ACD7;">
                <thead style="text-align: center;">
                    <tr>
                        <th>
                            #
                        </th>
                        <th>
                            ID
                        </th>
                        <th>
                            BILL NO.
                        </th>
                        <th>
                            DATE
                        </th>
                        <th style="">
                            PURCHACED FROM
                        </th>
                        <th style="">
                            PURCHACED BY
                        </th>
                        <th>
                            AMOUNT
                        </th>
                        <th style="">
                            STOCKED
                        </th>
                        <th style="">

                        </th>
                    </tr>
                </thead>
                <tbody style="padding-left: 3px; text-align: center; ">
                    <?php 
    $purchaces = $purchace_obj->getPurchacesDESC($user->company_id, $start, $limit);
    $i = $start;
    if ($purchaces == NULL || sizeof($purchaces) == 0) {
        echo '<tr><td colspan="8"> No Purchace Found </td></tr>';
    } else {
//.........这里部分代码省略.........
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:101,代码来源:19.php

示例13: moderateSendMail

 /**
  * private функция рассылки почтовых сообщений при модерации новости
  *
  * @param (string) $action - действие, которое было выполнено с новостью
  * @param (array) $arrData - должен содержать id пользователя и title новости
  * @param (string or false) $comments - комментарий к модерируемой новости
  * @param (string or false) $date - дата, когда новость будет автоматически удалена. По умолчанию false
  *
  * @return void
  */
 private function moderateSendMail($action, $arrData, $comments, $date = false)
 {
     // проверяем, есть ли данные по новости
     if (!$arrData['id_user'] || !$arrData['title']) {
         return false;
     }
     $user = new user();
     // получаем емайл пользователя
     if (!($arrUser = $user->getUser("id IN (" . secure::escQuoteData($arrData['id_user']) . ")"))) {
         return false;
     }
     // проверяем действие, выполненное над новостью
     switch ($action) {
         case 'show':
             $status = MAIL_MODERATE_NEWS_ACTIVATED;
             break;
         case 'correction':
             $status = MAIL_MODERATE_NEWS_CORRECTION;
             break;
         case 'del':
             $status = MAIL_MODERATE_NEWS_DELETED;
             break;
     }
     $mailer = new mailer();
     // массив для замены в шаблоне
     $mailer->setAddReplace(array('%TITLE%' => $arrData['title'], '%STATUS%' => $status, '%COMMENTS%' => $comments ? $comments : MAIL_MODERATE_NEWS_COMMENTS, '%DELDATE%' => $date ? MAIL_MODERATE_NEWS_DELETE_DATE . date(terms::dateFormatFromSmarty(CONF_DATE_FORMAT, CONF_TIME_FORMAT), strtotime($date)) : ''));
     $mailer->sendEmail(CONF_MAIL_ADMIN_EMAIL, false, false, $arrUser['email'], $arrUser['email'], MAIL_SUBJ_MODERATE_NEWS . ': ' . $arrData['title'], 'moderate.news.txt');
 }
开发者ID:innova-market,项目名称:JobExpert,代码行数:38,代码来源:bnews.class.php

示例14: get_form_html

function get_form_html($form_id, $id, $page, $limit, $adjacents)
{
    ob_start();
    $sale_obj = new sales();
    $user = new user();
    $user->id = $_SESSION['user_id'];
    $user->getUser();
    $count = $sale_obj->getLastThreeDaysSalesCount($user->company_id);
    if ($page == 1) {
        $start = 0;
        $head_message = "LAST {$limit} SALES OF LAST 3 DAYS";
    } else {
        $start = ($page - 1) * $limit;
        $head_message = "SALES {$start} TO " . ($start + $limit) . " SALES OF LAST 3 DAYS";
    }
    ?>
    <div id="head_div" style="padding: 5px 0; background-color: #ECECEC;  color: #21ACD7;
         border-radius: 5px;margin-left: auto; text-align: center; ">
        <?php 
    echo $head_message;
    ?>
    </div>
    <div style="margin-top: 10px; background-color:transparent;padding-bottom: 30px;">
        <style>
            div#purchace_items td,div#purchace_items th{
                border: 1px solid #21ACD7;
            }
            div#purchace_items tbody td{
                padding: 5px 0 5px 5px;
            }
            div#purchace_items tbody td input,div#purchace_items tbody td select{
                padding: 0;
                border: 0;
                margin: 0;
                height: 100%;
                width: 100%;
                background-color: transparent;
            }
        </style>
        <input type="text" id="search" placeholder="Enter Search Key here..." style="width: 100%; margin-left: 0px;" onkeyup="search()" />
        <style>
            img#search{
                position: relative;
                height: 20px;
                width: 20px;
                float: right;
                top: -29px;
                right: 10px;
            }
        </style>
        <img id="search" src="../ui/images/search.png" onclick="search()" />
        
        <div style="padding: 10px 0; background-color: transparent; 
             border-radius: 5px;margin-left: auto; text-align: center;overflow-x: auto; ">
             <?php 
    echo pagination($limit, $adjacents, $count, $page);
    ?>
        </div>
        
        <div id="purchace_items" style="width: 100%; padding: 10px 0; color: #21ACD7;">           
            <table id="items_table" style="border-collapse: collapse; width: 100%; 
                   background-color: #fff; border-radius: 10px;  color: #21ACD7;">
                <thead style="text-align: center;">
                    <tr  status="not_selected" >
                        <th>
                            #
                        </th>
                        <th>
                            ID
                        </th>
                        <th>
                            DATE &amp; TIME
                        </th>
                        <th>
                            CUSTOMER
                        </th>
                        <th style="">
                            DISCOUNT
                        </th>
                        <th style="">
                            TAX
                        </th>
                        <th style="">
                            NET. AMOUNT
                        </th>
                        <th style="">
                            TOTAL
                        </th>
                        <th style="">

                        </th>
                    </tr>
                </thead>
                <tbody style="padding-left: 3px; text-align: center; ">
                    <?php 
    $sales = $sale_obj->getLastThreeDaysSales($user->company_id, $start, $limit);
    $i = $start;
    if ($sales == NULL || sizeof($sales) == 0) {
        echo '<tr><td colspan="8"> No Sales Found </td></tr>';
    } else {
//.........这里部分代码省略.........
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:101,代码来源:3.php

示例15: get_form_html


//.........这里部分代码省略.........
                width: 100%;
                background-color: transparent;
            }
        </style>
        <div id="purchace_items" style="width: 100%; padding: 10px 0; color: #21ACD7;">           
            <table id="table" style="border-collapse: collapse; width: 100%; 
                   background-color: #fff; border-radius: 10px;  color: #21ACD7;">
                <thead style="text-align: center;">
                    <tr>
                        <td style="width: 5%;">
                            #
                        </td>
                        <td>
                            DESCRIPTION
                        </td>
                        <td style="width: 15%;">
                            INCOME
                        </td>
                        <td style="width: 15%;">
                            EXPENCE
                        </td>
                        <td style="width: 15%;">
                            BALANCE
                        </td>
                    </tr>
                </thead>
                <tbody style="padding-left: 3px; text-align: center; ">
                    <?php 
    $balance = 0;
    $income_total = 0;
    $expence_total = 0;
    $user = new user();
    $user->id = $_SESSION['user_id'];
    $user->getUser();
    $i = 0;
    if ($year < 2015 || $year > 2065 || $month < 1 || $month > 12) {
        echo '<tr><td colspan="8"> In Valid Month Found </td></tr>';
    } else {
        //$grand_total = $grand_total + $sales_item->total;
        ?>
                        <tr>
                            <td style="text-align: center;">
                                <?php 
        echo ++$i;
        ?>
                            </td>
                            <?php 
        $sale = new sales();
        $vals = $sale->getOneMonthsSaleSummary($user->company_id, $month, $year);
        ?>
                            <td style="text-align: left;">
                                Sales
                            </td>
                            <td>
                                <?php 
        echo number_format($vals['amount'], 2, '.', '');
        $income_total = $income_total + $vals['amount'];
        ?>
                            </td>
                            <td>
                            </td>                            
                            <td id="tax">
                                <?php 
        $balance = $income_total - $expence_total;
        echo number_format($balance, 2, '.', '');
        ?>
开发者ID:sakkeerhussain,项目名称:online_ims,代码行数:67,代码来源:33.php


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