PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
ticketing-old
/
include
/
staff
/
templates
<?php $info=($_POST && $errors)?Format::input($_POST):@Format::htmlchars($org->getInfo()); if (!$info['title']) $info['title'] = Format::htmlchars($org->getName()); ?> <h3 class="drag-handle"><?php echo $info['title']; ?></h3> <b><a class="close" href="#"><i class="icon-remove-circle"></i></a></b> <hr/> <?php if ($info['error']) { echo sprintf('<p id="msg_error">%s</p>', $info['error']); } elseif ($info['msg']) { echo sprintf('<p id="msg_notice">%s</p>', $info['msg']); } ?> <ul class="tabs" id="orgprofile"> <li class="active"><a href="#profile" ><i class="icon-edit"></i> <?php echo __('Fields'); ?></a></li> <li><a href="#contact-settings" ><i class="icon-fixed-width icon-cogs faded"></i> <?php echo __('Settings'); ?></a></li> </ul> <form method="post" class="org" action="<?php echo $action; ?>" data-tip-namespace="org"> <div id="orgprofile_container"> <div class="tab_content" id="profile" style="margin:5px;"> <?php $action = $info['action'] ? $info['action'] : ('#orgs/'.$org->getId()); if ($ticket && $ticket->getOwnerId() == $user->getId()) $action = '#tickets/'.$ticket->getId().'/user'; ?> <input type="hidden" name="id" value="<?php echo $org->getId(); ?>" /> <table width="100%"> <?php if (!$forms) $forms = $org->getForms(); foreach ($forms as $form) $form->render(); ?> </table> </div> <div class="hidden tab_content" id="contact-settings" style="margin:5px;"> <table style="width:100%"> <tbody> <tr> <td width="180"> <?php echo __('Account Manager'); ?>: </td> <td> <select name="manager"> <option value="0" selected="selected">— <?php echo __('None'); ?> —</option><?php if ($users=Staff::getStaffMembers(array('available' => true, 'staff' => $thisstaff))) { ?> <optgroup label="<?php echo sprintf(__('Agents (%d)'), count($users)); ?>"> <?php foreach($users as $id => $name) { $k = "s$id"; echo sprintf('<option value="%s" %s>%s</option>', $k,(($info['manager']==$k)?'selected="selected"':''),$name); } echo '</optgroup>'; } if ($teams=Team::getActiveTeams()) { ?> <optgroup label="<?php echo sprintf(__('Teams (%d)'), count($teams)); ?>"> <?php foreach($teams as $id => $name) { $k="t$id"; echo sprintf('<option value="%s" %s>%s</option>', $k,(($info['manager']==$k)?'selected="selected"':''),$name); } echo '</optgroup>'; } ?> </select> <br/><span class="error"><?php echo $errors['manager']; ?></span> </td> </tr> <tr> <td width="180"> <?php echo __('Auto-Assignment'); ?>: </td> <td> <input type="checkbox" name="assign-am-flag" value="1" <?php echo $info['assign-am-flag']?'checked="checked"':''; ?>> <?php echo __( 'Assign tickets from this organization to the <em>Account Manager</em>'); ?> </tr> <tr> <td width="180"> <?php echo __('Primary Contacts'); ?>: </td> <td> <select name="contacts[]" id="primary_contacts" multiple="multiple" data-placeholder="<?php echo __('Select Contacts'); ?>"> <option value=""></option> <?php foreach ($org->allMembers() as $u) { ?> <option value="<?php echo $u->id; ?>" <?php if ($u->isPrimaryContact()) echo 'selected="selected"'; ?>><?php echo $u->getName(); ?></option> <?php } ?> </select> <br/><span class="error"><?php echo $errors['contacts']; ?></span> </td> </tr> <tr> <td width="180"> <?php echo __('Ticket Sharing'); ?>: </td> <td> <select name="sharing"> <option value=""><?php echo __('Disable'); ?></option> <option value="sharing-primary" <?php echo $info['sharing-primary'] ? 'selected="selected"' : ''; ?>><?php echo __('Primary contacts see all tickets'); ?></option> <option value="sharing-all" <?php echo $info['sharing-all'] ? 'selected="selected"' : ''; ?>><?php echo __('All members see all tickets'); ?></option> </select> <i class="help-tip icon-question-sign" href="#org_sharing"></i> </td> </tr> <tr> <th colspan="2"> <?php echo __('Automated Collaboration'); ?>: </th> </tr> <tr> <td width="180"> <?php echo __('Primary Contacts'); ?>: </td> <td> <input type="checkbox" name="collab-pc-flag" value="1" <?php echo $info['collab-pc-flag']?'checked="checked"':''; ?>> <?php echo __('Add to all tickets from this organization'); ?> </td> </tr> <tr> <td width="180"> <?php echo __('Organization Members'); ?>: </td> <td> <input type="checkbox" name="collab-all-flag" value="1" <?php echo $info['collab-all-flag']?'checked="checked"':''; ?>> <?php echo __('Add to all tickets from this organization'); ?> </td> </tr> <tr> <th colspan="2"> <?php echo __('Email Domain'); ?> <i class="help-tip icon-question-sign" href="#email_domain"></i> </th> </tr> <tr> <td style="width:180px"> <?php echo __('Auto Add Members From'); ?>: </td> <td> <input type="text" size="40" maxlength="256" name="domain" value="<?php echo $info['domain']; ?>" /> <br/><span class="error"><?php echo $errors['domain']; ?></span> </td> </tr> </tbody> </table> </div> </div> <div class="clear"></div> <hr> <p class="full-width"> <span class="buttons pull-left"> <input type="reset" value="<?php echo __('Reset'); ?>"> <input type="button" name="cancel" class="<?php echo $account ? 'cancel' : 'close'; ?>" value="<?php echo __('Cancel'); ?>"> </span> <span class="buttons pull-right"> <input type="submit" value="<?php echo __('Update Organization'); ?>"> </span> </p> </form> <script type="text/javascript"> $(function() { $('a#editorg').click( function(e) { e.preventDefault(); $('div#org-profile').hide(); $('div#org-form').fadeIn(); return false; }); $(document).on('click', 'form.org input.cancel', function (e) { e.preventDefault(); $('div#org-form').hide(); $('div#org-profile').fadeIn(); return false; }); $("#primary_contacts").select2({width: '300px'}); }); </script>
[+]
..
[-] 2fas.tmpl.php
[edit]
[-] advanced-search-criteria.tmpl.php
[edit]
[-] advanced-search-field.tmpl.php
[edit]
[-] advanced-search.tmpl.php
[edit]
[-] assign.tmpl.php
[edit]
[-] collaborators-preview.tmpl.php
[edit]
[-] collaborators.tmpl.php
[edit]
[-] confirm.tmpl.php
[edit]
[-] content-manage.tmpl.php
[edit]
[-] delete.tmpl.php
[edit]
[-] dynamic-field-config.tmpl.php
[edit]
[-] dynamic-form-fields-view.tmpl.php
[edit]
[-] dynamic-form-simple.tmpl.php
[edit]
[-] dynamic-form.tmpl.php
[edit]
[-] email-basicauth.tmpl.php
[edit]
[-] email-mailbox.tmpl.php
[edit]
[-] email-oauth2auth.tmpl.php
[edit]
[-] email-smtp.tmpl.php
[edit]
[-] export.tmpl.php
[edit]
[-] faq-print.tmpl.php
[edit]
[-] field-edit.tmpl.php
[edit]
[-] field-view.tmpl.php
[edit]
[-] form-manage.tmpl.php
[edit]
[-] inline-form.tmpl.php
[edit]
[-] list-import.tmpl.php
[edit]
[-] list-item-preview.tmpl.php
[edit]
[-] list-item-properties.tmpl.php
[edit]
[-] list-item-row.tmpl.php
[edit]
[-] list-items.tmpl.php
[edit]
[-] mark-as.tmpl.php
[edit]
[-] merge-preview.tmpl.php
[edit]
[-] merge-tickets.tmpl.php
[edit]
[-] navigation.tmpl.php
[edit]
[-] note.tmpl.php
[edit]
[-] notes.tmpl.php
[edit]
[-] org-delete.tmpl.php
[edit]
[-] org-lookup.tmpl.php
[edit]
[-] org-profile.tmpl.php
[edit]
[-] org.tmpl.php
[edit]
[-] plugin-instance-modal.tmpl.php
[edit]
[-] plugin-instance.tmpl.php
[edit]
[-] plugin-instances.tmpl.php
[edit]
[-] queue-column-add.tmpl.php
[edit]
[-] queue-column-condition-prop.tmpl.php
[edit]
[-] queue-column-condition.tmpl.php
[edit]
[-] queue-column-edit.tmpl.php
[edit]
[-] queue-column.tmpl.php
[edit]
[-] queue-columns.tmpl.php
[edit]
[-] queue-export.tmpl.php
[edit]
[-] queue-fields.tmpl.php
[edit]
[-] queue-navigation.tmpl.php
[edit]
[-] queue-preview.tmpl.php
[edit]
[-] queue-quickfilter.tmpl.php
[edit]
[-] queue-savedsearches-nav.tmpl.php
[edit]
[-] queue-sort.tmpl.php
[edit]
[-] queue-sorting-add.tmpl.php
[edit]
[-] queue-sorting-edit.tmpl.php
[edit]
[-] queue-sorting.tmpl.php
[edit]
[-] queue-subnavigation.tmpl.php
[edit]
[-] queue-tickets.tmpl.php
[edit]
[-] quick-add-role.tmpl.php
[edit]
[-] quick-add.tmpl.php
[edit]
[-] refer.tmpl.php
[edit]
[-] release.tmpl.php
[edit]
[-] reset-agent-permissions.tmpl.php
[edit]
[-] savedqueue-settings.tmpl.php
[edit]
[-] schedule-add.tmpl.php
[edit]
[-] schedule-diagnostic.tmpl.php
[edit]
[-] schedule-entries.tmpl.php
[edit]
[-] schedule-entry.tmpl.php
[edit]
[-] schedule-holidays.tmpl.php
[edit]
[-] sequence-manage.tmpl.php
[edit]
[-] set-password.tmpl.php
[edit]
[-] simple-form.tmpl.php
[edit]
[-] status-options.tmpl.php
[edit]
[-] sub-navigation.tmpl.php
[edit]
[-] task-edit.tmpl.php
[edit]
[-] task-preview.tmpl.php
[edit]
[-] task-print.tmpl.php
[edit]
[-] task-status.tmpl.php
[edit]
[-] task-view.tmpl.php
[edit]
[-] task.tmpl.php
[edit]
[-] tasks-actions.tmpl.php
[edit]
[-] tasks-queue-sort.tmpl.php
[edit]
[-] thread-email-headers.tmpl.php
[edit]
[-] thread-email-recipients.tmpl.php
[edit]
[-] thread-entries-preview.tmpl.php
[edit]
[-] thread-entries.tmpl.php
[edit]
[-] thread-entry-edit.tmpl.php
[edit]
[-] thread-entry-resend.tmpl.php
[edit]
[-] thread-entry-view.tmpl.php
[edit]
[-] thread-entry.tmpl.php
[edit]
[-] thread-event.tmpl.php
[edit]
[-] ticket-preview.tmpl.php
[edit]
[-] ticket-print.tmpl.php
[edit]
[-] ticket-status.tmpl.php
[edit]
[-] tickets-actions.tmpl.php
[edit]
[-] tickets.tmpl.php
[edit]
[-] timezone.tmpl.php
[edit]
[-] transfer.tmpl.php
[edit]
[-] user-account.tmpl.php
[edit]
[-] user-delete.tmpl.php
[edit]
[-] user-import.tmpl.php
[edit]
[-] user-lookup.tmpl.php
[edit]
[-] user.tmpl.php
[edit]
[-] user-register.tmpl.php
[edit]
[-] users.tmpl.php
[edit]