Posted by Dimitris Tue 13th Mar 2007 17:14 - Syntax is CSS - 22 views
Download | New Post | Modify | Hide line numbers
Description:
PHP Notice: Undefined offset: 8 in C:\Documents and
Settings\Admin\Desktop\CRM
\Includes\Glades\customer_window.php-gtk on line 77

Notice: Undefined offset: 8 in C:\Documents and
Settings\Admin\Desktop\CRM\Incl
udes\Glades\customer_window.php-gtk on line 77

  1.     $events_system_model = new gtkliststore(GTK::TYPE_STRING,GTK::TYPE_STRING,GTK::TYPE_STRING,GdkPixbuf::gtype,GTK::TYPE_STRING,GTK::TYPE_STRING,GTK::TYPE_STRING,GTK::TYPE_STRING,GTK::TYPE_STRING);
  2.     $events_system_fields = array('Id Number','Event Type','Priority','State','Date Opened','Date Closed','Descritpion','Notes','Solution');
  3.     $events_system_size = array('100','100','100','50','100','100','150','150','100');
  4.     for ($i=0; $i($events_system_fields); ++$i) {
  5.      if ($i ==  3) {
  6.       $render = new GtkCellRendererPixbuf();
  7.       $column = new gtktreeviewcolumn($customer_system_fields[$i],$render,'pixbuf',$i);
  8.      }else{
  9.       $render = new gtkcellrenderertext();
  10.       $column = new gtktreeviewcolumn($customer_system_fields[$i],$render,'text',$i);
  11.      }
  12.      if ($i == 2) {
  13.       $column->set_cell_data_func($render, "format_col_events",2);
  14.      }
  15.      $column -> set_resizable(true);
  16.      $column -> set_reorderable(true);
  17.      $column -> set_sizing(2) ;
  18.      $column -> set_fixed_width($events_system_size[$i]);
  19.      $label = new GtkLabel($events_system_fields[$i]);
  20.      $label->modify_font(new PangoFontDescription("Arial Bold"));
  21.      $label->modify_fg(Gtk::STATE_NORMAL, GdkColor::parse("#0000FF"));
  22.      $column->set_widget($label);
  23.      $label->show();
  24.      $customer_events_list -> append_column($column);
  25.     }
  26.     $customer_events_list -> set_model($events_system_model);

PermaLink to this entry https://pastebin.co.uk/11826
Posted by Dimitris Tue 13th Mar 2007 17:14 - Syntax is CSS - 22 views
Download | New Post | Modify | Hide line numbers

 

Comments: 0