mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 03:10:50 +02:00
19
e107_admin/plugin.php
Normal file → Executable file
19
e107_admin/plugin.php
Normal file → Executable file
@@ -179,6 +179,7 @@ class plugin_ui extends e_admin_ui
|
|||||||
protected $table = 'plugin';
|
protected $table = 'plugin';
|
||||||
protected $pid = 'plugin_id';
|
protected $pid = 'plugin_id';
|
||||||
protected $perPage = 10;
|
protected $perPage = 10;
|
||||||
|
|
||||||
protected $batchDelete = false;
|
protected $batchDelete = false;
|
||||||
protected $batchExport = false;
|
protected $batchExport = false;
|
||||||
protected $batchCopy = false;
|
protected $batchCopy = false;
|
||||||
@@ -1292,7 +1293,7 @@ class plugin_online_ui extends e_admin_ui
|
|||||||
// do the request, retrieve and parse data
|
// do the request, retrieve and parse data
|
||||||
$xdata = $mp->call('getList', array(
|
$xdata = $mp->call('getList', array(
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
'params' => array('limit' => 10, 'search' => $srch, 'from' => $from)
|
'params' => array('limit' => $this->perPage, 'search' => $srch, 'from' => $from)
|
||||||
));
|
));
|
||||||
$total = $xdata['params']['count'];
|
$total = $xdata['params']['count'];
|
||||||
|
|
||||||
@@ -1410,12 +1411,9 @@ class plugin_online_ui extends e_admin_ui
|
|||||||
</form>
|
</form>
|
||||||
";
|
";
|
||||||
|
|
||||||
$amount = 30;
|
if($total > $this->perPage)
|
||||||
|
|
||||||
|
|
||||||
if($total > $amount)
|
|
||||||
{
|
{
|
||||||
$parms = $total.",".$amount.",".$from.",".e_SELF.'?mode=online&action=list&frm=[FROM]';
|
$parms = $total.",".$this->perPage.",".$from.",".e_SELF.'?mode=online&action=list&frm=[FROM]';
|
||||||
|
|
||||||
if(!empty($srch))
|
if(!empty($srch))
|
||||||
{
|
{
|
||||||
@@ -2562,12 +2560,9 @@ class pluginManager{
|
|||||||
</form>
|
</form>
|
||||||
";
|
";
|
||||||
|
|
||||||
$amount = 30;
|
if($total > $this->perPage)
|
||||||
|
|
||||||
|
|
||||||
if($total > $amount)
|
|
||||||
{
|
{
|
||||||
$parms = $total.",".$amount.",".$from.",".e_SELF.'?mode=online&frm=[FROM]';
|
$parms = $total.",".$this->perPage.",".$from.",".e_SELF.'?mode=online&frm=[FROM]';
|
||||||
|
|
||||||
if(!empty($srch))
|
if(!empty($srch))
|
||||||
{
|
{
|
||||||
@@ -4250,7 +4245,7 @@ $content .= '}';
|
|||||||
$frm = e107::getForm();
|
$frm = e107::getForm();
|
||||||
list($cat,$type) = explode("-",$info);
|
list($cat,$type) = explode("-",$info);
|
||||||
|
|
||||||
$size = 30;
|
$size = 30; // Textbox size.
|
||||||
$help = '';
|
$help = '';
|
||||||
$pattern = "";
|
$pattern = "";
|
||||||
$required = false;
|
$required = false;
|
||||||
|
Reference in New Issue
Block a user