Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  problems by add new recordset

phpMyEdit General     problems by add new recordset
Odoslať novú tému   Odpovedať na tému    
 
jan99     Založený: 23.01.2008   Príspevky: 13  
Príspevok Zaslal: 2008-02-07 12:24
Návrat hore  Odpovedať s citátom     

hi !

i create my first side for view sides and i can see the button to add / delete / etc. a recordset.

but when i click on the add-button NOTHING will start !!!

i can not found the right way for my work to do and did not find the information in the manual !!!

in the web-example (help-desk) there comes a new side to add data.

can anybody help me ??

my code is at the end.

regards Jan :-)

--------------

Kód:
<?php
    $file_conf = '../conf/admin.conf.php';
    $file_dbconf = '../conf/phpmyedit_dbinfo.conf.php';


    //einbinden der einstellungen
    if (file_exists($file_conf)){
       include($file_conf);
    }else{
      echo 'kein Zugriff auf die Konfigurationsdatei: '.$file_conf;
      //die;
    }

    //einbinden der css-einstellungen
    if (file_exists($admin_data['file_css'])){
       include($admin_data['file_css']);
    }else{
      echo 'kein Zugriff auf die CSS-Datei: '.$admin_data['file_css'].'<br>';
      //die;
    }

    //einbinden der einstellungen
    if (file_exists($admin_data['file_dbconf'])){
       include($admin_data['file_dbconf']);
    }else{
      echo 'kein Zugriff auf die DB-Konfigurationsdatei: '.$admin_data['file_dbconf'].'<br>';
      //die;
    }

    ?>

<h3>Adressen</h3>

<?php

/*
* IMPORTANT NOTE: This generated file contains only a subset of huge amount
* of options that can be used with phpMyEdit. To get information about all
* features offered by phpMyEdit, check official documentation. It is available
* online and also for download on phpMyEdit project management page:
*
* http://platon.sk/projects/main_page.php?project_id=5
*
* This file was generated by:
*
*                    phpMyEdit version: 5.7.1
*       phpMyEdit.class.php core class: 1.204
*            phpMyEditSetup.php script: 1.50
*              generating setup script: 1.50
*/

//tabellenname
$opts['tb'] = 'phv_adress';

// Name of field which is the unique key
$opts['key'] = 'addr_id';

// Type of key field (int/real/string/date etc.)
$opts['key_type'] = 'int';

// Sorting field(s)
$opts['sort_field'] = array('addr_id');

// Number of records to display on the screen
// Value of -1 lists all records in a table
$opts['inc'] = 15;

// Options you wish to give the users
// A - add,  C - change, P - copy, V - view, D - delete,
// F - filter, I - initial sort suppressed
$opts['options'] = 'ACPVDF';

// Number of lines to display on multiple selection filters
$opts['multiple'] = '4';

// Navigation style: B - buttons (default), T - text links, G - graphic links
// Buttons position: U - up, D - down (default)
$opts['navigation'] = 'DB';

// Display special page elements
$opts['display'] = array(
   'form'  => true,
   'query' => true,
   'sort'  => true,
   'time'  => true,
   'tabs'  => true
);

// Set default prefixes for variables
$opts['js']['prefix']               = 'PME_js_';
$opts['dhtml']['prefix']            = 'PME_dhtml_';
$opts['cgi']['prefix']['operation'] = 'PME_op_';
$opts['cgi']['prefix']['sys']       = 'PME_sys_';
$opts['cgi']['prefix']['data']      = 'PME_data_';

/* Get the user's default language and use it if possible or you can
   specify particular one you want to use. Refer to official documentation
   for list of available languages. */
$opts['language'] = $_SERVER['HTTP_ACCEPT_LANGUAGE'] . '-UTF8';

/* Table-level filter capability. If set, it is included in the WHERE clause
   of any generated SELECT statement in SQL query. This gives you ability to
   work only with subset of data from table.

$opts['filters'] = "column1 like '%11%' AND column2<17";
$opts['filters'] = "section_id = 9";
$opts['filters'] = "PMEtable0.sessions_count > 200";
*/

