Author: spadkins
Date: Thu Aug 31 09:40:34 2006
New Revision: 6830

Modified:
   p5ee/trunk/App-Widget/lib/App/Widget/DataTable2.pm
   p5ee/trunk/App-Widget/lib/App/Widget/ImageButton.pm

Log:
look for app-button in cgi-bin/App/app-button, not cgi-bin/app-button

Modified: p5ee/trunk/App-Widget/lib/App/Widget/DataTable2.pm
==============================================================================
--- p5ee/trunk/App-Widget/lib/App/Widget/DataTable2.pm  (original)
+++ p5ee/trunk/App-Widget/lib/App/Widget/DataTable2.pm  Thu Aug 31 09:40:34 2006
@@ -862,7 +862,7 @@
             $html .= "<table border=\"0\" cellspacing=\"0\" 
cellpadding=\"3\"><tr><td valign=\"middle\" nowrap>&nbsp;\n";
             $html .= $context->widget("$name-refresh",
                          class => "App::Widget::ImageButton",
-                         image_script => 'app-button',
+                         image_script => 'App/app-button',
                          #volatile => 1,
                          label => 'Refresh',
                          height => 17,
@@ -874,7 +874,7 @@
                 if ($mode eq "view") {
                     $html .= $context->widget("$name-edit",
                                  class => "App::Widget::ImageButton",
-                                 image_script => 'app-button',
+                                 image_script => 'App/app-button',
                                  #volatile => 1,
                                  label => 'Edit',
                                  height => 17,
@@ -885,7 +885,7 @@
                 else {
                     $html .= $context->widget("$name-view",
                                  class => "App::Widget::ImageButton",
-                                 image_script => 'app-button',
+                                 image_script => 'App/app-button',
                                  #volatile => 1,
                                  label => 'View',
                                  height => 17,
@@ -901,7 +901,7 @@
             $html .= ">$elem_begin&nbsp;\n";
             $html .= $context->widget("$name-prev",
                          class => "App::Widget::ImageButton",
-                         image_script => 'app-button',
+                         image_script => 'App/app-button',
                          #volatile => 1,
                          label => '<< Prev',
                          height => 17,
@@ -923,7 +923,7 @@
             $html .= "\n";
             $html .= $context->widget("$name-next",
                          class => "App::Widget::ImageButton",
-                         image_script => 'app-button',
+                         image_script => 'App/app-button',
                          #volatile => 1,
                          label => 'Next >>',
                          height => 17,
@@ -939,7 +939,7 @@
             $html .= "<td>\n";
             $html .= $context->widget("$name-save",
                          class => "App::Widget::ImageButton",
-                         image_script => 'app-button',
+                         image_script => 'App/app-button',
                          #volatile => 1,
                          label => 'Save',
                          height => 17,
@@ -950,7 +950,7 @@
             $html .= "<td>\n";
             $html .= $context->widget("$name-add",
                          class => "App::Widget::ImageButton",
-                         image_script => 'app-button',
+                         image_script => 'App/app-button',
                          #volatile => 1,
                          label => 'Add Rows',
                          height => 17,
@@ -969,7 +969,7 @@
             $html .= "<td>\n";
             $html .= $context->widget("$name-cancel_add",
                          class => "App::Widget::ImageButton",
-                         image_script => 'app-button',
+                         image_script => 'App/app-button',
                          #volatile => 1,
                          label => 'Cancel Adds',
                          height => 17,
@@ -1006,14 +1006,14 @@
                     #$elem = $context->widget("$name\{filter}{$column}",
                     #            class => "App::Widget::TextField",
                     #            size => 5,
-                    #            maxwidth => 99,
+                    #            maxlength => 99,
                     #        )->html();
                     $w = $context->widget("$name\{filter}{$column}",
                                 class => "App::Widget::TextField",
                                 size => 5,
-                                maxwidth => 99,
+                                maxlength => 99,
                          );
-                    $elem = $w->html();
+                    $elem = $w->html(). "[$w->{name}]";
                     $html .= "  <td>$elem_begin$elem$elem_end</td>\n";
                 }
                 $html .= "</tr>\n";
@@ -1028,7 +1028,7 @@
                 for ($col = 0; $col < $numcols; $col++) {
                     $elem = $context->widget("$name-sort_$columns->[$col]",
                                 class => "App::Widget::ImageButton",
-                                image_script => 'app-button',
+                                image_script => 'App/app-button',
                                 #volatile => 1,
                                 label => 'Up|Dn',
                                 height => 17,
@@ -1090,7 +1090,7 @@
                 %args = (
                     override => 1,
                     class => "App::Widget::ImageButton",
-                    image_script => 'app-button',
+                    image_script => 'App/app-button',
                     volatile => 1,
                     height => 17,
                     width => 50,
@@ -1122,7 +1122,7 @@
                 %args = (
                     override => 1,
                     class => "App::Widget::ImageButton",
-                    image_script => 'app-button',
+                    image_script => 'App/app-button',
                     volatile => 1,
                     height => 17,
                     width => 50,
@@ -1301,7 +1301,7 @@
                 %args = (
                     override => 1,
                     class => "App::Widget::ImageButton",
-                    image_script => 'app-button',
+                    image_script => 'App/app-button',
                     volatile => 1,
                     height => 17,
                     width => 50,

Modified: p5ee/trunk/App-Widget/lib/App/Widget/ImageButton.pm
==============================================================================
--- p5ee/trunk/App-Widget/lib/App/Widget/ImageButton.pm (original)
+++ p5ee/trunk/App-Widget/lib/App/Widget/ImageButton.pm Thu Aug 31 09:40:34 2006
@@ -87,7 +87,7 @@
         return "<input type=\"image\" 
name=\"app.event.$event_target.$event$args\" src=\"$url\" 
border=\"0\"$height$width alt=\"$html_label\"$tabindex$html_attribs/>";
     }
 
-    $image_script = $self->get("image_script","app-button");
+    $image_script = $self->get("image_script","App/app-button");
     if ($image_script) {
         $height     = $self->get("height",17);
         $width      = $self->get("width",100);

Reply via email to