if ($val == $ticket_id) {
        $prev_ticket = $temp_prev ? $temp_prev : true;
    }
    $temp_prev = $val;
}
$form_actions = array('class' => 'action_bar action_bar_center action_bar_single', 'elements' => array(array('type' => 'save_button', 'name' => 'butt_save', 'value' => _l('Save details')), array('ignore' => !((int) $ticket_id && module_ticket::can_i('delete', 'Tickets')), 'type' => 'delete_button', 'name' => 'butt_del', 'value' => _l('Delete')), array('type' => 'button', 'name' => 'cancel', 'value' => _l('Cancel'), 'class' => 'submit_button', 'onclick' => "window.location.href='" . module_ticket::link_open(false) . "';")));
if ((int) $ticket_id && module_ticket::can_edit_tickets()) {
    $form_actions['elements'][] = array('type' => 'submit', 'name' => 'mark_as_unread', 'value' => _l('Mark as unread'));
}
if ($prev_ticket && $prev_ticket !== true) {
    array_unshift($form_actions['elements'], array('type' => 'button', 'onclick' => "window.location.href='" . module_ticket::link_open($prev_ticket) . "';", 'name' => 'prev_ticket', 'value' => _l('Prev Ticket')));
}
if ($next_ticket) {
    $form_actions['elements'][] = array('type' => 'button', 'onclick' => "window.location.href='" . module_ticket::link_open($next_ticket) . "';", 'name' => 'next_ticket', 'value' => _l('Next Ticket'));
}
$action_buttons = module_form::generate_form_actions($form_actions);
?>



<script type="text/javascript">
    ucm.ticket.ticket_message_text_is_html = <?php 
echo module_config::c('ticket_message_text_or_html', 'html') == 'html' ? 'true' : 'false';
?>
;
    ucm.ticket.ticket_url = '<?php 
echo module_ticket::link_open($ticket_id, false);
?>
';
    $(function(){
        ucm.ticket.init();
Exemple #2
0
        echo '<strong>{' . htmlspecialchars($key) . '}</strong>';
        if ($val && !is_array($val)) {
            echo ' ' . htmlspecialchars($val);
        }
        echo '</li>';
    }
} else {
}
?>

	        </ul>
            <br/><br/>

        </td>
    </tr>


    </tbody>
</table>

    <?php 
$fieldset_data = array('heading' => array('type' => 'h2', 'main' => true, 'title' => 'Edit Template'), 'elements_before' => ob_get_clean());
echo module_form::generate_fieldset($fieldset_data);
unset($fieldset_data);
$form_actions = array('class' => 'action_bar action_bar_center', 'elements' => array(array('type' => 'save_button', 'name' => 'butt_save', 'value' => _l('Save')), array('ignore' => !(module_template::can_i('delete', 'Templates') && (int) $template_id > 0), 'type' => 'delete_button', 'name' => 'butt_del', 'value' => _l('Delete')), array('type' => 'button', 'name' => 'cancel', 'value' => _l('Cancel'), 'class' => 'submit_button', 'onclick' => "window.location.href='" . $module->link('template', array('template_id' => false)) . "';")));
echo module_form::generate_form_actions($form_actions);
?>


</form>
		                                    </small></div>
		                                    <?php 
                                        }
                                    }
                                    ?>
		                        </div>
		                        <?php 
                                }
                                ?>

		                    </div>
		                    <script type="text/javascript">
		                        set_add_del('license_codes_holder');
		                    </script>
		                    <?php 
                            })), array('message' => _l('To complete a previously started/failed upgrade please click the "Run Manual Upgrades" button.'))), 'elements_after' => module_form::generate_form_actions($form_actions));
                            $url = module_config::c('ucm_upgrade_url', 'http://api.ultimateclientmanager.com/upgrade.php');
                            if ($url != 'http://ultimateclientmanager.com/api/upgrade.php' && $url != 'http://api.ultimateclientmanager.com/upgrade.php') {
                                $fieldset_data['elements_before'] = '<div class="error_text text-center">Warning, "ucm_upgrade_url" setting is incorrect. Please contact <a href="http://ultimateclientmanager.com/support/support-ticket/">Support</a></div>';
                            }
                            echo module_form::generate_fieldset($fieldset_data);
                            unset($fieldset_data);
                            ?>
	    </form>

	<?php 
                            hook_handle_callback('layout_column_half', 2);
                            if (!isset($setup_upgrade_hack) && module_config::c('upgrade_page_show_extra_info', 1)) {
                                $fieldset_data = array('heading' => array('title' => 'Latest News', 'type' => 'h3'), 'elements_before' => '<iframe src="//ultimateclientmanager.com/api/info.php?codes=' . htmlspecialchars(module_config::c('_installation_code')) . '" frameborder="0" style="width:100%; height:600px; background: transparent" ALLOWTRANSPARENCY="true"></iframe>');
                                echo module_form::generate_fieldset($fieldset_data);
                                unset($fieldset_data);