• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP getUserNameById函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getUserNameById函数的典型用法代码示例。如果您正苦于以下问题:PHP getUserNameById函数的具体用法?PHP getUserNameById怎么用?PHP getUserNameById使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->smarty->template_dir = WEB_PATH . 'pda/html/';
     $this->smarty->assign('curusername', $_SESSION['userId'] ? getUserNameById($_SESSION['userId']) : '');
     //设置当前用户名
 }
开发者ID:ohjack,项目名称:newErp,代码行数:7,代码来源:pda_common.view.php


示例2: makeOrder

 /**
  * 提交信息生成订单
  * @param string type 来源 package ,cart 。普通
  * @param int cart_ids 购物车id
  */
 public function makeOrder()
 {
     $work_id = I('get.workid');
     if (!is_numeric($work_id)) {
         $this->assign('message', '作品信息');
         $this->display('Public/error');
         exit;
     }
     $data['work_id'] = $work_id;
     $data['order_category'] = 2;
     $session = session('user');
     $user_id = 2;
     // $session['user_id'];
     $data['user_id'] = $user_id;
     if (empty($user_id)) {
         $this->assign('message', '请登录后再操作');
         $this->display('Public/error');
         exit;
     }
     $data['order_number'] = '2cyj' . makeOrderCardId();
     $worksModel = D('Works');
     $work = $worksModel->getOrderWorkByid($work_id);
     if (!$work) {
         $this->assign('message', '生成订单异常,请重新操作');
         $this->display('Public/error');
         exit;
     }
     $data['author_id'] = $work['user_id'];
     $data['auther'] = getUserNameById($work['user_id']);
     $data['work_title'] = $work['title'];
     $data['create_date'] = date('Y-m-d H:i:s', time());
     $data['update_date'] = $data['create_date'];
     $data['money'] = $work['money'];
     $data['order_type'] = 0;
     $data['handle'] = 1;
     $data['ajax_type'] = 0;
     $OrderModel = D('Order');
     $id = $OrderModel->add($data);
     if ($id) {
         redirect('/Order/pay/orderid/' . $id);
     } else {
         $this->assign('message', '订单生成异常');
         $this->display('Public/error');
         exit;
     }
 }
开发者ID:bohemai,项目名称:rcyj,代码行数:51,代码来源:OrderController.class.php


示例3: act_selectsku

 public function act_selectsku()
 {
     $sku = isset($_POST['sku']) ? trim($_POST['sku']) : "";
     $sku = get_goodsSn($sku);
     $goodsinfo = wrapperSkuOutModel::skuinfo($sku);
     $res = array();
     if (empty($goodsinfo)) {
         self::$errCode = 3;
         self::$errMsg = "<font color='red'>系统没有相应包装材料,请核对!</font>" . $sku;
         return $sku;
     } else {
         self::$errCode = 2;
         self::$errMsg = "包装材料正确,请扫描仓位!";
         $cguser = getUserNameById($goodsinfo['purchaseId']);
         $res['res_info'] = $goodsinfo['goodsName'] . "<br>采购:" . $cguser;
         $res['sku'] = $sku;
         return $res;
     }
 }
开发者ID:ohjack,项目名称:newErp,代码行数:19,代码来源:wrapperSkuOut.action.php


示例4: act_export

 public function act_export()
 {
     $checkUser = $_GET['checkUser'];
     $sku = $_GET['sku'];
     $startdate = $_GET['startdate'];
     $enddate = $_GET['enddate'];
     if (empty($checkUser) && empty($sku) && empty($startdate) && empty($enddate)) {
         echo "请选择导出条件";
         exit;
     }
     if (!empty($checkUser)) {
         $where[] = "tallyUserId='{$checkUser}'";
     }
     if (!empty($sku)) {
         $where[] = "sku = '{$sku}'";
     }
     if (!empty($startdate)) {
         $start = strtotime($startdate);
         $where[] = "entryTime >{$start}";
     }
     if (!empty($enddate)) {
         $end = strtotime($enddate);
         $where[] = "entryTime <{$end}";
     }
     $where = implode(" AND ", $where);
     $where = " where is_delete=0 and entryStatus=0 and " . $where;
     $lists = packageCheckModel::selectList($where);
     $excel = new ExportDataExcel('browser', "pointKpiExport" . date('Y-m-d') . ".xls");
     $excel->initialize();
     /** edit by Gary**/
     $tharr = array("点货人", "点货时间", "SKU", "数量", "良品数", "上架数", "批次号", '打标时间', '贴标时间', '检测时间', '上架时间', '备注');
     $excel->addRow($tharr);
     foreach ($lists as $list) {
         $user = getUserNameById($list['tallyUserId']);
         $time = date('Y-m-d H:i:s', $list['entryTime']);
         $sku = $list['sku'];
         $num = $list['num'];
         $ichibanNums = $list['ichibanNums'];
         $shelvesNums = $list['shelvesNums'];
         $batchNum = $list['batchNum'];
         //新增打标、贴标、检测、上架时间
         $printTime = $list['printTime'] ? date('Y-m-d H:i:s', $list['printTime']) : '无';
         $pasteTime = getSkuTime(array('type' => 'paste', 'tallyList' => $list['id']));
         $checkTime = $list['ichibanTime'] ? date('Y-m-d H:i:s', $list['ichibanTime']) : '无';
         $inputArray = array('type' => 'input', 'sku' => $list['sku'], 'finishTime' => $list['finishTime'], 'shelvesNums' => $list['shelvesNums']);
         $inputTime = getSkuTime($inputArray);
         $tdarr = array($user, $time, $sku, $num, $ichibanNums, $shelvesNums, $batchNum, $printTime, $pasteTime, $checkTime, $inputTime, $list['note']);
         /** end**/
         $excel->addRow($tdarr);
     }
     $excel->finalize();
     exit;
 }
