PHP Builder Forum IndexPHP Builder
free solutions for web developers
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in            Calendar



COMPUSORY UPGRADE!!! Request an upgrade NOW! 32+ Pre-installed Modifications! 3 Server Locations to choose from: USA, UK and JAPAN.

11th December 2012 - phpBB88: All servers are upgraded to run using SSD drive. Click Here to report problems!

v4.2.6 - functions: getFieldValueByType

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PHP Builder Forum Index -> PHP DataGrid {bugs}
View previous topic :: View next topic  
Author Message
fcallez
Expert
Expert


Joined: 07 Mar 2007
Posts: 174
:
Location: Pucallpa - Perú

Items

PostPosted: Mon Jun 23, 2008 11:17 pm    Post subject: v4.2.6 - functions: getFieldValueByType Reply with quote

Hello:

Changes needed :

functions: getFieldValueByType

------------------------------
before:


Code:
if ($this->mode === "edit"){
                    // save entered values from fields in add/edit modes
                    $req_field_value = $this->getVariable($field_req_type.$field_name, false, "post");
                    if($req_field_value != "") $field_value = $req_field_value;
       
                    switch($field_type){



*******************

now :


Code:
if ($this->mode === "edit"){
                    // save entered values from fields in add/edit modes
                    $req_field_value = $this->getVariable($field_req_type.$field_name, false, "post");
                    if($req_field_value != "") $field_value = $req_field_value;
                   
                    // Modify  31/01/08 - Init

                    if($this->debug) {
                        echo "*** req_mode: ".$req_mode." --- field_type: ".$field_type." ---- field_property_default:".$field_property_default." --- field_value: ".$field_value."<br>";
                    }

                    if ($req_mode == "add" && ($field_property_default != "" || $field_property_default != 0))  {
                       if ($field_type != "image" )  {
                            $field_value = $field_property_default;
                       } else {
                            $field_value = "";
                          }
                    }

                    // Modify 31/01/08 - Fin
                   
                    switch($field_type){

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

before :

Code:
                               
                                 if($this->getFieldProperty($field_name, "host") == "remote"){
                                // *** upload file from url (remote host)

                               ......


                                 }else{
                                        $ret_file .= $this->nbsp.$str_prefix.substr($file_name_view, $str_start, 40).$this->nbsp;
                                    }
                                    if($field_type == "image") $ret_file .= "<br>";
                                    else $ret_file .= "&nbsp;&nbsp;";
                                    if($readonly != ""){


**********************

now:



Code:


                              if($this->getFieldProperty($field_name, "host") == "remote"){
                                // *** upload file from url (remote host)

                               ......

                                 }else{
                                        $ret_file .= $this->nbsp.$str_prefix.substr($file_name_view, $str_start, 40).$this->nbsp;
                                    }
                                    if($field_type == "image") $ret_file .= "<br>";
                                    else $ret_file .= "&nbsp;&nbsp;";
                                    if($readonly == ""){ //  Modify 20 06 08
                                       


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

before :

Code:
}else{
                                // *** upload file from local machine


                             .....

                             if($field_type == "image") $ret_file .= "<br>";
                                    else $ret_file .= "&nbsp;&nbsp;";
                                    if($readonly != ""){



************************

now :

Code:
}else{
                                // *** upload file from local machine


                             .....

                             if($field_type == "image") $ret_file .= "<br>";
                                    else $ret_file .= "&nbsp;&nbsp;";
                                    if($readonly == ""){ //  Modify 20 06 08


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

Bye Smile
_________________
Franklin Calle Zapata
fcallez@gmail.com
skype : fcallez
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
administrator
Site Admin
Site Admin


Joined: 05 Oct 2006
Posts: 538
:
Location: Israel

Items

PostPosted: Fri Jun 27, 2008 5:26 pm    Post subject: Reply with quote

Please, before you start to post changes, can you write a short description of what does it make? and why do wee need this changes?
_________________
PHP forever, ASP must die!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
     
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PHP Builder Forum Index -> PHP DataGrid {bugs} All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
PHP Builder topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group

FREE FORUM HOSTING by AtFreeForum. Terms of Service - Privacy Policy
FASHION ACCESSORIES - BLING BLING - LADIES WATCHES - KOREAN CHILDREN CLOTHING - ONLINE BARGAIN STORE - FASHION JEWELLERIES