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


PHP assign::assign_plan方法代码示例

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


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

示例1: assign

                $value[click] = "front_panel.php";
                $message1 = $common->direct_replace($db_object, $message, $value);
                $common->send_mail($to, $subject, $message1, $from);
                $value[user] = $res1[username];
                $value[boss] = $res_mail[username];
                $value[emp] = $res1[username];
                $value[click] = "front_panel.php";
                $to = $res1[email];
                $message1 = $common->direct_replace($db_object, $message, $value);
                $common->send_mail($to, $subject, $message1, $from);
                echo $res_mail[username];
                echo $error_msg['cAssignedtoUpdate'];
                echo $res1[position_name];
                echo "<br>";
            }
        }
    }
}
$obj = new assign();
if ($fAssign) {
    $action = "assign";
}
switch ($action) {
    case NULL:
        $obj->assign_plan($db_object, $common, $user_id, $fBoss, $error_msg, $pos_id_sel);
        break;
    case "assign":
        $obj->assign_succession_plan($db_object, $common, $user_id, $fPosition, $fUser, $error_msg);
        break;
}
include_once "footer.php";
开发者ID:nloadholtes,项目名称:people-prodigy,代码行数:31,代码来源:assign_succession_plan1.php

示例2: assign

        if ($users1[0] == "") {
            echo $error_msg['cNoBossUnderBoss'];
            include_once "footer.php";
            exit;
        }
        $path = $common->path;
        $xtemplate = $path . "templates/career/assign_succession_plan.html";
        $file = $common->return_file_content($db_object, $xtemplate);
        $pattern = "/<{boss_loopstart}>(.*?)<{boss_loopend}>/s";
        preg_match($pattern, $file, $match);
        $match = $match[0];
        for ($a = 0; $a < count($users1); $a++) {
            $boss_id = $users1[$a][user_id];
            $boss_name = $common->name_display($db_object, $boss_id);
            $str .= preg_replace("/<{(.*?)}>/e", "\$\$1", $match);
        }
        $file = preg_replace($pattern, $str, $file);
        $file = $common->direct_replace($db_object, $file, $xArray);
        echo $file;
    }
}
$obj = new assign();
switch ($action) {
    case NULL:
        $obj->assign_plan($db_object, $common, $user_id, $fBoss_id, $error_msg);
        break;
    case "assign":
        $obj->succession_plan_alert($db_object, $common, $user_id, $error_msg);
        break;
}
include_once "footer.php";
开发者ID:nloadholtes,项目名称:people-prodigy,代码行数:31,代码来源:assign_succession_plan.php


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