开发者ID:ohjack,项目名称:newErp,代码行数:53,代码来源:packageCheck.action.php


示例5: redirect

include_once 'app/users.php';
//include_once('../user.php');
if (empty($_SESSION['logged_in'])) {
    redirect('index.php');
}
if (isset($_GET['uid'])) {
    $user = $_GET['uid'];
} else {
    $user = $_SESSION['uid'];
}
$interactions = getInteractions($user);
if ($interactions) {
    foreach ($interactions as $i) {
        $timestamp = $i['created_on'];
        $user = getUserNameById($i['created_by']);
        $author = getUserNameById($i['author']);
        if ($i['type'] == 'ideathread') {
            $title = getIdeaTitle($i['id']);
            $url = SITE_URL . '/home.php?iid=' . $i['id'];
        }
        if ($i['type'] == 'project') {
            $title = getProjectTitle($i['id']);
            $url = SITE_URL . '/home.php?pid=' . $i['id'];
        }
        if ($i['action'] == 'like') {
            $action = 'liked';
            $icon_image = SITE_URL . '/images/icons/like.png';
        }
        if ($i['action'] == 'comment') {
            $action = 'commented on';
            $icon_image = SITE_URL . '/images/icons/comment.jpg';
开发者ID:aryalprakash,项目名称:rroute,代码行数:31,代码来源:home-tab-activity.php


示例6: content_52b9238817e343_27919694


//.........这里部分代码省略.........
</td>
				<td><?php 
            echo $_smarty_tpl->tpl_vars['list']->value['purchasedays'];
            ?>
</td>
				<td><?php 
            echo checkSkuOnWayNum($_smarty_tpl->tpl_vars['list']->value['sku']);
            ?>
</td>
				<td></td>
				<td></td>
				<td></td>
				<td><?php 
            echo $_smarty_tpl->tpl_vars['list']->value['goodsWeight'];
            ?>
</td>
				<td><?php 
            if ($_smarty_tpl->tpl_vars['list']->value['status'] == 1) {
                ?>
在线<?php 
            } elseif ($_smarty_tpl->tpl_vars['list']->value['status'] == 2) {
                ?>
暂时停售<?php 
            } elseif ($_smarty_tpl->tpl_vars['list']->value['status'] == 3) {
                ?>
永久性停售<?php 
            } else {
                ?>
在线<?php 
            }
            ?>
</td>
				<td><?php 
            echo getUserNameById($_smarty_tpl->tpl_vars['list']->value['purchaseId']);
            ?>
</td>
			</tr>
			<tr <?php 
            if ($_smarty_tpl->getVariable('smarty')->value['foreach']['foo']['iteration'] % 2 == 0) {
                ?>
style="background-color:#f2f2f2;"<?php 
            }
            ?>
>
				<td  colspan="7" style="border-bottom:1px solid #ccc;">
					<?php 
            echo $_smarty_tpl->tpl_vars['list']->value['goodsName'];
            ?>

				</td>
				<td colspan="2"  style="border-bottom:1px solid #ccc;">

				</td>
				<?php 
            $_smarty_tpl->tpl_vars['ptlist'] = new Smarty_variable(CommonModel::getSkuPartner($_smarty_tpl->tpl_vars['list']->value['sku']), null, 0);
            ?>
				<td  colspan="7" style="border-bottom:1px solid #ccc;">
					
				</td>
				<td  style="border-bottom:1px solid #ccc;">
				</td>
				<td colspan="7" style="border-bottom:1px solid #ccc;">
					<?php 
            $_smarty_tpl->tpl_vars['pt'] = new Smarty_Variable();
            $_smarty_tpl->tpl_vars['pt']->_loop = false;
            $_from = $_smarty_tpl->tpl_vars['ptlist']->value;
开发者ID:ohjack,项目名称:newErp,代码行数:67,代码来源:a882131f76194736410bca4e5b8a10e7d8ff302c.file.analyze.htm.php


示例7: getMessageDetails

    if ($participants['sender'] == $_SESSION['uid']) {
        $conv_partner = $participants['recipient'];
    } else {
        $conv_partner = $participants['sender'];
    }
    $messages = getMessageDetails($_GET['conv']);
    ?>
<div class="user-name-tops">
  <a href ="<?php 
    echo SITE_URL;
    ?>
/user.php?uid=<?php 
    echo $conv_partner;
    ?>
">  <?php 
    echo ucwords(getUserNameById($conv_partner));
    ?>
</a>
</div>
<div class="inboxs-messages">

    <?php 
    foreach ($messages as $message) {
        $user = getUserData($message['sender']);
        $recipent = $message['recipient'];
        if ($user['user_id'] == $_SESSION['uid']) {
            $classval = 'router-user-photo';
            $alignmessage = 'message-right';
            $alignphoto = 'photo-right';
        } else {
            $classval = 'router-user-photo';
开发者ID:aryalprakash,项目名称:rroute,代码行数:31,代码来源:message-details.php


示例8: getUserNameById

						</div>

					</div>
				</div>
			</div>
			
			<div class="col-md-6 col-xs-12">
				<div class="panel panel-default">
					<div class="panel-heading"><strong class="panel-title">Товар</strong></div>
					<div class="panel-body">
						
						<div class="container-fluid">
							<div class="row" style="margin-bottom: 1em;">
								<div class="col-xs-4">Отправитель:</div>
								<div class="col-xs-8"><?php 
        echo getUserNameById($v->shipper_id);
        ?>
 &nbsp;&nbsp;<a href="<?php 
        echo $cfg['options']['siteurl'];
        ?>
/newchat/<?php 
        echo $v->shipper_id;
        ?>
/new"><i class="fa fa-envelope"></i></a></div>
							</div>
							<div class="row" style="margin-bottom: 1em;">
								<div class="col-xs-4">Товар:</div>
								<div class="col-xs-8"><?php 
        echo $v->item;
        ?>
</div>
开发者ID:g20000,项目名称:mailslight,代码行数:31,代码来源:dropPkgInfo.php


示例9: view_exportBoxInfo

 /**
  * 导出料号与箱号关联报表
  */
 public function view_exportBoxInfo()
 {
     require_once WEB_PATH . 'lib/PHPExcel.php';
     $objPHPExcel = new PHPExcel();
     $objPHPExcel->getProperties()->setCreator("Maarten Balliauw")->setLastModifiedBy("Maarten Balliauw")->setTitle("Office 2007 XLSX Test Document")->setSubject("Office 2007 XLSX Test Document")->setDescription("Test document for Office 2007 XLSX, generated using PHP classes.")->setKeywords("office 2007 openxml php")->setCategory("Test result file");
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('A1', '备货单号Shipment ID');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('B1', '箱号CTN NO.');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('C1', '料号SKU');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('D1', '每箱个数');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('E1', '优先上架Priority for Putaway');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('F1', '纸箱长度L(cm)');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('G1', '纸箱宽度W(cm)');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('H1', '纸箱高度H(cm)');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('I1', '体积CBM');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('J1', '每箱净重N.W(kg)');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('K1', '每箱毛重G.W(kg)');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('L1', '中文描述Goods Desc(CN)');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('M1', '英文描述 Goods Desc');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('N1', '材质Material');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('O1', '单价U/P(RMB)');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('P1', '总价TTL(RMB)');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('Q1', '单价U/P(USD)');
     $objPHPExcel->setActiveSheetIndex(0)->setCellValue('R1', '总价TTL(USD)');
     $serOrderSn = isset($_GET['orderSn']) ? $_GET['orderSn'] : '';
     $serStatus = isset($_GET['status']) ? $_GET['status'] : '';
     $serSku = isset($_GET['sku']) ? $_GET['sku'] : '';
     $serStartTime = isset($_GET['startTime']) ? $_GET['startTime'] : '';
     $serEndTime = isset($_GET['endTime']) ? $_GET['endTime'] : '';
     $condition = '';
     if (!empty($serOrderSn)) {
         $condition .= " AND a.replenshId = '{$serOrderSn}'";
     }
     if (!empty($serSku)) {
         $condition .= " AND b.sku = '{$serSku}'";
     }
     if (!empty($serStatus)) {
         $condition .= " AND a.status = '{$serStatus}'";
     }
     if (!empty($serStartTime) && $serEndTime >= $serStartTime) {
         $serstart = strpos($serStartTime, ':') !== false ? strtotime($serStartTime) : strtotime($serStartTime . " 00:00:00");
         $serend = strpos($serEndTime, ':') !== false ? strtotime($serEndTime) : strtotime($serEndTime . " 23:59:59");
         $condition .= " AND a.addtime BETWEEN '{$serstart}' AND '{$serend}'";
     }
     $boxModel = new BoxManageModel();
     $rtnData = $boxModel->getListBoxInfo($condition);
     if (!empty($rtnData)) {
         $row = 2;
         foreach ($rtnData as $k => $v) {
             $orderSn = $v['replenshId'];
             $boxId = $v['boxid'];
             $length = $v['length'];
             $width = $v['width'];
             $high = $v['high'];
             $volume = round($v['volume'] / 1000000, 3);
             $grossWeight = $v['grossWeight'];
             $netWeight = $v['netWeight'];
             $addtime = date('Y-m-d', $v['addtime']);
             $status = $v['status'];
             $userName = getUserNameById($v['adduser']);
             $sku = $v['sku'];
             $num = $v['num'];
             $skuBase = $boxModel->getSkuBaseInfo($sku);
             $skuName = $skuBase['goodsName'];
             $skuPrice = $skuBase['goodsCost'];
             $totalRmb = $skuPrice * $num;
             switch ($status) {
                 case '1':
                     $stu = '已配货';
                     break;
                 case '2':
                     $stu = '已复核';
                     break;
                 case '3':
                     $stu = '已装柜';
                     break;
                 case '4':
                     $stu = '海外已收货';
                     break;
                 default:
                     $stu = '';
                     break;
             }
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('A' . $row, $orderSn);
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('B' . $row, $boxId);
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('C' . $row, $sku);
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('D' . $row, $num);
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('E' . $row, '');
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('F' . $row, $length);
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('G' . $row, $width);
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('H' . $row, $high);
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('I' . $row, $volume);
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('J' . $row, $netWeight);
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('K' . $row, $grossWeight);
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('L' . $row, $skuName);
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('M' . $row, '');
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('O' . $row, $skuPrice);
             $objPHPExcel->setActiveSheetIndex(0)->setCellValue('P' . $row, $totalRmb);
//.........这里部分代码省略.........
开发者ID:ohjack,项目名称:newErp,代码行数:101,代码来源:owBoxManage.view.php


示例10: getUserIconById

				</div>
			<?php 
        }
        ?>
			<div class="col-md-2 col-xs-12">
				Чат с <?php 
        if ($v[0]->from_id == $user['id']) {
            $chatwith = $v[0]->to_id;
        } else {
            $chatwith = $v[0]->from_id;
        }
        ?>
				<?php 
        echo getUserIconById($chatwith);
        echo " ";
        echo getUserNameById($chatwith);
        ?>
			</div>
			<div class="col-md-7 col-xs-12"><?php 
        echo preg_replace("/[\n|\r|\r\n|\n\r]+/", "<br><br>", $v[0]->text);
        ?>
</div>
			<div class="col-md-2 col-xs-12 text-right"><small class="text-muted"><?php 
        echo $v[0]->time;
        ?>
</small></div>

		</div>
	</a>
	<hr style="margin: 0;">
	<?php 
开发者ID:g20000,项目名称:mailslight,代码行数:31,代码来源:chat.php


示例11: export_data

 /**
  * WhGoodsAssignAct::export_data()
  * 导出调拨数据 
  * @return void
  */
 public function export_data()
 {
     $ids = trim($_GET['ids']);
     if ($ids) {
         $assignList = WhGoodsAssignModel::getAssignList(" and a.id in ({$ids})", '', '', 'a.id');
         $assign_status = C('assign_status');
         //print_r($assign_status);exit;
         $name = 'assignList' . date('Y-m-d') . ".xls";
         //$name   =   iconv('UTF-8', 'gb2312//ignore', $name);
         $excel = new ExportDataExcel('browser', $name);
         $excel->initialize();
         $tharr = array("调拨单号", "SKU", "产品名称", "转出仓库", "转入仓库", "需求数量", "配货数量", '出库复核数量', '接收数量', '生成人员', '生成时间', '调拨单状态', '状态变更时间');
         $excel->addRow($tharr);
         if (!empty($assignList)) {
             foreach ($assignList as $assign) {
                 $outStore = WarehouseManagementModel::warehouseManagementModelList(" where id = {$assign['outStoreId']}");
                 $outStore = $outStore[0]['whName'];
                 $inStore = WarehouseManagementModel::warehouseManagementModelList(" where id = {$assign['inStoreId']}");
                 $inStore = $inStore[0]['whName'];
                 $maker = getUserNameById($assign['createUid']);
                 $make_date = date('Y-m-d H:i:s', $assign['createTime']);
                 $state_date = date('Y-m-d H:i:s', $assign['statusTime']);
                 $status = $assign_status[$assign['status']];
                 $details = WhGoodsAssignModel::getsAssignListDetail($assign['id']);
                 foreach ($details as $k => $val) {
                     $tdarr = array($k == 0 ? $assign['assignNumber'] : '', $val['sku'], $val['goodsName'], $outStore, $inStore, $val['num'], $val['assignNum'], $val['outCheckNum'], $val['inCheckNum'], $k == 0 ? $maker : '', $k == 0 ? $make_date : '', $k == 0 ? $status : '', $k == 0 ? $state_date : '');
                     //print_r($tdarr);exit;
                     $excel->addRow($tdarr);
                 }
             }
         }
         $excel->finalize();
         exit;
     }
 }
开发者ID:ohjack,项目名称:newErp,代码行数:40,代码来源:whGoodsAssign.action.php


示例12: getEmpathizerUserNameByDbToken

function getEmpathizerUserNameByDbToken($iDbTokenSg)
{
    global $wpdb;
    $tTableNameSg = getCallRecordTableName();
    $tDbTokenColNameSg = DatabaseAttributes::database_token;
    $tEmpathizerColumnSg = DatabaseAttributes::empathizer_id;
    $tQuerySg = "SELECT {$tEmpathizerColumnSg} FROM {$tTableNameSg} WHERE {$tDbTokenColNameSg}='{$iDbTokenSg}'";
    $tCallRecordsItemsMix = $wpdb->get_results($tQuerySg, ARRAY_N);
    $userId = $tCallRecordsItemsMix[0][0];
    $rEmailSg = getUserNameById($userId);
    return $rEmailSg;
}
开发者ID:Wizek,项目名称:EmpathyApp,代码行数:12,代码来源:database_functions.php


示例13: foreach

	
	<?php 
foreach ($chat as $v) {
    ?>
		<div class="row <?php 
    if ($v->is_read == 0) {
        echo 'bg-unread';
    }
    ?>
" style="padding:1em;">

			<div class="col-md-2 col-xs-12">
				<?php 
    echo getUserIconById($v->from_id);
    echo " ";
    echo getUserNameById($v->from_id);
    ?>
			</div>
			<div class="col-md-7 col-xs-12"><?php 
    echo preg_replace("/[\n|\r|\r\n|\n\r]+/", "<br><Br>", $v->text);
    ?>
</div>
			<div class="col-md-2 col-xs-12 text-right"><small class="text-muted"><?php 
    echo $v->time;
    ?>
</small></div>
			
		</div>
	<hr style="margin:0;">
	<?php 
}
开发者ID:g20000,项目名称:mailslight,代码行数:30,代码来源:chatroom.php


示例14: foreach

"></ul>
                        </div>

                        <div style="width:296px;float:right;margin-left:-5px;">
                            <ul class="rater-users raterusers-<?php 
        echo $project['project_id'];
        ?>
" data-id="<?php 
        echo $project['project_id'];
        ?>
">
                                <!--                --><?php 
        //$raters = getRatersForProject($project_id);
        if ($raters) {
            foreach ($raters as $rater) {
                echo '<div class="rater-users-list" data-id="' . $rater['rater_id'] . '" user-id="' . $rater['user_id'] . '"><span class="remove-rater" data-id="' . $rater['rater_id'] . '" user-id="' . $rater['user_id'] . '">X</span><a href="' . SITE_URL . '/user.php?uid=' . $rater['user_id'] . '"><li class="rater-name">' . getUserNameById($rater['user_id']) . '</li></a></div>';
            }
        }
        ?>
                            </ul>
                            <div class="success-message"></div>
                        </div>

                    </div> <!-- project-rater-area -->
                </td>
                <td>
                    <?php 
        // $rate = getAdminRatedStatus($project['project_id'], $_SESSION['uid']);
        $value = getAdminRateForProject($project['project_id'], $_SESSION['uid']);
        if ($project['seed_rating'] == 0) {
            $seed = 'N/A';
开发者ID:aryalprakash,项目名称:rroute,代码行数:31,代码来源:projectlists.php


示例15: getRoutersForProject

                            <input type="text" id="route-search" placeholder="Type Your Router Name"
                                   data-id="<?php 
        echo $_SESSION['uid'];
        ?>
"/>
                            <input type="hidden" id="route-button" value="Search"/>
                            <ul id="route-result"></ul>
                        </div>

                        <div style="width:296px;float:right;margin-left:-20px;cursor: pointer;">
                            <ul class="routed-users">
                                <?php 
        $routers = getRoutersForProject($project['project_id'], $_SESSION['uid']);
        if ($routers) {
            foreach ($routers as $router) {
                echo '<div class="routed-users-list" data-id="' . $router['router_id'] . '" user-id="' . $router['routed_to'] . '"><span class="unroute" data-id="' . $router['router_id'] . '" user-id="' . $router['routed_to'] . '">X</span><a href="' . SITE_URL . '/user.php?uid=' . $router['routed_to'] . '"><li class="routed-name">' . getUserNameById($router['routed_to']) . '</li></a></div>';
            }
        }
        //
        ?>
                            </ul>
                            <div class="success-message"></div>
                        </div>
                        <!--                        <div class="routers-set">-->

                        <!--                        </div> <!-- routers-set -->
                    </div> <!-- route-area -->


                           <!-- report area -->
                    <div class="report-area">
开发者ID:aryalprakash,项目名称:rroute,代码行数:31,代码来源:home.php


示例16: view_getWhIoRecordsList


//.........这里部分代码省略.........
             $id = isset($_GET['id']) ? post_check($_GET['id']) : '';
             $ordersn = isset($_GET['ordersn']) ? post_check($_GET['ordersn']) : '';
             $ioTypeId = isset($_GET['ioTypeId']) ? post_check($_GET['ioTypeId']) : '';
             $sku = isset($_GET['sku']) ? post_check($_GET['sku']) : '';
             $purchaseId = isset($_GET['purchaseId']) ? post_check($_GET['purchaseId']) : '';
             $userId = isset($_GET['userId']) ? post_check($_GET['userId']) : '';
             $positionId = isset($_GET['position']) ? post_check($_GET['position']) : '';
             $cStartTime = isset($_GET['cStartTime']) ? post_check($_GET['cStartTime']) : '';
             $cEndTime = isset($_GET['cEndTime']) ? post_check($_GET['cEndTime']) : '';
             if (!empty($id)) {
                 $where .= "AND id='{$id}' ";
             }
             if (!empty($ordersn)) {
                 $where .= "AND ordersn='{$ordersn}' ";
             }
             if (!empty($ioTypeId)) {
                 $where .= "AND ioTypeId='{$ioTypeId}' ";
             }
             if (!empty($sku)) {
                 $where .= "AND sku='{$sku}' ";
             }
             if (!empty($purchaseId)) {
                 $purchaseId = getUserIdByName($purchaseId);
                 $where .= "AND purchaseId='{$purchaseId}' ";
             }
             if (!empty($userId)) {
                 $userId = getUserIdByName($userId);
                 $where .= "AND userId='{$userId}' ";
             }
             if ($positionId) {
                 $positionId = WhPositionDistributionModel::get_position_info('id', '', $positionId);
                 $positionId = empty($positionId) ? '-1' : $positionId[0]['id'];
                 $where .= "AND positionId = '{$positionId}' ";
             }
             if (!empty($cStartTime)) {
                 $startTime = strtotime($cStartTime . '00:00:00');
                 $where .= "AND createdTime >='{$startTime}' ";
             }
             if (!empty($cEndTime)) {
                 $endTime = strtotime($cEndTime . '23:59:59');
                 $where .= "AND createdTime <='{$endTime}' ";
             }
         }
         $total = $whIoRecordsAct->act_getTNameCount('wh_iorecords', $where);
         $num = 100;
         //每页显示的个数
         $page = new Page($total, $num, '', 'CN');
         $where .= "ORDER BY createdTime DESC " . $page->limit;
         $whIoRecordsList = $whIoRecordsAct->act_getTNameList('wh_iorecords', '*', $where);
         if (!empty($_GET['page'])) {
             if (intval($_GET['page']) <= 1 || intval($_GET['page']) > ceil($total / $num)) {
                 $n = 1;
             } else {
                 $n = (intval($_GET['page']) - 1) * $num + 1;
             }
         } else {
             $n = 1;
         }
         if ($total > $num) {
             //输出分页显示
             $show_page = $page->fpage(array(0, 2, 3, 4, 5, 6, 7, 8, 9));
         } else {
             $show_page = $page->fpage(array(0, 2, 3));
         }
         $toptitle = '出库记录列表';
         $ioSearchName = '出库类型';
         $navlist = array(array('url' => 'index.php?mod=skuStock&act=getSkuStockList', 'title' => '库存信息'), array('url' => '', 'title' => '出库记录列表'));
         $this->smarty->assign('toplevel', 0);
         $this->smarty->assign('secondlevel', '34');
         $ioTypeList = WhIoStoreModel::getIoTypeListByioType(0);
         if ($ioType == 2) {
             $toptitle = '入库记录列表';
             $ioSearchName = '入库类型';
             $this->smarty->assign('secondlevel', 35);
             $navlist = array(array('url' => 'index.php?mod=skuStock&act=getSkuStockList', 'title' => '库存信息'), array('url' => '', 'title' => '入库记录列表'));
             $ioTypeList = WhIoStoreModel::getIoTypeListByioType(1);
         }
         $this->smarty->assign('toptitle', $toptitle);
         $this->smarty->assign('ioSearchName', $ioSearchName);
         $this->smarty->assign('ioTypeList', $ioTypeList);
         $this->smarty->assign('navlist', $navlist);
         $this->smarty->assign('show_page', $show_page);
         $this->smarty->assign('status', $status);
         $usermodel = UserModel::getInstance();
         foreach ($whIoRecordsList as $key => $val) {
             $whIoRecordsList[$key]['ioTypeName'] = WhIoStoreModel::getIoTypeNameById($val['ioTypeId']);
             $whIoRecordsList[$key]['whName'] = WhIoStoreModel::getWhNameById($val['storeId']);
             $purchase_user_info = $usermodel->getGlobalUserLists('global_user_name', "where a.global_user_id='{$val['purchaseId']}'", '', 'limit 1');
             $whIoRecordsList[$key]['purchaseName'] = $purchase_user_info[0]['global_user_name'];
             //$user_info 		   					   = $usermodel->getGlobalUserLists('global_user_name',"where a.global_user_id='{$val['userId']}'",'','limit 1');
             //$whIoRecordsList[$key]['userName']	   = $user_info[0]['global_user_name'];
             $whIoRecordsList[$key]['userName'] = getUserNameById($val['userId']);
             $position_info = whShelfModel::selectPosition("where id={$val['positionId']}");
             $whIoRecordsList[$key]['pName'] = $position_info[0]['pName'];
         }
         $this->smarty->assign('whIoRecordsList', $whIoRecordsList ? $whIoRecordsList : null);
         //循环列表
         $this->smarty->display("whIoRecords.htm");
     }
 }
开发者ID:ohjack,项目名称:newErp,代码行数:101,代码来源:whIoRecords.view.php


示例17: foreach

				<?php 
        // тут все фотки и лейблы
        if ($user['rankname'] == 'admin') {
            ?>
					<div class="panel panel-default">
						<div class="panel-heading"><strong class="panel-title">Загрузки</strong></div>
						<div class="panel-body">
							
							<?php 
            $qUploads = $db->query("SELECT * FROM `uploads` WHERE `pkg_id` = " . $v->id . " ORDER BY `time` DESC");
            if (isset($qUploads[0])) {
                foreach ($qUploads as $vUploads) {
                    ?>
										<div class="row" style="margin-bottom: 1em;">
											<div class="col-xs-4"><?php 
                    echo getUserNameById($vUploads->user_id);
                    ?>
</div>
											<div class="col-xs-8">
												<?php 
                    if (preg_match("/\\.pdf\$/is", $vUploads->filename)) {
                        echo "<a href='" . $cfg['options']['siteurl'] . '/upload/' . $vUploads->filename . "'>PDF файл</a><br>";
                    } else {
                        echo "<img src='" . $cfg['options']['siteurl'] . '/upload/' . $vUploads->filename . "' height=120>" . "<br>";
                    }
                    echo $vUploads->time;
                    ?>
											</div>
										</div>
							<hr>
										
开发者ID:g20000,项目名称:mailslight,代码行数:30,代码来源:package.php


示例18: content_53185b7c9df157_47226703


//.........这里部分代码省略.........
' />
                        &nbsp;|&nbsp;
						<button id="search">搜索</button>
    				</span>
                    &nbsp;&nbsp;
                    <span style="color: red;"><?php 
        echo $_smarty_tpl->tpl_vars['status']->value;
        ?>
</span>
            </div>
            <div class="align-main main order-main products-main">
            	<?php 
        $_smarty_tpl->tpl_vars['InStoreList'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['InStoreList']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['InStoreLists']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['InStoreList']->key => $_smarty_tpl->tpl_vars['InStoreList']->value) {
            $_smarty_tpl->tpl_vars['InStoreList']->_loop = true;
            ?>
                <table cellspacing="0" width="100%" class="products-action">
                    <tr class="title">
                        <td colspan="5">
                            <span>单号:<?php 
            echo $_smarty_tpl->tpl_vars['InStoreList']->value['ordersn'];
            ?>
</span>
                            <span>类型:<?php 
            echo $_smarty_tpl->tpl_vars['InStoreList']->value['invoiceName'];
            ?>
</span>
                            <span>申请人:<?php 
            echo getUserNameById($_smarty_tpl->tpl_vars['InStoreList']->value['userId']);
            ?>
</span>
                            <span>状态:<?php 
            if ($_smarty_tpl->tpl_vars['InStoreList']->value['ioStatus'] == 1) {
                ?>
待审核<?php 
            }
            if ($_smarty_tpl->tpl_vars['InStoreList']->value['ioStatus'] == 2) {
                ?>
审核通过<?php 
            }
            if ($_smarty_tpl->tpl_vars['InStoreList']->value['ioStatus'] == 3) {
                ?>
审核不通过<?php 
            }
            ?>
</span>
                            <span>提交时间:<?php 
            echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['InStoreList']->value['createdTime'], "Y-m-d H:i");
            ?>
</span>
                            <span>付款方式:<?php 
            echo $_smarty_tpl->tpl_vars['InStoreList']->value['paymentMethods'];
            ?>
</span>
                            <span>仓库:<?php 
            echo $_smarty_tpl->tpl_vars['InStoreList']->value['whName'];
            ?>
</span>
							<span>备注:<?php 
            echo $_smarty_tpl->tpl_vars['InStoreList']->value['note'];
            ?>
开发者ID:ohjack,项目名称:newErp,代码行数:67,代码来源:481e65400b4814d02b2f8d80402e34ac1bd616b7.file.whIoStore.htm.php


示例19: view_invList

 public function view_invList()
 {
     $now_time = date("Y-m-d H:i:s", time());
     $state = isset($_GET['state']) ? post_check($_GET['state']) : '';
     $this->smarty->assign('state', $state);
     $reason = array();
     $invPeople = isset($_GET['invPeople']) ? $_GET['invPeople'] : '';
     $sku = isset($_GET['sku']) ? post_check($_GET['sku']) : '';
     $invType = isset($_GET['invType']) ? $_GET['invType'] : '';
     $auditStatus = isset($_GET['auditStatus']) ? $_GET['auditStatus'] : 3;
     $startdate = isset($_GET['startdate']) ? post_check($_GET['startdate']) : '';
     $enddate = isset($_GET['enddate']) ? post_check($_GET['enddate']) : '';
     $InventoryAct = new InventoryAct();
     $where = 'where storeId=1 ';
     if ($invPeople) {
         $where .= "and invPeople ='{$invPeople}' ";
         $this->smarty->assign('invPeople', $invPeople);
     }
     if ($sku) {
         $where .= "and sku ='{$sku}' ";
         $this->smarty->assign('sku', $sku);
     }
     if ($invType) {
         $where .= "and invType ='{$invType}' ";
         $this->smarty->assign('invType', $invType);
     }
     if ($auditStatus != 3) {
         $where .= "and auditStatus ='{$auditStatus}' ";
     }
     $this->smarty->assign('auditStatus', $auditStatus);
     if ($startdate) {
         $starttime = strtotime($startdate);
         $where .= "and invTime >='{$starttime}' ";
     } else {
         $startdate = $now_time;
     }
     $this->smarty->assign('startdate', $startdate);
     if ($enddate) {
         $endtime = strtotime($enddate);
         $where .= "and invTime <='{$endtime}' ";
     } else {
         $enddate = $now_time;
     }
     $this->smarty->assign('enddate', $enddate);
     $total = $InventoryAct->act_getInvNum($where);
     $num = 80;
     //每页显示的个数
     $page = new Page($total, $num, '', 'CN');
     $where .= "order by sku, id " . $page->limit;
     $inventory_info = $InventoryAct->act_getInvRecordList('*', $where);
     if (!empty($_GET['page'])) {
         if (intval($_GET['page']) <= 1 || intval($_GET['page']) > ceil($total / $num)) {
             $n  

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getUserPassword函数代码示例发布时间:2022-05-15
下一篇:
PHP getUserLocale函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap