mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Plugin Builder fixes
This commit is contained in:
@@ -1671,7 +1671,7 @@ class pluginBuilder
|
|||||||
switch ($type)
|
switch ($type)
|
||||||
{
|
{
|
||||||
case 'date':
|
case 'date':
|
||||||
$text = $frm->datepicker($name,time(),'dateformat=yy-mm-dd'.$req);
|
$text = $frm->datepicker($name, time(), 'dateformat=yy-mm-dd'.$req);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'description':
|
case 'description':
|
||||||
@@ -1784,7 +1784,7 @@ TEMPLATE;
|
|||||||
{
|
{
|
||||||
$frm = e107::getForm();
|
$frm = e107::getForm();
|
||||||
|
|
||||||
$modes = array("main"=>"Main Area","cat"=>"Categories");
|
$modes = array("main"=>"Main Area","cat"=>"Categories","other1"=>"Other 1","other2"=>"Other 2");
|
||||||
|
|
||||||
// echo "TABLE COUNT= ".$this->tableCount ;
|
// echo "TABLE COUNT= ".$this->tableCount ;
|
||||||
|
|
||||||
@@ -1907,7 +1907,8 @@ TEMPLATE;
|
|||||||
"userclass" => "DropDown (userclasses)",
|
"userclass" => "DropDown (userclasses)",
|
||||||
"datestamp" => "Date",
|
"datestamp" => "Date",
|
||||||
"method" => "Custom Function",
|
"method" => "Custom Function",
|
||||||
"hidden" => "Hidden"
|
"hidden" => "Hidden",
|
||||||
|
"user" => "User",
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -1980,6 +1981,7 @@ TEMPLATE;
|
|||||||
case 'start':
|
case 'start':
|
||||||
case 'end':
|
case 'end':
|
||||||
case 'datestamp':
|
case 'datestamp':
|
||||||
|
case 'date':
|
||||||
$ret['title'] = 'LAN_DATESTAMP';
|
$ret['title'] = 'LAN_DATESTAMP';
|
||||||
$ret['type'] = 'datestamp';
|
$ret['type'] = 'datestamp';
|
||||||
$ret['batch'] = false;
|
$ret['batch'] = false;
|
||||||
@@ -2094,7 +2096,7 @@ TEMPLATE;
|
|||||||
$type = $val['type'];
|
$type = $val['type'];
|
||||||
|
|
||||||
$strings = array('time','timestamp','datetime','year','tinyblob','blob',
|
$strings = array('time','timestamp','datetime','year','tinyblob','blob',
|
||||||
'mediumblob','longblob','tinytext','mediumtext','longtext','text','date');
|
'mediumblob','longblob','tinytext','mediumtext','longtext','text','date','varchar','char');
|
||||||
|
|
||||||
|
|
||||||
if(in_array(strtolower($type),$strings))
|
if(in_array(strtolower($type),$strings))
|
||||||
@@ -2220,6 +2222,8 @@ $text .= "
|
|||||||
"'filter' => '1'",
|
"'filter' => '1'",
|
||||||
"'validate' => '1'",
|
"'validate' => '1'",
|
||||||
", 'fieldpref' => '1'",
|
", 'fieldpref' => '1'",
|
||||||
|
"'type' => ''",
|
||||||
|
"'data' => ''"
|
||||||
);
|
);
|
||||||
|
|
||||||
$repl = array(
|
$repl = array(
|
||||||
@@ -2230,7 +2234,9 @@ $text .= "
|
|||||||
"'batch' => true",
|
"'batch' => true",
|
||||||
"'filter' => true",
|
"'filter' => true",
|
||||||
"'validate' => true",
|
"'validate' => true",
|
||||||
""
|
"",
|
||||||
|
"'type' => null",
|
||||||
|
"'data' => null"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@@ -2245,7 +2251,7 @@ $text .= "
|
|||||||
|
|
||||||
foreach($vars['fields'] as $k=>$v)
|
foreach($vars['fields'] as $k=>$v)
|
||||||
{
|
{
|
||||||
if($v['fieldpref'])
|
if($v['fieldpref'] && $k != 'checkboxes' && $k !='options')
|
||||||
{
|
{
|
||||||
$FIELDPREF[] = "'".$k."'";
|
$FIELDPREF[] = "'".$k."'";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user