@@ 127-159 (lines=33) @@ | ||
124 | * @copyright 1997-2010 The Martin auction |
|
125 | * @author Martin <[email protected]> |
|
126 | * */ |
|
127 | public function createButtons() |
|
128 | { |
|
129 | $button_tray = new XoopsFormElementTray('', ''); |
|
130 | // No ID for category -- then it's new category, button says 'Create' |
|
131 | if (!$this->Obj->auction_id()) { |
|
132 | $butt_create = new XoopsFormButton('', '', _RESET, 'submit'); |
|
133 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
134 | $button_tray->addElement($butt_create); |
|
135 | ||
136 | $butt_clear = new XoopsFormButton('', '', _SUBMIT, 'reset'); |
|
137 | $button_tray->addElement($butt_clear); |
|
138 | ||
139 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
140 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
141 | $button_tray->addElement($butt_cancel); |
|
142 | ||
143 | $this->addElement($button_tray); |
|
144 | } else { |
|
145 | // button says 'Update' |
|
146 | $butt_create = new XoopsFormButton('', '', _EDIT, 'submit'); |
|
147 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
148 | $button_tray->addElement($butt_create); |
|
149 | ||
150 | $butt_clear = new XoopsFormButton('', '', _SUBMIT, 'reset'); |
|
151 | $button_tray->addElement($butt_clear); |
|
152 | ||
153 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
154 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
155 | $button_tray->addElement($butt_cancel); |
|
156 | ||
157 | $this->addElement($button_tray); |
|
158 | } |
|
159 | } |
|
160 | } |
|
161 |
@@ 124-156 (lines=33) @@ | ||
121 | * @copyright 1997-2010 The Martin Group |
|
122 | * @author Martin <[email protected]> |
|
123 | * */ |
|
124 | public function createButtons() |
|
125 | { |
|
126 | $button_tray = new XoopsFormElementTray('', ''); |
|
127 | // No ID for category -- then it's new category, button says 'Create' |
|
128 | if (!$this->Obj->group_id()) { |
|
129 | $butt_create = new XoopsFormButton('', '', _SUBMIT, 'submit'); |
|
130 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
131 | $button_tray->addElement($butt_create); |
|
132 | ||
133 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
134 | $button_tray->addElement($butt_clear); |
|
135 | ||
136 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
137 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
138 | $button_tray->addElement($butt_cancel); |
|
139 | ||
140 | $this->addElement($button_tray); |
|
141 | } else { |
|
142 | // button says 'Update' |
|
143 | $butt_create = new XoopsFormButton('', '', _EDIT, 'submit'); |
|
144 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
145 | $button_tray->addElement($butt_create); |
|
146 | ||
147 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
148 | $button_tray->addElement($butt_clear); |
|
149 | ||
150 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
151 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
152 | $button_tray->addElement($butt_cancel); |
|
153 | ||
154 | $this->addElement($button_tray); |
|
155 | } |
|
156 | } |
|
157 | } |
|
158 |
@@ 64-96 (lines=33) @@ | ||
61 | * @copyright 1997-2010 The Martin Group |
|
62 | * @author Martin <[email protected]> |
|
63 | * */ |
|
64 | public function createButtons() |
|
65 | { |
|
66 | $button_tray = new XoopsFormElementTray('', ''); |
|
67 | // No ID for category -- then it's new category, button says 'Create' |
|
68 | if (!$this->Obj->city_id()) { |
|
69 | $butt_create = new XoopsFormButton('', '', _SUBMIT, 'submit'); |
|
70 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
71 | $button_tray->addElement($butt_create); |
|
72 | ||
73 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
74 | $button_tray->addElement($butt_clear); |
|
75 | ||
76 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
77 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
78 | $button_tray->addElement($butt_cancel); |
|
79 | ||
80 | $this->addElement($button_tray); |
|
81 | } else { |
|
82 | // button says 'Update' |
|
83 | $butt_create = new XoopsFormButton('', '', _SUBMIT, 'submit'); |
|
84 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
85 | $button_tray->addElement($butt_create); |
|
86 | ||
87 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
88 | $button_tray->addElement($butt_clear); |
|
89 | ||
90 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
91 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
92 | $button_tray->addElement($butt_cancel); |
|
93 | ||
94 | $this->addElement($button_tray); |
|
95 | } |
|
96 | } |
|
97 | } |
|
98 |
@@ 178-210 (lines=33) @@ | ||
175 | * @copyright 1997-2010 The Martin Group |
|
176 | * @author Martin <[email protected]> |
|
177 | * */ |
|
178 | public function createButtons() |
|
179 | { |
|
180 | $button_tray = new XoopsFormElementTray('', ''); |
|
181 | // No ID for category -- then it's new category, button says 'Create' |
|
182 | if (!$this->CityObj->city_id()) { |
|
183 | $butt_create = new XoopsFormButton('', '', _SUBMIT, 'submit'); |
|
184 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
185 | $button_tray->addElement($butt_create); |
|
186 | ||
187 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
188 | $button_tray->addElement($butt_clear); |
|
189 | ||
190 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
191 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
192 | $button_tray->addElement($butt_cancel); |
|
193 | ||
194 | $this->addElement($button_tray); |
|
195 | } else { |
|
196 | // button says 'Update' |
|
197 | $butt_create = new XoopsFormButton('', '', _EDIT, 'submit'); |
|
198 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
199 | $button_tray->addElement($butt_create); |
|
200 | ||
201 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
202 | $button_tray->addElement($butt_clear); |
|
203 | ||
204 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
205 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
206 | $button_tray->addElement($butt_cancel); |
|
207 | ||
208 | $this->addElement($button_tray); |
|
209 | } |
|
210 | } |
|
211 | ||
212 | /** |
|
213 | * @google 地图 |
@@ 79-111 (lines=33) @@ | ||
76 | * @copyright 1997-2010 The Martin Group |
|
77 | * @author Martin <[email protected]> |
|
78 | * */ |
|
79 | public function createButtons() |
|
80 | { |
|
81 | $button_tray = new XoopsFormElementTray('', ''); |
|
82 | // No ID for category -- then it's new category, button says 'Create' |
|
83 | if (!$this->Obj->promotion_id()) { |
|
84 | $butt_create = new XoopsFormButton('', '', _SUBMIT, 'submit'); |
|
85 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
86 | $button_tray->addElement($butt_create); |
|
87 | ||
88 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
89 | $button_tray->addElement($butt_clear); |
|
90 | ||
91 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
92 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
93 | $button_tray->addElement($butt_cancel); |
|
94 | ||
95 | $this->addElement($button_tray); |
|
96 | } else { |
|
97 | // button says 'Update' |
|
98 | $butt_create = new XoopsFormButton('', '', _EDIT, 'submit'); |
|
99 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
100 | $button_tray->addElement($butt_create); |
|
101 | ||
102 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
103 | $button_tray->addElement($butt_clear); |
|
104 | ||
105 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
106 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
107 | $button_tray->addElement($butt_cancel); |
|
108 | ||
109 | $this->addElement($button_tray); |
|
110 | } |
|
111 | } |
|
112 | } |
|
113 |
@@ 62-94 (lines=33) @@ | ||
59 | * @copyright 1997-2010 The Martin Group |
|
60 | * @author Martin <[email protected]> |
|
61 | * */ |
|
62 | public function createButtons() |
|
63 | { |
|
64 | $button_tray = new XoopsFormElementTray('', ''); |
|
65 | // No ID for category -- then it's new category, button says 'Create' |
|
66 | if (!$this->Obj->service_id()) { |
|
67 | $butt_create = new XoopsFormButton('', '', _SUBMIT, 'submit'); |
|
68 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
69 | $button_tray->addElement($butt_create); |
|
70 | ||
71 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
72 | $button_tray->addElement($butt_clear); |
|
73 | ||
74 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
75 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
76 | $button_tray->addElement($butt_cancel); |
|
77 | ||
78 | $this->addElement($button_tray); |
|
79 | } else { |
|
80 | // button says 'Update' |
|
81 | $butt_create = new XoopsFormButton('', '', _EDIT, 'submit'); |
|
82 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
83 | $button_tray->addElement($butt_create); |
|
84 | ||
85 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
86 | $button_tray->addElement($butt_clear); |
|
87 | ||
88 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
89 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
90 | $button_tray->addElement($butt_cancel); |
|
91 | ||
92 | $this->addElement($button_tray); |
|
93 | } |
|
94 | } |
|
95 | } |
|
96 |
@@ 67-99 (lines=33) @@ | ||
64 | * @copyright 1997-2010 The Martin Group |
|
65 | * @author Martin <[email protected]> |
|
66 | * */ |
|
67 | public function createButtons() |
|
68 | { |
|
69 | $button_tray = new XoopsFormElementTray('', ''); |
|
70 | // No ID for category -- then it's new category, button says 'Create' |
|
71 | if (!$this->Obj) { |
|
72 | $butt_create = new XoopsFormButton('', '', _SUBMIT, 'submit'); |
|
73 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
74 | $button_tray->addElement($butt_create); |
|
75 | ||
76 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
77 | $button_tray->addElement($butt_clear); |
|
78 | ||
79 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
80 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
81 | $button_tray->addElement($butt_cancel); |
|
82 | ||
83 | $this->addElement($button_tray); |
|
84 | } else { |
|
85 | // button says 'Update' |
|
86 | $butt_create = new XoopsFormButton('', '', _EDIT, 'submit'); |
|
87 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
88 | $button_tray->addElement($butt_create); |
|
89 | ||
90 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
91 | $button_tray->addElement($butt_clear); |
|
92 | ||
93 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
94 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
95 | $button_tray->addElement($butt_cancel); |
|
96 | ||
97 | $this->addElement($button_tray); |
|
98 | } |
|
99 | } |
|
100 | } |
|
101 |
@@ 58-90 (lines=33) @@ | ||
55 | * @copyright 1997-2010 The Martin Group |
|
56 | * @author Martin <[email protected]> |
|
57 | * */ |
|
58 | public function createButtons() |
|
59 | { |
|
60 | $button_tray = new XoopsFormElementTray('', ''); |
|
61 | // No ID for category -- then it's new category, button says 'Create' |
|
62 | if (!$this->Obj->service_type_id()) { |
|
63 | $butt_create = new XoopsFormButton('', '', _SUBMIT, 'submit'); |
|
64 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
65 | $button_tray->addElement($butt_create); |
|
66 | ||
67 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
68 | $button_tray->addElement($butt_clear); |
|
69 | ||
70 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
71 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
72 | $button_tray->addElement($butt_cancel); |
|
73 | ||
74 | $this->addElement($button_tray); |
|
75 | } else { |
|
76 | // button says 'Update' |
|
77 | $butt_create = new XoopsFormButton('', '', _EDIT, 'submit'); |
|
78 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
79 | $button_tray->addElement($butt_create); |
|
80 | ||
81 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
82 | $button_tray->addElement($butt_clear); |
|
83 | ||
84 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
85 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
86 | $button_tray->addElement($butt_cancel); |
|
87 | ||
88 | $this->addElement($button_tray); |
|
89 | } |
|
90 | } |
|
91 | ||
92 | /** |
|
93 | * @return string |
@@ 241-273 (lines=33) @@ | ||
238 | * @copyright 1997-2010 The Martin Group |
|
239 | * @author Martin <[email protected]> |
|
240 | * */ |
|
241 | public function createButtons() |
|
242 | { |
|
243 | $button_tray = new XoopsFormElementTray('', ''); |
|
244 | // No ID for category -- then it's new category, button says 'Create' |
|
245 | if (!$this->Obj->order_id()) { |
|
246 | $butt_create = new XoopsFormButton('', '', _SUBMIT, 'submit'); |
|
247 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
248 | $button_tray->addElement($butt_create); |
|
249 | ||
250 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
251 | $button_tray->addElement($butt_clear); |
|
252 | ||
253 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
254 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
255 | $button_tray->addElement($butt_cancel); |
|
256 | ||
257 | $this->addElement($button_tray); |
|
258 | } else { |
|
259 | // button says 'Update' |
|
260 | $butt_create = new XoopsFormButton('', '', _EDIT, 'submit'); |
|
261 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
262 | $button_tray->addElement($butt_create); |
|
263 | ||
264 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
265 | $button_tray->addElement($butt_clear); |
|
266 | ||
267 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
268 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
269 | $button_tray->addElement($butt_cancel); |
|
270 | ||
271 | $this->addElement($button_tray); |
|
272 | } |
|
273 | } |
|
274 | ||
275 | /** |
|
276 | * @google 地图 |
@@ 99-131 (lines=33) @@ | ||
96 | * @copyright 1997-2010 The Martin Group |
|
97 | * @author Martin <[email protected]> |
|
98 | * */ |
|
99 | public function createButtons() |
|
100 | { |
|
101 | $button_tray = new XoopsFormElementTray('', ''); |
|
102 | // No ID for category -- then it's new category, button says 'Create' |
|
103 | if (!$this->Obj->room_id()) { |
|
104 | $butt_create = new XoopsFormButton('', '', _SUBMIT, 'submit'); |
|
105 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
106 | $button_tray->addElement($butt_create); |
|
107 | ||
108 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
109 | $button_tray->addElement($butt_clear); |
|
110 | ||
111 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
112 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
113 | $button_tray->addElement($butt_cancel); |
|
114 | ||
115 | $this->addElement($button_tray); |
|
116 | } else { |
|
117 | // button says 'Update' |
|
118 | $butt_create = new XoopsFormButton('', '', _EDIT, 'submit'); |
|
119 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
120 | $button_tray->addElement($butt_create); |
|
121 | ||
122 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
123 | $button_tray->addElement($butt_clear); |
|
124 | ||
125 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
126 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
127 | $button_tray->addElement($butt_cancel); |
|
128 | ||
129 | $this->addElement($button_tray); |
|
130 | } |
|
131 | } |
|
132 | } |
|
133 |
@@ 56-88 (lines=33) @@ | ||
53 | * @copyright 1997-2010 The Martin Group |
|
54 | * @author Martin <[email protected]> |
|
55 | * */ |
|
56 | public function createButtons() |
|
57 | { |
|
58 | $button_tray = new XoopsFormElementTray('', ''); |
|
59 | // No ID for category -- then it's new category, button says 'Create' |
|
60 | if (empty($this->Obj)) { |
|
61 | $butt_create = new XoopsFormButton('', '', _SUBMIT, 'submit'); |
|
62 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
63 | $button_tray->addElement($butt_create); |
|
64 | ||
65 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
66 | $button_tray->addElement($butt_clear); |
|
67 | ||
68 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
69 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
70 | $button_tray->addElement($butt_cancel); |
|
71 | ||
72 | $this->addElement($button_tray); |
|
73 | } else { |
|
74 | // button says 'Update' |
|
75 | $butt_create = new XoopsFormButton('', '', _EDIT, 'submit'); |
|
76 | $butt_create->setExtra('onclick="this.form.elements.op.value=\'addcategory\'"'); |
|
77 | $button_tray->addElement($butt_create); |
|
78 | ||
79 | $butt_clear = new XoopsFormButton('', '', _RESET, 'reset'); |
|
80 | $button_tray->addElement($butt_clear); |
|
81 | ||
82 | $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'button'); |
|
83 | $butt_cancel->setExtra('onclick="history.go(-1)"'); |
|
84 | $button_tray->addElement($butt_cancel); |
|
85 | ||
86 | $this->addElement($button_tray); |
|
87 | } |
|
88 | } |
|
89 | } |
|
90 |