PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
include
/
staff
/
templates
<?php global $thisstaff; $isCreate = (isset($options['mode']) && $options['mode'] == 'create'); if (isset($options['entry']) && $options['mode'] == 'edit' && $_POST && ($_POST['forms'] && !in_array($options['entry']->getId(), $_POST['forms'])) ) return; if (isset($options['entry']) && $options['mode'] == 'edit') { ?> <tbody> <?php } ?> <tr><td style="width:<?php echo $options['width'] ?: 150;?>px;"></td><td></td></tr> <?php // Keep up with the entry id in a hidden field to decide what to add and // delete when the parent form is submitted if (isset($options['entry']) && $options['mode'] == 'edit') { ?> <input type="hidden" name="forms[]" value="<?php echo $options['entry']->getId(); ?>" /> <?php } ?> <?php if ($form->getTitle()) { ?> <tr><th colspan="2"> <em> <?php if ($options['mode'] == 'edit') { ?> <div class="pull-right"> <?php if ($options['entry'] && $options['entry']->getDynamicForm()->get('type') == 'G') { ?> <a href="#" title="Delete Entry" onclick="javascript: $(this).closest('tbody').remove(); return false;"><i class="icon-trash"></i></a> <?php } ?> <i class="icon-sort" title="Drag to Sort"></i> </div> <?php } ?> <!--osta--> <strong><?php echo Format::htmlchars($form->getTitle()); ?></strong><br /> <span class="form-instructions"><?php echo Format::display($form->getInstructions()); ?></span> </em> <?php if ($form->getNotice()) echo sprintf('<p id="msg_warning">%s</p>', Format::htmlchars($form->getNotice())); ?> </th></tr> <?php } foreach ($form->getFields() as $field) { try { if (!$field->isEnabled()) continue; } catch (Exception $e) { // Not connected to a DynamicFormField } ?> <tr><?php if ($field->isBlockLevel()) { ?> <td colspan="2"> <?php } else { ?> <td class="multi-line <?php if ($field->isRequiredForStaff() || $field->isRequiredForClose()) echo 'required'; ?>" style="min-width:120px;" <?php if ($options['width']) echo "width=\"{$options['width']}\""; ?>> <?php echo Format::htmlchars($field->getLocal('label')); ?>:</td> <td><div style="position:relative"><?php } if ($field->isEditableToStaff() || $isCreate) { $field->render($options); ?> <?php if (!$field->isBlockLevel() && $field->isRequiredForStaff()) { ?> <span class="error">*</span> <?php } if ($field->isStorable() && ($a = $field->getAnswer()) && $a->isDeleted()) { ?><a class="action-button float-right danger overlay" title="Delete this data" href="#delete-answer" onclick="javascript:if (confirm('<?php echo __('You sure?'); ?>')) $.ajax({ url: 'ajax.php/form/answer/' +$(this).data('entryId') + '/' + $(this).data('fieldId'), type: 'delete', success: $.proxy(function() { $(this).closest('tr').fadeOut(); }, this) }); return false;" data-field-id="<?php echo $field->getAnswer()->get('field_id'); ?>" data-entry-id="<?php echo $field->getAnswer()->get('entry_id'); ?>"> <i class="icon-trash"></i> </a></div><?php } if ($a && !$a->getValue() && $field->isRequiredForClose() && get_class($field) != 'BooleanField') { ?><i class="icon-warning-sign help-tip warning" data-title="<?php echo __('Required to close ticket'); ?>" data-content="<?php echo __('Data is required in this field in order to close the related ticket'); ?>" /></i><?php } if ($field->get('hint') && !$field->isBlockLevel()) { ?> <br /><em style="color:gray;display:inline-block"><?php echo Format::viewableImages($field->getLocal('hint')); ?></em> <?php } foreach ($field->errors() as $e) { ?> <div class="error"><?php echo Format::htmlchars($e); ?></div> <?php } } else { $val = ''; if ($field->value) $val = $field->display($field->value); elseif (($a= $field->getAnswer())) $val = $a->display(); echo $val; }?> </div></td> </tr> <?php } if (isset($options['entry']) && $options['mode'] == 'edit') { ?> </tbody> <?php } ?>
[+]
..
[-] queue-export.tmpl.php
[edit]
[-] queue-preview.tmpl.php
[edit]
[-] queue-column-condition.tmpl.php
[edit]
[-] queue-sorting-add.tmpl.php
[edit]
[-] refer.tmpl.php
[edit]
[-] form-manage.tmpl.php
[edit]
[-] confirm.tmpl.php
[edit]
[-] mobile-sub-navigation.tmpl.php
[edit]
[-] queue-column-condition-prop.tmpl.php
[edit]
[-] user-lookup.tmpl.php
[edit]
[-] thread-entry.tmpl.php
[edit]
[-] quick-add-role.tmpl.php
[edit]
[-] simple-form.tmpl.php
[edit]
[-] sequence-manage.tmpl.php
[edit]
[-] reset-agent-permissions.tmpl.php
[edit]
[-] email-basicauth.tmpl.php
[edit]
[-] user-register.tmpl.php
[edit]
[-] mobile-queue-navigation.tmpl.php
[edit]
[-] thread-entry-edit.tmpl.php
[edit]
[-] queue-savedsearches-nav.tmpl.php
[edit]
[-] assign.tmpl.php
[edit]
[-] user-delete.tmpl.php
[edit]
[-] tickets.tmpl.php
[edit]
[-] export.tmpl.php
[edit]
[-] ticket-status.tmpl.php
[edit]
[-] merge-tickets.tmpl.php
[edit]
[-] notes.tmpl.php
[edit]
[-] queue-column-add.tmpl.php
[edit]
[-] user-import.tmpl.php
[edit]
[-] queue-fields.tmpl.php
[edit]
[-] dynamic-form-simple.tmpl.php
[edit]
[-] queue-quickfilter.tmpl.php
[edit]
[-] merge-preview.tmpl.php
[edit]
[-] field-edit.tmpl.php
[edit]
[-] org.tmpl.php
[edit]
[-] list-import.tmpl.php
[edit]
[-] thread-event.tmpl.php
[edit]
[-] tickets-actions.tmpl.php
[edit]
[-] queue-column-edit.tmpl.php
[edit]
[-] status-options.tmpl.php
[edit]
[-] navigation.tmpl.php
[edit]
[-] field-view.tmpl.php
[edit]
[-] tasks-queue-sort.tmpl.php
[edit]
[-] ticket-preview.tmpl.php
[edit]
[-] list-items.tmpl.php
[edit]
[-] thread-entries.tmpl.php
[edit]
[-] mobile-queue-subnavigation.tmpl.php
[edit]
[-] queue-tickets.tmpl.php
[edit]
[-] list-item-properties.tmpl.php
[edit]
[-] email-smtp.tmpl.php
[edit]
[-] release.tmpl.php
[edit]
[-] advanced-search.tmpl.php
[edit]
[-] schedule-holidays.tmpl.php
[edit]
[-] delete.tmpl.php
[edit]
[-] plugin-instance-modal.tmpl.php
[edit]
[-] thread-entry-view.tmpl.php
[edit]
[-] list-item-row.tmpl.php
[edit]
[-] faq-print.tmpl.php
[edit]
[-] sub-navigation.tmpl.php
[edit]
[-] plugin-instances.tmpl.php
[edit]
[-] collaborators.tmpl.php
[edit]
[-] list-item-preview.tmpl.php
[edit]
[-] task-edit.tmpl.php
[edit]
[-] set-password.tmpl.php
[edit]
[-] users.tmpl.php
[edit]
[-] queue-sort.tmpl.php
[edit]
[-] dynamic-field-config.tmpl.php
[edit]
[-] thread-email-recipients.tmpl.php
[edit]
[-] task-print.tmpl.php
[edit]
[-] org-delete.tmpl.php
[edit]
[-] 2fas.tmpl.php
[edit]
[-] advanced-search-criteria.tmpl.php
[edit]
[-] mark-as.tmpl.php
[edit]
[-] queue-subnavigation.tmpl.php
[edit]
[-] user-account.tmpl.php
[edit]
[-] queue-sorting.tmpl.php
[edit]
[-] advanced-search-field.tmpl.php
[edit]
[-] schedule-diagnostic.tmpl.php
[edit]
[-] schedule-entry.tmpl.php
[edit]
[-] inline-form.tmpl.php
[edit]
[-] task-view.tmpl.php
[edit]
[-] dynamic-form.tmpl.php
[edit]
[-] queue-navigation.tmpl.php
[edit]
[-] quick-add.tmpl.php
[edit]
[-] note.tmpl.php
[edit]
[-] thread-email-headers.tmpl.php
[edit]
[-] queue-sorting-edit.tmpl.php
[edit]
[-] queue-columns.tmpl.php
[edit]
[-] email-oauth2auth.tmpl.php
[edit]
[-] org-lookup.tmpl.php
[edit]
[-] user.tmpl.php
[edit]
[-] thread-entries-preview.tmpl.php
[edit]
[-] dynamic-form-fields-view.tmpl.php
[edit]
[-] savedqueue-settings.tmpl.php
[edit]
[-] tasks-actions.tmpl.php
[edit]
[-] thread-entry-resend.tmpl.php
[edit]
[-] plugin-instance.tmpl.php
[edit]
[-] content-manage.tmpl.php
[edit]
[-] timezone.tmpl.php
[edit]
[-] schedule-add.tmpl.php
[edit]
[-] task-status.tmpl.php
[edit]
[-] email-mailbox.tmpl.php
[edit]
[-] transfer.tmpl.php
[edit]
[-] collaborators-preview.tmpl.php
[edit]
[-] task.tmpl.php
[edit]
[-] mobile-navigation.tmpl.php
[edit]
[-] org-profile.tmpl.php
[edit]
[-] queue-column.tmpl.php
[edit]
[-] schedule-entries.tmpl.php
[edit]
[-] task-preview.tmpl.php
[edit]
[-] ticket-print.tmpl.php
[edit]
[-] .htaccess.disabled
[edit]