mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 04:27:14 +01:00
module_creator expanded now with minidetail and select in list
This commit is contained in:
parent
a243d3b330
commit
debe733f13
@ -13,7 +13,7 @@
|
|||||||
* PLACEHOLDER_EDIT
|
* PLACEHOLDER_EDIT
|
||||||
* PLACEHOLDER_DELETE
|
* PLACEHOLDER_DELETE
|
||||||
* PLACEHOLDER_SQL_LIST
|
* PLACEHOLDER_SQL_LIST
|
||||||
* PLACEHOLDER_SQL_LIST
|
* PLACEHOLDER_DROPNBOX
|
||||||
* PLACEHOLDER_GET_INPUT
|
* PLACEHOLDER_GET_INPUT
|
||||||
* PLACEHOLDER_SET_INPUT
|
* PLACEHOLDER_SET_INPUT
|
||||||
* PLACEHOLDER_COLUMNS
|
* PLACEHOLDER_COLUMNS
|
||||||
@ -21,9 +21,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$host = 'localhost';
|
$host = 'localhost';
|
||||||
$user = 'openxedev';
|
$user = 'openxe';
|
||||||
$passwd = 'openxedev';
|
$passwd = 'openxe';
|
||||||
$schema = 'openxedev';
|
$schema = 'openxe';
|
||||||
|
|
||||||
if ($argc >= 2) {
|
if ($argc >= 2) {
|
||||||
|
|
||||||
@ -152,7 +152,8 @@ if ($argc >= 2) {
|
|||||||
$php_file_contents = str_replace('PLACEHOLDER_LIST', $module_name . "_list", $php_file_contents);
|
$php_file_contents = str_replace('PLACEHOLDER_LIST', $module_name . "_list", $php_file_contents);
|
||||||
$php_file_contents = str_replace('PLACEHOLDER_EDIT', $module_name . "_edit", $php_file_contents);
|
$php_file_contents = str_replace('PLACEHOLDER_EDIT', $module_name . "_edit", $php_file_contents);
|
||||||
$php_file_contents = str_replace('PLACEHOLDER_DELETE', $module_name . "_delete", $php_file_contents);
|
$php_file_contents = str_replace('PLACEHOLDER_DELETE', $module_name . "_delete", $php_file_contents);
|
||||||
$php_file_contents = str_replace('PLACEHOLDER_SQL_LIST', "SELECT SQL_CALC_FOUND_ROWS $table_short_name.id, $sql_list_of_columns, $table_short_name.id FROM $module_name $table_short_name", $php_file_contents);
|
$php_file_contents = str_replace('PLACEHOLDER_DROPNBOX',"'<img src=./themes/new/images/details_open.png class=details>' AS `open`, CONCAT('<input type=\\\"checkbox\\\" name=\\\"auswahl[]\\\" value=\\\"',".$table_short_name.".id,'\\\" />') AS `auswahl`", $php_file_contents);
|
||||||
|
$php_file_contents = str_replace('PLACEHOLDER_SQL_LIST', "SELECT SQL_CALC_FOUND_ROWS $table_short_name.id, \$dropnbox, $sql_list_of_columns, $table_short_name.id FROM $module_name $table_short_name", $php_file_contents);
|
||||||
$php_file_contents = str_replace('PLACEHOLDER_SQL_EDIT', "INSERT INTO $module_name ($list_of_columns, id) values ('\".implode('\', \'',\$input).\"', \$id) ON DUPLICATE KEY UPDATE SET ", $php_file_contents);
|
$php_file_contents = str_replace('PLACEHOLDER_SQL_EDIT', "INSERT INTO $module_name ($list_of_columns, id) values ('\".implode('\', \'',\$input).\"', \$id) ON DUPLICATE KEY UPDATE SET ", $php_file_contents);
|
||||||
$php_file_contents = str_replace('PLACEHOLDER_GET_INPUT', $get_input, $php_file_contents);
|
$php_file_contents = str_replace('PLACEHOLDER_GET_INPUT', $get_input, $php_file_contents);
|
||||||
$php_file_contents = str_replace('PLACEHOLDER_SET_INPUT', $set_input, $php_file_contents);
|
$php_file_contents = str_replace('PLACEHOLDER_SET_INPUT', $set_input, $php_file_contents);
|
||||||
|
@ -30,8 +30,8 @@ class PLACEHOLDER_MODULECLASSNAME {
|
|||||||
switch ($name) {
|
switch ($name) {
|
||||||
case "PLACEHOLDER_LIST":
|
case "PLACEHOLDER_LIST":
|
||||||
$allowed['PLACEHOLDER_LIST'] = array('list');
|
$allowed['PLACEHOLDER_LIST'] = array('list');
|
||||||
$heading = array(PLACEHOLDER_COLUMNS, 'Menü');
|
$heading = array('','',PLACEHOLDER_COLUMNS, 'Menü');
|
||||||
$width = array('10%'); // Fill out manually later
|
$width = array('1%','1%','10%'); // Fill out manually later
|
||||||
|
|
||||||
$findcols = array(PLACEHOLDER_SQL_COLUMNS);
|
$findcols = array(PLACEHOLDER_SQL_COLUMNS);
|
||||||
$searchsql = array(PLACEHOLDER_SQL_COLUMNS);
|
$searchsql = array(PLACEHOLDER_SQL_COLUMNS);
|
||||||
@ -39,6 +39,8 @@ class PLACEHOLDER_MODULECLASSNAME {
|
|||||||
$defaultorder = 1;
|
$defaultorder = 1;
|
||||||
$defaultorderdesc = 0;
|
$defaultorderdesc = 0;
|
||||||
|
|
||||||
|
$dropnbox = "PLACEHOLDER_DROPNBOX";
|
||||||
|
|
||||||
$menu = "<table cellpadding=0 cellspacing=0><tr><td nowrap>" . "<a href=\"index.php?module=PLACEHOLDER_MODULENAME&action=edit&id=%value%\"><img src=\"./themes/{$app->Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\"></a> <a href=\"#\" onclick=DeleteDialog(\"index.php?module=PLACEHOLDER_MODULENAME&action=delete&id=%value%\");>" . "<img src=\"themes/{$app->Conf->WFconf['defaulttheme']}/images/delete.svg\" border=\"0\"></a>" . "</td></tr></table>";
|
$menu = "<table cellpadding=0 cellspacing=0><tr><td nowrap>" . "<a href=\"index.php?module=PLACEHOLDER_MODULENAME&action=edit&id=%value%\"><img src=\"./themes/{$app->Conf->WFconf['defaulttheme']}/images/edit.svg\" border=\"0\"></a> <a href=\"#\" onclick=DeleteDialog(\"index.php?module=PLACEHOLDER_MODULENAME&action=delete&id=%value%\");>" . "<img src=\"themes/{$app->Conf->WFconf['defaulttheme']}/images/delete.svg\" border=\"0\"></a>" . "</td></tr></table>";
|
||||||
|
|
||||||
$sql = "PLACEHOLDER_SQL_LIST";
|
$sql = "PLACEHOLDER_SQL_LIST";
|
||||||
|
Loading…
Reference in New Issue
Block a user