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


PHP pylode函数代码示例

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


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

示例1: index_action

 function index_action()
 {
     $urlarr = array("c" => "pl", "page" => "{{page}}");
     $pageurl = Url('member', $urlarr);
     $rows = $this->get_page("company_msg", "`cuid`='" . $this->uid . "'", $pageurl, "10");
     if (is_array($rows)) {
         foreach ($rows as $k => $v) {
             $uid[] = $v['uid'];
         }
         $uid = pylode(",", $uid);
         $user = $this->obj->DB_select_all("resume", "`uid` in ({$uid})", "`uid`,`name`");
         foreach ($rows as $k => $v) {
             foreach ($user as $val) {
                 if ($v['uid'] == $val['uid']) {
                     $rows[$k]['name'] = $val['name'];
                 }
             }
         }
     }
     $this->yunset("rows", $rows);
     $com = $this->obj->DB_select_once("company", "`uid`='" . $this->uid . "'");
     if ($com['pl_time'] && $com['pl_time'] > time()) {
         $this->yunset("pl_time", '1');
     }
     $this->obj->update_once("company_msg", array("status" => (int) $_POST['status']), array("id" => (int) $_POST['id']));
     $this->yunset("com", $com);
     $this->public_action();
     $this->yunset("js_def", 7);
     $this->com_tpl('pl');
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:30,代码来源:pl.class.php

示例2: index_action

 function index_action()
 {
     $this->yunset($this->MODEL('cache')->GetCache(array('city', 'com')));
     $this->public_action();
     $this->member_satic();
     $urlarr = array("c" => "favorite", "page" => "{{page}}");
     $StateNameList = array('0' => '等待审核', '1' => '招聘中', '2' => '已结束', '3' => '未通过');
     $pageurl = Url('member', $urlarr);
     $rows = $this->get_page("fav_job", "`uid`='" . $this->uid . "' order by id desc", $pageurl, "20");
     $fnum = $this->obj->DB_select_num("fav_job", "`uid`='" . $this->uid . "'", "`id`");
     if ($rows && is_array($rows)) {
         foreach ($rows as $val) {
             $jobids[] = $val['job_id'];
         }
         $company_job = $this->obj->DB_select_all("company_job", "`id` in(" . pylode(',', $jobids) . ")", "`id`,`salary`,`provinceid`,`cityid`,`state`");
         foreach ($rows as $key => $val) {
             $rows[$key]['statename'] = '已关闭';
             foreach ($company_job as $v) {
                 if ($val['job_id'] == $v['id']) {
                     $rows[$key]['salary'] = $v['salary'];
                     $rows[$key]['provinceid'] = $v['provinceid'];
                     $rows[$key]['cityid'] = $v['cityid'];
                     $rows[$key]['statename'] = $StateNameList[$v['state']];
                 }
             }
         }
     }
     $num = $this->obj->DB_select_num("fav_job", "`uid`='" . $this->uid . "'");
     $this->obj->DB_update_all("member_statis", "fav_jobnum='" . $num . "'", "`uid`='" . $this->uid . "'");
     $this->yunset(array("rows" => $rows, "fnum" => $fnum));
     $this->yunset();
     $this->user_tpl('favorite');
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:33,代码来源:favorite.class.php

示例3: index_action

 function index_action()
 {
     $this->public_action();
     $urlarr["c"] = "search";
     $where = "`uid`='" . $this->uid . "'";
     if ($_GET['keyword']) {
         $where .= " and name like '%" . $_GET['keyword'] . "%'";
         $urlarr['keyword'] = $_GET['keyword'];
     }
     $urlarr["page"] = "{{page}}";
     $pageurl = Url('member', $urlarr);
     $rows = $this->get_page("company_job", $where, $pageurl, "10", "`id`,`name`,`state`,`sdate`,`edate`,`lastupdate`,`jobhits`");
     if (is_array($rows) && !empty($rows)) {
         foreach ($rows as $v) {
             $jobid[] = $v['id'];
         }
         $jobrows = $this->obj->DB_select_all("userid_job", "`job_id` in (" . pylode(',', $jobid) . ")");
         if (is_array($jobrows)) {
             foreach ($jobrows as $v) {
                 $jobnum[$v['job_id']]++;
             }
         }
     }
     $this->company_satic();
     $this->yunset("jobnum", $jobnum);
     $this->yunset("js_def", 3);
     $this->com_tpl('search');
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:28,代码来源:search.class.php

示例4: myfoot

 function myfoot($id = "", $M)
 {
     $id = $id ? $id : $this->uid;
     $myfoot = $M->GetFriendFoot(array("fid" => $id), array("orderby" => "ctime desc", "limit" => "4"));
     $uids = array();
     if (is_array($myfoot) && $myfoot) {
         foreach ($myfoot as $val) {
             $uids[] = $val['uid'];
         }
         $info = $M->GetFriendAll(array("`uid` in (" . pylode(',', $uids) . ")"), array("field" => "`uid`,`nickname`,`pic`"));
         if (is_array($info)) {
             foreach ($myfoot as $k => $v) {
                 foreach ($info as $key => $val) {
                     if ($v['uid'] == $val['uid']) {
                         $myfoot[$k]['nickname'] = $val['nickname'];
                         $myfoot[$k]['pic'] = str_replace("..", $this->config['sy_weburl'], $val['pic']);
                         if ($myfoot[$k]['pic'] == '') {
                             $myfoot[$k]['pic'] = $this->config['sy_friend_icon'];
                         }
                     }
                 }
             }
         }
     }
     $this->yunset("myfoot", $myfoot);
     return $myfoot;
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:27,代码来源:friend.controller.php

示例5: index_action

 function index_action()
 {
     $where .= "`uid`='" . $this->uid . "' or (`fid`='" . $this->uid . "' and `status`<>'1') order by ctime desc";
     $urlarr["c"] = $_GET["c"];
     $urlarr["page"] = "{{page}}";
     $pageurl = Url('member', $urlarr);
     $rows = $this->get_page("friend_message", $where, $pageurl, "20");
     if (is_array($rows)) {
         foreach ($rows as $v) {
             $uids[] = $v['uid'];
             $uids[] = $v['fid'];
         }
         $statis = $this->obj->DB_select_all("friend_info", "`uid` in (" . pylode(",", $uids) . ")", "uid,nickname");
         foreach ($rows as $key => $value) {
             $rows[$key]['ctime'] = date("Y-m-d H:i", $value['ctime']);
             foreach ($statis as $k => $v) {
                 if ($value['uid'] == $v['uid']) {
                     $rows[$key]['nickname'] = $v['nickname'];
                 }
                 if ($value['fid'] == $v['uid']) {
                     $rows[$key]['name'] = $v['nickname'];
                 }
             }
         }
     }
     $this->yunset("rows", $rows);
     $this->public_action();
     $this->obj->DB_update_all("friend_message", "`remind_status`='1'", "`fid`='" . $this->uid . "' and `remind_status`='0'");
     $this->unset_remind("friend_message1", "1");
     $this->user_tpl('xin');
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:31,代码来源:xin.class.php

示例6: index_action

 function index_action()
 {
     $this->get_user();
     $num = $this->obj->DB_select_num("resume_expect", "`uid`='" . $this->uid . "'");
     if ($num >= $this->config['user_number'] && $_GET['e'] == '') {
         $this->ACT_msg("index.php?c=resume", "你的简历数已经超过系统设置的简历数了");
     }
     $row = $this->obj->DB_select_alls("resume_expect", "resume_doc", "a.`uid`='" . $this->uid . "' and a.`id`='" . (int) $_GET['e'] . "' and a.`id`=b.eid");
     $this->yunset("row", $row[0]);
     if ($row[0]['job_classid']) {
         include PLUS_PATH . "/job.cache.php";
         $job_classid = @explode(",", $row[0]['job_classid']);
         if (is_array($job_classid)) {
             foreach ($job_classid as $key) {
                 $job_classname[] = $job_name[$key];
             }
             $this->yunset("job_classname", pylode('+', $job_classname));
         }
         $this->yunset("job_classid", $job_classid);
     }
     $this->yunset($this->MODEL('cache')->GetCache(array('city', 'hy')));
     $this->user_cache();
     $this->yunset("js_def", 2);
     $this->user_tpl('expectq');
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:25,代码来源:expectq.class.php

示例7: index_action

 function index_action()
 {
     $where = "`name` like '%" . $_GET['keyword'] . "%'";
     $urlarr = array("c" => "searchcom", "page" => "{{page}}");
     $pageurl = Url('member', $urlarr);
     $rows = $this->get_page("company", $where, $pageurl, "10");
     if (is_array($rows)) {
         include PLUS_PATH . "/city.cache.php";
         foreach ($rows as $v) {
             $c_uid[] = $v['uid'];
         }
         $black = $this->obj->DB_select_all("blacklist", "`p_uid`='" . $this->uid . "' and `c_uid` in (" . pylode(",", $c_uid) . ")");
         foreach ($rows as $k => $v) {
             $rows[$k]['provinceid'] = $city_name[$v['provinceid']];
             $rows[$k]['cityid'] = $city_name[$v['cityid']];
             foreach ($black as $val) {
                 if ($v['uid'] == $val['c_uid']) {
                     $rows[$k]['status'] = "1";
                 }
             }
         }
     }
     $this->yunset("rows", $rows);
     $this->public_action();
     $this->user_tpl('searchcom');
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:26,代码来源:searchcom.class.php

示例8: index_action

 function index_action()
 {
     $this->public_action();
     $urlarr["c"] = "zhaopinhui";
     $urlarr["page"] = "{{page}}";
     $pageurl = Url('member', $urlarr);
     $where = "`uid`='" . $this->uid . "'";
     $rows = $this->get_page("zhaopinhui_com", $where, $pageurl, "10");
     if (is_array($rows)) {
         foreach ($rows as $key => $v) {
             $zphid[] = $v['zid'];
         }
         $zphrows = $this->obj->DB_select_all("zhaopinhui", "`id` in (" . pylode(',', $zphid) . ")", "`id`,`title`,`address`");
         foreach ($rows as $k => $v) {
             foreach ($zphrows as $val) {
                 if ($v['zid'] == $val['id']) {
                     $rows[$k]['title'] = $val['title'];
                     $rows[$k]['address'] = $val['address'];
                 }
             }
         }
     }
     $this->yunset("rows", $rows);
     $this->yunset("js_def", 2);
     $this->com_tpl("zhaopinhui");
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:26,代码来源:zhaopinhui.class.php

示例9: index_action

 function index_action()
 {
     $this->public_action();
     $M = $this->MODEL("redeem");
     $row = $M->GetRewardClass(array('1'), array("orderby" => "id asc", "field" => "id,name"));
     $this->yunset("row", $row);
     $rows = $M->GetReward(array('status' => 1), array("field" => "id,nid,pic,name,integral,stock"));
     $this->yunset("rows", $rows);
     $lipin = $M->GetChange(array('1'), array("orderby" => "id desc", "field" => "uid,username,name,ctime,integral,gid", "limit" => "10"));
     if (is_array($lipin)) {
         foreach ($lipin as $k => $v) {
             foreach ($rows as $val) {
                 if ($v['gid'] == $val['id']) {
                     $lipin[$k]['pic'] = $val['pic'];
                 }
             }
             $time = time() - $v['ctime'];
             if ($time > 86400 && $time < 604800) {
                 $lipin[$k]['time'] = ceil($time / 86400) . "天前";
             } elseif ($time > 3600 && $time < 86400) {
                 $lipin[$k]['time'] = ceil($time / 3600) . "小时前";
             } elseif ($time > 60 && $time < 3600) {
                 $lipin[$k]['time'] = ceil($time / 60) . "分钟前";
             } elseif ($time < 60) {
                 $lipin[$k]['time'] = "刚刚";
             } else {
                 $lipin[$k]['time'] = date("Y-m-d", $v['ctime']);
             }
             $uid[] = $v['uid'];
         }
         include PLUS_PATH . "/city.cache.php";
         $uid = pylode(",", $uid);
         $Resume = $this->MODEL('resume');
         $Member = $this->MODEL('userinfo');
         $city1 = $Resume->GetResumeExpectOne(array("`uid` in (" . $uid . ")"), array("field" => "uid,provinceid,cityid"));
         $city2 = $Member->GetUserinfoOne(array("`uid` in (" . $uid . ")"), array("usertype" => "2", "field" => "uid,provinceid,cityid"));
         $city = array_merge($city1, $city2);
         foreach ($lipin as $k => $v) {
             foreach ($city as $val) {
                 if ($v['uid'] == $val['uid']) {
                     $lipin[$k]['provinceid'] = $city_name[$val['provinceid']];
                     $lipin[$k]['cityid'] = $city_name[$val['cityid']];
                 }
             }
         }
         $this->yunset("lipin", $lipin);
     }
     $paihang = $M->GetReward(array("status" => "1"), array("orderby" => "`num` desc", "limit" => "3", "field" => "name,id,pic"));
     $this->yunset("paihang", $paihang);
     $this->seo("redeem");
     $this->yun_tpl(array('index'));
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:52,代码来源:index.class.php

示例10: del_action

 function del_action()
 {
     if ($_GET['id'] || $_GET['del']) {
         if (is_array($_GET['del'])) {
             $del = pylode(",", $_GET['del']);
             $layer_type = 1;
         } else {
             $del = (int) $_GET['id'];
             $layer_type = 0;
         }
         $this->obj->DB_update_all("look_resume", "`status`='1'", "`id` in (" . $del . ") and `uid`='" . $this->uid . "'");
         $this->obj->member_log("删除简历浏览记录(ID:" . $del . ")");
         $this->layer_msg('删除成功!', 9, $layer_type, "index.php?c=look");
     }
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:15,代码来源:look.class.php

示例11: del_action

 function del_action()
 {
     if ($_POST['del']) {
         $layer_type = '1';
         $id = pylode(',', $_POST['del']);
     } else {
         if ($_GET['id']) {
             $this->check_token();
             $id = $_GET['id'];
             $layer_type = '0';
         }
     }
     $nid = $this->obj->DB_delete_all("company_rating", "`id` in(" . $id . ")", "");
     $this->cache_rating();
     $nid ? $this->layer_msg('企业会员等级(ID:(ID:' . $id . ')成功!', 9, $layer_type, $_SERVER['HTTP_REFERER']) : $this->layer_msg('删除失败!', 8, $layer_type, $_SERVER['HTTP_REFERER']);
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:16,代码来源:admin_company_rating.class.php

示例12: saveshow_action

 function saveshow_action()
 {
     if ($_POST['submitbtn']) {
         $pid = pylode(',', $_POST['id']);
         $company_show = $this->obj->DB_select_all("company_show", "`id` in (" . $pid . ") and `uid`='" . $this->uid . "'", "`id`");
         if ($company_show && is_array($company_show)) {
             foreach ($company_show as $val) {
                 $title = $_POST['title_' . $val['id']];
                 $this->obj->update_once("company_show", array("title" => trim($title)), array("id" => (int) $val['id']));
             }
             $this->obj->member_log("添加环境展示");
             $this->ACT_layer_msg("保存成功!", 9, "index.php?c=show");
         } else {
             $this->ACT_layer_msg("非法操作!", 3, "index.php");
         }
     } else {
         $this->ACT_msg("index.php", "非法操作!");
     }
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:19,代码来源:show.class.php

示例13: del_action

 function del_action()
 {
     if ($_POST['delid'] || $_GET['id']) {
         if (is_array($_POST['delid'])) {
             $id = pylode(",", $_POST['delid']);
             $layer_type = '1';
         } else {
             $id = (int) $_GET['id'];
             $layer_type = '0';
         }
         $nid = $this->obj->DB_delete_all("blacklist", "`id` in (" . $id . ") and `c_uid`='" . $this->uid . "'", " ");
         if ($nid) {
             $this->obj->member_log("删除黑名单");
             $this->layer_msg('删除成功!', 9, $layer_type, "index.php?c=blacklist");
         } else {
             $this->layer_msg('删除失败!', 8, $layer_type, "index.php?c=blacklist");
         }
     }
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:19,代码来源:blacklist.class.php

示例14: del_action

 function del_action()
 {
     if ($_POST['delid'] || $_GET['id']) {
         if ($_GET['id']) {
             $id = (int) $_GET['id'];
             $layer_type = '0';
         } else {
             $id = pylode(",", $_POST['delid']);
             $layer_type = '1';
         }
         $nid = $this->obj->DB_delete_all("down_resume", "`comid`='" . $this->uid . "' and `id` in (" . $id . ")", " ");
         if ($nid) {
             $this->obj->member_log("删除已下载简历人才", 3, 3);
             $this->layer_msg('删除成功!', 9, $layer_type, "index.php?c=down");
         } else {
             $this->layer_msg('删除失败!', 8, $layer_type, "index.php?c=down");
         }
     }
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:19,代码来源:down.class.php

示例15: del_action

 function del_action()
 {
     if ($_POST['delid'] || $_GET['id']) {
         if (is_array($_POST['delid'])) {
             $delid = pylode(",", $_POST['delid']);
             $layer_type = '1';
         } else {
             $delid = (int) $_GET['id'];
             $layer_type = '0';
         }
         $nid = $this->obj->DB_update_all("look_resume", "`com_status`='1'", "`id` in (" . $delid . ") and `com_id`='" . $this->uid . "'");
         if ($nid) {
             $this->obj->member_log("删除已浏览简历记录(ID:" . $delid . ")");
             $this->layer_msg('删除成功!', 9, $layer_type, $_SERVER['HTTP_REFERER']);
         } else {
             $this->layer_msg('删除失败!', 8, $layer_type, $_SERVER['HTTP_REFERER']);
         }
     }
 }
开发者ID:justinyaoqi,项目名称:qyhr,代码行数:19,代码来源:look_resume.class.php


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