پنجشنبه: 6 ارديبهشت 1403

شما اینجا هستید

فرم دزدیده شده از خاکی

    'fieldset', '#title' => t('Insert Question'), '#tree' => TRUE, ); $form['Question']['name'] = array( '#type' => 'textfield', '#title' => t('Name'), '#size' => 30, '#maxlength' => 64, '#description' => t('Enter your name'), ); $form['Question']['email'] = array( '#type' => 'textfield', '#title' => t('Email'), '#size' => 30, '#maxlength' => 64, '#description' => t('Enter your email'), ); $form['Question']['age'] = array( '#type' => 'textfield', '#title' => t('Age'), '#size' => 30, '#maxlength' => 64, '#description' => t('Enter your Age'), ); $form['Question']['Country'] = array( '#type' => 'textfield', '#title' => t('Country'), '#size' => 30, '#maxlength' => 64, '#description' => t('Enter your Country'), ); $Academic_options = array('1' => t('Elementary') , '2'=>t('Secondary') , '3'=> t('Undergraduate'),'4'=>t('M.A/M.S'),'5'=>t('Ph.D')); $form['Question']['Academic'] = array( '#type' => 'select', '#title' => t('Academic'), '#options' => $Academic_options, '#description' => t('Enter your Academic'), ); $Hozavi_options = array('1' => t('Muqaddamat') , '2'=>t('Satth') , '3'=> t('Kharij')); $form['Question']['Hozavi'] = array( '#type' => 'select', '#title' => t('Hozavi'), '#options' => $Hozavi_options, '#description' => t('Enter your Hozavi'), ); $Islamic_Knowledge_options = array('1' => t('Elementary') , '2'=>t('Intermediary') , '3'=> t('Advanced')); $form['Question']['Islamic_Knowledge'] = array( '#type' => 'select', '#title' => t('Islamic Knowledge'), '#options' => $Islamic_Knowledge_options, '#description' => t('Enter your Islamic Knowledge'), ); $Gender_options = array('1' => t('Men'), '2' => t('Women')); $form['Question']['Gender'] = array( '#type' => 'radios', '#title' => t('Gender'), '#options' => $Gender_options , '#description' => t('Enter your Gender.'), ); $receiver_options = array('1' => t('Ayatullah Misbah'), '2' => t('Webmaster')); $form['Question']['receiver'] = array( '#type' => 'radios', '#title' => t('receiver'), '#options' => $receiver_options , '#description' => t('receiver.'), ); $form['Question']['description'] = array( '#type' => 'textarea', '#title' => t('Question it'), '#cols' => 60, '#rows' => 5, '#description' => t('Question.'), ); $form['hidden'] = array('#type' => 'value', '#value' => 'is_it_here'); return $form; } function Question_form_validate($form, &$form_state) { if ($form_state['values']['Question']['name'] == '') { form_set_error('', t('You must select a name for this group of settings.')); } } function Question_form_submit($form, &$form_state) { $message = array( 'to' => 'khakdaman@qabas.net', 'subject' => t('Example subject'), 'body' => $form_state['values']['Question']['name'], 'headers' => array('From' => 'khakdaman@qabas.net','language'=>'utf8'), ); drupal_mail_send($message); print_r($form_state); drupal_set_message(t('Your form has been saved.')); } function Question_page() { return drupal_get_form('Question_form'); } print Question_page() ; ?>

    لینک ثابت خبر: qabas.iki.ac.ir/node/3543

    آخرین اخبار

    موسسه امام خمینی

    «این مؤسسه‏ خوب، جامع و کامل می‌‏تواند از لحاظ تلاش پیگیر، خستگی‏‌ناپذیر، خالصانه و عالمانه الگویی برای حوزه باشد.»  مقام معظم رهبری در دیدار رئیس و اعضای هیئت علمی مؤسسه آموزشی و پژوهشی امام خمینی(ره... ادامه

    سند چشم انداز

    چشم‌انداز مؤسسه آموزشي و پژوهشي امام خميني(ره) با اميد به فضل الهي و عنايات ويژه حضرت ولي عصر(عج) و در پرتو کوشش عالمانه و تلاش متعهدانه همه ارکان و اعضا و پارسايي و پاکي مديران، استادان، محققان، دانش‌پژوهان و... ادامه