 | PHP Builder free solutions for web developers
|
|
|
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!
| View previous topic :: View next topic |
| Author |
Message |
administrator Site Admin


Joined: 05 Oct 2006 Posts: 538 : Location: Israel
Items
|
Posted: Fri Jun 15, 2007 7:45 pm Post subject: BETA version 4.1.5 is available now for downloading. |
|
|
BETA version 4.1.5 of PHP DataGrid is available for downloading from
>> here <<
Examples of using and code syntax see in code_template.php file.
Changes in this version:
//* Feature: [added] LIMIT/TOP/NUM_ROWS processing for different database types
//* Feature: [added] new parameter: "on_js_event"=>"" for Add/Edit/View Modes
//* Feature: [added] new type "link" for add/edit/details mode
//* Feature: [added] using of some fields for default order in View Mode
//* Feature: [added] warnings system
//* Feature: [added] small image preview on uploading
//* Feature: [added] new parameter for image type: "image_name"=>"Image_Name"
//* Feature: [added] new parameters for foreign keys:
// "order_by_field"=>"Field_Name" and "order_type"=>"ASC|DESC"
//* Feature: [added] in View and Edit/Details mode added new parameter for
// image type: image_width & image_height
//* Feature: [added] new parameter "maxlength"=>>"..." for fields in Add/Edit modes
//* Feature: [added] new format for "source"=>$fill_from_array parameter in
// filter mode
//* Feature: [added] new parameter for enum type: default value
//* Feature: [added] Multi-row in details mode
//* Feature: [added] new language - Chinese (provided by xukong)
//* Feature: [added] new parameter - "on_js_event"=>"" for link type in View Mode
//* Feature: [added] new language - Polish (provided by davie81)
//* Feature: [added] auto columns generetion by
// setAutoColumnsInViewMode() and setAutoColumnsInEditMode()
//* Feature: [added] onSubmitMyCheck() JS function for specific checkings
//* Feature: [added] Reset button in filtering mode
//* Feature: [added] new parameter - {0...n} in the link type of view mode
//* Feature: [added] new parameter - condition in setTableEdit()
//* Feature: [added] new method - setEditModeTableProperties()
//* Feature: [added] new method - setDetailsModeTableProperties()
//* Feature: [added] new type in view mode - barchart
//* Feature: [added] executeSql() method
//* Feature: [added] selectSqlItem() method
//* Feature: [added] export in XML format
//* Feature: [added] new parameter - readonly for fields in edit mode
//* Feature: [added] new parameter - "default"=>"..." for fields in add mode
//* Feature: [added] code checking if form.script.js exists
//* Feature: [improved] debugger messaging
//* Feature: [improved] css <a> tag styling
//* Feature: [improved] new format for parameter "max_file_size": 1024B|100K|10M|1G...
//* Feature: [improved] colspan parameter in Search table
//* Feature: [improved] translating into Netherlands
//* Feature: [improved] messaging in AddRow/UpdateRow/DeleteRow methods
//* Feature: [improved] view of datetime link & pop-up
//* Feature: [improved] added headers to fields in exporting to *.csv
//* Feature: [improved] translation in german
//* Feature: [improved] added uploading option for image type in Add/Edit/Detail modes
// and new parameters: "width"=>"...", "height"=>"..." and "default"=>"..." in Add/View/Edit/Detail modes
//# Bug: [Fixed] error on wrong default order data (after updating)
//# Bug: [Fixed] wrong "Search type:" displaying when only 1 field in filtering section//# Bug: [Fixed] single quotes error in drawForeignKeyInput() method
//# Bug: [Fixed] FireFox updating error
//# Bug: [Fixed] error while creating uploading directory, if it was not exist
//# Bug: [Fixed] uploading 2 or more files
//# Bug: [Fixed] problem with single quote (') by adding mysql_real_escape_string() and stripslashes()
//# Bug: [Fixed] maxlength error (-1) in getFieldValueByType()
//# Bug: [Fixed] wrong offset in columns_edit_mode array in drawForeignKeyInput()
//# Bug: [Fixed] "alt" propertiey in <img> changed on "title" to show tooltips in FF
//# Bug: [Fixed] tag <php error in lang.php file
//# Bug: [Fixed] empty SELECT result if primary key was in non-numeric type
//# Bug: [Fixed] unexpexted column in add mode, if multirow option is allowed
//# Bug: [Fixed] error while uploading & updating if unique prefix was more then 2 simbols
//# Bug: [Fixed] blocked direct access to all folders by adding a blank index.html file
//# Bug: [Fixed] checkbox shows only 1 or 0 in details mode (instead of 'Yes', 'No')
//# Bug: [Fixed] showing wrong icons and checkboxes in print mode
//# Bug: [Fixed] wrong offset of summarizing column
//# Bug: [Fixed] default maxlength value error in edit mode
//# Bug: [Fixed] colSpan='0' error in FireFox
//# Bug: [Fixed] function lastSubStrOccurence() not handles correctly cases like: tblWhere, tblFrom etc.
//# Bug: [Fixed] default paging didn't work - shows wrong number of row in first viewing
//# Bug: [Fixed] error in details mode: undefined variable curr_url
//# Bug: [Fixed] setLanguage error
//# Bug: [Fixed] missing title parameter in drawModeButton() function in <IMG>
//# Bug: [Fixed] unexpexted comma in field data while exporting to *.csv |
|
| Back to top |
|
 |
