@@ 78-85 (lines=8) @@ | ||
75 | * |
|
76 | * @return string |
|
77 | */ |
|
78 | public static function popup_link($ClassName, $FieldName, $where = '', $sort = '', $linkText = 'click here to edit', $titleField = "Title") |
|
79 | { |
|
80 | $link = self::popup_link_only($ClassName, $FieldName, $where, $sort, $titleField = "Title"); |
|
81 | if ($link) { |
|
82 | return ' |
|
83 | <a href="'.$link.'" class="modalPopUp modal-popup" data-width="800" data-height="600" data-rel="window.open(\''.$link.'\', \'sortlistFor'.$ClassName.$FieldName.'\',\'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=600,left = 440,top = 200\'); return false;">'.$linkText.'</a>'; |
|
84 | } |
|
85 | } |
|
86 | ||
87 | ||
88 | public function init() |
@@ 85-92 (lines=8) @@ | ||
82 | * |
|
83 | * @return String - html |
|
84 | */ |
|
85 | public static function popup_link($className, $filterField = "", $filterValue = "", $linkText = "sort this list", $titleField = "") |
|
86 | { |
|
87 | $link = self::popup_link_only($className, $filterField, $filterValue, $titleField); |
|
88 | if ($link) { |
|
89 | return ' |
|
90 | <a href="'.$link.'" class="modalPopUp modal-popup" data-width="800" data-height="600" data-rel="window.open(\''.$link.'\', \'sortlistFor'.$className.$filterField.$filterValue.'\',\'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=600,left = 440,top = 200\'); return false;">'.$linkText.'</a>'; |
|
91 | } |
|
92 | } |
|
93 | ||
94 | public function init() |
|
95 | { |