<?php $prefix = GetLinkPrefix('order'); $listview = new TListView('plugin_id'); $listview->SetList($this->plugins); $listview->AddColum(_lg('plugin name'), 'plugin_name', 10); $listview->AddColum(_lg('plugin author'), 'plugin_author', 10); $listview->SetPattern(1, '<img src="' . UR_MP_ASSETS . 'images/active%s.png" alt="[plugin status]" />'); $listview->AddColum(_lg('status'), '%1plugin_status', 2); $listview->AddColum('', 'plugin_discrption', 16); $pattern = '<a class="button delete" href="' . UR_MP . 'Plugin/Delete/%id%"> ' . _lg('Delete') . ' </a> <a class="button active" href="' . UR_MP . 'Plugin/Status/%id%/1"> ' . _lg('Active') . ' </a> <a class="button deactive" href="' . UR_MP . 'Plugin/Status/%id%/0"> ' . _lg('Deactive') . '</a>'; $listview->AddAction($pattern, 6, 'plugin_status'); $listview->AddFilter(_lg('Deactived'), 'plugin_status', '0'); $listview->AddFilter(_lg('Actived'), 'plugin_status', '1'); $listview->AddBulkAcction(_lg('Deactive'), 'Edit', 'plugin_status,0'); $listview->AddBulkAcction(_lg('Active'), 'Edit', 'plugin_status,1'); $listview->AddBulkAcction(_lg('Delete'), 'Delete', null); $listview->Render('Plugin'); $frm = new TForm(UR_MP . 'Plugin/upload'); $frm->AddField('file', _lg('zip file'), null, array('name' => 'file')); $frm->AddField('submit', '', _lg('Upload')); ?> <br /> <div style="background: #1392e9;padding:1em;margin:1em;"> <h2> <?php _lp('Upload new plugin'); ?>
<?php $prefix = GetLinkPrefix('order'); $listview = new TListView('comment_id'); $listview->SetList($this->cls_list); $listview->SetPattern(1, '<img src="' . UR_MP_ASSETS . 'images/comment%s.png" alt="[comment status]" />'); $listview->AddColum('وضعیت', '%1comment_status', 2); $listview->AddColum('ip', '%icomment_ip', 3); $listview->AddColum('زمان', '%tcomment_time', 3); $listview->AddColum('ارسال کننده', 'manager_displayname,member_name', 3); $listview->AddColum('عنوان یادداشت', 'topic_title', 7); $listview->AddColum('', 'comment_text', 16); $pattern = '<a class="button delete" href="' . UR_MP . 'Comment/Delete/%id%"> حذف </a> <a class="button approve" href="' . UR_MP . 'Comment/Status/%id%/1"> تایید </a> <a class="button unapprove" href="' . UR_MP . 'Comment/Status/%id%/2"> رد کردن </a> <a class="button penddling" href="' . UR_MP . 'Comment/Status/%id%/0"> بازگشت به بررسی</a> <a class="button reply" href="' . UR_MP . 'Comment/NewComment/%id%/%topic%">پاسخ</a>'; $listview->AddAction($pattern, 8, 'comment_status'); $listview->AddFilter('در انتظار بررسی ', 'comment_status', '0'); $listview->AddFilter('تاییده شده', 'comment_status', '1'); $listview->AddFilter(' رد شده ', 'comment_status', '2'); $listview->AddBulkAcction(' بازگشت به بررسی', 'Edit', 'comment_status,0'); $listview->AddBulkAcction(' تایید کردن', 'Edit', 'comment_status,1'); $listview->AddBulkAcction(' رد کردن', 'Edit', 'comment_status,2'); $listview->AddBulkAcction(' حذف', 'Delete', null); $listview->Render('Comment'); $this->pagination->Render();
<?php $prefix = GetLinkPrefix('order'); $listview = new TListView('manager_id'); $listview->SetList($this->cls_list); $listview->AddColum('نام کاربری', 'manager_username', 6); $listview->AddColum('نام نمایشی', 'manager_displayname', 5); $listview->AddColum(' ایمیل', 'manager_email', 5); $pattern = '<a class="button delete" href="' . UR_MP . 'Manager/Delete/%id%"> حذف </a> <a class="button" href="' . UR_MP . 'Manager/Edit/%id%"> ویرایش </a>'; $listview->AddAction($pattern, 4, ''); $listview->AddFilter(_lg('Protected'), 'manager_protected', '1'); $listview->AddFilter(_lg('Unprotected'), 'manager_protected', '0'); //$listview->AddFilter(' ویژه اعضا', 'topic_status', '2'); //$listview->AddFilter(' قابل نمایش', 'topic_status', '0','gt'); //$listview->AddBulkAcction(' پیش نویس کردن', 'Edit', 'topic_status,0'); //$listview->AddBulkAcction(' انتشار جمعی', 'Edit', 'topic_status,1'); //$listview->AddBulkAcction(' ویژه اعضا کردن جمعی', 'Edit', 'topic_status,2'); $listview->AddBulkAcction(' حذف', 'Delete', null); $listview->Render('Manager'); $this->pagination->Render();
<?php $prefix = GetLinkPrefix('order'); global $m_type; $m_type = array(0 => 'تایید نشده', 1 => 'تایید شده', 2 => 'اخراجی'); $listview = new TListView('member_id'); $listview->SetList($this->cls_list); $listview->AddColum(_lg('Name'), 'member_name', 8); $listview->AddColum(_lg('Email'), 'member_email', 4); $listview->AddColum(_lg('Status'), '%am_type|member_type', 2); $pattern = '<a class="button delete" href="' . UR_MP . 'Member/Delete/%id%"> ' . _lg('Delete') . ' </a> <a class="button" href="' . UR_MP . 'Member/Edit/%id%"> ' . _lg('Edit') . ' </a>'; $listview->AddAction($pattern, 4, 'member_type'); $listview->AddFilter(_lg('Pending'), 'member_type', '0'); $listview->AddFilter(_lg('Approved'), 'member_type', '1'); $listview->AddFilter(_lg('Banned'), 'member_type', '2'); $listview->AddBulkAcction(_lg('Pending'), 'Edit', 'member_type,0'); $listview->AddBulkAcction(_lg('Approving'), 'Edit', 'member_type,1'); $listview->AddBulkAcction(_lg('Banning'), 'Edit', 'member_type,2'); $listview->AddBulkAcction(_lg('Delete'), 'Delete', null); $listview->AddSearch('member_name,member_email,member_number'); $listview->Render('Member'); $this->pagination->Render();
<?php $prefix = GetLinkPrefix('order'); $listview = new TListView('topic_id'); $listview->SetList($this->cls_list); $listview->AddColum(_lg('Title'), 'topic_title', 12); $listview->AddColum(_lg('Status'), 'topic_status', 2); $listview->AddColum(_lg('View Counter'), 'topic_counter', 2); $pattern = '<a class="button delete" href="' . UR_MP . 'Topic/Delete/%id%"> ' . _lg('Delete') . ' </a> <a class="button" href="' . UR_MP . 'Topic/Edit/%id%"> ' . _lg('Edit') . ' </a>'; $listview->AddAction($pattern, 4, 'topic_status'); $listview->AddFilter(_lg('Drafted'), 'topic_status', '0'); $listview->AddFilter(_lg('Published'), 'topic_status', '1'); $listview->AddFilter(_lg('For members'), 'topic_status', '2'); $listview->AddFilter(_lg("Viewable"), 'topic_status', '0', 'gt'); $listview->AddBulkAcction(_lg('Drafting'), 'Edit', 'topic_status,0'); $listview->AddBulkAcction(_lg('Publishing'), 'Edit', 'topic_status,1'); $listview->AddBulkAcction(_lg('Set for members'), 'Edit', 'topic_status,2'); $listview->AddBulkAcction(_lg('Delete'), 'Delete', null); $listview->AddSearch('topic_title,topic_text'); $listview->AddRelation('category_id', 'category_title', 'category', '2', 'book'); $listview->Render('Topic'); $this->pagination->Render();