fcallez Expert


Joined: 07 Mar 2007 Posts: 174 : Location: Pucallpa - Perú
Items
|
|
| Back to top |
|
 |
fcallez Expert


Joined: 07 Mar 2007 Posts: 174 : Location: Pucallpa - Perú
Items
|
|
| Back to top |
|
 |
fcallez Expert


Joined: 07 Mar 2007 Posts: 174 : Location: Pucallpa - Perú
Items
|
Posted: Fri Jun 22, 2007 2:18 am Post subject: Please, an example of the use of: on_js_event |
|
|
Good day
Please, an example of the use of:
on_js_event
Thanks
Franklin  _________________ Franklin Calle Zapata
fcallez@gmail.com
skype : fcallez |
|
| Back to top |
|
 |
zewa666 Site Moderator


Joined: 01 Feb 2007 Posts: 606 :
Items
|
|
| Back to top |
|
 |
administrator Site Admin


Joined: 05 Oct 2006 Posts: 538 : Location: Israel
Items
|
Posted: Fri Jun 22, 2007 10:27 am Post subject: |
|
|
Right: $amp; is a problem. Fixed in new version.
You can fix it by yourself in verifySelected() function in this row:
selected_rows = '&".$this->unique_prefix."rid='; |
|
| Back to top |
|
 |
fcallez Expert


Joined: 07 Mar 2007 Posts: 174 : Location: Pucallpa - Perú
Items
|
Posted: Fri Jun 22, 2007 1:47 pm Post subject: Operations the multi-rows are not working on Firefox - Ok |
|
|
Good day:
It was corrected and it worked
Thanks  _________________ Franklin Calle Zapata
fcallez@gmail.com
skype : fcallez |
|
| Back to top |
|
 |
fcallez Expert


