Пример #1
0
 public function actionStudentParttimeList()
 {
     $model = new Partjob();
     $jobInfo = $model->getPartJob();
     //兼职信息
     return $this->render('studentparttimelist', ["jobInfo" => $jobInfo]);
 }
Пример #2
0
 public function actionPosition()
 {
     $model = new Partjob();
     $result['list'] = $model->find();
     $model = new Type();
     $result["type"] = $model->find();
     $model = new Jobcompany();
     $result["company"] = $model->find();
     return $this->render('/business-store/position', $result);
 }
Пример #3
0
 public function signup($name, $id)
 {
     $model = Partjob::find()->where(["partjob_id" => $name])->one();
     $model->partjob_number = $id;
     $res = $model->save();
     return $res;
 }
Пример #4
0
 public function actionOrder()
 {
     $id = \Yii::$app->request->get("id");
     $wages = \Yii::$app->request->get("wages");
     //单价
     $price = \Yii::$app->request->get("price");
     //总价
     $model = new Partjob();
     $arr = $model->order($id);
     $session = Yii::$app->session;
     $uid = $session->get("user_id");
     $info = Merchant::find()->select("merchant_name,money")->from("fin_merchant")->where("user_id={$uid}")->asArray()->one();
     return $this->render("order", ["data" => $arr, "id" => $id, 'wages' => $wages, "price" => $price, "info" => $info]);
 }
Пример #5
0
 public function actionJob_select()
 {
     $type_id = \YII::$app->request->post("type_id");
     $region_id = \YII::$app->request->post("region_id");
     $model = new Partjob();
     $part_list = $model->job_select($type_id, $region_id);
     return $this->renderpartial('part_time_select', $part_list);
 }