/* Field definitions

Fields will be displayed left to right on the screen in the order in which they
appear in generated list. Here are some most used field options documented.

['name'] is the title used for column headings, etc.;
['maxlen'] maximum length to display add/edit/search input boxes
['trimlen'] maximum length of string content to display in row listing
['width'] is an optional display width specification for the column
          e.g.  ['width'] = '100px';
['mask'] a string that is used by sprintf() to format field output
['sort'] true or false; means the users may sort the display on this column
['strip_tags'] true or false; whether to strip tags from content
['nowrap'] true or false; whether this field should get a NOWRAP
['select'] T - text, N - numeric, D - drop-down, M - multiple selection
['options'] optional parameter to control whether a field is displayed
  L - list, F - filter, A - add, C - change, P - copy, D - delete, V - view
            Another flags are:
            R - indicates that a field is read only
            W - indicates that a field is a password field
            H - indicates that a field is to be hidden and marked as hidden
['URL'] is used to make a field 'clickable' in the display
        e.g.: 'mailto:$value', 'http://$value' or '$page?stuff';
['URLtarget']  HTML target link specification (for example: _blank)
['textarea']['rows'] and/or ['textarea']['cols']
  specifies a textarea is to be used to give multi-line input
  e.g. ['textarea']['rows'] = 5; ['textarea']['cols'] = 10
['values'] restricts user input to the specified constants,
           e.g. ['values'] = array('A','B','C') or ['values'] = range(1,99)
['values']['table'] and ['values']['column'] restricts user input
  to the values found in the specified column of another table
['values']['description'] = 'desc_column'
  The optional ['values']['description'] field allows the value(s) displayed
  to the user to be different to those in the ['values']['column'] field.
  This is useful for giving more meaning to column values. Multiple
  descriptions fields are also possible. Check documentation for this.
*/

$opts['fdd']['addr_id'] = array(
  'name'     => 'ID',
  'select'   => 'T',
  'options'  => 'AVCPDR', // auto increment
  'maxlen'   => 5,
  'default'  => '0',
  'sort'     => true
);
$opts['fdd']['addr_info'] = array(
  'name'     => 'Info',
  'select'   => 'T',
  'maxlen'   => 40,
  'sort'     => false
);
$opts['fdd']['addr_club_long'] = array(
  'name'     => 'Langtext',
  'select'   => 'T',
  'maxlen'   => 50,
  'sort'     => true
);
$opts['fdd']['addr_club_short'] = array(
  'name'     => 'Kurztext',
  'select'   => 'T',
  'maxlen'   => 50,
  'sort'     => true
);
$opts['fdd']['addr_chef_first'] = array(
  'name'     => 'Vorname',
  'select'   => 'T',
  'maxlen'   => 50,
  'sort'     => true
);
$opts['fdd']['addr_chef_surname'] = array(
  'name'     => 'Nachname',
  'select'   => 'T',
  'maxlen'   => 50,
  'sort'     => true
);
$opts['fdd']['addr_street'] = array(
  'name'     => 'Strasse',
  'select'   => 'T',
  'maxlen'   => 50,
  'sort'     => true
);
$opts['fdd']['addr_houseno'] = array(
  'name'     => 'Hausnr.',
  'select'   => 'T',
  'maxlen'   => 5,
  'sort'     => true
);
$opts['fdd']['addr_country'] = array(
  'name'     => 'Land',
  'select'   => 'T',
  'maxlen'   => 10,
  'default'  => 'Germany',
  'sort'     => true
);
$opts['fdd']['addr_postbox'] = array(
  'name'     => 'PLZ',
  'select'   => 'T',
  'maxlen'   => 10,
  'sort'     => true
);
$opts['fdd']['addr_village'] = array(
  'name'     => 'Ort',
  'select'   => 'T',
  'maxlen'   => 50,
  'sort'     => true
);
$opts['fdd']['addr_telefon'] = array(
  'name'     => 'Telefon',
  'select'   => 'T',
  'maxlen'   => 50,
  'sort'     => true
);
$opts['fdd']['addr_fax'] = array(
  'name'     => 'Fax',
  'select'   => 'T',
  'maxlen'   => 50,
  'sort'     => true
);
$opts['fdd']['addr_mobil'] = array(
  'name'     => 'Mobil',
  'select'   => 'T',
  'maxlen'   => 50,
  'sort'     => true
);
$opts['fdd']['addr_web'] = array(
  'name'     => 'www',
  'select'   => 'T',
  'maxlen'   => 50,
  'sort'     => true
);
$opts['fdd']['addr_email'] = array(
  'name'     => 'Email',
  'select'   => 'T',
  'maxlen'   => 50,
  'sort'     => true
);
$opts['fdd']['addr_lat'] = array(
  'name'     => 'Lat',
  'select'   => 'T',
  'maxlen'   => 22,
  'default'  => '0',
  'sort'     => true
);
$opts['fdd']['addr_log'] = array(
  'name'     => 'Log',
  'select'   => 'T',
  'maxlen'   => 22,
  'default'  => '0',
  'sort'     => true
);

// Now important call to phpMyEdit
require_once $admin_data['class_path'];
new phpMyEdit($opts);
?>


 
jan99     Založený: 23.01.2008   Príspevky: 13  
Príspevok Zaslal: 2008-02-11 09:09
Návrat hore  Odpovedať s citátom     

hi !

i had change words in the german-language file.

when i copy the orginal file back - the add-function works fine !!

regards Jan :-)

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov