Пример #1
0
 function addPropagateOverlay($id, $what = "", $how = "")
 {
     global $lll;
     $class = $what == "_cat" ? "cat" : "itemfield";
     $ctrl =& new AppController("{$class}/propagate{$what}{$how}/{$id}");
     // Ajax target
     $url = $ctrl->makeUrl();
     $overlay =& new OverlayController(array("content" => GenerWidget::generConfirmation($lll["confirmation"], $lll["propagateConfirmationText{$what}{$how}"]), "id" => "overlay{$how}", "height" => 160, "expose" => TRUE, "close" => "div.close, input.confirmation_cancel, input.confirmation_continue", "onBeforeLoad" => "\$.noah.propagateOnBeforeLoad(this, " . G::js("processing", "continue", $url) . ");", "onClose" => "\$.noah.propagateOnClose(this, " . G::js("confirmation", "propagateConfirmationText{$what}{$how}", "cancel") . ");"));
     return " <a rel='#overlay{$how}' href='' title='" . $lll["propagateLabel{$what}{$how}"] . "'><img class='propagate{$how}' src='" . IMAGES_DIR . "/propagate{$how}.png' width='20' border=0></a>";
 }