<input type="hidden" name="item_name[<?php 
                        echo $product_id;
                        ?>
]" value="<?php 
                        echo esc_attr($product_data['name']);
                        ?>
">
												</td>
												<td>
													<?php 
                        echo htmlspecialchars($product_data['name']);
                        ?>
												</td>
												<td>
													<?php 
                        shub_module_form::generate_form_element(array('name' => 'item_product[' . $product_id . ']', 'type' => 'select', 'blank' => __('- None -', 'support_hub'), 'value' => $shub_ucm_account->is_item_active($product_id) ? $ucm_products[$product_id]->get('shub_product_id') : (isset($product_data['shub_product_id']) ? $product_data['shub_product_id'] : 0), 'options' => $products, 'options_array_id' => 'product_name', 'class' => 'shub_product_dropdown'));
                        ?>
												</td>
												<td>
													<?php 
                        echo $shub_ucm_account->is_item_active($product_id) && $ucm_products[$product_id]->get('last_checked') ? shub_print_date($ucm_products[$product_id]->get('last_checked'), true) : 'N/A';
                        ?>
												</td>
												<td>
													<?php 
                        if ($shub_ucm_account->is_item_active($product_id)) {
                            echo '<a href="' . $ucm_products[$product_id]->link_refresh() . '" target="_blank">re-load product tickets</a>';
                        }
                        ?>
												</td>
											</tr>
                            <textarea name="extra_description"><?php 
    echo esc_attr($shub_extra->get('extra_description'));
    ?>
</textarea>
	                        (e.g. Enter your Website Address so we can see the problem)
                        </td>
                    </tr>
                    <tr>
                        <th>
                            <?php 
    _e('Field Type', 'support_hub');
    ?>
                        </th>
                        <td class="">
                            <?php 
    shub_module_form::generate_form_element(array('type' => 'select', 'options' => array('text' => 'Text Field', 'encrypted' => 'Encrypted Field'), 'value' => $shub_extra->get('field_type'), 'name' => 'field_type'));
    ?>
                        </td>
                    </tr>
					</tbody>
				</table>

				<p class="submit">
					<?php 
    if ($shub_extra->get('shub_extra_id')) {
        ?>
						<input name="butt_save" type="submit" class="button-primary"
						       value="<?php 
        echo esc_attr(__('Save', 'support_hub'));
        ?>
"/>
 public function reply_actions()
 {
     $user_data = $this->account->get('account_data');
     if (isset($user_data['reply_options']) && is_array($user_data['reply_options'])) {
         foreach ($user_data['reply_options'] as $reply_option) {
             if (isset($reply_option['title'])) {
                 echo '<div>';
                 echo '<label for="">' . htmlspecialchars($reply_option['title']) . '</label>';
                 if (isset($reply_option['field']) && is_array($reply_option['field'])) {
                     $reply_option['field']['name'] = 'extra-' . $reply_option['field']['name'];
                     $reply_option['field']['data'] = array('reply' => 'yes');
                     shub_module_form::generate_form_element($reply_option['field']);
                 }
                 echo '</div>';
             }
         }
     }
 }
        ?>
			<div>
				<label for="extra_<?php 
        echo $extra->get('shub_extra_id');
        ?>
"><?php 
        echo htmlspecialchars($extra->get('extra_name'));
        ?>
:</label>
				<?php 
        shub_module_form::generate_form_element(array('type' => $extra->get('field_type') ? $extra->get('field_type') : 'text', 'name' => 'extra[' . $extra->get('shub_extra_id') . ']', 'value' => isset($extra_previous_data[$extra->get('shub_extra_id')]) ? $extra_previous_data[$extra->get('shub_extra_id')] : ''));
        ?>
			</div>
			<?php 
    }
    ?>
	</fieldset>
	<fieldset class="shub_extra_notes">
		<legend>Any more information? (optional)</legend>
		<div>
			<label for="extra_notes">Message:</label>
			<?php 
    shub_module_form::generate_form_element(array('type' => 'textarea', 'name' => 'extra_notes', 'value' => isset($extra_previous_notes) ? $extra_previous_notes : ''));
    ?>
		</div>
	</fieldset>
	<div><button type="submit" id="submit-go">Submit Private Message</button></div>
	<?php 
}
?>
</form>