Exemplo n.º 1
0
<?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');
?>
Exemplo n.º 2
0
<?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();