========================================= admin/centry/crud/index.inc.php ----------------------------------------- $now = CDtConv::utcStr(); if ( !$fs->set( array( 'status' => '1', 'dt_create' => $now, 'user_id' => $this->cfg_poll['user_id'], 'mc_gross' => "0", <-------------------------delete 'mc_currency'=>$this->cfg_poll['entry_currency_code'], <---added ) ) ->sel( "owner-save" ) ->sel( ( $this->cfg_poll['entry_type'] == 'p' ) ? "-vid" : "" ) ->exe( "?db", "add" ) ) { $this->event( "reg1" ); return; } ========================================= * admin/centry/crud/tpls/tpl.reg1.class.php * admin/centry/crud/tpls/tpl.edit1.class.php ----------------------------------------- outputInputbox(array( "name"=>"mc_gross", "max-width"=>200, "prefix"=>CAppCurrency::getCurrencySymbol( $this->prt->cfg_poll['entry_currency_code'] ), )); ?> ========================================= * lib/entry/classes/CTalbe_entry.class.php ----------------------------------------- $fdx[ 'mc_gross' ] = array( "label"=>$lng[ 'mc_gross' ], "db"=>"varchar", "length"=>10, "required"=>false, "validator"=>"numeric", "input"=> array( "type"=>"text", "size"=>8, ), "search-key"=>"=", "list-key"=>array( "sr", "owner-reg1", "owner-edit1", "owner-save", "owner-update", ), ); $fdx[ 'mc_currency' ] = array( "label"=>$lng[ 'mc_currency' ], "db"=>"varchar", "length"=>10, "required"=>true, "input"=> array( "type"=>"select", ), "selections"=>$currency_code, "search-key"=>"=", "list-key"=>array( "sr", "owner-save", ), ); ========================================= * config/config.entry.reg.inc.php ----------------------------------------- $_cfg[ "init-form" ] = array( 'cnt' => '0', 'mc_gross' => '0.00', ); =========================================