mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
More Plugin-Builder refinements
This commit is contained in:
@@ -1776,14 +1776,17 @@ TEMPLATE;
|
|||||||
<td>".$frm->text($this->table."[fields][".$name."][title]", $this->guess($name, $val,'title'),35, 'required=1')."</td>
|
<td>".$frm->text($this->table."[fields][".$name."][title]", $this->guess($name, $val,'title'),35, 'required=1')."</td>
|
||||||
<td>".$this->fieldType($name, $val)."</td>
|
<td>".$this->fieldType($name, $val)."</td>
|
||||||
<td>".$this->fieldData($name, $val)."</td>
|
<td>".$this->fieldData($name, $val)."</td>
|
||||||
<td>".$frm->text($this->table."[fields][".$name."][width]",'auto',4)."</td>
|
<td>".$frm->text($this->table."[fields][".$name."][width]", $this->guess($name, $val,'width'), 4)."</td>
|
||||||
<td class='center'>".$frm->checkbox($this->table."[fields][".$name."][batch]", true, $this->guess($name, $val,'batch'))."</td>
|
<td class='center'>".$frm->checkbox($this->table."[fields][".$name."][batch]", true, $this->guess($name, $val,'batch'))."</td>
|
||||||
<td class='center'>".$frm->checkbox($this->table."[fields][".$name."][filter]", true, $this->guess($name, $val,'filter'))."</td>
|
<td class='center'>".$frm->checkbox($this->table."[fields][".$name."][filter]", true, $this->guess($name, $val,'filter'))."</td>
|
||||||
<td class='center'>".$frm->checkbox($this->table."[fields][".$name."][validate]", true)."</td>
|
<td class='center'>".$frm->checkbox($this->table."[fields][".$name."][validate]", true)."</td>
|
||||||
<td class='center'>".$frm->checkbox($this->table."[fields][".$name."][fieldpref]", true, $this->guess($name, $val,'fieldpref'))."</td>
|
<td class='center'>".$frm->checkbox($this->table."[fields][".$name."][fieldpref]", true, $this->guess($name, $val,'fieldpref'))."</td>
|
||||||
<td>".$frm->text($this->table."[fields][".$name."][help]",'', 50)."</td>
|
<td>".$frm->text($this->table."[fields][".$name."][help]",'', 50)."</td>
|
||||||
<td>".$frm->text($this->table."[fields][".$name."][readParms]",'', 35)."</td>
|
<td>".$frm->text($this->table."[fields][".$name."][readParms]",'', 35)."</td>
|
||||||
<td>".$frm->text($this->table."[fields][".$name."][writeParms]",'', 35)."</td>
|
<td>".$frm->text($this->table."[fields][".$name."][writeParms]",'', 35).
|
||||||
|
$frm->hidden($this->table."[fields][".$name."][class]", $this->guess($name, $val,'class')).
|
||||||
|
$frm->hidden($this->table."[fields][".$name."][thclass]", $this->guess($name, $val,'thclass')).
|
||||||
|
"</td>
|
||||||
</tr>";
|
</tr>";
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1888,6 +1891,10 @@ TEMPLATE;
|
|||||||
}
|
}
|
||||||
|
|
||||||
$ret['title'] = ucfirst($name);
|
$ret['title'] = ucfirst($name);
|
||||||
|
$ret['width'] = 'auto';
|
||||||
|
$ret['class'] = 'left';
|
||||||
|
$ret['thclass'] = 'left';
|
||||||
|
|
||||||
//echo "<br />name=".$name;
|
//echo "<br />name=".$name;
|
||||||
switch ($name)
|
switch ($name)
|
||||||
{
|
{
|
||||||
@@ -1904,7 +1911,7 @@ TEMPLATE;
|
|||||||
case 'datestamp':
|
case 'datestamp':
|
||||||
$ret['title'] = 'LAN_DATESTAMP';
|
$ret['title'] = 'LAN_DATESTAMP';
|
||||||
$ret['type'] = 'datestamp';
|
$ret['type'] = 'datestamp';
|
||||||
$ret['batch'] = true;
|
$ret['batch'] = false;
|
||||||
$ret['filter'] = true;
|
$ret['filter'] = true;
|
||||||
$ret['fieldpref'] = true;
|
$ret['fieldpref'] = true;
|
||||||
break;
|
break;
|
||||||
@@ -1989,12 +1996,16 @@ TEMPLATE;
|
|||||||
case 'description':
|
case 'description':
|
||||||
$ret['title'] = 'LAN_DESCRIPTION';
|
$ret['title'] = 'LAN_DESCRIPTION';
|
||||||
$ret['type'] = ($val['type'] == 'TEXT') ? 'textarea' : 'text';
|
$ret['type'] = ($val['type'] == 'TEXT') ? 'textarea' : 'text';
|
||||||
|
$ret['width'] = '40%';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$ret['type'] = 'boolean';
|
$ret['type'] = 'boolean';
|
||||||
|
$ret['class'] = 'center';
|
||||||
$ret['batch'] = false;
|
$ret['batch'] = false;
|
||||||
$ret['filter'] = false;
|
$ret['filter'] = false;
|
||||||
|
$ret['thclass'] = 'center';
|
||||||
|
$ret['width'] = '5%';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -326,6 +326,8 @@ define("LAN_COPY","Copy");
|
|||||||
define("LAN_KEYWORDS","Keywords");
|
define("LAN_KEYWORDS","Keywords");
|
||||||
define("LAN_IMAGE","Image");
|
define("LAN_IMAGE","Image");
|
||||||
define("LAN_TEMPLATE","Template");
|
define("LAN_TEMPLATE","Template");
|
||||||
|
define("LAN_TYPE", "Type");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user