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


PHP Position::position_display方法代码示例

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


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

示例1: Position

            $family_id = $fam_id_arr['family_id'];
            $mysql = "select family_name from {$family} where family_id = '{$family_id}'";
            $fam_arr = $db_object->get_a_line($mysql);
            $family_name = $fam_arr['family_name'];
            $values["family_name"] = $family_name;
            $values["levelno"] = $result[$i]["level_no"];
            $values['user_id'] = $result[$i]['user_id'];
            $pos_id = $result[$i]["pos_id"];
            $admin_id = $result[$i]["admin_id"];
            $selqry = "select username from {$user_table} where user_id='{$admin_id}'";
            $adminname = $db_object->get_a_line($selqry);
            if ($adminname["username"] == "") {
                $values["admin_name"] = "NO ADMINISTRATOR";
            } else {
                $values["admin_name"] = $adminname["username"];
            }
            $name = $result[$i]["position_name"];
            $pos_id = $result[$i]["pos_id"];
            $repl_content = $common->direct_replace($db_object, $replacecontent, $values);
            $content .= $app . $repl_content;
            $content = $this->arrange($db_object, $common, $pos_id, $content, $replacecontent, $app);
        }
        return $content;
    }
}
$obj = new Position();
if ($fDelete) {
    $common->delete_position($db_object);
}
$obj->position_display($common, $db_object);
include "footer.php";
开发者ID:nloadholtes,项目名称:people-prodigy,代码行数:31,代码来源:chain_of_command.php

示例2: Position

                $pos_res = $db_object->get_a_line($pos_qry);
                $pos = $pos_res[position];
                $chain_below = $common->get_chain_below($pos, $db_object, $twodarr);
                $pos_assigned_arr = @array_merge($chain_below, $pos_assigned_arr);
            }
            //$position_assigned = $pos_assigned_arr['position'];
            //echo "position assigned is $position_assigned<br>";
            //echo "Cur Position is $pos_id <br><br>";
            if (@in_array($pos_id, $pos_assigned_arr) or $cur_userid == 1) {
                //$linkstart = "<a href='show_models.php?posid={{pid}}' title='Employee is {{position_name}} Level is {{levelno}}'> ";
                $linkstart = "<a href='show_models.php?posid={$pos_id}' title='Employee is {$position_name} Level is {$levelno}'> ";
                $linkend = "</a>";
            } else {
                $linkstart = "";
                $linkend = "";
            }
            $name = $result[$i]["position_name"];
            $pos_id = $result[$i]["pos_id"];
            $repl_content = preg_replace("/<{(.*?)}>/e", "\$\$1", $replacecontent);
            $content .= $app . $repl_content;
            $user_id = $cur_userid;
            $content = $this->arrange($db_object, $common, $pos_id, $content, $replacecontent, $app, $post_var, $user_id);
        }
        $content = preg_replace("/<{(.*?)}>/", "\$\$1", $content);
        return $content;
    }
}
$obj = new Position();
//THIS FUNCTION WILL DISPLAY THE CHAIN OF COMMAND CHART
$obj->position_display($common, $db_object, $user_id, $post_var, $default, $error_msg, $gbl_files);
include "footer.php";
开发者ID:nloadholtes,项目名称:people-prodigy,代码行数:31,代码来源:chainofcommandmodel.php


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