Joined: 07 Mar 2007 Posts: 174 : Location: Pucallpa - Perú
Items
|
Posted: Fri Jun 22, 2007 4:53 pm Post subject: Many coding lines with: & |
|
|
Many coding lines with: &
It is replaced for: & ?
Examples:
-------------------------------------------------------------
| Code: |
echo "<a QUERY_STRING="">unique_prefix."export=true&".$this->unique_prefix."export_type=csv','ExportToExcel','left=100,top=100,width=600,height=400,toolbar=0,resizable=0,location=0,scrollbars=1');myRef.focus();\" class='".$this->unique_prefix."class_a'>"; |
| Code: |
echo "<a QUERY_STRING="">unique_prefix."export=true&".$this->unique_prefix."export_type=xml','ExportToExcel','left=100,top=100,width=600,height=400,toolbar=0,resizable=0,location=0,scrollbars=1');myRef.focus();\" class='".$this->unique_prefix."class_a'>"; |
| Code: |
echo "<a QUERY_STRING="">unique_prefix."print=true','PrintableView','left=20,top=20,width=840,height=630,toolbar=0,menubar=0,resizable=0,location=0,scrollbars=1');myRef.focus()\" class='".$this->unique_prefix."class_a'><img></a>"; |
| Code: |
$href_string .= "&".$this->unique_prefix."sort_field=".($c+1)."&".$this->unique_prefix."sort_type=".$sort_type; |
| Code: | | $cancel_url .= "&".$this->unique_prefix."new=1"; |
| Code: |
if(isset($_REQUEST[$this->unique_prefix.'mode']) && $_REQUEST[$this->unique_prefix.'mode'] === "add") { $curr_url .= "&".$this->unique_prefix."new=1"; $cancel_url .= "&".$this->unique_prefix."new=1";} |
| Code: | | function combineUrl($mode, $rid="", $amp="&"){ |
| Code: |
$text .= "function ".$this->unique_prefix."setPageSize".$type."(){document.location.href = '$href_string&".$this->unique_prefix."page_size='+document.frmPaging$this->unique_prefix".$type.".page_size".$type.".value;}"; |
| Code: |
$href_string .= "&".$this->unique_prefix."page_size=".$this->req_page_size; |
| Code: | $href_prev1 = "href='$href_string&".$this->unique_prefix."p=".($this->page_current - 1)."'";
$href_prev2 = "href='$href_string&".$this->unique_prefix."p=".$this->page_current."'";
$href_first = "href='$href_string&".$this->unique_prefix."p=1'"; |
| Code: |
if($ind == $this->page_current) $text .= " <a_tag>unique_prefix."class_a' style='text-decoration: underline;' title='".$this->lang['current']."' href='$href_string&".$this->unique_prefix."p=".$ind."'><b><u>" . $ind . "</u></b></a_tag>unique_prefix."class_a' style='text-decoration: none;' href='$href_string&".$this->unique_prefix."p=".$ind."'>".$ind."</".$a_tag.">"; |
| Code: |
function setUrlString(&$curr_url, $filtering = "", $sorting = "", $paging ="", $amp="&"){ |
| Code: | | function setUrlStringFiltering(&$curr_url, $amp="&"){ |
| Code: | | function setUrlStringSorting(&$curr_url, $amp="&"){ |
| Code: | | function setUrlStringPaging(&$curr_url, $amp="&"){ |
---------------------------------------------------------------------------
Thanks  _________________ Franklin Calle Zapata
fcallez@gmail.com
skype : fcallez |
|
| Back to top |
|
 |
administrator Site Admin


Joined: 05 Oct 2006 Posts: 538 : Location: Israel
Items
|
Posted: Fri Jun 22, 2007 5:06 pm Post subject: |
|
|
No. These are ok.
The problem was in in those lines, that were performed in js functions.
We need & for cases when some field includes &, like
f_name=rony_&_boss&data=... |
|
| Back to top |
|
 |
fcallez Expert


Joined: 07 Mar 2007 Posts: 174 : Location: Pucallpa - Perú
Items
|
Posted: Fri Jun 22, 2007 5:19 pm Post subject: |
|
|
Then
The method: SetPagingSettings
With Firefox, do not work correctly with the array : $pages_array = array(10, 25, 50, 100, 250, 500, 1000);
 _________________ Franklin Calle Zapata
fcallez@gmail.com
skype : fcallez |
|
| Back to top |
|
 |
fcallez Expert


Joined: 07 Mar 2007 Posts: 174 : Location: Pucallpa - Perú
Items
|
|
| Back to top |
|
 |
administrator Site Admin


Joined: 05 Oct 2006 Posts: 538 : Location: Israel
Items
|
Posted: Fri Jun 22, 2007 7:08 pm Post subject: |
|
|
You are right. Thanks  |
|
| Back to top |
|
 |
fcallez Expert


Joined: 07 Mar 2007 Posts: 174 : Location: Pucallpa - Perú
Items
|
Posted: Sat Jun 23, 2007 3:49 pm Post subject: Multirow_option --> replace --> Do not work correct |
|
|
Good day:
On file: code_example
The code:
-----------------------------------------------------------------------------
| Code: | $multirow_option = true;
$dgrid->allowMultirowOperations($multirow_option);
$multirow_operations = array(
"delete" => array("view"=>true),
"details" => array("view"=>true),
"replace" => array("view"=>true, "flag_name"=>"Population", "flag_value"=>"111111", "tooltip"=>"replace selected", "image"=>"add.gif")
);
$dgrid->setMultirowOperations($multirow_operations); |
-----------------------------------------------------------------------------
That's right?
"replace" => array("view"=>true, "flag_name"=>"Population", "flag_value"=>"111111", "tooltip"=>"replace selected", "image"=>"add.gif")
Please, an example of correct use of the option: replace
Trying in:
http://www.innovavirtual.org/datagrid/examples/index.php
Thanks
Greetings  _________________ Franklin Calle Zapata
fcallez@gmail.com
skype : fcallez
Last edited by fcallez on Sat Jun 23, 2007 3:54 pm; edited 1 time in total |
|
| Back to top |
|
 |
fcallez Expert


Joined: 07 Mar 2007 Posts: 174 : Location: Pucallpa - Perú
Items
|
Posted: Sat Jun 23, 2007 3:50 pm Post subject: Re: Please, an example of the use of: on_js_event |
|
|
Hi :
Please,
Can they help me? thanks
| fcallez wrote: | Good day
Please, an example of the use of:
on_js_event
Thanks
Franklin  |
_________________ Franklin Calle Zapata
fcallez@gmail.com
skype : fcallez |
|
| Back to top |
|
 |
fcallez Expert


Joined: 07 Mar 2007 Posts: 174 : Location: Pucallpa - Perú
Items
|
Posted: Sat Jun 23, 2007 4:11 pm Post subject: Re: Multirow operations, option : details |
|
|
Hi :
Please,
Can they help me? thanks
--------------------------------------------------
-----------------
Thanks  _________________ Franklin Calle Zapata
fcallez@gmail.com
skype : fcallez |
|
| Back to top |
|
 |
| |
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|