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); |
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)); |