[ PHPXref.com ] [ Generated: Sun Jul 20 19:53:39 2008 ] [ PHProjekt 5.0.1 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/helpdesk/ -> helpdesk_view.php (source)

   1  <?php
   2  
   3  // helpdesk_view.php - PHProjekt Version 5.0

   4  // copyright  ©  2000-2005 Albrecht Guenther  ag@phprojekt.com

   5  // www.phprojekt.com

   6  // Author: Albrecht Guenther, $Author: fgraf $

   7  // $Id: helpdesk_view.php,v 1.38.2.1 2005/09/07 14:02:32 fgraf Exp $

   8  
   9  // check whether the lib has been included - authentication!

  10  if (!defined("lib_included")) { die("Please use index.php!"); }
  11  
  12  // check role

  13  if (check_role("helpdesk") < 1) { die("You are not allowed to do this!"); }
  14  
  15  //diropen_mode($element_mode,$element_ID);

  16  filter_mode($filter_ID);
  17  sort_mode('status');
  18  if ($toggle_read_flag == 1)    read_mode($module);
  19  if ($toggle_html_editor_flag == 1) html_editor_mode($module);
  20  if ($toggle_archive_flag == 1) archive_mode($module);
  21  if ($set_archiv_flag > 0)      set_archiv_flag($ID_s,$module);
  22  if ($set_read_flag > 0)        set_read_flag($ID_s,$module);
  23  if ($save_tdwidth)             store_column_width($module);
  24  
  25  // ************

  26  // context menu

  27  
  28  // entries for right mouse menu - action for selected records

  29     $listentries_selected = array(
  30      '0'=>array('proc_marked',$path_pre.$module."/".$module.".php?mode=data&amp;up=$up&amp;sort=$sort&amp;perpage=$perpage&amp;tree_mode=$tree_mode&amp;action=contacts&amp;delete_b=1&amp;ID_s=",'',__('Are you sure?'),__('Delete')),
  31      '1'=>array('proc_marked',$path_pre."lib/set_links.inc.php?module=".$module."&amp;ID_s=",'_blank','',__('Add to link list')),
  32      '2'=>array('proc_marked',$path_pre.$module."/".$module.".php?set_archiv_flag=1&amp;ID_s=",'','','Ins Archiv verschieben'),
  33      '3'=>array('proc_marked',$path_pre.$module."/".$module.".php?set_read_flag=1&amp;ID_s=",'','','Als gelesen markieren')
  34    );
  35  
  36  
  37    // context menu

  38    include_once ($path_pre.'lib/contextmenu.inc.php');
  39    $menu3 = new contextmenu();
  40    echo $menu3->menu_page($module);
  41  
  42  // end context menu

  43  // ****************

  44  $where = main_filter($filter,$rule,$keyword,$filter_ID,'helpdesk');
  45  $result = db_query("select ID
  46                        from ".DB_PREFIX."rts
  47                        ".sql_filter_flags($module, array('archive', 'read'))."
  48                        where (acc_read like 'system' or ((von = '$user_ID' or assigned like '$user_ID' or acc_read like 'group' or acc_read like '%\"$user_kurz\"%') and $sql_user_group))
  49             $where".sql_filter_flags($module, array('archive', 'read'),false)) or db_die();
  50  $liste= make_list($result);
  51  
  52  // **************

  53  // navigation bar

  54  //$output.="<div id=\"".$field_name."\" oncontextmenu=\"startMenu('".$menu3->menusysID."','$field_name',this)\">";

  55  
  56  //tabs

  57  $tabs = array();
  58  $output .= get_tabs_area($tabs);
  59  // button bar

  60  $buttons = array();
  61  if (check_role("helpdesk") > 1) {
  62      $buttons[] = array('type' => 'link', 'href' => 'helpdesk.php?mode=forms&amp;new_note=1&amp;sort='.$sort.'&amp;up='.$up.'&amp;page='.$page.'&amp;perpage='.$perpage.'&amp;keyword='.$keyword.'&amp;filter='.$filter.$sid, 'text' => __('New'), 'active' => false);
  63  }
  64  $output .= get_buttons_area($buttons, 'oncontextmenu="startMenu(\''.$menu3->menusysID.'\',\''.$field_name.'\',this)"');
  65  
  66  $output .= '<div class="hline"></div>';
  67  
  68  
  69  // get all filter bars

  70  if (!$sort) { $sort = "ID desc"; } // set default criteria

  71  $where = " where (acc_read like 'system' or ((von = $user_ID or assigned like '$user_ID' or acc_read like 'group' or acc_read like '%\"$user_kurz\"%') and $sql_user_group))
  72           $where ".sql_filter_flags($module, array('archive', 'read'), false)."
  73           order by $sort $direction";
  74  $result_rows = '<a name="content"></a>'.build_table(array('ID','von','acc_read','parent'), $module, $where, $page, $perpage);
  75  $output .= get_all_filter_bars('help_desk', $result_rows);
  76  
  77  echo $output;
  78  
  79  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]