<form action="<?php echo $data['form_submit_url'];?>" method="post" role = "form">

	<div class="ulp-stuffbox">



		<h3 class="ulp-h3"><?php echo $data['post_title'] . __(' - Special Settings', 'ulp');?></h3>





		<div class="inside">

        <div class="ulp-inside-item">

                	<div class="row">

                    	<div class="col-xs-6">

					<h2><?php _e('Target Course', 'ulp');?></h2>

                    <p><?php _e('Choose for which course the cerificate will be assigned once the student completes the course', 'ulp');?></p>

				<div class="form-group row" style="  max-width: 400px; margin-bottom:15px;">

          <select name="ulp_course_certificate[]"  class="form-control m-bot15" >

              <option value="-1" <?php if (empty($data['ulp_course_certificate'])) echo 'selected';?> >...</option>

              <?php foreach ($data['courses'] as $course_data):?>

                  <option value="<?php echo $course_data['ID'];?>" <?php if (in_array($course_data['ID'], $data['ulp_course_certificate'])) echo 'selected';?> ><?php echo $course_data['post_title'];?></option>

              <?php endforeach;?>

          </select>

				</div>



				<input type="hidden" name="post_id" value="<?php echo esc_sql($_GET ['id']);?>" />

                  </div>

                    </div>

                </div>

		<div class="ulp-inside-item">

                	<div class="row">

                    	<div class="col-xs-6">

		<div class="form-group row">

				<div class="col-4">

						<input type="submit" name="submit" value="<?php _e('Save Changes', 'ulp');?>"  class="btn btn-primary pointer" />

			  </div>

		</div>

		         </div>

                    </div>

                </div>

	</div>

    </div>



</form>

