bet 15/20 Sana 13.08.2022 Hajmi 3,21 Mb. #846994
Bog'liq
эркинова
if(Yii::$app->request->isPost){
if($comment->load( Yii::$app->request->post()) && $comment->save(false)){
return $this->refresh();
};
}
return $this->render('post',[
'post' => $model,
'comment'=>$comment,
'id'=>$model->id,
]);
}
public function actionContact()
{
$model = new FeedbackModel();
if( Yii::$app->request->post()){
if( $model->load(Yii::$app->request->post()) && $model->save()){
return $this->redirect('/site/index');
}
}
return $this->render('contact',['model'=>$model]);
}
public function actionAbout()
{
return $this->render('about');
}
public function actionError()
{
$this->layout = '/empty';
$exception = Yii::$app->errorHandler->exception;
if ($exception !== null) {
return $this->render('error', [
'exception' => $exception
]);
}
}
public function actionDoctors()
{
$doc = Position::find()->select('id')->where(['src'=>'doc'])->asArray()->one();
$docpos = UserPosition::find()->select('user_id')->where(['position_id'=>$doc])->asArray()->all();
$docs = UserProfile::find()->where(['user_id' => $docpos])->limit(4)->all();
return $this->render('doctors',[
'docs' => $docs
]);
}
public function actionDoc($name)
{
$doc = UserProfile::find()->where(['lastname' => $name])->one();
$question = new Questions();
$appt = new Appointment();
if(Yii::$app->request->isPost){
if (Yii::$app->request->post('Questions')) {
if ($question->load(Yii::$app->request->post()) && $question->validate() && $question->save()) {
return $this->refresh();
}
else var_dump($question->errors);exit;
}
if (Yii::$app->request->post('Appointment')) {
if ($appt->load(Yii::$app->request->post()) && $appt->validate() && $appt->save()) {
return $this->refresh();
}
else var_dump($appt->errors);exit;
}
}
return $this->render('doc',[
'doc' => $doc,
'question' => $question,
'model' => $appt,
]);
}
public function actionAppointment()
{
$model = new Appointment();
if(Yii::$app->request->post()){
if ($model->load(Yii::$app->request->post())) {
if ($model->validate() && $model->save()) {
return $this->redirect('/site/index');
}
}
}
return $this->render('appointment',['model'=>$model]);
}
}
use yii\helpers\Url;
$this->title = "ProfMed";
?>
data-x="center" data-hoffset="210"
data-y="170"
data-customin="x:0;y:0;z:0;rotationX:90;rotationY:0;rotationZ:0;scaleX:1;scaleY:1;skewX:0;skewY:0;opacity:0;transformPerspective:200;transformOrigin:50% 0%;"
data-customout="x:0;y:0;z:0;rotationX:0;rotationY:0;rotationZ:0;scaleX:0.75;scaleY:0.75;skewX:0;skewY:0;opacity:0;transformPerspective:600;transformOrigin:50% 50%;"
data-speed="1000"
data-start="500"
data-easing="Back.easeInOut"
data-endspeed="300">PROFMED
kompaniyasining faoliyati
data-x="center" data-hoffset="204"
data-y="290"
data-customin="x:0;y:0;z:0;rotationX:90;rotationY:0;rotationZ:0;scaleX:1;scaleY:1;skewX:0;skewY:0;opacity:0;transformPerspective:200;transformOrigin:50% 0%;"
data-customout="x:0;y:0;z:0;rotationX:0;rotationY:0;rotationZ:0;scaleX:0.75;scaleY:0.75;skewX:0;skewY:0;opacity:0;transformPerspective:600;transformOrigin:50% 50%;"
data-speed="1300"
data-start="800"
data-easing="Back.easeInOut"
data-endspeed="300">- tibbiyotning yangi standartlarini joriy etishga,
shuningdek, tibbiy mahoratning eng yaxshi an'analari asosida,
vaqt bilan isbotlangan.
data-x="center" data-hoffset="12"
data-y="390"
data-customin="x:0;y:0;z:0;rotationX:90;rotationY:0;rotationZ:0;scaleX:1;scaleY:1;skewX:0;skewY:0;opacity:0;transformPerspective:200;transformOrigin:50% 0%;"
data-customout="x:0;y:0;z:0;rotationX:0;rotationY:0;rotationZ:0;scaleX:0.75;scaleY:0.75;skewX:0;skewY:0;opacity:0;transformPerspective:600;transformOrigin:50% 50%;"
data-speed="1600"
data-start="1100"
data-easing="Back.easeInOut"
data-endspeed="300">" >Bog'lanish
data-x="center" data-hoffset="180"
data-y="390"
data-customin="x:0;y:0;z:0;rotationX:90;rotationY:0;rotationZ:0;scaleX:1;scaleY:1;skewX:0;skewY:0;opacity:0;transformPerspective:200;transformOrigin:50% 0%;"
data-customout="x:0;y:0;z:0;rotationX:0;rotationY:0;rotationZ:0;scaleX:0.75;scaleY:0.75;skewX:0;skewY:0;opacity:0;transformPerspective:600;transformOrigin:50% 50%;"
data-speed="1600"
Do'stlaringiz bilan baham: