/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/widgets/data_list/ListAction.inc
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/widgets/data_list/ListAction.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jonen, Sat Feb 22 21:08:37 2003 UTC revision 1.2 by jonen, Thu May 6 16:27:49 2004 UTC
# Line 193  class ListAction extends DataList { Line 193  class ListAction extends DataList {
193    
194    
195              if ($this->get_form_method() == "POST") {              if ($this->get_form_method() == "POST") {
196                  $td->set_tag_attribute("onClick", $col_url);                  $td->set_tag_attribute("onclick", $col_url);
197              }              }
198              else {              else {
199                  $td->set_tag_attribute("onClick", "javascript:document.location='".$col_url."';");                  $td->set_tag_attribute("onclick", "javascript:document.location='".$col_url."';");
200              }              }
201          } else {          } else {
202              $td->push($col_name);              $td->push($col_name);
# Line 328  class ListAction extends DataList { Line 328  class ListAction extends DataList {
328    
329          // buttons          // buttons
330          $buttons = new ButtonPanel(1, "center");          $buttons = new ButtonPanel(1, "center");
331          $buttons->pushButton(form_button("yes","Yes", array("type"=>"submit","style"=>"width: 90px;")));          $buttons->add(form_button("yes","Yes", array("type"=>"submit","style"=>"width: 90px;")));
332    
333          $cancel_url = $this->get_cancel_url();          $cancel_url = $this->get_cancel_url();
334          $form_name = $this->get_form_name();          $form_name = $this->get_form_name();
335          $cancel_action = "document.".$form_name.".action='".$cancel_url."'; document.".$form_name.".method='POST'; document.".$form_name.".submit();";          $cancel_action = "document.".$form_name.".action='".$cancel_url."'; document.".$form_name.".method='POST'; document.".$form_name.".submit();";
336    
337          $buttons->pushButton(form_button("no","No",          $buttons->add(form_button("no","No",
338                                           array("type"=>"button",                                           array("type"=>"button",
339                                                 "style"=>"width: 90px;",                                                 "style"=>"width: 90px;",
340                                                 "onClick"=>$cancel_action)));                                                 "onclick"=>$cancel_action)));
341          $content->push_row($buttons);          $content->push_row($buttons);
342    
343          $td = new TDTag(array("class"=>"f10-1","align"=>"center","style"=>_CSS_BORDER_TOP));          $td = new TDTag(array("class"=>"f10-1","align"=>"center","style"=>_CSS_BORDER_TOP));

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed