本文整理汇总了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";
示例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";