Exemple #1
0
 /**
  * Show list of the style elements for the currently edited topic component
  *
  * @param string $handler_id Name of the used handler
  * @param mixed &$data Data passed to the show method
  */
 public function _show_folders($handler_id, array &$data)
 {
     midgard_admin_asgard_plugin::asgard_header();
     $data['group'] =& $this->_group;
     midcom_show_style('midcom-admin-user-group-folders');
     midgard_admin_asgard_plugin::asgard_footer();
 }
Exemple #2
0
 /**
  * Show list of the style elements for the currently createed topic component
  *
  * @param string $handler_id Name of the used handler
  * @param mixed &$data Data passed to the show method
  */
 public function _show_create($handler_id, array &$data)
 {
     midgard_admin_asgard_plugin::asgard_header();
     $data['person'] =& $this->_person;
     midcom_show_style('midcom-admin-user-person-create');
     midgard_admin_asgard_plugin::asgard_footer();
 }
Exemple #3
0
 /**
  * Show list of the style elements for the currently edited topic component
  *
  * @param string $handler_id Name of the used handler
  * @param mixed &$data Data passed to the show method
  */
 public function _show_list($handler_id, array &$data)
 {
     midgard_admin_asgard_plugin::asgard_header();
     $data['config'] =& $this->_config;
     midcom_show_style('midcom-admin-libs-list-header');
     $data['even'] = false;
     foreach ($this->_libs as $name => $lib) {
         $data['name'] = $name;
         midcom_show_style('midcom-admin-libs-list-item');
         if (!$data['even']) {
             $data['even'] = true;
         } else {
             $data['even'] = false;
         }
     }
     midcom_show_style('midcom-admin-libs-list-footer');
     midgard_admin_asgard_plugin::asgard_footer();
 }
Exemple #4
0
 /**
  * Show list of the style elements for the currently edited topic component
  *
  * @param string $handler_id Name of the used handler
  * @param mixed &$data Data passed to the show method
  */
 public function _show_view($handler_id, array &$data)
 {
     midgard_admin_asgard_plugin::asgard_header();
     midcom_show_style('midcom-admin-libs-view-header');
     $data['even'] = false;
     foreach ($data['config']->_global as $key => $value) {
         $data['key'] = midcom::get('i18n')->get_string($key, $data['name']);
         $data['global'] = $this->_detect($data['config']->_global[$key]);
         if (isset($data['config']->_local[$key])) {
             $data['local'] = $this->_detect($data['config']->_local[$key]);
         } else {
             $data['local'] = $this->_detect(null);
         }
         midcom_show_style('midcom-admin-libs-view-item');
         $data['even'] = !$data['even'];
     }
     midcom_show_style('midcom-admin-libs-view-footer');
     midgard_admin_asgard_plugin::asgard_footer();
 }
Exemple #5
0
 /**
  * Show list of the style elements for the currently edited topic component
  *
  * @param string $handler_id Name of the used handler
  * @param mixed &$data Data passed to the show method
  */
 public function _show_edit($handler_id, array &$data)
 {
     midgard_admin_asgard_plugin::asgard_header();
     midcom_show_style('midcom-admin-libs-edit');
     midgard_admin_asgard_plugin::asgard_footer();
 }
Exemple #6
0
 /**
  * Output the style element for deleted objects
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array &$data The local request data.
  */
 public function _show_deleted($handler_id, array &$data)
 {
     midgard_admin_asgard_plugin::asgard_header();
     midcom_show_style('midgard_admin_asgard_object_deleted');
     midgard_admin_asgard_plugin::asgard_footer();
 }
Exemple #7
0
 public function _show_preview()
 {
     midgard_admin_asgard_plugin::asgard_header();
     midcom_show_style('midgard_admin_asgard_rcs_preview');
     midgard_admin_asgard_plugin::asgard_footer();
 }
Exemple #8
0
 /**
  * Show the group listing
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array &$data The local request data.
  */
 public function _show_list($handler_id, array &$data)
 {
     midgard_admin_asgard_plugin::asgard_header();
     midcom_show_style('midcom-admin-user-group-list-start');
     // Show the recursive listing
     self::list_groups(0, $data);
     midcom_show_style('midcom-admin-user-group-list-end');
     midgard_admin_asgard_plugin::asgard_footer();
 }
Exemple #9
0
 /**
  * Show list of the style elements for the currently edited topic component
  *
  * @param string $handler_id Name of the used handler
  * @param mixed &$data Data passed to the show method
  */
 public function _show_list($handler_id, array &$data)
 {
     midgard_admin_asgard_plugin::asgard_header();
     $data['config'] =& $this->_config;
     $data['persons'] =& $this->_persons;
     midcom_show_style('midcom-admin-user-personlist-header');
     $data['even'] = false;
     foreach ($data['persons'] as $person) {
         $data['person'] = $person;
         midcom_show_style('midcom-admin-user-personlist-item');
         if (!$data['even']) {
             $data['even'] = true;
         } else {
             $data['even'] = false;
         }
     }
     midcom_show_style('midcom-admin-user-personlist-footer');
     midgard_admin_asgard_plugin::asgard_footer();
 }
Exemple #10
0
 /**
  * Show the batch password change form
  *
  * @param mixed $handler_id The ID of the handler.
  * @param array &$data The local request data.
  */
 public function _show_batch($handler_id, array &$data)
 {
     if (!isset($_GET['ajax'])) {
         midgard_admin_asgard_plugin::asgard_header();
         midcom_show_style('midcom-admin-user-password-nonajax-header');
     }
     $data['message_subject'] = $this->_l10n->get($this->_config->get('message_subject'));
     $data['message_body'] = $this->_l10n->get($this->_config->get('message_body'));
     midcom_show_style('midcom-admin-user-password-email');
     if (!isset($_GET['ajax'])) {
         midcom_show_style('midcom-admin-user-passwords-list');
         midgard_admin_asgard_plugin::asgard_footer();
     }
 }
Exemple #11
0
 /**
  * Show list of the style elements for the currently edited topic component
  *
  * @param string $handler_id Name of the used handler
  * @param mixed &$data Data passed to the show method
  */
 public function _show_edit($handler_id, array &$data)
 {
     midgard_admin_asgard_plugin::asgard_header();
     midcom_show_style('midgard_admin_asgard_component_configuration_edit');
     midgard_admin_asgard_plugin::asgard_footer();
 }
Exemple #12
0
 /**
  * Show the delete request
  *
  * @param string $handler_id Name of the used handler
  * @param mixed &$data Data passed to the show method
  */
 public function _show_delete($handler_id, array &$data)
 {
     midgard_admin_asgard_plugin::asgard_header();
     $data['file'] =& $this->_file;
     $data['attachment_text_types'] = $this->_config->get('attachment_text_types');
     midcom_show_style('midgard_admin_asgard_object_attachments_delete');
     midgard_admin_asgard_plugin::asgard_footer();
 }