| 7 | | echo $html->link($html->image('actions/new.png', array("alt"=>"Add new forum", "title"=>"Add new forum")), '#', array("onclick"=>"hU()"), false, false); |
| | 4 | echo $html->div('title_section', __('Categories Forums', true)); |
| | 5 | |
| | 6 | echo $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))), '#', array("onclick"=>"hU()"), false, false); |
| 17 | | echo $form->input('Catforum.title', array('size'=>50, 'maxlength'=>150)); |
| 18 | | echo $form->input('Catforum.description', array('size'=>70, 'maxlength'=>150)); |
| 19 | | echo $form->label('Catforum.status', 'Enabled:') . $form->checkbox('Catforum.status', array('value'=>1)); |
| | 16 | echo $form->input('Catforum.title', array('size'=>50, 'maxlength'=>150, 'label'=>__('Title', true))); |
| | 17 | echo $form->input('Catforum.description', array('size'=>70, 'maxlength'=>150, 'label'=>__('Description', true))); |
| | 18 | echo $form->label('Catforum.status', __('Enabled', true)) . $form->checkbox('Catforum.status', array('value'=>1)); |
| 28 | | $th = array ('Edit', 'Add', 'Title', 'Description', 'Status', 'Delete', ' '); |
| | 28 | $th = array(__('Edit', true),__('Add', true),__('Title', true),__('Description', true),__('Status', true),__('Delete', true), ' '); |
| | 29 | |
| 47 | | foreach ( $val['Forum'] as $v) // forum in catforums |
| 48 | | { |
| 49 | | echo '<tr><td> </td> <td>' . $gags->sendEdit($v["id"], 'forums') .'</td>'; |
| 50 | | echo '<td>' . $html->link($v["title"], '/admin/forums/topics/'.$v['id']) .'</td> <td colspan="2"> '. $v["description"] .' </td>'; |
| 51 | | echo '<td>' . $html->link($gags->setStatus($v['status']), '/admin/forums/change/'.$v['status'].'/'.$v['id']).'</td> <td> ' . $gags->confirmDel($v['id'], 'forums') . '</td> </tr>'; |
| 52 | | } |
| 53 | | } |
| | 47 | foreach ( $val['Forum'] as $v): // forum in catforums |
| | 48 | echo '<tr><td> </td> <td>' . $gags->sendEdit($v["id"], 'forums') .'</td>'; |
| | 49 | echo '<td>'.$html->link($v["title"], '/admin/forums/topics/'.$v['id']) .'</td> <td colspan="2"> '. $v["description"] .' </td>'; |
| | 50 | echo '<td>'.$html->link($gags->setStatus($v['status']), '/admin/forums/change/'.$v['status'].'/'.$v['id']).'</td>'; |
| | 51 | echo '<td>'.$gags->confirmDel($v['id'], 'forums') . '</td> </tr>'; |
| | 52 | endforeach; |
| | 53 | endforeach; |