?> </legend> <table class="admintable"> <tr> <td width="135" align="right" class="key"> <label for="title"> <?php echo JText::_("TITLE"); ?> : </label> </td> <td> <input class="text_area" type="text" name="title" id="title" size="32" maxlength="250" value="<?php echo FSS_Helper::escape($this->faqcat->title); ?> " /> </td> </tr> <?php FSSAdminHelper::LA_Form($this->faqcat); ?> <tr> <td width="135" align="right" class="key"> <label for="image"> <?php echo JText::_("IMAGE"); ?> : </label>
if (substr($product['image'], 0, 1) != "/") { ?> <img class='media-object' src='<?php echo JURI::root(true); ?> /images/fss/products/<?php echo FSS_Helper::escape($product['image']); ?> ' width='64' height='64'> <?php } else { ?> <img class='media-object' src='<?php echo JURI::root(true); echo FSS_Helper::escape($product['image']); ?> ' width='64' height='64'> <?php } ?> </a> </div> <?php } ?> <div class="media-body accordion-group" style="border:0;padding:0;margin:0"> <div <?php if ($this->test_show_prod_mode == "accordian") {
} ?> ><?php echo $pri->title; ?> </option> <?php } ?> </select> <?php } else { ?> <span style='color:<?php echo FSS_Helper::escape($this->ticket->pcolor); ?> '> <?php echo FSS_Translate_Helper::TrF('title', $this->ticket->priority, $this->ticket->ptl); ?> </span> <?php } ?> </td> <?php FSS_Table::ColEnd(); } ?>
?> </div> </td> </tr> <tr> <td align="right" class="key"> <label for="name"> <?php echo JText::_('CONNECT_STRING_OVERRIDE'); ?> : </label> </td> <td colspan="2"> <input class="text_area" type="text" name="connectstring" id="connectstring" style="width: 100%" size="80" maxlength="250" value="<?php echo FSS_Helper::escape($this->item->connectstring); ?> " /> <?php echo JText::_('DO_NOT_SET_THIS_UNLESS_YOU_KNOW_WHAT_YOU_ARE_DOING'); ?> </td> </tr> <tr> <td align="right" class="key"> <label for="question"> <?php echo JText::_('Import EMails as HTML'); ?> : </label>
?> " method="post" name="adminForm" id="adminForm"> <?php $ordering = strpos($this->lists['order'], "ordering") !== FALSE; JHTML::_('behavior.modal'); ?> <div id="editcell"> <table> <tr> <td width="100%"> <?php echo JText::_("FILTER"); ?> : <input type="text" name="search" id="search" value="<?php echo FSS_Helper::escape($this->lists['search']); ?> " class="text_area" onchange="document.adminForm.submit();" title="<?php echo JText::_("FILTER_BY_TITLE_OR_ENTER_ARTICLE_ID"); ?> "/> <button class='btn btn-default' onclick="this.form.submit();"><?php echo JText::_("GO"); ?> </button> <button class='btn btn-default' onclick="document.getElementById('search').value='';this.form.submit();"><?php echo JText::_("RESET"); ?> </button> </td> <td nowrap="nowrap">
</table> <?php echo $this->pagination->getListFooter(); ?> <input type="hidden" name="filter_order" value="<?php echo FSS_Helper::escape($this->lists['order']); ?> " /> <input type="hidden" name="filter_order_Dir" value="<?php echo FSS_Helper::escape($this->lists['order_Dir']); ?> " /> <input type="hidden" name="mode" value="<?php echo FSS_Helper::escape(FSS_Input::getCmd('mode')); ?> " /> <input type="hidden" name="ticketid" value="<?php echo (int) FSS_Input::getInt('ticketid'); ?> " /> </form> </div> <div class="modal-footer"> <?php if ($this->mode == "user") { ?>
<div class="controls"> <input type="text" name="admin_create_email" class="inputbox" value="<?php echo FSS_Helper::escape(FSS_Input::getString('admin_create_email')); ?> "> </div> </div> <div class="control-group"> <label class="control-label"><?php echo JText::_("NAME"); ?> </label> <div class="controls"> <input type="text" name="admin_create_name" class="inputbox" value="<?php echo FSS_Helper::escape(FSS_Input::getString('admin_create_name')); ?> "> </div> </div> <div class="control-group"> <label class="control-label"></label> <div class="controls"> <input class='btn btn-primary' type="submit" id="new_ticket" value="<?php echo JText::_("OPEN_TICKET_FOR_USER"); ?> "> <a class='btn btn-default' href="<?php echo FSSRoute::_('index.php?option=com_fss&view=admin_support'); ?>
?> </td> </tr> <tr> <td width="135" align="right" class="key"> <label for="title"> <?php echo JText::_("TARGET"); ?> : </label> </td> <td> <input type="text" name="target" id="target" size="32" maxlength="250" value="<?php echo FSS_Helper::escape($this->mainmenu->target); ?> " /> </td> <td><?php echo JText::_('ONLY_WHEN_LINK'); ?> </td> </tr> <?php //endif; ?> </table> </fieldset> </div> <div class="clr"></div>
<div class="pull-left"> <?php if ($item['icon'] && $this->hideicons == 0) { ?> <a href='<?php echo $this->getLink($item); ?> ' class='pull-left' target='<?php echo $item['target']; ?> '> <img src='<?php echo JURI::base(); ?> images/fss/menu/<?php echo FSS_Helper::escape($item['icon']); ?> ' width="<?php echo (int) $this->imagewidth; ?> " height="<?php echo (int) $this->imageheight; ?> " /> </a> <?php } ?> </div> <div class="media-body"> <h4 class="media-heading">
echo FSSCF::FieldHeader($this->field, false, false); ?> </label> <div class="controls"> <?php echo $input; ?> </div> </div> <input type="hidden" name="fieldid" value="<?php echo FSS_Helper::escape($this->field['id']); ?> "> <input type="hidden" name="ticketid" value="<?php echo FSS_Helper::escape($this->ticket->id); ?> "> </div> <div class="modal-footer"> <a class="btn btn-primary" href='#' onclick="jQuery('#fssForm').submit();return false;"><?php echo JText::_("SAVE"); ?> </a> <a class='btn btn-default' onclick='parent.fss_modal_hide(); return false;'><?php echo JText::_("CANCEL"); ?> </a> </div>
<?php if (FSS_Permission::auth("core.create", "com_fss.faq")) { ?> <div style="display: none;"> <form id="ticket_to_faq" action="<?php echo JRoute::_("index.php?option=com_fss&view=admin_content&type=faqs&what=new"); ?> " method="POST" target="_blank"> <input name="option" value="com_fss" /> <input name="view" value="admin_content" /> <input name="type" value="faqs" /> <input name="what" value="new" /> <input name="question" value="<?php echo FSS_Helper::escape($this->ticket->title); ?> " /> <textarea name="answer"><?php foreach ($this->ticket->messages as $message) { if ($message->admin == 3) { continue; } $msg = FSS_Helper::ParseBBCode($message->body, $message); echo FSS_Helper::escape($msg) . "\n"; //echo "<hr />\n"; } ?> </textarea> </form> </div> <?php }
* @copyright (C) 2013 Freestyle Joomla * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html **/ defined('_JEXEC') or die; ?> <?php if (count($this->ticket->tags) == 0) { ?> <?php echo JText::_('NONE_'); } else { ?> <?php foreach ($this->ticket->tags as $tag) { ?> <div class="fss_tag label label-info" id="tag_<?php echo FSS_Helper::escape($tag); ?> "> <button class="close" onclick="tag_remove('<?php echo FSS_Helper::escape($tag); ?> ');return false;">×</button> <?php echo $tag; ?> </div> <?php } }
?> " rows="4" class="input-xxlarge" style="height:150px"><?php echo FSS_Helper::escape($this->item[$field->field]); ?> </textarea> <?php } elseif ($field->type == "tags") { ?> <textarea name="<?php echo $field->input_name; ?> " id="<?php echo $field->field; ?> " rows="4" class="input-xxlarge" style="height:150px"><?php echo FSS_Helper::escape($this->item[$field->field]); ?> </textarea> <?php } elseif ($field->type == "related") { ?> <p> <button class="btn btn-default fss_content_related_button" id="relbtn_<?php echo $field->field; ?> "> <?php echo $field->rel_button_txt; ?> </button> </p>
static function FieldInput(&$field, &$errors, $errortype = "ticket", $context = array(), $showhelp = false) { $field['min_popup_height'] = 0; $output = ""; $id = $field['id']; $userid = 0; if (array_key_exists('userid', $context)) { $userid = $context['userid']; } $ticketid = 0; if (array_key_exists('ticketid', $context)) { $ticketid = $context['ticketid']; } // if its a per user field, try to load the value $current = $field['default']; if ($field['peruser'] && $errortype == "ticket") { $uservalues = FSSCF::GetUserValues($userid, $ticketid); if (array_key_exists($field['id'], $uservalues)) { $current = $uservalues[$field['id']]['value']; } } $current = FSS_Input::getString("custom_{$id}", $current); if ($field['type'] == "text") { $aparams = FSSCF::GetValues($field); $text_max = $aparams['text_max']; $text_size = $aparams['text_size']; $output = "<input type='text' class='input-large custom_" . $field['alias'] . "' name='custom_{$id}' id='custom_{$id}' value=\"" . FSS_Helper::escape($current) . "\" maxlength='{$text_max}' size='{$text_size}' "; if ($field['required']) { $output .= " required "; } $output .= " placeholder='" . htmlentities($field['description'], ENT_QUOTES, "utf-8") . "' "; $output .= ">\n"; } if ($field['type'] == "radio") { $values = FSSCF::GetValues($field); $output = ""; if (count($values) > 0) { foreach ($values as $value) { $output .= "<input class='custom_" . $field['alias'] . "' type='radio' id='custom_{$id}' name='custom_{$id}' value=\"" . FSS_Helper::escape($value) . "\""; if ($value == $current) { $output .= " checked"; } $output .= ">{$value}<br>\n"; } } } if ($field['type'] == "combo") { $values = FSSCF::GetValues($field); $output = "<select class='custom_" . $field['alias'] . "' name='custom_{$id}' id='custom_{$id}'>\n"; $output .= "<option value=''>" . JText::_("PLEASE_SELECT") . "</option>\n"; if (count($values) > 0) { foreach ($values as $value) { $output .= "<option value=\"" . FSS_Helper::escape($value) . "\""; if ($value == $current) { $output .= " selected"; } $output .= ">{$value}</option>\n"; } } $output .= "</select>"; } if ($field['type'] == "area") { $aparams = FSSCF::GetValues($field); $area_width = $aparams['area_width']; $area_height = $aparams['area_height']; $height = $area_height * 15; $output = "<textarea class='custom_" . $field['alias'] . "' name='custom_{$id}' id='custom_{$id}' cols='{$area_width}' rows='{$area_height}' style='width:95%;height:{$height}px'>{$current}</textarea>\n"; } if ($field['type'] == "checkbox") { $output = "<input class='custom_" . $field['alias'] . "' type='checkbox' name='custom_{$id}' id='custom_{$id}'"; if ($current == "on") { $output .= " checked"; } $output .= ">\n"; } if ($field['type'] == "plugin") { $aparams = FSSCF::GetValues($field); $plugin = FSSCF::get_plugin($aparams['plugin']); $field['min_popup_height'] = $plugin->min_popup_height; $output = $plugin->Input($current, $aparams['plugindata'], $context, $id); } $id = "custom_" . $field['id']; if (array_key_exists($id, $errors)) { if ($errortype == "ticket") { $output .= '<span class="help-inline">' . $errors[$id] . '</span>'; } else { $output .= '</td><td class="fss_must_have_field">' . $errors[$id]; } } else { if ($showhelp) { $output .= '<span class="help-inline">' . $field['helptext'] . '</span>'; } } return $output; }
?> " /> </td> </tr> <tr> <td width="135" align="right" class="key"> <label for="title"> <?php echo JText::_("DESCRIPTION"); ?> : </label> </td> <td> <input class="text_area" type="text" name="description" id="description" size="32" maxlength="250" value="<?php echo FSS_Helper::escape($this->ticketgroup->description); ?> " /> </td> </tr> <tr> <td width="150" align="right" class="key"> <label for="description"> <?php echo JText::_("ALL_SEE"); ?> : </label> </td> <td> <?php
$k = 1 - $k; } ?> </table> <?php echo $this->pagination->getListFooter(); ?> <input type="hidden" name="filter_order" value="<?php echo FSS_Helper::escape($this->lists['order']); ?> " /> <input type="hidden" name="filter_order_Dir" value="<?php echo FSS_Helper::escape($this->lists['order_Dir']); ?> " /> </form> </div> <div class="modal-footer"> <a href='#' class="btn btn-default" onclick='parent.fss_modal_hide(); return false;'><?php echo JText::_('CANCEL'); ?> </a> </div> <script>
?> " /> </td> </tr> <tr> <td align="right" class="key"> <label for="website"> <?php echo JText::_("WEBSITE"); ?> : </label> </td> <td> <input class="text_area" type="text" name="website" id="website" size="32" maxlength="250" value="<?php echo FSS_Helper::escape($this->test->website); ?> " /> </td> </tr> <tr> <td align="right" class="key"> <label for="body"> <?php echo JText::_("BODY"); ?> : </label> </td> <td> <textarea id="body" name="body" rows="20" cols="60" style='width: 500px'><?php
echo $this->lists['catid']; ?> </td> </tr> <tr> <td width="135" align="right" class="key"> <label for="title"> <?php echo JText::_("TITLE"); ?> : </label> </td> <td> <input class="text_area" type="text" name="title" id="title" size="32" maxlength="250" value="<?php echo FSS_Helper::escape($this->kbart->title); ?> " /> </td> </tr> <?php FSSAdminHelper::LA_Form($this->kbart); ?> <tr> <td width="135" align="right" class="key"> <label for="eh"> <?php echo JText::_("PRODUCTS"); ?> : </label>
</div> <div class="control-group"> <label class="control-label"><?php echo JText::_('GROUPING'); ?> </label> <div class="controls"> <input type="text" name="grouping" value="<?php echo FSS_Helper::escape($this->canned_item->grouping); ?> " /> </div> </div> <p> <textarea style='width:97%; height: 270px;' name='content' id='content' class="sceditor" rows='7' cols='40'><?php echo FSS_Helper::escape($this->canned_item->content); ?> </textarea> </p> </div> <div class="modal-footer"> <button class="btn btn-primary" onclick="jQuery('#mainform').submit(); return false;"><?php echo JText::_('SAVE'); ?> </button> <a class="btn btn-default" href="<?php echo FSSRoute::_("index.php?option=com_fss&view=admin_support&tmpl=component&layout=canned"); ?> "><?php
?> <div class="form-horizontal form-condensed"> <h4><?php echo JText::_("TICKET_LIST"); ?> </h4> <div class="control-group"> <label class="control-label"><?php echo JText::_("DEFAULT_PER_PAGE"); ?> </label> <div class="controls"> <input type="text" class="input-mini" name='per_page' value='<?php echo FSS_Helper::escape(SupportUsers::getSetting('per_page')); ?> ' size="5"> <span class="help-inline"><?php echo JText::_('MYSETHELP_PER_PAGE'); ?> </span> </div> </div> <h4><?php echo JText::_("TICKET_VIEW"); ?> </h4> <div class="control-group">
<?php if (substr($cat['image'], 0, 1) == "/") { ?> <img class="media-object" src='<?php echo JURI::root(true); echo FSS_Helper::escape($cat['image']); ?> ' width='64' height='64'> <?php } else { ?> <img class="media-object" src='<?php echo JURI::root(true); ?> /images/fss/faqcats/<?php echo FSS_Helper::escape($cat['image']); ?> ' width='64' height='64'> <?php } ?> <?php } ?> </a> <div class="media-body"> <div <?php if ($cat['image']) { ?> style="min-height: 64px"<?php
<label class="control-label"><?php echo JText::_('PERSONAL'); ?> </label> <div class="controls"> <input type="checkbox" name="personal" value="1" <?php if ($this->sig_item->personal) { echo "checked"; } ?> /> </div> </div> <p> <textarea style='width:97%; height:270px;' name='content' id='content' class="sceditor" rows='7' cols='40'><?php echo FSS_Helper::escape($this->sig_item->content); ?> </textarea> </p> </div> <div class="modal-footer"> <button class="btn btn-primary" onclick="jQuery('#mainform').submit(); return false;"><?php echo JText::_('SAVE'); ?> </button> <a class="btn btn-default" href="<?php echo FSSRoute::_("index.php?option=com_fss&view=admin_support&tmpl=component&layout=signature"); ?> "><?php
?> <?php FSS_Helper::HelpText("support_open_main_message_before"); ?> <div class="control-group"> <textarea name='body' id='body' class='sceditor' rows='<?php echo (int) FSS_Settings::get('support_user_reply_height'); ?> ' cols='<?php echo (int) FSS_Settings::get('support_user_reply_width'); ?> ' style='width:95%;height:<?php echo (int) (FSS_Settings::get('support_user_reply_height') * 15 + 80); ?> px'><?php echo FSS_Helper::escape($this->ticket['body']); ?> </textarea> </div> <?php FSS_Helper::HelpText("support_open_main_message_after"); ?> <?php $has_message_details = true; } ?> </div> <?php if (!$has_message_details) { ?>
<i class="icon-arrow-left"></i> <?php echo JText::_('BACK_TO_REPORTS'); ?> </a> </p> <form action="<?php echo JRoute::_('index.php'); ?> " name='report_params' id='report_params'> <input type="hidden" name="option" value="com_fss" /> <input type="hidden" name="view" value="admin_report" /> <input type="hidden" name="report" value="<?php echo FSS_Helper::escape(FSS_Input::getCmd('report')); ?> " /> <div class="well well-small form-horizontal form-condensed"> <?php echo $this->report->getFilters(); ?> </div> <?php if (JDEBUG || FSS_Settings::get('debug_reports')) { ?> <div style="display:none;" id="sql"> <h5><?php echo JText::_('BASE_SQL');
<?php } else { ?> <span class="help-inline"><?php echo JText::_('TIME_HOURS'); ?> : </span><input type="text" name="timetaken_hours" id="timetaken_hours" style="width: 40px" value="<?php echo FSS_Helper::escape($this->taken_hours); ?> " /> <span class="help-inline"><?php echo JText::_('TIME_MINS'); ?> : </span><input type="text" name="timetaken_mins" id="timetaken_mins" style="width: 40px" value="<?php echo FSS_Helper::escape($this->taken_mins); ?> " /> <a class="btn btn-default" onclick="jQuery('#timetaken_hours').val('0');jQuery('#timetaken_mins').val('0');return false;"><i class="icon-cancel"></i></a> <?php } ?> </div> </div> <?php } ?> <?php include $this->snippet(JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'views' . DS . 'admin_support' . DS . 'snippet' . DS . '_reply_' . $this->reply_type . '.php'); ?>
</tr> <?php FSSAdminHelper::LA_Form($this->faq); ?> <tr> <td width="135" align="right" class="key"> <label for="question"> <?php echo JText::_("QUESTION"); ?> : </label> </td> <td> <textarea name="question" id="question" cols="80" rows="4" style="width:544px;"><?php echo FSS_Helper::escape($this->faq->question); ?> </textarea> </td> </tr> <tr> <td width="135" align="right" class="key"> <label for="answer"> <?php echo JText::_("ANSWER"); ?> : </label> </td> <td> <?php
?> </table> <input type="hidden" name="groupid" value="<?php echo FSS_Input::getInt('groupid'); ?> " /> <input type="hidden" name="what" value="pickuser" /> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="filter_order" value="<?php echo FSS_Helper::escape($this->order); ?> " /> <input type="hidden" name="filter_order_Dir" value="<?php echo FSS_Helper::escape($this->order_Dir); ?> " /> <input type="hidden" name="limit_start" id="limitstart" value="<?php echo (int) $this->limit_start; ?> "> </form> </div> <div class="modal-footer"> <a href='#' class="btn btn-primary" id="addlink" onclick='document.fssForm.what.value="adduser";document.fssForm.submit();return false;'><?php echo JText::_('ADD_USERS_TO_GROUP'); ?> </a>
echo FSSRoute::_('index.php?limitstart=0&option=com_fss&layout=open&view=ticket'); ?> " method="post" name="fssForm" <?php if (!FSS_Settings::get('support_advanced_search')) { echo 'style="display: none;"'; } ?> > <div class="input-append"> <input type="text" id='deptsearch' name='deptsearch' class="input-medium" placeholder="<?php echo JText::_("SEARCH_FOR_A_DEPARTMENT"); ?> " value="<?php echo FSS_Helper::escape($this->search); ?> "> <input id='dept_submit' class='btn btn-primary' type='submit' value='<?php echo JText::_("SEARCH"); ?> ' /> <input id='dept_reset' class='btn btn-default' type='submit' value='<?php echo JText::_("RESET"); ?> ' /> </div> <input type=hidden name='searchtype' value='departments' /> <input type="hidden" name="limitstart" id='limitstart' value="0"> <input type="hidden" name="limit" id='limit' value="<?php
?> </legend> <table class="admintable"> <tr> <td width="135" align="right" class="key"> <label for="word"> <?php echo JText::_("WORD"); ?> : </label> </td> <td> <input class="text_area" type="text" name="word" id="word" size="32" maxlength="250" value="<?php echo FSS_Helper::escape($this->glossary->word); ?> " /> </td> </tr> <?php FSSAdminHelper::LA_Form($this->glossary); ?> <tr> <td width="135" align="right" class="key"> <label for="word"> <?php echo JText::_("Case_Sensitive"); ?> : </label>
?> <?php } else { ?> <span class="help-inline"> <?php echo JText::_('NO_TAGS_SELECTED'); ?> </span> <?php } ?> <input name="tags" id="tags" type="hidden" value="<?php echo FSS_Helper::escape(FSS_Input::getString('tags', '')); ?> "> </div> </div> <?php } ?> </div> <script> function resetadvanced() { <?php