コード例 #1
0
 * @copyright      2001-2015 Kayako
 * @license        https://www.freebsd.org/copyright/freebsd-license.html
 * @link           https://github.com/kayako/joomla-integration
 */
defined('_JEXEC') or die;
require_once 'modules/mod_kayako/includes/kayako-php-api/kyIncludes.php';
require_once 'modules/mod_kayako/helper.php';
$email = JFactory::getUser()->email;
if (empty($email) || !isset($email)) {
    throw new kyException();
}
$input = JFactory::getApplication()->input;
$get_dep_id = $input->get('dep_type');
$ticket_object = new JTickets();
$ticket_object->fetchAllDepartment();
$ticket_object->view($get_dep_id);
?>

<link rel="stylesheet" type="text/css" href="modules/mod_kayako/resources/css/style.css">
<div class="<?php 
echo $params->get('moduleclass_sfx');
?>
">
	<div>
		<form method="POST" name="department_form">
			<select name="dep_type" onchange="this.form.submit()">
				<option value="0">Select a department</option>
				<?php 
foreach ($ticket_object->all_departments as $key => $value) {
    ?>
					<option value="<?php