@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | |
167 | 167 | /** |
168 | 168 | * IXR_Message constructor. |
169 | - * @param $message |
|
169 | + * @param string|boolean $message |
|
170 | 170 | */ |
171 | 171 | public function __construct($message) { |
172 | 172 | $this->message = $message; |
@@ -863,7 +863,7 @@ discard block |
||
863 | 863 | |
864 | 864 | /** |
865 | 865 | * IXR_Base64 constructor. |
866 | - * @param $data |
|
866 | + * @param string $data |
|
867 | 867 | */ |
868 | 868 | public function __construct($data) { |
869 | 869 | $this->data = $data; |
@@ -906,10 +906,10 @@ discard block |
||
906 | 906 | } |
907 | 907 | |
908 | 908 | /** |
909 | - * @param $method |
|
910 | - * @param $callback |
|
911 | - * @param $args |
|
912 | - * @param $help |
|
909 | + * @param string $method |
|
910 | + * @param string $callback |
|
911 | + * @param string[] $args |
|
912 | + * @param string $help |
|
913 | 913 | */ |
914 | 914 | public function addCallback($method, $callback, $args, $help) { |
915 | 915 | $this->callbacks[$method] = $callback; |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | public $_feed; |
353 | 353 | |
354 | 354 | /** |
355 | - * @param $format |
|
355 | + * @param string $format |
|
356 | 356 | */ |
357 | 357 | public function _setFormat($format) { |
358 | 358 | switch (strtoupper($format)) { |
@@ -529,7 +529,7 @@ discard block |
||
529 | 529 | /** |
530 | 530 | * Adds an FeedItem to the feed. |
531 | 531 | * |
532 | - * @param $item |
|
532 | + * @param FeedItem $item |
|
533 | 533 | * @internal param FeedItem $object $item The FeedItem to add to the feed. |
534 | 534 | * @access public |
535 | 535 | */ |
@@ -547,6 +547,7 @@ discard block |
||
547 | 547 | * @static |
548 | 548 | * @param string string A string to be truncated. |
549 | 549 | * @param int length the maximum length the string should be truncated to |
550 | + * @param integer $length |
|
550 | 551 | * @return string the truncated string |
551 | 552 | */ |
552 | 553 | public function iTrunc($string, $length) { |
@@ -652,7 +653,7 @@ discard block |
||
652 | 653 | /** |
653 | 654 | * @since 1.4 |
654 | 655 | * @access private |
655 | - * @param $filename |
|
656 | + * @param string $filename |
|
656 | 657 | */ |
657 | 658 | public function _redirect($filename) { |
658 | 659 | // attention, heavily-commented-out-area |
@@ -807,7 +808,7 @@ discard block |
||
807 | 808 | /** |
808 | 809 | * Gets the date stored in this FeedDate as an RFC 822 date. |
809 | 810 | * |
810 | - * @return a date in RFC 822 format |
|
811 | + * @return string date in RFC 822 format |
|
811 | 812 | */ |
812 | 813 | public function rfc822() { |
813 | 814 | //return gmdate("r",$this->unix); |
@@ -822,7 +823,7 @@ discard block |
||
822 | 823 | /** |
823 | 824 | * Gets the date stored in this FeedDate as an ISO 8601 date. |
824 | 825 | * |
825 | - * @return a date in ISO 8601 format |
|
826 | + * @return string date in ISO 8601 format |
|
826 | 827 | */ |
827 | 828 | public function iso8601() { |
828 | 829 | $date = gmdate("Y-m-d\TH:i:sO", $this->unix); |
@@ -949,7 +950,7 @@ discard block |
||
949 | 950 | /** |
950 | 951 | * Sets this RSS feed's version number. |
951 | 952 | * @access private |
952 | - * @param $version |
|
953 | + * @param string $version |
|
953 | 954 | */ |
954 | 955 | public function _setRSSVersion($version) { |
955 | 956 | $this->RSSVersion = $version; |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | |
303 | 303 | // smart append - field and namespace aware |
304 | 304 | /** |
305 | - * @param $el |
|
305 | + * @param string $el |
|
306 | 306 | * @param $text |
307 | 307 | */ |
308 | 308 | public function append($el, $text) { |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | } |
385 | 385 | |
386 | 386 | /** |
387 | - * @return bool |
|
387 | + * @return string|false |
|
388 | 388 | */ |
389 | 389 | public function is_rss() { |
390 | 390 | if ($this->feed_type == RSS) { |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | } |
396 | 396 | |
397 | 397 | /** |
398 | - * @return bool |
|
398 | + * @return string|false |
|
399 | 399 | */ |
400 | 400 | public function is_atom() { |
401 | 401 | if ($this->feed_type == ATOM) { |
@@ -407,10 +407,10 @@ discard block |
||
407 | 407 | |
408 | 408 | /** |
409 | 409 | * return XML parser, and possibly re-encoded source |
410 | - * @param $source |
|
411 | - * @param $out_enc |
|
412 | - * @param $in_enc |
|
413 | - * @param $detect |
|
410 | + * @param string $source |
|
411 | + * @param string $out_enc |
|
412 | + * @param string|null $in_enc |
|
413 | + * @param boolean $detect |
|
414 | 414 | * @return array |
415 | 415 | */ |
416 | 416 | public function create_parser($source, $out_enc, $in_enc, $detect) { |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | |
518 | 518 | /** |
519 | 519 | * @param $enc |
520 | - * @return bool|string |
|
520 | + * @return string|false |
|
521 | 521 | */ |
522 | 522 | public function known_encoding($enc) { |
523 | 523 | $enc = strtoupper($enc); |
@@ -83,7 +83,7 @@ |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
86 | - * @return bool|string |
|
86 | + * @return string|false |
|
87 | 87 | */ |
88 | 88 | public function is_atom() { |
89 | 89 | if ($this->feed_type == ATOM) { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * @var mixed $pattern |
109 | 109 | * @var mixed $replacement |
110 | 110 | * |
111 | - * @return bool true on success |
|
111 | + * @return null|boolean true on success |
|
112 | 112 | */ |
113 | 113 | function planet_parse_class($class_string, $pattern = '', $replacement = '') { |
114 | 114 | if (empty($class_string)) { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * @var mixed $pattern |
144 | 144 | * @var mixed $replacement |
145 | 145 | * |
146 | - * @return bool true on success |
|
146 | + * @return null|boolean true on success |
|
147 | 147 | */ |
148 | 148 | function planet_parse_function($function_string, $pattern = '', $replacement = '') { |
149 | 149 | if (empty($function_string)) { |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | |
495 | 495 | /** |
496 | 496 | * @param $url |
497 | - * @return bool|string |
|
497 | + * @return false|string |
|
498 | 498 | */ |
499 | 499 | function planet_fetch_fopen($url) { |
500 | 500 | if (!$fp = @fopen($url, 'r')) { |
@@ -293,7 +293,7 @@ |
||
293 | 293 | // Used in get_calendar |
294 | 294 | /** |
295 | 295 | * @param $num |
296 | - * @return mixed |
|
296 | + * @return double |
|
297 | 297 | */ |
298 | 298 | function planet_calendar_week_mod($num) { |
299 | 299 | $base = 7; |
@@ -55,342 +55,342 @@ |
||
55 | 55 | |
56 | 56 | switch ($op) { |
57 | 57 | /* save a single blog */ |
58 | - case 'save': |
|
58 | + case 'save': |
|
59 | 59 | |
60 | - if ($blog_id) { |
|
61 | - $blog_obj =& $blog_handler->get($blog_id); |
|
62 | - } else { |
|
63 | - if ($blog_exists = $blog_handler->getCount(new Criteria('blog_feed', $_POST['blog_feed']))) { |
|
64 | - redirect_header('admin.blog.php', 2, planet_constant('AM_BLOGEXISTS')); |
|
65 | - } |
|
66 | - $blog_obj =& $blog_handler->create(); |
|
67 | - $blog_obj->setVar('blog_submitter', $xoopsUser->getVar('uid')); |
|
68 | - } |
|
60 | + if ($blog_id) { |
|
61 | + $blog_obj =& $blog_handler->get($blog_id); |
|
62 | + } else { |
|
63 | + if ($blog_exists = $blog_handler->getCount(new Criteria('blog_feed', $_POST['blog_feed']))) { |
|
64 | + redirect_header('admin.blog.php', 2, planet_constant('AM_BLOGEXISTS')); |
|
65 | + } |
|
66 | + $blog_obj =& $blog_handler->create(); |
|
67 | + $blog_obj->setVar('blog_submitter', $xoopsUser->getVar('uid')); |
|
68 | + } |
|
69 | 69 | |
70 | - $blog_obj->setVar('blog_title', $_POST['blog_title']); |
|
71 | - $blog_obj->setVar('blog_desc', $_POST['blog_desc']); |
|
72 | - $blog_obj->setVar('blog_image', $_POST['blog_image']); |
|
73 | - $blog_obj->setVar('blog_feed', $_POST['blog_feed']); |
|
74 | - $blog_obj->setVar('blog_link', $_POST['blog_link']); |
|
75 | - $blog_obj->setVar('blog_language', $_POST['blog_language']); |
|
76 | - $blog_obj->setVar('blog_charset', $_POST['blog_charset']); |
|
77 | - $blog_obj->setVar('blog_trackback', $_POST['blog_trackback']); |
|
78 | - $blog_obj->setVar('blog_status', $_POST['blog_status']); |
|
70 | + $blog_obj->setVar('blog_title', $_POST['blog_title']); |
|
71 | + $blog_obj->setVar('blog_desc', $_POST['blog_desc']); |
|
72 | + $blog_obj->setVar('blog_image', $_POST['blog_image']); |
|
73 | + $blog_obj->setVar('blog_feed', $_POST['blog_feed']); |
|
74 | + $blog_obj->setVar('blog_link', $_POST['blog_link']); |
|
75 | + $blog_obj->setVar('blog_language', $_POST['blog_language']); |
|
76 | + $blog_obj->setVar('blog_charset', $_POST['blog_charset']); |
|
77 | + $blog_obj->setVar('blog_trackback', $_POST['blog_trackback']); |
|
78 | + $blog_obj->setVar('blog_status', $_POST['blog_status']); |
|
79 | 79 | |
80 | - if (!$blog_handler->insert($blog_obj)) { |
|
81 | - } elseif (!empty($_POST['categories'])) { |
|
82 | - $blog_id = $blog_obj->getVar('blog_id'); |
|
83 | - if (in_array(0, $_POST['categories'])) { |
|
84 | - $_POST['categories'] = array(); |
|
85 | - } |
|
86 | - $blog_handler->setCategories($blog_id, $_POST['categories']); |
|
87 | - } |
|
88 | - $message = planet_constant('AM_DBUPDATED'); |
|
89 | - redirect_header('admin.blog.php', 2, $message); |
|
80 | + if (!$blog_handler->insert($blog_obj)) { |
|
81 | + } elseif (!empty($_POST['categories'])) { |
|
82 | + $blog_id = $blog_obj->getVar('blog_id'); |
|
83 | + if (in_array(0, $_POST['categories'])) { |
|
84 | + $_POST['categories'] = array(); |
|
85 | + } |
|
86 | + $blog_handler->setCategories($blog_id, $_POST['categories']); |
|
87 | + } |
|
88 | + $message = planet_constant('AM_DBUPDATED'); |
|
89 | + redirect_header('admin.blog.php', 2, $message); |
|
90 | 90 | |
91 | - /* fetch and add a list of blogs to a category */ |
|
92 | - case 'add': |
|
93 | - $links =& planet_parseLinks($_POST['links']); |
|
94 | - $blogs = array(); |
|
95 | - foreach ($links as $link) { |
|
96 | - if ($blog_exist = $blog_handler->getCount(new Criteria('blog_feed', $link['url']))) { |
|
97 | - continue; |
|
98 | - } |
|
99 | - $blog_obj =& $blog_handler->fetch($link['url']); |
|
100 | - if (!empty($link['title'])) { |
|
101 | - $blog_obj->setVar('blog_title', $link['title']); |
|
102 | - } |
|
103 | - $blog_handler->insert($blog_obj); |
|
104 | - $blogs[] = $blog_obj->getVar('blog_id'); |
|
105 | - unset($blog_obj); |
|
106 | - } |
|
107 | - if (!empty($_POST['categories'])) { |
|
108 | - $category_handler = xoops_getModuleHandler('category', $GLOBALS['moddirname']); |
|
109 | - foreach ($_POST['categories'] as $cat_id) { |
|
110 | - $category_handler->addBlogs($cat_id, $blogs); |
|
111 | - } |
|
112 | - } |
|
113 | - $message = planet_constant('AM_DBUPDATED'); |
|
114 | - redirect_header('admin.blog.php', 2, $message); |
|
91 | + /* fetch and add a list of blogs to a category */ |
|
92 | + case 'add': |
|
93 | + $links =& planet_parseLinks($_POST['links']); |
|
94 | + $blogs = array(); |
|
95 | + foreach ($links as $link) { |
|
96 | + if ($blog_exist = $blog_handler->getCount(new Criteria('blog_feed', $link['url']))) { |
|
97 | + continue; |
|
98 | + } |
|
99 | + $blog_obj =& $blog_handler->fetch($link['url']); |
|
100 | + if (!empty($link['title'])) { |
|
101 | + $blog_obj->setVar('blog_title', $link['title']); |
|
102 | + } |
|
103 | + $blog_handler->insert($blog_obj); |
|
104 | + $blogs[] = $blog_obj->getVar('blog_id'); |
|
105 | + unset($blog_obj); |
|
106 | + } |
|
107 | + if (!empty($_POST['categories'])) { |
|
108 | + $category_handler = xoops_getModuleHandler('category', $GLOBALS['moddirname']); |
|
109 | + foreach ($_POST['categories'] as $cat_id) { |
|
110 | + $category_handler->addBlogs($cat_id, $blogs); |
|
111 | + } |
|
112 | + } |
|
113 | + $message = planet_constant('AM_DBUPDATED'); |
|
114 | + redirect_header('admin.blog.php', 2, $message); |
|
115 | 115 | |
116 | - /* update a list of blogs */ |
|
117 | - case 'update': |
|
118 | - foreach ($blog_id as $bid) { |
|
119 | - $blog_obj =& $blog_handler->fetch($bid); |
|
120 | - if (!$blog_handler->insert($blog_obj)) { |
|
121 | - } |
|
122 | - unset($blog_obj); |
|
123 | - } |
|
124 | - $message = planet_constant('AM_DBUPDATED'); |
|
125 | - redirect_header('admin.blog.php?category=' . $category_id . '&start=' . $start, 2, $message); |
|
116 | + /* update a list of blogs */ |
|
117 | + case 'update': |
|
118 | + foreach ($blog_id as $bid) { |
|
119 | + $blog_obj =& $blog_handler->fetch($bid); |
|
120 | + if (!$blog_handler->insert($blog_obj)) { |
|
121 | + } |
|
122 | + unset($blog_obj); |
|
123 | + } |
|
124 | + $message = planet_constant('AM_DBUPDATED'); |
|
125 | + redirect_header('admin.blog.php?category=' . $category_id . '&start=' . $start, 2, $message); |
|
126 | 126 | |
127 | - /* add a list of blogs to a category */ |
|
128 | - case 'register': |
|
129 | - if (!empty($_POST['category_dest'])) { |
|
130 | - if (!is_array($blog_id)) { |
|
131 | - $blog_id = array($blog_id); |
|
132 | - } |
|
133 | - $category_handler = xoops_getModuleHandler('category', $GLOBALS['moddirname']); |
|
134 | - $category_handler->addBlogs($_POST['category_dest'], $blog_id); |
|
135 | - } |
|
136 | - $message = planet_constant('AM_DBUPDATED'); |
|
137 | - redirect_header('admin.blog.php?category=' . $_POST['category_dest'] . '&start=' . $start, 2, $message); |
|
127 | + /* add a list of blogs to a category */ |
|
128 | + case 'register': |
|
129 | + if (!empty($_POST['category_dest'])) { |
|
130 | + if (!is_array($blog_id)) { |
|
131 | + $blog_id = array($blog_id); |
|
132 | + } |
|
133 | + $category_handler = xoops_getModuleHandler('category', $GLOBALS['moddirname']); |
|
134 | + $category_handler->addBlogs($_POST['category_dest'], $blog_id); |
|
135 | + } |
|
136 | + $message = planet_constant('AM_DBUPDATED'); |
|
137 | + redirect_header('admin.blog.php?category=' . $_POST['category_dest'] . '&start=' . $start, 2, $message); |
|
138 | 138 | |
139 | - /* remove a list of blogs from a category */ |
|
140 | - case 'remove': |
|
141 | - if (!is_array($blog_id)) { |
|
142 | - $blog_id = array($blog_id); |
|
143 | - } |
|
144 | - if (!empty($category_id)) { |
|
145 | - $category_handler = xoops_getModuleHandler('category', $GLOBALS['moddirname']); |
|
146 | - $category_handler->removeBlogs($category_id, $blog_id); |
|
147 | - } |
|
148 | - $message = planet_constant('AM_DBUPDATED'); |
|
149 | - redirect_header('admin.blog.php?category=' . $category_id . '&start=' . $start, 2, $message); |
|
139 | + /* remove a list of blogs from a category */ |
|
140 | + case 'remove': |
|
141 | + if (!is_array($blog_id)) { |
|
142 | + $blog_id = array($blog_id); |
|
143 | + } |
|
144 | + if (!empty($category_id)) { |
|
145 | + $category_handler = xoops_getModuleHandler('category', $GLOBALS['moddirname']); |
|
146 | + $category_handler->removeBlogs($category_id, $blog_id); |
|
147 | + } |
|
148 | + $message = planet_constant('AM_DBUPDATED'); |
|
149 | + redirect_header('admin.blog.php?category=' . $category_id . '&start=' . $start, 2, $message); |
|
150 | 150 | |
151 | - /* delete a single blog or a list blogs */ |
|
152 | - case 'del': |
|
153 | - if (!is_array($blog_id)) { |
|
154 | - $blog_id = array($blog_id); |
|
155 | - } |
|
156 | - foreach ($blog_id as $bid) { |
|
157 | - $blog_obj =& $blog_handler->get($bid); |
|
158 | - if (!$blog_handler->delete($blog_obj, true)) { |
|
159 | - } |
|
160 | - unset($blog_obj); |
|
161 | - } |
|
162 | - $message = planet_constant('AM_DBUPDATED'); |
|
163 | - redirect_header('admin.blog.php?category=' . $category_id . '&start=' . $start, 2, $message); |
|
151 | + /* delete a single blog or a list blogs */ |
|
152 | + case 'del': |
|
153 | + if (!is_array($blog_id)) { |
|
154 | + $blog_id = array($blog_id); |
|
155 | + } |
|
156 | + foreach ($blog_id as $bid) { |
|
157 | + $blog_obj =& $blog_handler->get($bid); |
|
158 | + if (!$blog_handler->delete($blog_obj, true)) { |
|
159 | + } |
|
160 | + unset($blog_obj); |
|
161 | + } |
|
162 | + $message = planet_constant('AM_DBUPDATED'); |
|
163 | + redirect_header('admin.blog.php?category=' . $category_id . '&start=' . $start, 2, $message); |
|
164 | 164 | |
165 | - /* empty a single blog or a list blogs */ |
|
166 | - case 'empty': |
|
167 | - if (!is_array($blog_id)) { |
|
168 | - $blog_id = array($blog_id); |
|
169 | - } |
|
170 | - foreach ($blog_id as $bid) { |
|
171 | - $blog_obj =& $blog_handler->get($bid); |
|
172 | - if (!$blog_handler->do_empty($blog_obj)) { |
|
173 | - } |
|
174 | - } |
|
175 | - $message = planet_constant('AM_DBUPDATED'); |
|
176 | - redirect_header('admin.blog.php?category=' . $category_id . '&start=' . $start, 2, $message); |
|
165 | + /* empty a single blog or a list blogs */ |
|
166 | + case 'empty': |
|
167 | + if (!is_array($blog_id)) { |
|
168 | + $blog_id = array($blog_id); |
|
169 | + } |
|
170 | + foreach ($blog_id as $bid) { |
|
171 | + $blog_obj =& $blog_handler->get($bid); |
|
172 | + if (!$blog_handler->do_empty($blog_obj)) { |
|
173 | + } |
|
174 | + } |
|
175 | + $message = planet_constant('AM_DBUPDATED'); |
|
176 | + redirect_header('admin.blog.php?category=' . $category_id . '&start=' . $start, 2, $message); |
|
177 | 177 | |
178 | - /* approve a single blog or a list blogs */ |
|
179 | - case 'approve': |
|
180 | - if (!is_array($blog_id)) { |
|
181 | - $blog_id = array($blog_id); |
|
182 | - } |
|
183 | - $criteria = new Criteria('blog_id', '(' . implode(',', $blog_id) . ')', 'IN'); |
|
184 | - $blog_handler->updateAll('blog_status', 1, $criteria, true); |
|
185 | - $message = planet_constant('AM_DBUPDATED'); |
|
186 | - redirect_header('admin.blog.php?category=' . $category_id . '&start=' . $start, 2, $message); |
|
178 | + /* approve a single blog or a list blogs */ |
|
179 | + case 'approve': |
|
180 | + if (!is_array($blog_id)) { |
|
181 | + $blog_id = array($blog_id); |
|
182 | + } |
|
183 | + $criteria = new Criteria('blog_id', '(' . implode(',', $blog_id) . ')', 'IN'); |
|
184 | + $blog_handler->updateAll('blog_status', 1, $criteria, true); |
|
185 | + $message = planet_constant('AM_DBUPDATED'); |
|
186 | + redirect_header('admin.blog.php?category=' . $category_id . '&start=' . $start, 2, $message); |
|
187 | 187 | |
188 | - /* mark a single blog or a list blogs as featured */ |
|
189 | - case 'feature': |
|
190 | - if (!is_array($blog_id)) { |
|
191 | - $blog_id = array($blog_id); |
|
192 | - } |
|
193 | - $criteria = new Criteria('blog_id', '(' . implode(',', $blog_id) . ')', 'IN'); |
|
194 | - $blog_handler->updateAll('blog_status', 2, $criteria, true); |
|
195 | - $message = planet_constant('AM_DBUPDATED'); |
|
196 | - redirect_header('admin.blog.php?category=' . $category_id . '&start=' . $start, 2, $message); |
|
188 | + /* mark a single blog or a list blogs as featured */ |
|
189 | + case 'feature': |
|
190 | + if (!is_array($blog_id)) { |
|
191 | + $blog_id = array($blog_id); |
|
192 | + } |
|
193 | + $criteria = new Criteria('blog_id', '(' . implode(',', $blog_id) . ')', 'IN'); |
|
194 | + $blog_handler->updateAll('blog_status', 2, $criteria, true); |
|
195 | + $message = planet_constant('AM_DBUPDATED'); |
|
196 | + redirect_header('admin.blog.php?category=' . $category_id . '&start=' . $start, 2, $message); |
|
197 | 197 | |
198 | - /* edit a single blog */ |
|
199 | - case 'edit': |
|
200 | - if (!empty($_POST['fetch'])) { |
|
201 | - $blog_obj =& $blog_handler->fetch($_POST['blog_feed']); |
|
202 | - $blog_obj->setVar('blog_id', $blog_id); |
|
203 | - } else { |
|
204 | - $blog_obj =& $blog_handler->get($blog_id); |
|
205 | - } |
|
206 | - $categories = @$_POST['categories']; |
|
207 | - if (empty($categories) && $blog_id > 0) { |
|
208 | - $crit = new Criteria('bc.blog_id', $blog_id); |
|
209 | - $categories = array_keys($category_handler->getByBlog($crit)); |
|
210 | - } |
|
211 | - if (empty($categories)) { |
|
212 | - $categories = array(0 => _NONE); |
|
213 | - } |
|
198 | + /* edit a single blog */ |
|
199 | + case 'edit': |
|
200 | + if (!empty($_POST['fetch'])) { |
|
201 | + $blog_obj =& $blog_handler->fetch($_POST['blog_feed']); |
|
202 | + $blog_obj->setVar('blog_id', $blog_id); |
|
203 | + } else { |
|
204 | + $blog_obj =& $blog_handler->get($blog_id); |
|
205 | + } |
|
206 | + $categories = @$_POST['categories']; |
|
207 | + if (empty($categories) && $blog_id > 0) { |
|
208 | + $crit = new Criteria('bc.blog_id', $blog_id); |
|
209 | + $categories = array_keys($category_handler->getByBlog($crit)); |
|
210 | + } |
|
211 | + if (empty($categories)) { |
|
212 | + $categories = array(0 => _NONE); |
|
213 | + } |
|
214 | 214 | |
215 | - echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _EDIT . '</legend>'; |
|
216 | - echo '<br>'; |
|
217 | - if (empty($blog_id) && $blog_obj->getVar('blog_feed')) { |
|
218 | - $criteria = new Criteria('blog_feed', $blog_obj->getVar('blog_feed')); |
|
219 | - $blogs_obj =& $blog_handler->getList($criteria); |
|
220 | - if (count($blogs_obj) > 0) { |
|
221 | - echo "<div class=\"errorMsg\">" . planet_constant('AM_BLOGEXISTS'); |
|
222 | - foreach (array_keys($blogs_obj) as $bid) { |
|
223 | - echo "<br><a href=\"" . XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' |
|
224 | - . URL_DELIMITER . 'b' . $bid . "\" target=\"_blank\">" . $blogs_obj[$bid] . '</a>'; |
|
225 | - } |
|
226 | - echo '</div>'; |
|
227 | - } |
|
228 | - unset($blogs_obj, $criteria); |
|
229 | - } |
|
230 | - include XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/include/form.blog.php'; |
|
231 | - echo '</fieldset>'; |
|
232 | - break; |
|
215 | + echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _EDIT . '</legend>'; |
|
216 | + echo '<br>'; |
|
217 | + if (empty($blog_id) && $blog_obj->getVar('blog_feed')) { |
|
218 | + $criteria = new Criteria('blog_feed', $blog_obj->getVar('blog_feed')); |
|
219 | + $blogs_obj =& $blog_handler->getList($criteria); |
|
220 | + if (count($blogs_obj) > 0) { |
|
221 | + echo "<div class=\"errorMsg\">" . planet_constant('AM_BLOGEXISTS'); |
|
222 | + foreach (array_keys($blogs_obj) as $bid) { |
|
223 | + echo "<br><a href=\"" . XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' |
|
224 | + . URL_DELIMITER . 'b' . $bid . "\" target=\"_blank\">" . $blogs_obj[$bid] . '</a>'; |
|
225 | + } |
|
226 | + echo '</div>'; |
|
227 | + } |
|
228 | + unset($blogs_obj, $criteria); |
|
229 | + } |
|
230 | + include XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['moddirname'] . '/include/form.blog.php'; |
|
231 | + echo '</fieldset>'; |
|
232 | + break; |
|
233 | 233 | |
234 | - default: |
|
234 | + default: |
|
235 | 235 | |
236 | - $crit = new Criteria('1', 1); |
|
237 | - $crit->setSort('cat_order'); |
|
238 | - $crit->setOrder('ASC'); |
|
239 | - $categories = $category_handler->getList($crit); |
|
236 | + $crit = new Criteria('1', 1); |
|
237 | + $crit->setSort('cat_order'); |
|
238 | + $crit->setOrder('ASC'); |
|
239 | + $categories = $category_handler->getList($crit); |
|
240 | 240 | |
241 | - // Display category option form |
|
242 | - $opform = new XoopsSimpleForm('', 'opform', 'admin.blog.php', 'get'); |
|
243 | - $op_select = new XoopsFormSelect('', 'category', $category_id); |
|
244 | - $op_select->setExtra('onchange="document.forms.opform.submit()"'); |
|
245 | - $options = array( |
|
246 | - '0' => _ALL, |
|
247 | - '-1' => planet_constant('MD_ACTIVE'), |
|
248 | - '-2' => planet_constant('MD_FEATURED'), |
|
249 | - '-3' => planet_constant('MD_PENDING') |
|
250 | - ); |
|
251 | - foreach (array_keys($categories) as $key) { |
|
252 | - $options[$key] = $categories[$key]; |
|
253 | - } |
|
254 | - $op_select->addOptionArray($options); |
|
255 | - $opform->addElement($op_select); |
|
256 | - $opform->display(); |
|
241 | + // Display category option form |
|
242 | + $opform = new XoopsSimpleForm('', 'opform', 'admin.blog.php', 'get'); |
|
243 | + $op_select = new XoopsFormSelect('', 'category', $category_id); |
|
244 | + $op_select->setExtra('onchange="document.forms.opform.submit()"'); |
|
245 | + $options = array( |
|
246 | + '0' => _ALL, |
|
247 | + '-1' => planet_constant('MD_ACTIVE'), |
|
248 | + '-2' => planet_constant('MD_FEATURED'), |
|
249 | + '-3' => planet_constant('MD_PENDING') |
|
250 | + ); |
|
251 | + foreach (array_keys($categories) as $key) { |
|
252 | + $options[$key] = $categories[$key]; |
|
253 | + } |
|
254 | + $op_select->addOptionArray($options); |
|
255 | + $opform->addElement($op_select); |
|
256 | + $opform->display(); |
|
257 | 257 | |
258 | - if ($category_id > 0) { |
|
259 | - $criteria = new CriteriaCompo(new Criteria('b.blog_status', 0, '>')); |
|
260 | - $criteria->add(new Criteria('bc.cat_id', $category_id)); |
|
261 | - $blog_count = $blog_handler->getCountByCategory($criteria); |
|
262 | - $criteria->setStart($start); |
|
263 | - $criteria->setLimit($xoopsModuleConfig['list_perpage']); |
|
264 | - $blog_objs =& $blog_handler->getByCategory($criteria); |
|
265 | - } else { |
|
266 | - /* All active blogs */ |
|
267 | - if ($category_id == 0) { |
|
268 | - $criteria = new Criteria('1', 1); |
|
269 | - $criteria->setStart($start); |
|
270 | - $criteria->setLimit($xoopsModuleConfig['list_perpage']); |
|
271 | - /* Active blogs */ |
|
272 | - } elseif ($category_id == -1) { |
|
273 | - $criteria = new Criteria('blog_status', 1); |
|
274 | - $criteria->setStart($start); |
|
275 | - $criteria->setLimit($xoopsModuleConfig['list_perpage']); |
|
276 | - /* Featured blogs */ |
|
277 | - } elseif ($category_id == -2) { |
|
278 | - $criteria = new Criteria('blog_status', 2); |
|
279 | - $criteria->setStart($start); |
|
280 | - $criteria->setLimit($xoopsModuleConfig['list_perpage']); |
|
281 | - /* Pending blogs */ |
|
282 | - } else { |
|
283 | - $criteria = new Criteria('blog_status', 0); |
|
284 | - $criteria->setStart($start); |
|
285 | - $criteria->setLimit($xoopsModuleConfig['list_perpage']); |
|
286 | - } |
|
287 | - $blog_count = $blog_handler->getCount($criteria); |
|
288 | - $blog_objs =& $blog_handler->getAll($criteria); |
|
289 | - } |
|
258 | + if ($category_id > 0) { |
|
259 | + $criteria = new CriteriaCompo(new Criteria('b.blog_status', 0, '>')); |
|
260 | + $criteria->add(new Criteria('bc.cat_id', $category_id)); |
|
261 | + $blog_count = $blog_handler->getCountByCategory($criteria); |
|
262 | + $criteria->setStart($start); |
|
263 | + $criteria->setLimit($xoopsModuleConfig['list_perpage']); |
|
264 | + $blog_objs =& $blog_handler->getByCategory($criteria); |
|
265 | + } else { |
|
266 | + /* All active blogs */ |
|
267 | + if ($category_id == 0) { |
|
268 | + $criteria = new Criteria('1', 1); |
|
269 | + $criteria->setStart($start); |
|
270 | + $criteria->setLimit($xoopsModuleConfig['list_perpage']); |
|
271 | + /* Active blogs */ |
|
272 | + } elseif ($category_id == -1) { |
|
273 | + $criteria = new Criteria('blog_status', 1); |
|
274 | + $criteria->setStart($start); |
|
275 | + $criteria->setLimit($xoopsModuleConfig['list_perpage']); |
|
276 | + /* Featured blogs */ |
|
277 | + } elseif ($category_id == -2) { |
|
278 | + $criteria = new Criteria('blog_status', 2); |
|
279 | + $criteria->setStart($start); |
|
280 | + $criteria->setLimit($xoopsModuleConfig['list_perpage']); |
|
281 | + /* Pending blogs */ |
|
282 | + } else { |
|
283 | + $criteria = new Criteria('blog_status', 0); |
|
284 | + $criteria->setStart($start); |
|
285 | + $criteria->setLimit($xoopsModuleConfig['list_perpage']); |
|
286 | + } |
|
287 | + $blog_count = $blog_handler->getCount($criteria); |
|
288 | + $blog_objs =& $blog_handler->getAll($criteria); |
|
289 | + } |
|
290 | 290 | |
291 | - echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . planet_constant('AM_LIST') . '</legend>'; |
|
292 | - echo "<br style=\"clear:both\" />"; |
|
291 | + echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . planet_constant('AM_LIST') . '</legend>'; |
|
292 | + echo "<br style=\"clear:both\" />"; |
|
293 | 293 | |
294 | - echo "<form name='list' id='list' method='post' action='" . xoops_getenv('PHP_SELF') . "'>"; |
|
295 | - echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>"; |
|
296 | - echo "<tr align='center'>"; |
|
297 | - echo "<th class='bg3' width='5%'><input name='blog_check' id='blog_check' value='1' type='checkbox' onclick=\"xoopsCheckAll('list', 'blog_check');\" /></td>"; |
|
298 | - echo "<th class='bg3'>" . planet_constant('AM_TITLE') . '</td>'; |
|
299 | - echo "<th class='bg3' width='5%'>" . planet_constant('AM_STATUS') . '</td>'; |
|
300 | - echo "<th class='bg3' width='40%'>" . planet_constant('AM_FEED') . '</td>'; |
|
301 | - // echo "<th class='bg3' width='5%'>" . _EDIT . "</td>"; |
|
302 | - // echo "<th class='bg3' width='5%'>" . _DELETE . "</td>"; |
|
303 | - echo "<th class='bg3' width='10%'>" . planet_constant('AM_ACTIONS') . '</td>'; |
|
304 | - echo '</tr>'; |
|
294 | + echo "<form name='list' id='list' method='post' action='" . xoops_getenv('PHP_SELF') . "'>"; |
|
295 | + echo "<table border='0' cellpadding='4' cellspacing='1' width='100%' class='outer'>"; |
|
296 | + echo "<tr align='center'>"; |
|
297 | + echo "<th class='bg3' width='5%'><input name='blog_check' id='blog_check' value='1' type='checkbox' onclick=\"xoopsCheckAll('list', 'blog_check');\" /></td>"; |
|
298 | + echo "<th class='bg3'>" . planet_constant('AM_TITLE') . '</td>'; |
|
299 | + echo "<th class='bg3' width='5%'>" . planet_constant('AM_STATUS') . '</td>'; |
|
300 | + echo "<th class='bg3' width='40%'>" . planet_constant('AM_FEED') . '</td>'; |
|
301 | + // echo "<th class='bg3' width='5%'>" . _EDIT . "</td>"; |
|
302 | + // echo "<th class='bg3' width='5%'>" . _DELETE . "</td>"; |
|
303 | + echo "<th class='bg3' width='10%'>" . planet_constant('AM_ACTIONS') . '</td>'; |
|
304 | + echo '</tr>'; |
|
305 | 305 | |
306 | - $status = array( |
|
307 | - '0' => planet_constant('MD_PENDING'), |
|
308 | - '1' => planet_constant('MD_ACTIVE'), |
|
309 | - '2' => planet_constant('MD_FEATURED') |
|
310 | - ); |
|
311 | - foreach (array_keys($blog_objs) as $bid) { |
|
312 | - echo "<tr class='odd' align='left'>"; |
|
313 | - echo "<td align='center'><input name='blog[]' value='" . $bid . "' type='checkbox' /></td>"; |
|
314 | - echo "<td><a href='" . XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'b' |
|
315 | - . $bid . "'>" . $blog_objs[$bid]->getVar('blog_title') . '</a></td>'; |
|
316 | - echo "<td align='center'>" . $status[$blog_objs[$bid]->getVar('blog_status')] . '</td>'; |
|
317 | - echo '<td>' . $blog_objs[$bid]->getVar('blog_feed') . '</td>'; |
|
318 | - echo "<td align='center'><a href='admin.blog.php?op=edit&blog=" . $bid . "' title='" . _EDIT |
|
319 | - . "'><img src='" . $pathIcon16 . "/edit.png '" . "alt='" . _EDIT . " title='" . _EDIT . " </a> |
|
306 | + $status = array( |
|
307 | + '0' => planet_constant('MD_PENDING'), |
|
308 | + '1' => planet_constant('MD_ACTIVE'), |
|
309 | + '2' => planet_constant('MD_FEATURED') |
|
310 | + ); |
|
311 | + foreach (array_keys($blog_objs) as $bid) { |
|
312 | + echo "<tr class='odd' align='left'>"; |
|
313 | + echo "<td align='center'><input name='blog[]' value='" . $bid . "' type='checkbox' /></td>"; |
|
314 | + echo "<td><a href='" . XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php' . URL_DELIMITER . 'b' |
|
315 | + . $bid . "'>" . $blog_objs[$bid]->getVar('blog_title') . '</a></td>'; |
|
316 | + echo "<td align='center'>" . $status[$blog_objs[$bid]->getVar('blog_status')] . '</td>'; |
|
317 | + echo '<td>' . $blog_objs[$bid]->getVar('blog_feed') . '</td>'; |
|
318 | + echo "<td align='center'><a href='admin.blog.php?op=edit&blog=" . $bid . "' title='" . _EDIT |
|
319 | + . "'><img src='" . $pathIcon16 . "/edit.png '" . "alt='" . _EDIT . " title='" . _EDIT . " </a> |
|
320 | 320 | <a href='admin.blog.php?op=del&blog=" . $bid . "' title='" . _DELETE . "'><img src='" |
321 | - . $pathIcon16 . "/delete.png '" . " alt='" . _EDIT . " title='" . _DELETE . " </a> |
|
321 | + . $pathIcon16 . "/delete.png '" . " alt='" . _EDIT . " title='" . _DELETE . " </a> |
|
322 | 322 | <a href='admin.blog.php?op=empty&blog=" . $bid . "' title='" |
323 | - . planet_constant('MD_EMPTY_BLOG') . "'><img src='" . $pathIcon16 . "/empty.png '" . " alt='" . _EDIT |
|
324 | - . " title='" . planet_constant('MD_EMPTY_BLOG') . '</a></td>'; |
|
323 | + . planet_constant('MD_EMPTY_BLOG') . "'><img src='" . $pathIcon16 . "/empty.png '" . " alt='" . _EDIT |
|
324 | + . " title='" . planet_constant('MD_EMPTY_BLOG') . '</a></td>'; |
|
325 | 325 | |
326 | - echo '</tr>'; |
|
327 | - } |
|
328 | - echo "<tr class='even' align='center'>"; |
|
329 | - echo "<td colspan='7'>"; |
|
330 | - echo "<select name='op' onChange='if (this.options[this.selectedIndex].value==\"register\") {setVisible(\"catdiv\");} else {setHidden(\"catdiv\");}'>"; |
|
331 | - echo "<option value=''>" . _SELECT . '</option>'; |
|
332 | - echo "<option value='del'>" . _DELETE . '</option>'; |
|
333 | - echo "<option value='empty'>" . planet_constant('MD_EMPTY_BLOG') . '</option>'; |
|
334 | - echo "<option value='register'>" . planet_constant('AM_REGISTER') . '</option>'; |
|
335 | - if ($category_id > 0) { |
|
336 | - echo "<option value='remove'>" . planet_constant('AM_REMOVE') . '</option>'; |
|
337 | - } |
|
338 | - echo "<option value='approve'>" . planet_constant('AM_APPROVE') . '</option>'; |
|
339 | - echo "<option value='feature'>" . planet_constant('AM_FEATURE') . '</option>'; |
|
340 | - echo "<option value='update'>" . planet_constant('AM_UPDATE') . '</option>'; |
|
341 | - echo '</select>'; |
|
342 | - echo "<div id='catdiv' style='visibility:hidden;display:inline;'>"; |
|
343 | - echo "<select name='category_dest'>"; |
|
344 | - echo "<option value=''>" . _SELECT . '</option>'; |
|
345 | - foreach ($categories as $cid => $name) { |
|
346 | - echo "<option value='" . $cid . "'>" . $name . '</option>'; |
|
347 | - } |
|
348 | - echo '</select>'; |
|
349 | - echo '</div>'; |
|
350 | - echo "<input name='start' value='" . $start . "' type='hidden' />"; |
|
351 | - echo "<input name='category' value='" . $category_id . "' type='hidden' />"; |
|
352 | - echo "<input name='submit' value='" . _SUBMIT . "' type='submit' />"; |
|
353 | - echo "<input name='' value='" . _CANCEL . "' type='reset' />"; |
|
354 | - echo '</td>'; |
|
355 | - echo '</tr>'; |
|
356 | - if ($blog_count > $xoopsModuleConfig['list_perpage']) { |
|
357 | - include XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
358 | - $nav = new XoopsPageNav($blog_count, $xoopsModuleConfig['list_perpage'], $start, 'start', |
|
359 | - 'category=' . $category_id); |
|
360 | - $pagenav = $nav->renderNav(4); |
|
361 | - echo "<tr align='right'><td colspan='6'>" . $pagenav . '</td></tr>'; |
|
362 | - } |
|
363 | - echo '</table></form>'; |
|
364 | - echo "</fieldset><br style='clear:both;'>"; |
|
326 | + echo '</tr>'; |
|
327 | + } |
|
328 | + echo "<tr class='even' align='center'>"; |
|
329 | + echo "<td colspan='7'>"; |
|
330 | + echo "<select name='op' onChange='if (this.options[this.selectedIndex].value==\"register\") {setVisible(\"catdiv\");} else {setHidden(\"catdiv\");}'>"; |
|
331 | + echo "<option value=''>" . _SELECT . '</option>'; |
|
332 | + echo "<option value='del'>" . _DELETE . '</option>'; |
|
333 | + echo "<option value='empty'>" . planet_constant('MD_EMPTY_BLOG') . '</option>'; |
|
334 | + echo "<option value='register'>" . planet_constant('AM_REGISTER') . '</option>'; |
|
335 | + if ($category_id > 0) { |
|
336 | + echo "<option value='remove'>" . planet_constant('AM_REMOVE') . '</option>'; |
|
337 | + } |
|
338 | + echo "<option value='approve'>" . planet_constant('AM_APPROVE') . '</option>'; |
|
339 | + echo "<option value='feature'>" . planet_constant('AM_FEATURE') . '</option>'; |
|
340 | + echo "<option value='update'>" . planet_constant('AM_UPDATE') . '</option>'; |
|
341 | + echo '</select>'; |
|
342 | + echo "<div id='catdiv' style='visibility:hidden;display:inline;'>"; |
|
343 | + echo "<select name='category_dest'>"; |
|
344 | + echo "<option value=''>" . _SELECT . '</option>'; |
|
345 | + foreach ($categories as $cid => $name) { |
|
346 | + echo "<option value='" . $cid . "'>" . $name . '</option>'; |
|
347 | + } |
|
348 | + echo '</select>'; |
|
349 | + echo '</div>'; |
|
350 | + echo "<input name='start' value='" . $start . "' type='hidden' />"; |
|
351 | + echo "<input name='category' value='" . $category_id . "' type='hidden' />"; |
|
352 | + echo "<input name='submit' value='" . _SUBMIT . "' type='submit' />"; |
|
353 | + echo "<input name='' value='" . _CANCEL . "' type='reset' />"; |
|
354 | + echo '</td>'; |
|
355 | + echo '</tr>'; |
|
356 | + if ($blog_count > $xoopsModuleConfig['list_perpage']) { |
|
357 | + include XOOPS_ROOT_PATH . '/class/pagenav.php'; |
|
358 | + $nav = new XoopsPageNav($blog_count, $xoopsModuleConfig['list_perpage'], $start, 'start', |
|
359 | + 'category=' . $category_id); |
|
360 | + $pagenav = $nav->renderNav(4); |
|
361 | + echo "<tr align='right'><td colspan='6'>" . $pagenav . '</td></tr>'; |
|
362 | + } |
|
363 | + echo '</table></form>'; |
|
364 | + echo "</fieldset><br style='clear:both;'>"; |
|
365 | 365 | |
366 | - if (empty($start) && empty($category_id)) { |
|
367 | - $form = new XoopsThemeForm(_ADD, 'edit', xoops_getenv('PHP_SELF')); |
|
368 | - $form->addElement(new XoopsFormText(planet_constant('AM_FEED'), 'blog_feed', 50, 255), true); |
|
369 | - $form->addElement(new XoopsFormHidden('op', 'edit')); |
|
370 | - $button_tray = new XoopsFormElementTray('', ''); |
|
371 | - $butt_save = new XoopsFormButton('', 'fetch', _SUBMIT, 'submit'); |
|
372 | - $button_tray->addElement($butt_save); |
|
373 | - $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'reset'); |
|
374 | - $button_tray->addElement($butt_cancel); |
|
375 | - $form->addElement($button_tray); |
|
366 | + if (empty($start) && empty($category_id)) { |
|
367 | + $form = new XoopsThemeForm(_ADD, 'edit', xoops_getenv('PHP_SELF')); |
|
368 | + $form->addElement(new XoopsFormText(planet_constant('AM_FEED'), 'blog_feed', 50, 255), true); |
|
369 | + $form->addElement(new XoopsFormHidden('op', 'edit')); |
|
370 | + $button_tray = new XoopsFormElementTray('', ''); |
|
371 | + $butt_save = new XoopsFormButton('', 'fetch', _SUBMIT, 'submit'); |
|
372 | + $button_tray->addElement($butt_save); |
|
373 | + $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'reset'); |
|
374 | + $button_tray->addElement($butt_cancel); |
|
375 | + $form->addElement($button_tray); |
|
376 | 376 | |
377 | - $form_add = new XoopsThemeForm(_ADD, 'add', xoops_getenv('PHP_SELF')); |
|
378 | - $form_add->addElement(new XoopsFormTextArea(planet_constant('AM_FEED'), 'links')); |
|
379 | - $form_add->addElement(new XoopsFormHidden('op', 'add')); |
|
380 | - $button_tray = new XoopsFormElementTray('', ''); |
|
381 | - $butt_save = new XoopsFormButton('', 'submit', _SUBMIT, 'submit'); |
|
382 | - $button_tray->addElement($butt_save); |
|
383 | - $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'reset'); |
|
384 | - $button_tray->addElement($butt_cancel); |
|
385 | - $form_add->addElement($button_tray); |
|
377 | + $form_add = new XoopsThemeForm(_ADD, 'add', xoops_getenv('PHP_SELF')); |
|
378 | + $form_add->addElement(new XoopsFormTextArea(planet_constant('AM_FEED'), 'links')); |
|
379 | + $form_add->addElement(new XoopsFormHidden('op', 'add')); |
|
380 | + $button_tray = new XoopsFormElementTray('', ''); |
|
381 | + $butt_save = new XoopsFormButton('', 'submit', _SUBMIT, 'submit'); |
|
382 | + $button_tray->addElement($butt_save); |
|
383 | + $butt_cancel = new XoopsFormButton('', '', _CANCEL, 'reset'); |
|
384 | + $button_tray->addElement($butt_cancel); |
|
385 | + $form_add->addElement($button_tray); |
|
386 | 386 | |
387 | - echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _ADD . '</legend>'; |
|
388 | - echo '<br>'; |
|
389 | - $form->display(); |
|
390 | - $form_add->display(); |
|
391 | - echo '</fieldset>'; |
|
392 | - } |
|
393 | - break; |
|
387 | + echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _ADD . '</legend>'; |
|
388 | + echo '<br>'; |
|
389 | + $form->display(); |
|
390 | + $form_add->display(); |
|
391 | + echo '</fieldset>'; |
|
392 | + } |
|
393 | + break; |
|
394 | 394 | } |
395 | 395 | |
396 | 396 | xoops_cp_footer(); |